@shepai/cli 1.182.1 → 1.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (519) hide show
  1. package/apis/json-schema/Application.yaml +7 -0
  2. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts +1 -1
  3. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts.map +1 -1
  4. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts +3 -3
  5. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.js +13 -21
  7. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts +19 -3
  8. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts.map +1 -1
  9. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.js +37 -4
  10. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.d.ts +30 -0
  11. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.d.ts.map +1 -0
  12. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.js +122 -0
  13. package/dist/packages/core/src/domain/generated/output.d.ts +8 -0
  14. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  15. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  16. package/dist/packages/core/src/infrastructure/di/container.js +5 -0
  17. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts +2 -0
  18. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.js +4 -0
  20. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.d.ts +5 -0
  21. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.d.ts.map +1 -0
  22. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.js +10 -0
  23. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.d.ts +5 -0
  24. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.d.ts.map +1 -0
  25. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.js +10 -0
  26. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts +1 -1
  27. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts.map +1 -1
  28. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.js +10 -2
  29. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  30. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +4 -1
  31. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.d.ts.map +1 -1
  32. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.js +4 -1
  33. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.d.ts.map +1 -1
  34. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.js +4 -1
  35. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
  36. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +11 -6
  37. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts +2 -2
  38. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts.map +1 -1
  39. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.js +2 -2
  40. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  41. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +3 -2
  42. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts +16 -5
  43. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts.map +1 -1
  44. package/dist/packages/core/src/infrastructure/services/git/pr-branding.js +38 -7
  45. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.d.ts +20 -0
  46. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.d.ts.map +1 -0
  47. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.js +25 -0
  48. package/dist/src/presentation/web/app/api/applications/[id]/route.d.ts +19 -0
  49. package/dist/src/presentation/web/app/api/applications/[id]/route.d.ts.map +1 -0
  50. package/dist/src/presentation/web/app/api/applications/[id]/route.js +46 -0
  51. package/dist/src/presentation/web/app/api/applications/route.d.ts +9 -0
  52. package/dist/src/presentation/web/app/api/applications/route.d.ts.map +1 -0
  53. package/dist/src/presentation/web/app/api/applications/route.js +20 -0
  54. package/dist/src/presentation/web/app/application/[id]/page.d.ts +4 -4
  55. package/dist/src/presentation/web/app/application/[id]/page.d.ts.map +1 -1
  56. package/dist/src/presentation/web/app/application/[id]/page.js +2 -61
  57. package/dist/src/presentation/web/app/applications/page.d.ts +2 -0
  58. package/dist/src/presentation/web/app/applications/page.d.ts.map +1 -0
  59. package/dist/src/presentation/web/app/applications/page.js +5 -0
  60. package/dist/src/presentation/web/components/assistant-ui/thread.js +2 -2
  61. package/dist/src/presentation/web/components/common/application-node/application-node.d.ts.map +1 -1
  62. package/dist/src/presentation/web/components/common/application-node/application-node.js +3 -37
  63. package/dist/src/presentation/web/components/features/application-page/application-page-loader.d.ts +4 -0
  64. package/dist/src/presentation/web/components/features/application-page/application-page-loader.d.ts.map +1 -0
  65. package/dist/src/presentation/web/components/features/application-page/application-page-loader.js +47 -0
  66. package/dist/src/presentation/web/components/features/application-page/application-page.d.ts.map +1 -1
  67. package/dist/src/presentation/web/components/features/application-page/application-page.js +75 -54
  68. package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts.map +1 -1
  69. package/dist/src/presentation/web/components/features/application-page/application-page.stories.js +1 -0
  70. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts +3 -1
  71. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts.map +1 -1
  72. package/dist/src/presentation/web/components/features/application-page/run-dev-button.js +6 -2
  73. package/dist/src/presentation/web/components/features/applications/application-card.d.ts +7 -0
  74. package/dist/src/presentation/web/components/features/applications/application-card.d.ts.map +1 -0
  75. package/dist/src/presentation/web/components/features/applications/application-card.js +82 -0
  76. package/dist/src/presentation/web/components/features/applications/application-card.stories.d.ts +13 -0
  77. package/dist/src/presentation/web/components/features/applications/application-card.stories.d.ts.map +1 -0
  78. package/dist/src/presentation/web/components/features/applications/application-card.stories.js +69 -0
  79. package/dist/src/presentation/web/components/features/applications/applications-page-client.d.ts +5 -0
  80. package/dist/src/presentation/web/components/features/applications/applications-page-client.d.ts.map +1 -0
  81. package/dist/src/presentation/web/components/features/applications/applications-page-client.js +28 -0
  82. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.d.ts +10 -0
  83. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.d.ts.map +1 -0
  84. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.js +93 -0
  85. package/dist/src/presentation/web/components/features/chat/ChatComposer.d.ts +3 -1
  86. package/dist/src/presentation/web/components/features/chat/ChatComposer.d.ts.map +1 -1
  87. package/dist/src/presentation/web/components/features/chat/ChatComposer.js +2 -2
  88. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts +3 -1
  89. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts.map +1 -1
  90. package/dist/src/presentation/web/components/features/chat/ChatTab.js +4 -3
  91. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts +6 -1
  92. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts.map +1 -1
  93. package/dist/src/presentation/web/components/features/chat/StepTracker.js +23 -20
  94. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  95. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -2
  96. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +3 -1
  97. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  98. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +2 -2
  99. package/dist/src/presentation/web/components/features/settings/language-settings-section.d.ts.map +1 -1
  100. package/dist/src/presentation/web/components/features/settings/language-settings-section.js +1 -0
  101. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts +1 -0
  102. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts.map +1 -1
  103. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.js +5 -0
  104. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  105. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +23 -3
  106. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  107. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  108. package/dist/src/presentation/web/lib/derive-app-status.d.ts +23 -0
  109. package/dist/src/presentation/web/lib/derive-app-status.d.ts.map +1 -0
  110. package/dist/src/presentation/web/lib/derive-app-status.js +89 -0
  111. package/dist/src/presentation/web/lib/i18n.d.ts.map +1 -1
  112. package/dist/src/presentation/web/lib/i18n.js +3 -0
  113. package/dist/translations/ar/web.json +2 -1
  114. package/dist/translations/de/web.json +2 -1
  115. package/dist/translations/en/web.json +2 -1
  116. package/dist/translations/es/web.json +2 -1
  117. package/dist/translations/fr/web.json +2 -1
  118. package/dist/translations/he/web.json +2 -1
  119. package/dist/translations/pt/web.json +2 -1
  120. package/dist/translations/ru/web.json +2 -1
  121. package/dist/translations/uk/web.json +2 -1
  122. package/dist/tsconfig.build.tsbuildinfo +1 -1
  123. package/package.json +1 -1
  124. package/web/.next/BUILD_ID +1 -1
  125. package/web/.next/app-path-routes-manifest.json +4 -0
  126. package/web/.next/build-manifest.json +2 -2
  127. package/web/.next/fallback-build-manifest.json +2 -2
  128. package/web/.next/prerender-manifest.json +3 -3
  129. package/web/.next/required-server-files.js +2 -2
  130. package/web/.next/required-server-files.json +2 -2
  131. package/web/.next/routes-manifest.json +28 -0
  132. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
  133. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +5 -5
  134. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  135. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  136. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +30 -30
  137. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +5 -5
  138. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  139. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  140. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
  141. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +5 -5
  142. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  143. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  144. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  145. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +5 -5
  146. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  147. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  148. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +41 -41
  149. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +5 -5
  150. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  151. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  152. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  153. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +5 -5
  154. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  155. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  156. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  157. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +5 -5
  158. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  159. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  160. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +30 -30
  161. package/web/.next/server/app/(dashboard)/chat/page.js +5 -5
  162. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  163. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  164. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
  165. package/web/.next/server/app/(dashboard)/create/page.js +5 -5
  166. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  167. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  168. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  169. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +5 -5
  170. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  171. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  172. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +41 -41
  173. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +5 -5
  174. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  175. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  176. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +30 -30
  177. package/web/.next/server/app/(dashboard)/page.js +5 -5
  178. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  179. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  180. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  181. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +5 -5
  182. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  183. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  184. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  185. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +5 -5
  186. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  187. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  188. package/web/.next/server/app/_global-error/page.js +1 -1
  189. package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  190. package/web/.next/server/app/_global-error.html +2 -2
  191. package/web/.next/server/app/_global-error.rsc +1 -1
  192. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  193. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  194. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  195. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  196. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  197. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  198. package/web/.next/server/app/_not-found/page.js +1 -1
  199. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  200. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  201. package/web/.next/server/app/api/applications/[id]/resume/route/app-paths-manifest.json +3 -0
  202. package/web/.next/server/app/api/applications/[id]/resume/route/build-manifest.json +11 -0
  203. package/web/.next/server/app/api/applications/[id]/resume/route/server-reference-manifest.json +4 -0
  204. package/web/.next/server/app/api/applications/[id]/resume/route.js +7 -0
  205. package/web/.next/server/app/api/applications/[id]/resume/route.js.map +5 -0
  206. package/web/.next/server/app/api/applications/[id]/resume/route.js.nft.json +1 -0
  207. package/web/.next/server/app/api/applications/[id]/resume/route_client-reference-manifest.js +2 -0
  208. package/web/.next/server/app/api/applications/[id]/route/app-paths-manifest.json +3 -0
  209. package/web/.next/server/app/api/applications/[id]/route/build-manifest.json +11 -0
  210. package/web/.next/server/app/api/applications/[id]/route/server-reference-manifest.json +4 -0
  211. package/web/.next/server/app/api/applications/[id]/route.js +7 -0
  212. package/web/.next/server/app/api/applications/[id]/route.js.map +5 -0
  213. package/web/.next/server/app/api/applications/[id]/route.js.nft.json +1 -0
  214. package/web/.next/server/app/api/applications/[id]/route_client-reference-manifest.js +2 -0
  215. package/web/.next/server/app/api/applications/route/app-paths-manifest.json +3 -0
  216. package/web/.next/server/app/api/applications/route/build-manifest.json +11 -0
  217. package/web/.next/server/app/api/applications/route/server-reference-manifest.json +4 -0
  218. package/web/.next/server/app/api/applications/route.js +7 -0
  219. package/web/.next/server/app/api/applications/route.js.map +5 -0
  220. package/web/.next/server/app/api/applications/route.js.nft.json +1 -0
  221. package/web/.next/server/app/api/applications/route_client-reference-manifest.js +2 -0
  222. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  223. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  224. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  225. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  226. package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +45 -30
  227. package/web/.next/server/app/application/[id]/page.js +3 -3
  228. package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
  229. package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
  230. package/web/.next/server/app/applications/page/app-paths-manifest.json +3 -0
  231. package/web/.next/server/app/applications/page/build-manifest.json +18 -0
  232. package/web/.next/server/app/applications/page/next-font-manifest.json +6 -0
  233. package/web/.next/server/app/applications/page/react-loadable-manifest.json +1 -0
  234. package/web/.next/server/app/applications/page/server-reference-manifest.json +230 -0
  235. package/web/.next/server/app/applications/page.js +19 -0
  236. package/web/.next/server/app/applications/page.js.map +5 -0
  237. package/web/.next/server/app/applications/page.js.nft.json +1 -0
  238. package/web/.next/server/app/applications/page_client-reference-manifest.js +2 -0
  239. package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
  240. package/web/.next/server/app/features/page.js +1 -1
  241. package/web/.next/server/app/features/page.js.nft.json +1 -1
  242. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  243. package/web/.next/server/app/settings/page/server-reference-manifest.json +10 -10
  244. package/web/.next/server/app/settings/page.js +1 -1
  245. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  246. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  247. package/web/.next/server/app/skills/page/server-reference-manifest.json +15 -15
  248. package/web/.next/server/app/skills/page.js +1 -1
  249. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  250. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  251. package/web/.next/server/app/tools/page/server-reference-manifest.json +13 -13
  252. package/web/.next/server/app/tools/page.js +1 -1
  253. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  254. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  255. package/web/.next/server/app/version/page/server-reference-manifest.json +7 -7
  256. package/web/.next/server/app/version/page.js +1 -1
  257. package/web/.next/server/app/version/page.js.nft.json +1 -1
  258. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  259. package/web/.next/server/app-paths-manifest.json +4 -0
  260. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_[id]_route_actions_e31b426d.js +3 -0
  261. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_[id]_route_actions_e31b426d.js.map +1 -0
  262. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_route_actions_2b7d20d0.js +3 -0
  263. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_route_actions_2b7d20d0.js.map +1 -0
  264. package/web/.next/server/chunks/[root-of-the-server]__3bb635e8._.js +3 -0
  265. package/web/.next/server/chunks/[root-of-the-server]__3bb635e8._.js.map +1 -0
  266. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  267. package/web/.next/server/chunks/[root-of-the-server]__ac0027b4._.js +3 -0
  268. package/web/.next/server/chunks/[root-of-the-server]__ac0027b4._.js.map +1 -0
  269. package/web/.next/server/chunks/[root-of-the-server]__b2a4bfcc._.js.map +1 -1
  270. package/web/.next/server/chunks/[root-of-the-server]__c8f90b29._.js +1 -1
  271. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  272. package/web/.next/server/chunks/[root-of-the-server]__ce82df38._.js +3 -0
  273. package/web/.next/server/chunks/[root-of-the-server]__ce82df38._.js.map +1 -0
  274. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_resume_route_actions_3a66d646.js +3 -0
  275. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_resume_route_actions_3a66d646.js.map +1 -0
  276. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js +3 -0
  277. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js.map +1 -0
  278. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js +3 -0
  279. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js.map +1 -0
  280. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js +3 -0
  281. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js.map +1 -0
  282. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  283. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  284. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  285. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  286. package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +3 -0
  287. package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js.map +1 -0
  288. package/web/.next/server/chunks/ssr/[root-of-the-server]__04f4895b._.js +3 -0
  289. package/web/.next/server/chunks/ssr/[root-of-the-server]__04f4895b._.js.map +1 -0
  290. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +1 -1
  291. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -1
  292. package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js +1 -1
  293. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +1 -1
  294. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -1
  295. package/web/.next/server/chunks/ssr/[root-of-the-server]__347fd0f6._.js +3 -0
  296. package/web/.next/server/chunks/ssr/[root-of-the-server]__347fd0f6._.js.map +1 -0
  297. package/web/.next/server/chunks/ssr/[root-of-the-server]__46dd2baf._.js +3 -0
  298. package/web/.next/server/chunks/ssr/[root-of-the-server]__46dd2baf._.js.map +1 -0
  299. package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js +1 -1
  300. package/web/.next/server/chunks/ssr/[root-of-the-server]__73cb4ff6._.js +3 -0
  301. package/web/.next/server/chunks/ssr/[root-of-the-server]__73cb4ff6._.js.map +1 -0
  302. package/web/.next/server/chunks/ssr/{[root-of-the-server]__87bc4dac._.js → [root-of-the-server]__86ff0bc5._.js} +3 -3
  303. package/web/.next/server/chunks/ssr/[root-of-the-server]__86ff0bc5._.js.map +1 -0
  304. package/web/.next/server/chunks/ssr/[root-of-the-server]__91c50abe._.js +3 -0
  305. package/web/.next/server/chunks/ssr/[root-of-the-server]__91c50abe._.js.map +1 -0
  306. package/web/.next/server/chunks/ssr/[root-of-the-server]__a48af49f._.js +3 -0
  307. package/web/.next/server/chunks/ssr/[root-of-the-server]__a48af49f._.js.map +1 -0
  308. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js +1 -1
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js.map +1 -1
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__d5e22d1a._.js +3 -0
  311. package/web/.next/server/chunks/ssr/{[root-of-the-server]__7aa484f5._.js.map → [root-of-the-server]__d5e22d1a._.js.map} +1 -1
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +1 -1
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -1
  314. package/web/.next/server/chunks/ssr/[root-of-the-server]__e0aa2bcb._.js +3 -0
  315. package/web/.next/server/chunks/ssr/[root-of-the-server]__e0aa2bcb._.js.map +1 -0
  316. package/web/.next/server/chunks/ssr/[root-of-the-server]__e265da61._.js +1 -1
  317. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js +12 -0
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js.map +1 -0
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__f5614810._.js +3 -0
  320. package/web/.next/server/chunks/ssr/{[root-of-the-server]__090f24cb._.js.map → [root-of-the-server]__f5614810._.js.map} +1 -1
  321. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe5db6b2._.js +3 -0
  322. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe5db6b2._.js.map +1 -0
  323. package/web/.next/server/chunks/ssr/_037e85c7._.js +3 -0
  324. package/web/.next/server/chunks/ssr/_037e85c7._.js.map +1 -0
  325. package/web/.next/server/chunks/ssr/{_774cbf7d._.js → _133ae3de._.js} +2 -2
  326. package/web/.next/server/chunks/ssr/{_774cbf7d._.js.map → _133ae3de._.js.map} +1 -1
  327. package/web/.next/server/chunks/ssr/_1879404a._.js +1 -1
  328. package/web/.next/server/chunks/ssr/_1879404a._.js.map +1 -1
  329. package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -1
  330. package/web/.next/server/chunks/ssr/_29b8ed64._.js +3 -0
  331. package/web/.next/server/chunks/ssr/_29b8ed64._.js.map +1 -0
  332. package/web/.next/server/chunks/ssr/_2bc302d1._.js +3 -0
  333. package/web/.next/server/chunks/ssr/_2bc302d1._.js.map +1 -0
  334. package/web/.next/server/chunks/ssr/_35294e79._.js +3 -0
  335. package/web/.next/server/chunks/ssr/_35294e79._.js.map +1 -0
  336. package/web/.next/server/chunks/ssr/_3683083e._.js +3 -0
  337. package/web/.next/server/chunks/ssr/_3683083e._.js.map +1 -0
  338. package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
  339. package/web/.next/server/chunks/ssr/_4b57bcc3._.js +9 -0
  340. package/web/.next/server/chunks/ssr/_4b57bcc3._.js.map +1 -0
  341. package/web/.next/server/chunks/ssr/_519d77a9._.js +3 -0
  342. package/web/.next/server/chunks/ssr/_519d77a9._.js.map +1 -0
  343. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  344. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  345. package/web/.next/server/chunks/ssr/_82db03fd._.js +3 -0
  346. package/web/.next/server/chunks/ssr/_82db03fd._.js.map +1 -0
  347. package/web/.next/server/chunks/ssr/_8c3086bf._.js +3 -0
  348. package/web/.next/server/chunks/ssr/_8c3086bf._.js.map +1 -0
  349. package/web/.next/server/chunks/ssr/_9173e475._.js +21 -0
  350. package/web/.next/server/chunks/ssr/_9173e475._.js.map +1 -0
  351. package/web/.next/server/chunks/ssr/_946a7fc6._.js +1 -1
  352. package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -1
  353. package/web/.next/server/chunks/ssr/{_81e7a131._.js → _a08047ef._.js} +2 -2
  354. package/web/.next/server/chunks/ssr/_a08047ef._.js.map +1 -0
  355. package/web/.next/server/chunks/ssr/_bc03ac82._.js +4 -0
  356. package/web/.next/server/chunks/ssr/_bc03ac82._.js.map +1 -0
  357. package/web/.next/server/chunks/ssr/_d4c0792b._.js +3 -0
  358. package/web/.next/server/chunks/ssr/_d4c0792b._.js.map +1 -0
  359. package/web/.next/server/chunks/ssr/_e61d032d._.js +3 -0
  360. package/web/.next/server/chunks/ssr/_e61d032d._.js.map +1 -0
  361. package/web/.next/server/chunks/ssr/_e65abbd1._.js +3 -0
  362. package/web/.next/server/chunks/ssr/_e65abbd1._.js.map +1 -0
  363. package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
  364. package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
  365. package/web/.next/server/chunks/ssr/_f8c55130._.js +1 -1
  366. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  367. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  368. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  369. package/web/.next/server/chunks/ssr/node_modules__pnpm_28a53b5d._.js +3 -0
  370. package/web/.next/server/chunks/ssr/node_modules__pnpm_28a53b5d._.js.map +1 -0
  371. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js +3 -0
  372. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js.map +1 -0
  373. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js +3 -0
  374. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js.map +1 -0
  375. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
  376. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
  377. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js +3 -0
  378. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js.map +1 -0
  379. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js +3 -0
  380. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js.map +1 -0
  381. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js +32 -0
  382. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js.map +1 -0
  383. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +3 -0
  384. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -0
  385. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js +3 -0
  386. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js.map +1 -0
  387. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
  388. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
  389. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js +32 -0
  390. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js.map +1 -0
  391. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js +3 -0
  392. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js.map +1 -0
  393. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js +3 -0
  394. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js.map +1 -0
  395. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js +3 -0
  396. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js.map +1 -0
  397. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  398. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  399. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
  400. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
  401. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  402. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  403. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_dropdown-menu_tsx_229332e3._.js +3 -0
  404. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_dropdown-menu_tsx_229332e3._.js.map +1 -0
  405. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js +3 -0
  406. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js.map +1 -0
  407. package/web/.next/server/pages/500.html +2 -2
  408. package/web/.next/server/server-reference-manifest.js +1 -1
  409. package/web/.next/server/server-reference-manifest.json +184 -72
  410. package/web/.next/static/chunks/019e71634c720ede.js +1 -0
  411. package/web/.next/static/chunks/040c5ff84a8ae1a3.js +7 -0
  412. package/web/.next/static/chunks/092ac28f5a4422a0.js +19 -0
  413. package/web/.next/static/chunks/0bd78b0cf1c1421f.js +1 -0
  414. package/web/.next/static/chunks/{996e4ea45364bf3c.js → 18c21c4f9f58b69a.js} +3 -3
  415. package/web/.next/static/chunks/2b5aea3575387b3a.js +1 -0
  416. package/web/.next/static/chunks/2cbe80f8e84d59a8.js +1 -0
  417. package/web/.next/static/chunks/{503d2e86f83285f9.js → 3219b06f6a34e573.js} +1 -1
  418. package/web/.next/static/chunks/37e434e579ecfa02.js +1 -0
  419. package/web/.next/static/chunks/4a7cf3b09e0495a4.js +1 -0
  420. package/web/.next/static/chunks/{83fc7ea32e18c9a5.js → 4ea617a22e21fb04.js} +1 -1
  421. package/web/.next/static/chunks/54d1d5a646a12d76.js +1 -0
  422. package/web/.next/static/chunks/{9e9b60f127270dfd.js → 553be530f22710a7.js} +1 -1
  423. package/web/.next/static/chunks/5795b9f399523c9e.js +1 -0
  424. package/web/.next/static/chunks/{d488e6b5cbbc6833.js → 6a88df64eaeb6322.js} +1 -1
  425. package/web/.next/static/chunks/{2fe20598e1b4793a.js → 6b2859ea368e7df3.js} +3 -3
  426. package/web/.next/static/chunks/6d8cae68371a845d.js +1 -0
  427. package/web/.next/static/chunks/{a2601dbbcb657c7d.js → 78607d521d916531.js} +1 -1
  428. package/web/.next/static/chunks/{7bf6ed16395220c4.js → 7d5a7551d452463d.js} +2 -2
  429. package/web/.next/static/chunks/80e778136b2f4c92.js +1 -0
  430. package/web/.next/static/chunks/a62fb058d660bea3.js +3 -0
  431. package/web/.next/static/chunks/adf16efe8bac05e9.css +1 -0
  432. package/web/.next/static/chunks/b0474319e5a50043.js +1 -0
  433. package/web/.next/static/chunks/b85532fb1545927c.js +5 -0
  434. package/web/.next/static/chunks/e0ae4dbd97b7af4c.js +1 -0
  435. package/web/.next/static/chunks/{2af89379fde6831d.js → f70998ac93012aef.js} +1 -1
  436. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js +0 -3
  437. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js.map +0 -1
  438. package/web/.next/server/chunks/ssr/[root-of-the-server]__090f24cb._.js +0 -3
  439. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js +0 -12
  440. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js.map +0 -1
  441. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js +0 -3
  442. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js.map +0 -1
  443. package/web/.next/server/chunks/ssr/[root-of-the-server]__7aa484f5._.js +0 -3
  444. package/web/.next/server/chunks/ssr/[root-of-the-server]__87bc4dac._.js.map +0 -1
  445. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js +0 -3
  446. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js.map +0 -1
  447. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js +0 -3
  448. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js.map +0 -1
  449. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js +0 -3
  450. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js.map +0 -1
  451. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js +0 -3
  452. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js.map +0 -1
  453. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js +0 -3
  454. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js.map +0 -1
  455. package/web/.next/server/chunks/ssr/_0277d3b5._.js +0 -21
  456. package/web/.next/server/chunks/ssr/_0277d3b5._.js.map +0 -1
  457. package/web/.next/server/chunks/ssr/_44531b76._.js +0 -9
  458. package/web/.next/server/chunks/ssr/_44531b76._.js.map +0 -1
  459. package/web/.next/server/chunks/ssr/_5dec4047._.js +0 -3
  460. package/web/.next/server/chunks/ssr/_5dec4047._.js.map +0 -1
  461. package/web/.next/server/chunks/ssr/_73aa3b20._.js +0 -3
  462. package/web/.next/server/chunks/ssr/_73aa3b20._.js.map +0 -1
  463. package/web/.next/server/chunks/ssr/_81e7a131._.js.map +0 -1
  464. package/web/.next/server/chunks/ssr/_869a3a15._.js +0 -3
  465. package/web/.next/server/chunks/ssr/_869a3a15._.js.map +0 -1
  466. package/web/.next/server/chunks/ssr/_b227ff50._.js +0 -3
  467. package/web/.next/server/chunks/ssr/_b227ff50._.js.map +0 -1
  468. package/web/.next/server/chunks/ssr/_d75dcb43._.js +0 -3
  469. package/web/.next/server/chunks/ssr/_d75dcb43._.js.map +0 -1
  470. package/web/.next/server/chunks/ssr/_e071ba48._.js +0 -3
  471. package/web/.next/server/chunks/ssr/_e071ba48._.js.map +0 -1
  472. package/web/.next/server/chunks/ssr/_eff1b518._.js +0 -3
  473. package/web/.next/server/chunks/ssr/_eff1b518._.js.map +0 -1
  474. package/web/.next/server/chunks/ssr/_f227429a._.js +0 -3
  475. package/web/.next/server/chunks/ssr/_f227429a._.js.map +0 -1
  476. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js +0 -3
  477. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js.map +0 -1
  478. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js +0 -3
  479. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js.map +0 -1
  480. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js +0 -3
  481. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js.map +0 -1
  482. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js +0 -3
  483. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js.map +0 -1
  484. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js +0 -3
  485. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js.map +0 -1
  486. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js +0 -3
  487. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js.map +0 -1
  488. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js +0 -3
  489. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js.map +0 -1
  490. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +0 -32
  491. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +0 -1
  492. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js +0 -3
  493. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js.map +0 -1
  494. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +0 -3
  495. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +0 -1
  496. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +0 -3
  497. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +0 -1
  498. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js +0 -3
  499. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js.map +0 -1
  500. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js +0 -3
  501. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js.map +0 -1
  502. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +0 -3
  503. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +0 -1
  504. package/web/.next/static/chunks/06b9d6dbf635c370.css +0 -1
  505. package/web/.next/static/chunks/1ae0cf5be30ef398.js +0 -1
  506. package/web/.next/static/chunks/3a71cab38909921e.js +0 -1
  507. package/web/.next/static/chunks/4e53adb5d07b7e3d.js +0 -1
  508. package/web/.next/static/chunks/5e7ac3508bef115f.js +0 -1
  509. package/web/.next/static/chunks/761a7c542b358739.js +0 -1
  510. package/web/.next/static/chunks/927442d2628f6e22.js +0 -1
  511. package/web/.next/static/chunks/a31f2264cedb23e9.js +0 -1
  512. package/web/.next/static/chunks/abf7d1b66555b758.js +0 -7
  513. package/web/.next/static/chunks/b99506a6f7bc2fa8.js +0 -1
  514. package/web/.next/static/chunks/d984d1d8d506291c.js +0 -7
  515. package/web/.next/static/chunks/e843a0d8e8c645c4.js +0 -1
  516. package/web/.next/static/chunks/f5ed0232d50b1ec8.js +0 -19
  517. /package/web/.next/static/{6GBQ7MHEYpZbJzqULwvXh → t-O8eMjJCUhhtd6CgtTXI}/_buildManifest.js +0 -0
  518. /package/web/.next/static/{6GBQ7MHEYpZbJzqULwvXh → t-O8eMjJCUhhtd6CgtTXI}/_clientMiddlewareManifest.json +0 -0
  519. /package/web/.next/static/{6GBQ7MHEYpZbJzqULwvXh → t-O8eMjJCUhhtd6CgtTXI}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../node_modules/.pnpm/void-elements%403.1.0/node_modules/void-elements/index.js","../../../../../../../node_modules/.pnpm/use-sync-external-store%401.6.0_react%4019.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../../../../../../node_modules/.pnpm/use-sync-external-store%401.6.0_react%4019.2.4/node_modules/use-sync-external-store/shim/index.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/Trans.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/unescape.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/i18nInstance.js","../../../../../../../node_modules/.pnpm/i18next%4026.0.1_typescript%405.9.3/node_modules/i18next/dist/esm/i18next.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/TranslationParserError.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/utils.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/parse-tag.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/parse.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/stringify.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/index.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/defaults.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/useTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/Translation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/initReactI18next.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/I18nextProvider.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTrans.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/withTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/useSSR.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/renderTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/withSSR.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/context.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/TransWithoutContext.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/index.js","../../../../../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_%40playwright%2Btest%401.58.1_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/webpack/loaders/next-flight-loader/action-client-wrapper.ts","../../../../../../../packages/core/src/domain/generated/output.ts"],"sourcesContent":["/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nmodule.exports = {\n \"area\": true,\n \"base\": true,\n \"br\": true,\n \"col\": true,\n \"embed\": true,\n \"hr\": true,\n \"img\": true,\n \"input\": true,\n \"link\": true,\n \"meta\": true,\n \"param\": true,\n \"source\": true,\n \"track\": true,\n \"wbr\": true\n};\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","import { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return TransWithoutContext({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions,\n values,\n defaults,\n components,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n i18n,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n });\n}","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&amp;': '&',\n '&#38;': '&',\n '&lt;': '<',\n '&#60;': '<',\n '&gt;': '>',\n '&#62;': '>',\n '&apos;': \"'\",\n '&#39;': \"'\",\n '&quot;': '\"',\n '&#34;': '\"',\n '&nbsp;': ' ',\n '&#160;': ' ',\n '&copy;': '©',\n '&#169;': '©',\n '&reg;': '®',\n '&#174;': '®',\n '&hellip;': '…',\n '&#8230;': '…',\n '&#x2F;': '/',\n '&#47;': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;","const isString = obj => typeof obj === 'string';\nconst defer = () => {\n let res;\n let rej;\n const promise = new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n};\nconst makeString = object => {\n if (object == null) return '';\n return String(object);\n};\nconst copy = (a, s, t) => {\n a.forEach(m => {\n if (s[m]) t[m] = s[m];\n });\n};\nconst lastOfPathSeparatorRegExp = /###/g;\nconst cleanKey = key => key && key.includes('###') ? key.replace(lastOfPathSeparatorRegExp, '.') : key;\nconst canNotTraverseDeeper = object => !object || isString(object);\nconst getLastOfPath = (object, path, Empty) => {\n const stack = !isString(path) ? path : path.split('.');\n let stackIndex = 0;\n while (stackIndex < stack.length - 1) {\n if (canNotTraverseDeeper(object)) return {};\n const key = cleanKey(stack[stackIndex]);\n if (!object[key] && Empty) object[key] = new Empty();\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n ++stackIndex;\n }\n if (canNotTraverseDeeper(object)) return {};\n return {\n obj: object,\n k: cleanKey(stack[stackIndex])\n };\n};\nconst setPath = (object, path, newValue) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n if (obj !== undefined || path.length === 1) {\n obj[k] = newValue;\n return;\n }\n let e = path[path.length - 1];\n let p = path.slice(0, path.length - 1);\n let last = getLastOfPath(object, p, Object);\n while (last.obj === undefined && p.length) {\n e = `${p[p.length - 1]}.${e}`;\n p = p.slice(0, p.length - 1);\n last = getLastOfPath(object, p, Object);\n if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') {\n last.obj = undefined;\n }\n }\n last.obj[`${last.k}.${e}`] = newValue;\n};\nconst pushPath = (object, path, newValue, concat) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n obj[k] = obj[k] || [];\n obj[k].push(newValue);\n};\nconst getPath = (object, path) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path);\n if (!obj) return undefined;\n if (!Object.prototype.hasOwnProperty.call(obj, k)) return undefined;\n return obj[k];\n};\nconst getPathWithDefaults = (data, defaultData, key) => {\n const value = getPath(data, key);\n if (value !== undefined) {\n return value;\n }\n return getPath(defaultData, key);\n};\nconst deepExtend = (target, source, overwrite) => {\n for (const prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (prop in target) {\n if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n return target;\n};\nconst regexEscape = str => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\nconst _entityMap = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '/': '&#x2F;'\n};\nconst escape = data => {\n if (isString(data)) {\n return data.replace(/[&<>\"'\\/]/g, s => _entityMap[s]);\n }\n return data;\n};\nclass RegExpCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.regExpMap = new Map();\n this.regExpQueue = [];\n }\n getRegExp(pattern) {\n const regExpFromCache = this.regExpMap.get(pattern);\n if (regExpFromCache !== undefined) {\n return regExpFromCache;\n }\n const regExpNew = new RegExp(pattern);\n if (this.regExpQueue.length === this.capacity) {\n this.regExpMap.delete(this.regExpQueue.shift());\n }\n this.regExpMap.set(pattern, regExpNew);\n this.regExpQueue.push(pattern);\n return regExpNew;\n }\n}\nconst chars = [' ', ',', '?', '!', ';'];\nconst looksLikeObjectPathRegExpCache = new RegExpCache(20);\nconst looksLikeObjectPath = (key, nsSeparator, keySeparator) => {\n nsSeparator = nsSeparator || '';\n keySeparator = keySeparator || '';\n const possibleChars = chars.filter(c => !nsSeparator.includes(c) && !keySeparator.includes(c));\n if (possibleChars.length === 0) return true;\n const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c => c === '?' ? '\\\\?' : c).join('|')})`);\n let matched = !r.test(key);\n if (!matched) {\n const ki = key.indexOf(keySeparator);\n if (ki > 0 && !r.test(key.substring(0, ki))) {\n matched = true;\n }\n }\n return matched;\n};\nconst deepFind = (obj, path, keySeparator = '.') => {\n if (!obj) return undefined;\n if (obj[path]) {\n if (!Object.prototype.hasOwnProperty.call(obj, path)) return undefined;\n return obj[path];\n }\n const tokens = path.split(keySeparator);\n let current = obj;\n for (let i = 0; i < tokens.length;) {\n if (!current || typeof current !== 'object') {\n return undefined;\n }\n let next;\n let nextPath = '';\n for (let j = i; j < tokens.length; ++j) {\n if (j !== i) {\n nextPath += keySeparator;\n }\n nextPath += tokens[j];\n next = current[nextPath];\n if (next !== undefined) {\n if (['string', 'number', 'boolean'].includes(typeof next) && j < tokens.length - 1) {\n continue;\n }\n i += j - i + 1;\n break;\n }\n }\n current = next;\n }\n return current;\n};\nconst getCleanedCode = code => code?.replace(/_/g, '-');\n\nconst consoleLogger = {\n type: 'logger',\n log(args) {\n this.output('log', args);\n },\n warn(args) {\n this.output('warn', args);\n },\n error(args) {\n this.output('error', args);\n },\n output(type, args) {\n console?.[type]?.apply?.(console, args);\n }\n};\nclass Logger {\n constructor(concreteLogger, options = {}) {\n this.init(concreteLogger, options);\n }\n init(concreteLogger, options = {}) {\n this.prefix = options.prefix || 'i18next:';\n this.logger = concreteLogger || consoleLogger;\n this.options = options;\n this.debug = options.debug;\n }\n log(...args) {\n return this.forward(args, 'log', '', true);\n }\n warn(...args) {\n return this.forward(args, 'warn', '', true);\n }\n error(...args) {\n return this.forward(args, 'error', '');\n }\n deprecate(...args) {\n return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n }\n forward(args, lvl, prefix, debugOnly) {\n if (debugOnly && !this.debug) return null;\n if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;\n return this.logger[lvl](args);\n }\n create(moduleName) {\n return new Logger(this.logger, {\n ...{\n prefix: `${this.prefix}:${moduleName}:`\n },\n ...this.options\n });\n }\n clone(options) {\n options = options || this.options;\n options.prefix = options.prefix || this.prefix;\n return new Logger(this.logger, options);\n }\n}\nvar baseLogger = new Logger();\n\nclass EventEmitter {\n constructor() {\n this.observers = {};\n }\n on(events, listener) {\n events.split(' ').forEach(event => {\n if (!this.observers[event]) this.observers[event] = new Map();\n const numListeners = this.observers[event].get(listener) || 0;\n this.observers[event].set(listener, numListeners + 1);\n });\n return this;\n }\n off(event, listener) {\n if (!this.observers[event]) return;\n if (!listener) {\n delete this.observers[event];\n return;\n }\n this.observers[event].delete(listener);\n }\n once(event, listener) {\n const wrapper = (...args) => {\n listener(...args);\n this.off(event, wrapper);\n };\n this.on(event, wrapper);\n return this;\n }\n emit(event, ...args) {\n if (this.observers[event]) {\n const cloned = Array.from(this.observers[event].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(...args);\n }\n });\n }\n if (this.observers['*']) {\n const cloned = Array.from(this.observers['*'].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(event, ...args);\n }\n });\n }\n }\n}\n\nclass ResourceStore extends EventEmitter {\n constructor(data, options = {\n ns: ['translation'],\n defaultNS: 'translation'\n }) {\n super();\n this.data = data || {};\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n if (this.options.ignoreJSONStructure === undefined) {\n this.options.ignoreJSONStructure = true;\n }\n }\n addNamespaces(ns) {\n if (!this.options.ns.includes(ns)) {\n this.options.ns.push(ns);\n }\n }\n removeNamespaces(ns) {\n const index = this.options.ns.indexOf(ns);\n if (index > -1) {\n this.options.ns.splice(index, 1);\n }\n }\n getResource(lng, ns, key, options = {}) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n let path;\n if (lng.includes('.')) {\n path = lng.split('.');\n } else {\n path = [lng, ns];\n if (key) {\n if (Array.isArray(key)) {\n path.push(...key);\n } else if (isString(key) && keySeparator) {\n path.push(...key.split(keySeparator));\n } else {\n path.push(key);\n }\n }\n }\n const result = getPath(this.data, path);\n if (!result && !ns && !key && lng.includes('.')) {\n lng = path[0];\n ns = path[1];\n key = path.slice(2).join('.');\n }\n if (result || !ignoreJSONStructure || !isString(key)) return result;\n return deepFind(this.data?.[lng]?.[ns], key, keySeparator);\n }\n addResource(lng, ns, key, value, options = {\n silent: false\n }) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n let path = [lng, ns];\n if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n if (lng.includes('.')) {\n path = lng.split('.');\n value = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n setPath(this.data, path, value);\n if (!options.silent) this.emit('added', lng, ns, key, value);\n }\n addResources(lng, ns, resources, options = {\n silent: false\n }) {\n for (const m in resources) {\n if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {\n silent: true\n });\n }\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n addResourceBundle(lng, ns, resources, deep, overwrite, options = {\n silent: false,\n skipCopy: false\n }) {\n let path = [lng, ns];\n if (lng.includes('.')) {\n path = lng.split('.');\n deep = resources;\n resources = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n let pack = getPath(this.data, path) || {};\n if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources));\n if (deep) {\n deepExtend(pack, resources, overwrite);\n } else {\n pack = {\n ...pack,\n ...resources\n };\n }\n setPath(this.data, path, pack);\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n removeResourceBundle(lng, ns) {\n if (this.hasResourceBundle(lng, ns)) {\n delete this.data[lng][ns];\n }\n this.removeNamespaces(ns);\n this.emit('removed', lng, ns);\n }\n hasResourceBundle(lng, ns) {\n return this.getResource(lng, ns) !== undefined;\n }\n getResourceBundle(lng, ns) {\n if (!ns) ns = this.options.defaultNS;\n return this.getResource(lng, ns);\n }\n getDataByLanguage(lng) {\n return this.data[lng];\n }\n hasLanguageSomeTranslations(lng) {\n const data = this.getDataByLanguage(lng);\n const n = data && Object.keys(data) || [];\n return !!n.find(v => data[v] && Object.keys(data[v]).length > 0);\n }\n toJSON() {\n return this.data;\n }\n}\n\nvar postProcessor = {\n processors: {},\n addPostProcessor(module) {\n this.processors[module.name] = module;\n },\n handle(processors, value, key, options, translator) {\n processors.forEach(processor => {\n value = this.processors[processor]?.process(value, key, options, translator) ?? value;\n });\n return value;\n }\n};\n\nconst PATH_KEY = Symbol('i18next/PATH_KEY');\nfunction createProxy() {\n const state = [];\n const handler = Object.create(null);\n let proxy;\n handler.get = (target, key) => {\n proxy?.revoke?.();\n if (key === PATH_KEY) return state;\n state.push(key);\n proxy = Proxy.revocable(target, handler);\n return proxy.proxy;\n };\n return Proxy.revocable(Object.create(null), handler).proxy;\n}\nfunction keysFromSelector(selector, opts) {\n const {\n [PATH_KEY]: path\n } = selector(createProxy());\n const keySeparator = opts?.keySeparator ?? '.';\n const nsSeparator = opts?.nsSeparator ?? ':';\n if (path.length > 1 && nsSeparator) {\n const ns = opts?.ns;\n const nsArray = Array.isArray(ns) ? ns : null;\n if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {\n return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;\n }\n }\n return path.join(keySeparator);\n}\n\nconst shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';\nclass Translator extends EventEmitter {\n constructor(services, options = {}) {\n super();\n copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, this);\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n this.logger = baseLogger.create('translator');\n this.checkedLoadedFor = {};\n }\n changeLanguage(lng) {\n if (lng) this.language = lng;\n }\n exists(key, o = {\n interpolation: {}\n }) {\n const opt = {\n ...o\n };\n if (key == null) return false;\n const resolved = this.resolve(key, opt);\n if (resolved?.res === undefined) return false;\n const isObject = shouldHandleAsObject(resolved.res);\n if (opt.returnObjects === false && isObject) {\n return false;\n }\n return true;\n }\n extractFromKey(key, opt) {\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n let namespaces = opt.ns || this.options.defaultNS || [];\n const wouldCheckForNsInKey = nsSeparator && key.includes(nsSeparator);\n const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);\n if (wouldCheckForNsInKey && !seemsNaturalLanguage) {\n const m = key.match(this.interpolator.nestingRegexp);\n if (m && m.length > 0) {\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n const parts = key.split(nsSeparator);\n if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.includes(parts[0])) namespaces = parts.shift();\n key = parts.join(keySeparator);\n }\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n translate(keys, o, lastKey) {\n let opt = typeof o === 'object' ? {\n ...o\n } : o;\n if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {\n opt = this.options.overloadTranslationOptionHandler(arguments);\n }\n if (typeof opt === 'object') opt = {\n ...opt\n };\n if (!opt) opt = {};\n if (keys == null) return '';\n if (typeof keys === 'function') keys = keysFromSelector(keys, {\n ...this.options,\n ...opt\n });\n if (!Array.isArray(keys)) keys = [String(keys)];\n keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : String(k));\n const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n const {\n key,\n namespaces\n } = this.extractFromKey(keys[keys.length - 1], opt);\n const namespace = namespaces[namespaces.length - 1];\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const lng = opt.lng || this.language;\n const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n if (lng?.toLowerCase() === 'cimode') {\n if (appendNamespaceToCIMode) {\n if (returnDetails) {\n return {\n res: `${namespace}${nsSeparator}${key}`,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return `${namespace}${nsSeparator}${key}`;\n }\n if (returnDetails) {\n return {\n res: key,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return key;\n }\n const resolved = this.resolve(keys, opt);\n let res = resolved?.res;\n const resUsedKey = resolved?.usedKey || key;\n const resExactUsedKey = resolved?.exactUsedKey || key;\n const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;\n const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const hasDefaultValue = Translator.hasDefaultValue(opt);\n const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';\n const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {\n ordinal: false\n }) : '';\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;\n let resForObjHndl = res;\n if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {\n resForObjHndl = defaultValue;\n }\n const handleAsObject = shouldHandleAsObject(resForObjHndl);\n const resType = Object.prototype.toString.apply(resForObjHndl);\n if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && !noObject.includes(resType) && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {\n if (!opt.returnObjects && !this.options.returnObjects) {\n if (!this.options.returnedObjectHandler) {\n this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n }\n const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {\n ...opt,\n ns: namespaces\n }) : `key '${key} (${this.language})' returned an object instead of string.`;\n if (returnDetails) {\n resolved.res = r;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return r;\n }\n if (keySeparator) {\n const resTypeIsArray = Array.isArray(resForObjHndl);\n const copy = resTypeIsArray ? [] : {};\n const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n for (const m in resForObjHndl) {\n if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {\n const deepKey = `${newKeyToUse}${keySeparator}${m}`;\n if (hasDefaultValue && !res) {\n copy[m] = this.translate(deepKey, {\n ...opt,\n defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n } else {\n copy[m] = this.translate(deepKey, {\n ...opt,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n }\n if (copy[m] === deepKey) copy[m] = resForObjHndl[m];\n }\n }\n res = copy;\n }\n } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {\n res = res.join(joinArrays);\n if (res) res = this.extendTranslation(res, keys, opt, lastKey);\n } else {\n let usedDefault = false;\n let usedKey = false;\n if (!this.isValidLookup(res) && hasDefaultValue) {\n usedDefault = true;\n res = defaultValue;\n }\n if (!this.isValidLookup(res)) {\n usedKey = true;\n res = key;\n }\n const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;\n const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;\n const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n if (usedKey || usedDefault || updateMissing) {\n this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n if (keySeparator) {\n const fk = this.resolve(key, {\n ...opt,\n keySeparator: false\n });\n if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n }\n let lngs = [];\n const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);\n if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n for (let i = 0; i < fallbackLngs.length; i++) {\n lngs.push(fallbackLngs[i]);\n }\n } else if (this.options.saveMissingTo === 'all') {\n lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);\n } else {\n lngs.push(opt.lng || this.language);\n }\n const send = (l, k, specificDefaultValue) => {\n const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;\n if (this.options.missingKeyHandler) {\n this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);\n } else if (this.backendConnector?.saveMissing) {\n this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);\n }\n this.emit('missingKey', l, namespace, k, res);\n };\n if (this.options.saveMissing) {\n if (this.options.saveMissingPlurals && needsPluralHandling) {\n lngs.forEach(language => {\n const suffixes = this.pluralResolver.getSuffixes(language, opt);\n if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && !suffixes.includes(`${this.options.pluralSeparator}zero`)) {\n suffixes.push(`${this.options.pluralSeparator}zero`);\n }\n suffixes.forEach(suffix => {\n send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);\n });\n });\n } else {\n send(lngs, key, defaultValue);\n }\n }\n }\n res = this.extendTranslation(res, keys, opt, resolved, lastKey);\n if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {\n res = `${namespace}${nsSeparator}${key}`;\n }\n if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {\n res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);\n }\n }\n if (returnDetails) {\n resolved.res = res;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return res;\n }\n extendTranslation(res, key, opt, resolved, lastKey) {\n if (this.i18nFormat?.parse) {\n res = this.i18nFormat.parse(res, {\n ...this.options.interpolation.defaultVariables,\n ...opt\n }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n resolved\n });\n } else if (!opt.skipInterpolation) {\n if (opt.interpolation) this.interpolator.init({\n ...opt,\n ...{\n interpolation: {\n ...this.options.interpolation,\n ...opt.interpolation\n }\n }\n });\n const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);\n let nestBef;\n if (skipOnVariables) {\n const nb = res.match(this.interpolator.nestingRegexp);\n nestBef = nb && nb.length;\n }\n let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;\n if (this.options.interpolation.defaultVariables) data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);\n if (skipOnVariables) {\n const na = res.match(this.interpolator.nestingRegexp);\n const nestAft = na && na.length;\n if (nestBef < nestAft) opt.nest = false;\n }\n if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;\n if (opt.nest !== false) res = this.interpolator.nest(res, (...args) => {\n if (lastKey?.[0] === args[0] && !opt.context) {\n this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);\n return null;\n }\n return this.translate(...args, key);\n }, opt);\n if (opt.interpolation) this.interpolator.reset();\n }\n const postProcess = opt.postProcess || this.options.postProcess;\n const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;\n if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {\n res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {\n i18nResolved: {\n ...resolved,\n usedParams: this.getUsedParamsDetails(opt)\n },\n ...opt\n } : opt, this);\n }\n return res;\n }\n resolve(keys, opt = {}) {\n let found;\n let usedKey;\n let exactUsedKey;\n let usedLng;\n let usedNS;\n if (isString(keys)) keys = [keys];\n if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : k);\n keys.forEach(k => {\n if (this.isValidLookup(found)) return;\n const extracted = this.extractFromKey(k, opt);\n const key = extracted.key;\n usedKey = key;\n let namespaces = extracted.namespaces;\n if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';\n const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);\n namespaces.forEach(ns => {\n if (this.isValidLookup(found)) return;\n usedNS = ns;\n if (!this.checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(usedNS)) {\n this.checkedLoadedFor[`${codes[0]}-${ns}`] = true;\n this.logger.warn(`key \"${usedKey}\" for languages \"${codes.join(', ')}\" won't get resolved as namespace \"${usedNS}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n }\n codes.forEach(code => {\n if (this.isValidLookup(found)) return;\n usedLng = code;\n const finalKeys = [key];\n if (this.i18nFormat?.addLookupKeys) {\n this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);\n } else {\n let pluralSuffix;\n if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);\n const zeroSuffix = `${this.options.pluralSeparator}zero`;\n const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {\n finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(key + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(key + zeroSuffix);\n }\n }\n if (needsContextHandling) {\n const contextKey = `${key}${this.options.contextSeparator || '_'}${opt.context}`;\n finalKeys.push(contextKey);\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {\n finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(contextKey + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(contextKey + zeroSuffix);\n }\n }\n }\n }\n let possibleKey;\n while (possibleKey = finalKeys.pop()) {\n if (!this.isValidLookup(found)) {\n exactUsedKey = possibleKey;\n found = this.getResource(code, ns, possibleKey, opt);\n }\n }\n });\n });\n });\n return {\n res: found,\n usedKey,\n exactUsedKey,\n usedLng,\n usedNS\n };\n }\n isValidLookup(res) {\n return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n }\n getResource(code, ns, key, options = {}) {\n if (this.i18nFormat?.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n return this.resourceStore.getResource(code, ns, key, options);\n }\n getUsedParamsDetails(options = {}) {\n const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];\n const useOptionsReplaceForData = options.replace && !isString(options.replace);\n let data = useOptionsReplaceForData ? options.replace : options;\n if (useOptionsReplaceForData && typeof options.count !== 'undefined') {\n data.count = options.count;\n }\n if (this.options.interpolation.defaultVariables) {\n data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n }\n if (!useOptionsReplaceForData) {\n data = {\n ...data\n };\n for (const key of optionsKeys) {\n delete data[key];\n }\n }\n return data;\n }\n static hasDefaultValue(options) {\n const prefix = 'defaultValue';\n for (const option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option) && option.startsWith(prefix) && undefined !== options[option]) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass LanguageUtil {\n constructor(options) {\n this.options = options;\n this.supportedLngs = this.options.supportedLngs || false;\n this.logger = baseLogger.create('languageUtils');\n }\n getScriptPartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || !code.includes('-')) return null;\n const p = code.split('-');\n if (p.length === 2) return null;\n p.pop();\n if (p[p.length - 1].toLowerCase() === 'x') return null;\n return this.formatLanguageCode(p.join('-'));\n }\n getLanguagePartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || !code.includes('-')) return code;\n const p = code.split('-');\n return this.formatLanguageCode(p[0]);\n }\n formatLanguageCode(code) {\n if (isString(code) && code.includes('-')) {\n let formattedCode;\n try {\n formattedCode = Intl.getCanonicalLocales(code)[0];\n } catch (e) {}\n if (formattedCode && this.options.lowerCaseLng) {\n formattedCode = formattedCode.toLowerCase();\n }\n if (formattedCode) return formattedCode;\n if (this.options.lowerCaseLng) {\n return code.toLowerCase();\n }\n return code;\n }\n return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n }\n isSupportedCode(code) {\n if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n code = this.getLanguagePartFromCode(code);\n }\n return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.includes(code);\n }\n getBestMatchFromCodes(codes) {\n if (!codes) return null;\n let found;\n codes.forEach(code => {\n if (found) return;\n const cleanedLng = this.formatLanguageCode(code);\n if (!this.options.supportedLngs || this.isSupportedCode(cleanedLng)) found = cleanedLng;\n });\n if (!found && this.options.supportedLngs) {\n codes.forEach(code => {\n if (found) return;\n const lngScOnly = this.getScriptPartFromCode(code);\n if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;\n const lngOnly = this.getLanguagePartFromCode(code);\n if (this.isSupportedCode(lngOnly)) return found = lngOnly;\n found = this.options.supportedLngs.find(supportedLng => {\n if (supportedLng === lngOnly) return true;\n if (!supportedLng.includes('-') && !lngOnly.includes('-')) return false;\n if (supportedLng.includes('-') && !lngOnly.includes('-') && supportedLng.slice(0, supportedLng.indexOf('-')) === lngOnly) return true;\n if (supportedLng.startsWith(lngOnly) && lngOnly.length > 1) return true;\n return false;\n });\n });\n }\n if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n return found;\n }\n getFallbackCodes(fallbacks, code) {\n if (!fallbacks) return [];\n if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n if (isString(fallbacks)) fallbacks = [fallbacks];\n if (Array.isArray(fallbacks)) return fallbacks;\n if (!code) return fallbacks.default || [];\n let found = fallbacks[code];\n if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n if (!found) found = fallbacks[this.formatLanguageCode(code)];\n if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n if (!found) found = fallbacks.default;\n return found || [];\n }\n toResolveHierarchy(code, fallbackCode) {\n const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);\n const codes = [];\n const addCode = c => {\n if (!c) return;\n if (this.isSupportedCode(c)) {\n codes.push(c);\n } else {\n this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);\n }\n };\n if (isString(code) && (code.includes('-') || code.includes('_'))) {\n if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n } else if (isString(code)) {\n addCode(this.formatLanguageCode(code));\n }\n fallbackCodes.forEach(fc => {\n if (!codes.includes(fc)) addCode(this.formatLanguageCode(fc));\n });\n return codes;\n }\n}\n\nconst suffixesOrder = {\n zero: 0,\n one: 1,\n two: 2,\n few: 3,\n many: 4,\n other: 5\n};\nconst dummyRule = {\n select: count => count === 1 ? 'one' : 'other',\n resolvedOptions: () => ({\n pluralCategories: ['one', 'other']\n })\n};\nclass PluralResolver {\n constructor(languageUtils, options = {}) {\n this.languageUtils = languageUtils;\n this.options = options;\n this.logger = baseLogger.create('pluralResolver');\n this.pluralRulesCache = {};\n }\n clearCache() {\n this.pluralRulesCache = {};\n }\n getRule(code, options = {}) {\n const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code);\n const type = options.ordinal ? 'ordinal' : 'cardinal';\n const cacheKey = JSON.stringify({\n cleanedCode,\n type\n });\n if (cacheKey in this.pluralRulesCache) {\n return this.pluralRulesCache[cacheKey];\n }\n let rule;\n try {\n rule = new Intl.PluralRules(cleanedCode, {\n type\n });\n } catch (err) {\n if (typeof Intl === 'undefined') {\n this.logger.error('No Intl support, please use an Intl polyfill!');\n return dummyRule;\n }\n if (!code.match(/-|_/)) return dummyRule;\n const lngPart = this.languageUtils.getLanguagePartFromCode(code);\n rule = this.getRule(lngPart, options);\n }\n this.pluralRulesCache[cacheKey] = rule;\n return rule;\n }\n needsPlural(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n return rule?.resolvedOptions().pluralCategories.length > 1;\n }\n getPluralFormsOfKey(code, key, options = {}) {\n return this.getSuffixes(code, options).map(suffix => `${key}${suffix}`);\n }\n getSuffixes(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n if (!rule) return [];\n return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map(pluralCategory => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${pluralCategory}`);\n }\n getSuffix(code, count, options = {}) {\n const rule = this.getRule(code, options);\n if (rule) {\n return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${rule.select(count)}`;\n }\n this.logger.warn(`no plural rule found for: ${code}`);\n return this.getSuffix('dev', count, options);\n }\n}\n\nconst deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {\n let path = getPathWithDefaults(data, defaultData, key);\n if (!path && ignoreJSONStructure && isString(key)) {\n path = deepFind(data, key, keySeparator);\n if (path === undefined) path = deepFind(defaultData, key, keySeparator);\n }\n return path;\n};\nconst regexSafe = val => val.replace(/\\$/g, '$$$$');\nclass Interpolator {\n constructor(options = {}) {\n this.logger = baseLogger.create('interpolator');\n this.options = options;\n this.format = options?.interpolation?.format || (value => value);\n this.init(options);\n }\n init(options = {}) {\n if (!options.interpolation) options.interpolation = {\n escapeValue: true\n };\n const {\n escape: escape$1,\n escapeValue,\n useRawValueToEscape,\n prefix,\n prefixEscaped,\n suffix,\n suffixEscaped,\n formatSeparator,\n unescapeSuffix,\n unescapePrefix,\n nestingPrefix,\n nestingPrefixEscaped,\n nestingSuffix,\n nestingSuffixEscaped,\n nestingOptionsSeparator,\n maxReplaces,\n alwaysFormat\n } = options.interpolation;\n this.escape = escape$1 !== undefined ? escape$1 : escape;\n this.escapeValue = escapeValue !== undefined ? escapeValue : true;\n this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false;\n this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{';\n this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}';\n this.formatSeparator = formatSeparator || ',';\n this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix || '-';\n this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix || '';\n this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape('$t(');\n this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(')');\n this.nestingOptionsSeparator = nestingOptionsSeparator || ',';\n this.maxReplaces = maxReplaces || 1000;\n this.alwaysFormat = alwaysFormat !== undefined ? alwaysFormat : false;\n this.resetRegExp();\n }\n reset() {\n if (this.options) this.init(this.options);\n }\n resetRegExp() {\n const getOrResetRegExp = (existingRegExp, pattern) => {\n if (existingRegExp?.source === pattern) {\n existingRegExp.lastIndex = 0;\n return existingRegExp;\n }\n return new RegExp(pattern, 'g');\n };\n this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);\n this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);\n this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\\\))*?)${this.nestingSuffix}`);\n }\n interpolate(str, data, lng, options) {\n let match;\n let value;\n let replaces;\n const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n const handleFormat = key => {\n if (!key.includes(this.formatSeparator)) {\n const path = deepFindWithDefaults(data, defaultData, key, this.options.keySeparator, this.options.ignoreJSONStructure);\n return this.alwaysFormat ? this.format(path, undefined, lng, {\n ...options,\n ...data,\n interpolationkey: key\n }) : path;\n }\n const p = key.split(this.formatSeparator);\n const k = p.shift().trim();\n const f = p.join(this.formatSeparator).trim();\n return this.format(deepFindWithDefaults(data, defaultData, k, this.options.keySeparator, this.options.ignoreJSONStructure), f, lng, {\n ...options,\n ...data,\n interpolationkey: k\n });\n };\n this.resetRegExp();\n const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;\n const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;\n const todos = [{\n regex: this.regexpUnescape,\n safeValue: val => regexSafe(val)\n }, {\n regex: this.regexp,\n safeValue: val => this.escapeValue ? regexSafe(this.escape(val)) : regexSafe(val)\n }];\n todos.forEach(todo => {\n replaces = 0;\n while (match = todo.regex.exec(str)) {\n const matchedVar = match[1].trim();\n value = handleFormat(matchedVar);\n if (value === undefined) {\n if (typeof missingInterpolationHandler === 'function') {\n const temp = missingInterpolationHandler(str, match, options);\n value = isString(temp) ? temp : '';\n } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {\n value = '';\n } else if (skipOnVariables) {\n value = match[0];\n continue;\n } else {\n this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);\n value = '';\n }\n } else if (!isString(value) && !this.useRawValueToEscape) {\n value = makeString(value);\n }\n const safeValue = todo.safeValue(value);\n str = str.replace(match[0], safeValue);\n if (skipOnVariables) {\n todo.regex.lastIndex += value.length;\n todo.regex.lastIndex -= match[0].length;\n } else {\n todo.regex.lastIndex = 0;\n }\n replaces++;\n if (replaces >= this.maxReplaces) {\n break;\n }\n }\n });\n return str;\n }\n nest(str, fc, options = {}) {\n let match;\n let value;\n let clonedOptions;\n const handleHasOptions = (key, inheritedOptions) => {\n const sep = this.nestingOptionsSeparator;\n if (!key.includes(sep)) return key;\n const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));\n let optionsString = `{${c[1]}`;\n key = c[0];\n optionsString = this.interpolate(optionsString, clonedOptions);\n const matchedSingleQuotes = optionsString.match(/'/g);\n const matchedDoubleQuotes = optionsString.match(/\"/g);\n if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {\n optionsString = optionsString.replace(/'/g, '\"');\n }\n try {\n clonedOptions = JSON.parse(optionsString);\n if (inheritedOptions) clonedOptions = {\n ...inheritedOptions,\n ...clonedOptions\n };\n } catch (e) {\n this.logger.warn(`failed parsing options string in nesting for key ${key}`, e);\n return `${key}${sep}${optionsString}`;\n }\n if (clonedOptions.defaultValue && clonedOptions.defaultValue.includes(this.prefix)) delete clonedOptions.defaultValue;\n return key;\n };\n while (match = this.nestingRegexp.exec(str)) {\n let formatters = [];\n clonedOptions = {\n ...options\n };\n clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;\n clonedOptions.applyPostProcessor = false;\n delete clonedOptions.defaultValue;\n const keyEndIndex = /{.*}/.test(match[1]) ? match[1].lastIndexOf('}') + 1 : match[1].indexOf(this.formatSeparator);\n if (keyEndIndex !== -1) {\n formatters = match[1].slice(keyEndIndex).split(this.formatSeparator).map(elem => elem.trim()).filter(Boolean);\n match[1] = match[1].slice(0, keyEndIndex);\n }\n value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n if (value && match[0] === str && !isString(value)) return value;\n if (!isString(value)) value = makeString(value);\n if (!value) {\n this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);\n value = '';\n }\n if (formatters.length) {\n value = formatters.reduce((v, f) => this.format(v, f, options.lng, {\n ...options,\n interpolationkey: match[1].trim()\n }), value.trim());\n }\n str = str.replace(match[0], value);\n this.regexp.lastIndex = 0;\n }\n return str;\n }\n}\n\nconst parseFormatStr = formatStr => {\n let formatName = formatStr.toLowerCase().trim();\n const formatOptions = {};\n if (formatStr.includes('(')) {\n const p = formatStr.split('(');\n formatName = p[0].toLowerCase().trim();\n const optStr = p[1].slice(0, -1);\n if (formatName === 'currency' && !optStr.includes(':')) {\n if (!formatOptions.currency) formatOptions.currency = optStr.trim();\n } else if (formatName === 'relativetime' && !optStr.includes(':')) {\n if (!formatOptions.range) formatOptions.range = optStr.trim();\n } else {\n const opts = optStr.split(';');\n opts.forEach(opt => {\n if (opt) {\n const [key, ...rest] = opt.split(':');\n const val = rest.join(':').trim().replace(/^'+|'+$/g, '');\n const trimmedKey = key.trim();\n if (!formatOptions[trimmedKey]) formatOptions[trimmedKey] = val;\n if (val === 'false') formatOptions[trimmedKey] = false;\n if (val === 'true') formatOptions[trimmedKey] = true;\n if (!isNaN(val)) formatOptions[trimmedKey] = parseInt(val, 10);\n }\n });\n }\n }\n return {\n formatName,\n formatOptions\n };\n};\nconst createCachedFormatter = fn => {\n const cache = {};\n return (v, l, o) => {\n let optForCache = o;\n if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {\n optForCache = {\n ...optForCache,\n [o.interpolationkey]: undefined\n };\n }\n const key = l + JSON.stringify(optForCache);\n let frm = cache[key];\n if (!frm) {\n frm = fn(getCleanedCode(l), o);\n cache[key] = frm;\n }\n return frm(v);\n };\n};\nconst createNonCachedFormatter = fn => (v, l, o) => fn(getCleanedCode(l), o)(v);\nclass Formatter {\n constructor(options = {}) {\n this.logger = baseLogger.create('formatter');\n this.options = options;\n this.init(options);\n }\n init(services, options = {\n interpolation: {}\n }) {\n this.formatSeparator = options.interpolation.formatSeparator || ',';\n const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;\n this.formats = {\n number: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n currency: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt,\n style: 'currency'\n });\n return val => formatter.format(val);\n }),\n datetime: cf((lng, opt) => {\n const formatter = new Intl.DateTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n relativetime: cf((lng, opt) => {\n const formatter = new Intl.RelativeTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val, opt.range || 'day');\n }),\n list: cf((lng, opt) => {\n const formatter = new Intl.ListFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n })\n };\n }\n add(name, fc) {\n this.formats[name.toLowerCase().trim()] = fc;\n }\n addCached(name, fc) {\n this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);\n }\n format(value, format, lng, options = {}) {\n if (!format) return value;\n if (value == null) return value;\n const formats = format.split(this.formatSeparator);\n if (formats.length > 1 && formats[0].indexOf('(') > 1 && !formats[0].includes(')') && formats.find(f => f.includes(')'))) {\n const lastIndex = formats.findIndex(f => f.includes(')'));\n formats[0] = [formats[0], ...formats.splice(1, lastIndex)].join(this.formatSeparator);\n }\n const result = formats.reduce((mem, f) => {\n const {\n formatName,\n formatOptions\n } = parseFormatStr(f);\n if (this.formats[formatName]) {\n let formatted = mem;\n try {\n const valOptions = options?.formatParams?.[options.interpolationkey] || {};\n const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;\n formatted = this.formats[formatName](mem, l, {\n ...formatOptions,\n ...options,\n ...valOptions\n });\n } catch (error) {\n this.logger.warn(error);\n }\n return formatted;\n } else {\n this.logger.warn(`there was no format function for ${formatName}`);\n }\n return mem;\n }, value);\n return result;\n }\n}\n\nconst removePending = (q, name) => {\n if (q.pending[name] !== undefined) {\n delete q.pending[name];\n q.pendingCount--;\n }\n};\nclass Connector extends EventEmitter {\n constructor(backend, store, services, options = {}) {\n super();\n this.backend = backend;\n this.store = store;\n this.services = services;\n this.languageUtils = services.languageUtils;\n this.options = options;\n this.logger = baseLogger.create('backendConnector');\n this.waitingReads = [];\n this.maxParallelReads = options.maxParallelReads || 10;\n this.readingCalls = 0;\n this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;\n this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;\n this.state = {};\n this.queue = [];\n this.backend?.init?.(services, options.backend, options);\n }\n queueLoad(languages, namespaces, options, callback) {\n const toLoad = {};\n const pending = {};\n const toLoadLanguages = {};\n const toLoadNamespaces = {};\n languages.forEach(lng => {\n let hasAllNamespaces = true;\n namespaces.forEach(ns => {\n const name = `${lng}|${ns}`;\n if (!options.reload && this.store.hasResourceBundle(lng, ns)) {\n this.state[name] = 2;\n } else if (this.state[name] < 0) ; else if (this.state[name] === 1) {\n if (pending[name] === undefined) pending[name] = true;\n } else {\n this.state[name] = 1;\n hasAllNamespaces = false;\n if (pending[name] === undefined) pending[name] = true;\n if (toLoad[name] === undefined) toLoad[name] = true;\n if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true;\n }\n });\n if (!hasAllNamespaces) toLoadLanguages[lng] = true;\n });\n if (Object.keys(toLoad).length || Object.keys(pending).length) {\n this.queue.push({\n pending,\n pendingCount: Object.keys(pending).length,\n loaded: {},\n errors: [],\n callback\n });\n }\n return {\n toLoad: Object.keys(toLoad),\n pending: Object.keys(pending),\n toLoadLanguages: Object.keys(toLoadLanguages),\n toLoadNamespaces: Object.keys(toLoadNamespaces)\n };\n }\n loaded(name, err, data) {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n if (err) this.emit('failedLoading', lng, ns, err);\n if (!err && data) {\n this.store.addResourceBundle(lng, ns, data, undefined, undefined, {\n skipCopy: true\n });\n }\n this.state[name] = err ? -1 : 2;\n if (err && data) this.state[name] = 0;\n const loaded = {};\n this.queue.forEach(q => {\n pushPath(q.loaded, [lng], ns);\n removePending(q, name);\n if (err) q.errors.push(err);\n if (q.pendingCount === 0 && !q.done) {\n Object.keys(q.loaded).forEach(l => {\n if (!loaded[l]) loaded[l] = {};\n const loadedKeys = q.loaded[l];\n if (loadedKeys.length) {\n loadedKeys.forEach(n => {\n if (loaded[l][n] === undefined) loaded[l][n] = true;\n });\n }\n });\n q.done = true;\n if (q.errors.length) {\n q.callback(q.errors);\n } else {\n q.callback();\n }\n }\n });\n this.emit('loaded', loaded);\n this.queue = this.queue.filter(q => !q.done);\n }\n read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {\n if (!lng.length) return callback(null, {});\n if (this.readingCalls >= this.maxParallelReads) {\n this.waitingReads.push({\n lng,\n ns,\n fcName,\n tried,\n wait,\n callback\n });\n return;\n }\n this.readingCalls++;\n const resolver = (err, data) => {\n this.readingCalls--;\n if (this.waitingReads.length > 0) {\n const next = this.waitingReads.shift();\n this.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);\n }\n if (err && data && tried < this.maxRetries) {\n setTimeout(() => {\n this.read(lng, ns, fcName, tried + 1, wait * 2, callback);\n }, wait);\n return;\n }\n callback(err, data);\n };\n const fc = this.backend[fcName].bind(this.backend);\n if (fc.length === 2) {\n try {\n const r = fc(lng, ns);\n if (r && typeof r.then === 'function') {\n r.then(data => resolver(null, data)).catch(resolver);\n } else {\n resolver(null, r);\n }\n } catch (err) {\n resolver(err);\n }\n return;\n }\n return fc(lng, ns, resolver);\n }\n prepareLoading(languages, namespaces, options = {}, callback) {\n if (!this.backend) {\n this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n return callback && callback();\n }\n if (isString(languages)) languages = this.languageUtils.toResolveHierarchy(languages);\n if (isString(namespaces)) namespaces = [namespaces];\n const toLoad = this.queueLoad(languages, namespaces, options, callback);\n if (!toLoad.toLoad.length) {\n if (!toLoad.pending.length) callback();\n return null;\n }\n toLoad.toLoad.forEach(name => {\n this.loadOne(name);\n });\n }\n load(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {}, callback);\n }\n reload(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {\n reload: true\n }, callback);\n }\n loadOne(name, prefix = '') {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n this.read(lng, ns, 'read', undefined, undefined, (err, data) => {\n if (err) this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err);\n if (!err && data) this.logger.log(`${prefix}loaded namespace ${ns} for language ${lng}`, data);\n this.loaded(name, err, data);\n });\n }\n saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}) {\n if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {\n this.logger.warn(`did not save key \"${key}\" as the namespace \"${namespace}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n return;\n }\n if (key === undefined || key === null || key === '') return;\n if (this.backend?.create) {\n const opts = {\n ...options,\n isUpdate\n };\n const fc = this.backend.create.bind(this.backend);\n if (fc.length < 6) {\n try {\n let r;\n if (fc.length === 5) {\n r = fc(languages, namespace, key, fallbackValue, opts);\n } else {\n r = fc(languages, namespace, key, fallbackValue);\n }\n if (r && typeof r.then === 'function') {\n r.then(data => clb(null, data)).catch(clb);\n } else {\n clb(null, r);\n }\n } catch (err) {\n clb(err);\n }\n } else {\n fc(languages, namespace, key, fallbackValue, clb, opts);\n }\n }\n if (!languages || !languages[0]) return;\n this.store.addResource(languages[0], namespace, key, fallbackValue);\n }\n}\n\nconst get = () => ({\n debug: false,\n initAsync: true,\n ns: ['translation'],\n defaultNS: ['translation'],\n fallbackLng: ['dev'],\n fallbackNS: false,\n supportedLngs: false,\n nonExplicitSupportedLngs: false,\n load: 'all',\n preload: false,\n keySeparator: '.',\n nsSeparator: ':',\n pluralSeparator: '_',\n contextSeparator: '_',\n partialBundledLanguages: false,\n saveMissing: false,\n updateMissing: false,\n saveMissingTo: 'fallback',\n saveMissingPlurals: true,\n missingKeyHandler: false,\n missingInterpolationHandler: false,\n postProcess: false,\n postProcessPassResolved: false,\n returnNull: false,\n returnEmptyString: true,\n returnObjects: false,\n joinArrays: false,\n returnedObjectHandler: false,\n parseMissingKeyHandler: false,\n appendNamespaceToMissingKey: false,\n appendNamespaceToCIMode: false,\n overloadTranslationOptionHandler: args => {\n let ret = {};\n if (typeof args[1] === 'object') ret = args[1];\n if (isString(args[1])) ret.defaultValue = args[1];\n if (isString(args[2])) ret.tDescription = args[2];\n if (typeof args[2] === 'object' || typeof args[3] === 'object') {\n const options = args[3] || args[2];\n Object.keys(options).forEach(key => {\n ret[key] = options[key];\n });\n }\n return ret;\n },\n interpolation: {\n escapeValue: true,\n prefix: '{{',\n suffix: '}}',\n formatSeparator: ',',\n unescapePrefix: '-',\n nestingPrefix: '$t(',\n nestingSuffix: ')',\n nestingOptionsSeparator: ',',\n maxReplaces: 1000,\n skipOnVariables: true\n },\n cacheInBuiltFormats: true\n});\nconst transformOptions = options => {\n if (isString(options.ns)) options.ns = [options.ns];\n if (isString(options.fallbackLng)) options.fallbackLng = [options.fallbackLng];\n if (isString(options.fallbackNS)) options.fallbackNS = [options.fallbackNS];\n if (options.supportedLngs && !options.supportedLngs.includes('cimode')) {\n options.supportedLngs = options.supportedLngs.concat(['cimode']);\n }\n return options;\n};\n\nconst noop = () => {};\nconst bindMemberFunctions = inst => {\n const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));\n mems.forEach(mem => {\n if (typeof inst[mem] === 'function') {\n inst[mem] = inst[mem].bind(inst);\n }\n });\n};\nclass I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {};\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (!options.ns.includes('translation')) {\n options.defaultNS = options.ns[0];\n }\n }\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n if (typeof this.options.overloadTranslationOptionHandler !== 'function') {\n this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator\n });\n if (formatter) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if (this.languages && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (!toLoad.includes(l)) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) lngs = this.languages;\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n if (module.type === 'backend') {\n this.modules.backend = module;\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n this.modules.languageDetector = module;\n }\n if (module.type === 'i18nFormat') {\n this.modules.i18nFormat = module;\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n }\n if (module.type === 'formatter') {\n this.modules.formatter = module;\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].includes(l)) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].includes(lngInLngs)) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && !this.languages.includes(l) && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n if (this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix) {\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const selectorOpts = {\n ...this.options,\n ...o\n };\n if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n return this.translator?.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (!this.options.ns.includes(n)) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'rtl';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.includes(languageUtils.getLanguagePartFromCode(lng)) || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n const instance = new I18n(options, callback);\n instance.createInstance = I18n.createInstance;\n return instance;\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) delete options.forkResourceStore;\n const mergedOptions = {\n ...this.options,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n if (forkResourceStore) {\n const clonedData = Object.keys(this.store.data).reduce((prev, l) => {\n prev[l] = {\n ...this.store.data[l]\n };\n prev[l] = Object.keys(prev[l]).reduce((acc, n) => {\n acc[n] = {\n ...prev[l][n]\n };\n return acc;\n }, prev[l]);\n return prev;\n }, {});\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n if (options.interpolation) {\n const defOpts = get();\n const mergedInterpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation,\n ...options.interpolation\n };\n const mergedForInterpolator = {\n ...mergedOptions,\n interpolation: mergedInterpolation\n };\n clone.services.interpolator = new Interpolator(mergedForInterpolator);\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n}\nconst instance = I18n.createInstance();\n\nconst createInstance = instance.createInstance;\nconst dir = instance.dir;\nconst init = instance.init;\nconst loadResources = instance.loadResources;\nconst reloadResources = instance.reloadResources;\nconst use = instance.use;\nconst changeLanguage = instance.changeLanguage;\nconst getFixedT = instance.getFixedT;\nconst t = instance.t;\nconst exists = instance.exists;\nconst setDefaultNamespace = instance.setDefaultNamespace;\nconst hasLoadedNamespace = instance.hasLoadedNamespace;\nconst loadNamespaces = instance.loadNamespaces;\nconst loadLanguages = instance.loadLanguages;\n\nexport { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };\n","const commonEntities = {\n '&nbsp;': '\\u00A0',\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&apos;': \"'\",\n '&copy;': '©',\n '&reg;': '®',\n '&trade;': '™',\n '&hellip;': '…',\n '&ndash;': '–',\n '&mdash;': '—',\n '&lsquo;': '\\u2018',\n '&rsquo;': '\\u2019',\n '&sbquo;': '\\u201A',\n '&ldquo;': '\\u201C',\n '&rdquo;': '\\u201D',\n '&bdquo;': '\\u201E',\n '&dagger;': '†',\n '&Dagger;': '‡',\n '&bull;': '•',\n '&prime;': '′',\n '&Prime;': '″',\n '&lsaquo;': '‹',\n '&rsaquo;': '›',\n '&sect;': '§',\n '&para;': '¶',\n '&middot;': '·',\n '&ensp;': '\\u2002',\n '&emsp;': '\\u2003',\n '&thinsp;': '\\u2009',\n '&euro;': '€',\n '&pound;': '£',\n '&yen;': '¥',\n '&cent;': '¢',\n '&curren;': '¤',\n '&times;': '×',\n '&divide;': '÷',\n '&minus;': '−',\n '&plusmn;': '±',\n '&ne;': '≠',\n '&le;': '≤',\n '&ge;': '≥',\n '&asymp;': '≈',\n '&equiv;': '≡',\n '&infin;': '∞',\n '&int;': '∫',\n '&sum;': '∑',\n '&prod;': '∏',\n '&radic;': '√',\n '&part;': '∂',\n '&permil;': '‰',\n '&deg;': '°',\n '&micro;': 'µ',\n '&larr;': '←',\n '&uarr;': '↑',\n '&rarr;': '→',\n '&darr;': '↓',\n '&harr;': '↔',\n '&crarr;': '↵',\n '&lArr;': '⇐',\n '&uArr;': '⇑',\n '&rArr;': '⇒',\n '&dArr;': '⇓',\n '&hArr;': '⇔',\n '&alpha;': 'α',\n '&beta;': 'β',\n '&gamma;': 'γ',\n '&delta;': 'δ',\n '&epsilon;': 'ε',\n '&zeta;': 'ζ',\n '&eta;': 'η',\n '&theta;': 'θ',\n '&iota;': 'ι',\n '&kappa;': 'κ',\n '&lambda;': 'λ',\n '&mu;': 'μ',\n '&nu;': 'ν',\n '&xi;': 'ξ',\n '&omicron;': 'ο',\n '&pi;': 'π',\n '&rho;': 'ρ',\n '&sigma;': 'σ',\n '&tau;': 'τ',\n '&upsilon;': 'υ',\n '&phi;': 'φ',\n '&chi;': 'χ',\n '&psi;': 'ψ',\n '&omega;': 'ω',\n '&Alpha;': 'Α',\n '&Beta;': 'Β',\n '&Gamma;': 'Γ',\n '&Delta;': 'Δ',\n '&Epsilon;': 'Ε',\n '&Zeta;': 'Ζ',\n '&Eta;': 'Η',\n '&Theta;': 'Θ',\n '&Iota;': 'Ι',\n '&Kappa;': 'Κ',\n '&Lambda;': 'Λ',\n '&Mu;': 'Μ',\n '&Nu;': 'Ν',\n '&Xi;': 'Ξ',\n '&Omicron;': 'Ο',\n '&Pi;': 'Π',\n '&Rho;': 'Ρ',\n '&Sigma;': 'Σ',\n '&Tau;': 'Τ',\n '&Upsilon;': 'Υ',\n '&Phi;': 'Φ',\n '&Chi;': 'Χ',\n '&Psi;': 'Ψ',\n '&Omega;': 'Ω',\n '&Agrave;': 'À',\n '&Aacute;': 'Á',\n '&Acirc;': 'Â',\n '&Atilde;': 'Ã',\n '&Auml;': 'Ä',\n '&Aring;': 'Å',\n '&AElig;': 'Æ',\n '&Ccedil;': 'Ç',\n '&Egrave;': 'È',\n '&Eacute;': 'É',\n '&Ecirc;': 'Ê',\n '&Euml;': 'Ë',\n '&Igrave;': 'Ì',\n '&Iacute;': 'Í',\n '&Icirc;': 'Î',\n '&Iuml;': 'Ï',\n '&ETH;': 'Ð',\n '&Ntilde;': 'Ñ',\n '&Ograve;': 'Ò',\n '&Oacute;': 'Ó',\n '&Ocirc;': 'Ô',\n '&Otilde;': 'Õ',\n '&Ouml;': 'Ö',\n '&Oslash;': 'Ø',\n '&Ugrave;': 'Ù',\n '&Uacute;': 'Ú',\n '&Ucirc;': 'Û',\n '&Uuml;': 'Ü',\n '&Yacute;': 'Ý',\n '&THORN;': 'Þ',\n '&szlig;': 'ß',\n '&agrave;': 'à',\n '&aacute;': 'á',\n '&acirc;': 'â',\n '&atilde;': 'ã',\n '&auml;': 'ä',\n '&aring;': 'å',\n '&aelig;': 'æ',\n '&ccedil;': 'ç',\n '&egrave;': 'è',\n '&eacute;': 'é',\n '&ecirc;': 'ê',\n '&euml;': 'ë',\n '&igrave;': 'ì',\n '&iacute;': 'í',\n '&icirc;': 'î',\n '&iuml;': 'ï',\n '&eth;': 'ð',\n '&ntilde;': 'ñ',\n '&ograve;': 'ò',\n '&oacute;': 'ó',\n '&ocirc;': 'ô',\n '&otilde;': 'õ',\n '&ouml;': 'ö',\n '&oslash;': 'ø',\n '&ugrave;': 'ù',\n '&uacute;': 'ú',\n '&ucirc;': 'û',\n '&uuml;': 'ü',\n '&yacute;': 'ý',\n '&thorn;': 'þ',\n '&yuml;': 'ÿ',\n '&iexcl;': '¡',\n '&iquest;': '¿',\n '&fnof;': 'ƒ',\n '&circ;': 'ˆ',\n '&tilde;': '˜',\n '&OElig;': 'Œ',\n '&oelig;': 'œ',\n '&Scaron;': 'Š',\n '&scaron;': 'š',\n '&Yuml;': 'Ÿ',\n '&ordf;': 'ª',\n '&ordm;': 'º',\n '&macr;': '¯',\n '&acute;': '´',\n '&cedil;': '¸',\n '&sup1;': '¹',\n '&sup2;': '²',\n '&sup3;': '³',\n '&frac14;': '¼',\n '&frac12;': '½',\n '&frac34;': '¾',\n '&spades;': '♠',\n '&clubs;': '♣',\n '&hearts;': '♥',\n '&diams;': '♦',\n '&loz;': '◊',\n '&oline;': '‾',\n '&frasl;': '⁄',\n '&weierp;': '℘',\n '&image;': 'ℑ',\n '&real;': 'ℜ',\n '&alefsym;': 'ℵ'\n};\nconst entityPattern = new RegExp(Object.keys(commonEntities).map(entity => entity.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')).join('|'), 'g');\nexport const decodeHtmlEntities = text => text.replace(entityPattern, match => commonEntities[match]).replace(/&#(\\d+);/g, (_, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));","export class TranslationParserError extends Error {\n constructor(message, position, translationString) {\n super(message);\n this.name = 'TranslationParserError';\n this.position = position;\n this.translationString = translationString;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, TranslationParserError);\n }\n }\n}","export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;","export const tokenize = translation => {\n const tokens = [];\n let position = 0;\n let currentText = '';\n const flushText = () => {\n if (currentText) {\n tokens.push({\n type: 'Text',\n value: currentText,\n position: position - currentText.length\n });\n currentText = '';\n }\n };\n while (position < translation.length) {\n const char = translation[position];\n if (char === '<') {\n const tagMatch = translation.slice(position).match(/^<(\\d+)>/);\n if (tagMatch) {\n flushText();\n tokens.push({\n type: 'TagOpen',\n value: tagMatch[0],\n position,\n tagNumber: parseInt(tagMatch[1], 10)\n });\n position += tagMatch[0].length;\n } else {\n const closeTagMatch = translation.slice(position).match(/^<\\/(\\d+)>/);\n if (closeTagMatch) {\n flushText();\n tokens.push({\n type: 'TagClose',\n value: closeTagMatch[0],\n position,\n tagNumber: parseInt(closeTagMatch[1], 10)\n });\n position += closeTagMatch[0].length;\n } else {\n currentText += char;\n position += 1;\n }\n }\n } else {\n currentText += char;\n position += 1;\n }\n }\n flushText();\n return tokens;\n};","import lookup from 'void-elements'\nconst attrRE = /\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g\n\nexport default function stringify(tag) {\n const res = {\n type: 'tag',\n name: '',\n voidElement: false,\n attrs: {},\n children: [],\n }\n\n const tagMatch = tag.match(/<\\/?([^\\s]+?)[/\\s>]/)\n if (tagMatch) {\n res.name = tagMatch[1]\n if (\n lookup[tagMatch[1]] ||\n tag.charAt(tag.length - 2) === '/'\n ) {\n res.voidElement = true\n }\n\n // handle comment tag\n if (res.name.startsWith('!--')) {\n const endIndex = tag.indexOf('-->')\n return {\n type: 'comment',\n comment: endIndex !== -1 ? tag.slice(4, endIndex) : '',\n }\n }\n }\n\n const reg = new RegExp(attrRE)\n let result = null\n for (;;) {\n result = reg.exec(tag)\n\n if (result === null) {\n break\n }\n\n if (!result[0].trim()) {\n continue\n }\n\n if (result[1]) {\n const attr = result[1].trim()\n let arr = [attr, '']\n\n if (attr.indexOf('=') > -1) {\n arr = attr.split('=')\n }\n\n res.attrs[arr[0]] = arr[1]\n reg.lastIndex--\n } else if (result[2]) {\n res.attrs[result[2]] = result[3].trim().substring(1, result[3].length - 1)\n }\n }\n\n return res\n}\n","import parseTag from './parse-tag'\n\nconst tagRE = /<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g\nconst whitespaceRE = /^\\s*$/\n\n// re-used obj for quick lookups of components\nconst empty = Object.create(null)\n\nexport default function parse(html, options) {\n options || (options = {})\n options.components || (options.components = empty)\n const result = []\n const arr = []\n let current\n let level = -1\n let inComponent = false\n\n // handle text at top level\n if (html.indexOf('<') !== 0) {\n var end = html.indexOf('<')\n result.push({\n type: 'text',\n content: end === -1 ? html : html.substring(0, end),\n })\n }\n\n html.replace(tagRE, function (tag, index) {\n if (inComponent) {\n if (tag !== '</' + current.name + '>') {\n return\n } else {\n inComponent = false\n }\n }\n const isOpen = tag.charAt(1) !== '/'\n const isComment = tag.startsWith('<!--')\n const start = index + tag.length\n const nextChar = html.charAt(start)\n let parent\n\n if (isComment) {\n const comment = parseTag(tag)\n\n // if we're at root, push new base node\n if (level < 0) {\n result.push(comment)\n return result\n }\n parent = arr[level]\n parent.children.push(comment)\n return result\n }\n\n if (isOpen) {\n level++\n\n current = parseTag(tag)\n if (current.type === 'tag' && options.components[current.name]) {\n current.type = 'component'\n inComponent = true\n }\n\n if (\n !current.voidElement &&\n !inComponent &&\n nextChar &&\n nextChar !== '<'\n ) {\n current.children.push({\n type: 'text',\n content: html.slice(start, html.indexOf('<', start)),\n })\n }\n\n // if we're at root, push new base node\n if (level === 0) {\n result.push(current)\n }\n\n parent = arr[level - 1]\n\n if (parent) {\n parent.children.push(current)\n }\n\n arr[level] = current\n }\n\n if (!isOpen || current.voidElement) {\n if (\n level > -1 &&\n (current.voidElement || current.name === tag.slice(2, -1))\n ) {\n level--\n // move current up a level to match the end tag\n current = level === -1 ? result : arr[level]\n }\n if (!inComponent && nextChar !== '<' && nextChar) {\n // trailing text node\n // if we're at the root, push a base text node. otherwise add as\n // a child to the current node.\n parent = level === -1 ? result : arr[level].children\n\n // calculate correct end of the content slice in case there's\n // no tag after the text node.\n const end = html.indexOf('<', start)\n let content = html.slice(start, end === -1 ? undefined : end)\n // if a node is nothing but whitespace, collapse it as the spec states:\n // https://www.w3.org/TR/html4/struct/text.html#h-9.1\n if (whitespaceRE.test(content)) {\n content = ' '\n }\n // don't add whitespace-only text nodes if they would be trailing text nodes\n // or if they would be leading whitespace-only text nodes:\n // * end > -1 indicates this is not a trailing text node\n // * leading node is when level is -1 and parent has length 0\n if ((end > -1 && level + parent.length >= 0) || content !== ' ') {\n parent.push({\n type: 'text',\n content: content,\n })\n }\n }\n }\n })\n\n return result\n}\n","function attrString(attrs) {\n const buff = []\n for (let key in attrs) {\n buff.push(key + '=\"' + attrs[key] + '\"')\n }\n if (!buff.length) {\n return ''\n }\n return ' ' + buff.join(' ')\n}\n\nfunction stringify(buff, doc) {\n switch (doc.type) {\n case 'text':\n return buff + doc.content\n case 'tag':\n buff +=\n '<' +\n doc.name +\n (doc.attrs ? attrString(doc.attrs) : '') +\n (doc.voidElement ? '/>' : '>')\n if (doc.voidElement) {\n return buff\n }\n return buff + doc.children.reduce(stringify, '') + '</' + doc.name + '>'\n case 'comment':\n buff += '<!--' + doc.comment + '-->'\n return buff\n }\n}\n\nexport default function (doc) {\n return doc.reduce(function (token, rootEl) {\n return token + stringify('', rootEl)\n }, '')\n}\n","import parse from './parse'\nimport stringify from './stringify'\n\nexport default {\n parse,\n stringify,\n}\n","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape,\n transDefaultProps: undefined\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;","import { useContext, useCallback, useMemo, useEffect, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n if (typeof k === 'function') return '';\n if (Array.isArray(k)) {\n const last = k[k.length - 1];\n return typeof last === 'function' ? '' : last;\n }\n return k;\n};\nconst notReadySnapshot = {\n t: notReadyT,\n ready: false\n};\nconst dummySubscribe = () => () => {};\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');\n }\n const i18nOptions = useMemo(() => ({\n ...getDefaults(),\n ...i18n?.options?.react,\n ...props\n }), [i18n, props]);\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n const nsOrContext = ns || defaultNSFromContext || i18n?.options?.defaultNS;\n const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ['translation'];\n const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);\n i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);\n const revisionRef = useRef(0);\n const subscribe = useCallback(callback => {\n if (!i18n) return dummySubscribe;\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n const wrappedCallback = () => {\n revisionRef.current += 1;\n callback();\n };\n if (bindI18n) i18n.on(bindI18n, wrappedCallback);\n if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);\n return () => {\n if (bindI18n) bindI18n.split(' ').forEach(e => i18n.off(e, wrappedCallback));\n if (bindI18nStore) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, wrappedCallback));\n };\n }, [i18n, i18nOptions]);\n const snapshotRef = useRef();\n const getSnapshot = useCallback(() => {\n if (!i18n) {\n return notReadySnapshot;\n }\n const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const currentLng = props.lng || i18n.language;\n const currentRevision = revisionRef.current;\n const lastSnapshot = snapshotRef.current;\n if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {\n return lastSnapshot;\n }\n const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const newSnapshot = {\n t: calculatedT,\n ready: calculatedReady,\n lng: currentLng,\n keyPrefix,\n revision: currentRevision\n };\n snapshotRef.current = newSnapshot;\n return newSnapshot;\n }, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);\n const [loadCount, setLoadCount] = useState(0);\n const {\n t,\n ready\n } = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n useEffect(() => {\n if (i18n && !ready && !useSuspense) {\n const onLoaded = () => setLoadCount(c => c + 1);\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n }\n }, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);\n const finalI18n = i18n || {};\n const wrapperRef = useRef(null);\n const wrapperLangRef = useRef();\n const createI18nWrapper = original => {\n const descriptors = Object.getOwnPropertyDescriptors(original);\n if (descriptors.__original) delete descriptors.__original;\n const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);\n if (!Object.prototype.hasOwnProperty.call(wrapper, '__original')) {\n try {\n Object.defineProperty(wrapper, '__original', {\n value: original,\n writable: false,\n enumerable: false,\n configurable: false\n });\n } catch (_) {}\n }\n return wrapper;\n };\n const ret = useMemo(() => {\n const original = finalI18n;\n const lang = original?.language;\n let i18nWrapper = original;\n if (original) {\n if (wrapperRef.current && wrapperRef.current.__original === original) {\n if (wrapperLangRef.current !== lang) {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n } else {\n i18nWrapper = wrapperRef.current;\n }\n } else {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n }\n }\n const effectiveT = !ready && !useSuspense ? (...args) => {\n warnOnce(i18n, 'USE_T_BEFORE_READY', 'useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.');\n return t(...args);\n } : t;\n const arr = [effectiveT, i18nWrapper, ready];\n arr.t = effectiveT;\n arr.i18n = i18nWrapper;\n arr.ready = ready;\n return arr;\n }, [t, finalI18n, ready, finalI18n.resolvedLanguage, finalI18n.language, finalI18n.languages]);\n if (i18n && useSuspense && !ready) {\n throw new Promise(resolve => {\n const onLoaded = () => resolve();\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n });\n }\n return ret;\n};","import { useTranslation } from './useTranslation.js';\nexport const Translation = ({\n ns,\n children,\n ...options\n}) => {\n const [t, i18n, ready] = useTranslation(ns, options);\n return children(t, {\n i18n,\n lng: i18n?.language\n }, ready);\n};","import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};","import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context.js';\nexport function I18nextProvider({\n i18n,\n defaultNS,\n children\n}) {\n const value = useMemo(() => ({\n i18n,\n defaultNS\n }), [i18n, defaultNS]);\n return createElement(I18nContext.Provider, {\n value\n }, children);\n}","import { useContext } from 'react';\nimport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport function IcuTrans({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n values,\n i18n,\n t: tFromProps\n });\n}\nIcuTrans.displayName = 'IcuTrans';","import { createElement, forwardRef as forwardRefReact } from 'react';\nimport { useTranslation } from './useTranslation.js';\nimport { getDisplayName } from './utils.js';\nexport const withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {\n function I18nextWithTranslation({\n forwardedRef,\n ...rest\n }) {\n const [t, i18n, ready] = useTranslation(ns, {\n ...rest,\n keyPrefix: options.keyPrefix\n });\n const passDownProps = {\n ...rest,\n t,\n i18n,\n tReady: ready\n };\n if (options.withRef && forwardedRef) {\n passDownProps.ref = forwardedRef;\n } else if (!options.withRef && forwardedRef) {\n passDownProps.forwardedRef = forwardedRef;\n }\n return createElement(WrappedComponent, passDownProps);\n }\n I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;\n I18nextWithTranslation.WrappedComponent = WrappedComponent;\n const forwardRef = (props, ref) => createElement(I18nextWithTranslation, Object.assign({}, props, {\n forwardedRef: ref\n }));\n return options.withRef ? forwardRefReact(forwardRef) : I18nextWithTranslation;\n};","import { useContext } from 'react';\nimport { getI18n, I18nContext } from './context.js';\nimport { warnOnce } from './utils.js';\nexport const useSSR = (initialI18nStore, initialLanguage, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useSSR: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.');\n return;\n }\n if (i18n.options?.isClone) return;\n if (initialI18nStore && !i18n.initializedStoreOnce) {\n if (!i18n.services?.resourceStore) {\n warnOnce(i18n, 'I18N_NOT_INITIALIZED', 'useSSR: i18n instance was found but not initialized (services.resourceStore is missing). Make sure you call i18next.init() before using useSSR — e.g. at module level, not only in getStaticProps/getServerSideProps.');\n return;\n }\n i18n.services.resourceStore.data = initialI18nStore;\n i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {\n Object.keys(lngResources).forEach(ns => {\n if (mem.indexOf(ns) < 0) mem.push(ns);\n });\n return mem;\n }, i18n.options.ns);\n i18n.initializedStoreOnce = true;\n i18n.isInitialized = true;\n }\n if (initialLanguage && !i18n.initializedLanguageOnce) {\n i18n.changeLanguage(initialLanguage);\n i18n.initializedLanguageOnce = true;\n }\n};","import React from 'react';\nimport { TranslationParserError } from './TranslationParserError.js';\nimport { tokenize } from './tokenizer.js';\nimport { decodeHtmlEntities } from './htmlEntityDecoder.js';\nconst renderDeclarationNode = (declaration, children, childDeclarations) => {\n const {\n type,\n props = {}\n } = declaration;\n if (props.children && Array.isArray(props.children) && childDeclarations) {\n const {\n children: _childrenToRemove,\n ...propsWithoutChildren\n } = props;\n return React.createElement(type, propsWithoutChildren, ...children);\n }\n if (children.length === 0) {\n return React.createElement(type, props);\n }\n if (children.length === 1) {\n return React.createElement(type, props, children[0]);\n }\n return React.createElement(type, props, ...children);\n};\nexport const renderTranslation = (translation, declarations = []) => {\n if (!translation) {\n return [];\n }\n const tokens = tokenize(translation);\n const result = [];\n const stack = [];\n const literalTagNumbers = new Set();\n const getCurrentDeclarations = () => {\n if (stack.length === 0) {\n return declarations;\n }\n const parentFrame = stack[stack.length - 1];\n if (parentFrame.declaration.props?.children && Array.isArray(parentFrame.declaration.props.children)) {\n return parentFrame.declaration.props.children;\n }\n return parentFrame.declarations;\n };\n tokens.forEach(token => {\n switch (token.type) {\n case 'Text':\n {\n const decoded = decodeHtmlEntities(token.value);\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(decoded);\n }\n break;\n case 'TagOpen':\n {\n const {\n tagNumber\n } = token;\n const currentDeclarations = getCurrentDeclarations();\n const declaration = currentDeclarations[tagNumber];\n if (!declaration) {\n literalTagNumbers.add(tagNumber);\n const literalText = `<${tagNumber}>`;\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(literalText);\n break;\n }\n stack.push({\n tagNumber,\n children: [],\n position: token.position,\n declaration,\n declarations: currentDeclarations\n });\n }\n break;\n case 'TagClose':\n {\n const {\n tagNumber\n } = token;\n if (literalTagNumbers.has(tagNumber)) {\n const literalText = `</${tagNumber}>`;\n const literalTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n literalTargetArray.push(literalText);\n literalTagNumbers.delete(tagNumber);\n break;\n }\n if (stack.length === 0) {\n throw new TranslationParserError(`Unexpected closing tag </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const frame = stack.pop();\n if (frame.tagNumber !== tagNumber) {\n throw new TranslationParserError(`Mismatched tags: expected </${frame.tagNumber}> but got </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const element = renderDeclarationNode(frame.declaration, frame.children, frame.declarations);\n const elementTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n elementTargetArray.push(element);\n }\n break;\n }\n });\n if (stack.length > 0) {\n const unclosed = stack[stack.length - 1];\n throw new TranslationParserError(`Unclosed tag <${unclosed.tagNumber}> at position ${unclosed.position}`, unclosed.position, translation);\n }\n return result;\n};","import React from 'react';\nimport { warn, warnOnce, isString } from './utils.js';\nimport { getI18n } from './i18nInstance.js';\nimport { renderTranslation } from './IcuTransUtils/index.js';\nexport function IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', `IcuTrans: You need to pass in an i18next instance using i18nextReactModule`, {\n i18nKey\n });\n return React.createElement(React.Fragment, {}, defaultTranslation);\n }\n const t = tFromProps || i18n.t?.bind(i18n) || (k => k);\n let namespaces = ns || t.ns || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n let mergedValues = values;\n if (i18n.options?.interpolation?.defaultVariables) {\n mergedValues = values && Object.keys(values).length > 0 ? {\n ...values,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n }\n const translation = t(i18nKey, {\n defaultValue: defaultTranslation,\n ...mergedValues,\n ns: namespaces\n });\n try {\n const rendered = renderTranslation(translation, content);\n return React.createElement(React.Fragment, {}, ...rendered);\n } catch (error) {\n warn(i18n, 'ICU_TRANS_RENDER_ERROR', `IcuTrans component error for key \"${i18nKey}\": ${error.message}`, {\n i18nKey,\n error\n });\n return React.createElement(React.Fragment, {}, translation);\n }\n}\nIcuTransWithoutContext.displayName = 'IcuTransWithoutContext';","import { createElement } from 'react';\nimport { useSSR } from './useSSR.js';\nimport { composeInitialProps } from './context.js';\nimport { getDisplayName } from './utils.js';\nexport const withSSR = () => function Extend(WrappedComponent) {\n function I18nextWithSSR({\n initialI18nStore,\n initialLanguage,\n ...rest\n }) {\n useSSR(initialI18nStore, initialLanguage);\n return createElement(WrappedComponent, {\n ...rest\n });\n }\n I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);\n I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;\n I18nextWithSSR.WrappedComponent = WrappedComponent;\n return I18nextWithSSR;\n};","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n if (!i18n) {\n console.warn('react-i18next:: getInitialProps: You will need to pass in an i18next instance by using initReactI18next');\n return {};\n }\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};","import { Fragment, isValidElement, cloneElement, createElement, Children } from 'react';\nimport { keyFromSelector } from 'i18next';\nimport HTML from 'html-parse-stringify';\nimport { isObject, isString, warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\nimport { unescape } from './unescape.js';\nconst hasChildren = (node, checkLength) => {\n if (!node) return false;\n const base = node.props?.children ?? node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n};\nconst getChildren = node => {\n if (!node) return [];\n const children = node.props?.children ?? node.children;\n return node.props?.i18nIsDynamicList ? getAsArray(children) : children;\n};\nconst hasValidReactChildren = children => Array.isArray(children) && children.every(isValidElement);\nconst getAsArray = data => Array.isArray(data) ? data : [data];\nconst mergeProps = (source, target) => {\n const newTarget = {\n ...target\n };\n newTarget.props = {\n ...target.props,\n ...source.props\n };\n return newTarget;\n};\nconst getValuesFromChildren = children => {\n const values = {};\n if (!children) return values;\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(values, child);\n });\n };\n getData(children);\n return values;\n};\nexport const nodesToString = (children, i18nOptions, i18n, i18nKey) => {\n if (!children) return '';\n let stringNode = '';\n const childrenArray = getAsArray(children);\n const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];\n childrenArray.forEach((child, childIndex) => {\n if (isString(child)) {\n stringNode += `${child}`;\n return;\n }\n if (isValidElement(child)) {\n const {\n props,\n type\n } = child;\n const childPropsCount = Object.keys(props).length;\n const shouldKeepChild = keepArray.indexOf(type) > -1;\n const childChildren = props.children;\n if (!childChildren && shouldKeepChild && !childPropsCount) {\n stringNode += `<${type}/>`;\n return;\n }\n if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {\n stringNode += `<${childIndex}></${childIndex}>`;\n return;\n }\n if (shouldKeepChild && childPropsCount <= 1) {\n const cnt = isString(childChildren) ? childChildren : nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${type}>${cnt}</${type}>`;\n return;\n }\n const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${childIndex}>${content}</${childIndex}>`;\n return;\n }\n if (child === null) {\n warn(i18n, 'TRANS_NULL_VALUE', `Passed in a null value as child`, {\n i18nKey\n });\n return;\n }\n if (isObject(child)) {\n const {\n format,\n ...clone\n } = child;\n const keys = Object.keys(clone);\n if (keys.length === 1) {\n const value = format ? `${keys[0]}, ${format}` : keys[0];\n stringNode += `{{${value}}}`;\n return;\n }\n warn(i18n, 'TRANS_INVALID_OBJ', `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {\n i18nKey,\n child\n });\n return;\n }\n warn(i18n, 'TRANS_INVALID_VAR', `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {\n i18nKey,\n child\n });\n });\n return stringNode;\n};\nconst escapeLiteralLessThan = (str, keepArray = [], knownComponentsMap = {}) => {\n if (!str) return str;\n const knownNames = Object.keys(knownComponentsMap);\n const allValidNames = [...keepArray, ...knownNames];\n let result = '';\n let i = 0;\n while (i < str.length) {\n if (str[i] === '<') {\n let isValidTag = false;\n const closingMatch = str.slice(i).match(/^<\\/(\\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);\n if (closingMatch) {\n const tagName = closingMatch[1];\n if (/^\\d+$/.test(tagName) || allValidNames.includes(tagName)) {\n isValidTag = true;\n result += closingMatch[0];\n i += closingMatch[0].length;\n }\n }\n if (!isValidTag) {\n const openingMatch = str.slice(i).match(/^<(\\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\\s+[\\w-]+(?:=(?:\"[^\"]*\"|'[^']*'|[^\\s>]+))?)*\\s*(\\/)?>/);\n if (openingMatch) {\n const tagName = openingMatch[1];\n if (/^\\d+$/.test(tagName) || allValidNames.includes(tagName)) {\n isValidTag = true;\n result += openingMatch[0];\n i += openingMatch[0].length;\n }\n }\n }\n if (!isValidTag) {\n result += '&lt;';\n i += 1;\n }\n } else {\n result += str[i];\n i += 1;\n }\n }\n return result;\n};\nconst renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {\n if (targetString === '') return [];\n const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map(keep => `<${keep}`).join('|')).test(targetString);\n if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];\n const data = knownComponentsMap ?? {};\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);\n });\n };\n getData(children);\n const escapedString = escapeLiteralLessThan(targetString, keepArray, data);\n const ast = HTML.parse(`<0>${escapedString}</0>`);\n const opts = {\n ...data,\n ...combinedTOpts\n };\n const renderInner = (child, node, rootReactNode) => {\n const childs = getChildren(child);\n const mappedChildren = mapAST(childs, node.children, rootReactNode);\n return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;\n };\n const pushTranslatedJSX = (child, inner, mem, i, isVoid) => {\n if (child.dummy) {\n child.children = inner;\n mem.push(cloneElement(child, {\n key: i\n }, isVoid ? undefined : inner));\n } else {\n mem.push(...Children.map([child], c => {\n const INTERNAL_DYNAMIC_MARKER = 'data-i18n-is-dynamic-list';\n const override = {\n key: i,\n [INTERNAL_DYNAMIC_MARKER]: undefined\n };\n if (c && c.props) {\n Object.keys(c.props).forEach(k => {\n if (k === 'ref' || k === 'children' || k === 'i18nIsDynamicList' || k === INTERNAL_DYNAMIC_MARKER) return;\n override[k] = c.props[k];\n });\n }\n return cloneElement(c, override, isVoid ? null : inner);\n }));\n }\n };\n const mapAST = (reactNode, astNode, rootReactNode) => {\n const reactNodes = getAsArray(reactNode);\n const astNodes = getAsArray(astNode);\n return astNodes.reduce((mem, node, i) => {\n const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n if (node.type === 'tag') {\n let tmp = reactNodes[parseInt(node.name, 10)];\n if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];\n if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];\n if (!tmp) tmp = {};\n const props = {\n ...node.attrs\n };\n if (shouldUnescape) {\n Object.keys(props).forEach(p => {\n const val = props[p];\n if (isString(val)) {\n props[p] = unescape(val);\n }\n });\n }\n const child = Object.keys(props).length !== 0 ? mergeProps({\n props\n }, tmp) : tmp;\n const isElement = isValidElement(child);\n const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;\n const isKnownComponent = isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);\n if (isString(child)) {\n const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n mem.push(value);\n } else if (hasChildren(child) || isValidTranslationWithChildren) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (isEmptyTransWithHTML) {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (Number.isNaN(parseFloat(node.name))) {\n if (isKnownComponent) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i, node.voidElement);\n } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n if (node.voidElement) {\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }));\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }, inner));\n }\n } else if (node.voidElement) {\n mem.push(`<${node.name} />`);\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(`<${node.name}>${inner}</${node.name}>`);\n }\n } else if (isObject(child) && !isElement) {\n const content = node.children[0] ? translationContent : null;\n if (content) mem.push(content);\n } else {\n pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);\n }\n } else if (node.type === 'text') {\n const wrapTextNodes = i18nOptions.transWrapTextNodes;\n const unescapeFn = typeof i18nOptions.unescape === 'function' ? i18nOptions.unescape : getDefaults().unescape;\n const content = shouldUnescape ? unescapeFn(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n if (wrapTextNodes) {\n mem.push(createElement(wrapTextNodes, {\n key: `${node.name}-${i}`\n }, content));\n } else {\n mem.push(content);\n }\n }\n return mem;\n }, []);\n };\n const result = mapAST([{\n dummy: true,\n children: children || []\n }], ast, getAsArray(children || []));\n return getChildren(result[0]);\n};\nconst fixComponentProps = (component, index, translation) => {\n const componentKey = component.key || index;\n const comp = cloneElement(component, {\n key: componentKey\n });\n if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {\n return comp;\n }\n function Componentized() {\n return createElement(Fragment, null, comp);\n }\n return createElement(Componentized, {\n key: componentKey\n });\n};\nconst generateArrayComponents = (components, translation) => components.map((c, index) => fixComponentProps(c, index, translation));\nconst generateObjectComponents = (components, translation) => {\n const componentMap = {};\n Object.keys(components).forEach(c => {\n Object.assign(componentMap, {\n [c]: fixComponentProps(components[c], c, translation)\n });\n });\n return componentMap;\n};\nconst generateComponents = (components, translation, i18n, i18nKey) => {\n if (!components) return null;\n if (Array.isArray(components)) {\n return generateArrayComponents(components, translation);\n }\n if (isObject(components)) {\n return generateObjectComponents(components, translation);\n }\n warnOnce(i18n, 'TRANS_INVALID_COMPONENTS', `<Trans /> \"components\" prop expects an object or array`, {\n i18nKey\n });\n return null;\n};\nconst isComponentsMap = object => {\n if (!isObject(object)) return false;\n if (Array.isArray(object)) return false;\n return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);\n};\nexport function Trans({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n}) {\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', `Trans: You need to pass in an i18next instance using i18nextReactModule`, {\n i18nKey\n });\n return children;\n }\n const t = tFromProps || i18n.t.bind(i18n) || (k => k);\n const reactI18nextOptions = {\n ...getDefaults(),\n ...i18n.options?.react\n };\n let namespaces = ns || t.ns || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n const {\n transDefaultProps\n } = reactI18nextOptions;\n const mergedTOptions = transDefaultProps?.tOptions ? {\n ...transDefaultProps.tOptions,\n ...tOptions\n } : tOptions;\n const mergedShouldUnescape = shouldUnescape ?? transDefaultProps?.shouldUnescape;\n const mergedValues = transDefaultProps?.values ? {\n ...transDefaultProps.values,\n ...values\n } : values;\n const mergedComponents = transDefaultProps?.components ? {\n ...transDefaultProps.components,\n ...components\n } : components;\n const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);\n const defaultValue = defaults || mergedTOptions?.defaultValue || nodeAsString || reactI18nextOptions.transEmptyNodeValue || (typeof i18nKey === 'function' ? keyFromSelector(i18nKey) : i18nKey);\n const {\n hashTransKey\n } = reactI18nextOptions;\n const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);\n if (i18n.options?.interpolation?.defaultVariables) {\n values = mergedValues && Object.keys(mergedValues).length > 0 ? {\n ...mergedValues,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n } else {\n values = mergedValues;\n }\n const valuesFromChildren = getValuesFromChildren(children);\n if (valuesFromChildren && typeof valuesFromChildren.count === 'number' && count === undefined) {\n count = valuesFromChildren.count;\n }\n const interpolationOverride = values || count !== undefined && !i18n.options?.interpolation?.alwaysFormat || !children ? mergedTOptions.interpolation : {\n interpolation: {\n ...mergedTOptions.interpolation,\n prefix: '#$?',\n suffix: '?$#'\n }\n };\n const combinedTOpts = {\n ...mergedTOptions,\n context: context || mergedTOptions.context,\n count,\n ...values,\n ...interpolationOverride,\n defaultValue,\n ns: namespaces\n };\n let translation = key ? t(key, combinedTOpts) : defaultValue;\n if (translation === key && defaultValue) translation = defaultValue;\n const generatedComponents = generateComponents(mergedComponents, translation, i18n, i18nKey);\n let indexedChildren = generatedComponents || children;\n let componentsMap = null;\n if (isComponentsMap(generatedComponents)) {\n componentsMap = generatedComponents;\n indexedChildren = children;\n }\n const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, mergedShouldUnescape);\n const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;\n return useAsParent ? createElement(useAsParent, additionalProps, content) : content;\n}","export { Trans } from './Trans.js';\nexport { Trans as TransWithoutContext } from './TransWithoutContext.js';\nexport { IcuTrans } from './IcuTrans.js';\nexport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nexport { useTranslation } from './useTranslation.js';\nexport { withTranslation } from './withTranslation.js';\nexport { Translation } from './Translation.js';\nexport { I18nextProvider } from './I18nextProvider.js';\nexport { withSSR } from './withSSR.js';\nexport { useSSR } from './useSSR.js';\nexport { initReactI18next } from './initReactI18next.js';\nexport { setDefaults, getDefaults } from './defaults.js';\nexport { setI18n, getI18n } from './i18nInstance.js';\nexport { nodesToString } from './Trans.js';\nexport { I18nContext, composeInitialProps, getInitialProps } from './context.js';\nexport const date = () => '';\nexport const time = () => '';\nexport const number = () => '';\nexport const select = () => '';\nexport const plural = () => '';\nexport const selectOrdinal = () => '';","// This file must be bundled in the app's client layer, it shouldn't be directly\n// imported by the server.\n\nexport { callServer } from 'next/dist/client/app-call-server'\nexport { findSourceMapURL } from 'next/dist/client/app-find-source-map-url'\n\n// A noop wrapper to let the Flight client create the server reference.\n// See also: https://github.com/facebook/react/pull/26632\n// eslint-disable-next-line import/no-extraneous-dependencies\nexport { createServerReference } from 'react-server-dom-webpack/client'\n","export type UUID = string;\n\n/**\n * Base model providing identity and timestamp fields for all domain entities\n */\nexport type BaseEntity = {\n /**\n * Unique identifier for this entity (UUID v4 format)\n */\n id: UUID;\n /**\n * Timestamp when this entity was created (read-only, set by system)\n */\n createdAt: any;\n /**\n * Timestamp when this entity was last updated (read-only, set by system)\n */\n updatedAt: any;\n};\n\n/**\n * Entity that supports soft deletion with a deletedAt timestamp\n */\nexport type SoftDeletableEntity = BaseEntity & {\n /**\n * Timestamp when this entity was soft-deleted (null if not deleted)\n */\n deletedAt?: any;\n};\n\n/**\n * Entity with audit trail tracking who created and modified it\n */\nexport type AuditableEntity = BaseEntity & {\n /**\n * UUID of the user who created this entity (null for system-created)\n */\n createdBy?: UUID;\n /**\n * UUID of the user who last updated this entity (null for system-updated)\n */\n updatedBy?: UUID;\n};\n\n/**\n * Request model for conversational AI interactions\n */\nexport type AskRequest = {\n /**\n * The natural language query to be processed by the AI agent\n */\n query: string;\n};\n\n/**\n * Response model for conversational AI interactions\n */\nexport type AskResponse = {\n /**\n * The AI-generated response content (typically Markdown-formatted)\n */\n content: string;\n /**\n * Whether the operation completed successfully\n */\n success: boolean;\n};\n\n/**\n * Acceptance criterion for validating completion of an action item\n */\nexport type AcceptanceCriteria = BaseEntity & {\n /**\n * Description of what must be true for this criterion to be satisfied\n */\n description: string;\n /**\n * Whether this criterion has been verified as complete\n */\n verified: boolean;\n};\n\n/**\n * Granular, atomic step within a Task representing a single unit of work\n */\nexport type ActionItem = BaseEntity & {\n /**\n * Short name describing the action (verb-noun pattern recommended)\n */\n name: string;\n /**\n * Detailed description of the work to be performed\n */\n description: string;\n /**\n * Git branch name where this action item's work is performed\n */\n branch: string;\n /**\n * Action items that must complete before this one can start\n */\n dependsOn: ActionItem[];\n /**\n * Acceptance criteria for verifying completion of this action item\n */\n acceptanceCriteria: AcceptanceCriteria[];\n};\nexport enum ArtifactCategory {\n PRD = 'PRD',\n API = 'API',\n Design = 'Design',\n Other = 'Other',\n}\nexport enum ArtifactFormat {\n Markdown = 'md',\n Text = 'txt',\n Yaml = 'yaml',\n Other = 'Other',\n}\nexport enum ArtifactState {\n Todo = 'Todo',\n Elaborating = 'Elaborating',\n Done = 'Done',\n}\n\n/**\n * Generated document or file attached to a Feature\n */\nexport type Artifact = BaseEntity & {\n /**\n * Human-readable name identifying this artifact\n */\n name: string;\n /**\n * Type description providing additional context (e.g., 'documentation', 'api-spec')\n */\n type: string;\n /**\n * Category classification (PRD, API, Design, or Other)\n */\n category: ArtifactCategory;\n /**\n * File format for the artifact content\n */\n format: ArtifactFormat;\n /**\n * Brief summary of the artifact's content and purpose\n */\n summary: string;\n /**\n * Relative file path where the artifact is stored\n */\n path: string;\n /**\n * Current state in the artifact generation lifecycle\n */\n state: ArtifactState;\n};\nexport enum MessageRole {\n Assistant = 'assistant',\n User = 'user',\n}\n\n/**\n * A message in a conversation thread between user and AI assistant\n */\nexport type Message = BaseEntity & {\n /**\n * Role of the message sender (User or Assistant)\n */\n role: MessageRole;\n /**\n * The text content of the message\n */\n content: string;\n /**\n * Optional choices presented to the user for selection\n */\n options?: string[];\n /**\n * Optional user's freeform text answer\n */\n answer?: string;\n /**\n * Optional index of the selected option from the options array (0-based)\n */\n selectedOption?: number;\n};\nexport enum RequirementType {\n Functional = 'Functional',\n NonFunctional = 'NonFunctional',\n}\nexport enum ResearchState {\n NotStarted = 'NotStarted',\n Running = 'Running',\n Finished = 'Finished',\n}\n\n/**\n * A research topic exploration for gathering technical information\n */\nexport type Research = BaseEntity & {\n /**\n * The topic or subject being researched\n */\n topic: string;\n /**\n * Current state of the research activity (NotStarted, Running, Finished)\n */\n state: ResearchState;\n /**\n * Summary of research findings and recommendations\n */\n summary: string;\n /**\n * Artifacts produced during the research activity\n */\n artifacts: Artifact[];\n};\n\n/**\n * A user or inferred requirement attached to a feature\n */\nexport type Requirement = BaseEntity & {\n /**\n * URL-friendly short identifier for the requirement\n */\n slug: string;\n /**\n * The original user query that generated this requirement\n */\n userQuery: string;\n /**\n * Classification type of the requirement (Functional or NonFunctional)\n */\n type: RequirementType;\n /**\n * Research activities conducted to clarify or validate this requirement\n */\n researches: Research[];\n};\n\n/**\n * AI model configuration for the SDLC agent\n */\nexport type ModelConfiguration = {\n /**\n * Default model identifier for all agents\n */\n default: string;\n};\nexport enum Language {\n English = 'en',\n Ukrainian = 'uk',\n Russian = 'ru',\n Portuguese = 'pt',\n Spanish = 'es',\n Arabic = 'ar',\n Hebrew = 'he',\n French = 'fr',\n German = 'de',\n}\n\n/**\n * User profile information\n */\nexport type UserProfile = {\n /**\n * User's display name (optional)\n */\n name?: string;\n /**\n * User's email address (optional)\n */\n email?: string;\n /**\n * GitHub username (optional, for PR attribution)\n */\n githubUsername?: string;\n /**\n * Preferred UI language (default: English)\n */\n preferredLanguage?: Language;\n};\nexport enum EditorType {\n VsCode = 'vscode',\n Cursor = 'cursor',\n Windsurf = 'windsurf',\n Zed = 'zed',\n Antigravity = 'antigravity',\n}\nexport enum TerminalType {\n System = 'system',\n Warp = 'warp',\n ITerm2 = 'iterm2',\n Alacritty = 'alacritty',\n Kitty = 'kitty',\n}\n\n/**\n * Environment and tooling preferences\n */\nexport type EnvironmentConfig = {\n /**\n * Preferred code editor\n */\n defaultEditor: EditorType;\n /**\n * Preferred shell\n */\n shellPreference: string;\n /**\n * Preferred terminal emulator\n */\n terminalPreference: TerminalType;\n /**\n * Default directory for cloning GitHub repositories (e.g. ~/repos)\n */\n defaultCloneDirectory?: string;\n};\n\n/**\n * System configuration\n */\nexport type SystemConfig = {\n /**\n * CLI auto-update preference\n */\n autoUpdate: boolean;\n /**\n * Log level for CLI output\n */\n logLevel: string;\n};\n\n/**\n * Default approval gate settings for new features\n */\nexport type ApprovalGateDefaults = {\n /**\n * Auto-approve requirements phase (default: false)\n */\n allowPrd: boolean;\n /**\n * Auto-approve planning phase (default: false)\n */\n allowPlan: boolean;\n /**\n * Auto-approve merge phase (default: false)\n */\n allowMerge: boolean;\n /**\n * Push branch to remote on implementation complete (default: false)\n */\n pushOnImplementationComplete: boolean;\n};\n\n/**\n * Per-stage timeout overrides for the feature agent workflow (all values in milliseconds)\n */\nexport type StageTimeouts = {\n /**\n * Timeout for the analyze stage (default: 600000)\n */\n analyzeMs?: number;\n /**\n * Timeout for the requirements stage (default: 600000)\n */\n requirementsMs?: number;\n /**\n * Timeout for the research stage (default: 600000)\n */\n researchMs?: number;\n /**\n * Timeout for the plan stage (default: 600000)\n */\n planMs?: number;\n /**\n * Timeout for the implement stage (default: 1800000)\n */\n implementMs?: number;\n /**\n * Timeout for the fast-implement stage (default: 1800000)\n */\n fastImplementMs?: number;\n /**\n * Timeout for the merge stage (default: 1800000)\n */\n mergeMs?: number;\n};\n\n/**\n * Timeout overrides for the analyze-repository agent (all values in milliseconds)\n */\nexport type AnalyzeRepoTimeouts = {\n /**\n * Timeout for the repository analysis stage (default: 600000)\n */\n analyzeMs?: number;\n};\nexport enum SkillSourceType {\n Local = 'local',\n Remote = 'remote',\n}\n\n/**\n * A skill source for injection into feature worktrees\n */\nexport type SkillSource = {\n /**\n * Unique skill directory name (e.g. 'architecture-reviewer')\n */\n name: string;\n /**\n * How this skill is provisioned (local copy or remote install)\n */\n type: SkillSourceType;\n /**\n * Source path (local) or npm package/URL (remote)\n */\n source: string;\n /**\n * Remote skill name passed to --skill flag (remote type only)\n */\n remoteSkillName?: string;\n};\n\n/**\n * Skill injection configuration for feature worktrees\n */\nexport type SkillInjectionConfig = {\n /**\n * Whether skill injection is enabled (default: false, opt-in)\n */\n enabled: boolean;\n /**\n * List of skills to inject into feature worktrees\n */\n skills: SkillSource[];\n};\n\n/**\n * Global workflow configuration defaults\n */\nexport type WorkflowConfig = {\n /**\n * Create PR on implementation complete (default: false)\n */\n openPrOnImplementationComplete: boolean;\n /**\n * Default approval gate preferences for new features\n */\n approvalGateDefaults: ApprovalGateDefaults;\n /**\n * Enable CI watch/fix loop after push (default: true)\n */\n ciWatchEnabled: boolean;\n /**\n * Maximum number of CI fix/push/watch iterations before giving up (default: 3)\n */\n ciMaxFixAttempts?: number;\n /**\n * Timeout in milliseconds for watching a CI run (default: 600000 = 10 minutes)\n */\n ciWatchTimeoutMs?: number;\n /**\n * Maximum characters of CI failure logs to pass to the executor (default: 50000)\n */\n ciLogMaxChars?: number;\n /**\n * Poll interval in seconds for gh run watch (default: 30)\n */\n ciWatchPollIntervalSeconds?: number;\n /**\n * Per-stage timeout overrides for the feature agent (default: 600000 = 10 minutes per stage)\n */\n stageTimeouts?: StageTimeouts;\n /**\n * Timeout overrides for the analyze-repository agent (default: 600000 = 10 minutes)\n */\n analyzeRepoTimeouts?: AnalyzeRepoTimeouts;\n /**\n * Enable evidence collection after implementation (default: false)\n */\n enableEvidence: boolean;\n /**\n * Commit evidence to PR (default: false, requires enableEvidence)\n */\n commitEvidence: boolean;\n /**\n * Maximum number of evidence collection retry attempts when validation fails (default: 3)\n */\n evidenceRetries?: number;\n /**\n * Hide CI status badges from UI (default: true)\n */\n hideCiStatus?: boolean;\n /**\n * Default new features to fast mode (default: true)\n */\n defaultFastMode: boolean;\n /**\n * Minutes after completion before auto-archiving a feature (default: 10, 0 = disabled)\n */\n autoArchiveDelayMinutes?: number;\n /**\n * Skill injection configuration (optional, disabled by default)\n */\n skillInjection?: SkillInjectionConfig;\n};\nexport enum AgentType {\n ClaudeCode = 'claude-code',\n CodexCli = 'codex-cli',\n CopilotCli = 'copilot-cli',\n GeminiCli = 'gemini-cli',\n Aider = 'aider',\n Continue = 'continue',\n Cursor = 'cursor',\n Dev = 'dev',\n}\nexport enum AgentAuthMethod {\n Session = 'session',\n Token = 'token',\n}\n\n/**\n * AI coding agent configuration\n */\nexport type AgentConfig = {\n /**\n * Selected AI coding agent\n */\n type: AgentType;\n /**\n * Authentication method for the agent\n */\n authMethod: AgentAuthMethod;\n /**\n * API token for token-based auth (optional)\n */\n token?: string;\n};\n\n/**\n * Notification channel enable/disable configuration\n */\nexport type NotificationChannelConfig = {\n /**\n * Whether this notification channel is enabled\n */\n enabled: boolean;\n};\n\n/**\n * Notification event type filters\n */\nexport type NotificationEventConfig = {\n /**\n * Notify when agent starts running\n */\n agentStarted: boolean;\n /**\n * Notify when agent completes a workflow phase\n */\n phaseCompleted: boolean;\n /**\n * Notify when agent is waiting for human approval\n */\n waitingApproval: boolean;\n /**\n * Notify when agent completes successfully\n */\n agentCompleted: boolean;\n /**\n * Notify when agent execution fails\n */\n agentFailed: boolean;\n /**\n * Notify when a pull request is merged on GitHub\n */\n prMerged: boolean;\n /**\n * Notify when a pull request is closed without merging on GitHub\n */\n prClosed: boolean;\n /**\n * Notify when pull request CI checks pass\n */\n prChecksPassed: boolean;\n /**\n * Notify when pull request CI checks fail\n */\n prChecksFailed: boolean;\n /**\n * Notify when pull request has merge conflicts\n */\n prBlocked: boolean;\n /**\n * Notify when feature is ready for merge review\n */\n mergeReviewReady: boolean;\n};\n\n/**\n * Notification preferences for agent lifecycle events\n */\nexport type NotificationPreferences = {\n /**\n * In-app toast notification channel (Sonner)\n */\n inApp: NotificationChannelConfig;\n /**\n * Browser push notification channel (Web Notifications API)\n */\n browser: NotificationChannelConfig;\n /**\n * Desktop OS notification channel (node-notifier)\n */\n desktop: NotificationChannelConfig;\n /**\n * Which event types trigger notifications\n */\n events: NotificationEventConfig;\n};\n\n/**\n * Feature flag toggles for runtime feature control\n */\nexport type FeatureFlags = {\n /**\n * Enable Skills navigation and functionality in the web UI\n */\n skills: boolean;\n /**\n * Enable environment deployment features in the web UI\n */\n envDeploy: boolean;\n /**\n * Enable debug UI elements and verbose client-side logging\n */\n debug: boolean;\n /**\n * Enable GitHub repository import in the web UI\n */\n githubImport: boolean;\n /**\n * Enable adopt branch feature to import existing branches as tracked features\n */\n adoptBranch: boolean;\n /**\n * Enable git rebase-on-main and sync-main operations in the web UI\n */\n gitRebaseSync: boolean;\n /**\n * Use the built-in React file manager instead of the native OS folder picker\n */\n reactFileManager: boolean;\n /**\n * Enable the Inventory page showing all repositories and features\n */\n inventory: boolean;\n};\n\n/**\n * Interactive agent chat tab configuration\n */\nexport type InteractiveAgentConfig = {\n /**\n * Whether the interactive agent Chat tab is enabled (default: true)\n */\n enabled: boolean;\n /**\n * Idle timeout in minutes before auto-stopping the agent (default: 15, range: 1-120)\n */\n autoTimeoutMinutes: number;\n /**\n * Maximum number of concurrent active interactive sessions (default: 3)\n */\n maxConcurrentSessions: number;\n};\n\n/**\n * FAB (floating action button) layout configuration\n */\nexport type FabLayoutConfig = {\n /**\n * Swap Create and Chat FAB positions (default: false)\n */\n swapPosition: boolean;\n};\n\n/**\n * Global Shep platform settings (singleton)\n */\nexport type Settings = BaseEntity & {\n /**\n * AI model configuration for different agents\n */\n models: ModelConfiguration;\n /**\n * User profile information\n */\n user: UserProfile;\n /**\n * Environment and tooling preferences\n */\n environment: EnvironmentConfig;\n /**\n * System-level parameters\n */\n system: SystemConfig;\n /**\n * AI coding agent selection and authentication\n */\n agent: AgentConfig;\n /**\n * Notification preferences for agent lifecycle events\n */\n notifications: NotificationPreferences;\n /**\n * Global workflow configuration defaults\n */\n workflow: WorkflowConfig;\n /**\n * Feature flag toggles for runtime feature control\n */\n featureFlags?: FeatureFlags;\n /**\n * Whether first-run onboarding has been completed (default: false)\n */\n onboardingComplete: boolean;\n /**\n * Interactive agent chat configuration (optional, defaults applied at runtime)\n */\n interactiveAgent?: InteractiveAgentConfig;\n /**\n * FAB layout configuration (optional, defaults applied at runtime)\n */\n fabLayout?: FabLayoutConfig;\n};\nexport enum TaskState {\n Todo = 'Todo',\n WIP = 'Work in Progress',\n Done = 'Done',\n Review = 'Review',\n}\n\n/**\n * A discrete unit of work within an implementation plan\n */\nexport type Task = BaseEntity & {\n /**\n * Optional human-readable title for the task\n */\n title?: string;\n /**\n * Optional detailed description of what the task entails\n */\n description?: string;\n /**\n * Tasks that must be completed before this task can begin\n */\n dependsOn: Task[];\n /**\n * Granular action items that comprise this task\n */\n actionItems: ActionItem[];\n /**\n * The base branch from which this task's working branch was created\n */\n baseBranch: string;\n /**\n * Current state of task execution (Todo, WIP, Review, Done)\n */\n state: TaskState;\n /**\n * Git branch where work for this task is performed\n */\n branch: string;\n};\n\n/**\n * A significant event in the feature's timeline tracking user interactions and milestones\n */\nexport type TimelineEvent = BaseEntity & {\n /**\n * The user query or action that triggered this timeline event\n */\n userQuery: string;\n /**\n * Timestamp when this event occurred (read-only, set by system)\n */\n timestamp: any;\n};\nexport enum PlanState {\n Requirements = 'Requirements',\n ClarificationRequired = 'ClarificationRequired',\n Ready = 'Ready',\n}\n\n/**\n * Individual task representation within a Gantt chart visualization\n */\nexport type GanttTask = {\n /**\n * Unique identifier for the Gantt task\n */\n id: UUID;\n /**\n * Display name of the task shown in the Gantt chart\n */\n name: string;\n /**\n * Scheduled start time for the task\n */\n start: any;\n /**\n * Scheduled end time for the task\n */\n end: any;\n /**\n * IDs of tasks that this task depends on (must complete before this task can start)\n */\n dependencies: UUID[];\n /**\n * Completion progress as a fraction (0.0 = not started, 1.0 = complete)\n */\n progress: number;\n};\n\n/**\n * Container for Gantt chart visualization data including tasks and time bounds\n */\nexport type GanttViewData = {\n /**\n * Collection of tasks to display in the Gantt chart\n */\n tasks: GanttTask[];\n /**\n * Start date of the overall work plan (left boundary of the chart)\n */\n startDate: any;\n /**\n * End date of the overall work plan (right boundary of the chart)\n */\n endDate: any;\n};\n\n/**\n * Implementation plan for a feature containing tasks, artifacts, and requirements\n */\nexport type Plan = BaseEntity & {\n /**\n * High-level overview describing the implementation approach\n */\n overview: string;\n /**\n * User and inferred requirements that this plan addresses\n */\n requirements: Requirement[];\n /**\n * Documents and artifacts to be produced as part of this plan\n */\n artifacts: Artifact[];\n /**\n * Work items (tasks) that comprise this implementation plan\n */\n tasks: Task[];\n /**\n * Current state of the plan execution lifecycle\n */\n state: PlanState;\n /**\n * Optional Gantt chart visualization data for work scheduling\n */\n workPlan?: GanttViewData;\n};\nexport enum SdlcLifecycle {\n Started = 'Started',\n Analyze = 'Analyze',\n Requirements = 'Requirements',\n Research = 'Research',\n Planning = 'Planning',\n Implementation = 'Implementation',\n Review = 'Review',\n Maintain = 'Maintain',\n Blocked = 'Blocked',\n Pending = 'Pending',\n Deleting = 'Deleting',\n AwaitingUpstream = 'AwaitingUpstream',\n Archived = 'Archived',\n}\n\n/**\n * Configuration for human-in-the-loop approval gates\n */\nexport type ApprovalGates = {\n /**\n * Skip human review after requirements phase\n */\n allowPrd: boolean;\n /**\n * Skip human review after plan phase\n */\n allowPlan: boolean;\n /**\n * Skip human review after merge phase\n */\n allowMerge: boolean;\n};\nexport enum PrStatus {\n Open = 'Open',\n Merged = 'Merged',\n Closed = 'Closed',\n}\nexport enum CiStatus {\n Pending = 'Pending',\n Success = 'Success',\n Failure = 'Failure',\n}\n\n/**\n * Record of one CI fix attempt in the watch/fix loop\n */\nexport type CiFixRecord = {\n /**\n * 1-based attempt number\n */\n attempt: number;\n /**\n * ISO timestamp when this attempt started\n */\n startedAt: string;\n /**\n * First 500 chars of failure logs for this attempt\n */\n failureSummary: string;\n /**\n * Outcome of this attempt: fixed, failed, or timeout\n */\n outcome: string;\n};\n\n/**\n * Pull request tracking data for a feature\n */\nexport type PullRequest = {\n /**\n * GitHub PR URL\n */\n url: string;\n /**\n * GitHub PR number\n */\n number: number;\n /**\n * Current PR status\n */\n status: PrStatus;\n /**\n * Final commit SHA after push\n */\n commitHash?: string;\n /**\n * CI pipeline status\n */\n ciStatus?: CiStatus;\n /**\n * Number of CI fix attempts made\n */\n ciFixAttempts?: number;\n /**\n * History of CI fix attempts\n */\n ciFixHistory?: CiFixRecord[];\n /**\n * Whether the PR can be merged (false = merge conflicts)\n */\n mergeable?: boolean;\n /**\n * URL of the PR created on the upstream repo (fork-and-PR flow only)\n */\n upstreamPrUrl?: string;\n /**\n * PR number on the upstream repo\n */\n upstreamPrNumber?: number;\n /**\n * Status of the upstream PR\n */\n upstreamPrStatus?: PrStatus;\n};\n\n/**\n * File attachment metadata for a feature (value object, embedded in Feature)\n */\nexport type Attachment = {\n /**\n * Unique identifier for this attachment (UUID v4)\n */\n id: UUID;\n /**\n * Original filename of the attached file\n */\n name: string;\n /**\n * File size in bytes\n */\n size: bigint;\n /**\n * MIME type of the file (e.g. image/png, application/pdf)\n */\n mimeType: string;\n /**\n * File path relative to the repository root\n */\n path: string;\n /**\n * Timestamp when the attachment was created\n */\n createdAt: any;\n /**\n * Optional user notes or annotations for this attachment\n */\n notes?: string;\n};\n\n/**\n * Central entity tracking a piece of work through the SDLC lifecycle (Aggregate Root)\n */\nexport type Feature = SoftDeletableEntity & {\n /**\n * Human-readable name identifying this feature\n */\n name: string;\n /**\n * The exact user input that initiated this feature, preserved verbatim\n */\n userQuery: string;\n /**\n * URL-friendly identifier derived from name (unique within repository)\n */\n slug: string;\n /**\n * Detailed description explaining the feature's purpose and scope\n */\n description: string;\n /**\n * Absolute file system path to the repository\n */\n repositoryPath: string;\n /**\n * Git branch name where this feature's work is performed\n */\n branch: string;\n /**\n * Current stage in the SDLC lifecycle\n */\n lifecycle: SdlcLifecycle;\n /**\n * Conversation history with the AI assistant\n */\n messages: Message[];\n /**\n * Implementation plan containing tasks, artifacts, and requirements (optional)\n */\n plan?: Plan;\n /**\n * Generated documents and artifacts attached to this feature\n */\n relatedArtifacts: Artifact[];\n /**\n * Associated agent run ID for process tracking (optional)\n */\n agentRunId?: string;\n /**\n * Skills that were injected into this feature's worktree during creation\n */\n injectedSkills?: string[];\n /**\n * Absolute path to the feature spec directory inside the worktree\n */\n specPath?: string;\n /**\n * ID of the Repository entity this feature belongs to\n */\n repositoryId?: UUID;\n /**\n * When true, SDLC phases were skipped and the feature was implemented directly from the prompt\n */\n fast: boolean;\n /**\n * Push branch to remote after implementation (default: false)\n */\n push: boolean;\n /**\n * Create PR after implementation (default: false)\n */\n openPr: boolean;\n /**\n * Fork repo and create PR to upstream at merge time (default: false)\n */\n forkAndPr: boolean;\n /**\n * Commit specs/evidences into the repo (defaults false when forkAndPr is enabled)\n */\n commitSpecs: boolean;\n /**\n * Enable CI watch/fix loop after push (default: true)\n */\n ciWatchEnabled: boolean;\n /**\n * Enable evidence collection after implementation (default: false)\n */\n enableEvidence: boolean;\n /**\n * Inject curated skills into the feature worktree (default: false)\n */\n injectSkills: boolean;\n /**\n * Commit evidence to PR (default: false, requires enableEvidence)\n */\n commitEvidence: boolean;\n /**\n * Approval gates configuration (embedded value object)\n */\n approvalGates: ApprovalGates;\n /**\n * Absolute path to the git worktree for this feature\n */\n worktreePath?: string;\n /**\n * Pull request data (null until PR created)\n */\n pr?: PullRequest;\n /**\n * Parent feature ID for dependency tracking (optional)\n */\n parentId?: UUID;\n /**\n * Lifecycle state prior to archiving, used to restore on unarchive (only set when lifecycle is Archived)\n */\n previousLifecycle?: SdlcLifecycle;\n /**\n * Files attached by the user when creating or messaging this feature\n */\n attachments?: Attachment[];\n};\n\n/**\n * External link with title and URL\n */\nexport type RelatedLink = {\n /**\n * Human-readable title describing the linked resource\n */\n title: string;\n /**\n * URL to the external documentation, reference, or resource\n */\n url: string;\n};\n\n/**\n * Option for resolving an open question\n */\nexport type QuestionOption = {\n /**\n * The option text describing the potential approach or answer\n */\n option: string;\n /**\n * Description explaining this option's benefits and approach\n */\n description: string;\n /**\n * Whether this option was the one ultimately selected\n */\n selected: boolean;\n};\n\n/**\n * Open question with resolution via options or direct answer\n */\nexport type OpenQuestion = {\n /**\n * The question text that needs to be answered\n */\n question: string;\n /**\n * Whether this question has been resolved (false = blocking)\n */\n resolved: boolean;\n /**\n * Structured options for resolving this question (spec.yaml pattern)\n */\n options?: QuestionOption[];\n /**\n * Rationale explaining which option was selected and why\n */\n selectionRationale?: string;\n /**\n * Free-text answer or resolution (research.yaml pattern)\n */\n answer?: string;\n};\n\n/**\n * Base entity for spec artifacts with common metadata fields\n */\nexport type SpecArtifactBase = BaseEntity & {\n /**\n * Artifact title / feature name\n */\n name: string;\n /**\n * Short description of the artifact's purpose\n */\n summary: string;\n /**\n * Raw Markdown body containing the human-written spec content\n */\n content: string;\n /**\n * Key technologies mentioned or evaluated in this artifact\n */\n technologies: string[];\n /**\n * References to other spec IDs (e.g., '008-agent-configuration')\n */\n relatedFeatures: string[];\n /**\n * URLs to external documentation, references, or comparisons\n */\n relatedLinks: RelatedLink[];\n /**\n * Structured open questions for validation gate checks\n */\n openQuestions: OpenQuestion[];\n};\n\n/**\n * Technology or approach decision with rationale\n */\nexport type TechDecision = {\n /**\n * Title or name of the decision being made\n */\n title: string;\n /**\n * The chosen technology, library, or approach\n */\n chosen: string;\n /**\n * Alternative options that were considered but rejected\n */\n rejected: string[];\n /**\n * Rationale explaining why the chosen option was selected\n */\n rationale: string;\n};\n\n/**\n * Rejection feedback entry for iteration tracking\n */\nexport type RejectionFeedbackEntry = {\n /**\n * Iteration number (1-based)\n */\n iteration: number;\n /**\n * User's feedback message explaining what needs to change\n */\n message: string;\n /**\n * Which phase was rejected (e.g. 'requirements', 'plan')\n */\n phase?: string;\n /**\n * When the rejection occurred\n */\n timestamp: any;\n /**\n * File attachment paths included with the rejection feedback\n */\n attachments?: string[];\n};\n\n/**\n * Implementation phase grouping related tasks\n */\nexport type PlanPhase = {\n /**\n * Unique identifier for this phase (e.g., 'phase-1')\n */\n id: string;\n /**\n * Display name of the phase\n */\n name: string;\n /**\n * Description of what this phase accomplishes and why it's ordered this way\n */\n description?: string;\n /**\n * Whether tasks in this phase can be executed in parallel\n */\n parallel: boolean;\n /**\n * Task IDs belonging to this phase (e.g., ['task-1', 'task-2']). Optional — not present in plan.yaml phases.\n */\n taskIds?: string[];\n};\n\n/**\n * Test-Driven Development cycle phases for a task\n */\nexport type TddCycle = {\n /**\n * RED phase: tests to write FIRST (before implementation)\n */\n red: string[];\n /**\n * GREEN phase: minimal implementation to pass tests\n */\n green: string[];\n /**\n * REFACTOR phase: code improvements while keeping tests green\n */\n refactor: string[];\n};\n\n/**\n * Task definition within a spec's task breakdown\n */\nexport type SpecTask = {\n /**\n * Unique identifier for this task (e.g., 'task-1')\n */\n id: string;\n /**\n * ID of the phase this task belongs to (e.g., 'phase-1')\n */\n phaseId: string;\n /**\n * Task title or name\n */\n title: string;\n /**\n * Detailed description of what this task accomplishes\n */\n description: string;\n /**\n * Current state of the task\n */\n state: TaskState;\n /**\n * IDs of other SpecTasks that must complete before this task starts\n */\n dependencies: string[];\n /**\n * List of acceptance criteria that define task completion\n */\n acceptanceCriteria: string[];\n /**\n * TDD cycle definition for this task (if applicable)\n */\n tdd?: TddCycle;\n /**\n * Estimated effort (e.g., '2 hours', '1 day')\n */\n estimatedEffort: string;\n};\n\n/**\n * Feature specification artifact (PRD) defining requirements and scope\n */\nexport type FeatureArtifact = SpecArtifactBase & {\n /**\n * Spec number (e.g., 11 for spec 011)\n */\n number: number;\n /**\n * Git branch name for this feature (e.g., 'feat/011-feature-name')\n */\n branch: string;\n /**\n * One-line description of the feature\n */\n oneLiner: string;\n /**\n * Current phase in the SDLC lifecycle\n */\n phase: SdlcLifecycle;\n /**\n * Size estimate: XS, S, M, L, or XL\n */\n sizeEstimate: string;\n /**\n * Rejection feedback history for PRD iterations (append-only)\n */\n rejectionFeedback?: RejectionFeedbackEntry[];\n};\n\n/**\n * Research artifact documenting technical analysis and decisions\n */\nexport type ResearchArtifact = SpecArtifactBase & {\n /**\n * Structured technology decisions with rationale\n */\n decisions: TechDecision[];\n};\n\n/**\n * Technical implementation plan artifact defining strategy and file changes\n */\nexport type TechnicalPlanArtifact = SpecArtifactBase & {\n /**\n * Structured implementation phases\n */\n phases: PlanPhase[];\n /**\n * New files planned to be created\n */\n filesToCreate: string[];\n /**\n * Existing files planned to be modified\n */\n filesToModify: string[];\n};\n\n/**\n * Task breakdown artifact defining implementation tasks grouped into phases\n */\nexport type TasksArtifact = SpecArtifactBase & {\n /**\n * Structured task list with acceptance criteria and TDD phases\n */\n tasks: SpecTask[];\n /**\n * Overall effort estimate for all tasks combined\n */\n totalEstimate: string;\n};\n\n/**\n * Feature identity metadata in feature.yaml\n */\nexport type FeatureIdentity = {\n /**\n * Feature ID slug (e.g., '012-autonomous-pr-review-loop')\n */\n id: string;\n /**\n * Human-readable feature name\n */\n name: string;\n /**\n * Feature number (e.g., 12)\n */\n number: number;\n /**\n * Git branch for this feature\n */\n branch: string;\n /**\n * Current lifecycle phase (e.g., 'research', 'implementation', 'complete')\n */\n lifecycle: string;\n /**\n * When the feature was created\n */\n createdAt: string;\n};\n\n/**\n * Task completion progress counters\n */\nexport type FeatureStatusProgress = {\n /**\n * Number of completed tasks\n */\n completed: number;\n /**\n * Total number of tasks\n */\n total: number;\n /**\n * Completion percentage (0-100)\n */\n percentage: number;\n};\n\n/**\n * Feature execution status\n */\nexport type FeatureStatusInfo = {\n /**\n * Current SDLC phase\n */\n phase: string;\n /**\n * Phases that have been completed\n */\n completedPhases?: string[];\n /**\n * Task completion progress\n */\n progress: FeatureStatusProgress;\n /**\n * ID of the task currently being executed (null if none)\n */\n currentTask?: string;\n /**\n * ISO timestamp of last status update\n */\n lastUpdated: string;\n /**\n * Agent or skill that last updated the status\n */\n lastUpdatedBy: string;\n};\n\n/**\n * Validation gate results\n */\nexport type FeatureValidation = {\n /**\n * ISO timestamp of last validation run (null if never run)\n */\n lastRun?: string;\n /**\n * Names of validation gates that passed\n */\n gatesPassed: string[];\n /**\n * Descriptions of auto-fixes that were applied\n */\n autoFixesApplied: string[];\n};\n\n/**\n * Task execution tracking state\n */\nexport type FeatureTaskTracking = {\n /**\n * ID of the task currently being worked on (null if none)\n */\n current?: string;\n /**\n * IDs of tasks blocked by unmet dependencies\n */\n blocked: string[];\n /**\n * IDs of tasks that failed execution\n */\n failed: string[];\n};\n\n/**\n * Milestone checkpoint for phase completion\n */\nexport type FeatureCheckpoint = {\n /**\n * Phase name (e.g., 'feature-created', 'research-complete')\n */\n phase: string;\n /**\n * ISO timestamp when this checkpoint was reached\n */\n completedAt: string;\n /**\n * Agent or skill that completed this phase\n */\n completedBy: string;\n};\n\n/**\n * Error tracking for feature execution\n */\nexport type FeatureErrors = {\n /**\n * Current error message (null if no active error)\n */\n current?: string;\n /**\n * History of past error messages\n */\n history: string[];\n};\n\n/**\n * Feature status tracking artifact (feature.yaml)\n */\nexport type FeatureStatus = BaseEntity & {\n /**\n * Feature identity metadata\n */\n feature: FeatureIdentity;\n /**\n * Current execution status and progress\n */\n status: FeatureStatusInfo;\n /**\n * PR URL if a pull request has been created\n */\n prUrl?: string;\n /**\n * ISO timestamp when the feature was merged\n */\n mergedAt?: string;\n /**\n * Validation gate results\n */\n validation: FeatureValidation;\n /**\n * Task execution tracking\n */\n tasks: FeatureTaskTracking;\n /**\n * Milestone checkpoints recording phase completions\n */\n checkpoints: FeatureCheckpoint[];\n /**\n * Error tracking state\n */\n errors: FeatureErrors;\n};\nexport enum ToolType {\n VsCode = 'vscode',\n Cursor = 'cursor',\n Windsurf = 'windsurf',\n Zed = 'zed',\n Antigravity = 'antigravity',\n CursorCli = 'cursor-cli',\n ClaudeCode = 'claude-code',\n}\n\n/**\n * IDE or CLI tool entity with installation tracking\n */\nexport type Tool = BaseEntity & {\n /**\n * Display name of the tool\n */\n toolName: string;\n /**\n * Tool type classification\n */\n type: ToolType;\n /**\n * Installed version number\n */\n installedVersion?: string;\n /**\n * Tool installation timestamp\n */\n installedAt?: any;\n};\nexport enum NotificationEventType {\n AgentStarted = 'agent_started',\n PhaseCompleted = 'phase_completed',\n WaitingApproval = 'waiting_approval',\n AgentCompleted = 'agent_completed',\n AgentFailed = 'agent_failed',\n PrMerged = 'pr_merged',\n PrClosed = 'pr_closed',\n PrChecksPassed = 'pr_checks_passed',\n PrChecksFailed = 'pr_checks_failed',\n PrBlocked = 'pr_blocked',\n MergeReviewReady = 'merge_review_ready',\n}\nexport enum NotificationSeverity {\n Info = 'info',\n Warning = 'warning',\n Success = 'success',\n Error = 'error',\n}\n\n/**\n * Notification event emitted for agent lifecycle transitions\n */\nexport type NotificationEvent = {\n /**\n * Type of lifecycle event\n */\n eventType: NotificationEventType;\n /**\n * ID of the agent run that triggered this event\n */\n agentRunId: string;\n /**\n * ID of the feature that triggered this event\n */\n featureId: string;\n /**\n * Human-readable feature name\n */\n featureName: string;\n /**\n * Phase name (only for phaseCompleted events)\n */\n phaseName?: string;\n /**\n * Human-readable event description\n */\n message: string;\n /**\n * Display severity for notification rendering\n */\n severity: NotificationSeverity;\n /**\n * When the event occurred\n */\n timestamp: any;\n};\n\n/**\n * A code repository tracked by the Shep platform\n */\nexport type Repository = SoftDeletableEntity & {\n /**\n * Human-readable name for the repository (typically the directory name)\n */\n name: string;\n /**\n * Absolute file system path to the repository root (unique)\n */\n path: string;\n /**\n * Remote GitHub URL this repository was cloned from (normalized: lowercase, no .git suffix)\n */\n remoteUrl?: string;\n /**\n * Whether this repository was auto-forked by shep because the user lacked push access\n */\n isFork?: boolean;\n /**\n * Original upstream URL when isFork is true (normalized: lowercase, no .git suffix)\n */\n upstreamUrl?: string;\n};\nexport enum ApplicationStatus {\n Idle = 'Idle',\n Active = 'Active',\n Error = 'Error',\n}\n\n/**\n * A persistent AI-powered application workspace\n */\nexport type Application = SoftDeletableEntity & {\n /**\n * Human-readable application name\n */\n name: string;\n /**\n * URL-friendly identifier (unique)\n */\n slug: string;\n /**\n * Original user prompt / purpose description\n */\n description: string;\n /**\n * Absolute path to the primary repository\n */\n repositoryPath: string;\n /**\n * Additional linked repository/directory paths (JSON array)\n */\n additionalPaths: string[];\n /**\n * Chosen agent executor type override\n */\n agentType?: string;\n /**\n * Chosen model override\n */\n modelOverride?: string;\n /**\n * Current application status\n */\n status: ApplicationStatus;\n};\n\n/**\n * Single installation suggestion for a tool\n */\nexport type InstallationSuggestion = {\n /**\n * Package manager or installation method\n */\n packageManager: string;\n /**\n * Installation command\n */\n command: string;\n /**\n * Official documentation URL\n */\n documentationUrl: string;\n /**\n * Additional notes for installation\n */\n notes?: string;\n};\n\n/**\n * Installation status and suggestions for a tool\n */\nexport type ToolInstallationStatus = {\n /**\n * Current installation status\n */\n status: 'available' | 'missing' | 'error';\n /**\n * Tool name\n */\n toolName: string;\n /**\n * Error message if status is error\n */\n errorMessage?: string;\n /**\n * Installation suggestions\n */\n suggestions?: InstallationSuggestion[];\n};\n\n/**\n * Executable installation command for a tool\n */\nexport type ToolInstallCommand = {\n /**\n * Shell command string to execute\n */\n command: string;\n /**\n * Target platform identifier\n */\n platform: string;\n /**\n * Execution timeout in milliseconds\n */\n timeout: number;\n /**\n * Tool name\n */\n toolName: string;\n /**\n * Package manager identifier\n */\n packageManager: string;\n};\nexport enum EvidenceType {\n Screenshot = 'Screenshot',\n Video = 'Video',\n TestOutput = 'TestOutput',\n TerminalRecording = 'TerminalRecording',\n}\n\n/**\n * Record of evidence captured to prove task completion\n */\nexport type Evidence = {\n /**\n * Category of evidence captured\n */\n type: EvidenceType;\n /**\n * ISO 8601 timestamp when the evidence was captured\n */\n capturedAt: string;\n /**\n * Human-readable description of what this evidence proves\n */\n description: string;\n /**\n * Path relative to repo root for GitHub rendering\n */\n relativePath: string;\n /**\n * Optional reference to the task this evidence proves\n */\n taskRef?: string;\n};\nexport enum AgentStatus {\n Idle = 'Idle',\n Running = 'Running',\n Paused = 'Paused',\n Stopped = 'Stopped',\n}\n\n/**\n * A running agent instance that processes work and responds to queries\n */\nexport type AgentInstance = {\n /**\n * Unique identifier for this agent instance\n */\n id: UUID;\n /**\n * Git branch this agent is operating on for code changes\n */\n branch: string;\n /**\n * Current operational status of the agent (Idle, Running, Paused, or Stopped)\n */\n status: AgentStatus;\n /**\n * Timestamp when this agent instance was created\n */\n createdAt: any;\n};\n\n/**\n * Deployment target wrapping a single ActionItem for granular deployments\n */\nexport type DeployTargetActionItem = {\n /**\n * Discriminator indicating this is an action item target\n */\n kind: 'actionItem';\n /**\n * The action item to deploy - represents an atomic unit of work\n */\n actionItem: ActionItem;\n};\n\n/**\n * Deployment target wrapping a single Task for task-level deployments\n */\nexport type DeployTargetTask = {\n /**\n * Discriminator indicating this is a task target\n */\n kind: 'task';\n /**\n * The task to deploy - includes all action items within the task\n */\n task: Task;\n};\n\n/**\n * Deployment target wrapping multiple Tasks for batch deployments\n */\nexport type DeployTargetTasks = {\n /**\n * Discriminator indicating this is a multi-task target\n */\n kind: 'tasks';\n /**\n * The tasks to deploy - enables batch deployment of related work\n */\n tasks: Task[];\n};\nexport enum FeatureAgentState {\n GatheringRequirements = 'GatheringRequirements',\n ClarificationsRequired = 'ClarificationsRequired',\n DoingResearch = 'DoingResearch',\n AwaitingReview = 'AwaitingReview',\n ExecutingWorkPlan = 'ExecutingWorkPlan',\n Ready = 'Ready',\n}\n\n/**\n * Main orchestrating agent - the 'brain' that manages the complete SDLC workflow for a feature\n */\nexport type FeatureAgent = {\n /**\n * Unique identifier for this feature agent instance\n */\n id: UUID;\n /**\n * The feature being managed by this agent throughout its lifecycle\n */\n feature: Feature;\n /**\n * Sub-agents spawned to handle specific tasks within the workflow\n */\n agents: AgentInstance[];\n /**\n * Current operational state determining what the agent is doing\n */\n state: FeatureAgentState;\n /**\n * Timestamp when this feature agent was created\n */\n createdAt: any;\n};\n\n/**\n * Agent for handling local deployment of features, tasks, or action items\n */\nexport type LocalDeployAgent = {\n /**\n * Unique identifier for this deployment agent instance\n */\n id: UUID;\n /**\n * URL where the deployment is accessible once available (null before deployment)\n */\n url?: string;\n /**\n * Timestamp when this deployment agent was created\n */\n createdAt: any;\n};\nexport enum PortProtocol {\n TCP = 'TCP',\n UDP = 'UDP',\n}\n\n/**\n * Port mapping configuration for exposing container services to the network\n */\nexport type PortMap = {\n /**\n * Service name identifier (e.g., 'web', 'api', 'db', 'redis')\n */\n name: string;\n /**\n * Port number to expose on the host or container network\n */\n port: number;\n /**\n * Network protocol for the port (defaults to TCP if not specified)\n */\n protocol?: PortProtocol;\n};\nexport enum DeployMethod {\n DockerCompose = 'DockerCompose',\n Docker = 'Docker',\n Kubernetes = 'Kubernetes',\n Script = 'Script',\n Manual = 'Manual',\n}\n\n/**\n * Configuration defining how to deploy an application with method and instructions\n */\nexport type DeploySkill = {\n /**\n * Unique identifier for the deployment skill configuration\n */\n id: UUID;\n /**\n * List of port mappings for services to expose when deployed\n */\n ports: PortMap[];\n /**\n * Method to use for deployment (DockerCompose, Docker, Kubernetes, Script, or Manual)\n */\n method: DeployMethod;\n /**\n * Deployment instructions or commands to execute for this deployment method\n */\n instructions: string;\n /**\n * Timestamp when the deployment skill was created\n */\n createdAt: any;\n};\nexport enum DeploymentState {\n Booting = 'Booting',\n Ready = 'Ready',\n Stopped = 'Stopped',\n}\n\n/**\n * A running deployment instance with network configuration and lifecycle management\n */\nexport type Deployment = {\n /**\n * Unique identifier for the deployment instance\n */\n id: UUID;\n /**\n * Current state of the deployment (Booting, Ready, or Stopped)\n */\n state: DeploymentState;\n /**\n * URL where the deployment is accessible (e.g., 'http://localhost:30100/' or 'http://172.33.0.20:5173')\n */\n url: string;\n /**\n * List of port mappings for services exposed by this deployment\n */\n ports: PortMap[];\n /**\n * Timestamp when the deployment was created\n */\n createdAt: any;\n /**\n * Timestamp when the deployment was stopped (only present when state is Stopped)\n */\n stoppedAt?: any;\n};\nexport enum AgentRunStatus {\n pending = 'pending',\n running = 'running',\n completed = 'completed',\n failed = 'failed',\n interrupted = 'interrupted',\n cancelled = 'cancelled',\n waitingApproval = 'waiting_approval',\n}\n\n/**\n * Agent execution run record\n */\nexport type AgentRun = BaseEntity & {\n /**\n * Agent executor type used (claude-code, gemini-cli, etc.)\n */\n agentType: AgentType;\n /**\n * Agent workflow name (analyze-repository, requirements, etc.)\n */\n agentName: string;\n /**\n * Current execution status\n */\n status: AgentRunStatus;\n /**\n * Input prompt sent to agent executor\n */\n prompt: string;\n /**\n * Final result output (optional, populated on completion)\n */\n result?: string;\n /**\n * Executor session ID for resumption (optional)\n */\n sessionId?: string;\n /**\n * LangGraph thread_id for checkpoint lookup and crash resume\n */\n threadId: string;\n /**\n * Process ID for crash recovery (optional)\n */\n pid?: number;\n /**\n * Last heartbeat timestamp for crash detection (optional)\n */\n lastHeartbeat?: any;\n /**\n * Execution start timestamp (optional)\n */\n startedAt?: any;\n /**\n * Execution completion timestamp (optional)\n */\n completedAt?: any;\n /**\n * Error message if execution failed (optional)\n */\n error?: string;\n /**\n * Associated feature ID for feature agent runs (optional)\n */\n featureId?: string;\n /**\n * Repository path for context scoping (optional)\n */\n repositoryPath?: string;\n /**\n * Approval gate configuration for human-in-the-loop review (optional)\n */\n approvalGates?: ApprovalGates;\n /**\n * LLM model identifier used for this run (optional, set at creation)\n */\n modelId?: string;\n};\n\n/**\n * Streaming event emitted during agent execution\n */\nexport type AgentRunEvent = {\n /**\n * Event type: progress, result, or error\n */\n type: 'progress' | 'result' | 'error';\n /**\n * Event content\n */\n content: string;\n /**\n * Event timestamp\n */\n timestamp: any;\n};\n\n/**\n * Agent workflow registration metadata\n */\nexport type AgentDefinition = {\n /**\n * Unique agent workflow name (e.g., analyze-repository)\n */\n name: string;\n /**\n * Human-readable description of what this agent does\n */\n description: string;\n};\nexport type float = any;\nexport type float64 = float;\n\n/**\n * Execution record for a single agent graph node. Tracks timing, prompt, token usage, and outcome.\n */\nexport type PhaseTiming = BaseEntity & {\n /**\n * Agent run this timing belongs to\n */\n agentRunId: string;\n /**\n * Graph node name: analyze, requirements, research, plan, implement\n */\n phase: string;\n /**\n * When the phase started executing\n */\n startedAt: any;\n /**\n * When the phase finished executing (null if still running)\n */\n completedAt?: any;\n /**\n * Duration in milliseconds (computed on completion)\n */\n durationMs?: bigint;\n /**\n * When the phase started waiting for user approval (null if no approval needed)\n */\n waitingApprovalAt?: any;\n /**\n * Duration in milliseconds the phase waited for user approval (null if no approval needed)\n */\n approvalWaitMs?: bigint;\n /**\n * The composed prompt sent to the agent for this phase\n */\n prompt?: string;\n /**\n * Model identifier used for this phase execution\n */\n modelId?: string;\n /**\n * Agent executor type: claude-code, cursor, gemini-cli\n */\n agentType?: string;\n /**\n * Number of input tokens consumed (prompt + context)\n */\n inputTokens?: bigint;\n /**\n * Number of output tokens generated by the agent\n */\n outputTokens?: bigint;\n /**\n * Tokens used to populate the prompt cache (cache misses)\n */\n cacheCreationInputTokens?: bigint;\n /**\n * Tokens served from the prompt cache (cache hits)\n */\n cacheReadInputTokens?: bigint;\n /**\n * Estimated cost in USD for this phase execution\n */\n costUsd?: float64;\n /**\n * Number of agentic turns (tool-call round-trips) in this phase\n */\n numTurns?: number;\n /**\n * Time spent waiting for the API (excludes tool execution)\n */\n durationApiMs?: bigint;\n /**\n * Execution outcome: success, error, timeout, interrupted\n */\n exitCode?: string;\n /**\n * Error details when exitCode is not success\n */\n errorMessage?: string;\n};\n\n/**\n * Change to a question's selected option during PRD review\n */\nexport type QuestionSelectionChange = {\n /**\n * ID of the open question being changed (the question text)\n */\n questionId: string;\n /**\n * The option text that the user selected\n */\n selectedOption: string;\n};\n\n/**\n * Payload sent when user approves a PRD with optional selection changes\n */\nexport type PrdApprovalPayload = {\n /**\n * Always true for approval payloads\n */\n approved: boolean;\n /**\n * List of selection changes the user made during review (empty if no changes)\n */\n changedSelections?: QuestionSelectionChange[];\n};\n\n/**\n * Payload sent when user rejects a PRD with feedback for iteration\n */\nexport type PrdRejectionPayload = {\n /**\n * Always true for rejection payloads\n */\n rejected: boolean;\n /**\n * User's feedback explaining what needs to change\n */\n feedback: string;\n /**\n * Iteration number (1-based, derived from PhaseTiming row count)\n */\n iteration: number;\n /**\n * File attachment paths included with the rejection feedback\n */\n attachments?: string[];\n};\n\n/**\n * A single question with its options as presented in the review TUI\n */\nexport type ReviewQuestion = {\n /**\n * The question text\n */\n question: string;\n /**\n * Available options with selection state\n */\n options: QuestionOption[];\n /**\n * The option text that was selected by the user\n */\n selectedOption: string;\n /**\n * Whether the user changed the selection from the AI default\n */\n changed: boolean;\n};\n\n/**\n * Result of the PRD review TUI interaction\n */\nexport type PrdReviewResult = {\n /**\n * All questions with their final selection state\n */\n questions: ReviewQuestion[];\n /**\n * User action: approve or reject\n */\n action: string;\n /**\n * Rejection feedback (only present when action is 'reject')\n */\n feedback?: string;\n};\n\n/**\n * A single message within an agent provider CLI session\n */\nexport type AgentSessionMessage = {\n /**\n * Provider-native message UUID\n */\n uuid: string;\n /**\n * Message role — user turn or assistant turn\n */\n role: 'user' | 'assistant';\n /**\n * Normalized message content as plain text (tool calls and thinking blocks excluded)\n */\n content: string;\n /**\n * Timestamp when the message was recorded\n */\n timestamp: any;\n};\n\n/**\n * An agent provider CLI session (conversation record read from provider local storage)\n */\nexport type AgentSession = BaseEntity & {\n /**\n * Agent executor type that owns this session (e.g. claude-code)\n */\n agentType: AgentType;\n /**\n * Tilde-abbreviated working directory path for the session (e.g. ~/repos/my-project)\n */\n projectPath: string;\n /**\n * Total number of user and assistant messages in the session\n */\n messageCount: number;\n /**\n * Truncated first user message text used as a session summary preview (optional)\n */\n preview?: string;\n /**\n * Conversation messages — populated only in the detail view (shep session show)\n */\n messages?: AgentSessionMessage[];\n /**\n * Timestamp of the first message in the session (optional)\n */\n firstMessageAt?: any;\n /**\n * Timestamp of the most recent message in the session (optional)\n */\n lastMessageAt?: any;\n};\nexport enum InteractiveSessionStatus {\n booting = 'booting',\n ready = 'ready',\n stopped = 'stopped',\n error = 'error',\n}\n\n/**\n * Per-feature interactive agent session record\n */\nexport type InteractiveSession = BaseEntity & {\n /**\n * Polymorphic scope key: feature UUID, 'repo-<id>', or 'global'. Future: rename to scopeId + scopeType.\n */\n featureId: UUID;\n /**\n * Current lifecycle status of the interactive session\n */\n status: InteractiveSessionStatus;\n /**\n * Timestamp when the agent process was spawned\n */\n startedAt: any;\n /**\n * Timestamp when the session ended (null if still active)\n */\n stoppedAt?: any;\n /**\n * Timestamp of last user message or agent stdout activity\n */\n lastActivityAt: any;\n};\nexport enum InteractiveMessageRole {\n user = 'user',\n assistant = 'assistant',\n}\n\n/**\n * A single chat message in a per-feature interactive agent session\n */\nexport type InteractiveMessage = BaseEntity & {\n /**\n * Polymorphic scope key: feature UUID, 'repo-<id>', or 'global'. Future: rename to scopeId + scopeType.\n */\n featureId: string;\n /**\n * Session ID during which this message was sent (optional)\n */\n sessionId?: string;\n /**\n * Author role: user or assistant\n */\n role: InteractiveMessageRole;\n /**\n * Full message content (finalised after streaming for assistant messages)\n */\n content: string;\n /**\n * Optional workflow step ID this message was produced for\n */\n stepId?: string;\n};\nexport enum WorkflowStepStatus {\n pending = 'pending',\n running = 'running',\n done = 'done',\n failed = 'failed',\n interrupted = 'interrupted',\n}\n\n/**\n * A persisted step of a multi-step workflow executed inside an interactive session\n */\nexport type WorkflowStep = BaseEntity & {\n /**\n * Parent interactive session id\n */\n sessionId: string;\n /**\n * Polymorphic scope key: matches InteractiveMessage.featureId\n */\n featureId: string;\n /**\n * Logical workflow id (e.g. 'application-creation-v1')\n */\n workflowId: string;\n /**\n * Stable key inside the workflow (e.g. 'scaffold', 'deps')\n */\n stepKey: string;\n /**\n * Order of this step within the workflow, starting at 0\n */\n stepIndex: number;\n /**\n * Non-technical title shown to the user\n */\n title: string;\n /**\n * Non-technical subtitle shown to the user\n */\n description: string;\n /**\n * Current lifecycle status\n */\n status: WorkflowStepStatus;\n /**\n * When the step transitioned to running\n */\n startedAt?: any;\n /**\n * When the step transitioned to done/failed/interrupted\n */\n finishedAt?: any;\n /**\n * JSON blob with summary, details, error — populated when done/failed\n */\n metadata?: string;\n};\n\n/**\n * A selectable option within a PRD questionnaire question\n */\nexport type PrdOption = {\n /**\n * Unique identifier for this option\n */\n id: string;\n /**\n * Display label for this option\n */\n label: string;\n /**\n * Explanation of why this option is relevant\n */\n rationale: string;\n /**\n * Whether this option is recommended by AI analysis\n */\n recommended?: boolean;\n /**\n * Whether this option was newly added after refinement\n */\n isNew?: boolean;\n};\n\n/**\n * A single question in the PRD questionnaire with selectable options\n */\nexport type PrdQuestion = {\n /**\n * Unique identifier for this question\n */\n id: string;\n /**\n * The question text displayed to the user\n */\n question: string;\n /**\n * Question interaction type (currently only single-select)\n */\n type: 'select';\n /**\n * Available options for this question\n */\n options: PrdOption[];\n};\n\n/**\n * Configuration for the final action button in the questionnaire\n */\nexport type PrdFinalAction = {\n /**\n * Unique identifier for this action\n */\n id: string;\n /**\n * Button label text\n */\n label: string;\n /**\n * Description of what this action does\n */\n description: string;\n};\n\n/**\n * Complete data for rendering a PRD questionnaire\n */\nexport type PrdQuestionnaireData = {\n /**\n * Header title text for the questionnaire\n */\n question: string;\n /**\n * Header context/description text\n */\n context: string;\n /**\n * Array of questions to display\n */\n questions: PrdQuestion[];\n /**\n * Configuration for the finalize/approve action button\n */\n finalAction: PrdFinalAction;\n};\nexport enum AgentFeature {\n sessionResume = 'session-resume',\n streaming = 'streaming',\n toolScoping = 'tool-scoping',\n structuredOutput = 'structured-output',\n systemPrompt = 'system-prompt',\n sessionListing = 'session-listing',\n}\nexport type DeployTarget = DeployTargetActionItem | DeployTargetTask | DeployTargetTasks;\n\nexport type Askable = {\n Ask(request: AskRequest): AskResponse;\n};\n\nexport type FeatureAgentOperations = {\n NewFeatureWizard(): Feature;\n GatherRequirements(): Requirement[];\n DoResearch(): Research;\n CreatePlan(): Plan;\n BeginImplementation(): void;\n Ask(query: string): AskResponse;\n};\n\nexport type LocalDeployAgentOperations = {\n Deploy(target: DeployTarget, skill: DeploySkill): Deployment;\n Analyze(repositoryPath: string): DeploySkill;\n Ask(query: string): AskResponse;\n};\n"],"names":["attrRE","stringify","tag","res","type","name","voidElement","attrs","children","tagMatch","match","lookup","charAt","length","startsWith","endIndex","indexOf","comment","slice","reg","RegExp","result","exec","trim","attr","arr","split","lastIndex","substring","tagRE","whitespaceRE","empty","Object","create","buff","doc","content","key","push","join","attrString","reduce","parse","html","options","components","current","level","inComponent","end","replace","index","parent","isOpen","isComment","start","nextChar","parseTag","undefined","test","token","rootEl","callServer","createServerReference","findSourceMapURL"],"mappings":"gCAKA,EAAO,OAAO,CAAG,CACf,MAAQ,EACR,MAAQ,EACR,IAAM,EACN,KAAO,EACP,OAAS,EACT,IAAM,EACN,IAAO,GACP,MAAS,GACT,MAAQ,EACR,MAAQ,EACR,OAAS,EACT,QAAU,EACV,MAAS,GACT,KAAO,CACT,gCCTA,IAAI,EAAA,EAAA,CAAA,CAAA,OAKS,EAAM,QAAQ,CACb,CAAZ,CAAkB,SAAS,CACT,CAAlB,CAAwB,eAAe,CACvB,CAAhB,CAAsB,aAAa,CA6CrC,EAAQ,oBAAoB,CAC1B,KAAK,IAAM,EAAM,oBAAoB,CAAG,EAAM,oBAAoB,CAVpE,EAUuE,OAV9D,AAAuB,CAAS,CAAE,CAAW,EACpD,OAAO,GACT,+BCtDE,EAAO,OAAO,CAAA,EAAA,CAAA,CAAA,iEGHZ,EFAJ,IAAA,EAAA,EAAA,CAAA,CAAA,OGAA,IAAM,EAAW,GAAsB,UAAf,OAAO,EACzB,EAAQ,KAGZ,IAFI,EACA,EACE,EAAU,IAAI,QAAQ,CAAC,EAAS,KACpC,EAAM,EACN,EAAM,CACR,GAGA,OAFA,EAAQ,OAAO,CAAG,EAClB,EAAQ,MAAM,CAAG,EACV,CACT,EACM,EAAa,GACH,AAAd,MAAI,AAAgB,EAAO,GACpB,OAAO,GAOV,EAA4B,OAC5B,EAAW,GAAO,GAAO,EAAI,QAAQ,CAAC,OAAS,EAAI,OAAO,CAAC,EAA2B,KAAO,EAC7F,EAAuB,GAAU,CAAC,GAAU,EAAS,GACrD,EAAgB,CAAC,EAAQ,EAAM,KACnC,IAAM,EAAQ,AAAC,EAAS,GAAe,EAAK,KAAK,CAAC,KAAlB,EAC5B,EAAa,EACjB,KAAO,EAAa,EAAM,MAAM,CAAG,GAAG,CACpC,GAAI,EAAqB,GAAS,MAAO,CAAC,EAC1C,IAAM,EAAM,EAAS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BK,EA0uBA,IAqZA,IAvxDA,IAAA,4IAAA,GAiCA,IAAA,sGAAA,GAOA,IAAA,8FAAA,GA2mBA,IAAA,sDAAA,GAKA,oEAAA,GA0uBA,sWAAA,GAaA,IAAA,0EAAA,GAwYA,gEAAA,GAwZA,IAAA,0CAAA","ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]}
1
+ {"version":3,"sources":["../../../../../../../node_modules/.pnpm/void-elements%403.1.0/node_modules/void-elements/index.js","../../../../../../../node_modules/.pnpm/use-sync-external-store%401.6.0_react%4019.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../../../../../../../node_modules/.pnpm/use-sync-external-store%401.6.0_react%4019.2.4/node_modules/use-sync-external-store/shim/index.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/Trans.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/unescape.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/i18nInstance.js","../../../../../../../node_modules/.pnpm/i18next%4026.0.1_typescript%405.9.3/node_modules/i18next/dist/esm/i18next.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/TranslationParserError.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/utils.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/parse-tag.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/parse.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/stringify.js","../../../../../../../node_modules/.pnpm/html-parse-stringify%403.0.1/node_modules/html-parse-stringify/src/index.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/defaults.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/useTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/Translation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/initReactI18next.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/I18nextProvider.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTrans.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/withTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/useSSR.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransUtils/renderTranslation.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/withSSR.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/context.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/TransWithoutContext.js","../../../../../../../node_modules/.pnpm/react-i18next%4017.0.1_i18next%4026.0.1_typescript%405.9.3__react-dom%4019.2.4_react%4019.2.4__react%4019.2.4_typescript%405.9.3/node_modules/react-i18next/dist/es/index.js","../../../../../../../node_modules/.pnpm/next%4016.1.6_%40babel%2Bcore%407.29.0_%40playwright%2Btest%401.58.1_react-dom%4019.2.4_react%4019.2.4__react%4019.2.4/node_modules/next/src/build/webpack/loaders/next-flight-loader/action-client-wrapper.ts","../../../../../../../packages/core/src/domain/generated/output.ts"],"sourcesContent":["/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nmodule.exports = {\n \"area\": true,\n \"base\": true,\n \"br\": true,\n \"col\": true,\n \"embed\": true,\n \"hr\": true,\n \"img\": true,\n \"input\": true,\n \"link\": true,\n \"meta\": true,\n \"param\": true,\n \"source\": true,\n \"track\": true,\n \"wbr\": true\n};\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","import { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return TransWithoutContext({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions,\n values,\n defaults,\n components,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n i18n,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n });\n}","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&amp;': '&',\n '&#38;': '&',\n '&lt;': '<',\n '&#60;': '<',\n '&gt;': '>',\n '&#62;': '>',\n '&apos;': \"'\",\n '&#39;': \"'\",\n '&quot;': '\"',\n '&#34;': '\"',\n '&nbsp;': ' ',\n '&#160;': ' ',\n '&copy;': '©',\n '&#169;': '©',\n '&reg;': '®',\n '&#174;': '®',\n '&hellip;': '…',\n '&#8230;': '…',\n '&#x2F;': '/',\n '&#47;': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;","const isString = obj => typeof obj === 'string';\nconst defer = () => {\n let res;\n let rej;\n const promise = new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n};\nconst makeString = object => {\n if (object == null) return '';\n return String(object);\n};\nconst copy = (a, s, t) => {\n a.forEach(m => {\n if (s[m]) t[m] = s[m];\n });\n};\nconst lastOfPathSeparatorRegExp = /###/g;\nconst cleanKey = key => key && key.includes('###') ? key.replace(lastOfPathSeparatorRegExp, '.') : key;\nconst canNotTraverseDeeper = object => !object || isString(object);\nconst getLastOfPath = (object, path, Empty) => {\n const stack = !isString(path) ? path : path.split('.');\n let stackIndex = 0;\n while (stackIndex < stack.length - 1) {\n if (canNotTraverseDeeper(object)) return {};\n const key = cleanKey(stack[stackIndex]);\n if (!object[key] && Empty) object[key] = new Empty();\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n ++stackIndex;\n }\n if (canNotTraverseDeeper(object)) return {};\n return {\n obj: object,\n k: cleanKey(stack[stackIndex])\n };\n};\nconst setPath = (object, path, newValue) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n if (obj !== undefined || path.length === 1) {\n obj[k] = newValue;\n return;\n }\n let e = path[path.length - 1];\n let p = path.slice(0, path.length - 1);\n let last = getLastOfPath(object, p, Object);\n while (last.obj === undefined && p.length) {\n e = `${p[p.length - 1]}.${e}`;\n p = p.slice(0, p.length - 1);\n last = getLastOfPath(object, p, Object);\n if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') {\n last.obj = undefined;\n }\n }\n last.obj[`${last.k}.${e}`] = newValue;\n};\nconst pushPath = (object, path, newValue, concat) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n obj[k] = obj[k] || [];\n obj[k].push(newValue);\n};\nconst getPath = (object, path) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path);\n if (!obj) return undefined;\n if (!Object.prototype.hasOwnProperty.call(obj, k)) return undefined;\n return obj[k];\n};\nconst getPathWithDefaults = (data, defaultData, key) => {\n const value = getPath(data, key);\n if (value !== undefined) {\n return value;\n }\n return getPath(defaultData, key);\n};\nconst deepExtend = (target, source, overwrite) => {\n for (const prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (prop in target) {\n if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n return target;\n};\nconst regexEscape = str => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\nconst _entityMap = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '/': '&#x2F;'\n};\nconst escape = data => {\n if (isString(data)) {\n return data.replace(/[&<>\"'\\/]/g, s => _entityMap[s]);\n }\n return data;\n};\nclass RegExpCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.regExpMap = new Map();\n this.regExpQueue = [];\n }\n getRegExp(pattern) {\n const regExpFromCache = this.regExpMap.get(pattern);\n if (regExpFromCache !== undefined) {\n return regExpFromCache;\n }\n const regExpNew = new RegExp(pattern);\n if (this.regExpQueue.length === this.capacity) {\n this.regExpMap.delete(this.regExpQueue.shift());\n }\n this.regExpMap.set(pattern, regExpNew);\n this.regExpQueue.push(pattern);\n return regExpNew;\n }\n}\nconst chars = [' ', ',', '?', '!', ';'];\nconst looksLikeObjectPathRegExpCache = new RegExpCache(20);\nconst looksLikeObjectPath = (key, nsSeparator, keySeparator) => {\n nsSeparator = nsSeparator || '';\n keySeparator = keySeparator || '';\n const possibleChars = chars.filter(c => !nsSeparator.includes(c) && !keySeparator.includes(c));\n if (possibleChars.length === 0) return true;\n const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c => c === '?' ? '\\\\?' : c).join('|')})`);\n let matched = !r.test(key);\n if (!matched) {\n const ki = key.indexOf(keySeparator);\n if (ki > 0 && !r.test(key.substring(0, ki))) {\n matched = true;\n }\n }\n return matched;\n};\nconst deepFind = (obj, path, keySeparator = '.') => {\n if (!obj) return undefined;\n if (obj[path]) {\n if (!Object.prototype.hasOwnProperty.call(obj, path)) return undefined;\n return obj[path];\n }\n const tokens = path.split(keySeparator);\n let current = obj;\n for (let i = 0; i < tokens.length;) {\n if (!current || typeof current !== 'object') {\n return undefined;\n }\n let next;\n let nextPath = '';\n for (let j = i; j < tokens.length; ++j) {\n if (j !== i) {\n nextPath += keySeparator;\n }\n nextPath += tokens[j];\n next = current[nextPath];\n if (next !== undefined) {\n if (['string', 'number', 'boolean'].includes(typeof next) && j < tokens.length - 1) {\n continue;\n }\n i += j - i + 1;\n break;\n }\n }\n current = next;\n }\n return current;\n};\nconst getCleanedCode = code => code?.replace(/_/g, '-');\n\nconst consoleLogger = {\n type: 'logger',\n log(args) {\n this.output('log', args);\n },\n warn(args) {\n this.output('warn', args);\n },\n error(args) {\n this.output('error', args);\n },\n output(type, args) {\n console?.[type]?.apply?.(console, args);\n }\n};\nclass Logger {\n constructor(concreteLogger, options = {}) {\n this.init(concreteLogger, options);\n }\n init(concreteLogger, options = {}) {\n this.prefix = options.prefix || 'i18next:';\n this.logger = concreteLogger || consoleLogger;\n this.options = options;\n this.debug = options.debug;\n }\n log(...args) {\n return this.forward(args, 'log', '', true);\n }\n warn(...args) {\n return this.forward(args, 'warn', '', true);\n }\n error(...args) {\n return this.forward(args, 'error', '');\n }\n deprecate(...args) {\n return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n }\n forward(args, lvl, prefix, debugOnly) {\n if (debugOnly && !this.debug) return null;\n if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;\n return this.logger[lvl](args);\n }\n create(moduleName) {\n return new Logger(this.logger, {\n ...{\n prefix: `${this.prefix}:${moduleName}:`\n },\n ...this.options\n });\n }\n clone(options) {\n options = options || this.options;\n options.prefix = options.prefix || this.prefix;\n return new Logger(this.logger, options);\n }\n}\nvar baseLogger = new Logger();\n\nclass EventEmitter {\n constructor() {\n this.observers = {};\n }\n on(events, listener) {\n events.split(' ').forEach(event => {\n if (!this.observers[event]) this.observers[event] = new Map();\n const numListeners = this.observers[event].get(listener) || 0;\n this.observers[event].set(listener, numListeners + 1);\n });\n return this;\n }\n off(event, listener) {\n if (!this.observers[event]) return;\n if (!listener) {\n delete this.observers[event];\n return;\n }\n this.observers[event].delete(listener);\n }\n once(event, listener) {\n const wrapper = (...args) => {\n listener(...args);\n this.off(event, wrapper);\n };\n this.on(event, wrapper);\n return this;\n }\n emit(event, ...args) {\n if (this.observers[event]) {\n const cloned = Array.from(this.observers[event].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(...args);\n }\n });\n }\n if (this.observers['*']) {\n const cloned = Array.from(this.observers['*'].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(event, ...args);\n }\n });\n }\n }\n}\n\nclass ResourceStore extends EventEmitter {\n constructor(data, options = {\n ns: ['translation'],\n defaultNS: 'translation'\n }) {\n super();\n this.data = data || {};\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n if (this.options.ignoreJSONStructure === undefined) {\n this.options.ignoreJSONStructure = true;\n }\n }\n addNamespaces(ns) {\n if (!this.options.ns.includes(ns)) {\n this.options.ns.push(ns);\n }\n }\n removeNamespaces(ns) {\n const index = this.options.ns.indexOf(ns);\n if (index > -1) {\n this.options.ns.splice(index, 1);\n }\n }\n getResource(lng, ns, key, options = {}) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n let path;\n if (lng.includes('.')) {\n path = lng.split('.');\n } else {\n path = [lng, ns];\n if (key) {\n if (Array.isArray(key)) {\n path.push(...key);\n } else if (isString(key) && keySeparator) {\n path.push(...key.split(keySeparator));\n } else {\n path.push(key);\n }\n }\n }\n const result = getPath(this.data, path);\n if (!result && !ns && !key && lng.includes('.')) {\n lng = path[0];\n ns = path[1];\n key = path.slice(2).join('.');\n }\n if (result || !ignoreJSONStructure || !isString(key)) return result;\n return deepFind(this.data?.[lng]?.[ns], key, keySeparator);\n }\n addResource(lng, ns, key, value, options = {\n silent: false\n }) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n let path = [lng, ns];\n if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n if (lng.includes('.')) {\n path = lng.split('.');\n value = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n setPath(this.data, path, value);\n if (!options.silent) this.emit('added', lng, ns, key, value);\n }\n addResources(lng, ns, resources, options = {\n silent: false\n }) {\n for (const m in resources) {\n if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {\n silent: true\n });\n }\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n addResourceBundle(lng, ns, resources, deep, overwrite, options = {\n silent: false,\n skipCopy: false\n }) {\n let path = [lng, ns];\n if (lng.includes('.')) {\n path = lng.split('.');\n deep = resources;\n resources = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n let pack = getPath(this.data, path) || {};\n if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources));\n if (deep) {\n deepExtend(pack, resources, overwrite);\n } else {\n pack = {\n ...pack,\n ...resources\n };\n }\n setPath(this.data, path, pack);\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n removeResourceBundle(lng, ns) {\n if (this.hasResourceBundle(lng, ns)) {\n delete this.data[lng][ns];\n }\n this.removeNamespaces(ns);\n this.emit('removed', lng, ns);\n }\n hasResourceBundle(lng, ns) {\n return this.getResource(lng, ns) !== undefined;\n }\n getResourceBundle(lng, ns) {\n if (!ns) ns = this.options.defaultNS;\n return this.getResource(lng, ns);\n }\n getDataByLanguage(lng) {\n return this.data[lng];\n }\n hasLanguageSomeTranslations(lng) {\n const data = this.getDataByLanguage(lng);\n const n = data && Object.keys(data) || [];\n return !!n.find(v => data[v] && Object.keys(data[v]).length > 0);\n }\n toJSON() {\n return this.data;\n }\n}\n\nvar postProcessor = {\n processors: {},\n addPostProcessor(module) {\n this.processors[module.name] = module;\n },\n handle(processors, value, key, options, translator) {\n processors.forEach(processor => {\n value = this.processors[processor]?.process(value, key, options, translator) ?? value;\n });\n return value;\n }\n};\n\nconst PATH_KEY = Symbol('i18next/PATH_KEY');\nfunction createProxy() {\n const state = [];\n const handler = Object.create(null);\n let proxy;\n handler.get = (target, key) => {\n proxy?.revoke?.();\n if (key === PATH_KEY) return state;\n state.push(key);\n proxy = Proxy.revocable(target, handler);\n return proxy.proxy;\n };\n return Proxy.revocable(Object.create(null), handler).proxy;\n}\nfunction keysFromSelector(selector, opts) {\n const {\n [PATH_KEY]: path\n } = selector(createProxy());\n const keySeparator = opts?.keySeparator ?? '.';\n const nsSeparator = opts?.nsSeparator ?? ':';\n if (path.length > 1 && nsSeparator) {\n const ns = opts?.ns;\n const nsArray = Array.isArray(ns) ? ns : null;\n if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {\n return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;\n }\n }\n return path.join(keySeparator);\n}\n\nconst shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';\nclass Translator extends EventEmitter {\n constructor(services, options = {}) {\n super();\n copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, this);\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n this.logger = baseLogger.create('translator');\n this.checkedLoadedFor = {};\n }\n changeLanguage(lng) {\n if (lng) this.language = lng;\n }\n exists(key, o = {\n interpolation: {}\n }) {\n const opt = {\n ...o\n };\n if (key == null) return false;\n const resolved = this.resolve(key, opt);\n if (resolved?.res === undefined) return false;\n const isObject = shouldHandleAsObject(resolved.res);\n if (opt.returnObjects === false && isObject) {\n return false;\n }\n return true;\n }\n extractFromKey(key, opt) {\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n let namespaces = opt.ns || this.options.defaultNS || [];\n const wouldCheckForNsInKey = nsSeparator && key.includes(nsSeparator);\n const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);\n if (wouldCheckForNsInKey && !seemsNaturalLanguage) {\n const m = key.match(this.interpolator.nestingRegexp);\n if (m && m.length > 0) {\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n const parts = key.split(nsSeparator);\n if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.includes(parts[0])) namespaces = parts.shift();\n key = parts.join(keySeparator);\n }\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n translate(keys, o, lastKey) {\n let opt = typeof o === 'object' ? {\n ...o\n } : o;\n if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {\n opt = this.options.overloadTranslationOptionHandler(arguments);\n }\n if (typeof opt === 'object') opt = {\n ...opt\n };\n if (!opt) opt = {};\n if (keys == null) return '';\n if (typeof keys === 'function') keys = keysFromSelector(keys, {\n ...this.options,\n ...opt\n });\n if (!Array.isArray(keys)) keys = [String(keys)];\n keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : String(k));\n const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n const {\n key,\n namespaces\n } = this.extractFromKey(keys[keys.length - 1], opt);\n const namespace = namespaces[namespaces.length - 1];\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const lng = opt.lng || this.language;\n const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n if (lng?.toLowerCase() === 'cimode') {\n if (appendNamespaceToCIMode) {\n if (returnDetails) {\n return {\n res: `${namespace}${nsSeparator}${key}`,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return `${namespace}${nsSeparator}${key}`;\n }\n if (returnDetails) {\n return {\n res: key,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return key;\n }\n const resolved = this.resolve(keys, opt);\n let res = resolved?.res;\n const resUsedKey = resolved?.usedKey || key;\n const resExactUsedKey = resolved?.exactUsedKey || key;\n const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;\n const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const hasDefaultValue = Translator.hasDefaultValue(opt);\n const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';\n const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {\n ordinal: false\n }) : '';\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;\n let resForObjHndl = res;\n if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {\n resForObjHndl = defaultValue;\n }\n const handleAsObject = shouldHandleAsObject(resForObjHndl);\n const resType = Object.prototype.toString.apply(resForObjHndl);\n if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && !noObject.includes(resType) && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {\n if (!opt.returnObjects && !this.options.returnObjects) {\n if (!this.options.returnedObjectHandler) {\n this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n }\n const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {\n ...opt,\n ns: namespaces\n }) : `key '${key} (${this.language})' returned an object instead of string.`;\n if (returnDetails) {\n resolved.res = r;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return r;\n }\n if (keySeparator) {\n const resTypeIsArray = Array.isArray(resForObjHndl);\n const copy = resTypeIsArray ? [] : {};\n const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n for (const m in resForObjHndl) {\n if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {\n const deepKey = `${newKeyToUse}${keySeparator}${m}`;\n if (hasDefaultValue && !res) {\n copy[m] = this.translate(deepKey, {\n ...opt,\n defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n } else {\n copy[m] = this.translate(deepKey, {\n ...opt,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n }\n if (copy[m] === deepKey) copy[m] = resForObjHndl[m];\n }\n }\n res = copy;\n }\n } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {\n res = res.join(joinArrays);\n if (res) res = this.extendTranslation(res, keys, opt, lastKey);\n } else {\n let usedDefault = false;\n let usedKey = false;\n if (!this.isValidLookup(res) && hasDefaultValue) {\n usedDefault = true;\n res = defaultValue;\n }\n if (!this.isValidLookup(res)) {\n usedKey = true;\n res = key;\n }\n const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;\n const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;\n const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n if (usedKey || usedDefault || updateMissing) {\n this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n if (keySeparator) {\n const fk = this.resolve(key, {\n ...opt,\n keySeparator: false\n });\n if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n }\n let lngs = [];\n const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);\n if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n for (let i = 0; i < fallbackLngs.length; i++) {\n lngs.push(fallbackLngs[i]);\n }\n } else if (this.options.saveMissingTo === 'all') {\n lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);\n } else {\n lngs.push(opt.lng || this.language);\n }\n const send = (l, k, specificDefaultValue) => {\n const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;\n if (this.options.missingKeyHandler) {\n this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);\n } else if (this.backendConnector?.saveMissing) {\n this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);\n }\n this.emit('missingKey', l, namespace, k, res);\n };\n if (this.options.saveMissing) {\n if (this.options.saveMissingPlurals && needsPluralHandling) {\n lngs.forEach(language => {\n const suffixes = this.pluralResolver.getSuffixes(language, opt);\n if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && !suffixes.includes(`${this.options.pluralSeparator}zero`)) {\n suffixes.push(`${this.options.pluralSeparator}zero`);\n }\n suffixes.forEach(suffix => {\n send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);\n });\n });\n } else {\n send(lngs, key, defaultValue);\n }\n }\n }\n res = this.extendTranslation(res, keys, opt, resolved, lastKey);\n if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {\n res = `${namespace}${nsSeparator}${key}`;\n }\n if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {\n res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);\n }\n }\n if (returnDetails) {\n resolved.res = res;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return res;\n }\n extendTranslation(res, key, opt, resolved, lastKey) {\n if (this.i18nFormat?.parse) {\n res = this.i18nFormat.parse(res, {\n ...this.options.interpolation.defaultVariables,\n ...opt\n }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n resolved\n });\n } else if (!opt.skipInterpolation) {\n if (opt.interpolation) this.interpolator.init({\n ...opt,\n ...{\n interpolation: {\n ...this.options.interpolation,\n ...opt.interpolation\n }\n }\n });\n const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);\n let nestBef;\n if (skipOnVariables) {\n const nb = res.match(this.interpolator.nestingRegexp);\n nestBef = nb && nb.length;\n }\n let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;\n if (this.options.interpolation.defaultVariables) data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);\n if (skipOnVariables) {\n const na = res.match(this.interpolator.nestingRegexp);\n const nestAft = na && na.length;\n if (nestBef < nestAft) opt.nest = false;\n }\n if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;\n if (opt.nest !== false) res = this.interpolator.nest(res, (...args) => {\n if (lastKey?.[0] === args[0] && !opt.context) {\n this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);\n return null;\n }\n return this.translate(...args, key);\n }, opt);\n if (opt.interpolation) this.interpolator.reset();\n }\n const postProcess = opt.postProcess || this.options.postProcess;\n const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;\n if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {\n res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {\n i18nResolved: {\n ...resolved,\n usedParams: this.getUsedParamsDetails(opt)\n },\n ...opt\n } : opt, this);\n }\n return res;\n }\n resolve(keys, opt = {}) {\n let found;\n let usedKey;\n let exactUsedKey;\n let usedLng;\n let usedNS;\n if (isString(keys)) keys = [keys];\n if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : k);\n keys.forEach(k => {\n if (this.isValidLookup(found)) return;\n const extracted = this.extractFromKey(k, opt);\n const key = extracted.key;\n usedKey = key;\n let namespaces = extracted.namespaces;\n if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';\n const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);\n namespaces.forEach(ns => {\n if (this.isValidLookup(found)) return;\n usedNS = ns;\n if (!this.checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(usedNS)) {\n this.checkedLoadedFor[`${codes[0]}-${ns}`] = true;\n this.logger.warn(`key \"${usedKey}\" for languages \"${codes.join(', ')}\" won't get resolved as namespace \"${usedNS}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n }\n codes.forEach(code => {\n if (this.isValidLookup(found)) return;\n usedLng = code;\n const finalKeys = [key];\n if (this.i18nFormat?.addLookupKeys) {\n this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);\n } else {\n let pluralSuffix;\n if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);\n const zeroSuffix = `${this.options.pluralSeparator}zero`;\n const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {\n finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(key + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(key + zeroSuffix);\n }\n }\n if (needsContextHandling) {\n const contextKey = `${key}${this.options.contextSeparator || '_'}${opt.context}`;\n finalKeys.push(contextKey);\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {\n finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(contextKey + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(contextKey + zeroSuffix);\n }\n }\n }\n }\n let possibleKey;\n while (possibleKey = finalKeys.pop()) {\n if (!this.isValidLookup(found)) {\n exactUsedKey = possibleKey;\n found = this.getResource(code, ns, possibleKey, opt);\n }\n }\n });\n });\n });\n return {\n res: found,\n usedKey,\n exactUsedKey,\n usedLng,\n usedNS\n };\n }\n isValidLookup(res) {\n return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n }\n getResource(code, ns, key, options = {}) {\n if (this.i18nFormat?.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n return this.resourceStore.getResource(code, ns, key, options);\n }\n getUsedParamsDetails(options = {}) {\n const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];\n const useOptionsReplaceForData = options.replace && !isString(options.replace);\n let data = useOptionsReplaceForData ? options.replace : options;\n if (useOptionsReplaceForData && typeof options.count !== 'undefined') {\n data.count = options.count;\n }\n if (this.options.interpolation.defaultVariables) {\n data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n }\n if (!useOptionsReplaceForData) {\n data = {\n ...data\n };\n for (const key of optionsKeys) {\n delete data[key];\n }\n }\n return data;\n }\n static hasDefaultValue(options) {\n const prefix = 'defaultValue';\n for (const option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option) && option.startsWith(prefix) && undefined !== options[option]) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass LanguageUtil {\n constructor(options) {\n this.options = options;\n this.supportedLngs = this.options.supportedLngs || false;\n this.logger = baseLogger.create('languageUtils');\n }\n getScriptPartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || !code.includes('-')) return null;\n const p = code.split('-');\n if (p.length === 2) return null;\n p.pop();\n if (p[p.length - 1].toLowerCase() === 'x') return null;\n return this.formatLanguageCode(p.join('-'));\n }\n getLanguagePartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || !code.includes('-')) return code;\n const p = code.split('-');\n return this.formatLanguageCode(p[0]);\n }\n formatLanguageCode(code) {\n if (isString(code) && code.includes('-')) {\n let formattedCode;\n try {\n formattedCode = Intl.getCanonicalLocales(code)[0];\n } catch (e) {}\n if (formattedCode && this.options.lowerCaseLng) {\n formattedCode = formattedCode.toLowerCase();\n }\n if (formattedCode) return formattedCode;\n if (this.options.lowerCaseLng) {\n return code.toLowerCase();\n }\n return code;\n }\n return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n }\n isSupportedCode(code) {\n if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n code = this.getLanguagePartFromCode(code);\n }\n return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.includes(code);\n }\n getBestMatchFromCodes(codes) {\n if (!codes) return null;\n let found;\n codes.forEach(code => {\n if (found) return;\n const cleanedLng = this.formatLanguageCode(code);\n if (!this.options.supportedLngs || this.isSupportedCode(cleanedLng)) found = cleanedLng;\n });\n if (!found && this.options.supportedLngs) {\n codes.forEach(code => {\n if (found) return;\n const lngScOnly = this.getScriptPartFromCode(code);\n if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;\n const lngOnly = this.getLanguagePartFromCode(code);\n if (this.isSupportedCode(lngOnly)) return found = lngOnly;\n found = this.options.supportedLngs.find(supportedLng => {\n if (supportedLng === lngOnly) return true;\n if (!supportedLng.includes('-') && !lngOnly.includes('-')) return false;\n if (supportedLng.includes('-') && !lngOnly.includes('-') && supportedLng.slice(0, supportedLng.indexOf('-')) === lngOnly) return true;\n if (supportedLng.startsWith(lngOnly) && lngOnly.length > 1) return true;\n return false;\n });\n });\n }\n if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n return found;\n }\n getFallbackCodes(fallbacks, code) {\n if (!fallbacks) return [];\n if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n if (isString(fallbacks)) fallbacks = [fallbacks];\n if (Array.isArray(fallbacks)) return fallbacks;\n if (!code) return fallbacks.default || [];\n let found = fallbacks[code];\n if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n if (!found) found = fallbacks[this.formatLanguageCode(code)];\n if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n if (!found) found = fallbacks.default;\n return found || [];\n }\n toResolveHierarchy(code, fallbackCode) {\n const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);\n const codes = [];\n const addCode = c => {\n if (!c) return;\n if (this.isSupportedCode(c)) {\n codes.push(c);\n } else {\n this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);\n }\n };\n if (isString(code) && (code.includes('-') || code.includes('_'))) {\n if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n } else if (isString(code)) {\n addCode(this.formatLanguageCode(code));\n }\n fallbackCodes.forEach(fc => {\n if (!codes.includes(fc)) addCode(this.formatLanguageCode(fc));\n });\n return codes;\n }\n}\n\nconst suffixesOrder = {\n zero: 0,\n one: 1,\n two: 2,\n few: 3,\n many: 4,\n other: 5\n};\nconst dummyRule = {\n select: count => count === 1 ? 'one' : 'other',\n resolvedOptions: () => ({\n pluralCategories: ['one', 'other']\n })\n};\nclass PluralResolver {\n constructor(languageUtils, options = {}) {\n this.languageUtils = languageUtils;\n this.options = options;\n this.logger = baseLogger.create('pluralResolver');\n this.pluralRulesCache = {};\n }\n clearCache() {\n this.pluralRulesCache = {};\n }\n getRule(code, options = {}) {\n const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code);\n const type = options.ordinal ? 'ordinal' : 'cardinal';\n const cacheKey = JSON.stringify({\n cleanedCode,\n type\n });\n if (cacheKey in this.pluralRulesCache) {\n return this.pluralRulesCache[cacheKey];\n }\n let rule;\n try {\n rule = new Intl.PluralRules(cleanedCode, {\n type\n });\n } catch (err) {\n if (typeof Intl === 'undefined') {\n this.logger.error('No Intl support, please use an Intl polyfill!');\n return dummyRule;\n }\n if (!code.match(/-|_/)) return dummyRule;\n const lngPart = this.languageUtils.getLanguagePartFromCode(code);\n rule = this.getRule(lngPart, options);\n }\n this.pluralRulesCache[cacheKey] = rule;\n return rule;\n }\n needsPlural(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n return rule?.resolvedOptions().pluralCategories.length > 1;\n }\n getPluralFormsOfKey(code, key, options = {}) {\n return this.getSuffixes(code, options).map(suffix => `${key}${suffix}`);\n }\n getSuffixes(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n if (!rule) return [];\n return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map(pluralCategory => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${pluralCategory}`);\n }\n getSuffix(code, count, options = {}) {\n const rule = this.getRule(code, options);\n if (rule) {\n return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${rule.select(count)}`;\n }\n this.logger.warn(`no plural rule found for: ${code}`);\n return this.getSuffix('dev', count, options);\n }\n}\n\nconst deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {\n let path = getPathWithDefaults(data, defaultData, key);\n if (!path && ignoreJSONStructure && isString(key)) {\n path = deepFind(data, key, keySeparator);\n if (path === undefined) path = deepFind(defaultData, key, keySeparator);\n }\n return path;\n};\nconst regexSafe = val => val.replace(/\\$/g, '$$$$');\nclass Interpolator {\n constructor(options = {}) {\n this.logger = baseLogger.create('interpolator');\n this.options = options;\n this.format = options?.interpolation?.format || (value => value);\n this.init(options);\n }\n init(options = {}) {\n if (!options.interpolation) options.interpolation = {\n escapeValue: true\n };\n const {\n escape: escape$1,\n escapeValue,\n useRawValueToEscape,\n prefix,\n prefixEscaped,\n suffix,\n suffixEscaped,\n formatSeparator,\n unescapeSuffix,\n unescapePrefix,\n nestingPrefix,\n nestingPrefixEscaped,\n nestingSuffix,\n nestingSuffixEscaped,\n nestingOptionsSeparator,\n maxReplaces,\n alwaysFormat\n } = options.interpolation;\n this.escape = escape$1 !== undefined ? escape$1 : escape;\n this.escapeValue = escapeValue !== undefined ? escapeValue : true;\n this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false;\n this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{';\n this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}';\n this.formatSeparator = formatSeparator || ',';\n this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix || '-';\n this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix || '';\n this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape('$t(');\n this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(')');\n this.nestingOptionsSeparator = nestingOptionsSeparator || ',';\n this.maxReplaces = maxReplaces || 1000;\n this.alwaysFormat = alwaysFormat !== undefined ? alwaysFormat : false;\n this.resetRegExp();\n }\n reset() {\n if (this.options) this.init(this.options);\n }\n resetRegExp() {\n const getOrResetRegExp = (existingRegExp, pattern) => {\n if (existingRegExp?.source === pattern) {\n existingRegExp.lastIndex = 0;\n return existingRegExp;\n }\n return new RegExp(pattern, 'g');\n };\n this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);\n this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);\n this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\\\))*?)${this.nestingSuffix}`);\n }\n interpolate(str, data, lng, options) {\n let match;\n let value;\n let replaces;\n const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n const handleFormat = key => {\n if (!key.includes(this.formatSeparator)) {\n const path = deepFindWithDefaults(data, defaultData, key, this.options.keySeparator, this.options.ignoreJSONStructure);\n return this.alwaysFormat ? this.format(path, undefined, lng, {\n ...options,\n ...data,\n interpolationkey: key\n }) : path;\n }\n const p = key.split(this.formatSeparator);\n const k = p.shift().trim();\n const f = p.join(this.formatSeparator).trim();\n return this.format(deepFindWithDefaults(data, defaultData, k, this.options.keySeparator, this.options.ignoreJSONStructure), f, lng, {\n ...options,\n ...data,\n interpolationkey: k\n });\n };\n this.resetRegExp();\n const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;\n const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;\n const todos = [{\n regex: this.regexpUnescape,\n safeValue: val => regexSafe(val)\n }, {\n regex: this.regexp,\n safeValue: val => this.escapeValue ? regexSafe(this.escape(val)) : regexSafe(val)\n }];\n todos.forEach(todo => {\n replaces = 0;\n while (match = todo.regex.exec(str)) {\n const matchedVar = match[1].trim();\n value = handleFormat(matchedVar);\n if (value === undefined) {\n if (typeof missingInterpolationHandler === 'function') {\n const temp = missingInterpolationHandler(str, match, options);\n value = isString(temp) ? temp : '';\n } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {\n value = '';\n } else if (skipOnVariables) {\n value = match[0];\n continue;\n } else {\n this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);\n value = '';\n }\n } else if (!isString(value) && !this.useRawValueToEscape) {\n value = makeString(value);\n }\n const safeValue = todo.safeValue(value);\n str = str.replace(match[0], safeValue);\n if (skipOnVariables) {\n todo.regex.lastIndex += value.length;\n todo.regex.lastIndex -= match[0].length;\n } else {\n todo.regex.lastIndex = 0;\n }\n replaces++;\n if (replaces >= this.maxReplaces) {\n break;\n }\n }\n });\n return str;\n }\n nest(str, fc, options = {}) {\n let match;\n let value;\n let clonedOptions;\n const handleHasOptions = (key, inheritedOptions) => {\n const sep = this.nestingOptionsSeparator;\n if (!key.includes(sep)) return key;\n const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));\n let optionsString = `{${c[1]}`;\n key = c[0];\n optionsString = this.interpolate(optionsString, clonedOptions);\n const matchedSingleQuotes = optionsString.match(/'/g);\n const matchedDoubleQuotes = optionsString.match(/\"/g);\n if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {\n optionsString = optionsString.replace(/'/g, '\"');\n }\n try {\n clonedOptions = JSON.parse(optionsString);\n if (inheritedOptions) clonedOptions = {\n ...inheritedOptions,\n ...clonedOptions\n };\n } catch (e) {\n this.logger.warn(`failed parsing options string in nesting for key ${key}`, e);\n return `${key}${sep}${optionsString}`;\n }\n if (clonedOptions.defaultValue && clonedOptions.defaultValue.includes(this.prefix)) delete clonedOptions.defaultValue;\n return key;\n };\n while (match = this.nestingRegexp.exec(str)) {\n let formatters = [];\n clonedOptions = {\n ...options\n };\n clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;\n clonedOptions.applyPostProcessor = false;\n delete clonedOptions.defaultValue;\n const keyEndIndex = /{.*}/.test(match[1]) ? match[1].lastIndexOf('}') + 1 : match[1].indexOf(this.formatSeparator);\n if (keyEndIndex !== -1) {\n formatters = match[1].slice(keyEndIndex).split(this.formatSeparator).map(elem => elem.trim()).filter(Boolean);\n match[1] = match[1].slice(0, keyEndIndex);\n }\n value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n if (value && match[0] === str && !isString(value)) return value;\n if (!isString(value)) value = makeString(value);\n if (!value) {\n this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);\n value = '';\n }\n if (formatters.length) {\n value = formatters.reduce((v, f) => this.format(v, f, options.lng, {\n ...options,\n interpolationkey: match[1].trim()\n }), value.trim());\n }\n str = str.replace(match[0], value);\n this.regexp.lastIndex = 0;\n }\n return str;\n }\n}\n\nconst parseFormatStr = formatStr => {\n let formatName = formatStr.toLowerCase().trim();\n const formatOptions = {};\n if (formatStr.includes('(')) {\n const p = formatStr.split('(');\n formatName = p[0].toLowerCase().trim();\n const optStr = p[1].slice(0, -1);\n if (formatName === 'currency' && !optStr.includes(':')) {\n if (!formatOptions.currency) formatOptions.currency = optStr.trim();\n } else if (formatName === 'relativetime' && !optStr.includes(':')) {\n if (!formatOptions.range) formatOptions.range = optStr.trim();\n } else {\n const opts = optStr.split(';');\n opts.forEach(opt => {\n if (opt) {\n const [key, ...rest] = opt.split(':');\n const val = rest.join(':').trim().replace(/^'+|'+$/g, '');\n const trimmedKey = key.trim();\n if (!formatOptions[trimmedKey]) formatOptions[trimmedKey] = val;\n if (val === 'false') formatOptions[trimmedKey] = false;\n if (val === 'true') formatOptions[trimmedKey] = true;\n if (!isNaN(val)) formatOptions[trimmedKey] = parseInt(val, 10);\n }\n });\n }\n }\n return {\n formatName,\n formatOptions\n };\n};\nconst createCachedFormatter = fn => {\n const cache = {};\n return (v, l, o) => {\n let optForCache = o;\n if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {\n optForCache = {\n ...optForCache,\n [o.interpolationkey]: undefined\n };\n }\n const key = l + JSON.stringify(optForCache);\n let frm = cache[key];\n if (!frm) {\n frm = fn(getCleanedCode(l), o);\n cache[key] = frm;\n }\n return frm(v);\n };\n};\nconst createNonCachedFormatter = fn => (v, l, o) => fn(getCleanedCode(l), o)(v);\nclass Formatter {\n constructor(options = {}) {\n this.logger = baseLogger.create('formatter');\n this.options = options;\n this.init(options);\n }\n init(services, options = {\n interpolation: {}\n }) {\n this.formatSeparator = options.interpolation.formatSeparator || ',';\n const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;\n this.formats = {\n number: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n currency: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt,\n style: 'currency'\n });\n return val => formatter.format(val);\n }),\n datetime: cf((lng, opt) => {\n const formatter = new Intl.DateTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n relativetime: cf((lng, opt) => {\n const formatter = new Intl.RelativeTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val, opt.range || 'day');\n }),\n list: cf((lng, opt) => {\n const formatter = new Intl.ListFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n })\n };\n }\n add(name, fc) {\n this.formats[name.toLowerCase().trim()] = fc;\n }\n addCached(name, fc) {\n this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);\n }\n format(value, format, lng, options = {}) {\n if (!format) return value;\n if (value == null) return value;\n const formats = format.split(this.formatSeparator);\n if (formats.length > 1 && formats[0].indexOf('(') > 1 && !formats[0].includes(')') && formats.find(f => f.includes(')'))) {\n const lastIndex = formats.findIndex(f => f.includes(')'));\n formats[0] = [formats[0], ...formats.splice(1, lastIndex)].join(this.formatSeparator);\n }\n const result = formats.reduce((mem, f) => {\n const {\n formatName,\n formatOptions\n } = parseFormatStr(f);\n if (this.formats[formatName]) {\n let formatted = mem;\n try {\n const valOptions = options?.formatParams?.[options.interpolationkey] || {};\n const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;\n formatted = this.formats[formatName](mem, l, {\n ...formatOptions,\n ...options,\n ...valOptions\n });\n } catch (error) {\n this.logger.warn(error);\n }\n return formatted;\n } else {\n this.logger.warn(`there was no format function for ${formatName}`);\n }\n return mem;\n }, value);\n return result;\n }\n}\n\nconst removePending = (q, name) => {\n if (q.pending[name] !== undefined) {\n delete q.pending[name];\n q.pendingCount--;\n }\n};\nclass Connector extends EventEmitter {\n constructor(backend, store, services, options = {}) {\n super();\n this.backend = backend;\n this.store = store;\n this.services = services;\n this.languageUtils = services.languageUtils;\n this.options = options;\n this.logger = baseLogger.create('backendConnector');\n this.waitingReads = [];\n this.maxParallelReads = options.maxParallelReads || 10;\n this.readingCalls = 0;\n this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;\n this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;\n this.state = {};\n this.queue = [];\n this.backend?.init?.(services, options.backend, options);\n }\n queueLoad(languages, namespaces, options, callback) {\n const toLoad = {};\n const pending = {};\n const toLoadLanguages = {};\n const toLoadNamespaces = {};\n languages.forEach(lng => {\n let hasAllNamespaces = true;\n namespaces.forEach(ns => {\n const name = `${lng}|${ns}`;\n if (!options.reload && this.store.hasResourceBundle(lng, ns)) {\n this.state[name] = 2;\n } else if (this.state[name] < 0) ; else if (this.state[name] === 1) {\n if (pending[name] === undefined) pending[name] = true;\n } else {\n this.state[name] = 1;\n hasAllNamespaces = false;\n if (pending[name] === undefined) pending[name] = true;\n if (toLoad[name] === undefined) toLoad[name] = true;\n if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true;\n }\n });\n if (!hasAllNamespaces) toLoadLanguages[lng] = true;\n });\n if (Object.keys(toLoad).length || Object.keys(pending).length) {\n this.queue.push({\n pending,\n pendingCount: Object.keys(pending).length,\n loaded: {},\n errors: [],\n callback\n });\n }\n return {\n toLoad: Object.keys(toLoad),\n pending: Object.keys(pending),\n toLoadLanguages: Object.keys(toLoadLanguages),\n toLoadNamespaces: Object.keys(toLoadNamespaces)\n };\n }\n loaded(name, err, data) {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n if (err) this.emit('failedLoading', lng, ns, err);\n if (!err && data) {\n this.store.addResourceBundle(lng, ns, data, undefined, undefined, {\n skipCopy: true\n });\n }\n this.state[name] = err ? -1 : 2;\n if (err && data) this.state[name] = 0;\n const loaded = {};\n this.queue.forEach(q => {\n pushPath(q.loaded, [lng], ns);\n removePending(q, name);\n if (err) q.errors.push(err);\n if (q.pendingCount === 0 && !q.done) {\n Object.keys(q.loaded).forEach(l => {\n if (!loaded[l]) loaded[l] = {};\n const loadedKeys = q.loaded[l];\n if (loadedKeys.length) {\n loadedKeys.forEach(n => {\n if (loaded[l][n] === undefined) loaded[l][n] = true;\n });\n }\n });\n q.done = true;\n if (q.errors.length) {\n q.callback(q.errors);\n } else {\n q.callback();\n }\n }\n });\n this.emit('loaded', loaded);\n this.queue = this.queue.filter(q => !q.done);\n }\n read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {\n if (!lng.length) return callback(null, {});\n if (this.readingCalls >= this.maxParallelReads) {\n this.waitingReads.push({\n lng,\n ns,\n fcName,\n tried,\n wait,\n callback\n });\n return;\n }\n this.readingCalls++;\n const resolver = (err, data) => {\n this.readingCalls--;\n if (this.waitingReads.length > 0) {\n const next = this.waitingReads.shift();\n this.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);\n }\n if (err && data && tried < this.maxRetries) {\n setTimeout(() => {\n this.read(lng, ns, fcName, tried + 1, wait * 2, callback);\n }, wait);\n return;\n }\n callback(err, data);\n };\n const fc = this.backend[fcName].bind(this.backend);\n if (fc.length === 2) {\n try {\n const r = fc(lng, ns);\n if (r && typeof r.then === 'function') {\n r.then(data => resolver(null, data)).catch(resolver);\n } else {\n resolver(null, r);\n }\n } catch (err) {\n resolver(err);\n }\n return;\n }\n return fc(lng, ns, resolver);\n }\n prepareLoading(languages, namespaces, options = {}, callback) {\n if (!this.backend) {\n this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n return callback && callback();\n }\n if (isString(languages)) languages = this.languageUtils.toResolveHierarchy(languages);\n if (isString(namespaces)) namespaces = [namespaces];\n const toLoad = this.queueLoad(languages, namespaces, options, callback);\n if (!toLoad.toLoad.length) {\n if (!toLoad.pending.length) callback();\n return null;\n }\n toLoad.toLoad.forEach(name => {\n this.loadOne(name);\n });\n }\n load(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {}, callback);\n }\n reload(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {\n reload: true\n }, callback);\n }\n loadOne(name, prefix = '') {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n this.read(lng, ns, 'read', undefined, undefined, (err, data) => {\n if (err) this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err);\n if (!err && data) this.logger.log(`${prefix}loaded namespace ${ns} for language ${lng}`, data);\n this.loaded(name, err, data);\n });\n }\n saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}) {\n if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {\n this.logger.warn(`did not save key \"${key}\" as the namespace \"${namespace}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n return;\n }\n if (key === undefined || key === null || key === '') return;\n if (this.backend?.create) {\n const opts = {\n ...options,\n isUpdate\n };\n const fc = this.backend.create.bind(this.backend);\n if (fc.length < 6) {\n try {\n let r;\n if (fc.length === 5) {\n r = fc(languages, namespace, key, fallbackValue, opts);\n } else {\n r = fc(languages, namespace, key, fallbackValue);\n }\n if (r && typeof r.then === 'function') {\n r.then(data => clb(null, data)).catch(clb);\n } else {\n clb(null, r);\n }\n } catch (err) {\n clb(err);\n }\n } else {\n fc(languages, namespace, key, fallbackValue, clb, opts);\n }\n }\n if (!languages || !languages[0]) return;\n this.store.addResource(languages[0], namespace, key, fallbackValue);\n }\n}\n\nconst get = () => ({\n debug: false,\n initAsync: true,\n ns: ['translation'],\n defaultNS: ['translation'],\n fallbackLng: ['dev'],\n fallbackNS: false,\n supportedLngs: false,\n nonExplicitSupportedLngs: false,\n load: 'all',\n preload: false,\n keySeparator: '.',\n nsSeparator: ':',\n pluralSeparator: '_',\n contextSeparator: '_',\n partialBundledLanguages: false,\n saveMissing: false,\n updateMissing: false,\n saveMissingTo: 'fallback',\n saveMissingPlurals: true,\n missingKeyHandler: false,\n missingInterpolationHandler: false,\n postProcess: false,\n postProcessPassResolved: false,\n returnNull: false,\n returnEmptyString: true,\n returnObjects: false,\n joinArrays: false,\n returnedObjectHandler: false,\n parseMissingKeyHandler: false,\n appendNamespaceToMissingKey: false,\n appendNamespaceToCIMode: false,\n overloadTranslationOptionHandler: args => {\n let ret = {};\n if (typeof args[1] === 'object') ret = args[1];\n if (isString(args[1])) ret.defaultValue = args[1];\n if (isString(args[2])) ret.tDescription = args[2];\n if (typeof args[2] === 'object' || typeof args[3] === 'object') {\n const options = args[3] || args[2];\n Object.keys(options).forEach(key => {\n ret[key] = options[key];\n });\n }\n return ret;\n },\n interpolation: {\n escapeValue: true,\n prefix: '{{',\n suffix: '}}',\n formatSeparator: ',',\n unescapePrefix: '-',\n nestingPrefix: '$t(',\n nestingSuffix: ')',\n nestingOptionsSeparator: ',',\n maxReplaces: 1000,\n skipOnVariables: true\n },\n cacheInBuiltFormats: true\n});\nconst transformOptions = options => {\n if (isString(options.ns)) options.ns = [options.ns];\n if (isString(options.fallbackLng)) options.fallbackLng = [options.fallbackLng];\n if (isString(options.fallbackNS)) options.fallbackNS = [options.fallbackNS];\n if (options.supportedLngs && !options.supportedLngs.includes('cimode')) {\n options.supportedLngs = options.supportedLngs.concat(['cimode']);\n }\n return options;\n};\n\nconst noop = () => {};\nconst bindMemberFunctions = inst => {\n const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));\n mems.forEach(mem => {\n if (typeof inst[mem] === 'function') {\n inst[mem] = inst[mem].bind(inst);\n }\n });\n};\nclass I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {};\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (!options.ns.includes('translation')) {\n options.defaultNS = options.ns[0];\n }\n }\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n if (typeof this.options.overloadTranslationOptionHandler !== 'function') {\n this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator\n });\n if (formatter) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if (this.languages && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (!toLoad.includes(l)) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) lngs = this.languages;\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n if (module.type === 'backend') {\n this.modules.backend = module;\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n this.modules.languageDetector = module;\n }\n if (module.type === 'i18nFormat') {\n this.modules.i18nFormat = module;\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n }\n if (module.type === 'formatter') {\n this.modules.formatter = module;\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].includes(l)) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].includes(lngInLngs)) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && !this.languages.includes(l) && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n if (this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix) {\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const selectorOpts = {\n ...this.options,\n ...o\n };\n if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n return this.translator?.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (!this.options.ns.includes(n)) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'rtl';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.includes(languageUtils.getLanguagePartFromCode(lng)) || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n const instance = new I18n(options, callback);\n instance.createInstance = I18n.createInstance;\n return instance;\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) delete options.forkResourceStore;\n const mergedOptions = {\n ...this.options,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n if (forkResourceStore) {\n const clonedData = Object.keys(this.store.data).reduce((prev, l) => {\n prev[l] = {\n ...this.store.data[l]\n };\n prev[l] = Object.keys(prev[l]).reduce((acc, n) => {\n acc[n] = {\n ...prev[l][n]\n };\n return acc;\n }, prev[l]);\n return prev;\n }, {});\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n if (options.interpolation) {\n const defOpts = get();\n const mergedInterpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation,\n ...options.interpolation\n };\n const mergedForInterpolator = {\n ...mergedOptions,\n interpolation: mergedInterpolation\n };\n clone.services.interpolator = new Interpolator(mergedForInterpolator);\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n}\nconst instance = I18n.createInstance();\n\nconst createInstance = instance.createInstance;\nconst dir = instance.dir;\nconst init = instance.init;\nconst loadResources = instance.loadResources;\nconst reloadResources = instance.reloadResources;\nconst use = instance.use;\nconst changeLanguage = instance.changeLanguage;\nconst getFixedT = instance.getFixedT;\nconst t = instance.t;\nconst exists = instance.exists;\nconst setDefaultNamespace = instance.setDefaultNamespace;\nconst hasLoadedNamespace = instance.hasLoadedNamespace;\nconst loadNamespaces = instance.loadNamespaces;\nconst loadLanguages = instance.loadLanguages;\n\nexport { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };\n","const commonEntities = {\n '&nbsp;': '\\u00A0',\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&apos;': \"'\",\n '&copy;': '©',\n '&reg;': '®',\n '&trade;': '™',\n '&hellip;': '…',\n '&ndash;': '–',\n '&mdash;': '—',\n '&lsquo;': '\\u2018',\n '&rsquo;': '\\u2019',\n '&sbquo;': '\\u201A',\n '&ldquo;': '\\u201C',\n '&rdquo;': '\\u201D',\n '&bdquo;': '\\u201E',\n '&dagger;': '†',\n '&Dagger;': '‡',\n '&bull;': '•',\n '&prime;': '′',\n '&Prime;': '″',\n '&lsaquo;': '‹',\n '&rsaquo;': '›',\n '&sect;': '§',\n '&para;': '¶',\n '&middot;': '·',\n '&ensp;': '\\u2002',\n '&emsp;': '\\u2003',\n '&thinsp;': '\\u2009',\n '&euro;': '€',\n '&pound;': '£',\n '&yen;': '¥',\n '&cent;': '¢',\n '&curren;': '¤',\n '&times;': '×',\n '&divide;': '÷',\n '&minus;': '−',\n '&plusmn;': '±',\n '&ne;': '≠',\n '&le;': '≤',\n '&ge;': '≥',\n '&asymp;': '≈',\n '&equiv;': '≡',\n '&infin;': '∞',\n '&int;': '∫',\n '&sum;': '∑',\n '&prod;': '∏',\n '&radic;': '√',\n '&part;': '∂',\n '&permil;': '‰',\n '&deg;': '°',\n '&micro;': 'µ',\n '&larr;': '←',\n '&uarr;': '↑',\n '&rarr;': '→',\n '&darr;': '↓',\n '&harr;': '↔',\n '&crarr;': '↵',\n '&lArr;': '⇐',\n '&uArr;': '⇑',\n '&rArr;': '⇒',\n '&dArr;': '⇓',\n '&hArr;': '⇔',\n '&alpha;': 'α',\n '&beta;': 'β',\n '&gamma;': 'γ',\n '&delta;': 'δ',\n '&epsilon;': 'ε',\n '&zeta;': 'ζ',\n '&eta;': 'η',\n '&theta;': 'θ',\n '&iota;': 'ι',\n '&kappa;': 'κ',\n '&lambda;': 'λ',\n '&mu;': 'μ',\n '&nu;': 'ν',\n '&xi;': 'ξ',\n '&omicron;': 'ο',\n '&pi;': 'π',\n '&rho;': 'ρ',\n '&sigma;': 'σ',\n '&tau;': 'τ',\n '&upsilon;': 'υ',\n '&phi;': 'φ',\n '&chi;': 'χ',\n '&psi;': 'ψ',\n '&omega;': 'ω',\n '&Alpha;': 'Α',\n '&Beta;': 'Β',\n '&Gamma;': 'Γ',\n '&Delta;': 'Δ',\n '&Epsilon;': 'Ε',\n '&Zeta;': 'Ζ',\n '&Eta;': 'Η',\n '&Theta;': 'Θ',\n '&Iota;': 'Ι',\n '&Kappa;': 'Κ',\n '&Lambda;': 'Λ',\n '&Mu;': 'Μ',\n '&Nu;': 'Ν',\n '&Xi;': 'Ξ',\n '&Omicron;': 'Ο',\n '&Pi;': 'Π',\n '&Rho;': 'Ρ',\n '&Sigma;': 'Σ',\n '&Tau;': 'Τ',\n '&Upsilon;': 'Υ',\n '&Phi;': 'Φ',\n '&Chi;': 'Χ',\n '&Psi;': 'Ψ',\n '&Omega;': 'Ω',\n '&Agrave;': 'À',\n '&Aacute;': 'Á',\n '&Acirc;': 'Â',\n '&Atilde;': 'Ã',\n '&Auml;': 'Ä',\n '&Aring;': 'Å',\n '&AElig;': 'Æ',\n '&Ccedil;': 'Ç',\n '&Egrave;': 'È',\n '&Eacute;': 'É',\n '&Ecirc;': 'Ê',\n '&Euml;': 'Ë',\n '&Igrave;': 'Ì',\n '&Iacute;': 'Í',\n '&Icirc;': 'Î',\n '&Iuml;': 'Ï',\n '&ETH;': 'Ð',\n '&Ntilde;': 'Ñ',\n '&Ograve;': 'Ò',\n '&Oacute;': 'Ó',\n '&Ocirc;': 'Ô',\n '&Otilde;': 'Õ',\n '&Ouml;': 'Ö',\n '&Oslash;': 'Ø',\n '&Ugrave;': 'Ù',\n '&Uacute;': 'Ú',\n '&Ucirc;': 'Û',\n '&Uuml;': 'Ü',\n '&Yacute;': 'Ý',\n '&THORN;': 'Þ',\n '&szlig;': 'ß',\n '&agrave;': 'à',\n '&aacute;': 'á',\n '&acirc;': 'â',\n '&atilde;': 'ã',\n '&auml;': 'ä',\n '&aring;': 'å',\n '&aelig;': 'æ',\n '&ccedil;': 'ç',\n '&egrave;': 'è',\n '&eacute;': 'é',\n '&ecirc;': 'ê',\n '&euml;': 'ë',\n '&igrave;': 'ì',\n '&iacute;': 'í',\n '&icirc;': 'î',\n '&iuml;': 'ï',\n '&eth;': 'ð',\n '&ntilde;': 'ñ',\n '&ograve;': 'ò',\n '&oacute;': 'ó',\n '&ocirc;': 'ô',\n '&otilde;': 'õ',\n '&ouml;': 'ö',\n '&oslash;': 'ø',\n '&ugrave;': 'ù',\n '&uacute;': 'ú',\n '&ucirc;': 'û',\n '&uuml;': 'ü',\n '&yacute;': 'ý',\n '&thorn;': 'þ',\n '&yuml;': 'ÿ',\n '&iexcl;': '¡',\n '&iquest;': '¿',\n '&fnof;': 'ƒ',\n '&circ;': 'ˆ',\n '&tilde;': '˜',\n '&OElig;': 'Œ',\n '&oelig;': 'œ',\n '&Scaron;': 'Š',\n '&scaron;': 'š',\n '&Yuml;': 'Ÿ',\n '&ordf;': 'ª',\n '&ordm;': 'º',\n '&macr;': '¯',\n '&acute;': '´',\n '&cedil;': '¸',\n '&sup1;': '¹',\n '&sup2;': '²',\n '&sup3;': '³',\n '&frac14;': '¼',\n '&frac12;': '½',\n '&frac34;': '¾',\n '&spades;': '♠',\n '&clubs;': '♣',\n '&hearts;': '♥',\n '&diams;': '♦',\n '&loz;': '◊',\n '&oline;': '‾',\n '&frasl;': '⁄',\n '&weierp;': '℘',\n '&image;': 'ℑ',\n '&real;': 'ℜ',\n '&alefsym;': 'ℵ'\n};\nconst entityPattern = new RegExp(Object.keys(commonEntities).map(entity => entity.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')).join('|'), 'g');\nexport const decodeHtmlEntities = text => text.replace(entityPattern, match => commonEntities[match]).replace(/&#(\\d+);/g, (_, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));","export class TranslationParserError extends Error {\n constructor(message, position, translationString) {\n super(message);\n this.name = 'TranslationParserError';\n this.position = position;\n this.translationString = translationString;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, TranslationParserError);\n }\n }\n}","export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;","export const tokenize = translation => {\n const tokens = [];\n let position = 0;\n let currentText = '';\n const flushText = () => {\n if (currentText) {\n tokens.push({\n type: 'Text',\n value: currentText,\n position: position - currentText.length\n });\n currentText = '';\n }\n };\n while (position < translation.length) {\n const char = translation[position];\n if (char === '<') {\n const tagMatch = translation.slice(position).match(/^<(\\d+)>/);\n if (tagMatch) {\n flushText();\n tokens.push({\n type: 'TagOpen',\n value: tagMatch[0],\n position,\n tagNumber: parseInt(tagMatch[1], 10)\n });\n position += tagMatch[0].length;\n } else {\n const closeTagMatch = translation.slice(position).match(/^<\\/(\\d+)>/);\n if (closeTagMatch) {\n flushText();\n tokens.push({\n type: 'TagClose',\n value: closeTagMatch[0],\n position,\n tagNumber: parseInt(closeTagMatch[1], 10)\n });\n position += closeTagMatch[0].length;\n } else {\n currentText += char;\n position += 1;\n }\n }\n } else {\n currentText += char;\n position += 1;\n }\n }\n flushText();\n return tokens;\n};","import lookup from 'void-elements'\nconst attrRE = /\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g\n\nexport default function stringify(tag) {\n const res = {\n type: 'tag',\n name: '',\n voidElement: false,\n attrs: {},\n children: [],\n }\n\n const tagMatch = tag.match(/<\\/?([^\\s]+?)[/\\s>]/)\n if (tagMatch) {\n res.name = tagMatch[1]\n if (\n lookup[tagMatch[1]] ||\n tag.charAt(tag.length - 2) === '/'\n ) {\n res.voidElement = true\n }\n\n // handle comment tag\n if (res.name.startsWith('!--')) {\n const endIndex = tag.indexOf('-->')\n return {\n type: 'comment',\n comment: endIndex !== -1 ? tag.slice(4, endIndex) : '',\n }\n }\n }\n\n const reg = new RegExp(attrRE)\n let result = null\n for (;;) {\n result = reg.exec(tag)\n\n if (result === null) {\n break\n }\n\n if (!result[0].trim()) {\n continue\n }\n\n if (result[1]) {\n const attr = result[1].trim()\n let arr = [attr, '']\n\n if (attr.indexOf('=') > -1) {\n arr = attr.split('=')\n }\n\n res.attrs[arr[0]] = arr[1]\n reg.lastIndex--\n } else if (result[2]) {\n res.attrs[result[2]] = result[3].trim().substring(1, result[3].length - 1)\n }\n }\n\n return res\n}\n","import parseTag from './parse-tag'\n\nconst tagRE = /<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g\nconst whitespaceRE = /^\\s*$/\n\n// re-used obj for quick lookups of components\nconst empty = Object.create(null)\n\nexport default function parse(html, options) {\n options || (options = {})\n options.components || (options.components = empty)\n const result = []\n const arr = []\n let current\n let level = -1\n let inComponent = false\n\n // handle text at top level\n if (html.indexOf('<') !== 0) {\n var end = html.indexOf('<')\n result.push({\n type: 'text',\n content: end === -1 ? html : html.substring(0, end),\n })\n }\n\n html.replace(tagRE, function (tag, index) {\n if (inComponent) {\n if (tag !== '</' + current.name + '>') {\n return\n } else {\n inComponent = false\n }\n }\n const isOpen = tag.charAt(1) !== '/'\n const isComment = tag.startsWith('<!--')\n const start = index + tag.length\n const nextChar = html.charAt(start)\n let parent\n\n if (isComment) {\n const comment = parseTag(tag)\n\n // if we're at root, push new base node\n if (level < 0) {\n result.push(comment)\n return result\n }\n parent = arr[level]\n parent.children.push(comment)\n return result\n }\n\n if (isOpen) {\n level++\n\n current = parseTag(tag)\n if (current.type === 'tag' && options.components[current.name]) {\n current.type = 'component'\n inComponent = true\n }\n\n if (\n !current.voidElement &&\n !inComponent &&\n nextChar &&\n nextChar !== '<'\n ) {\n current.children.push({\n type: 'text',\n content: html.slice(start, html.indexOf('<', start)),\n })\n }\n\n // if we're at root, push new base node\n if (level === 0) {\n result.push(current)\n }\n\n parent = arr[level - 1]\n\n if (parent) {\n parent.children.push(current)\n }\n\n arr[level] = current\n }\n\n if (!isOpen || current.voidElement) {\n if (\n level > -1 &&\n (current.voidElement || current.name === tag.slice(2, -1))\n ) {\n level--\n // move current up a level to match the end tag\n current = level === -1 ? result : arr[level]\n }\n if (!inComponent && nextChar !== '<' && nextChar) {\n // trailing text node\n // if we're at the root, push a base text node. otherwise add as\n // a child to the current node.\n parent = level === -1 ? result : arr[level].children\n\n // calculate correct end of the content slice in case there's\n // no tag after the text node.\n const end = html.indexOf('<', start)\n let content = html.slice(start, end === -1 ? undefined : end)\n // if a node is nothing but whitespace, collapse it as the spec states:\n // https://www.w3.org/TR/html4/struct/text.html#h-9.1\n if (whitespaceRE.test(content)) {\n content = ' '\n }\n // don't add whitespace-only text nodes if they would be trailing text nodes\n // or if they would be leading whitespace-only text nodes:\n // * end > -1 indicates this is not a trailing text node\n // * leading node is when level is -1 and parent has length 0\n if ((end > -1 && level + parent.length >= 0) || content !== ' ') {\n parent.push({\n type: 'text',\n content: content,\n })\n }\n }\n }\n })\n\n return result\n}\n","function attrString(attrs) {\n const buff = []\n for (let key in attrs) {\n buff.push(key + '=\"' + attrs[key] + '\"')\n }\n if (!buff.length) {\n return ''\n }\n return ' ' + buff.join(' ')\n}\n\nfunction stringify(buff, doc) {\n switch (doc.type) {\n case 'text':\n return buff + doc.content\n case 'tag':\n buff +=\n '<' +\n doc.name +\n (doc.attrs ? attrString(doc.attrs) : '') +\n (doc.voidElement ? '/>' : '>')\n if (doc.voidElement) {\n return buff\n }\n return buff + doc.children.reduce(stringify, '') + '</' + doc.name + '>'\n case 'comment':\n buff += '<!--' + doc.comment + '-->'\n return buff\n }\n}\n\nexport default function (doc) {\n return doc.reduce(function (token, rootEl) {\n return token + stringify('', rootEl)\n }, '')\n}\n","import parse from './parse'\nimport stringify from './stringify'\n\nexport default {\n parse,\n stringify,\n}\n","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape,\n transDefaultProps: undefined\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;","import { useContext, useCallback, useMemo, useEffect, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n if (typeof k === 'function') return '';\n if (Array.isArray(k)) {\n const last = k[k.length - 1];\n return typeof last === 'function' ? '' : last;\n }\n return k;\n};\nconst notReadySnapshot = {\n t: notReadyT,\n ready: false\n};\nconst dummySubscribe = () => () => {};\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next');\n }\n const i18nOptions = useMemo(() => ({\n ...getDefaults(),\n ...i18n?.options?.react,\n ...props\n }), [i18n, props]);\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n const nsOrContext = ns || defaultNSFromContext || i18n?.options?.defaultNS;\n const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ['translation'];\n const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);\n i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);\n const revisionRef = useRef(0);\n const subscribe = useCallback(callback => {\n if (!i18n) return dummySubscribe;\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n const wrappedCallback = () => {\n revisionRef.current += 1;\n callback();\n };\n if (bindI18n) i18n.on(bindI18n, wrappedCallback);\n if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);\n return () => {\n if (bindI18n) bindI18n.split(' ').forEach(e => i18n.off(e, wrappedCallback));\n if (bindI18nStore) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, wrappedCallback));\n };\n }, [i18n, i18nOptions]);\n const snapshotRef = useRef();\n const getSnapshot = useCallback(() => {\n if (!i18n) {\n return notReadySnapshot;\n }\n const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const currentLng = props.lng || i18n.language;\n const currentRevision = revisionRef.current;\n const lastSnapshot = snapshotRef.current;\n if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {\n return lastSnapshot;\n }\n const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n const newSnapshot = {\n t: calculatedT,\n ready: calculatedReady,\n lng: currentLng,\n keyPrefix,\n revision: currentRevision\n };\n snapshotRef.current = newSnapshot;\n return newSnapshot;\n }, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);\n const [loadCount, setLoadCount] = useState(0);\n const {\n t,\n ready\n } = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n useEffect(() => {\n if (i18n && !ready && !useSuspense) {\n const onLoaded = () => setLoadCount(c => c + 1);\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n }\n }, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);\n const finalI18n = i18n || {};\n const wrapperRef = useRef(null);\n const wrapperLangRef = useRef();\n const createI18nWrapper = original => {\n const descriptors = Object.getOwnPropertyDescriptors(original);\n if (descriptors.__original) delete descriptors.__original;\n const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);\n if (!Object.prototype.hasOwnProperty.call(wrapper, '__original')) {\n try {\n Object.defineProperty(wrapper, '__original', {\n value: original,\n writable: false,\n enumerable: false,\n configurable: false\n });\n } catch (_) {}\n }\n return wrapper;\n };\n const ret = useMemo(() => {\n const original = finalI18n;\n const lang = original?.language;\n let i18nWrapper = original;\n if (original) {\n if (wrapperRef.current && wrapperRef.current.__original === original) {\n if (wrapperLangRef.current !== lang) {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n } else {\n i18nWrapper = wrapperRef.current;\n }\n } else {\n i18nWrapper = createI18nWrapper(original);\n wrapperRef.current = i18nWrapper;\n wrapperLangRef.current = lang;\n }\n }\n const effectiveT = !ready && !useSuspense ? (...args) => {\n warnOnce(i18n, 'USE_T_BEFORE_READY', 'useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.');\n return t(...args);\n } : t;\n const arr = [effectiveT, i18nWrapper, ready];\n arr.t = effectiveT;\n arr.i18n = i18nWrapper;\n arr.ready = ready;\n return arr;\n }, [t, finalI18n, ready, finalI18n.resolvedLanguage, finalI18n.language, finalI18n.languages]);\n if (i18n && useSuspense && !ready) {\n throw new Promise(resolve => {\n const onLoaded = () => resolve();\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n });\n }\n return ret;\n};","import { useTranslation } from './useTranslation.js';\nexport const Translation = ({\n ns,\n children,\n ...options\n}) => {\n const [t, i18n, ready] = useTranslation(ns, options);\n return children(t, {\n i18n,\n lng: i18n?.language\n }, ready);\n};","import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};","import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context.js';\nexport function I18nextProvider({\n i18n,\n defaultNS,\n children\n}) {\n const value = useMemo(() => ({\n i18n,\n defaultNS\n }), [i18n, defaultNS]);\n return createElement(I18nContext.Provider, {\n value\n }, children);\n}","import { useContext } from 'react';\nimport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport function IcuTrans({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n values,\n i18n,\n t: tFromProps\n });\n}\nIcuTrans.displayName = 'IcuTrans';","import { createElement, forwardRef as forwardRefReact } from 'react';\nimport { useTranslation } from './useTranslation.js';\nimport { getDisplayName } from './utils.js';\nexport const withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {\n function I18nextWithTranslation({\n forwardedRef,\n ...rest\n }) {\n const [t, i18n, ready] = useTranslation(ns, {\n ...rest,\n keyPrefix: options.keyPrefix\n });\n const passDownProps = {\n ...rest,\n t,\n i18n,\n tReady: ready\n };\n if (options.withRef && forwardedRef) {\n passDownProps.ref = forwardedRef;\n } else if (!options.withRef && forwardedRef) {\n passDownProps.forwardedRef = forwardedRef;\n }\n return createElement(WrappedComponent, passDownProps);\n }\n I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;\n I18nextWithTranslation.WrappedComponent = WrappedComponent;\n const forwardRef = (props, ref) => createElement(I18nextWithTranslation, Object.assign({}, props, {\n forwardedRef: ref\n }));\n return options.withRef ? forwardRefReact(forwardRef) : I18nextWithTranslation;\n};","import { useContext } from 'react';\nimport { getI18n, I18nContext } from './context.js';\nimport { warnOnce } from './utils.js';\nexport const useSSR = (initialI18nStore, initialLanguage, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useSSR: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.');\n return;\n }\n if (i18n.options?.isClone) return;\n if (initialI18nStore && !i18n.initializedStoreOnce) {\n if (!i18n.services?.resourceStore) {\n warnOnce(i18n, 'I18N_NOT_INITIALIZED', 'useSSR: i18n instance was found but not initialized (services.resourceStore is missing). Make sure you call i18next.init() before using useSSR — e.g. at module level, not only in getStaticProps/getServerSideProps.');\n return;\n }\n i18n.services.resourceStore.data = initialI18nStore;\n i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {\n Object.keys(lngResources).forEach(ns => {\n if (mem.indexOf(ns) < 0) mem.push(ns);\n });\n return mem;\n }, i18n.options.ns);\n i18n.initializedStoreOnce = true;\n i18n.isInitialized = true;\n }\n if (initialLanguage && !i18n.initializedLanguageOnce) {\n i18n.changeLanguage(initialLanguage);\n i18n.initializedLanguageOnce = true;\n }\n};","import React from 'react';\nimport { TranslationParserError } from './TranslationParserError.js';\nimport { tokenize } from './tokenizer.js';\nimport { decodeHtmlEntities } from './htmlEntityDecoder.js';\nconst renderDeclarationNode = (declaration, children, childDeclarations) => {\n const {\n type,\n props = {}\n } = declaration;\n if (props.children && Array.isArray(props.children) && childDeclarations) {\n const {\n children: _childrenToRemove,\n ...propsWithoutChildren\n } = props;\n return React.createElement(type, propsWithoutChildren, ...children);\n }\n if (children.length === 0) {\n return React.createElement(type, props);\n }\n if (children.length === 1) {\n return React.createElement(type, props, children[0]);\n }\n return React.createElement(type, props, ...children);\n};\nexport const renderTranslation = (translation, declarations = []) => {\n if (!translation) {\n return [];\n }\n const tokens = tokenize(translation);\n const result = [];\n const stack = [];\n const literalTagNumbers = new Set();\n const getCurrentDeclarations = () => {\n if (stack.length === 0) {\n return declarations;\n }\n const parentFrame = stack[stack.length - 1];\n if (parentFrame.declaration.props?.children && Array.isArray(parentFrame.declaration.props.children)) {\n return parentFrame.declaration.props.children;\n }\n return parentFrame.declarations;\n };\n tokens.forEach(token => {\n switch (token.type) {\n case 'Text':\n {\n const decoded = decodeHtmlEntities(token.value);\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(decoded);\n }\n break;\n case 'TagOpen':\n {\n const {\n tagNumber\n } = token;\n const currentDeclarations = getCurrentDeclarations();\n const declaration = currentDeclarations[tagNumber];\n if (!declaration) {\n literalTagNumbers.add(tagNumber);\n const literalText = `<${tagNumber}>`;\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(literalText);\n break;\n }\n stack.push({\n tagNumber,\n children: [],\n position: token.position,\n declaration,\n declarations: currentDeclarations\n });\n }\n break;\n case 'TagClose':\n {\n const {\n tagNumber\n } = token;\n if (literalTagNumbers.has(tagNumber)) {\n const literalText = `</${tagNumber}>`;\n const literalTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n literalTargetArray.push(literalText);\n literalTagNumbers.delete(tagNumber);\n break;\n }\n if (stack.length === 0) {\n throw new TranslationParserError(`Unexpected closing tag </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const frame = stack.pop();\n if (frame.tagNumber !== tagNumber) {\n throw new TranslationParserError(`Mismatched tags: expected </${frame.tagNumber}> but got </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const element = renderDeclarationNode(frame.declaration, frame.children, frame.declarations);\n const elementTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n elementTargetArray.push(element);\n }\n break;\n }\n });\n if (stack.length > 0) {\n const unclosed = stack[stack.length - 1];\n throw new TranslationParserError(`Unclosed tag <${unclosed.tagNumber}> at position ${unclosed.position}`, unclosed.position, translation);\n }\n return result;\n};","import React from 'react';\nimport { warn, warnOnce, isString } from './utils.js';\nimport { getI18n } from './i18nInstance.js';\nimport { renderTranslation } from './IcuTransUtils/index.js';\nexport function IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', `IcuTrans: You need to pass in an i18next instance using i18nextReactModule`, {\n i18nKey\n });\n return React.createElement(React.Fragment, {}, defaultTranslation);\n }\n const t = tFromProps || i18n.t?.bind(i18n) || (k => k);\n let namespaces = ns || t.ns || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n let mergedValues = values;\n if (i18n.options?.interpolation?.defaultVariables) {\n mergedValues = values && Object.keys(values).length > 0 ? {\n ...values,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n }\n const translation = t(i18nKey, {\n defaultValue: defaultTranslation,\n ...mergedValues,\n ns: namespaces\n });\n try {\n const rendered = renderTranslation(translation, content);\n return React.createElement(React.Fragment, {}, ...rendered);\n } catch (error) {\n warn(i18n, 'ICU_TRANS_RENDER_ERROR', `IcuTrans component error for key \"${i18nKey}\": ${error.message}`, {\n i18nKey,\n error\n });\n return React.createElement(React.Fragment, {}, translation);\n }\n}\nIcuTransWithoutContext.displayName = 'IcuTransWithoutContext';","import { createElement } from 'react';\nimport { useSSR } from './useSSR.js';\nimport { composeInitialProps } from './context.js';\nimport { getDisplayName } from './utils.js';\nexport const withSSR = () => function Extend(WrappedComponent) {\n function I18nextWithSSR({\n initialI18nStore,\n initialLanguage,\n ...rest\n }) {\n useSSR(initialI18nStore, initialLanguage);\n return createElement(WrappedComponent, {\n ...rest\n });\n }\n I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);\n I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;\n I18nextWithSSR.WrappedComponent = WrappedComponent;\n return I18nextWithSSR;\n};","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n if (!i18n) {\n console.warn('react-i18next:: getInitialProps: You will need to pass in an i18next instance by using initReactI18next');\n return {};\n }\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};","import { Fragment, isValidElement, cloneElement, createElement, Children } from 'react';\nimport { keyFromSelector } from 'i18next';\nimport HTML from 'html-parse-stringify';\nimport { isObject, isString, warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\nimport { unescape } from './unescape.js';\nconst hasChildren = (node, checkLength) => {\n if (!node) return false;\n const base = node.props?.children ?? node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n};\nconst getChildren = node => {\n if (!node) return [];\n const children = node.props?.children ?? node.children;\n return node.props?.i18nIsDynamicList ? getAsArray(children) : children;\n};\nconst hasValidReactChildren = children => Array.isArray(children) && children.every(isValidElement);\nconst getAsArray = data => Array.isArray(data) ? data : [data];\nconst mergeProps = (source, target) => {\n const newTarget = {\n ...target\n };\n newTarget.props = {\n ...target.props,\n ...source.props\n };\n return newTarget;\n};\nconst getValuesFromChildren = children => {\n const values = {};\n if (!children) return values;\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(values, child);\n });\n };\n getData(children);\n return values;\n};\nexport const nodesToString = (children, i18nOptions, i18n, i18nKey) => {\n if (!children) return '';\n let stringNode = '';\n const childrenArray = getAsArray(children);\n const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];\n childrenArray.forEach((child, childIndex) => {\n if (isString(child)) {\n stringNode += `${child}`;\n return;\n }\n if (isValidElement(child)) {\n const {\n props,\n type\n } = child;\n const childPropsCount = Object.keys(props).length;\n const shouldKeepChild = keepArray.indexOf(type) > -1;\n const childChildren = props.children;\n if (!childChildren && shouldKeepChild && !childPropsCount) {\n stringNode += `<${type}/>`;\n return;\n }\n if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {\n stringNode += `<${childIndex}></${childIndex}>`;\n return;\n }\n if (shouldKeepChild && childPropsCount <= 1) {\n const cnt = isString(childChildren) ? childChildren : nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${type}>${cnt}</${type}>`;\n return;\n }\n const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${childIndex}>${content}</${childIndex}>`;\n return;\n }\n if (child === null) {\n warn(i18n, 'TRANS_NULL_VALUE', `Passed in a null value as child`, {\n i18nKey\n });\n return;\n }\n if (isObject(child)) {\n const {\n format,\n ...clone\n } = child;\n const keys = Object.keys(clone);\n if (keys.length === 1) {\n const value = format ? `${keys[0]}, ${format}` : keys[0];\n stringNode += `{{${value}}}`;\n return;\n }\n warn(i18n, 'TRANS_INVALID_OBJ', `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {\n i18nKey,\n child\n });\n return;\n }\n warn(i18n, 'TRANS_INVALID_VAR', `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {\n i18nKey,\n child\n });\n });\n return stringNode;\n};\nconst escapeLiteralLessThan = (str, keepArray = [], knownComponentsMap = {}) => {\n if (!str) return str;\n const knownNames = Object.keys(knownComponentsMap);\n const allValidNames = [...keepArray, ...knownNames];\n let result = '';\n let i = 0;\n while (i < str.length) {\n if (str[i] === '<') {\n let isValidTag = false;\n const closingMatch = str.slice(i).match(/^<\\/(\\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);\n if (closingMatch) {\n const tagName = closingMatch[1];\n if (/^\\d+$/.test(tagName) || allValidNames.includes(tagName)) {\n isValidTag = true;\n result += closingMatch[0];\n i += closingMatch[0].length;\n }\n }\n if (!isValidTag) {\n const openingMatch = str.slice(i).match(/^<(\\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\\s+[\\w-]+(?:=(?:\"[^\"]*\"|'[^']*'|[^\\s>]+))?)*\\s*(\\/)?>/);\n if (openingMatch) {\n const tagName = openingMatch[1];\n if (/^\\d+$/.test(tagName) || allValidNames.includes(tagName)) {\n isValidTag = true;\n result += openingMatch[0];\n i += openingMatch[0].length;\n }\n }\n }\n if (!isValidTag) {\n result += '&lt;';\n i += 1;\n }\n } else {\n result += str[i];\n i += 1;\n }\n }\n return result;\n};\nconst renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {\n if (targetString === '') return [];\n const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map(keep => `<${keep}`).join('|')).test(targetString);\n if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];\n const data = knownComponentsMap ?? {};\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);\n });\n };\n getData(children);\n const escapedString = escapeLiteralLessThan(targetString, keepArray, data);\n const ast = HTML.parse(`<0>${escapedString}</0>`);\n const opts = {\n ...data,\n ...combinedTOpts\n };\n const renderInner = (child, node, rootReactNode) => {\n const childs = getChildren(child);\n const mappedChildren = mapAST(childs, node.children, rootReactNode);\n return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;\n };\n const pushTranslatedJSX = (child, inner, mem, i, isVoid) => {\n if (child.dummy) {\n child.children = inner;\n mem.push(cloneElement(child, {\n key: i\n }, isVoid ? undefined : inner));\n } else {\n mem.push(...Children.map([child], c => {\n const INTERNAL_DYNAMIC_MARKER = 'data-i18n-is-dynamic-list';\n const override = {\n key: i,\n [INTERNAL_DYNAMIC_MARKER]: undefined\n };\n if (c && c.props) {\n Object.keys(c.props).forEach(k => {\n if (k === 'ref' || k === 'children' || k === 'i18nIsDynamicList' || k === INTERNAL_DYNAMIC_MARKER) return;\n override[k] = c.props[k];\n });\n }\n return cloneElement(c, override, isVoid ? null : inner);\n }));\n }\n };\n const mapAST = (reactNode, astNode, rootReactNode) => {\n const reactNodes = getAsArray(reactNode);\n const astNodes = getAsArray(astNode);\n return astNodes.reduce((mem, node, i) => {\n const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n if (node.type === 'tag') {\n let tmp = reactNodes[parseInt(node.name, 10)];\n if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];\n if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];\n if (!tmp) tmp = {};\n const props = {\n ...node.attrs\n };\n if (shouldUnescape) {\n Object.keys(props).forEach(p => {\n const val = props[p];\n if (isString(val)) {\n props[p] = unescape(val);\n }\n });\n }\n const child = Object.keys(props).length !== 0 ? mergeProps({\n props\n }, tmp) : tmp;\n const isElement = isValidElement(child);\n const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;\n const isKnownComponent = isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);\n if (isString(child)) {\n const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n mem.push(value);\n } else if (hasChildren(child) || isValidTranslationWithChildren) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (isEmptyTransWithHTML) {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (Number.isNaN(parseFloat(node.name))) {\n if (isKnownComponent) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i, node.voidElement);\n } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n if (node.voidElement) {\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }));\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }, inner));\n }\n } else if (node.voidElement) {\n mem.push(`<${node.name} />`);\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(`<${node.name}>${inner}</${node.name}>`);\n }\n } else if (isObject(child) && !isElement) {\n const content = node.children[0] ? translationContent : null;\n if (content) mem.push(content);\n } else {\n pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);\n }\n } else if (node.type === 'text') {\n const wrapTextNodes = i18nOptions.transWrapTextNodes;\n const unescapeFn = typeof i18nOptions.unescape === 'function' ? i18nOptions.unescape : getDefaults().unescape;\n const content = shouldUnescape ? unescapeFn(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n if (wrapTextNodes) {\n mem.push(createElement(wrapTextNodes, {\n key: `${node.name}-${i}`\n }, content));\n } else {\n mem.push(content);\n }\n }\n return mem;\n }, []);\n };\n const result = mapAST([{\n dummy: true,\n children: children || []\n }], ast, getAsArray(children || []));\n return getChildren(result[0]);\n};\nconst fixComponentProps = (component, index, translation) => {\n const componentKey = component.key || index;\n const comp = cloneElement(component, {\n key: componentKey\n });\n if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {\n return comp;\n }\n function Componentized() {\n return createElement(Fragment, null, comp);\n }\n return createElement(Componentized, {\n key: componentKey\n });\n};\nconst generateArrayComponents = (components, translation) => components.map((c, index) => fixComponentProps(c, index, translation));\nconst generateObjectComponents = (components, translation) => {\n const componentMap = {};\n Object.keys(components).forEach(c => {\n Object.assign(componentMap, {\n [c]: fixComponentProps(components[c], c, translation)\n });\n });\n return componentMap;\n};\nconst generateComponents = (components, translation, i18n, i18nKey) => {\n if (!components) return null;\n if (Array.isArray(components)) {\n return generateArrayComponents(components, translation);\n }\n if (isObject(components)) {\n return generateObjectComponents(components, translation);\n }\n warnOnce(i18n, 'TRANS_INVALID_COMPONENTS', `<Trans /> \"components\" prop expects an object or array`, {\n i18nKey\n });\n return null;\n};\nconst isComponentsMap = object => {\n if (!isObject(object)) return false;\n if (Array.isArray(object)) return false;\n return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);\n};\nexport function Trans({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n}) {\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', `Trans: You need to pass in an i18next instance using i18nextReactModule`, {\n i18nKey\n });\n return children;\n }\n const t = tFromProps || i18n.t.bind(i18n) || (k => k);\n const reactI18nextOptions = {\n ...getDefaults(),\n ...i18n.options?.react\n };\n let namespaces = ns || t.ns || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n const {\n transDefaultProps\n } = reactI18nextOptions;\n const mergedTOptions = transDefaultProps?.tOptions ? {\n ...transDefaultProps.tOptions,\n ...tOptions\n } : tOptions;\n const mergedShouldUnescape = shouldUnescape ?? transDefaultProps?.shouldUnescape;\n const mergedValues = transDefaultProps?.values ? {\n ...transDefaultProps.values,\n ...values\n } : values;\n const mergedComponents = transDefaultProps?.components ? {\n ...transDefaultProps.components,\n ...components\n } : components;\n const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);\n const defaultValue = defaults || mergedTOptions?.defaultValue || nodeAsString || reactI18nextOptions.transEmptyNodeValue || (typeof i18nKey === 'function' ? keyFromSelector(i18nKey) : i18nKey);\n const {\n hashTransKey\n } = reactI18nextOptions;\n const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);\n if (i18n.options?.interpolation?.defaultVariables) {\n values = mergedValues && Object.keys(mergedValues).length > 0 ? {\n ...mergedValues,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n } else {\n values = mergedValues;\n }\n const valuesFromChildren = getValuesFromChildren(children);\n if (valuesFromChildren && typeof valuesFromChildren.count === 'number' && count === undefined) {\n count = valuesFromChildren.count;\n }\n const interpolationOverride = values || count !== undefined && !i18n.options?.interpolation?.alwaysFormat || !children ? mergedTOptions.interpolation : {\n interpolation: {\n ...mergedTOptions.interpolation,\n prefix: '#$?',\n suffix: '?$#'\n }\n };\n const combinedTOpts = {\n ...mergedTOptions,\n context: context || mergedTOptions.context,\n count,\n ...values,\n ...interpolationOverride,\n defaultValue,\n ns: namespaces\n };\n let translation = key ? t(key, combinedTOpts) : defaultValue;\n if (translation === key && defaultValue) translation = defaultValue;\n const generatedComponents = generateComponents(mergedComponents, translation, i18n, i18nKey);\n let indexedChildren = generatedComponents || children;\n let componentsMap = null;\n if (isComponentsMap(generatedComponents)) {\n componentsMap = generatedComponents;\n indexedChildren = children;\n }\n const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, mergedShouldUnescape);\n const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;\n return useAsParent ? createElement(useAsParent, additionalProps, content) : content;\n}","export { Trans } from './Trans.js';\nexport { Trans as TransWithoutContext } from './TransWithoutContext.js';\nexport { IcuTrans } from './IcuTrans.js';\nexport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nexport { useTranslation } from './useTranslation.js';\nexport { withTranslation } from './withTranslation.js';\nexport { Translation } from './Translation.js';\nexport { I18nextProvider } from './I18nextProvider.js';\nexport { withSSR } from './withSSR.js';\nexport { useSSR } from './useSSR.js';\nexport { initReactI18next } from './initReactI18next.js';\nexport { setDefaults, getDefaults } from './defaults.js';\nexport { setI18n, getI18n } from './i18nInstance.js';\nexport { nodesToString } from './Trans.js';\nexport { I18nContext, composeInitialProps, getInitialProps } from './context.js';\nexport const date = () => '';\nexport const time = () => '';\nexport const number = () => '';\nexport const select = () => '';\nexport const plural = () => '';\nexport const selectOrdinal = () => '';","// This file must be bundled in the app's client layer, it shouldn't be directly\n// imported by the server.\n\nexport { callServer } from 'next/dist/client/app-call-server'\nexport { findSourceMapURL } from 'next/dist/client/app-find-source-map-url'\n\n// A noop wrapper to let the Flight client create the server reference.\n// See also: https://github.com/facebook/react/pull/26632\n// eslint-disable-next-line import/no-extraneous-dependencies\nexport { createServerReference } from 'react-server-dom-webpack/client'\n","export type UUID = string;\n\n/**\n * Base model providing identity and timestamp fields for all domain entities\n */\nexport type BaseEntity = {\n /**\n * Unique identifier for this entity (UUID v4 format)\n */\n id: UUID;\n /**\n * Timestamp when this entity was created (read-only, set by system)\n */\n createdAt: any;\n /**\n * Timestamp when this entity was last updated (read-only, set by system)\n */\n updatedAt: any;\n};\n\n/**\n * Entity that supports soft deletion with a deletedAt timestamp\n */\nexport type SoftDeletableEntity = BaseEntity & {\n /**\n * Timestamp when this entity was soft-deleted (null if not deleted)\n */\n deletedAt?: any;\n};\n\n/**\n * Entity with audit trail tracking who created and modified it\n */\nexport type AuditableEntity = BaseEntity & {\n /**\n * UUID of the user who created this entity (null for system-created)\n */\n createdBy?: UUID;\n /**\n * UUID of the user who last updated this entity (null for system-updated)\n */\n updatedBy?: UUID;\n};\n\n/**\n * Request model for conversational AI interactions\n */\nexport type AskRequest = {\n /**\n * The natural language query to be processed by the AI agent\n */\n query: string;\n};\n\n/**\n * Response model for conversational AI interactions\n */\nexport type AskResponse = {\n /**\n * The AI-generated response content (typically Markdown-formatted)\n */\n content: string;\n /**\n * Whether the operation completed successfully\n */\n success: boolean;\n};\n\n/**\n * Acceptance criterion for validating completion of an action item\n */\nexport type AcceptanceCriteria = BaseEntity & {\n /**\n * Description of what must be true for this criterion to be satisfied\n */\n description: string;\n /**\n * Whether this criterion has been verified as complete\n */\n verified: boolean;\n};\n\n/**\n * Granular, atomic step within a Task representing a single unit of work\n */\nexport type ActionItem = BaseEntity & {\n /**\n * Short name describing the action (verb-noun pattern recommended)\n */\n name: string;\n /**\n * Detailed description of the work to be performed\n */\n description: string;\n /**\n * Git branch name where this action item's work is performed\n */\n branch: string;\n /**\n * Action items that must complete before this one can start\n */\n dependsOn: ActionItem[];\n /**\n * Acceptance criteria for verifying completion of this action item\n */\n acceptanceCriteria: AcceptanceCriteria[];\n};\nexport enum ArtifactCategory {\n PRD = 'PRD',\n API = 'API',\n Design = 'Design',\n Other = 'Other',\n}\nexport enum ArtifactFormat {\n Markdown = 'md',\n Text = 'txt',\n Yaml = 'yaml',\n Other = 'Other',\n}\nexport enum ArtifactState {\n Todo = 'Todo',\n Elaborating = 'Elaborating',\n Done = 'Done',\n}\n\n/**\n * Generated document or file attached to a Feature\n */\nexport type Artifact = BaseEntity & {\n /**\n * Human-readable name identifying this artifact\n */\n name: string;\n /**\n * Type description providing additional context (e.g., 'documentation', 'api-spec')\n */\n type: string;\n /**\n * Category classification (PRD, API, Design, or Other)\n */\n category: ArtifactCategory;\n /**\n * File format for the artifact content\n */\n format: ArtifactFormat;\n /**\n * Brief summary of the artifact's content and purpose\n */\n summary: string;\n /**\n * Relative file path where the artifact is stored\n */\n path: string;\n /**\n * Current state in the artifact generation lifecycle\n */\n state: ArtifactState;\n};\nexport enum MessageRole {\n Assistant = 'assistant',\n User = 'user',\n}\n\n/**\n * A message in a conversation thread between user and AI assistant\n */\nexport type Message = BaseEntity & {\n /**\n * Role of the message sender (User or Assistant)\n */\n role: MessageRole;\n /**\n * The text content of the message\n */\n content: string;\n /**\n * Optional choices presented to the user for selection\n */\n options?: string[];\n /**\n * Optional user's freeform text answer\n */\n answer?: string;\n /**\n * Optional index of the selected option from the options array (0-based)\n */\n selectedOption?: number;\n};\nexport enum RequirementType {\n Functional = 'Functional',\n NonFunctional = 'NonFunctional',\n}\nexport enum ResearchState {\n NotStarted = 'NotStarted',\n Running = 'Running',\n Finished = 'Finished',\n}\n\n/**\n * A research topic exploration for gathering technical information\n */\nexport type Research = BaseEntity & {\n /**\n * The topic or subject being researched\n */\n topic: string;\n /**\n * Current state of the research activity (NotStarted, Running, Finished)\n */\n state: ResearchState;\n /**\n * Summary of research findings and recommendations\n */\n summary: string;\n /**\n * Artifacts produced during the research activity\n */\n artifacts: Artifact[];\n};\n\n/**\n * A user or inferred requirement attached to a feature\n */\nexport type Requirement = BaseEntity & {\n /**\n * URL-friendly short identifier for the requirement\n */\n slug: string;\n /**\n * The original user query that generated this requirement\n */\n userQuery: string;\n /**\n * Classification type of the requirement (Functional or NonFunctional)\n */\n type: RequirementType;\n /**\n * Research activities conducted to clarify or validate this requirement\n */\n researches: Research[];\n};\n\n/**\n * AI model configuration for the SDLC agent\n */\nexport type ModelConfiguration = {\n /**\n * Default model identifier for all agents\n */\n default: string;\n};\nexport enum Language {\n English = 'en',\n Ukrainian = 'uk',\n Russian = 'ru',\n Portuguese = 'pt',\n Spanish = 'es',\n Arabic = 'ar',\n Hebrew = 'he',\n French = 'fr',\n German = 'de',\n}\n\n/**\n * User profile information\n */\nexport type UserProfile = {\n /**\n * User's display name (optional)\n */\n name?: string;\n /**\n * User's email address (optional)\n */\n email?: string;\n /**\n * GitHub username (optional, for PR attribution)\n */\n githubUsername?: string;\n /**\n * Preferred UI language (default: English)\n */\n preferredLanguage?: Language;\n};\nexport enum EditorType {\n VsCode = 'vscode',\n Cursor = 'cursor',\n Windsurf = 'windsurf',\n Zed = 'zed',\n Antigravity = 'antigravity',\n}\nexport enum TerminalType {\n System = 'system',\n Warp = 'warp',\n ITerm2 = 'iterm2',\n Alacritty = 'alacritty',\n Kitty = 'kitty',\n}\n\n/**\n * Environment and tooling preferences\n */\nexport type EnvironmentConfig = {\n /**\n * Preferred code editor\n */\n defaultEditor: EditorType;\n /**\n * Preferred shell\n */\n shellPreference: string;\n /**\n * Preferred terminal emulator\n */\n terminalPreference: TerminalType;\n /**\n * Default directory for cloning GitHub repositories (e.g. ~/repos)\n */\n defaultCloneDirectory?: string;\n};\n\n/**\n * System configuration\n */\nexport type SystemConfig = {\n /**\n * CLI auto-update preference\n */\n autoUpdate: boolean;\n /**\n * Log level for CLI output\n */\n logLevel: string;\n};\n\n/**\n * Default approval gate settings for new features\n */\nexport type ApprovalGateDefaults = {\n /**\n * Auto-approve requirements phase (default: false)\n */\n allowPrd: boolean;\n /**\n * Auto-approve planning phase (default: false)\n */\n allowPlan: boolean;\n /**\n * Auto-approve merge phase (default: false)\n */\n allowMerge: boolean;\n /**\n * Push branch to remote on implementation complete (default: false)\n */\n pushOnImplementationComplete: boolean;\n};\n\n/**\n * Per-stage timeout overrides for the feature agent workflow (all values in milliseconds)\n */\nexport type StageTimeouts = {\n /**\n * Timeout for the analyze stage (default: 600000)\n */\n analyzeMs?: number;\n /**\n * Timeout for the requirements stage (default: 600000)\n */\n requirementsMs?: number;\n /**\n * Timeout for the research stage (default: 600000)\n */\n researchMs?: number;\n /**\n * Timeout for the plan stage (default: 600000)\n */\n planMs?: number;\n /**\n * Timeout for the implement stage (default: 1800000)\n */\n implementMs?: number;\n /**\n * Timeout for the fast-implement stage (default: 1800000)\n */\n fastImplementMs?: number;\n /**\n * Timeout for the merge stage (default: 1800000)\n */\n mergeMs?: number;\n};\n\n/**\n * Timeout overrides for the analyze-repository agent (all values in milliseconds)\n */\nexport type AnalyzeRepoTimeouts = {\n /**\n * Timeout for the repository analysis stage (default: 600000)\n */\n analyzeMs?: number;\n};\nexport enum SkillSourceType {\n Local = 'local',\n Remote = 'remote',\n}\n\n/**\n * A skill source for injection into feature worktrees\n */\nexport type SkillSource = {\n /**\n * Unique skill directory name (e.g. 'architecture-reviewer')\n */\n name: string;\n /**\n * How this skill is provisioned (local copy or remote install)\n */\n type: SkillSourceType;\n /**\n * Source path (local) or npm package/URL (remote)\n */\n source: string;\n /**\n * Remote skill name passed to --skill flag (remote type only)\n */\n remoteSkillName?: string;\n};\n\n/**\n * Skill injection configuration for feature worktrees\n */\nexport type SkillInjectionConfig = {\n /**\n * Whether skill injection is enabled (default: false, opt-in)\n */\n enabled: boolean;\n /**\n * List of skills to inject into feature worktrees\n */\n skills: SkillSource[];\n};\n\n/**\n * Global workflow configuration defaults\n */\nexport type WorkflowConfig = {\n /**\n * Create PR on implementation complete (default: false)\n */\n openPrOnImplementationComplete: boolean;\n /**\n * Default approval gate preferences for new features\n */\n approvalGateDefaults: ApprovalGateDefaults;\n /**\n * Enable CI watch/fix loop after push (default: true)\n */\n ciWatchEnabled: boolean;\n /**\n * Maximum number of CI fix/push/watch iterations before giving up (default: 3)\n */\n ciMaxFixAttempts?: number;\n /**\n * Timeout in milliseconds for watching a CI run (default: 600000 = 10 minutes)\n */\n ciWatchTimeoutMs?: number;\n /**\n * Maximum characters of CI failure logs to pass to the executor (default: 50000)\n */\n ciLogMaxChars?: number;\n /**\n * Poll interval in seconds for gh run watch (default: 30)\n */\n ciWatchPollIntervalSeconds?: number;\n /**\n * Per-stage timeout overrides for the feature agent (default: 600000 = 10 minutes per stage)\n */\n stageTimeouts?: StageTimeouts;\n /**\n * Timeout overrides for the analyze-repository agent (default: 600000 = 10 minutes)\n */\n analyzeRepoTimeouts?: AnalyzeRepoTimeouts;\n /**\n * Enable evidence collection after implementation (default: false)\n */\n enableEvidence: boolean;\n /**\n * Commit evidence to PR (default: false, requires enableEvidence)\n */\n commitEvidence: boolean;\n /**\n * Maximum number of evidence collection retry attempts when validation fails (default: 3)\n */\n evidenceRetries?: number;\n /**\n * Hide CI status badges from UI (default: true)\n */\n hideCiStatus?: boolean;\n /**\n * Default new features to fast mode (default: true)\n */\n defaultFastMode: boolean;\n /**\n * Minutes after completion before auto-archiving a feature (default: 10, 0 = disabled)\n */\n autoArchiveDelayMinutes?: number;\n /**\n * Skill injection configuration (optional, disabled by default)\n */\n skillInjection?: SkillInjectionConfig;\n};\nexport enum AgentType {\n ClaudeCode = 'claude-code',\n CodexCli = 'codex-cli',\n CopilotCli = 'copilot-cli',\n GeminiCli = 'gemini-cli',\n Aider = 'aider',\n Continue = 'continue',\n Cursor = 'cursor',\n Dev = 'dev',\n}\nexport enum AgentAuthMethod {\n Session = 'session',\n Token = 'token',\n}\n\n/**\n * AI coding agent configuration\n */\nexport type AgentConfig = {\n /**\n * Selected AI coding agent\n */\n type: AgentType;\n /**\n * Authentication method for the agent\n */\n authMethod: AgentAuthMethod;\n /**\n * API token for token-based auth (optional)\n */\n token?: string;\n};\n\n/**\n * Notification channel enable/disable configuration\n */\nexport type NotificationChannelConfig = {\n /**\n * Whether this notification channel is enabled\n */\n enabled: boolean;\n};\n\n/**\n * Notification event type filters\n */\nexport type NotificationEventConfig = {\n /**\n * Notify when agent starts running\n */\n agentStarted: boolean;\n /**\n * Notify when agent completes a workflow phase\n */\n phaseCompleted: boolean;\n /**\n * Notify when agent is waiting for human approval\n */\n waitingApproval: boolean;\n /**\n * Notify when agent completes successfully\n */\n agentCompleted: boolean;\n /**\n * Notify when agent execution fails\n */\n agentFailed: boolean;\n /**\n * Notify when a pull request is merged on GitHub\n */\n prMerged: boolean;\n /**\n * Notify when a pull request is closed without merging on GitHub\n */\n prClosed: boolean;\n /**\n * Notify when pull request CI checks pass\n */\n prChecksPassed: boolean;\n /**\n * Notify when pull request CI checks fail\n */\n prChecksFailed: boolean;\n /**\n * Notify when pull request has merge conflicts\n */\n prBlocked: boolean;\n /**\n * Notify when feature is ready for merge review\n */\n mergeReviewReady: boolean;\n};\n\n/**\n * Notification preferences for agent lifecycle events\n */\nexport type NotificationPreferences = {\n /**\n * In-app toast notification channel (Sonner)\n */\n inApp: NotificationChannelConfig;\n /**\n * Browser push notification channel (Web Notifications API)\n */\n browser: NotificationChannelConfig;\n /**\n * Desktop OS notification channel (node-notifier)\n */\n desktop: NotificationChannelConfig;\n /**\n * Which event types trigger notifications\n */\n events: NotificationEventConfig;\n};\n\n/**\n * Feature flag toggles for runtime feature control\n */\nexport type FeatureFlags = {\n /**\n * Enable Skills navigation and functionality in the web UI\n */\n skills: boolean;\n /**\n * Enable environment deployment features in the web UI\n */\n envDeploy: boolean;\n /**\n * Enable debug UI elements and verbose client-side logging\n */\n debug: boolean;\n /**\n * Enable GitHub repository import in the web UI\n */\n githubImport: boolean;\n /**\n * Enable adopt branch feature to import existing branches as tracked features\n */\n adoptBranch: boolean;\n /**\n * Enable git rebase-on-main and sync-main operations in the web UI\n */\n gitRebaseSync: boolean;\n /**\n * Use the built-in React file manager instead of the native OS folder picker\n */\n reactFileManager: boolean;\n /**\n * Enable the Inventory page showing all repositories and features\n */\n inventory: boolean;\n};\n\n/**\n * Interactive agent chat tab configuration\n */\nexport type InteractiveAgentConfig = {\n /**\n * Whether the interactive agent Chat tab is enabled (default: true)\n */\n enabled: boolean;\n /**\n * Idle timeout in minutes before auto-stopping the agent (default: 15, range: 1-120)\n */\n autoTimeoutMinutes: number;\n /**\n * Maximum number of concurrent active interactive sessions (default: 3)\n */\n maxConcurrentSessions: number;\n};\n\n/**\n * FAB (floating action button) layout configuration\n */\nexport type FabLayoutConfig = {\n /**\n * Swap Create and Chat FAB positions (default: false)\n */\n swapPosition: boolean;\n};\n\n/**\n * Global Shep platform settings (singleton)\n */\nexport type Settings = BaseEntity & {\n /**\n * AI model configuration for different agents\n */\n models: ModelConfiguration;\n /**\n * User profile information\n */\n user: UserProfile;\n /**\n * Environment and tooling preferences\n */\n environment: EnvironmentConfig;\n /**\n * System-level parameters\n */\n system: SystemConfig;\n /**\n * AI coding agent selection and authentication\n */\n agent: AgentConfig;\n /**\n * Notification preferences for agent lifecycle events\n */\n notifications: NotificationPreferences;\n /**\n * Global workflow configuration defaults\n */\n workflow: WorkflowConfig;\n /**\n * Feature flag toggles for runtime feature control\n */\n featureFlags?: FeatureFlags;\n /**\n * Whether first-run onboarding has been completed (default: false)\n */\n onboardingComplete: boolean;\n /**\n * Interactive agent chat configuration (optional, defaults applied at runtime)\n */\n interactiveAgent?: InteractiveAgentConfig;\n /**\n * FAB layout configuration (optional, defaults applied at runtime)\n */\n fabLayout?: FabLayoutConfig;\n};\nexport enum TaskState {\n Todo = 'Todo',\n WIP = 'Work in Progress',\n Done = 'Done',\n Review = 'Review',\n}\n\n/**\n * A discrete unit of work within an implementation plan\n */\nexport type Task = BaseEntity & {\n /**\n * Optional human-readable title for the task\n */\n title?: string;\n /**\n * Optional detailed description of what the task entails\n */\n description?: string;\n /**\n * Tasks that must be completed before this task can begin\n */\n dependsOn: Task[];\n /**\n * Granular action items that comprise this task\n */\n actionItems: ActionItem[];\n /**\n * The base branch from which this task's working branch was created\n */\n baseBranch: string;\n /**\n * Current state of task execution (Todo, WIP, Review, Done)\n */\n state: TaskState;\n /**\n * Git branch where work for this task is performed\n */\n branch: string;\n};\n\n/**\n * A significant event in the feature's timeline tracking user interactions and milestones\n */\nexport type TimelineEvent = BaseEntity & {\n /**\n * The user query or action that triggered this timeline event\n */\n userQuery: string;\n /**\n * Timestamp when this event occurred (read-only, set by system)\n */\n timestamp: any;\n};\nexport enum PlanState {\n Requirements = 'Requirements',\n ClarificationRequired = 'ClarificationRequired',\n Ready = 'Ready',\n}\n\n/**\n * Individual task representation within a Gantt chart visualization\n */\nexport type GanttTask = {\n /**\n * Unique identifier for the Gantt task\n */\n id: UUID;\n /**\n * Display name of the task shown in the Gantt chart\n */\n name: string;\n /**\n * Scheduled start time for the task\n */\n start: any;\n /**\n * Scheduled end time for the task\n */\n end: any;\n /**\n * IDs of tasks that this task depends on (must complete before this task can start)\n */\n dependencies: UUID[];\n /**\n * Completion progress as a fraction (0.0 = not started, 1.0 = complete)\n */\n progress: number;\n};\n\n/**\n * Container for Gantt chart visualization data including tasks and time bounds\n */\nexport type GanttViewData = {\n /**\n * Collection of tasks to display in the Gantt chart\n */\n tasks: GanttTask[];\n /**\n * Start date of the overall work plan (left boundary of the chart)\n */\n startDate: any;\n /**\n * End date of the overall work plan (right boundary of the chart)\n */\n endDate: any;\n};\n\n/**\n * Implementation plan for a feature containing tasks, artifacts, and requirements\n */\nexport type Plan = BaseEntity & {\n /**\n * High-level overview describing the implementation approach\n */\n overview: string;\n /**\n * User and inferred requirements that this plan addresses\n */\n requirements: Requirement[];\n /**\n * Documents and artifacts to be produced as part of this plan\n */\n artifacts: Artifact[];\n /**\n * Work items (tasks) that comprise this implementation plan\n */\n tasks: Task[];\n /**\n * Current state of the plan execution lifecycle\n */\n state: PlanState;\n /**\n * Optional Gantt chart visualization data for work scheduling\n */\n workPlan?: GanttViewData;\n};\nexport enum SdlcLifecycle {\n Started = 'Started',\n Analyze = 'Analyze',\n Requirements = 'Requirements',\n Research = 'Research',\n Planning = 'Planning',\n Implementation = 'Implementation',\n Review = 'Review',\n Maintain = 'Maintain',\n Blocked = 'Blocked',\n Pending = 'Pending',\n Deleting = 'Deleting',\n AwaitingUpstream = 'AwaitingUpstream',\n Archived = 'Archived',\n}\n\n/**\n * Configuration for human-in-the-loop approval gates\n */\nexport type ApprovalGates = {\n /**\n * Skip human review after requirements phase\n */\n allowPrd: boolean;\n /**\n * Skip human review after plan phase\n */\n allowPlan: boolean;\n /**\n * Skip human review after merge phase\n */\n allowMerge: boolean;\n};\nexport enum PrStatus {\n Open = 'Open',\n Merged = 'Merged',\n Closed = 'Closed',\n}\nexport enum CiStatus {\n Pending = 'Pending',\n Success = 'Success',\n Failure = 'Failure',\n}\n\n/**\n * Record of one CI fix attempt in the watch/fix loop\n */\nexport type CiFixRecord = {\n /**\n * 1-based attempt number\n */\n attempt: number;\n /**\n * ISO timestamp when this attempt started\n */\n startedAt: string;\n /**\n * First 500 chars of failure logs for this attempt\n */\n failureSummary: string;\n /**\n * Outcome of this attempt: fixed, failed, or timeout\n */\n outcome: string;\n};\n\n/**\n * Pull request tracking data for a feature\n */\nexport type PullRequest = {\n /**\n * GitHub PR URL\n */\n url: string;\n /**\n * GitHub PR number\n */\n number: number;\n /**\n * Current PR status\n */\n status: PrStatus;\n /**\n * Final commit SHA after push\n */\n commitHash?: string;\n /**\n * CI pipeline status\n */\n ciStatus?: CiStatus;\n /**\n * Number of CI fix attempts made\n */\n ciFixAttempts?: number;\n /**\n * History of CI fix attempts\n */\n ciFixHistory?: CiFixRecord[];\n /**\n * Whether the PR can be merged (false = merge conflicts)\n */\n mergeable?: boolean;\n /**\n * URL of the PR created on the upstream repo (fork-and-PR flow only)\n */\n upstreamPrUrl?: string;\n /**\n * PR number on the upstream repo\n */\n upstreamPrNumber?: number;\n /**\n * Status of the upstream PR\n */\n upstreamPrStatus?: PrStatus;\n};\n\n/**\n * File attachment metadata for a feature (value object, embedded in Feature)\n */\nexport type Attachment = {\n /**\n * Unique identifier for this attachment (UUID v4)\n */\n id: UUID;\n /**\n * Original filename of the attached file\n */\n name: string;\n /**\n * File size in bytes\n */\n size: bigint;\n /**\n * MIME type of the file (e.g. image/png, application/pdf)\n */\n mimeType: string;\n /**\n * File path relative to the repository root\n */\n path: string;\n /**\n * Timestamp when the attachment was created\n */\n createdAt: any;\n /**\n * Optional user notes or annotations for this attachment\n */\n notes?: string;\n};\n\n/**\n * Central entity tracking a piece of work through the SDLC lifecycle (Aggregate Root)\n */\nexport type Feature = SoftDeletableEntity & {\n /**\n * Human-readable name identifying this feature\n */\n name: string;\n /**\n * The exact user input that initiated this feature, preserved verbatim\n */\n userQuery: string;\n /**\n * URL-friendly identifier derived from name (unique within repository)\n */\n slug: string;\n /**\n * Detailed description explaining the feature's purpose and scope\n */\n description: string;\n /**\n * Absolute file system path to the repository\n */\n repositoryPath: string;\n /**\n * Git branch name where this feature's work is performed\n */\n branch: string;\n /**\n * Current stage in the SDLC lifecycle\n */\n lifecycle: SdlcLifecycle;\n /**\n * Conversation history with the AI assistant\n */\n messages: Message[];\n /**\n * Implementation plan containing tasks, artifacts, and requirements (optional)\n */\n plan?: Plan;\n /**\n * Generated documents and artifacts attached to this feature\n */\n relatedArtifacts: Artifact[];\n /**\n * Associated agent run ID for process tracking (optional)\n */\n agentRunId?: string;\n /**\n * Skills that were injected into this feature's worktree during creation\n */\n injectedSkills?: string[];\n /**\n * Absolute path to the feature spec directory inside the worktree\n */\n specPath?: string;\n /**\n * ID of the Repository entity this feature belongs to\n */\n repositoryId?: UUID;\n /**\n * When true, SDLC phases were skipped and the feature was implemented directly from the prompt\n */\n fast: boolean;\n /**\n * Push branch to remote after implementation (default: false)\n */\n push: boolean;\n /**\n * Create PR after implementation (default: false)\n */\n openPr: boolean;\n /**\n * Fork repo and create PR to upstream at merge time (default: false)\n */\n forkAndPr: boolean;\n /**\n * Commit specs/evidences into the repo (defaults false when forkAndPr is enabled)\n */\n commitSpecs: boolean;\n /**\n * Enable CI watch/fix loop after push (default: true)\n */\n ciWatchEnabled: boolean;\n /**\n * Enable evidence collection after implementation (default: false)\n */\n enableEvidence: boolean;\n /**\n * Inject curated skills into the feature worktree (default: false)\n */\n injectSkills: boolean;\n /**\n * Commit evidence to PR (default: false, requires enableEvidence)\n */\n commitEvidence: boolean;\n /**\n * Approval gates configuration (embedded value object)\n */\n approvalGates: ApprovalGates;\n /**\n * Absolute path to the git worktree for this feature\n */\n worktreePath?: string;\n /**\n * Pull request data (null until PR created)\n */\n pr?: PullRequest;\n /**\n * Parent feature ID for dependency tracking (optional)\n */\n parentId?: UUID;\n /**\n * Lifecycle state prior to archiving, used to restore on unarchive (only set when lifecycle is Archived)\n */\n previousLifecycle?: SdlcLifecycle;\n /**\n * Files attached by the user when creating or messaging this feature\n */\n attachments?: Attachment[];\n};\n\n/**\n * External link with title and URL\n */\nexport type RelatedLink = {\n /**\n * Human-readable title describing the linked resource\n */\n title: string;\n /**\n * URL to the external documentation, reference, or resource\n */\n url: string;\n};\n\n/**\n * Option for resolving an open question\n */\nexport type QuestionOption = {\n /**\n * The option text describing the potential approach or answer\n */\n option: string;\n /**\n * Description explaining this option's benefits and approach\n */\n description: string;\n /**\n * Whether this option was the one ultimately selected\n */\n selected: boolean;\n};\n\n/**\n * Open question with resolution via options or direct answer\n */\nexport type OpenQuestion = {\n /**\n * The question text that needs to be answered\n */\n question: string;\n /**\n * Whether this question has been resolved (false = blocking)\n */\n resolved: boolean;\n /**\n * Structured options for resolving this question (spec.yaml pattern)\n */\n options?: QuestionOption[];\n /**\n * Rationale explaining which option was selected and why\n */\n selectionRationale?: string;\n /**\n * Free-text answer or resolution (research.yaml pattern)\n */\n answer?: string;\n};\n\n/**\n * Base entity for spec artifacts with common metadata fields\n */\nexport type SpecArtifactBase = BaseEntity & {\n /**\n * Artifact title / feature name\n */\n name: string;\n /**\n * Short description of the artifact's purpose\n */\n summary: string;\n /**\n * Raw Markdown body containing the human-written spec content\n */\n content: string;\n /**\n * Key technologies mentioned or evaluated in this artifact\n */\n technologies: string[];\n /**\n * References to other spec IDs (e.g., '008-agent-configuration')\n */\n relatedFeatures: string[];\n /**\n * URLs to external documentation, references, or comparisons\n */\n relatedLinks: RelatedLink[];\n /**\n * Structured open questions for validation gate checks\n */\n openQuestions: OpenQuestion[];\n};\n\n/**\n * Technology or approach decision with rationale\n */\nexport type TechDecision = {\n /**\n * Title or name of the decision being made\n */\n title: string;\n /**\n * The chosen technology, library, or approach\n */\n chosen: string;\n /**\n * Alternative options that were considered but rejected\n */\n rejected: string[];\n /**\n * Rationale explaining why the chosen option was selected\n */\n rationale: string;\n};\n\n/**\n * Rejection feedback entry for iteration tracking\n */\nexport type RejectionFeedbackEntry = {\n /**\n * Iteration number (1-based)\n */\n iteration: number;\n /**\n * User's feedback message explaining what needs to change\n */\n message: string;\n /**\n * Which phase was rejected (e.g. 'requirements', 'plan')\n */\n phase?: string;\n /**\n * When the rejection occurred\n */\n timestamp: any;\n /**\n * File attachment paths included with the rejection feedback\n */\n attachments?: string[];\n};\n\n/**\n * Implementation phase grouping related tasks\n */\nexport type PlanPhase = {\n /**\n * Unique identifier for this phase (e.g., 'phase-1')\n */\n id: string;\n /**\n * Display name of the phase\n */\n name: string;\n /**\n * Description of what this phase accomplishes and why it's ordered this way\n */\n description?: string;\n /**\n * Whether tasks in this phase can be executed in parallel\n */\n parallel: boolean;\n /**\n * Task IDs belonging to this phase (e.g., ['task-1', 'task-2']). Optional — not present in plan.yaml phases.\n */\n taskIds?: string[];\n};\n\n/**\n * Test-Driven Development cycle phases for a task\n */\nexport type TddCycle = {\n /**\n * RED phase: tests to write FIRST (before implementation)\n */\n red: string[];\n /**\n * GREEN phase: minimal implementation to pass tests\n */\n green: string[];\n /**\n * REFACTOR phase: code improvements while keeping tests green\n */\n refactor: string[];\n};\n\n/**\n * Task definition within a spec's task breakdown\n */\nexport type SpecTask = {\n /**\n * Unique identifier for this task (e.g., 'task-1')\n */\n id: string;\n /**\n * ID of the phase this task belongs to (e.g., 'phase-1')\n */\n phaseId: string;\n /**\n * Task title or name\n */\n title: string;\n /**\n * Detailed description of what this task accomplishes\n */\n description: string;\n /**\n * Current state of the task\n */\n state: TaskState;\n /**\n * IDs of other SpecTasks that must complete before this task starts\n */\n dependencies: string[];\n /**\n * List of acceptance criteria that define task completion\n */\n acceptanceCriteria: string[];\n /**\n * TDD cycle definition for this task (if applicable)\n */\n tdd?: TddCycle;\n /**\n * Estimated effort (e.g., '2 hours', '1 day')\n */\n estimatedEffort: string;\n};\n\n/**\n * Feature specification artifact (PRD) defining requirements and scope\n */\nexport type FeatureArtifact = SpecArtifactBase & {\n /**\n * Spec number (e.g., 11 for spec 011)\n */\n number: number;\n /**\n * Git branch name for this feature (e.g., 'feat/011-feature-name')\n */\n branch: string;\n /**\n * One-line description of the feature\n */\n oneLiner: string;\n /**\n * Current phase in the SDLC lifecycle\n */\n phase: SdlcLifecycle;\n /**\n * Size estimate: XS, S, M, L, or XL\n */\n sizeEstimate: string;\n /**\n * Rejection feedback history for PRD iterations (append-only)\n */\n rejectionFeedback?: RejectionFeedbackEntry[];\n};\n\n/**\n * Research artifact documenting technical analysis and decisions\n */\nexport type ResearchArtifact = SpecArtifactBase & {\n /**\n * Structured technology decisions with rationale\n */\n decisions: TechDecision[];\n};\n\n/**\n * Technical implementation plan artifact defining strategy and file changes\n */\nexport type TechnicalPlanArtifact = SpecArtifactBase & {\n /**\n * Structured implementation phases\n */\n phases: PlanPhase[];\n /**\n * New files planned to be created\n */\n filesToCreate: string[];\n /**\n * Existing files planned to be modified\n */\n filesToModify: string[];\n};\n\n/**\n * Task breakdown artifact defining implementation tasks grouped into phases\n */\nexport type TasksArtifact = SpecArtifactBase & {\n /**\n * Structured task list with acceptance criteria and TDD phases\n */\n tasks: SpecTask[];\n /**\n * Overall effort estimate for all tasks combined\n */\n totalEstimate: string;\n};\n\n/**\n * Feature identity metadata in feature.yaml\n */\nexport type FeatureIdentity = {\n /**\n * Feature ID slug (e.g., '012-autonomous-pr-review-loop')\n */\n id: string;\n /**\n * Human-readable feature name\n */\n name: string;\n /**\n * Feature number (e.g., 12)\n */\n number: number;\n /**\n * Git branch for this feature\n */\n branch: string;\n /**\n * Current lifecycle phase (e.g., 'research', 'implementation', 'complete')\n */\n lifecycle: string;\n /**\n * When the feature was created\n */\n createdAt: string;\n};\n\n/**\n * Task completion progress counters\n */\nexport type FeatureStatusProgress = {\n /**\n * Number of completed tasks\n */\n completed: number;\n /**\n * Total number of tasks\n */\n total: number;\n /**\n * Completion percentage (0-100)\n */\n percentage: number;\n};\n\n/**\n * Feature execution status\n */\nexport type FeatureStatusInfo = {\n /**\n * Current SDLC phase\n */\n phase: string;\n /**\n * Phases that have been completed\n */\n completedPhases?: string[];\n /**\n * Task completion progress\n */\n progress: FeatureStatusProgress;\n /**\n * ID of the task currently being executed (null if none)\n */\n currentTask?: string;\n /**\n * ISO timestamp of last status update\n */\n lastUpdated: string;\n /**\n * Agent or skill that last updated the status\n */\n lastUpdatedBy: string;\n};\n\n/**\n * Validation gate results\n */\nexport type FeatureValidation = {\n /**\n * ISO timestamp of last validation run (null if never run)\n */\n lastRun?: string;\n /**\n * Names of validation gates that passed\n */\n gatesPassed: string[];\n /**\n * Descriptions of auto-fixes that were applied\n */\n autoFixesApplied: string[];\n};\n\n/**\n * Task execution tracking state\n */\nexport type FeatureTaskTracking = {\n /**\n * ID of the task currently being worked on (null if none)\n */\n current?: string;\n /**\n * IDs of tasks blocked by unmet dependencies\n */\n blocked: string[];\n /**\n * IDs of tasks that failed execution\n */\n failed: string[];\n};\n\n/**\n * Milestone checkpoint for phase completion\n */\nexport type FeatureCheckpoint = {\n /**\n * Phase name (e.g., 'feature-created', 'research-complete')\n */\n phase: string;\n /**\n * ISO timestamp when this checkpoint was reached\n */\n completedAt: string;\n /**\n * Agent or skill that completed this phase\n */\n completedBy: string;\n};\n\n/**\n * Error tracking for feature execution\n */\nexport type FeatureErrors = {\n /**\n * Current error message (null if no active error)\n */\n current?: string;\n /**\n * History of past error messages\n */\n history: string[];\n};\n\n/**\n * Feature status tracking artifact (feature.yaml)\n */\nexport type FeatureStatus = BaseEntity & {\n /**\n * Feature identity metadata\n */\n feature: FeatureIdentity;\n /**\n * Current execution status and progress\n */\n status: FeatureStatusInfo;\n /**\n * PR URL if a pull request has been created\n */\n prUrl?: string;\n /**\n * ISO timestamp when the feature was merged\n */\n mergedAt?: string;\n /**\n * Validation gate results\n */\n validation: FeatureValidation;\n /**\n * Task execution tracking\n */\n tasks: FeatureTaskTracking;\n /**\n * Milestone checkpoints recording phase completions\n */\n checkpoints: FeatureCheckpoint[];\n /**\n * Error tracking state\n */\n errors: FeatureErrors;\n};\nexport enum ToolType {\n VsCode = 'vscode',\n Cursor = 'cursor',\n Windsurf = 'windsurf',\n Zed = 'zed',\n Antigravity = 'antigravity',\n CursorCli = 'cursor-cli',\n ClaudeCode = 'claude-code',\n}\n\n/**\n * IDE or CLI tool entity with installation tracking\n */\nexport type Tool = BaseEntity & {\n /**\n * Display name of the tool\n */\n toolName: string;\n /**\n * Tool type classification\n */\n type: ToolType;\n /**\n * Installed version number\n */\n installedVersion?: string;\n /**\n * Tool installation timestamp\n */\n installedAt?: any;\n};\nexport enum NotificationEventType {\n AgentStarted = 'agent_started',\n PhaseCompleted = 'phase_completed',\n WaitingApproval = 'waiting_approval',\n AgentCompleted = 'agent_completed',\n AgentFailed = 'agent_failed',\n PrMerged = 'pr_merged',\n PrClosed = 'pr_closed',\n PrChecksPassed = 'pr_checks_passed',\n PrChecksFailed = 'pr_checks_failed',\n PrBlocked = 'pr_blocked',\n MergeReviewReady = 'merge_review_ready',\n}\nexport enum NotificationSeverity {\n Info = 'info',\n Warning = 'warning',\n Success = 'success',\n Error = 'error',\n}\n\n/**\n * Notification event emitted for agent lifecycle transitions\n */\nexport type NotificationEvent = {\n /**\n * Type of lifecycle event\n */\n eventType: NotificationEventType;\n /**\n * ID of the agent run that triggered this event\n */\n agentRunId: string;\n /**\n * ID of the feature that triggered this event\n */\n featureId: string;\n /**\n * Human-readable feature name\n */\n featureName: string;\n /**\n * Phase name (only for phaseCompleted events)\n */\n phaseName?: string;\n /**\n * Human-readable event description\n */\n message: string;\n /**\n * Display severity for notification rendering\n */\n severity: NotificationSeverity;\n /**\n * When the event occurred\n */\n timestamp: any;\n};\n\n/**\n * A code repository tracked by the Shep platform\n */\nexport type Repository = SoftDeletableEntity & {\n /**\n * Human-readable name for the repository (typically the directory name)\n */\n name: string;\n /**\n * Absolute file system path to the repository root (unique)\n */\n path: string;\n /**\n * Remote GitHub URL this repository was cloned from (normalized: lowercase, no .git suffix)\n */\n remoteUrl?: string;\n /**\n * Whether this repository was auto-forked by shep because the user lacked push access\n */\n isFork?: boolean;\n /**\n * Original upstream URL when isFork is true (normalized: lowercase, no .git suffix)\n */\n upstreamUrl?: string;\n};\nexport enum ApplicationStatus {\n Idle = 'Idle',\n Active = 'Active',\n Error = 'Error',\n}\n\n/**\n * A persistent AI-powered application workspace\n */\nexport type Application = SoftDeletableEntity & {\n /**\n * Human-readable application name\n */\n name: string;\n /**\n * URL-friendly identifier (unique)\n */\n slug: string;\n /**\n * Original user prompt / purpose description\n */\n description: string;\n /**\n * Absolute path to the primary repository\n */\n repositoryPath: string;\n /**\n * Additional linked repository/directory paths (JSON array)\n */\n additionalPaths: string[];\n /**\n * Chosen agent executor type override\n */\n agentType?: string;\n /**\n * Chosen model override\n */\n modelOverride?: string;\n /**\n * Current application status\n */\n status: ApplicationStatus;\n /**\n * Whether the initial setup workflow has completed successfully\n */\n setupComplete: boolean;\n /**\n * Persistent agent SDK session ID — set once on first session boot, never changes\n */\n agentSessionId?: string;\n};\n\n/**\n * Single installation suggestion for a tool\n */\nexport type InstallationSuggestion = {\n /**\n * Package manager or installation method\n */\n packageManager: string;\n /**\n * Installation command\n */\n command: string;\n /**\n * Official documentation URL\n */\n documentationUrl: string;\n /**\n * Additional notes for installation\n */\n notes?: string;\n};\n\n/**\n * Installation status and suggestions for a tool\n */\nexport type ToolInstallationStatus = {\n /**\n * Current installation status\n */\n status: 'available' | 'missing' | 'error';\n /**\n * Tool name\n */\n toolName: string;\n /**\n * Error message if status is error\n */\n errorMessage?: string;\n /**\n * Installation suggestions\n */\n suggestions?: InstallationSuggestion[];\n};\n\n/**\n * Executable installation command for a tool\n */\nexport type ToolInstallCommand = {\n /**\n * Shell command string to execute\n */\n command: string;\n /**\n * Target platform identifier\n */\n platform: string;\n /**\n * Execution timeout in milliseconds\n */\n timeout: number;\n /**\n * Tool name\n */\n toolName: string;\n /**\n * Package manager identifier\n */\n packageManager: string;\n};\nexport enum EvidenceType {\n Screenshot = 'Screenshot',\n Video = 'Video',\n TestOutput = 'TestOutput',\n TerminalRecording = 'TerminalRecording',\n}\n\n/**\n * Record of evidence captured to prove task completion\n */\nexport type Evidence = {\n /**\n * Category of evidence captured\n */\n type: EvidenceType;\n /**\n * ISO 8601 timestamp when the evidence was captured\n */\n capturedAt: string;\n /**\n * Human-readable description of what this evidence proves\n */\n description: string;\n /**\n * Path relative to repo root for GitHub rendering\n */\n relativePath: string;\n /**\n * Optional reference to the task this evidence proves\n */\n taskRef?: string;\n};\nexport enum AgentStatus {\n Idle = 'Idle',\n Running = 'Running',\n Paused = 'Paused',\n Stopped = 'Stopped',\n}\n\n/**\n * A running agent instance that processes work and responds to queries\n */\nexport type AgentInstance = {\n /**\n * Unique identifier for this agent instance\n */\n id: UUID;\n /**\n * Git branch this agent is operating on for code changes\n */\n branch: string;\n /**\n * Current operational status of the agent (Idle, Running, Paused, or Stopped)\n */\n status: AgentStatus;\n /**\n * Timestamp when this agent instance was created\n */\n createdAt: any;\n};\n\n/**\n * Deployment target wrapping a single ActionItem for granular deployments\n */\nexport type DeployTargetActionItem = {\n /**\n * Discriminator indicating this is an action item target\n */\n kind: 'actionItem';\n /**\n * The action item to deploy - represents an atomic unit of work\n */\n actionItem: ActionItem;\n};\n\n/**\n * Deployment target wrapping a single Task for task-level deployments\n */\nexport type DeployTargetTask = {\n /**\n * Discriminator indicating this is a task target\n */\n kind: 'task';\n /**\n * The task to deploy - includes all action items within the task\n */\n task: Task;\n};\n\n/**\n * Deployment target wrapping multiple Tasks for batch deployments\n */\nexport type DeployTargetTasks = {\n /**\n * Discriminator indicating this is a multi-task target\n */\n kind: 'tasks';\n /**\n * The tasks to deploy - enables batch deployment of related work\n */\n tasks: Task[];\n};\nexport enum FeatureAgentState {\n GatheringRequirements = 'GatheringRequirements',\n ClarificationsRequired = 'ClarificationsRequired',\n DoingResearch = 'DoingResearch',\n AwaitingReview = 'AwaitingReview',\n ExecutingWorkPlan = 'ExecutingWorkPlan',\n Ready = 'Ready',\n}\n\n/**\n * Main orchestrating agent - the 'brain' that manages the complete SDLC workflow for a feature\n */\nexport type FeatureAgent = {\n /**\n * Unique identifier for this feature agent instance\n */\n id: UUID;\n /**\n * The feature being managed by this agent throughout its lifecycle\n */\n feature: Feature;\n /**\n * Sub-agents spawned to handle specific tasks within the workflow\n */\n agents: AgentInstance[];\n /**\n * Current operational state determining what the agent is doing\n */\n state: FeatureAgentState;\n /**\n * Timestamp when this feature agent was created\n */\n createdAt: any;\n};\n\n/**\n * Agent for handling local deployment of features, tasks, or action items\n */\nexport type LocalDeployAgent = {\n /**\n * Unique identifier for this deployment agent instance\n */\n id: UUID;\n /**\n * URL where the deployment is accessible once available (null before deployment)\n */\n url?: string;\n /**\n * Timestamp when this deployment agent was created\n */\n createdAt: any;\n};\nexport enum PortProtocol {\n TCP = 'TCP',\n UDP = 'UDP',\n}\n\n/**\n * Port mapping configuration for exposing container services to the network\n */\nexport type PortMap = {\n /**\n * Service name identifier (e.g., 'web', 'api', 'db', 'redis')\n */\n name: string;\n /**\n * Port number to expose on the host or container network\n */\n port: number;\n /**\n * Network protocol for the port (defaults to TCP if not specified)\n */\n protocol?: PortProtocol;\n};\nexport enum DeployMethod {\n DockerCompose = 'DockerCompose',\n Docker = 'Docker',\n Kubernetes = 'Kubernetes',\n Script = 'Script',\n Manual = 'Manual',\n}\n\n/**\n * Configuration defining how to deploy an application with method and instructions\n */\nexport type DeploySkill = {\n /**\n * Unique identifier for the deployment skill configuration\n */\n id: UUID;\n /**\n * List of port mappings for services to expose when deployed\n */\n ports: PortMap[];\n /**\n * Method to use for deployment (DockerCompose, Docker, Kubernetes, Script, or Manual)\n */\n method: DeployMethod;\n /**\n * Deployment instructions or commands to execute for this deployment method\n */\n instructions: string;\n /**\n * Timestamp when the deployment skill was created\n */\n createdAt: any;\n};\nexport enum DeploymentState {\n Booting = 'Booting',\n Ready = 'Ready',\n Stopped = 'Stopped',\n}\n\n/**\n * A running deployment instance with network configuration and lifecycle management\n */\nexport type Deployment = {\n /**\n * Unique identifier for the deployment instance\n */\n id: UUID;\n /**\n * Current state of the deployment (Booting, Ready, or Stopped)\n */\n state: DeploymentState;\n /**\n * URL where the deployment is accessible (e.g., 'http://localhost:30100/' or 'http://172.33.0.20:5173')\n */\n url: string;\n /**\n * List of port mappings for services exposed by this deployment\n */\n ports: PortMap[];\n /**\n * Timestamp when the deployment was created\n */\n createdAt: any;\n /**\n * Timestamp when the deployment was stopped (only present when state is Stopped)\n */\n stoppedAt?: any;\n};\nexport enum AgentRunStatus {\n pending = 'pending',\n running = 'running',\n completed = 'completed',\n failed = 'failed',\n interrupted = 'interrupted',\n cancelled = 'cancelled',\n waitingApproval = 'waiting_approval',\n}\n\n/**\n * Agent execution run record\n */\nexport type AgentRun = BaseEntity & {\n /**\n * Agent executor type used (claude-code, gemini-cli, etc.)\n */\n agentType: AgentType;\n /**\n * Agent workflow name (analyze-repository, requirements, etc.)\n */\n agentName: string;\n /**\n * Current execution status\n */\n status: AgentRunStatus;\n /**\n * Input prompt sent to agent executor\n */\n prompt: string;\n /**\n * Final result output (optional, populated on completion)\n */\n result?: string;\n /**\n * Executor session ID for resumption (optional)\n */\n sessionId?: string;\n /**\n * LangGraph thread_id for checkpoint lookup and crash resume\n */\n threadId: string;\n /**\n * Process ID for crash recovery (optional)\n */\n pid?: number;\n /**\n * Last heartbeat timestamp for crash detection (optional)\n */\n lastHeartbeat?: any;\n /**\n * Execution start timestamp (optional)\n */\n startedAt?: any;\n /**\n * Execution completion timestamp (optional)\n */\n completedAt?: any;\n /**\n * Error message if execution failed (optional)\n */\n error?: string;\n /**\n * Associated feature ID for feature agent runs (optional)\n */\n featureId?: string;\n /**\n * Repository path for context scoping (optional)\n */\n repositoryPath?: string;\n /**\n * Approval gate configuration for human-in-the-loop review (optional)\n */\n approvalGates?: ApprovalGates;\n /**\n * LLM model identifier used for this run (optional, set at creation)\n */\n modelId?: string;\n};\n\n/**\n * Streaming event emitted during agent execution\n */\nexport type AgentRunEvent = {\n /**\n * Event type: progress, result, or error\n */\n type: 'progress' | 'result' | 'error';\n /**\n * Event content\n */\n content: string;\n /**\n * Event timestamp\n */\n timestamp: any;\n};\n\n/**\n * Agent workflow registration metadata\n */\nexport type AgentDefinition = {\n /**\n * Unique agent workflow name (e.g., analyze-repository)\n */\n name: string;\n /**\n * Human-readable description of what this agent does\n */\n description: string;\n};\nexport type float = any;\nexport type float64 = float;\n\n/**\n * Execution record for a single agent graph node. Tracks timing, prompt, token usage, and outcome.\n */\nexport type PhaseTiming = BaseEntity & {\n /**\n * Agent run this timing belongs to\n */\n agentRunId: string;\n /**\n * Graph node name: analyze, requirements, research, plan, implement\n */\n phase: string;\n /**\n * When the phase started executing\n */\n startedAt: any;\n /**\n * When the phase finished executing (null if still running)\n */\n completedAt?: any;\n /**\n * Duration in milliseconds (computed on completion)\n */\n durationMs?: bigint;\n /**\n * When the phase started waiting for user approval (null if no approval needed)\n */\n waitingApprovalAt?: any;\n /**\n * Duration in milliseconds the phase waited for user approval (null if no approval needed)\n */\n approvalWaitMs?: bigint;\n /**\n * The composed prompt sent to the agent for this phase\n */\n prompt?: string;\n /**\n * Model identifier used for this phase execution\n */\n modelId?: string;\n /**\n * Agent executor type: claude-code, cursor, gemini-cli\n */\n agentType?: string;\n /**\n * Number of input tokens consumed (prompt + context)\n */\n inputTokens?: bigint;\n /**\n * Number of output tokens generated by the agent\n */\n outputTokens?: bigint;\n /**\n * Tokens used to populate the prompt cache (cache misses)\n */\n cacheCreationInputTokens?: bigint;\n /**\n * Tokens served from the prompt cache (cache hits)\n */\n cacheReadInputTokens?: bigint;\n /**\n * Estimated cost in USD for this phase execution\n */\n costUsd?: float64;\n /**\n * Number of agentic turns (tool-call round-trips) in this phase\n */\n numTurns?: number;\n /**\n * Time spent waiting for the API (excludes tool execution)\n */\n durationApiMs?: bigint;\n /**\n * Execution outcome: success, error, timeout, interrupted\n */\n exitCode?: string;\n /**\n * Error details when exitCode is not success\n */\n errorMessage?: string;\n};\n\n/**\n * Change to a question's selected option during PRD review\n */\nexport type QuestionSelectionChange = {\n /**\n * ID of the open question being changed (the question text)\n */\n questionId: string;\n /**\n * The option text that the user selected\n */\n selectedOption: string;\n};\n\n/**\n * Payload sent when user approves a PRD with optional selection changes\n */\nexport type PrdApprovalPayload = {\n /**\n * Always true for approval payloads\n */\n approved: boolean;\n /**\n * List of selection changes the user made during review (empty if no changes)\n */\n changedSelections?: QuestionSelectionChange[];\n};\n\n/**\n * Payload sent when user rejects a PRD with feedback for iteration\n */\nexport type PrdRejectionPayload = {\n /**\n * Always true for rejection payloads\n */\n rejected: boolean;\n /**\n * User's feedback explaining what needs to change\n */\n feedback: string;\n /**\n * Iteration number (1-based, derived from PhaseTiming row count)\n */\n iteration: number;\n /**\n * File attachment paths included with the rejection feedback\n */\n attachments?: string[];\n};\n\n/**\n * A single question with its options as presented in the review TUI\n */\nexport type ReviewQuestion = {\n /**\n * The question text\n */\n question: string;\n /**\n * Available options with selection state\n */\n options: QuestionOption[];\n /**\n * The option text that was selected by the user\n */\n selectedOption: string;\n /**\n * Whether the user changed the selection from the AI default\n */\n changed: boolean;\n};\n\n/**\n * Result of the PRD review TUI interaction\n */\nexport type PrdReviewResult = {\n /**\n * All questions with their final selection state\n */\n questions: ReviewQuestion[];\n /**\n * User action: approve or reject\n */\n action: string;\n /**\n * Rejection feedback (only present when action is 'reject')\n */\n feedback?: string;\n};\n\n/**\n * A single message within an agent provider CLI session\n */\nexport type AgentSessionMessage = {\n /**\n * Provider-native message UUID\n */\n uuid: string;\n /**\n * Message role — user turn or assistant turn\n */\n role: 'user' | 'assistant';\n /**\n * Normalized message content as plain text (tool calls and thinking blocks excluded)\n */\n content: string;\n /**\n * Timestamp when the message was recorded\n */\n timestamp: any;\n};\n\n/**\n * An agent provider CLI session (conversation record read from provider local storage)\n */\nexport type AgentSession = BaseEntity & {\n /**\n * Agent executor type that owns this session (e.g. claude-code)\n */\n agentType: AgentType;\n /**\n * Tilde-abbreviated working directory path for the session (e.g. ~/repos/my-project)\n */\n projectPath: string;\n /**\n * Total number of user and assistant messages in the session\n */\n messageCount: number;\n /**\n * Truncated first user message text used as a session summary preview (optional)\n */\n preview?: string;\n /**\n * Conversation messages — populated only in the detail view (shep session show)\n */\n messages?: AgentSessionMessage[];\n /**\n * Timestamp of the first message in the session (optional)\n */\n firstMessageAt?: any;\n /**\n * Timestamp of the most recent message in the session (optional)\n */\n lastMessageAt?: any;\n};\nexport enum InteractiveSessionStatus {\n booting = 'booting',\n ready = 'ready',\n stopped = 'stopped',\n error = 'error',\n}\n\n/**\n * Per-feature interactive agent session record\n */\nexport type InteractiveSession = BaseEntity & {\n /**\n * Polymorphic scope key: feature UUID, 'repo-<id>', or 'global'. Future: rename to scopeId + scopeType.\n */\n featureId: UUID;\n /**\n * Current lifecycle status of the interactive session\n */\n status: InteractiveSessionStatus;\n /**\n * Timestamp when the agent process was spawned\n */\n startedAt: any;\n /**\n * Timestamp when the session ended (null if still active)\n */\n stoppedAt?: any;\n /**\n * Timestamp of last user message or agent stdout activity\n */\n lastActivityAt: any;\n};\nexport enum InteractiveMessageRole {\n user = 'user',\n assistant = 'assistant',\n}\n\n/**\n * A single chat message in a per-feature interactive agent session\n */\nexport type InteractiveMessage = BaseEntity & {\n /**\n * Polymorphic scope key: feature UUID, 'repo-<id>', or 'global'. Future: rename to scopeId + scopeType.\n */\n featureId: string;\n /**\n * Session ID during which this message was sent (optional)\n */\n sessionId?: string;\n /**\n * Author role: user or assistant\n */\n role: InteractiveMessageRole;\n /**\n * Full message content (finalised after streaming for assistant messages)\n */\n content: string;\n /**\n * Optional workflow step ID this message was produced for\n */\n stepId?: string;\n};\nexport enum WorkflowStepStatus {\n pending = 'pending',\n running = 'running',\n done = 'done',\n failed = 'failed',\n interrupted = 'interrupted',\n}\n\n/**\n * A persisted step of a multi-step workflow executed inside an interactive session\n */\nexport type WorkflowStep = BaseEntity & {\n /**\n * Parent interactive session id\n */\n sessionId: string;\n /**\n * Polymorphic scope key: matches InteractiveMessage.featureId\n */\n featureId: string;\n /**\n * Logical workflow id (e.g. 'application-creation-v1')\n */\n workflowId: string;\n /**\n * Stable key inside the workflow (e.g. 'scaffold', 'deps')\n */\n stepKey: string;\n /**\n * Order of this step within the workflow, starting at 0\n */\n stepIndex: number;\n /**\n * Non-technical title shown to the user\n */\n title: string;\n /**\n * Non-technical subtitle shown to the user\n */\n description: string;\n /**\n * Current lifecycle status\n */\n status: WorkflowStepStatus;\n /**\n * When the step transitioned to running\n */\n startedAt?: any;\n /**\n * When the step transitioned to done/failed/interrupted\n */\n finishedAt?: any;\n /**\n * JSON blob with summary, details, error — populated when done/failed\n */\n metadata?: string;\n};\n\n/**\n * A selectable option within a PRD questionnaire question\n */\nexport type PrdOption = {\n /**\n * Unique identifier for this option\n */\n id: string;\n /**\n * Display label for this option\n */\n label: string;\n /**\n * Explanation of why this option is relevant\n */\n rationale: string;\n /**\n * Whether this option is recommended by AI analysis\n */\n recommended?: boolean;\n /**\n * Whether this option was newly added after refinement\n */\n isNew?: boolean;\n};\n\n/**\n * A single question in the PRD questionnaire with selectable options\n */\nexport type PrdQuestion = {\n /**\n * Unique identifier for this question\n */\n id: string;\n /**\n * The question text displayed to the user\n */\n question: string;\n /**\n * Question interaction type (currently only single-select)\n */\n type: 'select';\n /**\n * Available options for this question\n */\n options: PrdOption[];\n};\n\n/**\n * Configuration for the final action button in the questionnaire\n */\nexport type PrdFinalAction = {\n /**\n * Unique identifier for this action\n */\n id: string;\n /**\n * Button label text\n */\n label: string;\n /**\n * Description of what this action does\n */\n description: string;\n};\n\n/**\n * Complete data for rendering a PRD questionnaire\n */\nexport type PrdQuestionnaireData = {\n /**\n * Header title text for the questionnaire\n */\n question: string;\n /**\n * Header context/description text\n */\n context: string;\n /**\n * Array of questions to display\n */\n questions: PrdQuestion[];\n /**\n * Configuration for the finalize/approve action button\n */\n finalAction: PrdFinalAction;\n};\nexport enum AgentFeature {\n sessionResume = 'session-resume',\n streaming = 'streaming',\n toolScoping = 'tool-scoping',\n structuredOutput = 'structured-output',\n systemPrompt = 'system-prompt',\n sessionListing = 'session-listing',\n}\nexport type DeployTarget = DeployTargetActionItem | DeployTargetTask | DeployTargetTasks;\n\nexport type Askable = {\n Ask(request: AskRequest): AskResponse;\n};\n\nexport type FeatureAgentOperations = {\n NewFeatureWizard(): Feature;\n GatherRequirements(): Requirement[];\n DoResearch(): Research;\n CreatePlan(): Plan;\n BeginImplementation(): void;\n Ask(query: string): AskResponse;\n};\n\nexport type LocalDeployAgentOperations = {\n Deploy(target: DeployTarget, skill: DeploySkill): Deployment;\n Analyze(repositoryPath: string): DeploySkill;\n Ask(query: string): AskResponse;\n};\n"],"names":["attrRE","stringify","tag","res","type","name","voidElement","attrs","children","tagMatch","match","lookup","charAt","length","startsWith","endIndex","indexOf","comment","slice","reg","RegExp","result","exec","trim","attr","arr","split","lastIndex","substring","tagRE","whitespaceRE","empty","Object","create","buff","doc","content","key","push","join","attrString","reduce","parse","html","options","components","current","level","inComponent","end","replace","index","parent","isOpen","isComment","start","nextChar","parseTag","undefined","test","token","rootEl","callServer","createServerReference","findSourceMapURL"],"mappings":"gCAKA,EAA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