omniroute 2.4.2 → 2.4.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.
Files changed (669) hide show
  1. package/app/.env +122 -0
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +46 -46
  4. package/app/.next/build-manifest.json +3 -3
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/required-server-files.json +1 -1
  7. package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js.nft.json +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/a2a/page_client-reference-manifest.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/agents/page.js +2 -2
  11. package/app/.next/server/app/(dashboard)/dashboard/agents/page.js.nft.json +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/agents/page_client-reference-manifest.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js +2 -2
  14. package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js +2 -2
  17. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js.nft.json +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/api-manager/page_client-reference-manifest.js +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js.nft.json +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/audit-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js +2 -2
  23. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js.nft.json +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +4 -4
  26. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  29. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/costs/page.js +2 -2
  32. package/app/.next/server/app/(dashboard)/dashboard/costs/page.js.nft.json +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/costs/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  35. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/health/page.js +2 -2
  38. package/app/.next/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/limits/page.js +2 -2
  41. package/app/.next/server/app/(dashboard)/dashboard/limits/page.js.nft.json +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/limits/page_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/logs/page.js +2 -2
  44. package/app/.next/server/app/(dashboard)/dashboard/logs/page.js.nft.json +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/logs/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js +2 -2
  47. package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js.nft.json +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/mcp/page_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/media/page.js +2 -2
  50. package/app/.next/server/app/(dashboard)/dashboard/media/page.js.nft.json +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/media/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js +2 -2
  53. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js.nft.json +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page_client-reference-manifest.js +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  56. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/playground/page.js +3 -3
  59. package/app/.next/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  62. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  65. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  68. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  71. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  73. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js +2 -2
  74. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js.nft.json +1 -1
  75. package/app/.next/server/app/(dashboard)/dashboard/settings/page_client-reference-manifest.js +1 -1
  76. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js +2 -2
  77. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  78. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  79. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +3 -3
  80. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  81. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  82. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  83. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  84. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  85. package/app/.next/server/app/.well-known/agent.json/route.js +1 -1
  86. package/app/.next/server/app/.well-known/agent.json/route_client-reference-manifest.js +1 -1
  87. package/app/.next/server/app/400/page.js +2 -2
  88. package/app/.next/server/app/400/page.js.nft.json +1 -1
  89. package/app/.next/server/app/400/page_client-reference-manifest.js +1 -1
  90. package/app/.next/server/app/401/page.js +2 -2
  91. package/app/.next/server/app/401/page.js.nft.json +1 -1
  92. package/app/.next/server/app/401/page_client-reference-manifest.js +1 -1
  93. package/app/.next/server/app/403/page.js +2 -2
  94. package/app/.next/server/app/403/page.js.nft.json +1 -1
  95. package/app/.next/server/app/403/page_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/408/page.js +2 -2
  97. package/app/.next/server/app/408/page.js.nft.json +1 -1
  98. package/app/.next/server/app/408/page_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/429/page.js +2 -2
  100. package/app/.next/server/app/429/page.js.nft.json +1 -1
  101. package/app/.next/server/app/429/page_client-reference-manifest.js +1 -1
  102. package/app/.next/server/app/500/page.js +2 -2
  103. package/app/.next/server/app/500/page.js.nft.json +1 -1
  104. package/app/.next/server/app/500/page_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/502/page.js +2 -2
  106. package/app/.next/server/app/502/page.js.nft.json +1 -1
  107. package/app/.next/server/app/502/page_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/503/page.js +2 -2
  109. package/app/.next/server/app/503/page.js.nft.json +1 -1
  110. package/app/.next/server/app/503/page_client-reference-manifest.js +1 -1
  111. package/app/.next/server/app/_global-error/page.js +3 -3
  112. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  113. package/app/.next/server/app/_global-error.html +2 -2
  114. package/app/.next/server/app/_global-error.rsc +5 -5
  115. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +5 -5
  116. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  117. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  118. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +4 -4
  120. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/app/.next/server/app/_not-found/page.js +2 -2
  122. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  123. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  124. package/app/.next/server/app/a2a/route.js +2 -2
  125. package/app/.next/server/app/a2a/route_client-reference-manifest.js +1 -1
  126. package/app/.next/server/app/api/a2a/status/route.js +1 -1
  127. package/app/.next/server/app/api/a2a/status/route_client-reference-manifest.js +1 -1
  128. package/app/.next/server/app/api/a2a/tasks/[id]/cancel/route.js +1 -1
  129. package/app/.next/server/app/api/a2a/tasks/[id]/cancel/route_client-reference-manifest.js +1 -1
  130. package/app/.next/server/app/api/a2a/tasks/[id]/route.js +1 -1
  131. package/app/.next/server/app/api/a2a/tasks/[id]/route_client-reference-manifest.js +1 -1
  132. package/app/.next/server/app/api/a2a/tasks/route.js +1 -1
  133. package/app/.next/server/app/api/a2a/tasks/route_client-reference-manifest.js +1 -1
  134. package/app/.next/server/app/api/acp/agents/route.js +1 -1
  135. package/app/.next/server/app/api/acp/agents/route.js.nft.json +1 -1
  136. package/app/.next/server/app/api/acp/agents/route_client-reference-manifest.js +1 -1
  137. package/app/.next/server/app/api/auth/login/route.js +1 -1
  138. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  139. package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  140. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  141. package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  142. package/app/.next/server/app/api/auth/status/route.js +1 -1
  143. package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  144. package/app/.next/server/app/api/cache/route.js +1 -1
  145. package/app/.next/server/app/api/cache/route.js.nft.json +1 -1
  146. package/app/.next/server/app/api/cache/route_client-reference-manifest.js +1 -1
  147. package/app/.next/server/app/api/cache/stats/route.js +1 -1
  148. package/app/.next/server/app/api/cache/stats/route_client-reference-manifest.js +1 -1
  149. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  150. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  151. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  152. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  153. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  154. package/app/.next/server/app/api/cli-tools/backups/route.js +2 -2
  155. package/app/.next/server/app/api/cli-tools/backups/route_client-reference-manifest.js +1 -1
  156. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  157. package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  159. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  160. package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  161. package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  162. package/app/.next/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  163. package/app/.next/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -1
  164. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  165. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  166. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  167. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  168. package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  170. package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route.js +1 -1
  171. package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route_client-reference-manifest.js +1 -1
  172. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  173. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  174. package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  175. package/app/.next/server/app/api/cli-tools/openclaw/auto-order/route.js +1 -1
  176. package/app/.next/server/app/api/cli-tools/openclaw/auto-order/route_client-reference-manifest.js +1 -1
  177. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  178. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  180. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route.js +2 -2
  181. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route_client-reference-manifest.js +1 -1
  182. package/app/.next/server/app/api/cli-tools/status/route.js +2 -2
  183. package/app/.next/server/app/api/cli-tools/status/route.js.nft.json +1 -1
  184. package/app/.next/server/app/api/cli-tools/status/route_client-reference-manifest.js +1 -1
  185. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  186. package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  188. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  189. package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
  190. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  191. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  192. package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
  193. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  194. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  195. package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
  196. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  197. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  198. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  199. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  200. package/app/.next/server/app/api/combos/auto/route.js +1 -1
  201. package/app/.next/server/app/api/combos/auto/route_client-reference-manifest.js +1 -1
  202. package/app/.next/server/app/api/combos/metrics/route.js +1 -1
  203. package/app/.next/server/app/api/combos/metrics/route_client-reference-manifest.js +1 -1
  204. package/app/.next/server/app/api/combos/route.js +1 -1
  205. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  206. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  207. package/app/.next/server/app/api/combos/test/route.js +1 -1
  208. package/app/.next/server/app/api/combos/test/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/combos/test/route_client-reference-manifest.js +1 -1
  210. package/app/.next/server/app/api/compliance/audit-log/route.js +1 -1
  211. package/app/.next/server/app/api/compliance/audit-log/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/compliance/audit-log/route_client-reference-manifest.js +1 -1
  213. package/app/.next/server/app/api/db-backups/export/route.js +1 -1
  214. package/app/.next/server/app/api/db-backups/export/route.js.nft.json +1 -1
  215. package/app/.next/server/app/api/db-backups/export/route_client-reference-manifest.js +1 -1
  216. package/app/.next/server/app/api/db-backups/exportAll/route.js +1 -1
  217. package/app/.next/server/app/api/db-backups/exportAll/route.js.nft.json +1 -1
  218. package/app/.next/server/app/api/db-backups/exportAll/route_client-reference-manifest.js +1 -1
  219. package/app/.next/server/app/api/db-backups/import/route.js +1 -1
  220. package/app/.next/server/app/api/db-backups/import/route.js.nft.json +1 -1
  221. package/app/.next/server/app/api/db-backups/import/route_client-reference-manifest.js +1 -1
  222. package/app/.next/server/app/api/db-backups/route.js +1 -1
  223. package/app/.next/server/app/api/db-backups/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/db-backups/route_client-reference-manifest.js +1 -1
  225. package/app/.next/server/app/api/evals/[suiteId]/route.js +1 -1
  226. package/app/.next/server/app/api/evals/[suiteId]/route_client-reference-manifest.js +1 -1
  227. package/app/.next/server/app/api/evals/route.js +1 -1
  228. package/app/.next/server/app/api/evals/route_client-reference-manifest.js +1 -1
  229. package/app/.next/server/app/api/fallback/chains/route.js +2 -2
  230. package/app/.next/server/app/api/fallback/chains/route.js.nft.json +1 -1
  231. package/app/.next/server/app/api/fallback/chains/route_client-reference-manifest.js +1 -1
  232. package/app/.next/server/app/api/init/route.js +1 -1
  233. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  234. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  235. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  236. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  237. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  238. package/app/.next/server/app/api/keys/route.js +1 -1
  239. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  240. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  241. package/app/.next/server/app/api/logs/console/route.js +1 -1
  242. package/app/.next/server/app/api/logs/console/route_client-reference-manifest.js +1 -1
  243. package/app/.next/server/app/api/mcp/audit/route.js +2 -2
  244. package/app/.next/server/app/api/mcp/audit/route.js.nft.json +1 -1
  245. package/app/.next/server/app/api/mcp/audit/route_client-reference-manifest.js +1 -1
  246. package/app/.next/server/app/api/mcp/audit/stats/route.js +2 -2
  247. package/app/.next/server/app/api/mcp/audit/stats/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/mcp/audit/stats/route_client-reference-manifest.js +1 -1
  249. package/app/.next/server/app/api/mcp/sse/route.js +1 -1
  250. package/app/.next/server/app/api/mcp/sse/route.js.nft.json +1 -1
  251. package/app/.next/server/app/api/mcp/sse/route_client-reference-manifest.js +1 -1
  252. package/app/.next/server/app/api/mcp/status/route.js +1 -1
  253. package/app/.next/server/app/api/mcp/status/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  255. package/app/.next/server/app/api/mcp/stream/route.js +1 -1
  256. package/app/.next/server/app/api/mcp/stream/route.js.nft.json +1 -1
  257. package/app/.next/server/app/api/mcp/stream/route_client-reference-manifest.js +1 -1
  258. package/app/.next/server/app/api/mcp/tools/route.js +1 -1
  259. package/app/.next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  260. package/app/.next/server/app/api/models/alias/route.js +1 -1
  261. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  263. package/app/.next/server/app/api/models/availability/route.js +1 -1
  264. package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  265. package/app/.next/server/app/api/models/catalog/route.js +1 -1
  266. package/app/.next/server/app/api/models/catalog/route.js.nft.json +1 -1
  267. package/app/.next/server/app/api/models/catalog/route_client-reference-manifest.js +1 -1
  268. package/app/.next/server/app/api/models/openrouter-catalog/route.js +1 -1
  269. package/app/.next/server/app/api/models/openrouter-catalog/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/models/openrouter-catalog/route_client-reference-manifest.js +1 -1
  271. package/app/.next/server/app/api/models/route.js +1 -1
  272. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  273. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  274. package/app/.next/server/app/api/monitoring/health/route.js +1 -1
  275. package/app/.next/server/app/api/monitoring/health/route.js.nft.json +1 -1
  276. package/app/.next/server/app/api/monitoring/health/route_client-reference-manifest.js +1 -1
  277. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  278. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  279. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  280. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  281. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  282. package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  283. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  284. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  285. package/app/.next/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  286. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  287. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  288. package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  289. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  290. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  291. package/app/.next/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  292. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  293. package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  294. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  295. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  297. package/app/.next/server/app/api/policies/route.js +2 -2
  298. package/app/.next/server/app/api/policies/route.js.nft.json +1 -1
  299. package/app/.next/server/app/api/policies/route_client-reference-manifest.js +1 -1
  300. package/app/.next/server/app/api/pricing/defaults/route.js +1 -1
  301. package/app/.next/server/app/api/pricing/defaults/route_client-reference-manifest.js +1 -1
  302. package/app/.next/server/app/api/pricing/models/route.js +1 -1
  303. package/app/.next/server/app/api/pricing/models/route.js.nft.json +1 -1
  304. package/app/.next/server/app/api/pricing/models/route_client-reference-manifest.js +1 -1
  305. package/app/.next/server/app/api/pricing/route.js +1 -1
  306. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  307. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  308. package/app/.next/server/app/api/provider-metrics/route.js +2 -2
  309. package/app/.next/server/app/api/provider-metrics/route.js.nft.json +1 -1
  310. package/app/.next/server/app/api/provider-metrics/route_client-reference-manifest.js +1 -1
  311. package/app/.next/server/app/api/provider-models/route.js +1 -1
  312. package/app/.next/server/app/api/provider-models/route.js.nft.json +1 -1
  313. package/app/.next/server/app/api/provider-models/route_client-reference-manifest.js +1 -1
  314. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  315. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  316. package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  317. package/app/.next/server/app/api/provider-nodes/route.js +2 -2
  318. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  319. package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  320. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  321. package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  322. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  323. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  324. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  325. package/app/.next/server/app/api/providers/[id]/refresh/route.js +1 -1
  326. package/app/.next/server/app/api/providers/[id]/refresh/route.js.nft.json +1 -1
  327. package/app/.next/server/app/api/providers/[id]/refresh/route_client-reference-manifest.js +1 -1
  328. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  329. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  330. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  331. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  332. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  333. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  334. package/app/.next/server/app/api/providers/client/route.js +1 -1
  335. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  336. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  337. package/app/.next/server/app/api/providers/route.js +1 -1
  338. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  339. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  340. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  341. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  342. package/app/.next/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  343. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  344. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  345. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  346. package/app/.next/server/app/api/rate-limit/route.js +1 -1
  347. package/app/.next/server/app/api/rate-limit/route_client-reference-manifest.js +1 -1
  348. package/app/.next/server/app/api/rate-limits/route.js +1 -1
  349. package/app/.next/server/app/api/rate-limits/route.js.nft.json +1 -1
  350. package/app/.next/server/app/api/rate-limits/route_client-reference-manifest.js +1 -1
  351. package/app/.next/server/app/api/resilience/reset/route.js +1 -1
  352. package/app/.next/server/app/api/resilience/reset/route.js.nft.json +1 -1
  353. package/app/.next/server/app/api/resilience/reset/route_client-reference-manifest.js +1 -1
  354. package/app/.next/server/app/api/resilience/route.js +1 -1
  355. package/app/.next/server/app/api/resilience/route.js.nft.json +1 -1
  356. package/app/.next/server/app/api/resilience/route_client-reference-manifest.js +1 -1
  357. package/app/.next/server/app/api/restart/route.js +1 -1
  358. package/app/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  359. package/app/.next/server/app/api/sessions/route.js +1 -1
  360. package/app/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  361. package/app/.next/server/app/api/settings/background-degradation/route.js +1 -1
  362. package/app/.next/server/app/api/settings/background-degradation/route.js.nft.json +1 -1
  363. package/app/.next/server/app/api/settings/background-degradation/route_client-reference-manifest.js +1 -1
  364. package/app/.next/server/app/api/settings/combo-defaults/route.js +1 -1
  365. package/app/.next/server/app/api/settings/combo-defaults/route.js.nft.json +1 -1
  366. package/app/.next/server/app/api/settings/combo-defaults/route_client-reference-manifest.js +1 -1
  367. package/app/.next/server/app/api/settings/ip-filter/route.js +1 -1
  368. package/app/.next/server/app/api/settings/ip-filter/route_client-reference-manifest.js +1 -1
  369. package/app/.next/server/app/api/settings/model-aliases/route.js +1 -1
  370. package/app/.next/server/app/api/settings/model-aliases/route.js.nft.json +1 -1
  371. package/app/.next/server/app/api/settings/model-aliases/route_client-reference-manifest.js +1 -1
  372. package/app/.next/server/app/api/settings/proxy/route.js +1 -1
  373. package/app/.next/server/app/api/settings/proxy/route.js.nft.json +1 -1
  374. package/app/.next/server/app/api/settings/proxy/route_client-reference-manifest.js +1 -1
  375. package/app/.next/server/app/api/settings/proxy/test/route.js +1 -1
  376. package/app/.next/server/app/api/settings/proxy/test/route_client-reference-manifest.js +1 -1
  377. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  378. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  379. package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  380. package/app/.next/server/app/api/settings/route.js +1 -1
  381. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  382. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  383. package/app/.next/server/app/api/settings/system-prompt/route.js +1 -1
  384. package/app/.next/server/app/api/settings/system-prompt/route.js.nft.json +1 -1
  385. package/app/.next/server/app/api/settings/system-prompt/route_client-reference-manifest.js +1 -1
  386. package/app/.next/server/app/api/settings/task-routing/route.js +1 -1
  387. package/app/.next/server/app/api/settings/task-routing/route.js.nft.json +1 -1
  388. package/app/.next/server/app/api/settings/task-routing/route_client-reference-manifest.js +1 -1
  389. package/app/.next/server/app/api/settings/thinking-budget/route.js +1 -1
  390. package/app/.next/server/app/api/settings/thinking-budget/route.js.nft.json +1 -1
  391. package/app/.next/server/app/api/settings/thinking-budget/route_client-reference-manifest.js +1 -1
  392. package/app/.next/server/app/api/shutdown/route.js +1 -1
  393. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  394. package/app/.next/server/app/api/storage/health/route.js +1 -1
  395. package/app/.next/server/app/api/storage/health/route_client-reference-manifest.js +1 -1
  396. package/app/.next/server/app/api/sync/cloud/route.js +1 -1
  397. package/app/.next/server/app/api/sync/cloud/route.js.nft.json +1 -1
  398. package/app/.next/server/app/api/sync/cloud/route_client-reference-manifest.js +1 -1
  399. package/app/.next/server/app/api/sync/initialize/route.js +1 -1
  400. package/app/.next/server/app/api/sync/initialize/route.js.nft.json +1 -1
  401. package/app/.next/server/app/api/sync/initialize/route_client-reference-manifest.js +1 -1
  402. package/app/.next/server/app/api/tags/route.js +1 -1
  403. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  404. package/app/.next/server/app/api/telemetry/summary/route.js +1 -1
  405. package/app/.next/server/app/api/telemetry/summary/route_client-reference-manifest.js +1 -1
  406. package/app/.next/server/app/api/token-health/route.js +1 -1
  407. package/app/.next/server/app/api/token-health/route.js.nft.json +1 -1
  408. package/app/.next/server/app/api/token-health/route_client-reference-manifest.js +1 -1
  409. package/app/.next/server/app/api/translator/detect/route.js +1 -1
  410. package/app/.next/server/app/api/translator/detect/route_client-reference-manifest.js +1 -1
  411. package/app/.next/server/app/api/translator/history/route.js +1 -1
  412. package/app/.next/server/app/api/translator/history/route_client-reference-manifest.js +1 -1
  413. package/app/.next/server/app/api/translator/load/route.js +1 -1
  414. package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  415. package/app/.next/server/app/api/translator/save/route.js +1 -1
  416. package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  417. package/app/.next/server/app/api/translator/send/route.js +1 -1
  418. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  419. package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  420. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  421. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  422. package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  423. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  424. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  425. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  426. package/app/.next/server/app/api/usage/analytics/route.js +1 -1
  427. package/app/.next/server/app/api/usage/analytics/route.js.nft.json +1 -1
  428. package/app/.next/server/app/api/usage/analytics/route_client-reference-manifest.js +1 -1
  429. package/app/.next/server/app/api/usage/budget/route.js +2 -2
  430. package/app/.next/server/app/api/usage/budget/route.js.nft.json +1 -1
  431. package/app/.next/server/app/api/usage/budget/route_client-reference-manifest.js +1 -1
  432. package/app/.next/server/app/api/usage/call-logs/[id]/route.js +1 -1
  433. package/app/.next/server/app/api/usage/call-logs/[id]/route.js.nft.json +1 -1
  434. package/app/.next/server/app/api/usage/call-logs/[id]/route_client-reference-manifest.js +1 -1
  435. package/app/.next/server/app/api/usage/call-logs/route.js +1 -1
  436. package/app/.next/server/app/api/usage/call-logs/route.js.nft.json +1 -1
  437. package/app/.next/server/app/api/usage/call-logs/route_client-reference-manifest.js +1 -1
  438. package/app/.next/server/app/api/usage/history/route.js +1 -1
  439. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  440. package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  441. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  442. package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  443. package/app/.next/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
  444. package/app/.next/server/app/api/usage/proxy-logs/route.js +1 -1
  445. package/app/.next/server/app/api/usage/proxy-logs/route.js.nft.json +1 -1
  446. package/app/.next/server/app/api/usage/proxy-logs/route_client-reference-manifest.js +1 -1
  447. package/app/.next/server/app/api/usage/quota/route.js +1 -1
  448. package/app/.next/server/app/api/usage/quota/route.js.nft.json +1 -1
  449. package/app/.next/server/app/api/usage/quota/route_client-reference-manifest.js +1 -1
  450. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  451. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  452. package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  453. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  454. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  455. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  456. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  457. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  458. package/app/.next/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  459. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  460. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  461. package/app/.next/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  462. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  463. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  464. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  465. package/app/.next/server/app/api/v1/completions/route.js +1 -1
  466. package/app/.next/server/app/api/v1/completions/route.js.nft.json +1 -1
  467. package/app/.next/server/app/api/v1/completions/route_client-reference-manifest.js +1 -1
  468. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  469. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  470. package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  471. package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
  472. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  473. package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  474. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  475. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  476. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  477. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  478. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  479. package/app/.next/server/app/api/v1/models/route.js +1 -1
  480. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  481. package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  482. package/app/.next/server/app/api/v1/moderations/route.js +1 -1
  483. package/app/.next/server/app/api/v1/moderations/route.js.nft.json +1 -1
  484. package/app/.next/server/app/api/v1/moderations/route_client-reference-manifest.js +1 -1
  485. package/app/.next/server/app/api/v1/music/generations/route.js +1 -1
  486. package/app/.next/server/app/api/v1/music/generations/route.js.nft.json +1 -1
  487. package/app/.next/server/app/api/v1/music/generations/route_client-reference-manifest.js +1 -1
  488. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js +1 -1
  489. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js.nft.json +1 -1
  490. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route_client-reference-manifest.js +1 -1
  491. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js +1 -1
  492. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js.nft.json +1 -1
  493. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route_client-reference-manifest.js +1 -1
  494. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js +1 -1
  495. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js.nft.json +1 -1
  496. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route_client-reference-manifest.js +1 -1
  497. package/app/.next/server/app/api/v1/rerank/route.js +1 -1
  498. package/app/.next/server/app/api/v1/rerank/route.js.nft.json +1 -1
  499. package/app/.next/server/app/api/v1/rerank/route_client-reference-manifest.js +1 -1
  500. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  501. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  502. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  503. package/app/.next/server/app/api/v1/route.js +1 -1
  504. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  505. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  506. package/app/.next/server/app/api/v1/videos/generations/route.js +1 -1
  507. package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  508. package/app/.next/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -1
  509. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  510. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  511. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  512. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  513. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  514. package/app/.next/server/app/callback/page.js +2 -2
  515. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  516. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  517. package/app/.next/server/app/docs/page.js +3 -3
  518. package/app/.next/server/app/docs/page.js.nft.json +1 -1
  519. package/app/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  520. package/app/.next/server/app/forbidden/page.js +2 -2
  521. package/app/.next/server/app/forbidden/page.js.nft.json +1 -1
  522. package/app/.next/server/app/forbidden/page_client-reference-manifest.js +1 -1
  523. package/app/.next/server/app/forgot-password/page.js +2 -2
  524. package/app/.next/server/app/forgot-password/page.js.nft.json +1 -1
  525. package/app/.next/server/app/forgot-password/page_client-reference-manifest.js +1 -1
  526. package/app/.next/server/app/landing/page.js +2 -2
  527. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  528. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  529. package/app/.next/server/app/login/page.js +2 -2
  530. package/app/.next/server/app/login/page.js.nft.json +1 -1
  531. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  532. package/app/.next/server/app/maintenance/page.js +2 -2
  533. package/app/.next/server/app/maintenance/page.js.nft.json +1 -1
  534. package/app/.next/server/app/maintenance/page_client-reference-manifest.js +1 -1
  535. package/app/.next/server/app/offline/page.js +2 -2
  536. package/app/.next/server/app/offline/page.js.nft.json +1 -1
  537. package/app/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  538. package/app/.next/server/app/page.js +2 -2
  539. package/app/.next/server/app/page.js.nft.json +1 -1
  540. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  541. package/app/.next/server/app/privacy/page.js +2 -2
  542. package/app/.next/server/app/privacy/page.js.nft.json +1 -1
  543. package/app/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  544. package/app/.next/server/app/status/page.js +2 -2
  545. package/app/.next/server/app/status/page.js.nft.json +1 -1
  546. package/app/.next/server/app/status/page_client-reference-manifest.js +1 -1
  547. package/app/.next/server/app/terms/page.js +2 -2
  548. package/app/.next/server/app/terms/page.js.nft.json +1 -1
  549. package/app/.next/server/app/terms/page_client-reference-manifest.js +1 -1
  550. package/app/.next/server/app-paths-manifest.json +46 -46
  551. package/app/.next/server/chunks/1714.js +1 -1
  552. package/app/.next/server/chunks/1909.js +2 -0
  553. package/app/.next/server/chunks/2767.js +1 -1
  554. package/app/.next/server/chunks/2910.js +1 -1
  555. package/app/.next/server/chunks/3648.js +2 -2
  556. package/app/.next/server/chunks/438.js +1 -1
  557. package/app/.next/server/chunks/4488.js +1 -1
  558. package/app/.next/server/chunks/5419.js +1 -1
  559. package/app/.next/server/chunks/5979.js +1 -1
  560. package/app/.next/server/chunks/6743.js +1 -1
  561. package/app/.next/server/chunks/7109.js +1 -1
  562. package/app/.next/server/chunks/7167.js +1 -0
  563. package/app/.next/server/chunks/7544.js +3 -3
  564. package/app/.next/server/chunks/8020.js +3 -3
  565. package/app/.next/server/chunks/8907.js +1 -1
  566. package/app/.next/server/chunks/9548.js +1 -1
  567. package/app/.next/server/chunks/9648.js +3 -3
  568. package/app/.next/server/middleware-build-manifest.js +1 -1
  569. package/app/.next/server/middleware.js +2 -2
  570. package/app/.next/server/next-font-manifest.js +1 -1
  571. package/app/.next/server/next-font-manifest.json +1 -1
  572. package/app/.next/server/pages/500.html +2 -2
  573. package/app/.next/server/server-reference-manifest.js +1 -1
  574. package/app/.next/server/server-reference-manifest.json +1 -1
  575. package/app/.next/static/chunks/{5846-068be031a26b94e9.js → 5846-0c3d6fd54b6c15d6.js} +1 -1
  576. package/app/.next/static/chunks/647-bf8bc535ac3648d0.js +21 -0
  577. package/app/.next/static/chunks/app/(dashboard)/dashboard/a2a/page-ed1f5b1ae0e01c02.js +1 -0
  578. package/app/.next/static/chunks/app/(dashboard)/dashboard/agents/{page-94aa33336637e74c.js → page-576b27a05c09fba5.js} +1 -1
  579. package/app/.next/static/chunks/app/(dashboard)/dashboard/analytics/loading-6a2bb3ad980b05b9.js +1 -0
  580. package/app/.next/static/chunks/app/(dashboard)/dashboard/analytics/{page-bef5c045e7eae657.js → page-6ab7701da3357bb9.js} +1 -1
  581. package/app/.next/static/chunks/app/(dashboard)/dashboard/api-manager/page-027b3eb09d2d46e0.js +1 -0
  582. package/app/.next/static/chunks/app/(dashboard)/dashboard/audit-log/page-c9b98846b8479f3f.js +1 -0
  583. package/app/.next/static/chunks/app/(dashboard)/dashboard/auto-combo/{page-fbf2315ef6ecc87a.js → page-799e2f96e9af3fd9.js} +1 -1
  584. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-3c3f3b0b558e9302.js +15 -0
  585. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-81244e4816fac7ea.js +1 -0
  586. package/app/.next/static/chunks/app/(dashboard)/dashboard/costs/{page-7a233357dfbd2e05.js → page-8f6233f59f5277e9.js} +1 -1
  587. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-8b96e2f6d76d6f2d.js +1 -0
  588. package/app/.next/static/chunks/app/(dashboard)/dashboard/health/{page-66ee4e631429e0d8.js → page-1e1eb2f79d606ab2.js} +1 -1
  589. package/app/.next/static/chunks/app/(dashboard)/dashboard/limits/page-0e815a4ec696dd63.js +1 -0
  590. package/app/.next/static/chunks/app/(dashboard)/dashboard/logs/{page-f08daa44ccbeb258.js → page-2d456b7ddbf3d41e.js} +1 -1
  591. package/app/.next/static/chunks/app/(dashboard)/dashboard/mcp/page-d9b5c3282ec5d809.js +1 -0
  592. package/app/.next/static/chunks/app/(dashboard)/dashboard/media/page-5ed5bdc9e926936c.js +1 -0
  593. package/app/.next/static/chunks/app/(dashboard)/dashboard/onboarding/{page-d424641c7e428be9.js → page-5378e9473a20cd6a.js} +1 -1
  594. package/app/.next/static/chunks/app/(dashboard)/dashboard/{page-fc5b6d46662747df.js → page-799001b6cea7d5bc.js} +1 -1
  595. package/app/.next/static/chunks/app/(dashboard)/dashboard/playground/{page-6d988d37ce3b0e60.js → page-0fff47edc56250ea.js} +1 -1
  596. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f9cc44c947796a9e.js +1 -0
  597. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/{error-0400f175dd1372fa.js → error-a5ae03ba05400b04.js} +1 -1
  598. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/loading-7deaa9f550841465.js +1 -0
  599. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-3ef302da4b756e50.js +1 -0
  600. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/{page-adbd858f2a6cd352.js → page-fbf74ae2f3206efe.js} +1 -1
  601. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/{error-c39d18f10fb7d3f6.js → error-ec9643134a96bbcd.js} +1 -1
  602. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/{loading-b5faf05c78a2cc54.js → loading-3519a633b514f31a.js} +1 -1
  603. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/{page-6b38a30bfddf3b89.js → page-cbaa4b638a583fe9.js} +1 -1
  604. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/pricing/{page-0325206d05e6f375.js → page-aab023f14c6ff966.js} +1 -1
  605. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/{page-f761c3ff75d56636.js → page-8d6f629e0e29e796.js} +2 -2
  606. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-8c8f2d59d0cbb516.js +1 -0
  607. package/app/.next/static/chunks/app/(dashboard)/{layout-6d0afc53f5f2a538.js → layout-7ae0c66c22bee8a1.js} +1 -1
  608. package/app/.next/static/chunks/app/400/{page-3b77bf358909019a.js → page-3b9079ea400ca287.js} +1 -1
  609. package/app/.next/static/chunks/app/401/{page-3b77bf358909019a.js → page-3b9079ea400ca287.js} +1 -1
  610. package/app/.next/static/chunks/app/403/{page-3b77bf358909019a.js → page-3b9079ea400ca287.js} +1 -1
  611. package/app/.next/static/chunks/app/408/{page-3b77bf358909019a.js → page-3b9079ea400ca287.js} +1 -1
  612. package/app/.next/static/chunks/app/429/page-3b9079ea400ca287.js +1 -0
  613. package/app/.next/static/chunks/app/500/page-3b9079ea400ca287.js +1 -0
  614. package/app/.next/static/chunks/app/502/page-3b9079ea400ca287.js +1 -0
  615. package/app/.next/static/chunks/app/503/page-3b9079ea400ca287.js +1 -0
  616. package/app/.next/static/chunks/app/callback/{page-585a53f7dc6a30f1.js → page-0f0ebc0820dd18a5.js} +1 -1
  617. package/app/.next/static/chunks/app/docs/{page-9624e5fb8cabf7d8.js → page-dc88e0a01d291518.js} +1 -1
  618. package/app/.next/static/chunks/app/{error-f7f595c541537e63.js → error-32c03f14529d3920.js} +1 -1
  619. package/app/.next/static/chunks/app/forbidden/page-8d8e1709a1e32585.js +1 -0
  620. package/app/.next/static/chunks/app/forgot-password/page-d5c9b77748aa9deb.js +1 -0
  621. package/app/.next/static/chunks/app/global-error-5840b1caa830f2ec.js +1 -0
  622. package/app/.next/static/chunks/app/landing/page-8f652c1fbc33efd2.js +1 -0
  623. package/app/.next/static/chunks/app/{layout-108592eafb959363.js → layout-070972eb026af319.js} +1 -1
  624. package/app/.next/static/chunks/app/{loading-e063375d5b12a2f7.js → loading-da2f6e1471afc070.js} +1 -1
  625. package/app/.next/static/chunks/app/login/{page-cf6b82187b09a701.js → page-26d717c652d56032.js} +1 -1
  626. package/app/.next/static/chunks/app/maintenance/page-3b9079ea400ca287.js +1 -0
  627. package/app/.next/static/chunks/app/not-found-faf36d2a9a452506.js +1 -0
  628. package/app/.next/static/chunks/app/offline/page-bf68bf461af876a3.js +1 -0
  629. package/app/.next/static/chunks/app/privacy/{page-9624e5fb8cabf7d8.js → page-dc88e0a01d291518.js} +1 -1
  630. package/app/.next/static/chunks/app/status/page-29a433b40631ce12.js +1 -0
  631. package/app/.next/static/chunks/app/terms/{page-9624e5fb8cabf7d8.js → page-dc88e0a01d291518.js} +1 -1
  632. package/app/.next/static/chunks/{main-app-c9da11a8061df107.js → main-app-ae230f6bf51a5edb.js} +1 -1
  633. package/app/.next/static/css/0a5545f707228079.css +1 -0
  634. package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  635. package/app/package.json +1 -1
  636. package/app/server.js +1 -1
  637. package/package.json +1 -1
  638. package/app/.next/server/chunks/5248.js +0 -1
  639. package/app/.next/server/chunks/7889.js +0 -2
  640. package/app/.next/static/chunks/647-c510d5999ec9e6de.js +0 -21
  641. package/app/.next/static/chunks/app/(dashboard)/dashboard/a2a/page-43d6fa6b75cca497.js +0 -1
  642. package/app/.next/static/chunks/app/(dashboard)/dashboard/analytics/loading-49ae846d72948391.js +0 -1
  643. package/app/.next/static/chunks/app/(dashboard)/dashboard/api-manager/page-16f886b3711a6a50.js +0 -1
  644. package/app/.next/static/chunks/app/(dashboard)/dashboard/audit-log/page-e5bf8955e7b9a4f5.js +0 -1
  645. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-1d9c62ff735ac65a.js +0 -15
  646. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-29d0d8687e07fa51.js +0 -1
  647. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-81a6632af8c82919.js +0 -1
  648. package/app/.next/static/chunks/app/(dashboard)/dashboard/limits/page-c979e11de71281de.js +0 -1
  649. package/app/.next/static/chunks/app/(dashboard)/dashboard/mcp/page-8e35334b9f393139.js +0 -1
  650. package/app/.next/static/chunks/app/(dashboard)/dashboard/media/page-4e1629fc8404b3b9.js +0 -1
  651. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7743c2adf72ce8e7.js +0 -1
  652. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/loading-9552383fd2e11282.js +0 -1
  653. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-d57908b59d4b482c.js +0 -1
  654. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-9e20463252daf023.js +0 -1
  655. package/app/.next/static/chunks/app/429/page-3b77bf358909019a.js +0 -1
  656. package/app/.next/static/chunks/app/500/page-3b77bf358909019a.js +0 -1
  657. package/app/.next/static/chunks/app/502/page-3b77bf358909019a.js +0 -1
  658. package/app/.next/static/chunks/app/503/page-3b77bf358909019a.js +0 -1
  659. package/app/.next/static/chunks/app/forbidden/page-b33079c1573b0bfa.js +0 -1
  660. package/app/.next/static/chunks/app/forgot-password/page-90cd6259c75badfc.js +0 -1
  661. package/app/.next/static/chunks/app/global-error-1dfd1c91ad5199fe.js +0 -1
  662. package/app/.next/static/chunks/app/landing/page-90df98c27fe0b5d9.js +0 -1
  663. package/app/.next/static/chunks/app/maintenance/page-3b77bf358909019a.js +0 -1
  664. package/app/.next/static/chunks/app/not-found-511518956bcae7bc.js +0 -1
  665. package/app/.next/static/chunks/app/offline/page-9d6ea493783a0219.js +0 -1
  666. package/app/.next/static/chunks/app/status/page-4e5e9b5a513aa474.js +0 -1
  667. package/app/.next/static/css/b93e9b9a311fe988.css +0 -1
  668. /package/app/.next/static/{WQyYH-3KhogI83mFSP51u → o8WBqfJ0SRdH9DLLnYqcX}/_buildManifest.js +0 -0
  669. /package/app/.next/static/{WQyYH-3KhogI83mFSP51u → o8WBqfJ0SRdH9DLLnYqcX}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- exports.id=6743,exports.ids=[6743],exports.modules={300:(a,b,c)=>{"use strict";c.d(b,{Zr:()=>e});let d=a=>b=>{try{let c=a(b);if(c instanceof Promise)return c;return{then:a=>d(a)(c),catch(a){return this}}}catch(a){return{then(a){return this},catch:b=>d(b)(a)}}},e=(a,b)=>(c,e,f)=>{let g,h={storage:function(a,b){let c;try{c=a()}catch(a){return}return{getItem:a=>{var b;let d=a=>null===a?null:JSON.parse(a,void 0),e=null!=(b=c.getItem(a))?b:null;return e instanceof Promise?e.then(d):d(e)},setItem:(a,b)=>c.setItem(a,JSON.stringify(b,void 0)),removeItem:a=>c.removeItem(a)}}(()=>window.localStorage),partialize:a=>a,version:0,merge:(a,b)=>({...b,...a}),...b},i=!1,j=0,k=new Set,l=new Set,m=h.storage;if(!m)return a((...a)=>{console.warn(`[zustand persist middleware] Unable to update item '${h.name}', the given storage is currently unavailable.`),c(...a)},e,f);let n=()=>{let a=h.partialize({...e()});return m.setItem(h.name,{state:a,version:h.version})},o=f.setState;f.setState=(a,b)=>(o(a,b),n());let p=a((...a)=>(c(...a),n()),e,f);f.getInitialState=()=>p;let q=()=>{var a,b;if(!m)return;let f=++j;i=!1,k.forEach(a=>{var b;return a(null!=(b=e())?b:p)});let o=(null==(b=h.onRehydrateStorage)?void 0:b.call(h,null!=(a=e())?a:p))||void 0;return d(m.getItem.bind(m))(h.name).then(a=>{if(a)if("number"!=typeof a.version||a.version===h.version)return[!1,a.state];else{if(h.migrate){let b=h.migrate(a.state,a.version);return b instanceof Promise?b.then(a=>[!0,a]):[!0,b]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(a=>{var b;if(f!==j)return;let[d,i]=a;if(c(g=h.merge(i,null!=(b=e())?b:p),!0),d)return n()}).then(()=>{f===j&&(null==o||o(g,void 0),g=e(),i=!0,l.forEach(a=>a(g)))}).catch(a=>{f===j&&(null==o||o(void 0,a))})};return f.persist={setOptions:a=>{h={...h,...a},a.storage&&(m=a.storage)},clearStorage:()=>{null==m||m.removeItem(h.name)},getOptions:()=>h,rehydrate:()=>q(),hasHydrated:()=>i,onHydrate:a=>(k.add(a),()=>{k.delete(a)}),onFinishHydration:a=>(l.add(a),()=>{l.delete(a)})},h.skipHydration||q(),g||p}},3575:(a,b,c)=>{"use strict";c.d(b,{I:()=>f,a:()=>g,b:()=>h,c:()=>k,m:()=>i});var d,e=c(14462);class f extends Error{constructor(a,b){let c=a;b&&(c+=": "+b),super(c),this.code=a,b&&(this.originalMessage=b)}}var g=((d=g||{}).MISSING_MESSAGE="MISSING_MESSAGE",d.MISSING_FORMAT="MISSING_FORMAT",d.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",d.INSUFFICIENT_PATH="INSUFFICIENT_PATH",d.INVALID_MESSAGE="INVALID_MESSAGE",d.INVALID_KEY="INVALID_KEY",d.FORMATTING_ERROR="FORMATTING_ERROR",d);function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function i(a,b){return(0,e.B)(a,{cache:{create:()=>({get:a=>b[a],set(a,c){b[a]=c}})},strategy:e.W.variadic})}function j(a,b){return i((...b)=>new a(...b),b)}function k(a){return{getDateTimeFormat:j(Intl.DateTimeFormat,a.dateTime),getNumberFormat:j(Intl.NumberFormat,a.number),getPluralRules:j(Intl.PluralRules,a.pluralRules),getRelativeTimeFormat:j(Intl.RelativeTimeFormat,a.relativeTime),getListFormat:j(Intl.ListFormat,a.list),getDisplayNames:j(Intl.DisplayNames,a.displayNames)}}},14462:(a,b,c)=>{"use strict";function d(a,b){let c=b&&b.cache?b.cache:i,d=b&&b.serializer?b.serializer:g;return(b&&b.strategy?b.strategy:function(a,b){var c,d;let g=1===a.length?e:f;return c=b.cache.create(),d=b.serializer,g.bind(this,a,c,d)})(a,{cache:c,serializer:d})}function e(a,b,c,d){let e=null==d||"number"==typeof d||"boolean"==typeof d?d:c(d),f=b.get(e);return void 0===f&&(f=a.call(this,d),b.set(e,f)),f}function f(a,b,c){let d=Array.prototype.slice.call(arguments,3),e=c(d),f=b.get(e);return void 0===f&&(f=a.apply(this,d),b.set(e,f)),f}c.d(b,{B:()=>d,W:()=>j});let g=function(){return JSON.stringify(arguments)};class h{cache;constructor(){this.cache=Object.create(null)}get(a){return this.cache[a]}set(a,b){this.cache[a]=b}}let i={create:function(){return new h}},j={variadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,f.bind(this,a,c,d)},monadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,e.bind(this,a,c,d)}}},23807:(a,b,c)=>{"use strict";c.d(b,{A:()=>r});var d=c(91986),e=c(3575),f=c(92207);function g(a){return"function"==typeof a.then}var h=c(65573);let i=(0,d.cache)(function(){return{locale:void 0}}),j=(0,d.cache)(async function(){let a=(0,h.b3)();return g(a)?await a:a}),k=(0,d.cache)(async function(){let a;try{a=(await j()).get("X-NEXT-INTL-LOCALE")||void 0}catch(a){if(a instanceof Error&&"DYNAMIC_SERVER_USAGE"===a.digest){let b=Error("Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap solution, you can use the `setRequestLocale` API to enable static rendering, see https://next-intl.dev/docs/routing/setup#static-rendering",{cause:a});throw b.digest=a.digest,b}throw a}return a});async function l(){return i().locale||await k()}var m=c(79803);let n=(0,d.cache)(function(){return Intl.DateTimeFormat().resolvedOptions().timeZone}),o=(0,d.cache)(async function(a,b){let c=a({locale:b,get requestLocale(){return b?Promise.resolve(b):l()}});if(g(c)&&(c=await c),!c.locale)throw Error("No locale was returned from `getRequestConfig`.\n\nSee https://next-intl.dev/docs/usage/configuration#i18n-request");return c}),p=(0,d.cache)(e.c),q=(0,d.cache)(e.b),r=(0,d.cache)(async function(a){let b=await o(m.A,a);return{...(0,f.i)(b),_formatters:p(q()),timeZone:b.timeZone||n()}})},28440:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(a){var b=await (0,e.A)(a);if(!b.messages)throw Error("No messages found. Have you configured them correctly? See https://next-intl.dev/docs/configuration#messages");return b.messages});async function g(a){return f(a?.locale)}},29389:(a,b,c)=>{"use strict";function d(a){return a}c.d(b,{A:()=>d})},31417:(a,b,c)=>{"use strict";c.d(b,{v:()=>g});var d=c(67484);let e=a=>{let b,c=new Set,d=(a,d)=>{let e="function"==typeof a?a(b):a;if(!Object.is(e,b)){let a=b;b=(null!=d?d:"object"!=typeof e||null===e)?e:Object.assign({},b,e),c.forEach(c=>c(b,a))}},e=()=>b,f={setState:d,getState:e,getInitialState:()=>g,subscribe:a=>(c.add(a),()=>c.delete(a))},g=b=a(d,e,f);return f},f=a=>{let b=a?e(a):e,c=a=>(function(a,b=a=>a){let c=d.useSyncExternalStore(a.subscribe,d.useCallback(()=>b(a.getState()),[a,b]),d.useCallback(()=>b(a.getInitialState()),[a,b]));return d.useDebugValue(c),c})(b,a);return Object.assign(c,b),c},g=a=>a?f(a):f},50609:a=>{a.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},62026:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(){return(await (0,e.A)()).locale})},62626:(a,b,c)=>{"use strict";c.d(b,{default:()=>f});var d=c(89400),e=c(48249);function f({locale:a,...b}){if(!a)throw Error(void 0);return(0,e.jsx)(d.Dk,{locale:a,...b})}},68625:(a,b,c)=>{"use strict";c.d(b,{A:()=>n});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(a){return(await (0,e.A)(a)).now}),g=(0,d.cache)(async function(){return(await (0,e.A)()).formats});var h=c(86392),i=c(5735);let j=(0,d.cache)(async function(a){return(await (0,e.A)(a)).timeZone});async function k(a){return j(a?.locale)}var l=c(28440),m=c(62026);async function n({formats:a,locale:b,messages:c,now:d,timeZone:e,...j}){return(0,i.jsx)(h.default,{formats:void 0===a?await g():a,locale:b??await (0,m.A)(),messages:void 0===c?await (0,l.A)():c,now:d??await f(),timeZone:e??await k(),...j})}},86392:(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 \"/home/runner/work/OmniRoute/OmniRoute/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.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.")},"/home/runner/work/OmniRoute/OmniRoute/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js","default")},89400:(a,b,c)=>{"use strict";c.d(b,{Dk:()=>av,kc:()=>aB,Ym:()=>aA,c3:()=>az});var d,e,f,g,h,i,j=c(67484);function k(a,b){let c=b&&b.cache?b.cache:p,d=b&&b.serializer?b.serializer:n;return(b&&b.strategy?b.strategy:function(a,b){var c,d;let e=1===a.length?l:m;return c=b.cache.create(),d=b.serializer,e.bind(this,a,c,d)})(a,{cache:c,serializer:d})}function l(a,b,c,d){let e=null==d||"number"==typeof d||"boolean"==typeof d?d:c(d),f=b.get(e);return void 0===f&&(f=a.call(this,d),b.set(e,f)),f}function m(a,b,c){let d=Array.prototype.slice.call(arguments,3),e=c(d),f=b.get(e);return void 0===f&&(f=a.apply(this,d),b.set(e,f)),f}let n=function(){return JSON.stringify(arguments)};class o{cache;constructor(){this.cache=Object.create(null)}get(a){return this.cache[a]}set(a,b){this.cache[a]=b}}let p={create:function(){return new o}},q={variadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,m.bind(this,a,c,d)},monadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,l.bind(this,a,c,d)}};class r extends Error{constructor(a,b){let c=a;b&&(c+=": "+b),super(c),this.code=a,b&&(this.originalMessage=b)}}var s=((d=s||{}).MISSING_MESSAGE="MISSING_MESSAGE",d.MISSING_FORMAT="MISSING_FORMAT",d.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",d.INSUFFICIENT_PATH="INSUFFICIENT_PATH",d.INVALID_MESSAGE="INVALID_MESSAGE",d.INVALID_KEY="INVALID_KEY",d.FORMATTING_ERROR="FORMATTING_ERROR",d);function t(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(a,b){return k(a,{cache:{create:()=>({get:a=>b[a],set(a,c){b[a]=c}})},strategy:q.variadic})}function v(a,b){return u((...b)=>new a(...b),b)}function w(a){return{getDateTimeFormat:v(Intl.DateTimeFormat,a.dateTime),getNumberFormat:v(Intl.NumberFormat,a.number),getPluralRules:v(Intl.PluralRules,a.pluralRules),getRelativeTimeFormat:v(Intl.RelativeTimeFormat,a.relativeTime),getListFormat:v(Intl.ListFormat,a.list),getDisplayNames:v(Intl.DisplayNames,a.displayNames)}}let x=((e={})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e),y=((f={})[f.number=0]="number",f[f.dateTime=1]="dateTime",f);function z(a){return a.type===x.literal}function A(a){return a.type===x.number}function B(a){return a.type===x.date}function C(a){return a.type===x.time}function D(a){return a.type===x.select}function E(a){return a.type===x.plural}function F(a){return a.type===x.tag}function G(a){return!!(a&&"object"==typeof a&&a.type===y.number)}function H(a){return!!(a&&"object"==typeof a&&a.type===y.dateTime)}let I=((g={})[g.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",g[g.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",g[g.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",g[g.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",g[g.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",g[g.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",g[g.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",g[g.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",g[g.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",g[g.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",g[g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",g[g.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",g[g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",g[g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",g[g.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",g[g.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",g[g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",g[g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",g[g.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",g[g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",g[g.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",g[g.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",g[g.INVALID_TAG=23]="INVALID_TAG",g[g.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",g[g.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",g[g.UNCLOSED_TAG=27]="UNCLOSED_TAG",g),J=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,L=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,M=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function Q(a){let b={};return"r"===a[a.length-1]?b.roundingPriority="morePrecision":"s"===a[a.length-1]&&(b.roundingPriority="lessPrecision"),a.replace(N,function(a,c,d){return"string"!=typeof d?(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length):"+"===d?b.minimumSignificantDigits=c.length:"#"===c[0]?b.maximumSignificantDigits=c.length:(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length+("string"==typeof d?d.length:0)),""}),b}function R(a){switch(a){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function S(a){let b=R(a);return b||{}}let T={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},U=RegExp(`^${J.source}*`),V=RegExp(`${J.source}*$`);function W(a,b){return{start:a,end:b}}let X=!!Object.fromEntries,Y=!!String.prototype.trimStart,Z=!!String.prototype.trimEnd,$=X?Object.fromEntries:function(a){let b={};for(let[c,d]of a)b[c]=d;return b},_=Y?function(a){return a.trimStart()}:function(a){return a.replace(U,"")},aa=Z?function(a){return a.trimEnd()}:function(a){return a.replace(V,"")},ab=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class ac{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(a,b={}){this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!b.ignoreTag,this.locale=b.locale,this.requiresOtherClause=!!b.requiresOtherClause,this.shouldParseSkeletons=!!b.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(a,b,c){let d=[];for(;!this.isEOF();){let e=this.char();if(123===e){let b=this.parseArgument(a,c);if(b.err)return b;d.push(b.val)}else if(125===e&&a>0)break;else if(35===e&&("plural"===b||"selectordinal"===b)){let a=this.clonePosition();this.bump(),d.push({type:x.pound,location:W(a,this.clonePosition())})}else if(60!==e||this.ignoreTag||47!==this.peek())if(60===e&&!this.ignoreTag&&ad(this.peek()||0)){let c=this.parseTag(a,b);if(c.err)return c;d.push(c.val)}else{let c=this.parseLiteral(a,b);if(c.err)return c;d.push(c.val)}else if(!c)return this.error(I.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()));else break}return{val:d,err:null}}parseTag(a,b){let c=this.clonePosition();this.bump();let d=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:x.literal,value:`<${d}/>`,location:W(c,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(I.INVALID_TAG,W(c,this.clonePosition()));{let e=this.parseMessage(a+1,b,!0);if(e.err)return e;let f=e.val,g=this.clonePosition();if(!this.bumpIf("</"))return this.error(I.UNCLOSED_TAG,W(c,this.clonePosition()));{if(this.isEOF()||!ad(this.char()))return this.error(I.INVALID_TAG,W(g,this.clonePosition()));let a=this.clonePosition();return d!==this.parseTagName()?this.error(I.UNMATCHED_CLOSING_TAG,W(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:x.tag,value:d,children:f,location:W(c,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,W(g,this.clonePosition()))}}}parseTagName(){var a;let b=this.offset();for(this.bump();!this.isEOF()&&(45===(a=this.char())||46===a||a>=48&&a<=57||95===a||a>=97&&a<=122||a>=65&&a<=90||183==a||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039);)this.bump();return this.message.slice(b,this.offset())}parseLiteral(a,b){let c=this.clonePosition(),d="";for(;;){let c=this.tryParseQuote(b);if(c){d+=c;continue}let e=this.tryParseUnquoted(a,b);if(e){d+=e;continue}let f=this.tryParseLeftAngleBracket();if(f){d+=f;continue}break}let e=W(c,this.clonePosition());return{val:{type:x.literal,value:d,location:e},err:null}}tryParseLeftAngleBracket(){var a;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ad(a=this.peek()||0)||47===a)?null:(this.bump(),"<")}tryParseQuote(a){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===a||"selectordinal"===a)break;return null;default:return null}this.bump();let b=[this.char()];for(this.bump();!this.isEOF();){let a=this.char();if(39===a)if(39===this.peek())b.push(39),this.bump();else{this.bump();break}else b.push(a);this.bump()}return String.fromCodePoint(...b)}tryParseUnquoted(a,b){if(this.isEOF())return null;let c=this.char();return 60===c||123===c||35===c&&("plural"===b||"selectordinal"===b)||125===c&&a>0?null:(this.bump(),String.fromCodePoint(c))}parseArgument(a,b){let c=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));if(125===this.char())return this.bump(),this.error(I.EMPTY_ARGUMENT,W(c,this.clonePosition()));let d=this.parseIdentifierIfPossible().value;if(!d)return this.error(I.MALFORMED_ARGUMENT,W(c,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:x.argument,value:d,location:W(c,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));return this.parseArgumentOptions(a,b,d,c);default:return this.error(I.MALFORMED_ARGUMENT,W(c,this.clonePosition()))}}parseIdentifierIfPossible(){var a;let b=this.clonePosition(),c=this.offset(),d=(a=this.message,ab.lastIndex=c,ab.exec(a)[1]??""),e=c+d.length;return this.bumpTo(e),{value:d,location:W(b,this.clonePosition())}}parseArgumentOptions(a,b,c,d){let e=this.clonePosition(),f=this.parseIdentifierIfPossible().value,g=this.clonePosition();switch(f){case"":return this.error(I.EXPECT_ARGUMENT_TYPE,W(e,g));case"number":case"date":case"time":{this.bumpSpace();let a=null;if(this.bumpIf(",")){this.bumpSpace();let b=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;let d=aa(c.val);if(0===d.length)return this.error(I.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));a={style:d,styleLocation:W(b,this.clonePosition())}}let b=this.tryParseArgumentClose(d);if(b.err)return b;let e=W(d,this.clonePosition());if(a&&a.style.startsWith("::")){let b=_(a.style.slice(2));if("number"===f){let d=this.parseNumberSkeletonFromString(b,a.styleLocation);if(d.err)return d;return{val:{type:x.number,value:c,location:e,style:d.val},err:null}}{let d;if(0===b.length)return this.error(I.EXPECT_DATE_TIME_SKELETON,e);let g=b;this.locale&&(g=function(a,b){let c="";for(let d=0;d<a.length;d++){let e=a.charAt(d);if("j"===e){let f=0;for(;d+1<a.length&&a.charAt(d+1)===e;)f++,d++;let g=1+(1&f),h=f<2?1:3+(f>>1),i=function(a){let b,c=a.hourCycle;if(void 0===c&&a.hourCycles&&a.hourCycles.length&&(c=a.hourCycles[0]),c)switch(c){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let d=a.language;return"root"!==d&&(b=a.maximize().region),(T[b||""]||T[d||""]||T[`${d}-001`]||T["001"])[0]}(b);for(("H"==i||"k"==i)&&(h=0);h-- >0;)c+="a";for(;g-- >0;)c=i+c}else"J"===e?c+="H":c+=e}return c}(b,this.locale));let h={type:y.dateTime,pattern:g,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?(d={},g.replace(K,a=>{let b=a.length;switch(a[0]){case"G":d.era=4===b?"long":5===b?"narrow":"short";break;case"y":d.year=2===b?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":d.month=["numeric","2-digit","short","long","narrow"][b-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":d.day=["numeric","2-digit"][b-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":d.weekday=4===b?"long":5===b?"narrow":"short";break;case"e":if(b<4)throw RangeError("`e..eee` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"c":if(b<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"a":d.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":d.hourCycle="h12",d.hour=["numeric","2-digit"][b-1];break;case"H":d.hourCycle="h23",d.hour=["numeric","2-digit"][b-1];break;case"K":d.hourCycle="h11",d.hour=["numeric","2-digit"][b-1];break;case"k":d.hourCycle="h24",d.hour=["numeric","2-digit"][b-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":d.minute=["numeric","2-digit"][b-1];break;case"s":d.second=["numeric","2-digit"][b-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":d.timeZoneName=b<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),d):{}};return{val:{type:"date"===f?x.date:x.time,value:c,location:e,style:h},err:null}}}return{val:{type:"number"===f?x.number:"date"===f?x.date:x.time,value:c,location:e,style:a?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let e=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,W(e,{...e}));this.bumpSpace();let g=this.parseIdentifierIfPossible(),h=0;if("select"!==f&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();let a=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(a.err)return a;this.bumpSpace(),g=this.parseIdentifierIfPossible(),h=a.val}let i=this.tryParsePluralOrSelectOptions(a,f,b,g);if(i.err)return i;let j=this.tryParseArgumentClose(d);if(j.err)return j;let k=W(d,this.clonePosition());if("select"===f)return{val:{type:x.select,value:c,options:$(i.val),location:k},err:null};return{val:{type:x.plural,value:c,options:$(i.val),offset:h,pluralType:"plural"===f?"cardinal":"ordinal",location:k},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,W(e,g))}}tryParseArgumentClose(a){return this.isEOF()||125!==this.char()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(a,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let a=0,b=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(a,this.clonePosition()));this.bump();break}case 123:a+=1,this.bump();break;case 125:if(!(a>0))return{val:this.message.slice(b.offset,this.offset()),err:null};a-=1;break;default:this.bump()}return{val:this.message.slice(b.offset,this.offset()),err:null}}parseNumberSkeletonFromString(a,b){let c=[];try{c=function(a){if(0===a.length)throw Error("Number skeleton cannot be empty");let b=a.split(L).filter(a=>a.length>0),c=[];for(let a of b){let b=a.split("/");if(0===b.length)throw Error("Invalid number skeleton");let[d,...e]=b;for(let a of e)if(0===a.length)throw Error("Invalid number skeleton");c.push({stem:d,options:e})}return c}(a)}catch{return this.error(I.INVALID_NUMBER_SKELETON,b)}return{val:{type:y.number,tokens:c,location:b,parsedOptions:this.shouldParseSkeletons?function(a){let b={};for(let c of a){switch(c.stem){case"percent":case"%":b.style="percent";continue;case"%x100":b.style="percent",b.scale=100;continue;case"currency":b.style="currency",b.currency=c.options[0];continue;case"group-off":case",_":b.useGrouping=!1;continue;case"precision-integer":case".":b.maximumFractionDigits=0;continue;case"measure-unit":case"unit":b.style="unit",b.unit=c.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":b.notation="compact",b.compactDisplay="short";continue;case"compact-long":case"KK":b.notation="compact",b.compactDisplay="long";continue;case"scientific":b={...b,notation:"scientific",...c.options.reduce((a,b)=>({...a,...S(b)}),{})};continue;case"engineering":b={...b,notation:"engineering",...c.options.reduce((a,b)=>({...a,...S(b)}),{})};continue;case"notation-simple":b.notation="standard";continue;case"unit-width-narrow":b.currencyDisplay="narrowSymbol",b.unitDisplay="narrow";continue;case"unit-width-short":b.currencyDisplay="code",b.unitDisplay="short";continue;case"unit-width-full-name":b.currencyDisplay="name",b.unitDisplay="long";continue;case"unit-width-iso-code":b.currencyDisplay="symbol";continue;case"scale":b.scale=parseFloat(c.options[0]);continue;case"rounding-mode-floor":b.roundingMode="floor";continue;case"rounding-mode-ceiling":b.roundingMode="ceil";continue;case"rounding-mode-down":b.roundingMode="trunc";continue;case"rounding-mode-up":b.roundingMode="expand";continue;case"rounding-mode-half-even":b.roundingMode="halfEven";continue;case"rounding-mode-half-down":b.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":b.roundingMode="halfExpand";continue;case"integer-width":if(c.options.length>1)throw RangeError("integer-width stems only accept a single optional option");c.options[0].replace(O,function(a,c,d,e,f,g){if(c)b.minimumIntegerDigits=d.length;else if(e&&f)throw Error("We currently do not support maximum integer digits");else if(g)throw Error("We currently do not support exact integer digits");return""});continue}if(P.test(c.stem)){b.minimumIntegerDigits=c.stem.length;continue}if(M.test(c.stem)){if(c.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");c.stem.replace(M,function(a,c,d,e,f,g){return"*"===d?b.minimumFractionDigits=c.length:e&&"#"===e[0]?b.maximumFractionDigits=e.length:f&&g?(b.minimumFractionDigits=f.length,b.maximumFractionDigits=f.length+g.length):(b.minimumFractionDigits=c.length,b.maximumFractionDigits=c.length),""});let a=c.options[0];"w"===a?b={...b,trailingZeroDisplay:"stripIfInteger"}:a&&(b={...b,...Q(a)});continue}if(N.test(c.stem)){b={...b,...Q(c.stem)};continue}let a=R(c.stem);a&&(b={...b,...a});let d=function(a){let b;if("E"===a[0]&&"E"===a[1]?(b={notation:"engineering"},a=a.slice(2)):"E"===a[0]&&(b={notation:"scientific"},a=a.slice(1)),b){let c=a.slice(0,2);if("+!"===c?(b.signDisplay="always",a=a.slice(2)):"+?"===c&&(b.signDisplay="exceptZero",a=a.slice(2)),!P.test(a))throw Error("Malformed concise eng/scientific notation");b.minimumIntegerDigits=a.length}return b}(c.stem);d&&(b={...b,...d})}return b}(c):{}},err:null}}tryParsePluralOrSelectOptions(a,b,c,d){let e=!1,f=[],g=new Set,{value:h,location:i}=d;for(;;){if(0===h.length){let a=this.clonePosition();if("select"!==b&&this.bumpIf("=")){let b=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;i=W(a,this.clonePosition()),h=this.message.slice(a.offset,this.offset())}else break}if(g.has(h))return this.error("select"===b?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,i);"other"===h&&(e=!0),this.bumpSpace();let d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===b?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));let j=this.parseMessage(a+1,b,c);if(j.err)return j;let k=this.tryParseArgumentClose(d);if(k.err)return k;f.push([h,{value:j.val,location:W(d,this.clonePosition())}]),g.add(h),this.bumpSpace(),{value:h,location:i}=this.parseIdentifierIfPossible()}return 0===f.length?this.error("select"===b?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!e?this.error(I.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:f,err:null}}tryParseDecimalInteger(a,b){let c=1,d=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(c=-1);let e=!1,f=0;for(;!this.isEOF();){let a=this.char();if(a>=48&&a<=57)e=!0,f=10*f+(a-48),this.bump();else break}let g=W(d,this.clonePosition());return e?Number.isSafeInteger(f*=c)?{val:f,err:null}:this.error(b,g):this.error(a,g)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");let b=this.message.codePointAt(a);if(void 0===b)throw Error(`Offset ${a} is at invalid UTF-16 code unit boundary`);return b}error(a,b){return{val:null,err:{kind:a,message:this.message,location:b}}}bump(){if(this.isEOF())return;let a=this.char();10===a?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}bumpIf(a){if(this.message.startsWith(a,this.offset())){for(let b=0;b<a.length;b++)this.bump();return!0}return!1}bumpUntil(a){let b=this.offset(),c=this.message.indexOf(a,b);return c>=0?(this.bumpTo(c),!0):(this.bumpTo(this.message.length),!1)}bumpTo(a){if(this.offset()>a)throw Error(`targetOffset ${a} must be greater than or equal to the current offset ${this.offset()}`);for(a=Math.min(a,this.message.length);;){let b=this.offset();if(b===a)break;if(b>a)throw Error(`targetOffset ${a} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var a;!this.isEOF()&&((a=this.char())>=9&&a<=13||32===a||133===a||a>=8206&&a<=8207||8232===a||8233===a);)this.bump()}peek(){if(this.isEOF())return null;let a=this.char(),b=this.offset();return this.message.charCodeAt(b+(a>=65536?2:1))??null}}function ad(a){return a>=97&&a<=122||a>=65&&a<=90}function ae(a,b={}){let c=new ac(a,b={shouldParseSkeletons:!0,requiresOtherClause:!0,...b}).parse();if(c.err){let a=SyntaxError(I[c.err.kind]);throw a.location=c.err.location,a.originalMessage=c.err.message,a}return b?.captureLocation||function a(b){b.forEach(b=>{if(delete b.location,D(b)||E(b))for(let c in b.options)delete b.options[c].location,a(b.options[c].value);else A(b)&&G(b.style)||(B(b)||C(b))&&H(b.style)?delete b.style.location:F(b)&&a(b.children)})}(c.val),c.val}let af=((h={}).MISSING_VALUE="MISSING_VALUE",h.INVALID_VALUE="INVALID_VALUE",h.MISSING_INTL_API="MISSING_INTL_API",h);class ag extends Error{code;originalMessage;constructor(a,b,c){super(a),this.code=b,this.originalMessage=c}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class ah extends ag{constructor(a,b,c,d){super(`Invalid values for "${a}": "${b}". Options are "${Object.keys(c).join('", "')}"`,af.INVALID_VALUE,d)}}class ai extends ag{constructor(a,b,c){super(`Value for "${a}" must be of type ${b}`,af.INVALID_VALUE,c)}}class aj extends ag{constructor(a,b){super(`The intl string context variable "${a}" was not provided to the string "${b}"`,af.MISSING_VALUE,b)}}let ak=((i={})[i.literal=0]="literal",i[i.object=1]="object",i);function al(a){return{create:()=>({get:b=>a[b],set(b,c){a[b]=c}})}}class am{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(a,b=am.defaultLocale,c,d){if(this.locales=b,this.resolvedLocale=am.resolveLocale(b),"string"==typeof a){if(this.message=a,!am.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...b}=d||{};this.ast=am.__parse(a,{...b,locale:this.resolvedLocale})}else this.ast=a;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(a,b){return b?Object.keys(a).reduce((c,d)=>{var e,f;return c[d]=(e=a[d],(f=b[d])?{...e,...f,...Object.keys(e).reduce((a,b)=>(a[b]={...e[b],...f[b]},a),{})}:e),c},{...a}):a}(am.formats,c),this.formatters=d&&d.formatters||function(a={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:k((...a)=>new Intl.NumberFormat(...a),{cache:al(a.number),strategy:q.variadic}),getDateTimeFormat:k((...a)=>new Intl.DateTimeFormat(...a),{cache:al(a.dateTime),strategy:q.variadic}),getPluralRules:k((...a)=>new Intl.PluralRules(...a),{cache:al(a.pluralRules),strategy:q.variadic})}}(this.formatterCache)}format=a=>{let b=this.formatToParts(a);if(1===b.length)return b[0].value;let c=b.reduce((a,b)=>(a.length&&b.type===ak.literal&&"string"==typeof a[a.length-1]?a[a.length-1]+=b.value:a.push(b.value),a),[]);return c.length<=1?c[0]||"":c};formatToParts=a=>(function a(b,c,d,e,f,g,h){if(1===b.length&&z(b[0]))return[{type:ak.literal,value:b[0].value}];let i=[];for(let j of b){if(z(j)){i.push({type:ak.literal,value:j.value});continue}if(j.type===x.pound){"number"==typeof g&&i.push({type:ak.literal,value:d.getNumberFormat(c).format(g)});continue}let{value:b}=j;if(!(f&&b in f))throw new aj(b,h);let k=f[b];if(j.type===x.argument){k&&"string"!=typeof k&&"number"!=typeof k&&"bigint"!=typeof k||(k="string"==typeof k||"number"==typeof k||"bigint"==typeof k?String(k):""),i.push({type:"string"==typeof k?ak.literal:ak.object,value:k});continue}if(B(j)){let a="string"==typeof j.style?e.date[j.style]:H(j.style)?j.style.parsedOptions:void 0;i.push({type:ak.literal,value:d.getDateTimeFormat(c,a).format(k)});continue}if(C(j)){let a="string"==typeof j.style?e.time[j.style]:H(j.style)?j.style.parsedOptions:e.time.medium;i.push({type:ak.literal,value:d.getDateTimeFormat(c,a).format(k)});continue}if(A(j)){let a="string"==typeof j.style?e.number[j.style]:G(j.style)?j.style.parsedOptions:void 0;if(a&&a.scale){let b=a.scale||1;if("bigint"==typeof k){if(!Number.isInteger(b))throw TypeError(`Cannot apply fractional scale ${b} to bigint value. Scale must be an integer when formatting bigint.`);k*=BigInt(b)}else k*=b}i.push({type:ak.literal,value:d.getNumberFormat(c,a).format(k)});continue}if(F(j)){let{children:b,value:k}=j,l=f[k];if("function"!=typeof l)throw new ai(k,"function",h);let m=l(a(b,c,d,e,f,g).map(a=>a.value));Array.isArray(m)||(m=[m]),i.push(...m.map(a=>({type:"string"==typeof a?ak.literal:ak.object,value:a})))}if(D(j)){let b=k,g=(Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0)||j.options.other;if(!g)throw new ah(j.value,k,Object.keys(j.options),h);i.push(...a(g.value,c,d,e,f));continue}if(E(j)){let b=`=${k}`,g=Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0;if(!g){if(!Intl.PluralRules)throw new ag(`Intl.PluralRules is not available in this environment.
1
+ exports.id=6743,exports.ids=[6743],exports.modules={300:(a,b,c)=>{"use strict";c.d(b,{Zr:()=>e});let d=a=>b=>{try{let c=a(b);if(c instanceof Promise)return c;return{then:a=>d(a)(c),catch(a){return this}}}catch(a){return{then(a){return this},catch:b=>d(b)(a)}}},e=(a,b)=>(c,e,f)=>{let g,h={storage:function(a,b){let c;try{c=a()}catch(a){return}return{getItem:a=>{var b;let d=a=>null===a?null:JSON.parse(a,void 0),e=null!=(b=c.getItem(a))?b:null;return e instanceof Promise?e.then(d):d(e)},setItem:(a,b)=>c.setItem(a,JSON.stringify(b,void 0)),removeItem:a=>c.removeItem(a)}}(()=>window.localStorage),partialize:a=>a,version:0,merge:(a,b)=>({...b,...a}),...b},i=!1,j=0,k=new Set,l=new Set,m=h.storage;if(!m)return a((...a)=>{console.warn(`[zustand persist middleware] Unable to update item '${h.name}', the given storage is currently unavailable.`),c(...a)},e,f);let n=()=>{let a=h.partialize({...e()});return m.setItem(h.name,{state:a,version:h.version})},o=f.setState;f.setState=(a,b)=>(o(a,b),n());let p=a((...a)=>(c(...a),n()),e,f);f.getInitialState=()=>p;let q=()=>{var a,b;if(!m)return;let f=++j;i=!1,k.forEach(a=>{var b;return a(null!=(b=e())?b:p)});let o=(null==(b=h.onRehydrateStorage)?void 0:b.call(h,null!=(a=e())?a:p))||void 0;return d(m.getItem.bind(m))(h.name).then(a=>{if(a)if("number"!=typeof a.version||a.version===h.version)return[!1,a.state];else{if(h.migrate){let b=h.migrate(a.state,a.version);return b instanceof Promise?b.then(a=>[!0,a]):[!0,b]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(a=>{var b;if(f!==j)return;let[d,i]=a;if(c(g=h.merge(i,null!=(b=e())?b:p),!0),d)return n()}).then(()=>{f===j&&(null==o||o(g,void 0),g=e(),i=!0,l.forEach(a=>a(g)))}).catch(a=>{f===j&&(null==o||o(void 0,a))})};return f.persist={setOptions:a=>{h={...h,...a},a.storage&&(m=a.storage)},clearStorage:()=>{null==m||m.removeItem(h.name)},getOptions:()=>h,rehydrate:()=>q(),hasHydrated:()=>i,onHydrate:a=>(k.add(a),()=>{k.delete(a)}),onFinishHydration:a=>(l.add(a),()=>{l.delete(a)})},h.skipHydration||q(),g||p}},3575:(a,b,c)=>{"use strict";c.d(b,{I:()=>f,a:()=>g,b:()=>h,c:()=>k,m:()=>i});var d,e=c(14462);class f extends Error{constructor(a,b){let c=a;b&&(c+=": "+b),super(c),this.code=a,b&&(this.originalMessage=b)}}var g=((d=g||{}).MISSING_MESSAGE="MISSING_MESSAGE",d.MISSING_FORMAT="MISSING_FORMAT",d.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",d.INSUFFICIENT_PATH="INSUFFICIENT_PATH",d.INVALID_MESSAGE="INVALID_MESSAGE",d.INVALID_KEY="INVALID_KEY",d.FORMATTING_ERROR="FORMATTING_ERROR",d);function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function i(a,b){return(0,e.B)(a,{cache:{create:()=>({get:a=>b[a],set(a,c){b[a]=c}})},strategy:e.W.variadic})}function j(a,b){return i((...b)=>new a(...b),b)}function k(a){return{getDateTimeFormat:j(Intl.DateTimeFormat,a.dateTime),getNumberFormat:j(Intl.NumberFormat,a.number),getPluralRules:j(Intl.PluralRules,a.pluralRules),getRelativeTimeFormat:j(Intl.RelativeTimeFormat,a.relativeTime),getListFormat:j(Intl.ListFormat,a.list),getDisplayNames:j(Intl.DisplayNames,a.displayNames)}}},14462:(a,b,c)=>{"use strict";function d(a,b){let c=b&&b.cache?b.cache:i,d=b&&b.serializer?b.serializer:g;return(b&&b.strategy?b.strategy:function(a,b){var c,d;let g=1===a.length?e:f;return c=b.cache.create(),d=b.serializer,g.bind(this,a,c,d)})(a,{cache:c,serializer:d})}function e(a,b,c,d){let e=null==d||"number"==typeof d||"boolean"==typeof d?d:c(d),f=b.get(e);return void 0===f&&(f=a.call(this,d),b.set(e,f)),f}function f(a,b,c){let d=Array.prototype.slice.call(arguments,3),e=c(d),f=b.get(e);return void 0===f&&(f=a.apply(this,d),b.set(e,f)),f}c.d(b,{B:()=>d,W:()=>j});let g=function(){return JSON.stringify(arguments)};class h{cache;constructor(){this.cache=Object.create(null)}get(a){return this.cache[a]}set(a,b){this.cache[a]=b}}let i={create:function(){return new h}},j={variadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,f.bind(this,a,c,d)},monadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,e.bind(this,a,c,d)}}},23807:(a,b,c)=>{"use strict";c.d(b,{A:()=>r});var d=c(91986),e=c(3575),f=c(92207);function g(a){return"function"==typeof a.then}var h=c(65573);let i=(0,d.cache)(function(){return{locale:void 0}}),j=(0,d.cache)(async function(){let a=(0,h.b3)();return g(a)?await a:a}),k=(0,d.cache)(async function(){let a;try{a=(await j()).get("X-NEXT-INTL-LOCALE")||void 0}catch(a){if(a instanceof Error&&"DYNAMIC_SERVER_USAGE"===a.digest){let b=Error("Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap solution, you can use the `setRequestLocale` API to enable static rendering, see https://next-intl.dev/docs/routing/setup#static-rendering",{cause:a});throw b.digest=a.digest,b}throw a}return a});async function l(){return i().locale||await k()}var m=c(79803);let n=(0,d.cache)(function(){return Intl.DateTimeFormat().resolvedOptions().timeZone}),o=(0,d.cache)(async function(a,b){let c=a({locale:b,get requestLocale(){return b?Promise.resolve(b):l()}});if(g(c)&&(c=await c),!c.locale)throw Error("No locale was returned from `getRequestConfig`.\n\nSee https://next-intl.dev/docs/usage/configuration#i18n-request");return c}),p=(0,d.cache)(e.c),q=(0,d.cache)(e.b),r=(0,d.cache)(async function(a){let b=await o(m.A,a);return{...(0,f.i)(b),_formatters:p(q()),timeZone:b.timeZone||n()}})},28440:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(a){var b=await (0,e.A)(a);if(!b.messages)throw Error("No messages found. Have you configured them correctly? See https://next-intl.dev/docs/configuration#messages");return b.messages});async function g(a){return f(a?.locale)}},29389:(a,b,c)=>{"use strict";function d(a){return a}c.d(b,{A:()=>d})},31417:(a,b,c)=>{"use strict";c.d(b,{v:()=>g});var d=c(67484);let e=a=>{let b,c=new Set,d=(a,d)=>{let e="function"==typeof a?a(b):a;if(!Object.is(e,b)){let a=b;b=(null!=d?d:"object"!=typeof e||null===e)?e:Object.assign({},b,e),c.forEach(c=>c(b,a))}},e=()=>b,f={setState:d,getState:e,getInitialState:()=>g,subscribe:a=>(c.add(a),()=>c.delete(a))},g=b=a(d,e,f);return f},f=a=>{let b=a?e(a):e,c=a=>(function(a,b=a=>a){let c=d.useSyncExternalStore(a.subscribe,d.useCallback(()=>b(a.getState()),[a,b]),d.useCallback(()=>b(a.getInitialState()),[a,b]));return d.useDebugValue(c),c})(b,a);return Object.assign(c,b),c},g=a=>a?f(a):f},50609:a=>{a.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},62026:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(){return(await (0,e.A)()).locale})},62626:(a,b,c)=>{"use strict";c.d(b,{default:()=>f});var d=c(89400),e=c(48249);function f({locale:a,...b}){if(!a)throw Error(void 0);return(0,e.jsx)(d.Dk,{locale:a,...b})}},68625:(a,b,c)=>{"use strict";c.d(b,{A:()=>n});var d=c(91986),e=c(23807);let f=(0,d.cache)(async function(a){return(await (0,e.A)(a)).now}),g=(0,d.cache)(async function(){return(await (0,e.A)()).formats});var h=c(86392),i=c(5735);let j=(0,d.cache)(async function(a){return(await (0,e.A)(a)).timeZone});async function k(a){return j(a?.locale)}var l=c(28440),m=c(62026);async function n({formats:a,locale:b,messages:c,now:d,timeZone:e,...j}){return(0,i.jsx)(h.default,{formats:void 0===a?await g():a,locale:b??await (0,m.A)(),messages:void 0===c?await (0,l.A)():c,now:d??await f(),timeZone:e??await k(),...j})}},86392:(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 \"/home/diegosouzapw/dev/proxys/9router/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.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.")},"/home/diegosouzapw/dev/proxys/9router/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js","default")},89400:(a,b,c)=>{"use strict";c.d(b,{Dk:()=>av,kc:()=>aB,Ym:()=>aA,c3:()=>az});var d,e,f,g,h,i,j=c(67484);function k(a,b){let c=b&&b.cache?b.cache:p,d=b&&b.serializer?b.serializer:n;return(b&&b.strategy?b.strategy:function(a,b){var c,d;let e=1===a.length?l:m;return c=b.cache.create(),d=b.serializer,e.bind(this,a,c,d)})(a,{cache:c,serializer:d})}function l(a,b,c,d){let e=null==d||"number"==typeof d||"boolean"==typeof d?d:c(d),f=b.get(e);return void 0===f&&(f=a.call(this,d),b.set(e,f)),f}function m(a,b,c){let d=Array.prototype.slice.call(arguments,3),e=c(d),f=b.get(e);return void 0===f&&(f=a.apply(this,d),b.set(e,f)),f}let n=function(){return JSON.stringify(arguments)};class o{cache;constructor(){this.cache=Object.create(null)}get(a){return this.cache[a]}set(a,b){this.cache[a]=b}}let p={create:function(){return new o}},q={variadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,m.bind(this,a,c,d)},monadic:function(a,b){var c,d;return c=b.cache.create(),d=b.serializer,l.bind(this,a,c,d)}};class r extends Error{constructor(a,b){let c=a;b&&(c+=": "+b),super(c),this.code=a,b&&(this.originalMessage=b)}}var s=((d=s||{}).MISSING_MESSAGE="MISSING_MESSAGE",d.MISSING_FORMAT="MISSING_FORMAT",d.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",d.INSUFFICIENT_PATH="INSUFFICIENT_PATH",d.INVALID_MESSAGE="INVALID_MESSAGE",d.INVALID_KEY="INVALID_KEY",d.FORMATTING_ERROR="FORMATTING_ERROR",d);function t(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(a,b){return k(a,{cache:{create:()=>({get:a=>b[a],set(a,c){b[a]=c}})},strategy:q.variadic})}function v(a,b){return u((...b)=>new a(...b),b)}function w(a){return{getDateTimeFormat:v(Intl.DateTimeFormat,a.dateTime),getNumberFormat:v(Intl.NumberFormat,a.number),getPluralRules:v(Intl.PluralRules,a.pluralRules),getRelativeTimeFormat:v(Intl.RelativeTimeFormat,a.relativeTime),getListFormat:v(Intl.ListFormat,a.list),getDisplayNames:v(Intl.DisplayNames,a.displayNames)}}let x=((e={})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e),y=((f={})[f.number=0]="number",f[f.dateTime=1]="dateTime",f);function z(a){return a.type===x.literal}function A(a){return a.type===x.number}function B(a){return a.type===x.date}function C(a){return a.type===x.time}function D(a){return a.type===x.select}function E(a){return a.type===x.plural}function F(a){return a.type===x.tag}function G(a){return!!(a&&"object"==typeof a&&a.type===y.number)}function H(a){return!!(a&&"object"==typeof a&&a.type===y.dateTime)}let I=((g={})[g.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",g[g.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",g[g.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",g[g.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",g[g.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",g[g.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",g[g.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",g[g.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",g[g.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",g[g.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",g[g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",g[g.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",g[g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",g[g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",g[g.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",g[g.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",g[g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",g[g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",g[g.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",g[g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",g[g.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",g[g.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",g[g.INVALID_TAG=23]="INVALID_TAG",g[g.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",g[g.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",g[g.UNCLOSED_TAG=27]="UNCLOSED_TAG",g),J=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,L=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,M=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function Q(a){let b={};return"r"===a[a.length-1]?b.roundingPriority="morePrecision":"s"===a[a.length-1]&&(b.roundingPriority="lessPrecision"),a.replace(N,function(a,c,d){return"string"!=typeof d?(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length):"+"===d?b.minimumSignificantDigits=c.length:"#"===c[0]?b.maximumSignificantDigits=c.length:(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length+("string"==typeof d?d.length:0)),""}),b}function R(a){switch(a){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function S(a){let b=R(a);return b||{}}let T={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},U=RegExp(`^${J.source}*`),V=RegExp(`${J.source}*$`);function W(a,b){return{start:a,end:b}}let X=!!Object.fromEntries,Y=!!String.prototype.trimStart,Z=!!String.prototype.trimEnd,$=X?Object.fromEntries:function(a){let b={};for(let[c,d]of a)b[c]=d;return b},_=Y?function(a){return a.trimStart()}:function(a){return a.replace(U,"")},aa=Z?function(a){return a.trimEnd()}:function(a){return a.replace(V,"")},ab=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class ac{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(a,b={}){this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!b.ignoreTag,this.locale=b.locale,this.requiresOtherClause=!!b.requiresOtherClause,this.shouldParseSkeletons=!!b.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(a,b,c){let d=[];for(;!this.isEOF();){let e=this.char();if(123===e){let b=this.parseArgument(a,c);if(b.err)return b;d.push(b.val)}else if(125===e&&a>0)break;else if(35===e&&("plural"===b||"selectordinal"===b)){let a=this.clonePosition();this.bump(),d.push({type:x.pound,location:W(a,this.clonePosition())})}else if(60!==e||this.ignoreTag||47!==this.peek())if(60===e&&!this.ignoreTag&&ad(this.peek()||0)){let c=this.parseTag(a,b);if(c.err)return c;d.push(c.val)}else{let c=this.parseLiteral(a,b);if(c.err)return c;d.push(c.val)}else if(!c)return this.error(I.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()));else break}return{val:d,err:null}}parseTag(a,b){let c=this.clonePosition();this.bump();let d=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:x.literal,value:`<${d}/>`,location:W(c,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(I.INVALID_TAG,W(c,this.clonePosition()));{let e=this.parseMessage(a+1,b,!0);if(e.err)return e;let f=e.val,g=this.clonePosition();if(!this.bumpIf("</"))return this.error(I.UNCLOSED_TAG,W(c,this.clonePosition()));{if(this.isEOF()||!ad(this.char()))return this.error(I.INVALID_TAG,W(g,this.clonePosition()));let a=this.clonePosition();return d!==this.parseTagName()?this.error(I.UNMATCHED_CLOSING_TAG,W(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:x.tag,value:d,children:f,location:W(c,this.clonePosition())},err:null}:this.error(I.INVALID_TAG,W(g,this.clonePosition()))}}}parseTagName(){var a;let b=this.offset();for(this.bump();!this.isEOF()&&(45===(a=this.char())||46===a||a>=48&&a<=57||95===a||a>=97&&a<=122||a>=65&&a<=90||183==a||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039);)this.bump();return this.message.slice(b,this.offset())}parseLiteral(a,b){let c=this.clonePosition(),d="";for(;;){let c=this.tryParseQuote(b);if(c){d+=c;continue}let e=this.tryParseUnquoted(a,b);if(e){d+=e;continue}let f=this.tryParseLeftAngleBracket();if(f){d+=f;continue}break}let e=W(c,this.clonePosition());return{val:{type:x.literal,value:d,location:e},err:null}}tryParseLeftAngleBracket(){var a;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ad(a=this.peek()||0)||47===a)?null:(this.bump(),"<")}tryParseQuote(a){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===a||"selectordinal"===a)break;return null;default:return null}this.bump();let b=[this.char()];for(this.bump();!this.isEOF();){let a=this.char();if(39===a)if(39===this.peek())b.push(39),this.bump();else{this.bump();break}else b.push(a);this.bump()}return String.fromCodePoint(...b)}tryParseUnquoted(a,b){if(this.isEOF())return null;let c=this.char();return 60===c||123===c||35===c&&("plural"===b||"selectordinal"===b)||125===c&&a>0?null:(this.bump(),String.fromCodePoint(c))}parseArgument(a,b){let c=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));if(125===this.char())return this.bump(),this.error(I.EMPTY_ARGUMENT,W(c,this.clonePosition()));let d=this.parseIdentifierIfPossible().value;if(!d)return this.error(I.MALFORMED_ARGUMENT,W(c,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:x.argument,value:d,location:W(c,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(c,this.clonePosition()));return this.parseArgumentOptions(a,b,d,c);default:return this.error(I.MALFORMED_ARGUMENT,W(c,this.clonePosition()))}}parseIdentifierIfPossible(){var a;let b=this.clonePosition(),c=this.offset(),d=(a=this.message,ab.lastIndex=c,ab.exec(a)[1]??""),e=c+d.length;return this.bumpTo(e),{value:d,location:W(b,this.clonePosition())}}parseArgumentOptions(a,b,c,d){let e=this.clonePosition(),f=this.parseIdentifierIfPossible().value,g=this.clonePosition();switch(f){case"":return this.error(I.EXPECT_ARGUMENT_TYPE,W(e,g));case"number":case"date":case"time":{this.bumpSpace();let a=null;if(this.bumpIf(",")){this.bumpSpace();let b=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;let d=aa(c.val);if(0===d.length)return this.error(I.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));a={style:d,styleLocation:W(b,this.clonePosition())}}let b=this.tryParseArgumentClose(d);if(b.err)return b;let e=W(d,this.clonePosition());if(a&&a.style.startsWith("::")){let b=_(a.style.slice(2));if("number"===f){let d=this.parseNumberSkeletonFromString(b,a.styleLocation);if(d.err)return d;return{val:{type:x.number,value:c,location:e,style:d.val},err:null}}{let d;if(0===b.length)return this.error(I.EXPECT_DATE_TIME_SKELETON,e);let g=b;this.locale&&(g=function(a,b){let c="";for(let d=0;d<a.length;d++){let e=a.charAt(d);if("j"===e){let f=0;for(;d+1<a.length&&a.charAt(d+1)===e;)f++,d++;let g=1+(1&f),h=f<2?1:3+(f>>1),i=function(a){let b,c=a.hourCycle;if(void 0===c&&a.hourCycles&&a.hourCycles.length&&(c=a.hourCycles[0]),c)switch(c){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let d=a.language;return"root"!==d&&(b=a.maximize().region),(T[b||""]||T[d||""]||T[`${d}-001`]||T["001"])[0]}(b);for(("H"==i||"k"==i)&&(h=0);h-- >0;)c+="a";for(;g-- >0;)c=i+c}else"J"===e?c+="H":c+=e}return c}(b,this.locale));let h={type:y.dateTime,pattern:g,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?(d={},g.replace(K,a=>{let b=a.length;switch(a[0]){case"G":d.era=4===b?"long":5===b?"narrow":"short";break;case"y":d.year=2===b?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":d.month=["numeric","2-digit","short","long","narrow"][b-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":d.day=["numeric","2-digit"][b-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":d.weekday=4===b?"long":5===b?"narrow":"short";break;case"e":if(b<4)throw RangeError("`e..eee` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"c":if(b<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"a":d.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":d.hourCycle="h12",d.hour=["numeric","2-digit"][b-1];break;case"H":d.hourCycle="h23",d.hour=["numeric","2-digit"][b-1];break;case"K":d.hourCycle="h11",d.hour=["numeric","2-digit"][b-1];break;case"k":d.hourCycle="h24",d.hour=["numeric","2-digit"][b-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":d.minute=["numeric","2-digit"][b-1];break;case"s":d.second=["numeric","2-digit"][b-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":d.timeZoneName=b<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),d):{}};return{val:{type:"date"===f?x.date:x.time,value:c,location:e,style:h},err:null}}}return{val:{type:"number"===f?x.number:"date"===f?x.date:x.time,value:c,location:e,style:a?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let e=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS,W(e,{...e}));this.bumpSpace();let g=this.parseIdentifierIfPossible(),h=0;if("select"!==f&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();let a=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(a.err)return a;this.bumpSpace(),g=this.parseIdentifierIfPossible(),h=a.val}let i=this.tryParsePluralOrSelectOptions(a,f,b,g);if(i.err)return i;let j=this.tryParseArgumentClose(d);if(j.err)return j;let k=W(d,this.clonePosition());if("select"===f)return{val:{type:x.select,value:c,options:$(i.val),location:k},err:null};return{val:{type:x.plural,value:c,options:$(i.val),offset:h,pluralType:"plural"===f?"cardinal":"ordinal",location:k},err:null}}default:return this.error(I.INVALID_ARGUMENT_TYPE,W(e,g))}}tryParseArgumentClose(a){return this.isEOF()||125!==this.char()?this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE,W(a,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let a=0,b=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(a,this.clonePosition()));this.bump();break}case 123:a+=1,this.bump();break;case 125:if(!(a>0))return{val:this.message.slice(b.offset,this.offset()),err:null};a-=1;break;default:this.bump()}return{val:this.message.slice(b.offset,this.offset()),err:null}}parseNumberSkeletonFromString(a,b){let c=[];try{c=function(a){if(0===a.length)throw Error("Number skeleton cannot be empty");let b=a.split(L).filter(a=>a.length>0),c=[];for(let a of b){let b=a.split("/");if(0===b.length)throw Error("Invalid number skeleton");let[d,...e]=b;for(let a of e)if(0===a.length)throw Error("Invalid number skeleton");c.push({stem:d,options:e})}return c}(a)}catch{return this.error(I.INVALID_NUMBER_SKELETON,b)}return{val:{type:y.number,tokens:c,location:b,parsedOptions:this.shouldParseSkeletons?function(a){let b={};for(let c of a){switch(c.stem){case"percent":case"%":b.style="percent";continue;case"%x100":b.style="percent",b.scale=100;continue;case"currency":b.style="currency",b.currency=c.options[0];continue;case"group-off":case",_":b.useGrouping=!1;continue;case"precision-integer":case".":b.maximumFractionDigits=0;continue;case"measure-unit":case"unit":b.style="unit",b.unit=c.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":b.notation="compact",b.compactDisplay="short";continue;case"compact-long":case"KK":b.notation="compact",b.compactDisplay="long";continue;case"scientific":b={...b,notation:"scientific",...c.options.reduce((a,b)=>({...a,...S(b)}),{})};continue;case"engineering":b={...b,notation:"engineering",...c.options.reduce((a,b)=>({...a,...S(b)}),{})};continue;case"notation-simple":b.notation="standard";continue;case"unit-width-narrow":b.currencyDisplay="narrowSymbol",b.unitDisplay="narrow";continue;case"unit-width-short":b.currencyDisplay="code",b.unitDisplay="short";continue;case"unit-width-full-name":b.currencyDisplay="name",b.unitDisplay="long";continue;case"unit-width-iso-code":b.currencyDisplay="symbol";continue;case"scale":b.scale=parseFloat(c.options[0]);continue;case"rounding-mode-floor":b.roundingMode="floor";continue;case"rounding-mode-ceiling":b.roundingMode="ceil";continue;case"rounding-mode-down":b.roundingMode="trunc";continue;case"rounding-mode-up":b.roundingMode="expand";continue;case"rounding-mode-half-even":b.roundingMode="halfEven";continue;case"rounding-mode-half-down":b.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":b.roundingMode="halfExpand";continue;case"integer-width":if(c.options.length>1)throw RangeError("integer-width stems only accept a single optional option");c.options[0].replace(O,function(a,c,d,e,f,g){if(c)b.minimumIntegerDigits=d.length;else if(e&&f)throw Error("We currently do not support maximum integer digits");else if(g)throw Error("We currently do not support exact integer digits");return""});continue}if(P.test(c.stem)){b.minimumIntegerDigits=c.stem.length;continue}if(M.test(c.stem)){if(c.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");c.stem.replace(M,function(a,c,d,e,f,g){return"*"===d?b.minimumFractionDigits=c.length:e&&"#"===e[0]?b.maximumFractionDigits=e.length:f&&g?(b.minimumFractionDigits=f.length,b.maximumFractionDigits=f.length+g.length):(b.minimumFractionDigits=c.length,b.maximumFractionDigits=c.length),""});let a=c.options[0];"w"===a?b={...b,trailingZeroDisplay:"stripIfInteger"}:a&&(b={...b,...Q(a)});continue}if(N.test(c.stem)){b={...b,...Q(c.stem)};continue}let a=R(c.stem);a&&(b={...b,...a});let d=function(a){let b;if("E"===a[0]&&"E"===a[1]?(b={notation:"engineering"},a=a.slice(2)):"E"===a[0]&&(b={notation:"scientific"},a=a.slice(1)),b){let c=a.slice(0,2);if("+!"===c?(b.signDisplay="always",a=a.slice(2)):"+?"===c&&(b.signDisplay="exceptZero",a=a.slice(2)),!P.test(a))throw Error("Malformed concise eng/scientific notation");b.minimumIntegerDigits=a.length}return b}(c.stem);d&&(b={...b,...d})}return b}(c):{}},err:null}}tryParsePluralOrSelectOptions(a,b,c,d){let e=!1,f=[],g=new Set,{value:h,location:i}=d;for(;;){if(0===h.length){let a=this.clonePosition();if("select"!==b&&this.bumpIf("=")){let b=this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR,I.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;i=W(a,this.clonePosition()),h=this.message.slice(a.offset,this.offset())}else break}if(g.has(h))return this.error("select"===b?I.DUPLICATE_SELECT_ARGUMENT_SELECTOR:I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,i);"other"===h&&(e=!0),this.bumpSpace();let d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===b?I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));let j=this.parseMessage(a+1,b,c);if(j.err)return j;let k=this.tryParseArgumentClose(d);if(k.err)return k;f.push([h,{value:j.val,location:W(d,this.clonePosition())}]),g.add(h),this.bumpSpace(),{value:h,location:i}=this.parseIdentifierIfPossible()}return 0===f.length?this.error("select"===b?I.EXPECT_SELECT_ARGUMENT_SELECTOR:I.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!e?this.error(I.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:f,err:null}}tryParseDecimalInteger(a,b){let c=1,d=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(c=-1);let e=!1,f=0;for(;!this.isEOF();){let a=this.char();if(a>=48&&a<=57)e=!0,f=10*f+(a-48),this.bump();else break}let g=W(d,this.clonePosition());return e?Number.isSafeInteger(f*=c)?{val:f,err:null}:this.error(b,g):this.error(a,g)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");let b=this.message.codePointAt(a);if(void 0===b)throw Error(`Offset ${a} is at invalid UTF-16 code unit boundary`);return b}error(a,b){return{val:null,err:{kind:a,message:this.message,location:b}}}bump(){if(this.isEOF())return;let a=this.char();10===a?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}bumpIf(a){if(this.message.startsWith(a,this.offset())){for(let b=0;b<a.length;b++)this.bump();return!0}return!1}bumpUntil(a){let b=this.offset(),c=this.message.indexOf(a,b);return c>=0?(this.bumpTo(c),!0):(this.bumpTo(this.message.length),!1)}bumpTo(a){if(this.offset()>a)throw Error(`targetOffset ${a} must be greater than or equal to the current offset ${this.offset()}`);for(a=Math.min(a,this.message.length);;){let b=this.offset();if(b===a)break;if(b>a)throw Error(`targetOffset ${a} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var a;!this.isEOF()&&((a=this.char())>=9&&a<=13||32===a||133===a||a>=8206&&a<=8207||8232===a||8233===a);)this.bump()}peek(){if(this.isEOF())return null;let a=this.char(),b=this.offset();return this.message.charCodeAt(b+(a>=65536?2:1))??null}}function ad(a){return a>=97&&a<=122||a>=65&&a<=90}function ae(a,b={}){let c=new ac(a,b={shouldParseSkeletons:!0,requiresOtherClause:!0,...b}).parse();if(c.err){let a=SyntaxError(I[c.err.kind]);throw a.location=c.err.location,a.originalMessage=c.err.message,a}return b?.captureLocation||function a(b){b.forEach(b=>{if(delete b.location,D(b)||E(b))for(let c in b.options)delete b.options[c].location,a(b.options[c].value);else A(b)&&G(b.style)||(B(b)||C(b))&&H(b.style)?delete b.style.location:F(b)&&a(b.children)})}(c.val),c.val}let af=((h={}).MISSING_VALUE="MISSING_VALUE",h.INVALID_VALUE="INVALID_VALUE",h.MISSING_INTL_API="MISSING_INTL_API",h);class ag extends Error{code;originalMessage;constructor(a,b,c){super(a),this.code=b,this.originalMessage=c}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class ah extends ag{constructor(a,b,c,d){super(`Invalid values for "${a}": "${b}". Options are "${Object.keys(c).join('", "')}"`,af.INVALID_VALUE,d)}}class ai extends ag{constructor(a,b,c){super(`Value for "${a}" must be of type ${b}`,af.INVALID_VALUE,c)}}class aj extends ag{constructor(a,b){super(`The intl string context variable "${a}" was not provided to the string "${b}"`,af.MISSING_VALUE,b)}}let ak=((i={})[i.literal=0]="literal",i[i.object=1]="object",i);function al(a){return{create:()=>({get:b=>a[b],set(b,c){a[b]=c}})}}class am{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(a,b=am.defaultLocale,c,d){if(this.locales=b,this.resolvedLocale=am.resolveLocale(b),"string"==typeof a){if(this.message=a,!am.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...b}=d||{};this.ast=am.__parse(a,{...b,locale:this.resolvedLocale})}else this.ast=a;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(a,b){return b?Object.keys(a).reduce((c,d)=>{var e,f;return c[d]=(e=a[d],(f=b[d])?{...e,...f,...Object.keys(e).reduce((a,b)=>(a[b]={...e[b],...f[b]},a),{})}:e),c},{...a}):a}(am.formats,c),this.formatters=d&&d.formatters||function(a={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:k((...a)=>new Intl.NumberFormat(...a),{cache:al(a.number),strategy:q.variadic}),getDateTimeFormat:k((...a)=>new Intl.DateTimeFormat(...a),{cache:al(a.dateTime),strategy:q.variadic}),getPluralRules:k((...a)=>new Intl.PluralRules(...a),{cache:al(a.pluralRules),strategy:q.variadic})}}(this.formatterCache)}format=a=>{let b=this.formatToParts(a);if(1===b.length)return b[0].value;let c=b.reduce((a,b)=>(a.length&&b.type===ak.literal&&"string"==typeof a[a.length-1]?a[a.length-1]+=b.value:a.push(b.value),a),[]);return c.length<=1?c[0]||"":c};formatToParts=a=>(function a(b,c,d,e,f,g,h){if(1===b.length&&z(b[0]))return[{type:ak.literal,value:b[0].value}];let i=[];for(let j of b){if(z(j)){i.push({type:ak.literal,value:j.value});continue}if(j.type===x.pound){"number"==typeof g&&i.push({type:ak.literal,value:d.getNumberFormat(c).format(g)});continue}let{value:b}=j;if(!(f&&b in f))throw new aj(b,h);let k=f[b];if(j.type===x.argument){k&&"string"!=typeof k&&"number"!=typeof k&&"bigint"!=typeof k||(k="string"==typeof k||"number"==typeof k||"bigint"==typeof k?String(k):""),i.push({type:"string"==typeof k?ak.literal:ak.object,value:k});continue}if(B(j)){let a="string"==typeof j.style?e.date[j.style]:H(j.style)?j.style.parsedOptions:void 0;i.push({type:ak.literal,value:d.getDateTimeFormat(c,a).format(k)});continue}if(C(j)){let a="string"==typeof j.style?e.time[j.style]:H(j.style)?j.style.parsedOptions:e.time.medium;i.push({type:ak.literal,value:d.getDateTimeFormat(c,a).format(k)});continue}if(A(j)){let a="string"==typeof j.style?e.number[j.style]:G(j.style)?j.style.parsedOptions:void 0;if(a&&a.scale){let b=a.scale||1;if("bigint"==typeof k){if(!Number.isInteger(b))throw TypeError(`Cannot apply fractional scale ${b} to bigint value. Scale must be an integer when formatting bigint.`);k*=BigInt(b)}else k*=b}i.push({type:ak.literal,value:d.getNumberFormat(c,a).format(k)});continue}if(F(j)){let{children:b,value:k}=j,l=f[k];if("function"!=typeof l)throw new ai(k,"function",h);let m=l(a(b,c,d,e,f,g).map(a=>a.value));Array.isArray(m)||(m=[m]),i.push(...m.map(a=>({type:"string"==typeof a?ak.literal:ak.object,value:a})))}if(D(j)){let b=k,g=(Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0)||j.options.other;if(!g)throw new ah(j.value,k,Object.keys(j.options),h);i.push(...a(g.value,c,d,e,f));continue}if(E(j)){let b=`=${k}`,g=Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0;if(!g){if(!Intl.PluralRules)throw new ag(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,af.MISSING_INTL_API,h);let a="bigint"==typeof k?Number(k):k,b=d.getPluralRules(c,{type:j.pluralType}).select(a-(j.offset||0));g=(Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0)||j.options.other}if(!g)throw new ah(j.value,k,Object.keys(j.options),h);let l="bigint"==typeof k?Number(k):k;i.push(...a(g.value,c,d,e,f,l-(j.offset||0)));continue}}return i.length<2?i:i.reduce((a,b)=>{let c=a[a.length-1];return c&&c.type===ak.literal&&b.type===ak.literal?c.value+=b.value:a.push(b),a},[])})(this.ast,this.locales,this.formatters,this.formats,a,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return am.memoizedDefaultLocale||(am.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),am.memoizedDefaultLocale}static resolveLocale=a=>{if(void 0===Intl.Locale)return;let b=Intl.NumberFormat.supportedLocalesOf(a);return new Intl.Locale(b.length>0?b[0]:"string"==typeof a?a:a[0])};static __parse=ae;static formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}function an(...[a,b,c,d]){let e;if(Array.isArray(b))throw new r(s.INVALID_MESSAGE,void 0);if("object"==typeof b)throw new r(s.INSUFFICIENT_PATH,void 0);if("string"==typeof b){let a=c||/'[{}]/.test(b)?void 0:b;if(a)return a}let{cache:f,formats:g,formatters:h,globalFormats:i,locale:k,timeZone:l}=d;h.getMessageFormat||(h.getMessageFormat=u((...a)=>new am(a[0],a[1],a[2],{formatters:h,...a[3]}),f.message));try{let a,c,d,f;e=h.getMessageFormat(b,k,(a=am.formats.date,c=am.formats.time,d={...i?.dateTime,...g?.dateTime},f={date:{...a,...d},time:{...c,...d},number:{...i?.number,...g?.number}},l&&["date","time"].forEach(a=>{let b=f[a];for(let[a,c]of Object.entries(b))b[a]={timeZone:l,...c}}),f),{formatters:{...h,getDateTimeFormat:(a,b)=>h.getDateTimeFormat(a,{...b,timeZone:b?.timeZone??l})}})}catch(a){throw new r(s.INVALID_MESSAGE,void 0)}let m=e.format(c);return(0,j.isValidElement)(m)||Array.isArray(m)||"string"==typeof m?m:String(m)}function ao(...a){return a.filter(Boolean).join(".")}function ap(a){return ao(a.namespace,a.key)}function aq(a){console.error(a)}function ar(a,b,c,d){let e=ao(d,c);if(!b)throw Error(e);let f=b;return c.split(".").forEach(b=>{let c=f[b];if(null==b||null==c)throw Error(e+` (${a})`);f=c}),f}an.raw=!0;let as={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var at=c(48249);let au=(0,j.createContext)(void 0);function av({children:a,formats:b,getMessageFallback:c,locale:d,messages:e,now:f,onError:g,timeZone:h}){let i=(0,j.useContext)(au),k=(0,j.useMemo)(()=>i?.cache||t(),[d,i?.cache]),l=(0,j.useMemo)(()=>i?.formatters||w(k),[k,i?.formatters]),m=(0,j.useMemo)(()=>({...function({formats:a,getMessageFallback:b,messages:c,onError:d,...e}){return{...e,formats:a||void 0,messages:c||void 0,onError:d||aq,getMessageFallback:b||ap}}({locale:d,formats:void 0===b?i?.formats:b,getMessageFallback:c||i?.getMessageFallback,messages:void 0===e?i?.messages:e,now:f||i?.now,onError:g||i?.onError,timeZone:h||i?.timeZone}),formatters:l,cache:k}),[k,b,l,c,d,e,f,g,i,h]);return(0,at.jsx)(au.Provider,{value:m,children:a})}function aw(){let a=(0,j.useContext)(au);if(!a)throw Error(void 0);return a}let ax=!1,ay="u"<typeof window;function az(a){return function(a,b,c){let{cache:d,formats:e,formatters:f,getMessageFallback:g,locale:h,onError:i,timeZone:k}=aw(),l=a["!"],m="!"===b?void 0:b.slice(2);return k||ax||!ay||(ax=!0,i(new r(s.ENVIRONMENT_FALLBACK,void 0))),(0,j.useMemo)(()=>{var a;let b;return b=function(a,b,c){try{if(!b)throw Error(void 0);let d=c?ar(a,b,c):b;if(!d)throw Error(c);return d}catch(a){return new r(s.MISSING_MESSAGE,a.message)}}((a={cache:d,formatters:f,getMessageFallback:g,messages:l,namespace:m,onError:i,formats:e,locale:h,timeZone:k}).locale,a.messages,a.namespace),function({cache:a,formats:b,formatters:c,getMessageFallback:d=ap,locale:e,messagesOrError:f,namespace:g,onError:h,timeZone:i}){let k=f instanceof r;function l(a,b,c,e){let f=new r(b,c);return h(f),e??d({error:f,key:a,namespace:g})}function m(m,n,o,p){let q;if(k){if(!p)return h(f),d({error:f,key:m,namespace:g});q=p}else try{q=ar(e,f,m,g)}catch(a){if(!p)return l(m,s.MISSING_MESSAGE,a.message,p);q=p}try{let d,f=ao(g,m);return an(f,q,n?(d={},Object.keys(n).forEach(a=>{let b,c=0,e=n[a];b="function"==typeof e?b=>{let d=e(b);return(0,j.isValidElement)(d)?(0,j.cloneElement)(d,{key:a+c++}):d}:e,d[a]=b}),d):n,{cache:a,formatters:c,globalFormats:b,formats:o,locale:e,timeZone:i})}catch(c){let a,b;return c instanceof r?(a=c.code,b=c.originalMessage):(a=s.FORMATTING_ERROR,b=c.message),l(m,a,b,p)}}function n(a,b,c,d){let e=m(a,b,c,d);return"string"!=typeof e?l(a,s.INVALID_MESSAGE,void 0):e}return n.rich=m,n.markup=(a,b,c,d)=>m(a,b,c,d),n.raw=a=>{if(k)return h(f),d({error:f,key:a,namespace:g});try{return ar(e,f,a,g)}catch(b){return l(a,s.MISSING_MESSAGE,b.message)}},n.has=a=>{if(k)return!1;try{return ar(e,f,a,g),!0}catch{return!1}},n}({...a,messagesOrError:b})},[d,f,g,l,m,i,e,h,k])}({"!":aw().messages},a?`!.${a}`:"!",0)}function aA(){return aw().locale}function aB(){let{formats:a,formatters:b,locale:c,now:d,onError:e,timeZone:f}=aw();return(0,j.useMemo)(()=>(function(a){let{_cache:b=t(),_formatters:c=w(b),formats:d,locale:e,onError:f=aq,timeZone:g}=a;function h(a){return a?.timeZone||(g?a={...a,timeZone:g}:f(new r(s.ENVIRONMENT_FALLBACK,void 0))),a}function i(a,b,c,d,e){let g;try{g=function(a,b,c){let d;if("string"==typeof b){if(!(d=a?.[b])){let a=new r(s.MISSING_FORMAT,void 0);throw f(a),a}}else d=b;return c&&(d={...d,...c}),d}(c,a,b)}catch{return e()}try{return d(g)}catch(a){return f(new r(s.FORMATTING_ERROR,a.message)),e()}}function j(a,b,f){return i(b,f,d?.dateTime,b=>(b=h(b),c.getDateTimeFormat(e,b).format(a)),()=>String(a))}function k(){return a.now?a.now:(f(new r(s.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:j,number:function(a,b,f){return i(b,f,d?.number,b=>c.getNumberFormat(e,b).format(a),()=>String(a))},relativeTime:function(a,b){try{var d;let f,g,h,i={};b instanceof Date||"number"==typeof b?f=new Date(b):b&&(f=null!=b.now?new Date(b.now):k(),g=b.unit,i.style=b.style,i.numberingSystem=b.numberingSystem),f||(f=k());let j=(new Date(a).getTime()-f.getTime())/1e3;g||(g=(h=Math.abs(j))<60?"second":h<3600?"minute":h<86400?"hour":h<604800?"day":h<2628e3?"week":h<31536e3?"month":"year"),i.numeric="second"===g?"auto":"always";let l=(d=g,Math.round(j/as[d]));return c.getRelativeTimeFormat(e,i).format(l,g)}catch(b){return f(new r(s.FORMATTING_ERROR,b.message)),String(a)}},list:function(a,b,f){let g=[],h=new Map,j=0;for(let b of a){let a;"object"==typeof b?(a=String(j),h.set(a,b)):a=String(b),g.push(a),j++}return i(b,f,d?.list,a=>{let b=c.getListFormat(e,a).formatToParts(g).map(a=>"literal"===a.type?a.value:h.get(a.value)||a.value);return h.size>0?b:b.join("")},()=>String(a))},dateTimeRange:function(a,b,f,g){return i(f,g,d?.dateTime,d=>(d=h(d),c.getDateTimeFormat(e,d).formatRange(a,b)),()=>[j(a),j(b)].join(" – "))}}})({formats:a,locale:c,now:d,onError:e,timeZone:f,_formatters:b}),[a,b,d,c,e,f])}},92207:(a,b,c)=>{"use strict";c.d(b,{a:()=>ag,b:()=>ae,d:()=>ad,i:()=>ai,r:()=>ah});var d,e,f,g,h,i=c(91986),j=c(14462);let k=((d={})[d.literal=0]="literal",d[d.argument=1]="argument",d[d.number=2]="number",d[d.date=3]="date",d[d.time=4]="time",d[d.select=5]="select",d[d.plural=6]="plural",d[d.pound=7]="pound",d[d.tag=8]="tag",d),l=((e={})[e.number=0]="number",e[e.dateTime=1]="dateTime",e);function m(a){return a.type===k.literal}function n(a){return a.type===k.number}function o(a){return a.type===k.date}function p(a){return a.type===k.time}function q(a){return a.type===k.select}function r(a){return a.type===k.plural}function s(a){return a.type===k.tag}function t(a){return!!(a&&"object"==typeof a&&a.type===l.number)}function u(a){return!!(a&&"object"==typeof a&&a.type===l.dateTime)}let v=((f={})[f.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",f[f.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",f[f.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",f[f.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",f[f.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",f[f.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",f[f.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",f[f.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",f[f.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",f[f.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",f[f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",f[f.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",f[f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",f[f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",f[f.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",f[f.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",f[f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",f[f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",f[f.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",f[f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",f[f.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",f[f.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",f[f.INVALID_TAG=23]="INVALID_TAG",f[f.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",f[f.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",f[f.UNCLOSED_TAG=27]="UNCLOSED_TAG",f),w=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,x=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,y=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,A=/^(@+)?(\+|#+)?[rs]?$/g,B=/(\*)(0+)|(#+)(0+)|(0+)/g,C=/^(0+)$/;function D(a){let b={};return"r"===a[a.length-1]?b.roundingPriority="morePrecision":"s"===a[a.length-1]&&(b.roundingPriority="lessPrecision"),a.replace(A,function(a,c,d){return"string"!=typeof d?(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length):"+"===d?b.minimumSignificantDigits=c.length:"#"===c[0]?b.maximumSignificantDigits=c.length:(b.minimumSignificantDigits=c.length,b.maximumSignificantDigits=c.length+("string"==typeof d?d.length:0)),""}),b}function E(a){switch(a){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function F(a){let b=E(a);return b||{}}let G={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},H=RegExp(`^${w.source}*`),I=RegExp(`${w.source}*$`);function J(a,b){return{start:a,end:b}}let K=!!Object.fromEntries,L=!!String.prototype.trimStart,M=!!String.prototype.trimEnd,N=K?Object.fromEntries:function(a){let b={};for(let[c,d]of a)b[c]=d;return b},O=L?function(a){return a.trimStart()}:function(a){return a.replace(H,"")},P=M?function(a){return a.trimEnd()}:function(a){return a.replace(I,"")},Q=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class R{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(a,b={}){this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!b.ignoreTag,this.locale=b.locale,this.requiresOtherClause=!!b.requiresOtherClause,this.shouldParseSkeletons=!!b.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(a,b,c){let d=[];for(;!this.isEOF();){let e=this.char();if(123===e){let b=this.parseArgument(a,c);if(b.err)return b;d.push(b.val)}else if(125===e&&a>0)break;else if(35===e&&("plural"===b||"selectordinal"===b)){let a=this.clonePosition();this.bump(),d.push({type:k.pound,location:J(a,this.clonePosition())})}else if(60!==e||this.ignoreTag||47!==this.peek())if(60===e&&!this.ignoreTag&&S(this.peek()||0)){let c=this.parseTag(a,b);if(c.err)return c;d.push(c.val)}else{let c=this.parseLiteral(a,b);if(c.err)return c;d.push(c.val)}else if(!c)return this.error(v.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()));else break}return{val:d,err:null}}parseTag(a,b){let c=this.clonePosition();this.bump();let d=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:`<${d}/>`,location:J(c,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(v.INVALID_TAG,J(c,this.clonePosition()));{let e=this.parseMessage(a+1,b,!0);if(e.err)return e;let f=e.val,g=this.clonePosition();if(!this.bumpIf("</"))return this.error(v.UNCLOSED_TAG,J(c,this.clonePosition()));{if(this.isEOF()||!S(this.char()))return this.error(v.INVALID_TAG,J(g,this.clonePosition()));let a=this.clonePosition();return d!==this.parseTagName()?this.error(v.UNMATCHED_CLOSING_TAG,J(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:k.tag,value:d,children:f,location:J(c,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,J(g,this.clonePosition()))}}}parseTagName(){var a;let b=this.offset();for(this.bump();!this.isEOF()&&(45===(a=this.char())||46===a||a>=48&&a<=57||95===a||a>=97&&a<=122||a>=65&&a<=90||183==a||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039);)this.bump();return this.message.slice(b,this.offset())}parseLiteral(a,b){let c=this.clonePosition(),d="";for(;;){let c=this.tryParseQuote(b);if(c){d+=c;continue}let e=this.tryParseUnquoted(a,b);if(e){d+=e;continue}let f=this.tryParseLeftAngleBracket();if(f){d+=f;continue}break}let e=J(c,this.clonePosition());return{val:{type:k.literal,value:d,location:e},err:null}}tryParseLeftAngleBracket(){var a;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(S(a=this.peek()||0)||47===a)?null:(this.bump(),"<")}tryParseQuote(a){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===a||"selectordinal"===a)break;return null;default:return null}this.bump();let b=[this.char()];for(this.bump();!this.isEOF();){let a=this.char();if(39===a)if(39===this.peek())b.push(39),this.bump();else{this.bump();break}else b.push(a);this.bump()}return String.fromCodePoint(...b)}tryParseUnquoted(a,b){if(this.isEOF())return null;let c=this.char();return 60===c||123===c||35===c&&("plural"===b||"selectordinal"===b)||125===c&&a>0?null:(this.bump(),String.fromCodePoint(c))}parseArgument(a,b){let c=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,J(c,this.clonePosition()));if(125===this.char())return this.bump(),this.error(v.EMPTY_ARGUMENT,J(c,this.clonePosition()));let d=this.parseIdentifierIfPossible().value;if(!d)return this.error(v.MALFORMED_ARGUMENT,J(c,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,J(c,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:d,location:J(c,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,J(c,this.clonePosition()));return this.parseArgumentOptions(a,b,d,c);default:return this.error(v.MALFORMED_ARGUMENT,J(c,this.clonePosition()))}}parseIdentifierIfPossible(){var a;let b=this.clonePosition(),c=this.offset(),d=(a=this.message,Q.lastIndex=c,Q.exec(a)[1]??""),e=c+d.length;return this.bumpTo(e),{value:d,location:J(b,this.clonePosition())}}parseArgumentOptions(a,b,c,d){let e=this.clonePosition(),f=this.parseIdentifierIfPossible().value,g=this.clonePosition();switch(f){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,J(e,g));case"number":case"date":case"time":{this.bumpSpace();let a=null;if(this.bumpIf(",")){this.bumpSpace();let b=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;let d=P(c.val);if(0===d.length)return this.error(v.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));a={style:d,styleLocation:J(b,this.clonePosition())}}let b=this.tryParseArgumentClose(d);if(b.err)return b;let e=J(d,this.clonePosition());if(a&&a.style.startsWith("::")){let b=O(a.style.slice(2));if("number"===f){let d=this.parseNumberSkeletonFromString(b,a.styleLocation);if(d.err)return d;return{val:{type:k.number,value:c,location:e,style:d.val},err:null}}{let d;if(0===b.length)return this.error(v.EXPECT_DATE_TIME_SKELETON,e);let g=b;this.locale&&(g=function(a,b){let c="";for(let d=0;d<a.length;d++){let e=a.charAt(d);if("j"===e){let f=0;for(;d+1<a.length&&a.charAt(d+1)===e;)f++,d++;let g=1+(1&f),h=f<2?1:3+(f>>1),i=function(a){let b,c=a.hourCycle;if(void 0===c&&a.hourCycles&&a.hourCycles.length&&(c=a.hourCycles[0]),c)switch(c){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let d=a.language;return"root"!==d&&(b=a.maximize().region),(G[b||""]||G[d||""]||G[`${d}-001`]||G["001"])[0]}(b);for(("H"==i||"k"==i)&&(h=0);h-- >0;)c+="a";for(;g-- >0;)c=i+c}else"J"===e?c+="H":c+=e}return c}(b,this.locale));let h={type:l.dateTime,pattern:g,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?(d={},g.replace(x,a=>{let b=a.length;switch(a[0]){case"G":d.era=4===b?"long":5===b?"narrow":"short";break;case"y":d.year=2===b?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":d.month=["numeric","2-digit","short","long","narrow"][b-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":d.day=["numeric","2-digit"][b-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":d.weekday=4===b?"long":5===b?"narrow":"short";break;case"e":if(b<4)throw RangeError("`e..eee` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"c":if(b<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");d.weekday=["short","long","narrow","short"][b-4];break;case"a":d.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":d.hourCycle="h12",d.hour=["numeric","2-digit"][b-1];break;case"H":d.hourCycle="h23",d.hour=["numeric","2-digit"][b-1];break;case"K":d.hourCycle="h11",d.hour=["numeric","2-digit"][b-1];break;case"k":d.hourCycle="h24",d.hour=["numeric","2-digit"][b-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":d.minute=["numeric","2-digit"][b-1];break;case"s":d.second=["numeric","2-digit"][b-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":d.timeZoneName=b<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),d):{}};return{val:{type:"date"===f?k.date:k.time,value:c,location:e,style:h},err:null}}}return{val:{type:"number"===f?k.number:"date"===f?k.date:k.time,value:c,location:e,style:a?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let e=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,J(e,{...e}));this.bumpSpace();let g=this.parseIdentifierIfPossible(),h=0;if("select"!==f&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();let a=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(a.err)return a;this.bumpSpace(),g=this.parseIdentifierIfPossible(),h=a.val}let i=this.tryParsePluralOrSelectOptions(a,f,b,g);if(i.err)return i;let j=this.tryParseArgumentClose(d);if(j.err)return j;let l=J(d,this.clonePosition());if("select"===f)return{val:{type:k.select,value:c,options:N(i.val),location:l},err:null};return{val:{type:k.plural,value:c,options:N(i.val),offset:h,pluralType:"plural"===f?"cardinal":"ordinal",location:l},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,J(e,g))}}tryParseArgumentClose(a){return this.isEOF()||125!==this.char()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,J(a,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let a=0,b=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(a,this.clonePosition()));this.bump();break}case 123:a+=1,this.bump();break;case 125:if(!(a>0))return{val:this.message.slice(b.offset,this.offset()),err:null};a-=1;break;default:this.bump()}return{val:this.message.slice(b.offset,this.offset()),err:null}}parseNumberSkeletonFromString(a,b){let c=[];try{c=function(a){if(0===a.length)throw Error("Number skeleton cannot be empty");let b=a.split(y).filter(a=>a.length>0),c=[];for(let a of b){let b=a.split("/");if(0===b.length)throw Error("Invalid number skeleton");let[d,...e]=b;for(let a of e)if(0===a.length)throw Error("Invalid number skeleton");c.push({stem:d,options:e})}return c}(a)}catch{return this.error(v.INVALID_NUMBER_SKELETON,b)}return{val:{type:l.number,tokens:c,location:b,parsedOptions:this.shouldParseSkeletons?function(a){let b={};for(let c of a){switch(c.stem){case"percent":case"%":b.style="percent";continue;case"%x100":b.style="percent",b.scale=100;continue;case"currency":b.style="currency",b.currency=c.options[0];continue;case"group-off":case",_":b.useGrouping=!1;continue;case"precision-integer":case".":b.maximumFractionDigits=0;continue;case"measure-unit":case"unit":b.style="unit",b.unit=c.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":b.notation="compact",b.compactDisplay="short";continue;case"compact-long":case"KK":b.notation="compact",b.compactDisplay="long";continue;case"scientific":b={...b,notation:"scientific",...c.options.reduce((a,b)=>({...a,...F(b)}),{})};continue;case"engineering":b={...b,notation:"engineering",...c.options.reduce((a,b)=>({...a,...F(b)}),{})};continue;case"notation-simple":b.notation="standard";continue;case"unit-width-narrow":b.currencyDisplay="narrowSymbol",b.unitDisplay="narrow";continue;case"unit-width-short":b.currencyDisplay="code",b.unitDisplay="short";continue;case"unit-width-full-name":b.currencyDisplay="name",b.unitDisplay="long";continue;case"unit-width-iso-code":b.currencyDisplay="symbol";continue;case"scale":b.scale=parseFloat(c.options[0]);continue;case"rounding-mode-floor":b.roundingMode="floor";continue;case"rounding-mode-ceiling":b.roundingMode="ceil";continue;case"rounding-mode-down":b.roundingMode="trunc";continue;case"rounding-mode-up":b.roundingMode="expand";continue;case"rounding-mode-half-even":b.roundingMode="halfEven";continue;case"rounding-mode-half-down":b.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":b.roundingMode="halfExpand";continue;case"integer-width":if(c.options.length>1)throw RangeError("integer-width stems only accept a single optional option");c.options[0].replace(B,function(a,c,d,e,f,g){if(c)b.minimumIntegerDigits=d.length;else if(e&&f)throw Error("We currently do not support maximum integer digits");else if(g)throw Error("We currently do not support exact integer digits");return""});continue}if(C.test(c.stem)){b.minimumIntegerDigits=c.stem.length;continue}if(z.test(c.stem)){if(c.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");c.stem.replace(z,function(a,c,d,e,f,g){return"*"===d?b.minimumFractionDigits=c.length:e&&"#"===e[0]?b.maximumFractionDigits=e.length:f&&g?(b.minimumFractionDigits=f.length,b.maximumFractionDigits=f.length+g.length):(b.minimumFractionDigits=c.length,b.maximumFractionDigits=c.length),""});let a=c.options[0];"w"===a?b={...b,trailingZeroDisplay:"stripIfInteger"}:a&&(b={...b,...D(a)});continue}if(A.test(c.stem)){b={...b,...D(c.stem)};continue}let a=E(c.stem);a&&(b={...b,...a});let d=function(a){let b;if("E"===a[0]&&"E"===a[1]?(b={notation:"engineering"},a=a.slice(2)):"E"===a[0]&&(b={notation:"scientific"},a=a.slice(1)),b){let c=a.slice(0,2);if("+!"===c?(b.signDisplay="always",a=a.slice(2)):"+?"===c&&(b.signDisplay="exceptZero",a=a.slice(2)),!C.test(a))throw Error("Malformed concise eng/scientific notation");b.minimumIntegerDigits=a.length}return b}(c.stem);d&&(b={...b,...d})}return b}(c):{}},err:null}}tryParsePluralOrSelectOptions(a,b,c,d){let e=!1,f=[],g=new Set,{value:h,location:i}=d;for(;;){if(0===h.length){let a=this.clonePosition();if("select"!==b&&this.bumpIf("=")){let b=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;i=J(a,this.clonePosition()),h=this.message.slice(a.offset,this.offset())}else break}if(g.has(h))return this.error("select"===b?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,i);"other"===h&&(e=!0),this.bumpSpace();let d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===b?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));let j=this.parseMessage(a+1,b,c);if(j.err)return j;let k=this.tryParseArgumentClose(d);if(k.err)return k;f.push([h,{value:j.val,location:J(d,this.clonePosition())}]),g.add(h),this.bumpSpace(),{value:h,location:i}=this.parseIdentifierIfPossible()}return 0===f.length?this.error("select"===b?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!e?this.error(v.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:f,err:null}}tryParseDecimalInteger(a,b){let c=1,d=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(c=-1);let e=!1,f=0;for(;!this.isEOF();){let a=this.char();if(a>=48&&a<=57)e=!0,f=10*f+(a-48),this.bump();else break}let g=J(d,this.clonePosition());return e?Number.isSafeInteger(f*=c)?{val:f,err:null}:this.error(b,g):this.error(a,g)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");let b=this.message.codePointAt(a);if(void 0===b)throw Error(`Offset ${a} is at invalid UTF-16 code unit boundary`);return b}error(a,b){return{val:null,err:{kind:a,message:this.message,location:b}}}bump(){if(this.isEOF())return;let a=this.char();10===a?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}bumpIf(a){if(this.message.startsWith(a,this.offset())){for(let b=0;b<a.length;b++)this.bump();return!0}return!1}bumpUntil(a){let b=this.offset(),c=this.message.indexOf(a,b);return c>=0?(this.bumpTo(c),!0):(this.bumpTo(this.message.length),!1)}bumpTo(a){if(this.offset()>a)throw Error(`targetOffset ${a} must be greater than or equal to the current offset ${this.offset()}`);for(a=Math.min(a,this.message.length);;){let b=this.offset();if(b===a)break;if(b>a)throw Error(`targetOffset ${a} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var a;!this.isEOF()&&((a=this.char())>=9&&a<=13||32===a||133===a||a>=8206&&a<=8207||8232===a||8233===a);)this.bump()}peek(){if(this.isEOF())return null;let a=this.char(),b=this.offset();return this.message.charCodeAt(b+(a>=65536?2:1))??null}}function S(a){return a>=97&&a<=122||a>=65&&a<=90}function T(a,b={}){let c=new R(a,b={shouldParseSkeletons:!0,requiresOtherClause:!0,...b}).parse();if(c.err){let a=SyntaxError(v[c.err.kind]);throw a.location=c.err.location,a.originalMessage=c.err.message,a}return b?.captureLocation||function a(b){b.forEach(b=>{if(delete b.location,q(b)||r(b))for(let c in b.options)delete b.options[c].location,a(b.options[c].value);else n(b)&&t(b.style)||(o(b)||p(b))&&u(b.style)?delete b.style.location:s(b)&&a(b.children)})}(c.val),c.val}let U=((g={}).MISSING_VALUE="MISSING_VALUE",g.INVALID_VALUE="INVALID_VALUE",g.MISSING_INTL_API="MISSING_INTL_API",g);class V extends Error{code;originalMessage;constructor(a,b,c){super(a),this.code=b,this.originalMessage=c}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class W extends V{constructor(a,b,c,d){super(`Invalid values for "${a}": "${b}". Options are "${Object.keys(c).join('", "')}"`,U.INVALID_VALUE,d)}}class X extends V{constructor(a,b,c){super(`Value for "${a}" must be of type ${b}`,U.INVALID_VALUE,c)}}class Y extends V{constructor(a,b){super(`The intl string context variable "${a}" was not provided to the string "${b}"`,U.MISSING_VALUE,b)}}let Z=((h={})[h.literal=0]="literal",h[h.object=1]="object",h);function $(a){return{create:()=>({get:b=>a[b],set(b,c){a[b]=c}})}}class _{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(a,b=_.defaultLocale,c,d){if(this.locales=b,this.resolvedLocale=_.resolveLocale(b),"string"==typeof a){if(this.message=a,!_.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...b}=d||{};this.ast=_.__parse(a,{...b,locale:this.resolvedLocale})}else this.ast=a;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(a,b){return b?Object.keys(a).reduce((c,d)=>{var e,f;return c[d]=(e=a[d],(f=b[d])?{...e,...f,...Object.keys(e).reduce((a,b)=>(a[b]={...e[b],...f[b]},a),{})}:e),c},{...a}):a}(_.formats,c),this.formatters=d&&d.formatters||function(a={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,j.B)((...a)=>new Intl.NumberFormat(...a),{cache:$(a.number),strategy:j.W.variadic}),getDateTimeFormat:(0,j.B)((...a)=>new Intl.DateTimeFormat(...a),{cache:$(a.dateTime),strategy:j.W.variadic}),getPluralRules:(0,j.B)((...a)=>new Intl.PluralRules(...a),{cache:$(a.pluralRules),strategy:j.W.variadic})}}(this.formatterCache)}format=a=>{let b=this.formatToParts(a);if(1===b.length)return b[0].value;let c=b.reduce((a,b)=>(a.length&&b.type===Z.literal&&"string"==typeof a[a.length-1]?a[a.length-1]+=b.value:a.push(b.value),a),[]);return c.length<=1?c[0]||"":c};formatToParts=a=>(function a(b,c,d,e,f,g,h){if(1===b.length&&m(b[0]))return[{type:Z.literal,value:b[0].value}];let i=[];for(let j of b){if(m(j)){i.push({type:Z.literal,value:j.value});continue}if(j.type===k.pound){"number"==typeof g&&i.push({type:Z.literal,value:d.getNumberFormat(c).format(g)});continue}let{value:b}=j;if(!(f&&b in f))throw new Y(b,h);let l=f[b];if(j.type===k.argument){l&&"string"!=typeof l&&"number"!=typeof l&&"bigint"!=typeof l||(l="string"==typeof l||"number"==typeof l||"bigint"==typeof l?String(l):""),i.push({type:"string"==typeof l?Z.literal:Z.object,value:l});continue}if(o(j)){let a="string"==typeof j.style?e.date[j.style]:u(j.style)?j.style.parsedOptions:void 0;i.push({type:Z.literal,value:d.getDateTimeFormat(c,a).format(l)});continue}if(p(j)){let a="string"==typeof j.style?e.time[j.style]:u(j.style)?j.style.parsedOptions:e.time.medium;i.push({type:Z.literal,value:d.getDateTimeFormat(c,a).format(l)});continue}if(n(j)){let a="string"==typeof j.style?e.number[j.style]:t(j.style)?j.style.parsedOptions:void 0;if(a&&a.scale){let b=a.scale||1;if("bigint"==typeof l){if(!Number.isInteger(b))throw TypeError(`Cannot apply fractional scale ${b} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(b)}else l*=b}i.push({type:Z.literal,value:d.getNumberFormat(c,a).format(l)});continue}if(s(j)){let{children:b,value:k}=j,l=f[k];if("function"!=typeof l)throw new X(k,"function",h);let m=l(a(b,c,d,e,f,g).map(a=>a.value));Array.isArray(m)||(m=[m]),i.push(...m.map(a=>({type:"string"==typeof a?Z.literal:Z.object,value:a})))}if(q(j)){let b=l,g=(Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0)||j.options.other;if(!g)throw new W(j.value,l,Object.keys(j.options),h);i.push(...a(g.value,c,d,e,f));continue}if(r(j)){let b=`=${l}`,g=Object.prototype.hasOwnProperty.call(j.options,b)?j.options[b]:void 0;if(!g){if(!Intl.PluralRules)throw new V(`Intl.PluralRules is not available in this environment.
4
4
  Try polyfilling it using "@formatjs/intl-pluralrules"
@@ -5,4 +5,4 @@
5
5
  @level, @levelId, @provider, @targetUrl, @publicIp, @latencyMs, @error,
6
6
  @connectionId, @comboId, @account, @tlsFingerprint)`).run({id:b.id,timestamp:b.timestamp,status:b.status,proxyType:b.proxy?.type||null,proxyHost:b.proxy?.host||null,proxyPort:b.proxy?.port?Number(b.proxy.port):null,level:b.level,levelId:b.levelId,provider:b.provider,targetUrl:b.targetUrl,publicIp:b.publicIp,latencyMs:b.latencyMs,error:b.error,connectionId:b.connectionId,comboId:b.comboId,account:b.account,tlsFingerprint:+!!b.tlsFingerprint});let c=a.prepare("SELECT COUNT(*) as cnt FROM proxy_logs").get()?.cnt||0;c>g&&a.prepare(`DELETE FROM proxy_logs WHERE id IN (
7
7
  SELECT id FROM proxy_logs ORDER BY timestamp ASC LIMIT ?
8
- )`).run(c-g)}catch(a){console.warn("[proxyLogger] Failed to persist:",a.message)}return b}function j(a={}){let b=[...h];if(a.status&&(b="ok"===a.status?b.filter(a=>"success"===a.status):b.filter(b=>b.status===a.status)),a.type&&(b=b.filter(b=>b.proxy?.type===a.type)),a.provider&&(b=b.filter(b=>b.provider===a.provider)),a.level&&(b=b.filter(b=>b.level===a.level)),a.search){let c=a.search.toLowerCase();b=b.filter(a=>(a.proxy?.host||"").toLowerCase().includes(c)||(a.provider||"").toLowerCase().includes(c)||(a.targetUrl||"").toLowerCase().includes(c)||(a.publicIp||"").toLowerCase().includes(c)||(a.level||"").toLowerCase().includes(c)||(a.error||"").toLowerCase().includes(c)||(a.account||"").toLowerCase().includes(c))}let c=a.limit||300;return b.slice(0,c)}function k(){if(h.length=0,f)try{(0,e.sm)().prepare("DELETE FROM proxy_logs").run()}catch(a){console.warn("[proxyLogger] Failed to clear DB:",a.message)}}},44963:(a,b,c)=>{c.d(b,{AF:()=>j,of:()=>e,u9:()=>i});var d=c(75585);let e=process.env.CLOUD_URL||process.env.NEXT_PUBLIC_CLOUD_URL,f=Number(process.env.CLOUD_SYNC_TIMEOUT_MS||12e3);function g(a){return a&&"object"==typeof a&&!Array.isArray(a)?a:{}}function h(a){if("string"==typeof a||"number"==typeof a||a instanceof Date){let b=new Date(a).getTime();return Number.isFinite(b)?b:0}return 0}async function i(a,b={},c=f){let d=new AbortController,e=setTimeout(()=>d.abort(),c);try{return await fetch(a,{...b,signal:d.signal})}finally{clearTimeout(e)}}async function j(a,b=null){let c;if(!e)return{error:"NEXT_PUBLIC_CLOUD_URL is not configured"};let f=await (0,d.getProviderConnections)(),g=await (0,d.OM)(),h=await (0,d.Uv)(),l=await (0,d.PX)();try{c=await i(`${e}/sync/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providers:f,modelAliases:g,combos:h,apiKeys:l})})}catch(a){return{error:a?.name==="AbortError"?"Cloud sync timeout":"Cloud sync request failed"}}if(!c.ok){let a=await c.text(),b=a.length>200?a.slice(0,200)+"…":a;return console.log(`Cloud sync failed (${c.status}):`,b),{error:"Cloud sync failed"}}let m=await c.json();m.data&&m.data.providers&&await k(m.data.providers);let n={success:!0,message:"Synced successfully",changes:m.changes};return b&&(n.createdKey=b),n}async function k(a){let b=g(a);for(let a of(await (0,d.getProviderConnections)())){var c;let e=g(a),f="string"==typeof(c=e.id)&&c.trim().length>0?c:null;if(!f)continue;let i=g(b[f]);if(0!==Object.keys(i).length){if(h(i.updatedAt)>h(e.updatedAt)){let a={accessToken:i.accessToken,refreshToken:i.refreshToken,expiresAt:i.expiresAt,expiresIn:i.expiresIn,providerSpecificData:i.providerSpecificData||e.providerSpecificData,testStatus:i.status||"active",lastError:i.lastError,lastErrorAt:i.lastErrorAt,errorCode:i.errorCode,rateLimitedUntil:i.rateLimitedUntil,updatedAt:i.updatedAt};await (0,d.rj)(f,a)}}}}},76340:(a,b,c)=>{let d,e;c.d(b,{Wk:()=>t,jf:()=>q,qT:()=>s});var f=c(16698),g=c(79522);try{let a=c(22546);d="function"==typeof a.createSession?a.createSession:null}catch{d=null}class h{constructor(){this.session=null,this.available=!!d}async getSession(){if(!this.available)return null;if(this.session)return this.session;let a=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy||void 0,b={browser:"chrome_124",os:"macos"};return a&&(b.proxy=a,console.log(`[TlsClient] Using proxy: ${a}`)),this.session=await d(b),console.log("[TlsClient] Session created (Chrome 124 TLS fingerprint)"),this.session}async fetch(a,b={}){let c=await this.getSession();if(!c)throw Error("wreq-js not available");let d={method:(b.method||"GET").toUpperCase(),headers:function(a){if(!a)return;if(a instanceof Headers)return Object.fromEntries(a.entries());if(Array.isArray(a))return Object.fromEntries(a.map(([a,b])=>[a,String(b)]));let b={};for(let[c,d]of Object.entries(a))"string"==typeof d&&(b[c]=d);return b}(b.headers),body:b.body,redirect:"manual"===b.redirect?"manual":"follow"};return b.signal&&(d.signal=b.signal),await c.fetch(a,d)}async exit(){this.session&&(await this.session.close(),this.session=null)}}let i=new h;function j(){return"true"===process.env.ENABLE_TLS_FINGERPRINT}let k=new f.AsyncLocalStorage,l="u">typeof caches&&"object"==typeof caches,m=Symbol.for("omniroute.proxyFetch.state"),n=((e=globalThis)[m]||(e[m]={originalFetch:globalThis.fetch,proxyContext:new f.AsyncLocalStorage,isPatched:!1}),e[m]),o=n.originalFetch,p=n.proxyContext;async function q(a,b){if("function"!=typeof b)throw TypeError("runWithProxyContext requires a callback function");let c=a?(0,g.HN)(a):null;return p.run(a||null,async()=>(c&&console.log(`[ProxyFetch] Applied request proxy context: ${(0,g.OK)(c)}`),b()))}async function r(a,b={}){let c;if(b?.dispatcher)return o(a,b);let d="string"==typeof a?a:a&&"string"==typeof a.url?a.url:String(a);try{c=function(a){let b=p.getStore();if(b)return{source:"context",proxyUrl:(0,g.HN)(b)};let c=function(a){let b;if(function(a){let b,c=process.env.NO_PROXY||process.env.no_proxy;if(!c)return!1;try{b=new URL(a)}catch{return!1}let d=b.hostname.toLowerCase(),e=b.port||("https:"===b.protocol?"443":"80");return c.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>{if("*"===a)return!0;let[b,c]=a.split(":");return(!c||c===e)&&!!b&&(b.startsWith(".")?d.endsWith(b)||d===b.slice(1):d===b||d.endsWith(`.${b}`))})}(a))return null;try{b=new URL(a).protocol}catch{return null}let c="https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy;return c?(0,g.zP)(c,"environment proxy"):null}(a);return c?{source:"env",proxyUrl:c}:{source:"direct",proxyUrl:null}}(d)}catch(b){let a=b instanceof Error?b.message:String(b);throw console.error(`[ProxyFetch] Proxy configuration error: ${a}`),b}let{source:e,proxyUrl:f}=c;if(!f){if(j()&&i.available)try{let a=k.getStore();return a&&(a.used=!0),await i.fetch(d,{...b,headers:b.headers})}catch(c){let a=c instanceof Error?c.message:String(c);console.warn(`[ProxyFetch] TLS fingerprint failed, falling back to native fetch: ${a}`);let b=k.getStore();b&&(b.used=!1)}return o(a,b)}try{let c=(0,g.I_)(f);return await o(a,{...b,dispatcher:c})}catch(b){let a=b instanceof Error?b.message:String(b);throw console.error(`[ProxyFetch] Proxy request failed (${e}, fail-closed): ${a}`),b}}async function s(a){let b={used:!1};return{result:await k.run(b,a),tlsFingerprintUsed:b.used}}function t(){return j()&&i.available}l||n.isPatched||(globalThis.fetch=r,n.isPatched=!0)},79522:(a,b,c)=>{c.d(b,{HN:()=>p,I_:()=>q,L8:()=>i,OK:()=>n,QX:()=>m,zP:()=>o});var d=c(47774),e=c(20406);let f=Symbol.for("omniroute.proxyDispatcher.cache"),g=new Set(["http:","https:","socks5:"]);function h(){let a=globalThis;return a[f]||(a[f]=new Map),a[f]}function i(){h().clear()}function j(a){try{let b=a.match(/:\/\/(?:[^@]*@)?[^:/\s]+:(\d+)/);if(b){let a=Number(b[1]);if(Number.isInteger(a)&&a>=1&&a<=65535)return String(a)}}catch{}return null}function k(a){return"https:"===a||"wss:"===a?"443":"socks5:"===a?"1080":"8080"}function l(a,b){if(!a)return k(b);let c=Number(a);if(!Number.isInteger(c)||c<1||c>65535)throw Error("[ProxyDispatcher] Invalid proxy port");return String(c)}function m(){return"true"===process.env.ENABLE_SOCKS5_PROXY}function n(a){let b=j(a),c=new URL(a),d=b||c.port||k(c.protocol);return`${c.protocol}//${c.hostname}:${d}`}function o(a,b="proxy",{allowSocks5:c=m()}={}){var d;let e,f,h=j(a);try{e=new URL(a)}catch{throw Error(`[ProxyDispatcher] Invalid ${b} URL`)}if(!g.has(e.protocol))throw Error(`[ProxyDispatcher] Unsupported ${b} protocol: ${e.protocol.replace(":","")}`);if("socks5:"===e.protocol&&!c)throw Error("[ProxyDispatcher] SOCKS5 proxy is disabled (set ENABLE_SOCKS5_PROXY=true to enable)");if(!e.hostname)throw Error(`[ProxyDispatcher] Invalid ${b} host`);let i=h||l(e.port,e.protocol);return f=(d=e).username?`${d.username}${d.password?`:${d.password}`:""}@`:"",`${d.protocol}//${f}${d.hostname}:${i}`}function p(a,{allowSocks5:b=m()}={}){if(!a)return null;if("string"==typeof a)return o(a,"context proxy",{allowSocks5:b});if("object"!=typeof a||Array.isArray(a))throw Error("[ProxyDispatcher] Invalid context proxy config");let c=String(a.type||"http").toLowerCase(),d=`${c}:`;if(!g.has(d))throw Error(`[ProxyDispatcher] Unsupported context proxy protocol: ${c}`);if("socks5:"===d&&!b)throw Error("[ProxyDispatcher] SOCKS5 proxy is disabled (set ENABLE_SOCKS5_PROXY=true to enable)");if(!a.host)throw Error("[ProxyDispatcher] Context proxy host is required");let e=l(a.port,d),f=a.username?`${encodeURIComponent(a.username)}:${a.password?encodeURIComponent(a.password):""}@`:"";return o(`${c}://${f}${a.host}:${e}`,"context proxy",{allowSocks5:b})}function q(a){let b=o(a,"proxy dispatcher"),c=h(),f=c.get(b);if(f)return f;let g=new URL(b),i=j(b)||l(g.port,g.protocol);if("socks5:"===g.protocol){let a={type:5,host:g.hostname,port:Number(i)};g.username&&(a.userId=decodeURIComponent(g.username)),g.password&&(a.password=decodeURIComponent(g.password)),f=(0,e.vI)(a)}else f=new d.ProxyAgent(b);return c.set(b,f),f}},90357:(a,b,c)=>{c.d(b,{Xj:()=>e});var d=c(19713);async function e(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt";try{let a=(0,d.machineIdSync)();return(await Promise.resolve().then(c.t.bind(c,55511,23))).createHash("sha256").update(a+b).digest("hex").substring(0,16)}catch(a){return console.log("Error getting machine ID:",a),crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}}}};
8
+ )`).run(c-g)}catch(a){console.warn("[proxyLogger] Failed to persist:",a.message)}return b}function j(a={}){let b=[...h];if(a.status&&(b="ok"===a.status?b.filter(a=>"success"===a.status):b.filter(b=>b.status===a.status)),a.type&&(b=b.filter(b=>b.proxy?.type===a.type)),a.provider&&(b=b.filter(b=>b.provider===a.provider)),a.level&&(b=b.filter(b=>b.level===a.level)),a.search){let c=a.search.toLowerCase();b=b.filter(a=>(a.proxy?.host||"").toLowerCase().includes(c)||(a.provider||"").toLowerCase().includes(c)||(a.targetUrl||"").toLowerCase().includes(c)||(a.publicIp||"").toLowerCase().includes(c)||(a.level||"").toLowerCase().includes(c)||(a.error||"").toLowerCase().includes(c)||(a.account||"").toLowerCase().includes(c))}let c=a.limit||300;return b.slice(0,c)}function k(){if(h.length=0,f)try{(0,e.sm)().prepare("DELETE FROM proxy_logs").run()}catch(a){console.warn("[proxyLogger] Failed to clear DB:",a.message)}}},44963:(a,b,c)=>{c.d(b,{AF:()=>j,of:()=>e,u9:()=>i});var d=c(75585);let e=process.env.CLOUD_URL||"https://cloud.omniroute.online",f=Number(process.env.CLOUD_SYNC_TIMEOUT_MS||12e3);function g(a){return a&&"object"==typeof a&&!Array.isArray(a)?a:{}}function h(a){if("string"==typeof a||"number"==typeof a||a instanceof Date){let b=new Date(a).getTime();return Number.isFinite(b)?b:0}return 0}async function i(a,b={},c=f){let d=new AbortController,e=setTimeout(()=>d.abort(),c);try{return await fetch(a,{...b,signal:d.signal})}finally{clearTimeout(e)}}async function j(a,b=null){let c;if(!e)return{error:"NEXT_PUBLIC_CLOUD_URL is not configured"};let f=await (0,d.getProviderConnections)(),g=await (0,d.OM)(),h=await (0,d.Uv)(),l=await (0,d.PX)();try{c=await i(`${e}/sync/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providers:f,modelAliases:g,combos:h,apiKeys:l})})}catch(a){return{error:a?.name==="AbortError"?"Cloud sync timeout":"Cloud sync request failed"}}if(!c.ok){let a=await c.text(),b=a.length>200?a.slice(0,200)+"…":a;return console.log(`Cloud sync failed (${c.status}):`,b),{error:"Cloud sync failed"}}let m=await c.json();m.data&&m.data.providers&&await k(m.data.providers);let n={success:!0,message:"Synced successfully",changes:m.changes};return b&&(n.createdKey=b),n}async function k(a){let b=g(a);for(let a of(await (0,d.getProviderConnections)())){var c;let e=g(a),f="string"==typeof(c=e.id)&&c.trim().length>0?c:null;if(!f)continue;let i=g(b[f]);if(0!==Object.keys(i).length){if(h(i.updatedAt)>h(e.updatedAt)){let a={accessToken:i.accessToken,refreshToken:i.refreshToken,expiresAt:i.expiresAt,expiresIn:i.expiresIn,providerSpecificData:i.providerSpecificData||e.providerSpecificData,testStatus:i.status||"active",lastError:i.lastError,lastErrorAt:i.lastErrorAt,errorCode:i.errorCode,rateLimitedUntil:i.rateLimitedUntil,updatedAt:i.updatedAt};await (0,d.rj)(f,a)}}}}},76340:(a,b,c)=>{let d,e;c.d(b,{Wk:()=>t,jf:()=>q,qT:()=>s});var f=c(16698),g=c(79522);try{let a=c(22546);d="function"==typeof a.createSession?a.createSession:null}catch{d=null}class h{constructor(){this.session=null,this.available=!!d}async getSession(){if(!this.available)return null;if(this.session)return this.session;let a=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy||void 0,b={browser:"chrome_124",os:"macos"};return a&&(b.proxy=a,console.log(`[TlsClient] Using proxy: ${a}`)),this.session=await d(b),console.log("[TlsClient] Session created (Chrome 124 TLS fingerprint)"),this.session}async fetch(a,b={}){let c=await this.getSession();if(!c)throw Error("wreq-js not available");let d={method:(b.method||"GET").toUpperCase(),headers:function(a){if(!a)return;if(a instanceof Headers)return Object.fromEntries(a.entries());if(Array.isArray(a))return Object.fromEntries(a.map(([a,b])=>[a,String(b)]));let b={};for(let[c,d]of Object.entries(a))"string"==typeof d&&(b[c]=d);return b}(b.headers),body:b.body,redirect:"manual"===b.redirect?"manual":"follow"};return b.signal&&(d.signal=b.signal),await c.fetch(a,d)}async exit(){this.session&&(await this.session.close(),this.session=null)}}let i=new h;function j(){return"true"===process.env.ENABLE_TLS_FINGERPRINT}let k=new f.AsyncLocalStorage,l="u">typeof caches&&"object"==typeof caches,m=Symbol.for("omniroute.proxyFetch.state"),n=((e=globalThis)[m]||(e[m]={originalFetch:globalThis.fetch,proxyContext:new f.AsyncLocalStorage,isPatched:!1}),e[m]),o=n.originalFetch,p=n.proxyContext;async function q(a,b){if("function"!=typeof b)throw TypeError("runWithProxyContext requires a callback function");let c=a?(0,g.HN)(a):null;return p.run(a||null,async()=>(c&&console.log(`[ProxyFetch] Applied request proxy context: ${(0,g.OK)(c)}`),b()))}async function r(a,b={}){let c;if(b?.dispatcher)return o(a,b);let d="string"==typeof a?a:a&&"string"==typeof a.url?a.url:String(a);try{c=function(a){let b=p.getStore();if(b)return{source:"context",proxyUrl:(0,g.HN)(b)};let c=function(a){let b;if(function(a){let b,c=process.env.NO_PROXY||process.env.no_proxy;if(!c)return!1;try{b=new URL(a)}catch{return!1}let d=b.hostname.toLowerCase(),e=b.port||("https:"===b.protocol?"443":"80");return c.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>{if("*"===a)return!0;let[b,c]=a.split(":");return(!c||c===e)&&!!b&&(b.startsWith(".")?d.endsWith(b)||d===b.slice(1):d===b||d.endsWith(`.${b}`))})}(a))return null;try{b=new URL(a).protocol}catch{return null}let c="https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy;return c?(0,g.zP)(c,"environment proxy"):null}(a);return c?{source:"env",proxyUrl:c}:{source:"direct",proxyUrl:null}}(d)}catch(b){let a=b instanceof Error?b.message:String(b);throw console.error(`[ProxyFetch] Proxy configuration error: ${a}`),b}let{source:e,proxyUrl:f}=c;if(!f){if(j()&&i.available)try{let a=k.getStore();return a&&(a.used=!0),await i.fetch(d,{...b,headers:b.headers})}catch(c){let a=c instanceof Error?c.message:String(c);console.warn(`[ProxyFetch] TLS fingerprint failed, falling back to native fetch: ${a}`);let b=k.getStore();b&&(b.used=!1)}return o(a,b)}try{let c=(0,g.I_)(f);return await o(a,{...b,dispatcher:c})}catch(b){let a=b instanceof Error?b.message:String(b);throw console.error(`[ProxyFetch] Proxy request failed (${e}, fail-closed): ${a}`),b}}async function s(a){let b={used:!1};return{result:await k.run(b,a),tlsFingerprintUsed:b.used}}function t(){return j()&&i.available}l||n.isPatched||(globalThis.fetch=r,n.isPatched=!0)},79522:(a,b,c)=>{c.d(b,{HN:()=>p,I_:()=>q,L8:()=>i,OK:()=>n,QX:()=>m,zP:()=>o});var d=c(47774),e=c(20406);let f=Symbol.for("omniroute.proxyDispatcher.cache"),g=new Set(["http:","https:","socks5:"]);function h(){let a=globalThis;return a[f]||(a[f]=new Map),a[f]}function i(){h().clear()}function j(a){try{let b=a.match(/:\/\/(?:[^@]*@)?[^:/\s]+:(\d+)/);if(b){let a=Number(b[1]);if(Number.isInteger(a)&&a>=1&&a<=65535)return String(a)}}catch{}return null}function k(a){return"https:"===a||"wss:"===a?"443":"socks5:"===a?"1080":"8080"}function l(a,b){if(!a)return k(b);let c=Number(a);if(!Number.isInteger(c)||c<1||c>65535)throw Error("[ProxyDispatcher] Invalid proxy port");return String(c)}function m(){return"true"===process.env.ENABLE_SOCKS5_PROXY}function n(a){let b=j(a),c=new URL(a),d=b||c.port||k(c.protocol);return`${c.protocol}//${c.hostname}:${d}`}function o(a,b="proxy",{allowSocks5:c=m()}={}){var d;let e,f,h=j(a);try{e=new URL(a)}catch{throw Error(`[ProxyDispatcher] Invalid ${b} URL`)}if(!g.has(e.protocol))throw Error(`[ProxyDispatcher] Unsupported ${b} protocol: ${e.protocol.replace(":","")}`);if("socks5:"===e.protocol&&!c)throw Error("[ProxyDispatcher] SOCKS5 proxy is disabled (set ENABLE_SOCKS5_PROXY=true to enable)");if(!e.hostname)throw Error(`[ProxyDispatcher] Invalid ${b} host`);let i=h||l(e.port,e.protocol);return f=(d=e).username?`${d.username}${d.password?`:${d.password}`:""}@`:"",`${d.protocol}//${f}${d.hostname}:${i}`}function p(a,{allowSocks5:b=m()}={}){if(!a)return null;if("string"==typeof a)return o(a,"context proxy",{allowSocks5:b});if("object"!=typeof a||Array.isArray(a))throw Error("[ProxyDispatcher] Invalid context proxy config");let c=String(a.type||"http").toLowerCase(),d=`${c}:`;if(!g.has(d))throw Error(`[ProxyDispatcher] Unsupported context proxy protocol: ${c}`);if("socks5:"===d&&!b)throw Error("[ProxyDispatcher] SOCKS5 proxy is disabled (set ENABLE_SOCKS5_PROXY=true to enable)");if(!a.host)throw Error("[ProxyDispatcher] Context proxy host is required");let e=l(a.port,d),f=a.username?`${encodeURIComponent(a.username)}:${a.password?encodeURIComponent(a.password):""}@`:"";return o(`${c}://${f}${a.host}:${e}`,"context proxy",{allowSocks5:b})}function q(a){let b=o(a,"proxy dispatcher"),c=h(),f=c.get(b);if(f)return f;let g=new URL(b),i=j(b)||l(g.port,g.protocol);if("socks5:"===g.protocol){let a={type:5,host:g.hostname,port:Number(i)};g.username&&(a.userId=decodeURIComponent(g.username)),g.password&&(a.password=decodeURIComponent(g.password)),f=(0,e.vI)(a)}else f=new d.ProxyAgent(b);return c.set(b,f),f}},90357:(a,b,c)=>{c.d(b,{Xj:()=>e});var d=c(19713);async function e(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt";try{let a=(0,d.machineIdSync)();return(await Promise.resolve().then(c.t.bind(c,55511,23))).createHash("sha256").update(a+b).digest("hex").substring(0,16)}catch(a){return console.log("Error getting machine ID:",a),crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=7167,exports.ids=[7167],exports.modules={15102:(a,b,c)=>{c.d(b,{Uk:()=>f,bV:()=>e,lw:()=>g});let d={openai:{id:"openai",baseUrl:"https://api.openai.com/v1/images/generations",authType:"apikey",authHeader:"bearer",format:"openai",models:[{id:"gpt-image-1",name:"GPT Image 1"},{id:"dall-e-3",name:"DALL-E 3"},{id:"dall-e-2",name:"DALL-E 2"}],supportedSizes:["1024x1024","1024x1792","1792x1024","256x256","512x512"]},xai:{id:"xai",baseUrl:"https://api.x.ai/v1/images/generations",authType:"apikey",authHeader:"bearer",format:"openai",models:[{id:"grok-2-image-1212",name:"Grok 2 Image"}],supportedSizes:["1024x1024"]},together:{id:"together",baseUrl:"https://api.together.xyz/v1/images/generations",authType:"apikey",authHeader:"bearer",format:"openai",models:[{id:"black-forest-labs/FLUX.1.1-pro",name:"FLUX 1.1 Pro"},{id:"black-forest-labs/FLUX.1-schnell-Free",name:"FLUX 1 Schnell (Free)"},{id:"stabilityai/stable-diffusion-xl-base-1.0",name:"SDXL Base 1.0"}],supportedSizes:["1024x1024","512x512"]},fireworks:{id:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1/images/generations",authType:"apikey",authHeader:"bearer",format:"openai",models:[{id:"accounts/fireworks/models/flux-1-dev-fp8",name:"FLUX 1 Dev FP8"},{id:"accounts/fireworks/models/stable-diffusion-xl-1024-v1-0",name:"SDXL 1024 v1.0"}],supportedSizes:["1024x1024","512x512"]},antigravity:{id:"antigravity",baseUrl:"https://generativelanguage.googleapis.com/v1beta/models",authType:"oauth",authHeader:"bearer",format:"gemini-image",models:[{id:"gemini-2.5-flash-preview-image-generation",name:"Gemini 2.5 Flash Image"},{id:"gemini-3.1-flash-image-preview",name:"Gemini 3.1 Flash Image Preview"}],supportedSizes:["1024x1024"]},nebius:{id:"nebius",baseUrl:"https://api.tokenfactory.nebius.com/v1/images/generations",fallbackUrl:"https://api.studio.nebius.com/v1/images/generations",authType:"apikey",authHeader:"bearer",format:"openai",models:[{id:"black-forest-labs/flux-schnell",name:"FLUX.1 Schnell"},{id:"black-forest-labs/flux-dev",name:"FLUX.1 Dev"}],supportedSizes:["1024x1024","512x512"]},hyperbolic:{id:"hyperbolic",baseUrl:"https://api.hyperbolic.xyz/v1/image/generation",authType:"apikey",authHeader:"bearer",format:"hyperbolic",models:[{id:"SDXL1.0-base",name:"SDXL 1.0 Base"},{id:"SD2",name:"Stable Diffusion 2"},{id:"FLUX.1-dev",name:"FLUX.1 Dev"}],supportedSizes:["1024x1024","512x512"]},nanobanana:{id:"nanobanana",baseUrl:"https://api.nanobananaapi.ai/api/v1/nanobanana/generate",proUrl:"https://api.nanobananaapi.ai/api/v1/nanobanana/generate-pro",statusUrl:"https://api.nanobananaapi.ai/api/v1/nanobanana/record-info",authType:"apikey",authHeader:"bearer",format:"nanobanana",models:[{id:"nanobanana-flash",name:"NanoBanana Flash (Gemini 2.5 Flash)"},{id:"nanobanana-pro",name:"NanoBanana Pro (Gemini 3 Pro)"}],supportedSizes:["1024x1024","1024x1280","1024x1536","1536x1024","1280x1024"]},sdwebui:{id:"sdwebui",baseUrl:"http://localhost:7860/sdapi/v1/txt2img",authType:"none",authHeader:"none",format:"sdwebui",models:[{id:"stable-diffusion-v1-5",name:"Stable Diffusion v1.5"},{id:"sdxl-base-1.0",name:"SDXL Base 1.0"}],supportedSizes:["512x512","768x768","1024x1024"]},comfyui:{id:"comfyui",baseUrl:"http://localhost:8188",authType:"none",authHeader:"none",format:"comfyui",models:[{id:"flux-dev",name:"FLUX Dev"},{id:"sdxl",name:"SDXL"}],supportedSizes:["512x512","768x768","1024x1024"]}};function e(a){return d[a]||null}function f(a){if(!a)return{provider:null,model:null};for(let[b,c]of Object.entries(d))if(a.startsWith(b+"/"))return{provider:b,model:a.slice(b.length+1)};for(let[b,c]of Object.entries(d))if(c.models.some(b=>b.id===a))return{provider:b,model:a};return{provider:null,model:a}}function g(){let a=[];for(let[b,c]of Object.entries(d))for(let d of c.models)a.push({id:`${b}/${d.id}`,name:d.name,provider:b,supportedSizes:c.supportedSizes});return a}},39548:(a,b,c)=>{c.d(b,{k:()=>g});var d=c(15102),e=c(19704),f=c(92310);async function g({body:a,credentials:b,log:c,resolvedProvider:e=null}){let f,g;if(e){f=e;let b=a.model||"";g=b.startsWith(f+"/")?b.slice(f.length+1):b}else{let b=(0,d.Uk)(a.model);f=b.provider,g=b.model}if(!f)return{success:!1,status:400,error:`Invalid image model: ${a.model}. Use format: provider/model`};let j=(0,d.bV)(f);if(!j){if(!e)return{success:!1,status:400,error:`Unknown image provider: ${f}`};c&&c.info("IMAGE",`Custom model ${f}/${g} — using OpenAI-compatible handler`);let d={id:f,baseUrl:b?.baseUrl||"https://generativelanguage.googleapis.com/v1beta/openai/images/generations",authType:"apikey",authHeader:"bearer",format:"openai"};return i({model:g,provider:f,providerConfig:d,body:a,credentials:b,log:c})}return"gemini-image"===j.format?h({model:g,providerConfig:j,body:a,credentials:b,log:c}):"hyperbolic"===j.format?k({model:g,provider:f,providerConfig:j,body:a,credentials:b,log:c}):"nanobanana"===j.format?l({model:g,provider:f,providerConfig:j,body:a,credentials:b,log:c}):"sdwebui"===j.format?o({model:g,provider:f,providerConfig:j,body:a,log:c}):"comfyui"===j.format?p({model:g,provider:f,providerConfig:j,body:a,log:c}):i({model:g,provider:f,providerConfig:j,body:a,credentials:b,log:c})}async function h({model:a,providerConfig:b,body:c,credentials:d,log:f}){let g=Date.now(),h=`${b.baseUrl}/${a}:generateContent`,i="antigravity",j={model:c.model,prompt:"string"==typeof c.prompt?c.prompt.slice(0,200):String(c.prompt??"").slice(0,200),size:c.size||"default",n:c.n||1},k={contents:[{parts:[{text:c.prompt}]}],generationConfig:{responseModalities:["TEXT","IMAGE"]}},l=d.accessToken||d.apiKey,m={"Content-Type":"application/json",Authorization:`Bearer ${l}`};if(f){let b="string"==typeof c.prompt?c.prompt.slice(0,60):String(c.prompt??"").slice(0,60);f.info("IMAGE",`antigravity/${a} (gemini) | prompt: "${b}..." | format: gemini-image`)}try{let b=await fetch(h,{method:"POST",headers:m,body:JSON.stringify(k)});if(!b.ok){let c=await b.text();return f&&f.error("IMAGE",`antigravity error ${b.status}: ${c.slice(0,200)}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:b.status,model:`antigravity/${a}`,provider:i,duration:Date.now()-g,error:c.slice(0,500),requestBody:j}).catch(()=>{}),{success:!1,status:b.status,error:c}}let d=await b.json(),l=[];for(let a of d.candidates||[]){let b=a.content?.parts||[];for(let a of b)a.inlineData&&l.push({b64_json:a.inlineData.data,revised_prompt:b.find(a=>a.text)?.text||c.prompt})}return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`antigravity/${a}`,provider:i,duration:Date.now()-g,tokens:{prompt_tokens:0,completion_tokens:0},requestBody:j,responseBody:{images_count:l.length}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:l}}}catch(b){return f&&f.error("IMAGE",`antigravity fetch error: ${b.message}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`antigravity/${a}`,provider:i,duration:Date.now()-g,error:b.message,requestBody:j}).catch(()=>{}),{success:!1,status:502,error:`Image provider error: ${b.message}`}}}async function i({model:a,provider:b,providerConfig:c,body:d,credentials:f,log:g}){let h=Date.now(),i={model:d.model,prompt:"string"==typeof d.prompt?d.prompt.slice(0,200):String(d.prompt??"").slice(0,200),size:d.size||"default",n:d.n||1,quality:d.quality||void 0},k={model:a,prompt:d.prompt};void 0!==d.n&&(k.n=d.n),void 0!==d.size&&(k.size=d.size),void 0!==d.quality&&(k.quality=d.quality),void 0!==d.response_format&&(k.response_format=d.response_format),void 0!==d.style&&(k.style=d.style);let l={"Content-Type":"application/json"},m=f.apiKey||f.accessToken;if("bearer"===c.authHeader?l.Authorization=`Bearer ${m}`:"x-api-key"===c.authHeader&&(l["x-api-key"]=m),g){let c="string"==typeof d.prompt?d.prompt.slice(0,60):String(d.prompt??"").slice(0,60);g.info("IMAGE",`${b}/${a} | prompt: "${c}..." | size: ${d.size||"default"}`)}let n=JSON.stringify(k),o=await j(c.baseUrl,l,n,b,g);return!o.success&&c.fallbackUrl&&[404,410,502,503].includes(o.status)&&(g&&g.info("IMAGE",`${b}: primary URL failed (${o.status}), trying fallback...`),o=await j(c.fallbackUrl,l,n,b,g)),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:o.status||(o.success?200:502),model:`${b}/${a}`,provider:b,duration:Date.now()-h,tokens:{prompt_tokens:0,completion_tokens:0},error:o.success?null:"string"==typeof o.error?o.error.slice(0,500):null,requestBody:i,responseBody:o.success?{images_count:o.data?.data?.length||0}:null}).catch(()=>{}),o}async function j(a,b,c,d,e){try{let f=await fetch(a,{method:"POST",headers:b,body:c});if(!f.ok){let a=await f.text();return e&&e.error("IMAGE",`${d} error ${f.status}: ${a.slice(0,200)}`),{success:!1,status:f.status,error:a}}let g=await f.json();return{success:!0,data:{created:g.created||Math.floor(Date.now()/1e3),data:g.data||[]}}}catch(a){return e&&e.error("IMAGE",`${d} fetch error: ${a.message}`),{success:!1,status:502,error:`Image provider error: ${a.message}`}}}async function k({model:a,provider:b,providerConfig:c,body:d,credentials:f,log:g}){let h=Date.now(),i=f.apiKey||f.accessToken,[j,k]=(d.size||"1024x1024").split("x").map(Number),l={model_name:a,prompt:d.prompt,height:k||1024,width:j||1024,backend:"auto"};if(g){let c=String(d.prompt??"").slice(0,60);g.info("IMAGE",`${b}/${a} (hyperbolic) | prompt: "${c}..."`)}try{let f=await fetch(c.baseUrl,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify(l)});if(!f.ok){let c=await f.text();return g&&g.error("IMAGE",`${b} error ${f.status}: ${c.slice(0,200)}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:f.status,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c.slice(0,500)}).catch(()=>{}),{success:!1,status:f.status,error:c}}let j=((await f.json()).images||[]).map(a=>({b64_json:a.image,revised_prompt:d.prompt}));return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`${b}/${a}`,provider:b,duration:Date.now()-h,responseBody:{images_count:j.length}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:j}}}catch(c){return g&&g.error("IMAGE",`${b} fetch error: ${c.message}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c.message}).catch(()=>{}),{success:!1,status:502,error:`Image provider error: ${c.message}`}}}async function l({model:a,provider:b,providerConfig:c,body:d,credentials:f,log:g}){let h=Date.now(),i=f.apiKey||f.accessToken,j="nanobanana-pro"===a,k=j&&c.proUrl?c.proUrl:c.baseUrl,l=c.statusUrl,o="string"==typeof d.aspectRatio?d.aspectRatio:"string"==typeof d.aspect_ratio?d.aspect_ratio:function(a){if("string"!=typeof a)return null;let[b,c]=a.split("x"),d=Number(b),e=Number(c);if(!Number.isFinite(d)||!Number.isFinite(e)||d<=0||e<=0)return null;let f=(a,b)=>0===b?a:f(b,a%b),g=f(Math.round(d),Math.round(e));return`${Math.round(d/g)}:${Math.round(e/g)}`}(d.size)||"1:1",p="string"==typeof d.resolution?d.resolution:function(a){if("string"!=typeof a)return null;let[b,c]=a.split("x"),d=Number(b),e=Number(c);if(!Number.isFinite(d)||!Number.isFinite(e)||d<=0||e<=0)return null;let f=Math.max(d,e);return f<=1024?"1K":f<=2048?"2K":"4K"}(d.size)||"1K";"hd"===d.quality&&"1K"===p&&(p="2K");let q=j?{prompt:d.prompt,resolution:p,aspectRatio:o,...Array.isArray(d.imageUrls)?{imageUrls:d.imageUrls}:{}}:{prompt:d.prompt,type:Array.isArray(d.imageUrls)&&d.imageUrls.length>0?"IMAGETOIAMGE":"TEXTTOIAMGE",numImages:Number.isFinite(d.n)?Math.max(1,Number(d.n)):1,image_size:o,...Array.isArray(d.imageUrls)?{imageUrls:d.imageUrls}:{}};if(g){let c=String(d.prompt??"").slice(0,60);g.info("IMAGE",`${b}/${a} (nanobanana ${j?"pro":"flash"}) | prompt: "${c}..."`)}try{let c=await fetch(k,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify(q)});if(!c.ok){let d=await c.text();return g&&g.error("IMAGE",`${b} submit error ${c.status}: ${d.slice(0,200)}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:c.status,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:d.slice(0,500)}).catch(()=>{}),{success:!1,status:c.status,error:d}}let f=await c.json();if(f?.image||Array.isArray(f?.images)||Array.isArray(f?.data)||f?.data?.[0]?.url||f?.data?.[0]?.b64_json){let c=function(a,b){let c=[];if(a.image)c.push({b64_json:a.image,revised_prompt:b});else if(Array.isArray(a.images))for(let d of a.images)c.push({b64_json:"string"==typeof d?d:d?.image||d?.data,revised_prompt:b});else if(Array.isArray(a.data))for(let b of a.data)b&&c.push(b);return{data:c.filter(Boolean)}}(f,d.prompt);return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`${b}/${a}`,provider:b,duration:Date.now()-h,responseBody:{images_count:c.data?.length||0,mode:"sync"}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:c.data}}}let j=f?.data?.taskId||f?.taskId;if(!j){let c=`NanoBanana submit did not return taskId: ${JSON.stringify(f).slice(0,400)}`;return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c}).catch(()=>{}),{success:!1,status:502,error:c}}if(!l){let c="NanoBanana statusUrl is not configured";return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:500,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c}).catch(()=>{}),{success:!1,status:500,error:c}}let o=n(d.timeout_ms,n(process.env.NANOBANANA_POLL_TIMEOUT_MS,12e4)),p=n(d.poll_interval_ms,n(process.env.NANOBANANA_POLL_INTERVAL_MS,2500)),r=null,s=Date.now()+o;for(;Date.now()<s;){let c=await fetch(`${l}?taskId=${encodeURIComponent(j)}`,{method:"GET",headers:{Authorization:`Bearer ${i}`}});if(!c.ok){let a=await c.text();return g&&g.error("IMAGE",`${b} poll error ${c.status}: ${a.slice(0,200)}`),{success:!1,status:c.status,error:a}}let f=await c.json(),k=f?.data||f;r=k;let n=Number(k?.successFlag);if(1===n){let c=await m(k,d,g);return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`${b}/${a}`,provider:b,duration:Date.now()-h,responseBody:{images_count:c.length,mode:"async",taskId:j}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:c}}}if(2===n||3===n){let c=k?.errorMessage||`NanoBanana task failed (successFlag=${String(n)})`;return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c.slice(0,500),responseBody:{taskId:j,successFlag:n,errorCode:k?.errorCode??null}}).catch(()=>{}),{success:!1,status:502,error:c}}await function(a){return new Promise(b=>setTimeout(b,a))}(p)}let t=`NanoBanana task timeout after ${o}ms (taskId=${j}, successFlag=${String(r?.successFlag??"unknown")})`;return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:504,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:t,responseBody:{taskId:j,lastSuccessFlag:r?.successFlag??null}}).catch(()=>{}),{success:!1,status:504,error:t}}catch(c){return g&&g.error("IMAGE",`${b} fetch error: ${c.message}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c.message}).catch(()=>{}),{success:!1,status:502,error:`Image provider error: ${c.message}`}}}async function m(a,b,c){let d=a?.response||{},e=[d?.resultImageUrl,d?.originImageUrl,a?.resultImageUrl,a?.originImageUrl].filter(a=>"string"==typeof a&&a.length>0);if(Array.isArray(d?.resultImageUrls))for(let a of d.resultImageUrls)"string"==typeof a&&a.length>0&&e.push(a);let f=[d?.resultImageBase64,d?.resultImage,a?.resultImageBase64,a?.resultImage].filter(a=>"string"==typeof a&&a.length>0);if(Array.isArray(d?.resultImageBase64List))for(let a of d.resultImageBase64List)"string"==typeof a&&a.length>0&&f.push(a);if("b64_json"===b.response_format){if(f.length>0)return f.map(a=>({b64_json:a,revised_prompt:b.prompt}));if(e.length>0){let a=e[0],c=await fetch(a);if(!c.ok)throw Error(`Failed to fetch NanoBanana result image URL (${c.status})`);let d=await c.arrayBuffer();return[{b64_json:Buffer.from(d).toString("base64"),revised_prompt:b.prompt}]}}return e.length>0?e.map(a=>({url:a,revised_prompt:b.prompt})):f.length>0?f.map(a=>({b64_json:a,revised_prompt:b.prompt})):(c&&c.warn("IMAGE",`NanoBanana task completed without image payload: ${JSON.stringify(a).slice(0,240)}`),[])}function n(a,b){let c=Number(a);return!Number.isFinite(c)||c<=0?b:Math.floor(c)}async function o({model:a,provider:b,providerConfig:c,body:d,log:f}){let g=Date.now(),[h,i]=(d.size||"512x512").split("x").map(Number),j={prompt:d.prompt,negative_prompt:d.negative_prompt||"",width:h||512,height:i||512,steps:d.steps||20,cfg_scale:d.cfg_scale||7,sampler_name:d.sampler||"Euler a",batch_size:d.n||1,override_settings:{sd_model_checkpoint:a}};if(f){let c=String(d.prompt??"").slice(0,60);f.info("IMAGE",`${b}/${a} (sdwebui) | prompt: "${c}..."`)}try{let h=await fetch(c.baseUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)});if(!h.ok){let c=await h.text();return f&&f.error("IMAGE",`${b} error ${h.status}: ${c.slice(0,200)}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:h.status,model:`${b}/${a}`,provider:b,duration:Date.now()-g,error:c.slice(0,500)}).catch(()=>{}),{success:!1,status:h.status,error:c}}let i=((await h.json()).images||[]).map(a=>({b64_json:a,revised_prompt:d.prompt}));return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`${b}/${a}`,provider:b,duration:Date.now()-g,responseBody:{images_count:i.length}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:i}}}catch(c){return f&&f.error("IMAGE",`${b} sdwebui error: ${c.message}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-g,error:c.message}).catch(()=>{}),{success:!1,status:502,error:`Image provider error: ${c.message}`}}}async function p({model:a,provider:b,providerConfig:c,body:d,log:g}){let h=Date.now(),[i,j]=(d.size||"1024x1024").split("x").map(Number),k={3:{class_type:"KSampler",inputs:{seed:Math.floor(0x100000000*Math.random()),steps:d.steps||20,cfg:d.cfg_scale||7,sampler_name:"euler",scheduler:"normal",denoise:1,model:["4",0],positive:["6",0],negative:["7",0],latent_image:["5",0]}},4:{class_type:"CheckpointLoaderSimple",inputs:{ckpt_name:a}},5:{class_type:"EmptyLatentImage",inputs:{width:i||1024,height:j||1024,batch_size:d.n||1}},6:{class_type:"CLIPTextEncode",inputs:{text:d.prompt,clip:["4",1]}},7:{class_type:"CLIPTextEncode",inputs:{text:d.negative_prompt||"",clip:["4",1]}},8:{class_type:"VAEDecode",inputs:{samples:["3",0],vae:["4",2]}},9:{class_type:"SaveImage",inputs:{filename_prefix:"omniroute",images:["8",0]}}};if(g){let c=String(d.prompt??"").slice(0,60);g.info("IMAGE",`${b}/${a} (comfyui) | prompt: "${c}..."`)}try{let g=await (0,f.ep)(c.baseUrl,k),i=await (0,f.VA)(c.baseUrl,g),j=(0,f.AC)(i),l=[];for(let a of j){let b=await (0,f.Uh)(c.baseUrl,a.filename,a.subfolder,a.type),e=Buffer.from(b).toString("base64");l.push({b64_json:e,revised_prompt:d.prompt})}return(0,e.gK)({method:"POST",path:"/v1/images/generations",status:200,model:`${b}/${a}`,provider:b,duration:Date.now()-h,responseBody:{images_count:l.length}}).catch(()=>{}),{success:!0,data:{created:Math.floor(Date.now()/1e3),data:l}}}catch(c){return g&&g.error("IMAGE",`${b} comfyui error: ${c.message}`),(0,e.gK)({method:"POST",path:"/v1/images/generations",status:502,model:`${b}/${a}`,provider:b,duration:Date.now()-h,error:c.message}).catch(()=>{}),{success:!1,status:502,error:`Image provider error: ${c.message}`}}}}};