amliq-dashboard 2.0.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 (492) hide show
  1. package/.env.example +3 -0
  2. package/.env.production +1 -0
  3. package/Dockerfile +26 -0
  4. package/QUICK_START.md +267 -0
  5. package/README.md +161 -0
  6. package/TESTING_GUIDE.md +322 -0
  7. package/dist/.well-known/ai-plugin.json +15 -0
  8. package/dist/_headers +8 -0
  9. package/dist/_redirects +1 -0
  10. package/dist/assets/APIKeys-BvwFauIs.js +6 -0
  11. package/dist/assets/APIKeys-DaMSBZQL.js +1 -0
  12. package/dist/assets/AdverseMedia-DckXfMzS.js +4 -0
  13. package/dist/assets/AlertDetailPage-Bc2_zwu_.js +1 -0
  14. package/dist/assets/AlertQueue-DFtBiRoM.js +8 -0
  15. package/dist/assets/Analytics-DtruB5lQ.js +1 -0
  16. package/dist/assets/AuditTrail-BK68ePu0.js +1 -0
  17. package/dist/assets/AuthDivider-gRHEt7gx.js +1 -0
  18. package/dist/assets/Badge-B9VFkofy.js +1 -0
  19. package/dist/assets/BatchJobs-Bz6KFnXD.js +6 -0
  20. package/dist/assets/BillingPage-R9nQ5nFb.js +11 -0
  21. package/dist/assets/Card-Cw-T_-oU.js +1 -0
  22. package/dist/assets/CaseDetail-DYs7Zg_y.js +7 -0
  23. package/dist/assets/CaseManagement-B1Q4Dp1Y.js +1 -0
  24. package/dist/assets/ComplianceReport-Dhssqc9T.js +1 -0
  25. package/dist/assets/Configuration-B92kl9T0.js +1 -0
  26. package/dist/assets/CryptoScreening-C7yFlskC.js +1 -0
  27. package/dist/assets/Dashboard-w4-Nhv9q.js +17 -0
  28. package/dist/assets/DataSources-u3-Ri_5_.js +3 -0
  29. package/dist/assets/EDDWorkflow-CFzlEO0e.js +1 -0
  30. package/dist/assets/EmptyState-Do0xJAT9.js +6 -0
  31. package/dist/assets/ForgotPassword-BPYyQFQp.js +1 -0
  32. package/dist/assets/LandingPage-CjaP0zw4.js +41 -0
  33. package/dist/assets/ListsMarketplace-CG6KkT9B.js +6 -0
  34. package/dist/assets/Login-677LEGP1.js +1 -0
  35. package/dist/assets/MFASetup-BxqCPvui.js +1 -0
  36. package/dist/assets/Monitoring-9TN9MK4y.js +1 -0
  37. package/dist/assets/Onboarding-Cf0Y83lX.js +1 -0
  38. package/dist/assets/Operations-CcXwc2xw.js +10 -0
  39. package/dist/assets/Overview-B_Ky0VWV.js +1 -0
  40. package/dist/assets/PEPScreening-pUQjTH9c.js +1 -0
  41. package/dist/assets/PageHeader-BObHFn0i.js +1 -0
  42. package/dist/assets/PrivacyPolicy-DZ2xrKir.js +1 -0
  43. package/dist/assets/ResetPassword-AtxtpIG1.js +1 -0
  44. package/dist/assets/RiskAssessment-Dzuh1Usv.js +1 -0
  45. package/dist/assets/SARForm-D8w2ZGe-.js +1 -0
  46. package/dist/assets/SanctionsLists-CPA3UH2v.js +1 -0
  47. package/dist/assets/ScheduledTasks-Dsjk-6UR.js +1 -0
  48. package/dist/assets/ScreenEntity-D1U0YL7v.js +3 -0
  49. package/dist/assets/ScreeningProgress-BW49PzoB.js +66 -0
  50. package/dist/assets/SearchField-CulFKdiI.js +1 -0
  51. package/dist/assets/Signup-C0FmFOo_.js +1 -0
  52. package/dist/assets/SystemHealth-B_8u4eva.js +1 -0
  53. package/dist/assets/TaskHistory-BCmEM89q.js +3 -0
  54. package/dist/assets/Team-CUo_FlU7.js +1 -0
  55. package/dist/assets/TenantDetail-CgZQHUY8.js +1 -0
  56. package/dist/assets/Tenants-RB9E9ick.js +2 -0
  57. package/dist/assets/TermsOfService-BfL-kndX.js +1 -0
  58. package/dist/assets/TransactionMonitoring-DGh_T22s.js +14 -0
  59. package/dist/assets/TxnScreening-B7cm2-eh.js +1 -0
  60. package/dist/assets/UBOChain-falXAsCo.js +1 -0
  61. package/dist/assets/Users-Doakpg9c.js +1 -0
  62. package/dist/assets/Webhooks-BZpAfaxv.js +1 -0
  63. package/dist/assets/alert-triangle-YCFVm7B_.js +6 -0
  64. package/dist/assets/alerts-COUnTwWY.js +1 -0
  65. package/dist/assets/arrow-left-9ApLqP95.js +6 -0
  66. package/dist/assets/check-VTcvVtIU.js +6 -0
  67. package/dist/assets/check-circle-2-Dn-lG5YQ.js +6 -0
  68. package/dist/assets/code-DIJRWFVv.js +6 -0
  69. package/dist/assets/fingerprint-C0MGVtax.js +6 -0
  70. package/dist/assets/flag-B8_Gwxh6.js +6 -0
  71. package/dist/assets/index-CfdYcqRM.js +289 -0
  72. package/dist/assets/index-HPU_Rhdu.css +1 -0
  73. package/dist/assets/layers-zHz2o4vo.js +6 -0
  74. package/dist/assets/loader-B9_dNihg.js +6 -0
  75. package/dist/assets/mail-BijL2qwp.js +6 -0
  76. package/dist/assets/plus-i0oBIIPS.js +6 -0
  77. package/dist/assets/refresh-cw-CSuAwutt.js +6 -0
  78. package/dist/assets/useAnalytics-Bj8IONcw.js +72 -0
  79. package/dist/assets/x-circle-DLGKvijE.js +6 -0
  80. package/dist/favicon.svg +15 -0
  81. package/dist/index.html +51 -0
  82. package/dist/llms.txt +28 -0
  83. package/dist/logo.png +0 -0
  84. package/dist/logo.svg +17 -0
  85. package/dist/manifest.json +44 -0
  86. package/dist/robots.txt +15 -0
  87. package/dist/schema.json +13 -0
  88. package/dist/sitemap.xml +28 -0
  89. package/dist/sw.js +67 -0
  90. package/e2e/auth-setup.ts +20 -0
  91. package/e2e/billing.spec.ts +50 -0
  92. package/e2e/cases.spec.ts +53 -0
  93. package/e2e/compliance.spec.ts +65 -0
  94. package/e2e/config.spec.ts +56 -0
  95. package/e2e/dashboard.spec.ts +47 -0
  96. package/e2e/fixtures.ts +33 -0
  97. package/e2e/lists.spec.ts +43 -0
  98. package/e2e/login.spec.ts +64 -0
  99. package/e2e/media.spec.ts +48 -0
  100. package/e2e/mocks.ts +51 -0
  101. package/e2e/monitoring.spec.ts +44 -0
  102. package/e2e/navigation.spec.ts +56 -0
  103. package/e2e/onboarding.spec.ts +49 -0
  104. package/e2e/responsive.spec.ts +40 -0
  105. package/e2e/risk.spec.ts +61 -0
  106. package/e2e/screening.spec.ts +76 -0
  107. package/e2e/team.spec.ts +53 -0
  108. package/index.html +50 -0
  109. package/package.json +47 -0
  110. package/playwright.config.ts +35 -0
  111. package/postcss.config.js +6 -0
  112. package/public/.well-known/ai-plugin.json +15 -0
  113. package/public/_headers +8 -0
  114. package/public/_redirects +1 -0
  115. package/public/favicon.svg +15 -0
  116. package/public/llms.txt +28 -0
  117. package/public/logo.png +0 -0
  118. package/public/logo.svg +17 -0
  119. package/public/manifest.json +44 -0
  120. package/public/robots.txt +15 -0
  121. package/public/schema.json +13 -0
  122. package/public/sitemap.xml +28 -0
  123. package/public/sw.js +67 -0
  124. package/scripts/test-runner.sh +152 -0
  125. package/src/App.tsx +48 -0
  126. package/src/api/alerts.ts +19 -0
  127. package/src/api/analytics.ts +6 -0
  128. package/src/api/audit.ts +11 -0
  129. package/src/api/auth.ts +26 -0
  130. package/src/api/billing.ts +54 -0
  131. package/src/api/cases.ts +48 -0
  132. package/src/api/client.ts +50 -0
  133. package/src/api/config.ts +30 -0
  134. package/src/api/edd.ts +25 -0
  135. package/src/api/enforcement.ts +33 -0
  136. package/src/api/lists.ts +24 -0
  137. package/src/api/monitoring.ts +82 -0
  138. package/src/api/pep.ts +30 -0
  139. package/src/api/risk.ts +26 -0
  140. package/src/api/screening.ts +37 -0
  141. package/src/api/team.ts +27 -0
  142. package/src/api/transactions.ts +37 -0
  143. package/src/components/admin/TenantCards.tsx +51 -0
  144. package/src/components/alerts/AlertActions.test.tsx +80 -0
  145. package/src/components/alerts/AlertActions.tsx +68 -0
  146. package/src/components/alerts/AlertCard.test.tsx +86 -0
  147. package/src/components/alerts/AlertCard.tsx +60 -0
  148. package/src/components/alerts/AlertDetailSidebar.tsx +63 -0
  149. package/src/components/alerts/AlertFilters.test.tsx +73 -0
  150. package/src/components/alerts/AlertFilters.tsx +88 -0
  151. package/src/components/alerts/EntityDetailsCard.test.tsx +61 -0
  152. package/src/components/alerts/EntityDetailsCard.tsx +37 -0
  153. package/src/components/alerts/NotesCard.test.tsx +39 -0
  154. package/src/components/alerts/NotesCard.tsx +28 -0
  155. package/src/components/auth/AuthDivider.tsx +18 -0
  156. package/src/components/auth/LoginForm.tsx +62 -0
  157. package/src/components/auth/LoginLeftPanel.tsx +43 -0
  158. package/src/components/auth/PasswordStrength.tsx +26 -0
  159. package/src/components/auth/SignInButtons.tsx +46 -0
  160. package/src/components/auth/SignupLeftPanel.tsx +35 -0
  161. package/src/components/auth/countries.ts +17 -0
  162. package/src/components/charts/AreaChart.tsx +45 -0
  163. package/src/components/charts/BarChart.tsx +48 -0
  164. package/src/components/charts/DonutChart.tsx +47 -0
  165. package/src/components/compliance/CaseActions.tsx +74 -0
  166. package/src/components/compliance/CaseTimeline.tsx +68 -0
  167. package/src/components/compliance/MediaResultCard.tsx +87 -0
  168. package/src/components/compliance/PEPResultCard.tsx +78 -0
  169. package/src/components/config/MatchingModesCard.test.tsx +75 -0
  170. package/src/components/config/MatchingModesCard.tsx +40 -0
  171. package/src/components/config/ScreeningLayersCard.test.tsx +57 -0
  172. package/src/components/config/ScreeningLayersCard.tsx +36 -0
  173. package/src/components/config/ThresholdsCard.test.tsx +79 -0
  174. package/src/components/config/ThresholdsCard.tsx +51 -0
  175. package/src/components/dashboard/ActivityFeed.tsx +93 -0
  176. package/src/components/dashboard/DashboardGreeting.tsx +23 -0
  177. package/src/components/dashboard/DashboardSkeleton.tsx +35 -0
  178. package/src/components/dashboard/QuickActions.tsx +52 -0
  179. package/src/components/dashboard/TopEntitiesTable.tsx +63 -0
  180. package/src/components/data/ComplianceMetrics.test.tsx +32 -0
  181. package/src/components/data/ComplianceMetrics.tsx +40 -0
  182. package/src/components/data/ConfidenceScore.test.tsx +62 -0
  183. package/src/components/data/ConfidenceScore.tsx +27 -0
  184. package/src/components/data/StatCard.test.tsx +72 -0
  185. package/src/components/data/StatCard.tsx +63 -0
  186. package/src/components/data/StatusBadge.test.tsx +63 -0
  187. package/src/components/data/StatusBadge.tsx +39 -0
  188. package/src/components/layout/AppShell.tsx +48 -0
  189. package/src/components/layout/Breadcrumbs.tsx +48 -0
  190. package/src/components/layout/CommandPalette.tsx +81 -0
  191. package/src/components/layout/DashboardLayout.tsx +19 -0
  192. package/src/components/layout/MobileHeader.tsx +30 -0
  193. package/src/components/layout/NavGroup.test.tsx +63 -0
  194. package/src/components/layout/NavGroup.tsx +64 -0
  195. package/src/components/layout/NotificationBell.tsx +89 -0
  196. package/src/components/layout/PageHeader.test.tsx +61 -0
  197. package/src/components/layout/PageHeader.tsx +19 -0
  198. package/src/components/layout/ProtectedRoute.tsx +31 -0
  199. package/src/components/layout/PublicLayout.tsx +17 -0
  200. package/src/components/layout/Sidebar.test.tsx +67 -0
  201. package/src/components/layout/Sidebar.tsx +92 -0
  202. package/src/components/layout/Toolbar.test.tsx +47 -0
  203. package/src/components/layout/Toolbar.tsx +68 -0
  204. package/src/components/layout/navItems.ts +94 -0
  205. package/src/components/lists/ListCard.tsx +78 -0
  206. package/src/components/lists/ListMarketplaceCard.tsx +77 -0
  207. package/src/components/screening/CircularConfidence.tsx +38 -0
  208. package/src/components/screening/LimitReachedBanner.tsx +31 -0
  209. package/src/components/screening/ListSelector.tsx +64 -0
  210. package/src/components/screening/MatchDetailHeader.tsx +64 -0
  211. package/src/components/screening/MatchEntityInfo.tsx +56 -0
  212. package/src/components/screening/MatchEvidenceBars.tsx +65 -0
  213. package/src/components/screening/MatchMetadata.tsx +95 -0
  214. package/src/components/screening/ScreenResults.tsx +49 -0
  215. package/src/components/screening/ScreeningForm.test.tsx +83 -0
  216. package/src/components/screening/ScreeningForm.tsx +100 -0
  217. package/src/components/screening/ScreeningLayersList.test.tsx +33 -0
  218. package/src/components/screening/ScreeningLayersList.tsx +46 -0
  219. package/src/components/screening/ScreeningProgress.tsx +91 -0
  220. package/src/components/screening/ScreeningQuotaBanner.tsx +64 -0
  221. package/src/components/screening/ScreeningResultCard.tsx +47 -0
  222. package/src/components/screening/ScreeningResultRow.tsx +45 -0
  223. package/src/components/screening/ScreeningResults.test.tsx +37 -0
  224. package/src/components/screening/ScreeningResults.tsx +33 -0
  225. package/src/components/screening/ShareResults.tsx +103 -0
  226. package/src/components/screening/ThresholdSlider.tsx +23 -0
  227. package/src/components/transactions/WebhookCTA.tsx +63 -0
  228. package/src/components/ui/Avatar.test.tsx +47 -0
  229. package/src/components/ui/Avatar.tsx +35 -0
  230. package/src/components/ui/Badge.test.tsx +49 -0
  231. package/src/components/ui/Badge.tsx +33 -0
  232. package/src/components/ui/Button.test.tsx +56 -0
  233. package/src/components/ui/Button.tsx +46 -0
  234. package/src/components/ui/Card.test.tsx +61 -0
  235. package/src/components/ui/Card.tsx +29 -0
  236. package/src/components/ui/ConfirmModal.tsx +67 -0
  237. package/src/components/ui/Divider.test.tsx +24 -0
  238. package/src/components/ui/Divider.tsx +5 -0
  239. package/src/components/ui/EmptyState.test.tsx +49 -0
  240. package/src/components/ui/EmptyState.tsx +22 -0
  241. package/src/components/ui/ErrorBoundary.tsx +44 -0
  242. package/src/components/ui/ExportMenu.tsx +71 -0
  243. package/src/components/ui/LanguageSwitcher.tsx +37 -0
  244. package/src/components/ui/LoadingSpinner.test.tsx +41 -0
  245. package/src/components/ui/LoadingSpinner.tsx +21 -0
  246. package/src/components/ui/MetricCard.tsx +63 -0
  247. package/src/components/ui/ScoreRing.tsx +51 -0
  248. package/src/components/ui/SearchField.test.tsx +55 -0
  249. package/src/components/ui/SearchField.tsx +31 -0
  250. package/src/components/ui/SeverityBadge.tsx +57 -0
  251. package/src/components/ui/ThemeToggle.tsx +37 -0
  252. package/src/components/ui/Toast.test.tsx +79 -0
  253. package/src/components/ui/Toast.tsx +75 -0
  254. package/src/components/ui/Toggle.test.tsx +85 -0
  255. package/src/components/ui/Toggle.tsx +46 -0
  256. package/src/context/AuthContext.tsx +71 -0
  257. package/src/data/pepProfiles.ts +76 -0
  258. package/src/data/pepProfilesExtra.ts +58 -0
  259. package/src/hooks/useAlerts.ts +36 -0
  260. package/src/hooks/useAnalytics.ts +23 -0
  261. package/src/hooks/useApi.test.ts +79 -0
  262. package/src/hooks/useApi.ts +33 -0
  263. package/src/hooks/useAudit.ts +28 -0
  264. package/src/hooks/useBilling.ts +38 -0
  265. package/src/hooks/useConfig.ts +35 -0
  266. package/src/hooks/useDebounce.test.ts +84 -0
  267. package/src/hooks/useDebounce.ts +15 -0
  268. package/src/hooks/useDirection.ts +15 -0
  269. package/src/hooks/useLists.ts +34 -0
  270. package/src/hooks/useMediaQuery.test.ts +97 -0
  271. package/src/hooks/useMediaQuery.ts +28 -0
  272. package/src/hooks/useScreening.ts +33 -0
  273. package/src/hooks/useSidebar.ts +18 -0
  274. package/src/hooks/useUsage.ts +27 -0
  275. package/src/i18n/config.ts +33 -0
  276. package/src/i18n/locales/ar/admin.json +19 -0
  277. package/src/i18n/locales/ar/alerts.json +52 -0
  278. package/src/i18n/locales/ar/analytics.json +9 -0
  279. package/src/i18n/locales/ar/audit.json +12 -0
  280. package/src/i18n/locales/ar/auth.json +60 -0
  281. package/src/i18n/locales/ar/batch.json +5 -0
  282. package/src/i18n/locales/ar/billing.json +41 -0
  283. package/src/i18n/locales/ar/common.json +65 -0
  284. package/src/i18n/locales/ar/compliance.json +83 -0
  285. package/src/i18n/locales/ar/config.json +13 -0
  286. package/src/i18n/locales/ar/dashboard.json +19 -0
  287. package/src/i18n/locales/ar/errors.json +9 -0
  288. package/src/i18n/locales/ar/index.ts +29 -0
  289. package/src/i18n/locales/ar/legal.json +10 -0
  290. package/src/i18n/locales/ar/lists.json +6 -0
  291. package/src/i18n/locales/ar/marketing.json +110 -0
  292. package/src/i18n/locales/ar/monitoring.json +15 -0
  293. package/src/i18n/locales/ar/nav.json +35 -0
  294. package/src/i18n/locales/ar/onboarding.json +25 -0
  295. package/src/i18n/locales/ar/platform.json +23 -0
  296. package/src/i18n/locales/ar/screening.json +26 -0
  297. package/src/i18n/locales/ar/team.json +11 -0
  298. package/src/i18n/locales/en/admin.json +21 -0
  299. package/src/i18n/locales/en/alerts.json +52 -0
  300. package/src/i18n/locales/en/analytics.json +9 -0
  301. package/src/i18n/locales/en/audit.json +12 -0
  302. package/src/i18n/locales/en/auth.json +60 -0
  303. package/src/i18n/locales/en/batch.json +5 -0
  304. package/src/i18n/locales/en/billing.json +87 -0
  305. package/src/i18n/locales/en/common.json +65 -0
  306. package/src/i18n/locales/en/compliance.json +83 -0
  307. package/src/i18n/locales/en/config.json +29 -0
  308. package/src/i18n/locales/en/dashboard.json +23 -0
  309. package/src/i18n/locales/en/errors.json +9 -0
  310. package/src/i18n/locales/en/index.ts +29 -0
  311. package/src/i18n/locales/en/legal.json +114 -0
  312. package/src/i18n/locales/en/lists.json +6 -0
  313. package/src/i18n/locales/en/marketing.json +174 -0
  314. package/src/i18n/locales/en/monitoring.json +15 -0
  315. package/src/i18n/locales/en/nav.json +35 -0
  316. package/src/i18n/locales/en/onboarding.json +31 -0
  317. package/src/i18n/locales/en/platform.json +25 -0
  318. package/src/i18n/locales/en/screening.json +26 -0
  319. package/src/i18n/locales/en/team.json +12 -0
  320. package/src/i18n/locales/he/admin.json +19 -0
  321. package/src/i18n/locales/he/alerts.json +52 -0
  322. package/src/i18n/locales/he/analytics.json +9 -0
  323. package/src/i18n/locales/he/audit.json +12 -0
  324. package/src/i18n/locales/he/auth.json +60 -0
  325. package/src/i18n/locales/he/batch.json +5 -0
  326. package/src/i18n/locales/he/billing.json +41 -0
  327. package/src/i18n/locales/he/common.json +65 -0
  328. package/src/i18n/locales/he/compliance.json +83 -0
  329. package/src/i18n/locales/he/config.json +13 -0
  330. package/src/i18n/locales/he/dashboard.json +19 -0
  331. package/src/i18n/locales/he/errors.json +9 -0
  332. package/src/i18n/locales/he/index.ts +29 -0
  333. package/src/i18n/locales/he/legal.json +10 -0
  334. package/src/i18n/locales/he/lists.json +6 -0
  335. package/src/i18n/locales/he/marketing.json +110 -0
  336. package/src/i18n/locales/he/monitoring.json +15 -0
  337. package/src/i18n/locales/he/nav.json +35 -0
  338. package/src/i18n/locales/he/onboarding.json +25 -0
  339. package/src/i18n/locales/he/platform.json +23 -0
  340. package/src/i18n/locales/he/screening.json +26 -0
  341. package/src/i18n/locales/he/team.json +11 -0
  342. package/src/index.css +112 -0
  343. package/src/main.tsx +15 -0
  344. package/src/pages/APIKeys.tsx +120 -0
  345. package/src/pages/AddMonitorModal.tsx +30 -0
  346. package/src/pages/AdverseMedia.test.tsx +18 -0
  347. package/src/pages/AdverseMedia.tsx +89 -0
  348. package/src/pages/AlertDetailPage.tsx +64 -0
  349. package/src/pages/AlertQueue.test.tsx +48 -0
  350. package/src/pages/AlertQueue.tsx +63 -0
  351. package/src/pages/Analytics.tsx +50 -0
  352. package/src/pages/AuditTrail.tsx +64 -0
  353. package/src/pages/BatchJobs.tsx +79 -0
  354. package/src/pages/CaseDetail.tsx +72 -0
  355. package/src/pages/CaseManagement.test.tsx +31 -0
  356. package/src/pages/CaseManagement.tsx +92 -0
  357. package/src/pages/Configuration.test.tsx +96 -0
  358. package/src/pages/Configuration.tsx +123 -0
  359. package/src/pages/CryptoScreening.tsx +109 -0
  360. package/src/pages/Dashboard.test.tsx +51 -0
  361. package/src/pages/Dashboard.tsx +66 -0
  362. package/src/pages/EDDWorkflow.test.tsx +29 -0
  363. package/src/pages/EDDWorkflow.tsx +73 -0
  364. package/src/pages/ForgotPassword.test.tsx +49 -0
  365. package/src/pages/ForgotPassword.tsx +67 -0
  366. package/src/pages/ListsMarketplace.tsx +102 -0
  367. package/src/pages/Login.test.tsx +100 -0
  368. package/src/pages/Login.tsx +57 -0
  369. package/src/pages/MFASetup.tsx +114 -0
  370. package/src/pages/MonitorProfileCard.tsx +27 -0
  371. package/src/pages/Monitoring.tsx +68 -0
  372. package/src/pages/Onboarding.test.tsx +36 -0
  373. package/src/pages/Onboarding.tsx +60 -0
  374. package/src/pages/PEPScreening.test.tsx +15 -0
  375. package/src/pages/PEPScreening.tsx +100 -0
  376. package/src/pages/ResetPassword.tsx +81 -0
  377. package/src/pages/RiskAssessment.test.tsx +15 -0
  378. package/src/pages/RiskAssessment.tsx +108 -0
  379. package/src/pages/SanctionsLists.tsx +74 -0
  380. package/src/pages/ScreenEntity.test.tsx +82 -0
  381. package/src/pages/ScreenEntity.tsx +76 -0
  382. package/src/pages/Signup.test.tsx +98 -0
  383. package/src/pages/Signup.tsx +92 -0
  384. package/src/pages/TaskHistory.tsx +183 -0
  385. package/src/pages/Team.test.tsx +15 -0
  386. package/src/pages/Team.tsx +140 -0
  387. package/src/pages/TransactionMonitoring.test.tsx +18 -0
  388. package/src/pages/TransactionMonitoring.tsx +118 -0
  389. package/src/pages/TxnScreening.tsx +125 -0
  390. package/src/pages/UBOChain.test.tsx +35 -0
  391. package/src/pages/UBOChain.tsx +65 -0
  392. package/src/pages/Webhooks.tsx +137 -0
  393. package/src/pages/admin/DataSources.tsx +230 -0
  394. package/src/pages/admin/Operations.tsx +103 -0
  395. package/src/pages/admin/ScheduledTasks.tsx +155 -0
  396. package/src/pages/admin/SystemHealth.tsx +58 -0
  397. package/src/pages/admin/TenantDetail.tsx +62 -0
  398. package/src/pages/admin/Tenants.test.tsx +20 -0
  399. package/src/pages/admin/Tenants.tsx +63 -0
  400. package/src/pages/admin/opsRunners.ts +81 -0
  401. package/src/pages/admin/opsTerminal.tsx +63 -0
  402. package/src/pages/billing/ActiveSubscriptions.tsx +41 -0
  403. package/src/pages/billing/AddProductModal.tsx +99 -0
  404. package/src/pages/billing/BillingPage.test.tsx +30 -0
  405. package/src/pages/billing/BillingPage.tsx +67 -0
  406. package/src/pages/billing/CurrentPlan.tsx +50 -0
  407. package/src/pages/billing/InvoiceList.tsx +104 -0
  408. package/src/pages/billing/InvoiceRow.tsx +37 -0
  409. package/src/pages/billing/LemonSqueezySetup.tsx +51 -0
  410. package/src/pages/billing/PaymentAlert.tsx +33 -0
  411. package/src/pages/billing/PlanComparison.tsx +53 -0
  412. package/src/pages/billing/ProductUsage.tsx +43 -0
  413. package/src/pages/billing/PromoCodeInput.tsx +58 -0
  414. package/src/pages/billing/SeatManager.tsx +80 -0
  415. package/src/pages/billing/SeatRow.tsx +32 -0
  416. package/src/pages/billing/SubscriptionCard.tsx +73 -0
  417. package/src/pages/billing/UpgradeModal.tsx +53 -0
  418. package/src/pages/billing/UsageHistory.tsx +37 -0
  419. package/src/pages/billing/UsageMeter.tsx +26 -0
  420. package/src/pages/billing/UsageOverview.tsx +38 -0
  421. package/src/pages/legal/PrivacyPolicy.tsx +25 -0
  422. package/src/pages/legal/TermsOfService.tsx +25 -0
  423. package/src/pages/marketing/BundleCallout.tsx +24 -0
  424. package/src/pages/marketing/CTASection.tsx +48 -0
  425. package/src/pages/marketing/CaseStudy.tsx +37 -0
  426. package/src/pages/marketing/ComparisonTable.tsx +66 -0
  427. package/src/pages/marketing/CompetitiveEdge.tsx +55 -0
  428. package/src/pages/marketing/DataCoverage.tsx +54 -0
  429. package/src/pages/marketing/DataRain.tsx +30 -0
  430. package/src/pages/marketing/EnterpriseCTA.tsx +26 -0
  431. package/src/pages/marketing/FAQItem.tsx +27 -0
  432. package/src/pages/marketing/FAQSchema.tsx +43 -0
  433. package/src/pages/marketing/FAQSection.tsx +19 -0
  434. package/src/pages/marketing/FeatureDetail.tsx +19 -0
  435. package/src/pages/marketing/FeaturesGrid.tsx +60 -0
  436. package/src/pages/marketing/FeaturesSpotlight.tsx +68 -0
  437. package/src/pages/marketing/FooterSection.tsx +92 -0
  438. package/src/pages/marketing/GradientOrbs.tsx +26 -0
  439. package/src/pages/marketing/HeroSearch.tsx +113 -0
  440. package/src/pages/marketing/HeroSection.tsx +72 -0
  441. package/src/pages/marketing/LandingPage.tsx +45 -0
  442. package/src/pages/marketing/LogoCloud.tsx +31 -0
  443. package/src/pages/marketing/LogoMarquee.tsx +45 -0
  444. package/src/pages/marketing/MarketingNav.tsx +80 -0
  445. package/src/pages/marketing/MatchingLayers.tsx +78 -0
  446. package/src/pages/marketing/MobileMenu.tsx +45 -0
  447. package/src/pages/marketing/PricingCard.tsx +57 -0
  448. package/src/pages/marketing/PricingFeatureRow.tsx +16 -0
  449. package/src/pages/marketing/PricingSection.tsx +103 -0
  450. package/src/pages/marketing/PricingToggle.tsx +40 -0
  451. package/src/pages/marketing/ProductPricingCards.tsx +23 -0
  452. package/src/pages/marketing/ProductShowcase.tsx +81 -0
  453. package/src/pages/marketing/ProductTabs.tsx +45 -0
  454. package/src/pages/marketing/QuoteRotator.tsx +56 -0
  455. package/src/pages/marketing/StatsBar.tsx +81 -0
  456. package/src/pages/marketing/StatsSection.tsx +44 -0
  457. package/src/pages/marketing/TestimonialCard.tsx +38 -0
  458. package/src/pages/marketing/TestimonialsSection.tsx +32 -0
  459. package/src/pages/marketing/animations.tsx +56 -0
  460. package/src/pages/onboarding/CountryStep.tsx +38 -0
  461. package/src/pages/onboarding/ListsStep.tsx +44 -0
  462. package/src/pages/onboarding/StepIndicator.tsx +34 -0
  463. package/src/pages/onboarding/ThresholdStep.tsx +49 -0
  464. package/src/pages/platform/APIKeys.tsx +102 -0
  465. package/src/pages/platform/Overview.tsx +58 -0
  466. package/src/pages/platform/Users.tsx +110 -0
  467. package/src/pages/reporting/ComplianceReport.tsx +99 -0
  468. package/src/pages/reporting/SARForm.tsx +99 -0
  469. package/src/routes/appRoutes.tsx +60 -0
  470. package/src/routes/compliance.tsx +28 -0
  471. package/src/routes/lazyCompliance.ts +34 -0
  472. package/src/routes/lazyPages.ts +35 -0
  473. package/src/routes/lazyPlatform.ts +5 -0
  474. package/src/routes/platform.tsx +15 -0
  475. package/src/styles/effects.css +76 -0
  476. package/src/test/setup.ts +25 -0
  477. package/src/test/utils.tsx +49 -0
  478. package/src/types/alert.ts +31 -0
  479. package/src/types/analytics.ts +16 -0
  480. package/src/types/audit.ts +11 -0
  481. package/src/types/billing.ts +60 -0
  482. package/src/types/common.ts +15 -0
  483. package/src/types/config.ts +19 -0
  484. package/src/types/entity.ts +34 -0
  485. package/src/types/index.ts +8 -0
  486. package/src/types/list.ts +15 -0
  487. package/src/types/screening.ts +32 -0
  488. package/src/vite-env.d.ts +1 -0
  489. package/tailwind.config.js +65 -0
  490. package/tsconfig.json +22 -0
  491. package/vite.config.ts +11 -0
  492. package/vitest.config.ts +19 -0
@@ -0,0 +1,289 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-w4-Nhv9q.js","assets/useAnalytics-Bj8IONcw.js","assets/Card-Cw-T_-oU.js","assets/Badge-B9VFkofy.js","assets/AlertQueue-DFtBiRoM.js","assets/alerts-COUnTwWY.js","assets/EmptyState-Do0xJAT9.js","assets/AlertDetailPage-Bc2_zwu_.js","assets/PageHeader-BObHFn0i.js","assets/check-circle-2-Dn-lG5YQ.js","assets/x-circle-DLGKvijE.js","assets/alert-triangle-YCFVm7B_.js","assets/arrow-left-9ApLqP95.js","assets/ScreenEntity-D1U0YL7v.js","assets/flag-B8_Gwxh6.js","assets/ScreeningProgress-BW49PzoB.js","assets/mail-BijL2qwp.js","assets/check-VTcvVtIU.js","assets/fingerprint-C0MGVtax.js","assets/Configuration-B92kl9T0.js","assets/plus-i0oBIIPS.js","assets/Analytics-DtruB5lQ.js","assets/AuditTrail-BK68ePu0.js","assets/Monitoring-9TN9MK4y.js","assets/BatchJobs-Bz6KFnXD.js","assets/SanctionsLists-CPA3UH2v.js","assets/refresh-cw-CSuAwutt.js","assets/Login-677LEGP1.js","assets/layers-zHz2o4vo.js","assets/AuthDivider-gRHEt7gx.js","assets/Signup-C0FmFOo_.js","assets/LandingPage-CjaP0zw4.js","assets/BillingPage-R9nQ5nFb.js","assets/code-DIJRWFVv.js","assets/Onboarding-Cf0Y83lX.js","assets/Tenants-RB9E9ick.js","assets/SearchField-CulFKdiI.js","assets/TenantDetail-CgZQHUY8.js","assets/SystemHealth-B_8u4eva.js","assets/DataSources-u3-Ri_5_.js","assets/Operations-CcXwc2xw.js","assets/ScheduledTasks-Dsjk-6UR.js","assets/loader-B9_dNihg.js","assets/Team-CUo_FlU7.js","assets/ForgotPassword-BPYyQFQp.js","assets/ListsMarketplace-CG6KkT9B.js","assets/APIKeys-DaMSBZQL.js","assets/Webhooks-BZpAfaxv.js","assets/CryptoScreening-C7yFlskC.js","assets/TxnScreening-B7cm2-eh.js","assets/MFASetup-BxqCPvui.js","assets/ResetPassword-AtxtpIG1.js","assets/TaskHistory-BCmEM89q.js","assets/CaseManagement-B1Q4Dp1Y.js","assets/RiskAssessment-Dzuh1Usv.js","assets/TransactionMonitoring-DGh_T22s.js","assets/PEPScreening-pUQjTH9c.js","assets/Overview-B_Ky0VWV.js","assets/Users-Doakpg9c.js","assets/APIKeys-BvwFauIs.js"])))=>i.map(i=>d[i]);
2
+ var hy=Object.defineProperty;var py=(e,t,n)=>t in e?hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ro=(e,t,n)=>py(e,typeof t!="symbol"?t+"":t,n);function my(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var xD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var th={exports:{}},ro={},nh={exports:{}},W={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ki=Symbol.for("react.element"),yy=Symbol.for("react.portal"),vy=Symbol.for("react.fragment"),xy=Symbol.for("react.strict_mode"),wy=Symbol.for("react.profiler"),_y=Symbol.for("react.provider"),Sy=Symbol.for("react.context"),ky=Symbol.for("react.forward_ref"),Cy=Symbol.for("react.suspense"),Py=Symbol.for("react.memo"),Ey=Symbol.for("react.lazy"),uc=Symbol.iterator;function by(e){return e===null||typeof e!="object"?null:(e=uc&&e[uc]||e["@@iterator"],typeof e=="function"?e:null)}var rh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ih=Object.assign,sh={};function vr(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||rh}vr.prototype.isReactComponent={};vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oh(){}oh.prototype=vr.prototype;function Vl(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||rh}var Fl=Vl.prototype=new oh;Fl.constructor=Vl;ih(Fl,vr.prototype);Fl.isPureReactComponent=!0;var cc=Array.isArray,ah=Object.prototype.hasOwnProperty,zl={current:null},lh={key:!0,ref:!0,__self:!0,__source:!0};function uh(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)ah.call(t,r)&&!lh.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ki,type:e,key:s,ref:o,props:i,_owner:zl.current}}function Ty(e,t){return{$$typeof:ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ki}function Ly(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dc=/\/+/g;function $o(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ly(""+e.key):t.toString(36)}function ss(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ki:case yy:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+$o(o,0):r,cc(i)?(n="",e!=null&&(n=e.replace(dc,"$&/")+"/"),ss(i,t,n,"",function(u){return u})):i!=null&&(Bl(i)&&(i=Ty(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(dc,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",cc(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+$o(s,a);o+=ss(s,t,n,l,i)}else if(l=by(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+$o(s,a++),o+=ss(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ni(e,t,n){if(e==null)return e;var r=[],i=0;return ss(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Ay(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var be={current:null},os={transition:null},jy={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:os,ReactCurrentOwner:zl};function ch(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Ni,forEach:function(e,t,n){Ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ni(e,function(){t++}),t},toArray:function(e){return Ni(e,function(t){return t})||[]},only:function(e){if(!Bl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=vr;W.Fragment=vy;W.Profiler=wy;W.PureComponent=Vl;W.StrictMode=xy;W.Suspense=Cy;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jy;W.act=ch;W.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ih({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=zl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ah.call(t,l)&&!lh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ki,type:e.type,key:i,ref:s,props:r,_owner:o}};W.createContext=function(e){return e={$$typeof:Sy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_y,_context:e},e.Consumer=e};W.createElement=uh;W.createFactory=function(e){var t=uh.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:ky,render:e}};W.isValidElement=Bl;W.lazy=function(e){return{$$typeof:Ey,_payload:{_status:-1,_result:e},_init:Ay}};W.memo=function(e,t){return{$$typeof:Py,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=os.transition;os.transition={};try{e()}finally{os.transition=t}};W.unstable_act=ch;W.useCallback=function(e,t){return be.current.useCallback(e,t)};W.useContext=function(e){return be.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return be.current.useDeferredValue(e)};W.useEffect=function(e,t){return be.current.useEffect(e,t)};W.useId=function(){return be.current.useId()};W.useImperativeHandle=function(e,t,n){return be.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return be.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return be.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return be.current.useMemo(e,t)};W.useReducer=function(e,t,n){return be.current.useReducer(e,t,n)};W.useRef=function(e){return be.current.useRef(e)};W.useState=function(e){return be.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return be.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return be.current.useTransition()};W.version="18.3.1";nh.exports=W;var x=nh.exports;const Ci=gy(x),Ry=my({__proto__:null,default:Ci},[x]);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var $y=x,Ny=Symbol.for("react.element"),Dy=Symbol.for("react.fragment"),My=Object.prototype.hasOwnProperty,Oy=$y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Iy={key:!0,ref:!0,__self:!0,__source:!0};function dh(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)My.call(t,r)&&!Iy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ny,type:e,key:s,ref:o,props:i,_owner:Oy.current}}ro.Fragment=Dy;ro.jsx=dh;ro.jsxs=dh;th.exports=ro;var h=th.exports,Ca={},fh={exports:{}},We={},hh={exports:{}},ph={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(T,$){var z=T.length;T.push($);e:for(;0<z;){var R=z-1>>>1,K=T[R];if(0<i(K,$))T[R]=$,T[z]=K,z=R;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var $=T[0],z=T.pop();if(z!==$){T[0]=z;e:for(var R=0,K=T.length,Me=K>>>1;R<Me;){var Oe=2*(R+1)-1,pt=T[Oe],Ie=Oe+1,an=T[Ie];if(0>i(pt,z))Ie<K&&0>i(an,pt)?(T[R]=an,T[Ie]=z,R=Ie):(T[R]=pt,T[Oe]=z,R=Oe);else if(Ie<K&&0>i(an,z))T[R]=an,T[Ie]=z,R=Ie;else break e}}return $}function i(T,$){var z=T.sortIndex-$.sortIndex;return z!==0?z:T.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,c=null,f=3,m=!1,y=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=T)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function _(T){if(w=!1,g(T),!y)if(n(l)!==null)y=!0,B(k);else{var $=n(u);$!==null&&Y(_,$.startTime-T)}}function k(T,$){y=!1,w&&(w=!1,v(C),C=-1),m=!0;var z=f;try{for(g($),c=n(l);c!==null&&(!(c.expirationTime>$)||T&&!te());){var R=c.callback;if(typeof R=="function"){c.callback=null,f=c.priorityLevel;var K=R(c.expirationTime<=$);$=e.unstable_now(),typeof K=="function"?c.callback=K:c===n(l)&&r(l),g($)}else r(l);c=n(l)}if(c!==null)var Me=!0;else{var Oe=n(u);Oe!==null&&Y(_,Oe.startTime-$),Me=!1}return Me}finally{c=null,f=z,m=!1}}var b=!1,P=null,C=-1,A=5,L=-1;function te(){return!(e.unstable_now()-L<A)}function F(){if(P!==null){var T=e.unstable_now();L=T;var $=!0;try{$=P(!0,T)}finally{$?N():(b=!1,P=null)}}else b=!1}var N;if(typeof p=="function")N=function(){p(F)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,G=D.port2;D.port1.onmessage=F,N=function(){G.postMessage(null)}}else N=function(){S(F,0)};function B(T){P=T,b||(b=!0,N())}function Y(T,$){C=S(function(){T(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,B(k))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var $=3;break;default:$=f}var z=f;f=$;try{return T()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,$){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=f;f=T;try{return $()}finally{f=z}},e.unstable_scheduleCallback=function(T,$,z){var R=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?R+z:R):z=R,T){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=z+K,T={id:d++,callback:$,priorityLevel:T,startTime:z,expirationTime:K,sortIndex:-1},z>R?(T.sortIndex=z,t(u,T),n(l)===null&&T===n(u)&&(w?(v(C),C=-1):w=!0,Y(_,z-R))):(T.sortIndex=K,t(l,T),y||m||(y=!0,B(k))),T},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(T){var $=f;return function(){var z=f;f=$;try{return T.apply(this,arguments)}finally{f=z}}}})(ph);hh.exports=ph;var Vy=hh.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Fy=x,Be=Vy;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mh=new Set,ei={};function jn(e,t){lr(e,t),lr(e+"Capture",t)}function lr(e,t){for(ei[e]=t,e=0;e<t.length;e++)mh.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pa=Object.prototype.hasOwnProperty,zy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fc={},hc={};function By(e){return Pa.call(hc,e)?!0:Pa.call(fc,e)?!1:zy.test(e)?hc[e]=!0:(fc[e]=!0,!1)}function Uy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wy(e,t,n,r){if(t===null||typeof t>"u"||Uy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new Te(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ve[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function Wl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ul,Wl);ve[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ul,Wl);ve[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ul,Wl);ve[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hl(e,t,n,r){var i=ve.hasOwnProperty(t)?ve[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wy(t,n,i,r)&&(n=null),r||i===null?By(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=Fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Di=Symbol.for("react.element"),Vn=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),Kl=Symbol.for("react.strict_mode"),Ea=Symbol.for("react.profiler"),gh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),Ql=Symbol.for("react.forward_ref"),ba=Symbol.for("react.suspense"),Ta=Symbol.for("react.suspense_list"),Gl=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),vh=Symbol.for("react.offscreen"),pc=Symbol.iterator;function kr(e){return e===null||typeof e!="object"?null:(e=pc&&e[pc]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,No;function Nr(e){if(No===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);No=t&&t[1]||""}return`
35
+ `+No+e}var Do=!1;function Mo(e,t){if(!e||Do)return"";Do=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
36
+ `),s=r.stack.split(`
37
+ `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
38
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Do=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Hy(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Mo(e.type,!1),e;case 11:return e=Mo(e.type.render,!1),e;case 1:return e=Mo(e.type,!0),e;default:return""}}function La(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Vn:return"Portal";case Ea:return"Profiler";case Kl:return"StrictMode";case ba:return"Suspense";case Ta:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yh:return(e.displayName||"Context")+".Consumer";case gh:return(e._context.displayName||"Context")+".Provider";case Ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gl:return t=e.displayName||null,t!==null?t:La(e.type)||"Memo";case Rt:t=e._payload,e=e._init;try{return La(e(t))}catch{}}return null}function Ky(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return La(t);case 8:return t===Kl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qy(e){var t=xh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mi(e){e._valueTracker||(e._valueTracker=Qy(e))}function wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ws(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Aa(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _h(e,t){t=t.checked,t!=null&&Hl(e,"checked",t,!1)}function ja(e,t){_h(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ra(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ra(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ra(e,t,n){(t!=="number"||ws(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function $a(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Dr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qt(n)}}function Sh(e,t){var n=qt(t.value),r=qt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function vc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Na(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oi,Ch=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Oi=Oi||document.createElement("div"),Oi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gy=["Webkit","ms","Moz","O"];Object.keys(Vr).forEach(function(e){Gy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vr[t]=Vr[e]})});function Ph(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vr.hasOwnProperty(e)&&Vr[e]?(""+t).trim():t+"px"}function Eh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ph(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yy=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Da(e,t){if(t){if(Yy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ma(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oa=null;function Yl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ia=null,nr=null,rr=null;function xc(e){if(e=bi(e)){if(typeof Ia!="function")throw Error(E(280));var t=e.stateNode;t&&(t=lo(t),Ia(e.stateNode,e.type,t))}}function bh(e){nr?rr?rr.push(e):rr=[e]:nr=e}function Th(){if(nr){var e=nr,t=rr;if(rr=nr=null,xc(e),t)for(e=0;e<t.length;e++)xc(t[e])}}function Lh(e,t){return e(t)}function Ah(){}var Oo=!1;function jh(e,t,n){if(Oo)return e(t,n);Oo=!0;try{return Lh(e,t,n)}finally{Oo=!1,(nr!==null||rr!==null)&&(Ah(),Th())}}function ni(e,t){var n=e.stateNode;if(n===null)return null;var r=lo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Va=!1;if(kt)try{var Cr={};Object.defineProperty(Cr,"passive",{get:function(){Va=!0}}),window.addEventListener("test",Cr,Cr),window.removeEventListener("test",Cr,Cr)}catch{Va=!1}function qy(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Fr=!1,_s=null,Ss=!1,Fa=null,Xy={onError:function(e){Fr=!0,_s=e}};function Zy(e,t,n,r,i,s,o,a,l){Fr=!1,_s=null,qy.apply(Xy,arguments)}function Jy(e,t,n,r,i,s,o,a,l){if(Zy.apply(this,arguments),Fr){if(Fr){var u=_s;Fr=!1,_s=null}else throw Error(E(198));Ss||(Ss=!0,Fa=u)}}function Rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Rh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wc(e){if(Rn(e)!==e)throw Error(E(188))}function ev(e){var t=e.alternate;if(!t){if(t=Rn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return wc(i),e;if(s===r)return wc(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function $h(e){return e=ev(e),e!==null?Nh(e):null}function Nh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nh(e);if(t!==null)return t;e=e.sibling}return null}var Dh=Be.unstable_scheduleCallback,_c=Be.unstable_cancelCallback,tv=Be.unstable_shouldYield,nv=Be.unstable_requestPaint,le=Be.unstable_now,rv=Be.unstable_getCurrentPriorityLevel,ql=Be.unstable_ImmediatePriority,Mh=Be.unstable_UserBlockingPriority,ks=Be.unstable_NormalPriority,iv=Be.unstable_LowPriority,Oh=Be.unstable_IdlePriority,io=null,dt=null;function sv(e){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(io,e,void 0,(e.current.flags&128)===128)}catch{}}var it=Math.clz32?Math.clz32:lv,ov=Math.log,av=Math.LN2;function lv(e){return e>>>=0,e===0?32:31-(ov(e)/av|0)|0}var Ii=64,Vi=4194304;function Mr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Mr(a):(s&=o,s!==0&&(r=Mr(s)))}else o=n&~i,o!==0?r=Mr(o):s!==0&&(r=Mr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-it(t),i=1<<n,r|=e[n],t&=~i;return r}function uv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-it(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=uv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function za(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ih(){var e=Ii;return Ii<<=1,!(Ii&4194240)&&(Ii=64),e}function Io(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function dv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-it(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Xl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Q=0;function Vh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fh,Zl,zh,Bh,Uh,Ba=!1,Fi=[],Ft=null,zt=null,Bt=null,ri=new Map,ii=new Map,Dt=[],fv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,t){switch(e){case"focusin":case"focusout":Ft=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function Pr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=bi(t),t!==null&&Zl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hv(e,t,n,r,i){switch(t){case"focusin":return Ft=Pr(Ft,e,t,n,r,i),!0;case"dragenter":return zt=Pr(zt,e,t,n,r,i),!0;case"mouseover":return Bt=Pr(Bt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ri.set(s,Pr(ri.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,Pr(ii.get(s)||null,e,t,n,r,i)),!0}return!1}function Wh(e){var t=gn(e.target);if(t!==null){var n=Rn(t);if(n!==null){if(t=n.tag,t===13){if(t=Rh(n),t!==null){e.blockedOn=t,Uh(e.priority,function(){zh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ua(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oa=r,n.target.dispatchEvent(r),Oa=null}else return t=bi(n),t!==null&&Zl(t),e.blockedOn=n,!1;t.shift()}return!0}function kc(e,t,n){as(e)&&n.delete(t)}function pv(){Ba=!1,Ft!==null&&as(Ft)&&(Ft=null),zt!==null&&as(zt)&&(zt=null),Bt!==null&&as(Bt)&&(Bt=null),ri.forEach(kc),ii.forEach(kc)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,Ba||(Ba=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,pv)))}function si(e){function t(i){return Er(i,e)}if(0<Fi.length){Er(Fi[0],e);for(var n=1;n<Fi.length;n++){var r=Fi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ft!==null&&Er(Ft,e),zt!==null&&Er(zt,e),Bt!==null&&Er(Bt,e),ri.forEach(t),ii.forEach(t),n=0;n<Dt.length;n++)r=Dt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&(n=Dt[0],n.blockedOn===null);)Wh(n),n.blockedOn===null&&Dt.shift()}var ir=Tt.ReactCurrentBatchConfig,Ps=!0;function mv(e,t,n,r){var i=Q,s=ir.transition;ir.transition=null;try{Q=1,Jl(e,t,n,r)}finally{Q=i,ir.transition=s}}function gv(e,t,n,r){var i=Q,s=ir.transition;ir.transition=null;try{Q=4,Jl(e,t,n,r)}finally{Q=i,ir.transition=s}}function Jl(e,t,n,r){if(Ps){var i=Ua(e,t,n,r);if(i===null)Go(e,t,r,Es,n),Sc(e,r);else if(hv(i,e,t,n,r))r.stopPropagation();else if(Sc(e,r),t&4&&-1<fv.indexOf(e)){for(;i!==null;){var s=bi(i);if(s!==null&&Fh(s),s=Ua(e,t,n,r),s===null&&Go(e,t,r,Es,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Go(e,t,r,null,n)}}var Es=null;function Ua(e,t,n,r){if(Es=null,e=Yl(r),e=gn(e),e!==null)if(t=Rn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Rh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Es=e,null}function Hh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rv()){case ql:return 1;case Mh:return 4;case ks:case iv:return 16;case Oh:return 536870912;default:return 16}default:return 16}}var Ot=null,eu=null,ls=null;function Kh(){if(ls)return ls;var e,t=eu,n=t.length,r,i="value"in Ot?Ot.value:Ot.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return ls=i.slice(e,1<r?1-r:void 0)}function us(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zi(){return!0}function Cc(){return!1}function He(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?zi:Cc,this.isPropagationStopped=Cc,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=He(xr),Ei=se({},xr,{view:0,detail:0}),yv=He(Ei),Vo,Fo,br,so=se({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==br&&(br&&e.type==="mousemove"?(Vo=e.screenX-br.screenX,Fo=e.screenY-br.screenY):Fo=Vo=0,br=e),Vo)},movementY:function(e){return"movementY"in e?e.movementY:Fo}}),Pc=He(so),vv=se({},so,{dataTransfer:0}),xv=He(vv),wv=se({},Ei,{relatedTarget:0}),zo=He(wv),_v=se({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sv=He(_v),kv=se({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cv=He(kv),Pv=se({},xr,{data:0}),Ec=He(Pv),Ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tv[e])?!!t[e]:!1}function nu(){return Lv}var Av=se({},Ei,{key:function(e){if(e.key){var t=Ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nu,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jv=He(Av),Rv=se({},so,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bc=He(Rv),$v=se({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nu}),Nv=He($v),Dv=se({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mv=He(Dv),Ov=se({},so,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Iv=He(Ov),Vv=[9,13,27,32],ru=kt&&"CompositionEvent"in window,zr=null;kt&&"documentMode"in document&&(zr=document.documentMode);var Fv=kt&&"TextEvent"in window&&!zr,Qh=kt&&(!ru||zr&&8<zr&&11>=zr),Tc=" ",Lc=!1;function Gh(e,t){switch(e){case"keyup":return Vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function zv(e,t){switch(e){case"compositionend":return Yh(t);case"keypress":return t.which!==32?null:(Lc=!0,Tc);case"textInput":return e=t.data,e===Tc&&Lc?null:e;default:return null}}function Bv(e,t){if(zn)return e==="compositionend"||!ru&&Gh(e,t)?(e=Kh(),ls=eu=Ot=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qh&&t.locale!=="ko"?null:t.data;default:return null}}var Uv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ac(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uv[e.type]:t==="textarea"}function qh(e,t,n,r){bh(r),t=bs(t,"onChange"),0<t.length&&(n=new tu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Br=null,oi=null;function Wv(e){ap(e,0)}function oo(e){var t=Wn(e);if(wh(t))return e}function Hv(e,t){if(e==="change")return t}var Xh=!1;if(kt){var Bo;if(kt){var Uo="oninput"in document;if(!Uo){var jc=document.createElement("div");jc.setAttribute("oninput","return;"),Uo=typeof jc.oninput=="function"}Bo=Uo}else Bo=!1;Xh=Bo&&(!document.documentMode||9<document.documentMode)}function Rc(){Br&&(Br.detachEvent("onpropertychange",Zh),oi=Br=null)}function Zh(e){if(e.propertyName==="value"&&oo(oi)){var t=[];qh(t,oi,e,Yl(e)),jh(Wv,t)}}function Kv(e,t,n){e==="focusin"?(Rc(),Br=t,oi=n,Br.attachEvent("onpropertychange",Zh)):e==="focusout"&&Rc()}function Qv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(oi)}function Gv(e,t){if(e==="click")return oo(t)}function Yv(e,t){if(e==="input"||e==="change")return oo(t)}function qv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:qv;function ai(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Pa.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nc(e,t){var n=$c(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function Jh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ep(){for(var e=window,t=ws();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ws(e.document)}return t}function iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xv(e){var t=ep(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jh(n.ownerDocument.documentElement,n)){if(r!==null&&iu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Nc(n,s);var o=Nc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zv=kt&&"documentMode"in document&&11>=document.documentMode,Bn=null,Wa=null,Ur=null,Ha=!1;function Dc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ha||Bn==null||Bn!==ws(r)||(r=Bn,"selectionStart"in r&&iu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&ai(Ur,r)||(Ur=r,r=bs(Wa,"onSelect"),0<r.length&&(t=new tu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bn)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Un={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},Wo={},tp={};kt&&(tp=document.createElement("div").style,"AnimationEvent"in window||(delete Un.animationend.animation,delete Un.animationiteration.animation,delete Un.animationstart.animation),"TransitionEvent"in window||delete Un.transitionend.transition);function ao(e){if(Wo[e])return Wo[e];if(!Un[e])return e;var t=Un[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tp)return Wo[e]=t[n];return e}var np=ao("animationend"),rp=ao("animationiteration"),ip=ao("animationstart"),sp=ao("transitionend"),op=new Map,Mc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function en(e,t){op.set(e,t),jn(t,[e])}for(var Ho=0;Ho<Mc.length;Ho++){var Ko=Mc[Ho],Jv=Ko.toLowerCase(),e0=Ko[0].toUpperCase()+Ko.slice(1);en(Jv,"on"+e0)}en(np,"onAnimationEnd");en(rp,"onAnimationIteration");en(ip,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(sp,"onTransitionEnd");lr("onMouseEnter",["mouseout","mouseover"]);lr("onMouseLeave",["mouseout","mouseover"]);lr("onPointerEnter",["pointerout","pointerover"]);lr("onPointerLeave",["pointerout","pointerover"]);jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));jn("onBeforeInput",["compositionend","keypress","textInput","paste"]);jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Oc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jy(r,t,void 0,e),e.currentTarget=null}function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Oc(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Oc(i,a,u),s=l}}}if(Ss)throw e=Fa,Ss=!1,Fa=null,e}function Z(e,t){var n=t[qa];n===void 0&&(n=t[qa]=new Set);var r=e+"__bubble";n.has(r)||(lp(t,e,2,!1),n.add(r))}function Qo(e,t,n){var r=0;t&&(r|=4),lp(n,e,r,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function li(e){if(!e[Ui]){e[Ui]=!0,mh.forEach(function(n){n!=="selectionchange"&&(t0.has(n)||Qo(n,!1,e),Qo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Qo("selectionchange",!1,t))}}function lp(e,t,n,r){switch(Hh(t)){case 1:var i=mv;break;case 4:i=gv;break;default:i=Jl}n=i.bind(null,t,n,e),i=void 0,!Va||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Go(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=gn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}jh(function(){var u=s,d=Yl(n),c=[];e:{var f=op.get(e);if(f!==void 0){var m=tu,y=e;switch(e){case"keypress":if(us(n)===0)break e;case"keydown":case"keyup":m=jv;break;case"focusin":y="focus",m=zo;break;case"focusout":y="blur",m=zo;break;case"beforeblur":case"afterblur":m=zo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=xv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Nv;break;case np:case rp:case ip:m=Sv;break;case sp:m=Mv;break;case"scroll":m=yv;break;case"wheel":m=Iv;break;case"copy":case"cut":case"paste":m=Cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=bc}var w=(t&4)!==0,S=!w&&e==="scroll",v=w?f!==null?f+"Capture":null:f;w=[];for(var p=u,g;p!==null;){g=p;var _=g.stateNode;if(g.tag===5&&_!==null&&(g=_,v!==null&&(_=ni(p,v),_!=null&&w.push(ui(p,_,g)))),S)break;p=p.return}0<w.length&&(f=new m(f,y,null,n,d),c.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==Oa&&(y=n.relatedTarget||n.fromElement)&&(gn(y)||y[Ct]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?gn(y):null,y!==null&&(S=Rn(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(w=Pc,_="onMouseLeave",v="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(w=bc,_="onPointerLeave",v="onPointerEnter",p="pointer"),S=m==null?f:Wn(m),g=y==null?f:Wn(y),f=new w(_,p+"leave",m,n,d),f.target=S,f.relatedTarget=g,_=null,gn(d)===u&&(w=new w(v,p+"enter",y,n,d),w.target=g,w.relatedTarget=S,_=w),S=_,m&&y)t:{for(w=m,v=y,p=0,g=w;g;g=Mn(g))p++;for(g=0,_=v;_;_=Mn(_))g++;for(;0<p-g;)w=Mn(w),p--;for(;0<g-p;)v=Mn(v),g--;for(;p--;){if(w===v||v!==null&&w===v.alternate)break t;w=Mn(w),v=Mn(v)}w=null}else w=null;m!==null&&Ic(c,f,m,w,!1),y!==null&&S!==null&&Ic(c,S,y,w,!0)}}e:{if(f=u?Wn(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var k=Hv;else if(Ac(f))if(Xh)k=Yv;else{k=Qv;var b=Kv}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=Gv);if(k&&(k=k(e,u))){qh(c,k,n,d);break e}b&&b(e,f,u),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Ra(f,"number",f.value)}switch(b=u?Wn(u):window,e){case"focusin":(Ac(b)||b.contentEditable==="true")&&(Bn=b,Wa=u,Ur=null);break;case"focusout":Ur=Wa=Bn=null;break;case"mousedown":Ha=!0;break;case"contextmenu":case"mouseup":case"dragend":Ha=!1,Dc(c,n,d);break;case"selectionchange":if(Zv)break;case"keydown":case"keyup":Dc(c,n,d)}var P;if(ru)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else zn?Gh(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Qh&&n.locale!=="ko"&&(zn||C!=="onCompositionStart"?C==="onCompositionEnd"&&zn&&(P=Kh()):(Ot=d,eu="value"in Ot?Ot.value:Ot.textContent,zn=!0)),b=bs(u,C),0<b.length&&(C=new Ec(C,e,null,n,d),c.push({event:C,listeners:b}),P?C.data=P:(P=Yh(n),P!==null&&(C.data=P)))),(P=Fv?zv(e,n):Bv(e,n))&&(u=bs(u,"onBeforeInput"),0<u.length&&(d=new Ec("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=P))}ap(c,t)})}function ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ni(e,n),s!=null&&r.unshift(ui(e,s,i)),s=ni(e,t),s!=null&&r.push(ui(e,s,i))),e=e.return}return r}function Mn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ic(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ni(n,s),l!=null&&o.unshift(ui(n,l,a))):i||(l=ni(n,s),l!=null&&o.push(ui(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var n0=/\r\n?/g,r0=/\u0000|\uFFFD/g;function Vc(e){return(typeof e=="string"?e:""+e).replace(n0,`
39
+ `).replace(r0,"")}function Wi(e,t,n){if(t=Vc(t),Vc(e)!==t&&n)throw Error(E(425))}function Ts(){}var Ka=null,Qa=null;function Ga(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ya=typeof setTimeout=="function"?setTimeout:void 0,i0=typeof clearTimeout=="function"?clearTimeout:void 0,Fc=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof Fc<"u"?function(e){return Fc.resolve(null).then(e).catch(o0)}:Ya;function o0(e){setTimeout(function(){throw e})}function Yo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),si(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);si(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wr=Math.random().toString(36).slice(2),ut="__reactFiber$"+wr,ci="__reactProps$"+wr,Ct="__reactContainer$"+wr,qa="__reactEvents$"+wr,a0="__reactListeners$"+wr,l0="__reactHandles$"+wr;function gn(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zc(e);e!==null;){if(n=e[ut])return n;e=zc(e)}return t}e=n,n=e.parentNode}return null}function bi(e){return e=e[ut]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function lo(e){return e[ci]||null}var Xa=[],Hn=-1;function tn(e){return{current:e}}function J(e){0>Hn||(e.current=Xa[Hn],Xa[Hn]=null,Hn--)}function q(e,t){Hn++,Xa[Hn]=e.current,e.current=t}var Xt={},ke=tn(Xt),Re=tn(!1),Pn=Xt;function ur(e,t){var n=e.type.contextTypes;if(!n)return Xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Ls(){J(Re),J(ke)}function Bc(e,t,n){if(ke.current!==Xt)throw Error(E(168));q(ke,t),q(Re,n)}function up(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,Ky(e)||"Unknown",i));return se({},n,r)}function As(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xt,Pn=ke.current,q(ke,e),q(Re,Re.current),!0}function Uc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=up(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,J(Re),J(ke),q(ke,e)):J(Re),q(Re,n)}var gt=null,uo=!1,qo=!1;function cp(e){gt===null?gt=[e]:gt.push(e)}function u0(e){uo=!0,cp(e)}function nn(){if(!qo&&gt!==null){qo=!0;var e=0,t=Q;try{var n=gt;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,uo=!1}catch(i){throw gt!==null&&(gt=gt.slice(e+1)),Dh(ql,nn),i}finally{Q=t,qo=!1}}return null}var Kn=[],Qn=0,js=null,Rs=0,Ge=[],Ye=0,En=null,yt=1,vt="";function dn(e,t){Kn[Qn++]=Rs,Kn[Qn++]=js,js=e,Rs=t}function dp(e,t,n){Ge[Ye++]=yt,Ge[Ye++]=vt,Ge[Ye++]=En,En=e;var r=yt;e=vt;var i=32-it(r)-1;r&=~(1<<i),n+=1;var s=32-it(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yt=1<<32-it(t)+i|n<<i|r,vt=s+e}else yt=1<<s|n<<i|r,vt=e}function su(e){e.return!==null&&(dn(e,1),dp(e,1,0))}function ou(e){for(;e===js;)js=Kn[--Qn],Kn[Qn]=null,Rs=Kn[--Qn],Kn[Qn]=null;for(;e===En;)En=Ge[--Ye],Ge[Ye]=null,vt=Ge[--Ye],Ge[Ye]=null,yt=Ge[--Ye],Ge[Ye]=null}var ze=null,Fe=null,ee=!1,rt=null;function fp(e,t){var n=qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Wc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ze=e,Fe=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,Fe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=En!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,Fe=null,!0):!1;default:return!1}}function Za(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ja(e){if(ee){var t=Fe;if(t){var n=t;if(!Wc(e,t)){if(Za(e))throw Error(E(418));t=Ut(n.nextSibling);var r=ze;t&&Wc(e,t)?fp(r,n):(e.flags=e.flags&-4097|2,ee=!1,ze=e)}}else{if(Za(e))throw Error(E(418));e.flags=e.flags&-4097|2,ee=!1,ze=e}}}function Hc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function Hi(e){if(e!==ze)return!1;if(!ee)return Hc(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ga(e.type,e.memoizedProps)),t&&(t=Fe)){if(Za(e))throw hp(),Error(E(418));for(;t;)fp(e,t),t=Ut(t.nextSibling)}if(Hc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Fe=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Fe=null}}else Fe=ze?Ut(e.stateNode.nextSibling):null;return!0}function hp(){for(var e=Fe;e;)e=Ut(e.nextSibling)}function cr(){Fe=ze=null,ee=!1}function au(e){rt===null?rt=[e]:rt.push(e)}var c0=Tt.ReactCurrentBatchConfig;function Tr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kc(e){var t=e._init;return t(e._payload)}function pp(e){function t(v,p){if(e){var g=v.deletions;g===null?(v.deletions=[p],v.flags|=16):g.push(p)}}function n(v,p){if(!e)return null;for(;p!==null;)t(v,p),p=p.sibling;return null}function r(v,p){for(v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function i(v,p){return v=Qt(v,p),v.index=0,v.sibling=null,v}function s(v,p,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<p?(v.flags|=2,p):g):(v.flags|=2,p)):(v.flags|=1048576,p)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,p,g,_){return p===null||p.tag!==6?(p=ra(g,v.mode,_),p.return=v,p):(p=i(p,g),p.return=v,p)}function l(v,p,g,_){var k=g.type;return k===Fn?d(v,p,g.props.children,_,g.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rt&&Kc(k)===p.type)?(_=i(p,g.props),_.ref=Tr(v,p,g),_.return=v,_):(_=gs(g.type,g.key,g.props,null,v.mode,_),_.ref=Tr(v,p,g),_.return=v,_)}function u(v,p,g,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=ia(g,v.mode,_),p.return=v,p):(p=i(p,g.children||[]),p.return=v,p)}function d(v,p,g,_,k){return p===null||p.tag!==7?(p=_n(g,v.mode,_,k),p.return=v,p):(p=i(p,g),p.return=v,p)}function c(v,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ra(""+p,v.mode,g),p.return=v,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Di:return g=gs(p.type,p.key,p.props,null,v.mode,g),g.ref=Tr(v,null,p),g.return=v,g;case Vn:return p=ia(p,v.mode,g),p.return=v,p;case Rt:var _=p._init;return c(v,_(p._payload),g)}if(Dr(p)||kr(p))return p=_n(p,v.mode,g,null),p.return=v,p;Ki(v,p)}return null}function f(v,p,g,_){var k=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return k!==null?null:a(v,p,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Di:return g.key===k?l(v,p,g,_):null;case Vn:return g.key===k?u(v,p,g,_):null;case Rt:return k=g._init,f(v,p,k(g._payload),_)}if(Dr(g)||kr(g))return k!==null?null:d(v,p,g,_,null);Ki(v,g)}return null}function m(v,p,g,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(g)||null,a(p,v,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Di:return v=v.get(_.key===null?g:_.key)||null,l(p,v,_,k);case Vn:return v=v.get(_.key===null?g:_.key)||null,u(p,v,_,k);case Rt:var b=_._init;return m(v,p,g,b(_._payload),k)}if(Dr(_)||kr(_))return v=v.get(g)||null,d(p,v,_,k,null);Ki(p,_)}return null}function y(v,p,g,_){for(var k=null,b=null,P=p,C=p=0,A=null;P!==null&&C<g.length;C++){P.index>C?(A=P,P=null):A=P.sibling;var L=f(v,P,g[C],_);if(L===null){P===null&&(P=A);break}e&&P&&L.alternate===null&&t(v,P),p=s(L,p,C),b===null?k=L:b.sibling=L,b=L,P=A}if(C===g.length)return n(v,P),ee&&dn(v,C),k;if(P===null){for(;C<g.length;C++)P=c(v,g[C],_),P!==null&&(p=s(P,p,C),b===null?k=P:b.sibling=P,b=P);return ee&&dn(v,C),k}for(P=r(v,P);C<g.length;C++)A=m(P,v,C,g[C],_),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?C:A.key),p=s(A,p,C),b===null?k=A:b.sibling=A,b=A);return e&&P.forEach(function(te){return t(v,te)}),ee&&dn(v,C),k}function w(v,p,g,_){var k=kr(g);if(typeof k!="function")throw Error(E(150));if(g=k.call(g),g==null)throw Error(E(151));for(var b=k=null,P=p,C=p=0,A=null,L=g.next();P!==null&&!L.done;C++,L=g.next()){P.index>C?(A=P,P=null):A=P.sibling;var te=f(v,P,L.value,_);if(te===null){P===null&&(P=A);break}e&&P&&te.alternate===null&&t(v,P),p=s(te,p,C),b===null?k=te:b.sibling=te,b=te,P=A}if(L.done)return n(v,P),ee&&dn(v,C),k;if(P===null){for(;!L.done;C++,L=g.next())L=c(v,L.value,_),L!==null&&(p=s(L,p,C),b===null?k=L:b.sibling=L,b=L);return ee&&dn(v,C),k}for(P=r(v,P);!L.done;C++,L=g.next())L=m(P,v,C,L.value,_),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?C:L.key),p=s(L,p,C),b===null?k=L:b.sibling=L,b=L);return e&&P.forEach(function(F){return t(v,F)}),ee&&dn(v,C),k}function S(v,p,g,_){if(typeof g=="object"&&g!==null&&g.type===Fn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Di:e:{for(var k=g.key,b=p;b!==null;){if(b.key===k){if(k=g.type,k===Fn){if(b.tag===7){n(v,b.sibling),p=i(b,g.props.children),p.return=v,v=p;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rt&&Kc(k)===b.type){n(v,b.sibling),p=i(b,g.props),p.ref=Tr(v,b,g),p.return=v,v=p;break e}n(v,b);break}else t(v,b);b=b.sibling}g.type===Fn?(p=_n(g.props.children,v.mode,_,g.key),p.return=v,v=p):(_=gs(g.type,g.key,g.props,null,v.mode,_),_.ref=Tr(v,p,g),_.return=v,v=_)}return o(v);case Vn:e:{for(b=g.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(v,p.sibling),p=i(p,g.children||[]),p.return=v,v=p;break e}else{n(v,p);break}else t(v,p);p=p.sibling}p=ia(g,v.mode,_),p.return=v,v=p}return o(v);case Rt:return b=g._init,S(v,p,b(g._payload),_)}if(Dr(g))return y(v,p,g,_);if(kr(g))return w(v,p,g,_);Ki(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(v,p.sibling),p=i(p,g),p.return=v,v=p):(n(v,p),p=ra(g,v.mode,_),p.return=v,v=p),o(v)):n(v,p)}return S}var dr=pp(!0),mp=pp(!1),$s=tn(null),Ns=null,Gn=null,lu=null;function uu(){lu=Gn=Ns=null}function cu(e){var t=$s.current;J($s),e._currentValue=t}function el(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sr(e,t){Ns=e,lu=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(lu!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(Ns===null)throw Error(E(308));Gn=e,Ns.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var yn=null;function du(e){yn===null?yn=[e]:yn.push(e)}function gp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,du(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $t=!1;function fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,du(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function cs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xl(e,n)}}function Qc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ds(e,t,n,r){var i=e.updateQueue;$t=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var c=i.baseState;o=0,d=u=l=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(f=t,m=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){c=y.call(m,c,f);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,f=typeof y=="function"?y.call(m,c,f):y,f==null)break e;c=se({},c,f);break e;case 2:$t=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=c):d=d.next=m,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Tn|=o,e.lanes=o,e.memoizedState=c}}function Gc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var Ti={},ft=tn(Ti),di=tn(Ti),fi=tn(Ti);function vn(e){if(e===Ti)throw Error(E(174));return e}function hu(e,t){switch(q(fi,t),q(di,e),q(ft,Ti),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Na(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Na(t,e)}J(ft),q(ft,t)}function fr(){J(ft),J(di),J(fi)}function vp(e){vn(fi.current);var t=vn(ft.current),n=Na(t,e.type);t!==n&&(q(di,e),q(ft,n))}function pu(e){di.current===e&&(J(ft),J(di))}var ne=tn(0);function Ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xo=[];function mu(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var ds=Tt.ReactCurrentDispatcher,Zo=Tt.ReactCurrentBatchConfig,bn=0,ie=null,fe=null,pe=null,Os=!1,Wr=!1,hi=0,d0=0;function xe(){throw Error(E(321))}function gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function yu(e,t,n,r,i,s){if(bn=s,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=e===null||e.memoizedState===null?m0:g0,e=n(r,i),Wr){s=0;do{if(Wr=!1,hi=0,25<=s)throw Error(E(301));s+=1,pe=fe=null,t.updateQueue=null,ds.current=y0,e=n(r,i)}while(Wr)}if(ds.current=Is,t=fe!==null&&fe.next!==null,bn=0,pe=fe=ie=null,Os=!1,t)throw Error(E(300));return e}function vu(){var e=hi!==0;return hi=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?ie.memoizedState=pe=e:pe=pe.next=e,pe}function Je(){if(fe===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=pe===null?ie.memoizedState:pe.next;if(t!==null)pe=t,fe=e;else{if(e===null)throw Error(E(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},pe===null?ie.memoizedState=pe=e:pe=pe.next=e}return pe}function pi(e,t){return typeof t=="function"?t(e):t}function Jo(e){var t=Je(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=fe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var d=u.lane;if((bn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,o=r):l=l.next=c,ie.lanes|=d,Tn|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,ot(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ie.lanes|=s,Tn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ea(e){var t=Je(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);ot(s,t.memoizedState)||(je=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function xp(){}function wp(e,t){var n=ie,r=Je(),i=t(),s=!ot(r.memoizedState,i);if(s&&(r.memoizedState=i,je=!0),r=r.queue,xu(kp.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,mi(9,Sp.bind(null,n,r,i,t),void 0,null),me===null)throw Error(E(349));bn&30||_p(n,t,i)}return i}function _p(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sp(e,t,n,r){t.value=n,t.getSnapshot=r,Cp(t)&&Pp(e)}function kp(e,t,n){return n(function(){Cp(t)&&Pp(e)})}function Cp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function Pp(e){var t=Pt(e,1);t!==null&&st(t,e,1,-1)}function Yc(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t.queue=e,e=e.dispatch=p0.bind(null,ie,e),[t.memoizedState,e]}function mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ie.updateQueue,t===null?(t={lastEffect:null,stores:null},ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ep(){return Je().memoizedState}function fs(e,t,n,r){var i=lt();ie.flags|=e,i.memoizedState=mi(1|t,n,void 0,r===void 0?null:r)}function co(e,t,n,r){var i=Je();r=r===void 0?null:r;var s=void 0;if(fe!==null){var o=fe.memoizedState;if(s=o.destroy,r!==null&&gu(r,o.deps)){i.memoizedState=mi(t,n,s,r);return}}ie.flags|=e,i.memoizedState=mi(1|t,n,s,r)}function qc(e,t){return fs(8390656,8,e,t)}function xu(e,t){return co(2048,8,e,t)}function bp(e,t){return co(4,2,e,t)}function Tp(e,t){return co(4,4,e,t)}function Lp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ap(e,t,n){return n=n!=null?n.concat([e]):null,co(4,4,Lp.bind(null,t,e),n)}function wu(){}function jp(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Rp(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $p(e,t,n){return bn&21?(ot(n,t)||(n=Ih(),ie.lanes|=n,Tn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,je=!0),e.memoizedState=n)}function f0(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{Q=n,Zo.transition=r}}function Np(){return Je().memoizedState}function h0(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dp(e))Mp(t,n);else if(n=gp(e,t,n,r),n!==null){var i=Ee();st(n,e,r,i),Op(n,t,r)}}function p0(e,t,n){var r=Kt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dp(e))Mp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,ot(a,o)){var l=t.interleaved;l===null?(i.next=i,du(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=gp(e,t,i,r),n!==null&&(i=Ee(),st(n,e,r,i),Op(n,t,r))}}function Dp(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Mp(e,t){Wr=Os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Op(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xl(e,n)}}var Is={readContext:Ze,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},m0={readContext:Ze,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fs(4194308,4,Lp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return fs(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=h0.bind(null,ie,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Yc,useDebugValue:wu,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Yc(!1),t=e[0];return e=f0.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ie,i=lt();if(ee){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),me===null)throw Error(E(349));bn&30||_p(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,qc(kp.bind(null,r,s,e),[e]),r.flags|=2048,mi(9,Sp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=me.identifierPrefix;if(ee){var n=vt,r=yt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},g0={readContext:Ze,useCallback:jp,useContext:Ze,useEffect:xu,useImperativeHandle:Ap,useInsertionEffect:bp,useLayoutEffect:Tp,useMemo:Rp,useReducer:Jo,useRef:Ep,useState:function(){return Jo(pi)},useDebugValue:wu,useDeferredValue:function(e){var t=Je();return $p(t,fe.memoizedState,e)},useTransition:function(){var e=Jo(pi)[0],t=Je().memoizedState;return[e,t]},useMutableSource:xp,useSyncExternalStore:wp,useId:Np,unstable_isNewReconciler:!1},y0={readContext:Ze,useCallback:jp,useContext:Ze,useEffect:xu,useImperativeHandle:Ap,useInsertionEffect:bp,useLayoutEffect:Tp,useMemo:Rp,useReducer:ea,useRef:Ep,useState:function(){return ea(pi)},useDebugValue:wu,useDeferredValue:function(e){var t=Je();return fe===null?t.memoizedState=e:$p(t,fe.memoizedState,e)},useTransition:function(){var e=ea(pi)[0],t=Je().memoizedState;return[e,t]},useMutableSource:xp,useSyncExternalStore:wp,useId:Np,unstable_isNewReconciler:!1};function tt(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fo={isMounted:function(e){return(e=e._reactInternals)?Rn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Kt(e),s=wt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Wt(e,s,i),t!==null&&(st(t,e,i,r),cs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Kt(e),s=wt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Wt(e,s,i),t!==null&&(st(t,e,i,r),cs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=Kt(e),i=wt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wt(e,i,r),t!==null&&(st(t,e,r,n),cs(t,e,r))}};function Xc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ai(n,r)||!ai(i,s):!0}function Ip(e,t,n){var r=!1,i=Xt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ze(s):(i=$e(t)?Pn:ke.current,r=t.contextTypes,s=(r=r!=null)?ur(e,i):Xt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Zc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fo.enqueueReplaceState(t,t.state,null)}function nl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},fu(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ze(s):(s=$e(t)?Pn:ke.current,i.context=ur(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(tl(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&fo.enqueueReplaceState(i,i.state,null),Ds(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hr(e,t){try{var n="",r=t;do n+=Hy(r),r=r.return;while(r);var i=n}catch(s){i=`
40
+ Error generating stack: `+s.message+`
41
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function ta(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var v0=typeof WeakMap=="function"?WeakMap:Map;function Vp(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fs||(Fs=!0,hl=r),rl(e,t)},n}function Fp(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){rl(e,t),typeof r!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Jc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new v0;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=R0.bind(null,e,t,n),t.then(e,e))}function ed(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function td(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var x0=Tt.ReactCurrentOwner,je=!1;function Pe(e,t,n,r){t.child=e===null?mp(t,null,n,r):dr(t,e.child,n,r)}function nd(e,t,n,r,i){n=n.render;var s=t.ref;return sr(t,i),r=yu(e,t,n,r,s,i),n=vu(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(ee&&n&&su(t),t.flags|=1,Pe(e,t,r,i),t.child)}function rd(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Tu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zp(e,t,s,r,i)):(e=gs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(o,r)&&e.ref===t.ref)return Et(e,t,i)}return t.flags|=1,e=Qt(s,r),e.ref=t.ref,e.return=t,t.child=e}function zp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ai(s,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,Et(e,t,i)}return il(e,t,n,r,i)}function Bp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(qn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(qn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,q(qn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,q(qn,Ve),Ve|=r;return Pe(e,t,i,n),t.child}function Up(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function il(e,t,n,r,i){var s=$e(n)?Pn:ke.current;return s=ur(t,s),sr(t,i),n=yu(e,t,n,r,s,i),r=vu(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Et(e,t,i)):(ee&&r&&su(t),t.flags|=1,Pe(e,t,n,i),t.child)}function id(e,t,n,r,i){if($e(n)){var s=!0;As(t)}else s=!1;if(sr(t,i),t.stateNode===null)hs(e,t),Ip(t,n,r),nl(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ze(u):(u=$e(n)?Pn:ke.current,u=ur(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Zc(t,o,r,u),$t=!1;var f=t.memoizedState;o.state=f,Ds(t,r,o,i),l=t.memoizedState,a!==r||f!==l||Re.current||$t?(typeof d=="function"&&(tl(t,n,d,r),l=t.memoizedState),(a=$t||Xc(t,n,a,r,f,l,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,yp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:tt(t.type,a),o.props=u,c=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ze(l):(l=$e(n)?Pn:ke.current,l=ur(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||f!==l)&&Zc(t,o,r,l),$t=!1,f=t.memoizedState,o.state=f,Ds(t,r,o,i);var y=t.memoizedState;a!==c||f!==y||Re.current||$t?(typeof m=="function"&&(tl(t,n,m,r),y=t.memoizedState),(u=$t||Xc(t,n,u,r,f,y,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return sl(e,t,n,r,s,i)}function sl(e,t,n,r,i,s){Up(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Uc(t,n,!1),Et(e,t,s);r=t.stateNode,x0.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=dr(t,e.child,null,s),t.child=dr(t,null,a,s)):Pe(e,t,a,s),t.memoizedState=r.state,i&&Uc(t,n,!0),t.child}function Wp(e){var t=e.stateNode;t.pendingContext?Bc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bc(e,t.context,!1),hu(e,t.containerInfo)}function sd(e,t,n,r,i){return cr(),au(i),t.flags|=256,Pe(e,t,n,r),t.child}var ol={dehydrated:null,treeContext:null,retryLane:0};function al(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hp(e,t,n){var r=t.pendingProps,i=ne.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),q(ne,i&1),e===null)return Ja(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=mo(o,r,0,null),e=_n(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=al(n),t.memoizedState=ol,e):_u(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return w0(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Qt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Qt(a,s):(s=_n(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?al(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=ol,r}return s=e.child,e=s.sibling,r=Qt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _u(e,t){return t=mo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&au(r),dr(t,e.child,null,n),e=_u(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function w0(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ta(Error(E(422))),Qi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=mo({mode:"visible",children:r.children},i,0,null),s=_n(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&dr(t,e.child,null,o),t.child.memoizedState=al(o),t.memoizedState=ol,s);if(!(t.mode&1))return Qi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=ta(s,r,void 0),Qi(e,t,o,r)}if(a=(o&e.childLanes)!==0,je||a){if(r=me,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Pt(e,i),st(r,e,i,-1))}return bu(),r=ta(Error(E(421))),Qi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$0.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Fe=Ut(i.nextSibling),ze=t,ee=!0,rt=null,e!==null&&(Ge[Ye++]=yt,Ge[Ye++]=vt,Ge[Ye++]=En,yt=e.id,vt=e.overflow,En=t),t=_u(t,r.children),t.flags|=4096,t)}function od(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),el(e.return,t,n)}function na(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Kp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Pe(e,t,r.children,n),r=ne.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&od(e,n,t);else if(e.tag===19)od(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(q(ne,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ms(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),na(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ms(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}na(t,!0,n,null,s);break;case"together":na(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _0(e,t,n){switch(t.tag){case 3:Wp(t),cr();break;case 5:vp(t);break;case 1:$e(t.type)&&As(t);break;case 4:hu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;q($s,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(ne,ne.current&1),t.flags|=128,null):n&t.child.childLanes?Hp(e,t,n):(q(ne,ne.current&1),e=Et(e,t,n),e!==null?e.sibling:null);q(ne,ne.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Kp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(ne,ne.current),r)break;return null;case 22:case 23:return t.lanes=0,Bp(e,t,n)}return Et(e,t,n)}var Qp,ll,Gp,Yp;Qp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ll=function(){};Gp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vn(ft.current);var s=null;switch(n){case"input":i=Aa(e,i),r=Aa(e,r),s=[];break;case"select":i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),s=[];break;case"textarea":i=$a(e,i),r=$a(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ts)}Da(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ei.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ei.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Z("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Yp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lr(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function S0(e,t,n){var r=t.pendingProps;switch(ou(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return $e(t.type)&&Ls(),we(t),null;case 3:return r=t.stateNode,fr(),J(Re),J(ke),mu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rt!==null&&(gl(rt),rt=null))),ll(e,t),we(t),null;case 5:pu(t);var i=vn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)Gp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return we(t),null}if(e=vn(ft.current),Hi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[ci]=s,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)Z(Or[i],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":mc(r,s),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Z("invalid",r);break;case"textarea":yc(r,s),Z("invalid",r)}Da(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Wi(r.textContent,a,e),i=["children",""+a]):ei.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Z("scroll",r)}switch(n){case"input":Mi(r),gc(r,s,!0);break;case"textarea":Mi(r),vc(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ts)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[ci]=r,Qp(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ma(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Z(Or[i],e);i=r;break;case"source":Z("error",e),i=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),i=r;break;case"details":Z("toggle",e),i=r;break;case"input":mc(e,r),i=Aa(e,r),Z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=se({},r,{value:void 0}),Z("invalid",e);break;case"textarea":yc(e,r),i=$a(e,r),Z("invalid",e);break;default:i=r}Da(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Eh(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ch(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ti(e,l):typeof l=="number"&&ti(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ei.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Z("scroll",e):l!=null&&Hl(e,s,l,o))}switch(n){case"input":Mi(e),gc(e,r,!1);break;case"textarea":Mi(e),vc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?tr(e,!!r.multiple,s,!1):r.defaultValue!=null&&tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ts)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return we(t),null;case 6:if(e&&t.stateNode!=null)Yp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=vn(fi.current),vn(ft.current),Hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Wi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return we(t),null;case 13:if(J(ne),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&Fe!==null&&t.mode&1&&!(t.flags&128))hp(),cr(),t.flags|=98560,s=!1;else if(s=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else cr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),s=!1}else rt!==null&&(gl(rt),rt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ne.current&1?he===0&&(he=3):bu())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return fr(),ll(e,t),e===null&&li(t.stateNode.containerInfo),we(t),null;case 10:return cu(t.type._context),we(t),null;case 17:return $e(t.type)&&Ls(),we(t),null;case 19:if(J(ne),s=t.memoizedState,s===null)return we(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Lr(s,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ms(e),o!==null){for(t.flags|=128,Lr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(ne,ne.current&1|2),t.child}e=e.sibling}s.tail!==null&&le()>pr&&(t.flags|=128,r=!0,Lr(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ms(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ee)return we(t),null}else 2*le()-s.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Lr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=le(),t.sibling=null,n=ne.current,q(ne,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function k0(e,t){switch(ou(t),t.tag){case 1:return $e(t.type)&&Ls(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),J(Re),J(ke),mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pu(t),null;case 13:if(J(ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(ne),null;case 4:return fr(),null;case 10:return cu(t.type._context),null;case 22:case 23:return Eu(),null;case 24:return null;default:return null}}var Gi=!1,Se=!1,C0=typeof WeakSet=="function"?WeakSet:Set,j=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ul(e,t,n){try{n()}catch(r){oe(e,t,r)}}var ad=!1;function P0(e,t){if(Ka=Ps,e=ep(),iu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var m;c!==n||i!==0&&c.nodeType!==3||(a=o+i),c!==s||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(m=c.firstChild)!==null;)f=c,c=m;for(;;){if(c===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++d===r&&(l=o),(m=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qa={focusedElem:e,selectionRange:n},Ps=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,S=y.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?w:tt(t.type,w),S);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(_){oe(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=ad,ad=!1,y}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ul(t,n,s)}i=i.next}while(i!==r)}}function ho(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qp(e){var t=e.alternate;t!==null&&(e.alternate=null,qp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[ci],delete t[qa],delete t[a0],delete t[l0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xp(e){return e.tag===5||e.tag===3||e.tag===4}function ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ts));else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}function fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fl(e,t,n),e=e.sibling;e!==null;)fl(e,t,n),e=e.sibling}var ge=null,nt=!1;function At(e,t,n){for(n=n.child;n!==null;)Zp(e,t,n),n=n.sibling}function Zp(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(io,n)}catch{}switch(n.tag){case 5:Se||Yn(n,t);case 6:var r=ge,i=nt;ge=null,At(e,t,n),ge=r,nt=i,ge!==null&&(nt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(nt?(e=ge,n=n.stateNode,e.nodeType===8?Yo(e.parentNode,n):e.nodeType===1&&Yo(e,n),si(e)):Yo(ge,n.stateNode));break;case 4:r=ge,i=nt,ge=n.stateNode.containerInfo,nt=!0,At(e,t,n),ge=r,nt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ul(n,t,o),i=i.next}while(i!==r)}At(e,t,n);break;case 1:if(!Se&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,At(e,t,n),Se=r):At(e,t,n);break;default:At(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new C0),t.forEach(function(r){var i=N0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function et(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ge=a.stateNode,nt=!1;break e;case 3:ge=a.stateNode.containerInfo,nt=!0;break e;case 4:ge=a.stateNode.containerInfo,nt=!0;break e}a=a.return}if(ge===null)throw Error(E(160));Zp(s,o,i),ge=null,nt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){oe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jp(t,e),t=t.sibling}function Jp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(et(t,e),at(e),r&4){try{Hr(3,e,e.return),ho(3,e)}catch(w){oe(e,e.return,w)}try{Hr(5,e,e.return)}catch(w){oe(e,e.return,w)}}break;case 1:et(t,e),at(e),r&512&&n!==null&&Yn(n,n.return);break;case 5:if(et(t,e),at(e),r&512&&n!==null&&Yn(n,n.return),e.flags&32){var i=e.stateNode;try{ti(i,"")}catch(w){oe(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&_h(i,s),Ma(a,o);var u=Ma(a,s);for(o=0;o<l.length;o+=2){var d=l[o],c=l[o+1];d==="style"?Eh(i,c):d==="dangerouslySetInnerHTML"?Ch(i,c):d==="children"?ti(i,c):Hl(i,d,c,u)}switch(a){case"input":ja(i,s);break;case"textarea":Sh(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?tr(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?tr(i,!!s.multiple,s.defaultValue,!0):tr(i,!!s.multiple,s.multiple?[]:"",!1))}i[ci]=s}catch(w){oe(e,e.return,w)}}break;case 6:if(et(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){oe(e,e.return,w)}}break;case 3:if(et(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{si(t.containerInfo)}catch(w){oe(e,e.return,w)}break;case 4:et(t,e),at(e);break;case 13:et(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Cu=le())),r&4&&ud(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||d,et(t,e),Se=u):et(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(j=e,d=e.child;d!==null;){for(c=j=d;j!==null;){switch(f=j,m=f.child,f.tag){case 0:case 11:case 14:case 15:Hr(4,f,f.return);break;case 1:Yn(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){oe(r,n,w)}}break;case 5:Yn(f,f.return);break;case 22:if(f.memoizedState!==null){dd(c);continue}}m!==null?(m.return=f,j=m):dd(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ph("display",o))}catch(w){oe(e,e.return,w)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(w){oe(e,e.return,w)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:et(t,e),at(e),r&4&&ud(e);break;case 21:break;default:et(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Xp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ti(i,""),r.flags&=-33);var s=ld(e);fl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ld(e);dl(e,a,o);break;default:throw Error(E(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E0(e,t,n){j=e,em(e)}function em(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var i=j,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Gi;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Se;a=Gi;var u=Se;if(Gi=o,(Se=l)&&!u)for(j=i;j!==null;)o=j,l=o.child,o.tag===22&&o.memoizedState!==null?fd(i):l!==null?(l.return=o,j=l):fd(i);for(;s!==null;)j=s,em(s),s=s.sibling;j=i,Gi=a,Se=u}cd(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,j=s):cd(e)}}function cd(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||ho(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:tt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Gc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Gc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&si(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}Se||t.flags&512&&cl(t)}catch(f){oe(t,t.return,f)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function dd(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function fd(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ho(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){oe(t,i,l)}}var s=t.return;try{cl(t)}catch(l){oe(t,s,l)}break;case 5:var o=t.return;try{cl(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){j=null;break}var a=t.sibling;if(a!==null){a.return=t.return,j=a;break}j=t.return}}var b0=Math.ceil,Vs=Tt.ReactCurrentDispatcher,Su=Tt.ReactCurrentOwner,Xe=Tt.ReactCurrentBatchConfig,H=0,me=null,de=null,ye=0,Ve=0,qn=tn(0),he=0,gi=null,Tn=0,po=0,ku=0,Kr=null,Ae=null,Cu=0,pr=1/0,mt=null,Fs=!1,hl=null,Ht=null,Yi=!1,It=null,zs=0,Qr=0,pl=null,ps=-1,ms=0;function Ee(){return H&6?le():ps!==-1?ps:ps=le()}function Kt(e){return e.mode&1?H&2&&ye!==0?ye&-ye:c0.transition!==null?(ms===0&&(ms=Ih()),ms):(e=Q,e!==0||(e=window.event,e=e===void 0?16:Hh(e.type)),e):1}function st(e,t,n,r){if(50<Qr)throw Qr=0,pl=null,Error(E(185));Pi(e,n,r),(!(H&2)||e!==me)&&(e===me&&(!(H&2)&&(po|=n),he===4&&Mt(e,ye)),Ne(e,r),n===1&&H===0&&!(t.mode&1)&&(pr=le()+500,uo&&nn()))}function Ne(e,t){var n=e.callbackNode;cv(e,t);var r=Cs(e,e===me?ye:0);if(r===0)n!==null&&_c(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_c(n),t===1)e.tag===0?u0(hd.bind(null,e)):cp(hd.bind(null,e)),s0(function(){!(H&6)&&nn()}),n=null;else{switch(Vh(r)){case 1:n=ql;break;case 4:n=Mh;break;case 16:n=ks;break;case 536870912:n=Oh;break;default:n=ks}n=lm(n,tm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tm(e,t){if(ps=-1,ms=0,H&6)throw Error(E(327));var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var r=Cs(e,e===me?ye:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bs(e,r);else{t=r;var i=H;H|=2;var s=rm();(me!==e||ye!==t)&&(mt=null,pr=le()+500,wn(e,t));do try{A0();break}catch(a){nm(e,a)}while(!0);uu(),Vs.current=s,H=i,de!==null?t=0:(me=null,ye=0,t=he)}if(t!==0){if(t===2&&(i=za(e),i!==0&&(r=i,t=ml(e,i))),t===1)throw n=gi,wn(e,0),Mt(e,r),Ne(e,le()),n;if(t===6)Mt(e,r);else{if(i=e.current.alternate,!(r&30)&&!T0(i)&&(t=Bs(e,r),t===2&&(s=za(e),s!==0&&(r=s,t=ml(e,s))),t===1))throw n=gi,wn(e,0),Mt(e,r),Ne(e,le()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:fn(e,Ae,mt);break;case 3:if(Mt(e,r),(r&130023424)===r&&(t=Cu+500-le(),10<t)){if(Cs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ee(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ya(fn.bind(null,e,Ae,mt),t);break}fn(e,Ae,mt);break;case 4:if(Mt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-it(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*b0(r/1960))-r,10<r){e.timeoutHandle=Ya(fn.bind(null,e,Ae,mt),r);break}fn(e,Ae,mt);break;case 5:fn(e,Ae,mt);break;default:throw Error(E(329))}}}return Ne(e,le()),e.callbackNode===n?tm.bind(null,e):null}function ml(e,t){var n=Kr;return e.current.memoizedState.isDehydrated&&(wn(e,t).flags|=256),e=Bs(e,t),e!==2&&(t=Ae,Ae=n,t!==null&&gl(t)),e}function gl(e){Ae===null?Ae=e:Ae.push.apply(Ae,e)}function T0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!ot(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mt(e,t){for(t&=~ku,t&=~po,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function hd(e){if(H&6)throw Error(E(327));or();var t=Cs(e,0);if(!(t&1))return Ne(e,le()),null;var n=Bs(e,t);if(e.tag!==0&&n===2){var r=za(e);r!==0&&(t=r,n=ml(e,r))}if(n===1)throw n=gi,wn(e,0),Mt(e,t),Ne(e,le()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,fn(e,Ae,mt),Ne(e,le()),null}function Pu(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(pr=le()+500,uo&&nn())}}function Ln(e){It!==null&&It.tag===0&&!(H&6)&&or();var t=H;H|=1;var n=Xe.transition,r=Q;try{if(Xe.transition=null,Q=1,e)return e()}finally{Q=r,Xe.transition=n,H=t,!(H&6)&&nn()}}function Eu(){Ve=qn.current,J(qn)}function wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,i0(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(ou(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ls();break;case 3:fr(),J(Re),J(ke),mu();break;case 5:pu(r);break;case 4:fr();break;case 13:J(ne);break;case 19:J(ne);break;case 10:cu(r.type._context);break;case 22:case 23:Eu()}n=n.return}if(me=e,de=e=Qt(e.current,null),ye=Ve=t,he=0,gi=null,ku=po=Tn=0,Ae=Kr=null,yn!==null){for(t=0;t<yn.length;t++)if(n=yn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}yn=null}return e}function nm(e,t){do{var n=de;try{if(uu(),ds.current=Is,Os){for(var r=ie.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Os=!1}if(bn=0,pe=fe=ie=null,Wr=!1,hi=0,Su.current=null,n===null||n.return===null){he=1,gi=t,de=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=ye,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ed(o);if(m!==null){m.flags&=-257,td(m,o,a,s,t),m.mode&1&&Jc(s,u,t),t=m,l=u;var y=t.updateQueue;if(y===null){var w=new Set;w.add(l),t.updateQueue=w}else y.add(l);break e}else{if(!(t&1)){Jc(s,u,t),bu();break e}l=Error(E(426))}}else if(ee&&a.mode&1){var S=ed(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),td(S,o,a,s,t),au(hr(l,a));break e}}s=l=hr(l,a),he!==4&&(he=2),Kr===null?Kr=[s]:Kr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Vp(s,l,t);Qc(s,v);break e;case 1:a=l;var p=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ht===null||!Ht.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=Fp(s,a,t);Qc(s,_);break e}}s=s.return}while(s!==null)}sm(n)}catch(k){t=k,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function rm(){var e=Vs.current;return Vs.current=Is,e===null?Is:e}function bu(){(he===0||he===3||he===2)&&(he=4),me===null||!(Tn&268435455)&&!(po&268435455)||Mt(me,ye)}function Bs(e,t){var n=H;H|=2;var r=rm();(me!==e||ye!==t)&&(mt=null,wn(e,t));do try{L0();break}catch(i){nm(e,i)}while(!0);if(uu(),H=n,Vs.current=r,de!==null)throw Error(E(261));return me=null,ye=0,he}function L0(){for(;de!==null;)im(de)}function A0(){for(;de!==null&&!tv();)im(de)}function im(e){var t=am(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?sm(e):de=t,Su.current=null}function sm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=k0(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=S0(n,t,Ve),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function fn(e,t,n){var r=Q,i=Xe.transition;try{Xe.transition=null,Q=1,j0(e,t,n,r)}finally{Xe.transition=i,Q=r}return null}function j0(e,t,n,r){do or();while(It!==null);if(H&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(dv(e,s),e===me&&(de=me=null,ye=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yi||(Yi=!0,lm(ks,function(){return or(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Xe.transition,Xe.transition=null;var o=Q;Q=1;var a=H;H|=4,Su.current=null,P0(e,n),Jp(n,e),Xv(Qa),Ps=!!Ka,Qa=Ka=null,e.current=n,E0(n),nv(),H=a,Q=o,Xe.transition=s}else e.current=n;if(Yi&&(Yi=!1,It=e,zs=i),s=e.pendingLanes,s===0&&(Ht=null),sv(n.stateNode),Ne(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Fs)throw Fs=!1,e=hl,hl=null,e;return zs&1&&e.tag!==0&&or(),s=e.pendingLanes,s&1?e===pl?Qr++:(Qr=0,pl=e):Qr=0,nn(),null}function or(){if(It!==null){var e=Vh(zs),t=Xe.transition,n=Q;try{if(Xe.transition=null,Q=16>e?16:e,It===null)var r=!1;else{if(e=It,It=null,zs=0,H&6)throw Error(E(331));var i=H;for(H|=4,j=e.current;j!==null;){var s=j,o=s.child;if(j.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(j=u;j!==null;){var d=j;switch(d.tag){case 0:case 11:case 15:Hr(8,d,s)}var c=d.child;if(c!==null)c.return=d,j=c;else for(;j!==null;){d=j;var f=d.sibling,m=d.return;if(qp(d),d===u){j=null;break}if(f!==null){f.return=m,j=f;break}j=m}}}var y=s.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var S=w.sibling;w.sibling=null,w=S}while(w!==null)}}j=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,j=o;else e:for(;j!==null;){if(s=j,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Hr(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,j=v;break e}j=s.return}}var p=e.current;for(j=p;j!==null;){o=j;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,j=g;else e:for(o=p;j!==null;){if(a=j,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ho(9,a)}}catch(k){oe(a,a.return,k)}if(a===o){j=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,j=_;break e}j=a.return}}if(H=i,nn(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(io,e)}catch{}r=!0}return r}finally{Q=n,Xe.transition=t}}return!1}function pd(e,t,n){t=hr(n,t),t=Vp(e,t,1),e=Wt(e,t,1),t=Ee(),e!==null&&(Pi(e,1,t),Ne(e,t))}function oe(e,t,n){if(e.tag===3)pd(e,e,n);else for(;t!==null;){if(t.tag===3){pd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ht===null||!Ht.has(r))){e=hr(n,e),e=Fp(t,e,1),t=Wt(t,e,1),e=Ee(),t!==null&&(Pi(t,1,e),Ne(t,e));break}}t=t.return}}function R0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,me===e&&(ye&n)===n&&(he===4||he===3&&(ye&130023424)===ye&&500>le()-Cu?wn(e,0):ku|=n),Ne(e,t)}function om(e,t){t===0&&(e.mode&1?(t=Vi,Vi<<=1,!(Vi&130023424)&&(Vi=4194304)):t=1);var n=Ee();e=Pt(e,t),e!==null&&(Pi(e,t,n),Ne(e,n))}function $0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),om(e,n)}function N0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),om(e,n)}var am;am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,_0(e,t,n);je=!!(e.flags&131072)}else je=!1,ee&&t.flags&1048576&&dp(t,Rs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hs(e,t),e=t.pendingProps;var i=ur(t,ke.current);sr(t,n),i=yu(null,t,r,e,i,n);var s=vu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(s=!0,As(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fu(t),i.updater=fo,t.stateNode=i,i._reactInternals=t,nl(t,r,e,n),t=sl(null,t,r,!0,s,n)):(t.tag=0,ee&&s&&su(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=M0(r),e=tt(r,e),i){case 0:t=il(null,t,r,e,n);break e;case 1:t=id(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,tt(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),il(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),id(e,t,r,i,n);case 3:e:{if(Wp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,yp(e,t),Ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=hr(Error(E(423)),t),t=sd(e,t,r,n,i);break e}else if(r!==i){i=hr(Error(E(424)),t),t=sd(e,t,r,n,i);break e}else for(Fe=Ut(t.stateNode.containerInfo.firstChild),ze=t,ee=!0,rt=null,n=mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cr(),r===i){t=Et(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return vp(t),e===null&&Ja(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ga(r,i)?o=null:s!==null&&Ga(r,s)&&(t.flags|=32),Up(e,t),Pe(e,t,o,n),t.child;case 6:return e===null&&Ja(t),null;case 13:return Hp(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dr(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),nd(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,q($s,r._currentValue),r._currentValue=o,s!==null)if(ot(s.value,o)){if(s.children===i.children&&!Re.current){t=Et(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=wt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),el(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),el(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,sr(t,n),i=Ze(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=tt(r,t.pendingProps),i=tt(r.type,i),rd(e,t,r,i,n);case 15:return zp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:tt(r,i),hs(e,t),t.tag=1,$e(r)?(e=!0,As(t)):e=!1,sr(t,n),Ip(t,r,i),nl(t,r,i,n),sl(null,t,r,!0,e,n);case 19:return Kp(e,t,n);case 22:return Bp(e,t,n)}throw Error(E(156,t.tag))};function lm(e,t){return Dh(e,t)}function D0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,r){return new D0(e,t,n,r)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M0(e){if(typeof e=="function")return Tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ql)return 11;if(e===Gl)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gs(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Tu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fn:return _n(n.children,i,s,t);case Kl:o=8,i|=8;break;case Ea:return e=qe(12,n,t,i|2),e.elementType=Ea,e.lanes=s,e;case ba:return e=qe(13,n,t,i),e.elementType=ba,e.lanes=s,e;case Ta:return e=qe(19,n,t,i),e.elementType=Ta,e.lanes=s,e;case vh:return mo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gh:o=10;break e;case yh:o=9;break e;case Ql:o=11;break e;case Gl:o=14;break e;case Rt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function _n(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function mo(e,t,n,r){return e=qe(22,e,r,t),e.elementType=vh,e.lanes=n,e.stateNode={isHidden:!1},e}function ra(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function ia(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function O0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Io(0),this.expirationTimes=Io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Io(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,s,o,a,l){return e=new O0(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=qe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fu(s),e}function I0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function um(e){if(!e)return Xt;e=e._reactInternals;e:{if(Rn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if($e(n))return up(e,n,t)}return t}function cm(e,t,n,r,i,s,o,a,l){return e=Lu(n,r,!0,e,i,s,o,a,l),e.context=um(null),n=e.current,r=Ee(),i=Kt(n),s=wt(r,i),s.callback=t??null,Wt(n,s,i),e.current.lanes=i,Pi(e,i,r),Ne(e,r),e}function go(e,t,n,r){var i=t.current,s=Ee(),o=Kt(i);return n=um(n),t.context===null?t.context=n:t.pendingContext=n,t=wt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wt(i,t,o),e!==null&&(st(e,i,o,s),cs(e,i,o)),o}function Us(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function md(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Au(e,t){md(e,t),(e=e.alternate)&&md(e,t)}function V0(){return null}var dm=typeof reportError=="function"?reportError:function(e){console.error(e)};function ju(e){this._internalRoot=e}yo.prototype.render=ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));go(e,t,null,null)};yo.prototype.unmount=ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){go(null,e,null,null)}),t[Ct]=null}};function yo(e){this._internalRoot=e}yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&t!==0&&t<Dt[n].priority;n++);Dt.splice(n,0,e),n===0&&Wh(e)}};function Ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gd(){}function F0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Us(o);s.call(u)}}var o=cm(t,r,e,0,null,!1,!1,"",gd);return e._reactRootContainer=o,e[Ct]=o.current,li(e.nodeType===8?e.parentNode:e),Ln(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Us(l);a.call(u)}}var l=Lu(e,0,!1,null,null,!1,!1,"",gd);return e._reactRootContainer=l,e[Ct]=l.current,li(e.nodeType===8?e.parentNode:e),Ln(function(){go(t,l,n,r)}),l}function xo(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Us(o);a.call(l)}}go(t,o,e,i)}else o=F0(n,t,e,i,r);return Us(o)}Fh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mr(t.pendingLanes);n!==0&&(Xl(t,n|1),Ne(t,le()),!(H&6)&&(pr=le()+500,nn()))}break;case 13:Ln(function(){var r=Pt(e,1);if(r!==null){var i=Ee();st(r,e,1,i)}}),Au(e,1)}};Zl=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ee();st(t,e,134217728,n)}Au(e,134217728)}};zh=function(e){if(e.tag===13){var t=Kt(e),n=Pt(e,t);if(n!==null){var r=Ee();st(n,e,t,r)}Au(e,t)}};Bh=function(){return Q};Uh=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};Ia=function(e,t,n){switch(t){case"input":if(ja(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=lo(r);if(!i)throw Error(E(90));wh(r),ja(r,i)}}}break;case"textarea":Sh(e,n);break;case"select":t=n.value,t!=null&&tr(e,!!n.multiple,t,!1)}};Lh=Pu;Ah=Ln;var z0={usingClientEntryPoint:!1,Events:[bi,Wn,lo,bh,Th,Pu]},Ar={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B0={bundleType:Ar.bundleType,version:Ar.version,rendererPackageName:Ar.rendererPackageName,rendererConfig:Ar.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$h(e),e===null?null:e.stateNode},findFiberByHostInstance:Ar.findFiberByHostInstance||V0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qi.isDisabled&&qi.supportsFiber)try{io=qi.inject(B0),dt=qi}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z0;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ru(t))throw Error(E(200));return I0(e,t,null,n)};We.createRoot=function(e,t){if(!Ru(e))throw Error(E(299));var n=!1,r="",i=dm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Lu(e,1,!1,null,null,n,!1,r,i),e[Ct]=t.current,li(e.nodeType===8?e.parentNode:e),new ju(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=$h(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return Ln(e)};We.hydrate=function(e,t,n){if(!vo(t))throw Error(E(200));return xo(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!Ru(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=dm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=cm(t,null,e,1,n??null,i,!1,s,o),e[Ct]=t.current,li(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new yo(t)};We.render=function(e,t,n){if(!vo(t))throw Error(E(200));return xo(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!vo(e))throw Error(E(40));return e._reactRootContainer?(Ln(function(){xo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};We.unstable_batchedUpdates=Pu;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vo(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return xo(e,t,n,!1,r)};We.version="18.3.1-next-f1338f8080-20240426";function fm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fm)}catch(e){console.error(e)}}fm(),fh.exports=We;var U0=fh.exports,yd=U0;Ca.createRoot=yd.createRoot,Ca.hydrateRoot=yd.hydrateRoot;const V=e=>typeof e=="string",jr=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},vd=e=>e==null?"":String(e),W0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},H0=/###/g,xd=e=>e&&e.includes("###")?e.replace(H0,"."):e,wd=e=>!e||V(e),Gr=(e,t,n)=>{const r=V(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(wd(e))return{};const s=xd(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return wd(e)?{}:{obj:e,k:xd(r[i])}},_d=(e,t,n)=>{const{obj:r,k:i}=Gr(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=Gr(e,o,Object);for(;a.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=Gr(e,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},K0=(e,t,n,r)=>{const{obj:i,k:s}=Gr(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Ws=(e,t)=>{const{obj:n,k:r}=Gr(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Q0=(e,t,n)=>{const r=Ws(e,n);return r!==void 0?r:Ws(t,n)},hm=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?V(e[r])||e[r]instanceof String||V(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):hm(e[r],t[r],n):e[r]=t[r]);return e},un=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),G0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Y0=e=>V(e)?e.replace(/[&<>"'\/]/g,t=>G0[t]):e;class q0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const X0=[" ",",","?","!",";"],Z0=new q0(20),J0=(e,t,n)=>{t=t||"",n=n||"";const r=X0.filter(o=>!t.includes(o)&&!n.includes(o));if(r.length===0)return!0;const i=Z0.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},yl=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,a="";for(let l=s;l<r.length;++l)if(l!==s&&(a+=n),a+=r[l],o=i[a],o!==void 0){if(["string","number","boolean"].includes(typeof o)&&l<r.length-1)continue;s+=l-s+1;break}i=o}return i},yi=e=>e==null?void 0:e.replace(/_/g,"-"),ex={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class Hs{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||ex,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(V(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Hs(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hs(this.logger,t)}}var ct=new Hs;class wo{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...i)=>{n(...i),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(t,...n)})}}class Sd extends wo{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var u,d;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.includes(".")?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):V(r)&&s?a.push(...r.split(s)):a.push(r)));const l=Ws(this.data,a);return!l&&!n&&!r&&t.includes(".")&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!o||!V(r)?l:yl((d=(u=this.data)==null?void 0:u[t])==null?void 0:d[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.includes(".")&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),_d(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(V(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,o={silent:!1,skipCopy:!1}){let a=[t,n];t.includes(".")&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ws(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?hm(l,r,s):l={...l,...r},_d(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var pm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,n,r,i))??t}),t}};const mm=Symbol("i18next/PATH_KEY");function tx(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===mm?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function ar(e,t){const{[mm]:n}=e(tx()),r=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){const s=t==null?void 0:t.ns,o=Array.isArray(s)?s:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const sa=e=>!V(e)&&typeof e!="boolean"&&typeof e!="number";class Ks extends wo{constructor(t,n={}){super(),W0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ct.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const s=sa(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.includes(r),a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!J0(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:V(s)?[s]:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.includes(u[0]))&&(s=u.shift()),t=u.join(i)}return{key:t,namespaces:V(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=ar(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(N=>typeof N=="function"?ar(N,{...this.options,...i}):String(N));const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],i),u=l[l.length-1];let d=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const c=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return f?s?{res:`${u}${d}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${d}${a}`:s?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:a;const m=this.resolve(t,i);let y=m==null?void 0:m.res;const w=(m==null?void 0:m.usedKey)||a,S=(m==null?void 0:m.exactUsedKey)||a,v=["[object Number]","[object Function]","[object RegExp]"],p=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,_=i.count!==void 0&&!V(i.count),k=Ks.hasDefaultValue(i),b=_?this.pluralResolver.getSuffix(c,i.count,i):"",P=i.ordinal&&_?this.pluralResolver.getSuffix(c,i.count,{ordinal:!1}):"",C=_&&!i.ordinal&&i.count===0,A=C&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${b}`]||i[`defaultValue${P}`]||i.defaultValue;let L=y;g&&!y&&k&&(L=A);const te=sa(L),F=Object.prototype.toString.apply(L);if(g&&L&&te&&!v.includes(F)&&!(V(p)&&Array.isArray(L))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,L,{...i,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(m.res=N,m.usedParams=this.getUsedParamsDetails(i),m):N}if(o){const N=Array.isArray(L),D=N?[]:{},G=N?S:w;for(const B in L)if(Object.prototype.hasOwnProperty.call(L,B)){const Y=`${G}${o}${B}`;k&&!y?D[B]=this.translate(Y,{...i,defaultValue:sa(A)?A[B]:void 0,joinArrays:!1,ns:l}):D[B]=this.translate(Y,{...i,joinArrays:!1,ns:l}),D[B]===Y&&(D[B]=L[B])}y=D}}else if(g&&V(p)&&Array.isArray(y))y=y.join(p),y&&(y=this.extendTranslation(y,t,i,r));else{let N=!1,D=!1;!this.isValidLookup(y)&&k&&(N=!0,y=A),this.isValidLookup(y)||(D=!0,y=a);const B=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:y,Y=k&&A!==y&&this.options.updateMissing;if(D||N||Y){if(this.logger.log(Y?"updateKey":"missingKey",c,u,a,Y?A:y),o){const R=this.resolve(a,{...i,keySeparator:!1});R&&R.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.")}let T=[];const $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let R=0;R<$.length;R++)T.push($[R]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(i.lng||this.language):T.push(i.lng||this.language);const z=(R,K,Me)=>{var pt;const Oe=k&&Me!==y?Me:B;this.options.missingKeyHandler?this.options.missingKeyHandler(R,u,K,Oe,Y,i):(pt=this.backendConnector)!=null&&pt.saveMissing&&this.backendConnector.saveMissing(R,u,K,Oe,Y,i),this.emit("missingKey",R,u,K,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?T.forEach(R=>{const K=this.pluralResolver.getSuffixes(R,i);C&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!K.includes(`${this.options.pluralSeparator}zero`)&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(Me=>{z([R],a+Me,i[`defaultValue${Me}`]||A)})}):z(T,a,A))}y=this.extendTranslation(y,t,i,m,r),D&&y===a&&this.options.appendNamespaceToMissingKey&&(y=`${u}${d}${a}`),(D||N)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${d}${a}`:a,N?y:void 0,i))}return s?(m.res=y,m.usedParams=this.getUsedParamsDetails(i),m):y}extendTranslation(t,n,r,i,s){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=V(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(d){const m=t.match(this.interpolator.nestingRegexp);c=m&&m.length}let f=r.replace&&!V(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),d){const m=t.match(this.interpolator.nestingRegexp),y=m&&m.length;c<y&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...m)=>(s==null?void 0:s[0])===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=V(o)?[o]:o;return t!=null&&(a!=null&&a.length)&&r.applyPostProcessor!==!1&&(t=pm.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,o,a;return V(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?ar(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;i=d;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const f=n.count!==void 0&&!V(n.count),m=f&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(V(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(S=>{var v,p;this.isValidLookup(r)||(a=S,!this.checkedLoadedFor[`${w[0]}-${S}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((p=this.utils)!=null&&p.hasLoadedNamespace(a))&&(this.checkedLoadedFor[`${w[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),w.forEach(g=>{var b;if(this.isValidLookup(r))return;o=g;const _=[d];if((b=this.i18nFormat)!=null&&b.addLookupKeys)this.i18nFormat.addLookupKeys(_,d,g,S,n);else{let P;f&&(P=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&P.startsWith(A)&&_.push(d+P.replace(A,this.options.pluralSeparator)),_.push(d+P),m&&_.push(d+C)),y){const L=`${d}${this.options.contextSeparator||"_"}${n.context}`;_.push(L),f&&(n.ordinal&&P.startsWith(A)&&_.push(L+P.replace(A,this.options.pluralSeparator)),_.push(L+P),m&&_.push(L+C))}}let k;for(;k=_.pop();)this.isValidLookup(r)||(s=k,r=this.getResource(g,S,k,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!V(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class kd{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create("languageUtils")}getScriptPartFromCode(t){if(t=yi(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=yi(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(V(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>o===s?!0:!o.includes("-")&&!s.includes("-")?!1:!!(o.includes("-")&&!s.includes("-")&&o.slice(0,o.indexOf("-"))===s||o.startsWith(s)&&s.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),V(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return V(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):V(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.includes(o)||s(this.formatLanguageCode(o))}),i}}const Cd={zero:0,one:1,two:2,few:3,many:4,other:5},Pd={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class nx{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ct.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=yi(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Pd;if(!t.match(/-|_/))return Pd;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[s]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>Cd[i]-Cd[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Ed=(e,t,n,r=".",i=!0)=>{let s=Q0(e,t,n);return!s&&i&&V(n)&&(s=yl(e,n,r),s===void 0&&(s=yl(t,n,r))),s},oa=e=>e.replace(/\$/g,"$$$$");class bd{constructor(t={}){var n;this.logger=ct.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:c,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:y,nestingSuffixEscaped:w,nestingOptionsSeparator:S,maxReplaces:v,alwaysFormat:p}=t.interpolation;this.escape=n!==void 0?n:Y0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?un(s):o||"{{",this.suffix=a?un(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?un(f):m||un("$t("),this.nestingSuffix=y?un(y):w||un(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=v||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var m;let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=y=>{if(!y.includes(this.formatSeparator)){const p=Ed(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:y}):p}const w=y.split(this.formatSeparator),S=w.shift().trim(),v=w.join(this.formatSeparator).trim();return this.format(Ed(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:S})};this.resetRegExp();const d=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((m=i==null?void 0:i.interpolation)==null?void 0:m.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>oa(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?oa(this.escape(y)):oa(y)}].forEach(y=>{for(a=0;s=y.regex.exec(t);){const w=s[1].trim();if(o=u(w),o===void 0)if(typeof d=="function"){const v=d(t,s,i);o=V(v)?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,w))o="";else if(c){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else!V(o)&&!this.useRawValueToEscape&&(o=vd(o));const S=y.safeValue(o);if(t=t.replace(s[0],S),c?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,o;const a=(l,u)=>{const d=this.nestingOptionsSeparator;if(!l.includes(d))return l;const c=l.split(new RegExp(`${un(d)}[ ]*{`));let f=`{${c[1]}`;l=c[0],f=this.interpolate(f,o);const m=f.match(/'/g),y=f.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!y||((y==null?void 0:y.length)??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{o=JSON.parse(f),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,w),`${l}${d}${f}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!V(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(l=i[1].slice(u).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&!V(s))return s;V(s)||(s=vd(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((d,c)=>this.format(d,c,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const rx=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].slice(0,-1);t==="currency"&&!i.includes(":")?n.currency||(n.currency=i.trim()):t==="relativetime"&&!i.includes(":")?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=a.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Td=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let a=t[o];return a||(a=e(yi(r),i),t[o]=a),a(n)}},ix=e=>(t,n,r)=>e(yi(n),r)(t);class sx{constructor(t={}){this.logger=ct.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Td:ix;this.formats={number:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return a=>o.format(a)}),currency:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return a=>o.format(a)}),datetime:r((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return a=>o.format(a)}),relativetime:r((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return a=>o.format(a,s.range||"day")}),list:r((i,s)=>{const o=new Intl.ListFormat(i,{...s});return a=>o.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Td(n)}format(t,n,r,i={}){if(!n||t==null)return t;const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&!s[0].includes(")")&&s.find(a=>a.includes(")"))){const a=s.findIndex(l=>l.includes(")"));s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{var c;const{formatName:u,formatOptions:d}=rx(l);if(this.formats[u]){let f=a;try{const m=((c=i==null?void 0:i.formatParams)==null?void 0:c[i.interpolationkey])||{},y=m.locale||m.lng||i.locale||i.lng||r;f=this.formats[u](a,y,{...d,...i,...m})}catch(m){this.logger.warn(m)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const ox=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ax extends wo{constructor(t,n,r,i={}){var s,o;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ct.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},a={},l={};return t.forEach(u=>{let d=!0;n.forEach(c=>{const f=`${u}|${c}`;!r.reload&&this.store.hasResourceBundle(u,c)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?o[f]===void 0&&(o[f]=!0):(this.state[f]=1,d=!1,o[f]===void 0&&(o[f]=!0),s[f]===void 0&&(s[f]=!0),l[c]===void 0&&(l[c]=!0)))}),d||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{K0(l.loaded,[s],o),ox(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const d=l.loaded[u];d.length&&d.forEach(c=>{a[u][c]===void 0&&(a[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,s=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const a=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read(t,n,r,i+1,s*2,o)},s);return}o(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();V(t)&&(t=this.languageUtils.toResolveHierarchy(t)),V(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s,o={},a=()=>{}){var l,u,d,c,f;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((c=(d=this.services)==null?void 0:d.utils)!=null&&c.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if((f=this.backend)!=null&&f.create){const m={...o,isUpdate:s},y=this.backend.create.bind(this.backend);if(y.length<6)try{let w;y.length===5?w=y(t,n,r,i,m):w=y(t,n,r,i),w&&typeof w.then=="function"?w.then(S=>a(null,S)).catch(a):a(null,w)}catch(w){a(w)}else y(t,n,r,i,a,m)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const aa=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),V(e[1])&&(t.defaultValue=e[1]),V(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ld=e=>(V(e.ns)&&(e.ns=[e.ns]),V(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),V(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Xi=()=>{},lx=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Yr extends wo{constructor(t={},n){if(super(),this.options=Ld(t),this.services={},this.logger=ct,this.modules={external:[]},lx(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(V(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=aa();this.options={...r,...this.options,...Ld(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?ct.init(i(this.modules.logger),this.options):ct.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=sx;const d=new kd(this.options);this.store=new Sd(this.options.resources,this.options);const c=this.services;c.logger=ct,c.resourceStore=this.store,c.languageUtils=d,c.pluralResolver=new nx(d,{prepend:this.options.pluralSeparator}),u&&(c.formatter=i(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new bd(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new ax(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(f,...m)=>{this.emit(f,...m)}),this.modules.languageDetector&&(c.languageDetector=i(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=i(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Ks(this.services,this.options),this.translator.on("*",(f,...m)=>{this.emit(f,...m)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Xi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...d)=>this.store[u](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...d)=>(this.store[u](...d),this)});const a=jr(),l=()=>{const u=(d,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),n(d,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(t,n=Xi){var s,o;let r=n;const i=V(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(c=>{c!=="cimode"&&(a.includes(c)||a.push(c))})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,u=>l(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const i=jr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Xi),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&pm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=jr();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(a,(...u)=>this.t(...u))},o=a=>{var d,c;!t&&!a&&this.services.languageDetector&&(a=[]);const l=V(a)?a:a&&a[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(V(a)?[a]:a);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(c=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||c.call(d,u)),this.loadResources(u,f=>{s(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const i=(s,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([s,o].concat(a)):l={...o},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=ar(l.keyPrefix,u));const d=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(s)?c=s.map(f=>(typeof f=="function"&&(f=ar(f,u)),`${l.keyPrefix}${d}${f}`)):(typeof s=="function"&&(s=ar(s,u)),c=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s),this.t(c,l)};return V(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=jr();return this.options.ns?(V(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=jr();V(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>!i.includes(o)&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["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"],r=((s=this.services)==null?void 0:s.languageUtils)||new kd(aa());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Yr(t,n);return r.createInstance=Yr.createInstance,r}cloneInstance(t={},n=Xi){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Yr(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const a=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((d,c)=>(d[c]={...l[u][c]},d),l[u]),l),{});s.store=new Sd(a,i),s.services.resourceStore=s.store}if(t.interpolation){const l={...aa().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:l};s.services.interpolator=new bd(u)}return s.translator=new Ks(s.services,i),s.translator.on("*",(a,...l)=>{s.emit(a,...l)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Le=Yr.createInstance();Le.createInstance;Le.dir;Le.init;Le.loadResources;Le.reloadResources;Le.use;Le.changeLanguage;Le.getFixedT;Le.t;Le.exists;Le.setDefaultNamespace;Le.hasLoadedNamespace;Le.loadNamespaces;Le.loadLanguages;const ux=(e,t,n,r)=>{var s,o,a,l;const i=[n,{code:t,...r||{}}];if((o=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&o.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);An(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},Ad={},vl=(e,t,n,r)=>{An(n)&&Ad[n]||(An(n)&&(Ad[n]=new Date),ux(e,t,n,r))},gm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},xl=(e,t,n)=>{e.loadNamespaces(t,gm(e,n))},jd=(e,t,n,r)=>{if(An(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return xl(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,gm(e,r))},cx=(e,t,n={})=>!t.languages||!t.languages.length?(vl(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),An=e=>typeof e=="string",dx=e=>typeof e=="object"&&e!==null,fx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hx={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},px=e=>hx[e],mx=e=>e.replace(fx,px);let wl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:mx,transDefaultProps:void 0};const gx=(e={})=>{wl={...wl,...e}},yx=()=>wl;let ym;const vx=e=>{ym=e},xx=()=>ym,wx={type:"3rdParty",init(e){gx(e.options.react),vx(e)}},_x=x.createContext();class Sx{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var vm={exports:{}},xm={};/**
42
+ * @license React
43
+ * use-sync-external-store-shim.production.js
44
+ *
45
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */var mr=x;function kx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cx=typeof Object.is=="function"?Object.is:kx,Px=mr.useState,Ex=mr.useEffect,bx=mr.useLayoutEffect,Tx=mr.useDebugValue;function Lx(e,t){var n=t(),r=Px({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return bx(function(){i.value=n,i.getSnapshot=t,la(i)&&s({inst:i})},[e,n,t]),Ex(function(){return la(i)&&s({inst:i}),e(function(){la(i)&&s({inst:i})})},[e]),Tx(n),n}function la(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cx(e,n)}catch{return!0}}function Ax(e,t){return t()}var jx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ax:Lx;xm.useSyncExternalStore=mr.useSyncExternalStore!==void 0?mr.useSyncExternalStore:jx;vm.exports=xm;var Rx=vm.exports;const $x=(e,t)=>{if(An(t))return t;if(dx(t)&&An(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},Nx={t:$x,ready:!1},Dx=()=>()=>{},$u=(e,t={})=>{var A,L,te;const{i18n:n}=t,{i18n:r,defaultNS:i}=x.useContext(_x)||{},s=n||r||xx();s&&!s.reportNamespaces&&(s.reportNamespaces=new Sx),s||vl(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=x.useMemo(()=>{var F;return{...yx(),...(F=s==null?void 0:s.options)==null?void 0:F.react,...t}},[s,t]),{useSuspense:a,keyPrefix:l}=o,u=e||i||((A=s==null?void 0:s.options)==null?void 0:A.defaultNS),d=An(u)?[u]:u||["translation"],c=x.useMemo(()=>d,d);(te=(L=s==null?void 0:s.reportNamespaces)==null?void 0:L.addUsedNamespaces)==null||te.call(L,c);const f=x.useRef(0),m=x.useCallback(F=>{if(!s)return Dx;const{bindI18n:N,bindI18nStore:D}=o,G=()=>{f.current+=1,F()};return N&&s.on(N,G),D&&s.store.on(D,G),()=>{N&&N.split(" ").forEach(B=>s.off(B,G)),D&&D.split(" ").forEach(B=>s.store.off(B,G))}},[s,o]),y=x.useRef(),w=x.useCallback(()=>{if(!s)return Nx;const F=!!(s.isInitialized||s.initializedStoreOnce)&&c.every(T=>cx(T,s,o)),N=t.lng||s.language,D=f.current,G=y.current;if(G&&G.ready===F&&G.lng===N&&G.keyPrefix===l&&G.revision===D)return G;const Y={t:s.getFixedT(N,o.nsMode==="fallback"?c:c[0],l),ready:F,lng:N,keyPrefix:l,revision:D};return y.current=Y,Y},[s,c,l,o,t.lng]),[S,v]=x.useState(0),{t:p,ready:g}=Rx.useSyncExternalStore(m,w,w);x.useEffect(()=>{if(s&&!g&&!a){const F=()=>v(N=>N+1);t.lng?jd(s,t.lng,c,F):xl(s,c,F)}},[s,t.lng,c,g,a,S]);const _=s||{},k=x.useRef(null),b=x.useRef(),P=F=>{const N=Object.getOwnPropertyDescriptors(F);N.__original&&delete N.__original;const D=Object.create(Object.getPrototypeOf(F),N);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:F,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},C=x.useMemo(()=>{const F=_,N=F==null?void 0:F.language;let D=F;F&&(k.current&&k.current.__original===F?b.current!==N?(D=P(F),k.current=D,b.current=N):D=k.current:(D=P(F),k.current=D,b.current=N));const G=!g&&!a?(...Y)=>(vl(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),p(...Y)):p,B=[G,D,g];return B.t=G,B.i18n=D,B.ready=g,B},[p,_,g,_.resolvedLanguage,_.language,_.languages]);if(s&&a&&!g)throw new Promise(F=>{const N=()=>F();t.lng?jd(s,t.lng,c,N):xl(s,c,N)});return C},{slice:Mx,forEach:Ox}=[];function Ix(e){return Ox.call(Mx.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Vx(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const Rd=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Fx=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let s=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!Rd.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Rd.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},$d={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=Fx(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var zx={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return $d.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:s}=t;n&&typeof document<"u"&&$d.create(n,e,r,i,s)}},Bx={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===t&&(n=o[a].substring(l+1))}}return n}},Ux={name:"hash",lookup(e){var i;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const o=s.substring(1);if(t){const a=o.split("&");for(let l=0;l<a.length;l++){const u=a[l].indexOf("=");u>0&&a[l].substring(0,u)===t&&(r=a[l].substring(u+1))}}if(r)return r;if(!r&&n>-1){const a=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?(i=a[typeof n=="number"?n:0])==null?void 0:i.replace("/",""):void 0}}}return r}};let On=null;const Nd=()=>{if(On!==null)return On;try{if(On=typeof window<"u"&&window.localStorage!==null,!On)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{On=!1}return On};var Wx={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Nd())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Nd()&&window.localStorage.setItem(n,e)}};let In=null;const Dd=()=>{if(In!==null)return In;try{if(In=typeof window<"u"&&window.sessionStorage!==null,!In)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{In=!1}return In};var Hx={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Dd())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Dd()&&window.sessionStorage.setItem(n,e)}},Kx={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},Qx={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Gx={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},Yx={name:"subdomain",lookup(e){var i,s;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((s=(i=window.location)==null?void 0:i.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let wm=!1;try{document.cookie,wm=!0}catch{}const _m=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];wm||_m.splice(1,1);const qx=()=>({order:_m,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Sm{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Ix(n,this.options||{},qx()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(zx),this.addDetector(Bx),this.addDetector(Wx),this.addDetector(Hx),this.addDetector(Kx),this.addDetector(Qx),this.addDetector(Gx),this.addDetector(Yx),this.addDetector(Ux)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!Vx(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Sm.type="languageDetector";const Xx={save:"Save",save_changes:"Save Changes",reset:"Reset",continue:"Continue",back:"Back",submit:"Submit",confirm:"Confirm",cancel:"Cancel",close:"Close",delete:"Delete",edit:"Edit",add:"Add",next:"Next",previous:"Previous",loading:"Loading",saving:"Saving",setting_up:"Setting up",export:"Export",import:"Import",search:"Search",filter:"Filter",sort:"Sort",apply:"Apply",sync:"Sync",start:"Start",invite:"Invite",revoke:"Revoke"},Zx={active:"Active",disabled:"Disabled",loading:"Loading",healthy:"Healthy",connected:"Connected",completed:"Completed",pending:"Pending",running:"Running",failed:"Failed",in_progress:"In progress",open:"Open",resolved:"Resolved",trialing:"Trialing"},Jx={email:"Email",password:"Password",name:"Name",status:"Status",priority:"Priority",type:"Type",role:"Role",country:"Country",entities:"entities",alerts:"alerts",matches:"matches"},e1={never:"Never",created:"Created",updated:"Updated",due:"Due"},t1={actions:Xx,status:Zx,labels:Jx,time:e1},n1={title:"Sign in to AMLIQ",subtitle:"Choose your sign-in method",email_placeholder:"you@company.com",password_placeholder:"Password",forgot_password:"Forgot password?",submit:"Sign In",submitting:"Signing in...",no_account:"No account?",start_trial:"Start free trial",failed:"Login failed"},r1={welcome:"Welcome back",description:"Your screening engine is running. Your compliance dashboard awaits.",feature_ai:"6-layer AI screening engine",feature_lists:"{{listCount}}+ global sanctions lists",feature_speed:"Sub-50ms matching latency"},i1={title:"Start your free trial",subtitle:"14 days free. No credit card required.",org_placeholder:"Organization name",email_placeholder:"Work email",password_placeholder:"Password",min_chars:"Minimum 8 characters",submit:"Create Account",submitting:"Creating account...",agree_prefix:"By signing up you agree to our",terms_link:"Terms",and:"and",privacy_link:"Privacy Policy",have_account:"Already have an account?",sign_in_link:"Sign in",failed:"Signup failed"},s1={tagline:"AML screening that catches everything",description:"Replace expensive, opaque tools with AI-powered configurable matching.",perk_ai:"6-layer AI matching engine",perk_lists:"{{listCount}}+ sanctions lists included",perk_compliance:"Security-first architecture",perk_speed:"Sub-50ms screening latency"},o1={title:"Reset your password",description:"Enter the email address associated with your account and we'll send a reset link.",back_to_login:"Back to login",email_placeholder:"Email address",submit:"Send reset link",success_title:"Check your inbox",success_message:"If an account exists for {{email}}, you'll receive a password reset link shortly."},a1={continue_with:"Continue with {{provider}}",sign_up_with:"Sign up with {{provider}}",or_continue_email:"or continue with email"},l1={login:n1,login_panel:r1,signup:i1,signup_panel:s1,forgot:o1,oauth:a1},u1="Main",c1="Dashboard",d1="Alerts",f1="Screen",h1="Monitoring",p1="Batch Jobs",m1="Compliance",g1="Cases",y1="Risk Assessment",v1="PEP Screening",x1="Adverse Media",w1="Transactions",_1="Crypto Screening",S1="UBO Chain",k1="EDD Workflow",C1="System",P1="Analytics",E1="Audit Log",b1="Sanctions Lists",T1="Marketplace",L1="API Keys",A1="Webhooks",j1="Configuration",R1="Billing",$1="Team",N1="Admin",D1="Tenants",M1="System Health",O1="Data Sources",I1="Platform",V1="Overview",F1="Users",z1="Search entities, alerts...",B1={main:u1,dashboard:c1,alerts:d1,screen:f1,monitoring:h1,batch_jobs:p1,compliance:m1,cases:g1,risk_assessment:y1,pep_screening:v1,adverse_media:x1,transactions:w1,crypto_screening:_1,ubo_chain:S1,edd_workflow:k1,system:C1,analytics:P1,audit_log:E1,sanctions_lists:b1,marketplace:T1,api_keys:L1,webhooks:A1,configuration:j1,billing:R1,team:$1,admin:N1,tenants:D1,system_health:M1,data_sources:O1,platform:I1,overview:V1,users:F1,search_placeholder:z1},U1="Dashboard",W1="Overview of screening activity and alerts",H1="Total Alerts",K1="Cleared Today",Q1="Escalated",G1="Avg Resolution",Y1="Time in hours",q1="Screening Volume (30 days)",X1="Disposition Breakdown",Z1="Risk Distribution",J1="Top Entities",ew="Open Cases",tw="Active Monitors",nw="High Risk",rw="Pending EDD",iw="Unreviewed Media",sw="Txn Alerts",ow="Compliance Overview",aw="alerts",lw="Recent Activity",uw="Quick Actions",cw={title:U1,description:W1,total_alerts:H1,cleared_today:K1,escalated:Q1,avg_resolution:G1,time_in_hours:Y1,screening_volume:q1,disposition_breakdown:X1,risk_distribution:Z1,top_entities:J1,open_cases:ew,active_monitors:tw,high_risk:nw,pending_edd:rw,unreviewed_media:iw,txn_alerts:sw,compliance_overview:ow,alerts:aw,recent_activity:lw,quick_actions:uw},dw={title:"Alert Queue",no_alerts:"No alerts",all_clear:"All clear"},fw={status:"Status",priority:"Priority",open:"open",investigating:"investigating",resolved:"resolved",archived:"archived",critical:"critical",high:"high",medium:"medium",low:"low"},hw={risk:"Risk:"},pw={not_found:"Alert not found"},mw={title:"Actions",confirm:"Confirm",false_positive:"False +",escalate:"Escalate",ai_draft:"AI Draft"},gw={status:"Status",current_status:"Current Status",priority:"Priority",risk_level:"Risk Level",investigator:"Investigator",timeline:"Timeline"},yw={title:"Entity Details",type:"Type",nationality:"Nationality",dob:"Date of Birth",matches_found:"Matches Found"},vw={title:"Investigation Notes",placeholder:"Add investigation notes...",save:"Save Notes"},xw={queue:dw,filters:fw,card:hw,detail:pw,actions:mw,sidebar:gw,entity_details:yw,notes:vw},ww="Screen Entity",_w="Perform manual entity screening",Sw={individual:"Individual",company:"Company",first_name:"First Name",last_name:"Last Name",company_name:"Company Name",dob:"Date of Birth",nationality:"Nationality",submit:"Screen Entity",submitting:"Screening..."},kw={title:"Screening Layers",ofac_sdn:"OFAC SDN",eu_sanctions:"EU Sanctions",un_consolidated:"UN Consolidated",custom_lists:"Custom Lists"},Cw={title:"Screening Results",match_found:"Match found in sanctions list"},Pw={title:ww,description:_w,form:Sw,layers:kw,results:Cw},Ew="Billing & Subscriptions",bw="Manage products, usage, and invoices",Tw="Add Product",Lw="Loading...",Aw={active_subscriptions:"Active Subscriptions",dashboard_seats:"Dashboard Seats",promo_code:"Promo Code",usage_history:"Usage & History",invoices:"Invoices"},jw={no_subscriptions:"No active subscriptions",current_plan:"Current Plan",renews_on:"Renews on {{date}}",manage:"Manage Subscription",change_plan:"Change Plan",loading:"Loading subscriptions...",trialing:"Trialing",active:"Active",monthly_cost:"Monthly cost",active_seats:"Active seats",renews:"Renews"},Rw={email_placeholder:"user@company.com",investigator:"Investigator",analyst:"Analyst",manager:"Manager",used:"{{current}} of {{total}} seats used",loading:"Loading seats..."},$w={placeholder:"Enter promo code",apply:"Apply",discount:"{{percent}}% off applied"},Nw={current_usage:"Current Usage",loading:"Loading...",no_data:"No usage data",warning:"You are using {{percent}}% of your monthly screenings. Consider upgrading your plan.",history_title:"Usage History (API Product)"},Dw={recent:"Recent Invoices",loading:"Loading invoices...",date:"Date",product:"Product",amount:"Amount",status:"Status",action:"Action",all_subscribed:"All products subscribed",select_plan:"Select Plan",checkout:"Checkout"},Mw={failed_title:"Payment Failed",failed_message:"Your recent payment failed. Please update your payment method to avoid service interruption.",update_method:"Update Payment Method"},Ow={title:"Upgrade to {{plan}}?",description:"Your new billing rate will be ${{price}}/month (${{price}} per month). Prorated charges apply for the remainder of your current cycle.",new_limit:"New monthly limit",screenings_mo:"{{count}}K screenings/mo",cancel:"Cancel",confirm:"Confirm Upgrade"},Iw={title:"Upgrade Your Plan",subtitle:"Choose the plan that fits your screening volume and compliance needs.",monthly:"Monthly",annual:"Annual"},Vw={title:"Five Powerful Products",subtitle:"Mix and match. Start simple, scale fast. No setup fees.",most_popular:"Most Popular",per_month:"/mo",billed_yearly:"Billed ${{price}}/year",custom:"Custom",get_started:"Get Started",contact_sales:"Contact Sales"},Fw={title:Ew,subtitle:bw,add_product:Tw,loading:Lw,sections:Aw,subscriptions:jw,seats:Rw,promo:$w,usage:Nw,invoices:Dw,payment:Mw,upgrade:Ow,plan_comparison:Iw,pricing:Vw},zw={title:"Case Management",all:"All",open:"open",in_review:"in_review",escalated:"escalated",resolved:"resolved",no_cases:"No cases found",matched:"Matched:",match:"Match:"},Bw={title:"Risk Assessment",entity_placeholder:"Entity ID",country_placeholder:"Country code (e.g. US)",calculate:"Calculate Risk",composite_score:"{{score}}%",risk_factors:"Risk Factors",score_breakdown:"Score Breakdown"},Uw={title:"PEP Screening",entity_placeholder:"Entity ID",screen:"Screen",identified:"PEP Identified",not_pep:"Not a PEP",tier:"Tier",risk_weight:"Risk Weight",position:"Position",country:"Country"},Ww={title:"Adverse Media",category:"Category",severity:"Sev",entity:"Entity:",no_hits:"No unreviewed media hits"},Hw={title:"Transaction Monitoring",recent_alerts:"Recent Alerts",high_value:"High Value",rapid_movement:"Rapid Movement",structuring:"Structuring",high_risk_country:"High Risk Country",unusual_pattern:"Unusual Pattern",txn_prefix:"TXN:",no_alerts:"No transaction alerts"},Kw={title:"Beneficial Ownership",organization:"Organization:",total_identified:"Total Identified",direct:"(Direct)",indirect:"(Indirect)",pep_badge:"PEP"},Qw={title:"Enhanced Due Diligence",progress:"Progress",checks:"checks",identity:"Identity Verification",source_of_funds:"Source of Funds",source_of_wealth:"Source of Wealth",pep_screening:"PEP Screening",adverse_media:"Adverse Media Check",sanctions:"Sanctions Screening",ubo_verification:"UBO Verification",country_risk:"Country Risk Assessment"},Gw={match:"Match:",status:"Status",priority:"Priority",confidence:"Confidence",assigned_to:"Assigned To",unassigned:"Unassigned",escalate:"Escalate",false_positive:"Mark False Positive",comments:"Comments"},Yw={cases:zw,risk:Bw,pep:Uw,adverse_media:Ww,transactions:Hw,ubo:Kw,edd:Qw,case_detail:Gw},qw="Configuration",Xw="Manage screening parameters",Zw={title:"Thresholds",default:"Default Match Threshold:",auto_dismiss:"Auto-Dismiss Below:",auto_escalate:"Auto-Escalate Above:",fuzzy_match:"Fuzzy Match Threshold",fuzzy_match_desc:"Minimum confidence for potential matches",auto_alert:"Auto-Alert Threshold",auto_alert_desc:"Automatically create alerts at this confidence level"},Jw={title:"Lists"},e_={title:"Matching Modes",strict:"Strict Matching Mode",strict_desc:"Require exact matches on key identifiers",auto_alert:"Automatic Alerting",auto_alert_desc:"Automatically create alerts for high-confidence matches"},t_={title:"Enabled Screening Layers"},n_="Save Changes",r_="Saving...",i_={title:qw,description:Xw,thresholds:Zw,lists:Jw,modes:e_,layers:t_,save:n_,saving:r_},s_="Analytics",o_="Screening and alert metrics",a_={screening_volume:"Screening Volume",alert_disposition:"Alert Disposition",risk_distribution:"Risk Distribution"},l_={title:s_,description:o_,charts:a_},u_="Audit Trail",c_="Complete activity log",d_={screen_initiated:"screen_initiated",alert_created:"alert_created",alert_resolved:"alert_resolved",config_updated:"config_updated",list_imported:"list_imported",export_generated:"export_generated"},f_={title:u_,description:c_,actions:d_},h_="System Monitoring",p_="Real-time system health and performance",m_={api_response:"API Response Time",db_connection:"Database Connection",cache_hit:"Cache Hit Rate",last_sync:"Last Full Sync"},g_={ongoing:"Ongoing Screening Tasks",batch_prefix:"Batch Screening #",complete_suffix:"% complete"},y_={title:h_,description:p_,metrics:m_,tasks:g_},v_="Batch Jobs",x_="Manage bulk screening operations",w_="New Job",__={title:v_,description:x_,new_job:w_},S_="Sanctions Lists",k_="Entities",C_="Threshold",P_="Last Synced",E_={title:S_,entities:k_,threshold:C_,last_synced:P_},b_="Welcome to AMLIQ",T_={country:"Country",lists:"Lists",threshold:"Threshold"},L_={title:"Select your country",description:"We'll suggest the right sanctions lists for your jurisdiction"},A_={title:"Recommended Lists",description:"Based on your country, we recommend screening against these lists",loading:"Loading suggested lists...",threshold:"Threshold:"},j_={title:"Set Match Threshold",description:"Names matching above this confidence level will generate alerts",low:"Low (50%)",high:"High (95%)",current:"Current:",hint_more:"More alerts, fewer missed matches",hint_fewer:"Fewer alerts, may miss some matches",hint_balanced:"Balanced — recommended for most organizations",start:"Start Screening",starting:"Setting up..."},R_={welcome:b_,continue:"Continue",steps:T_,country:L_,lists:A_,threshold:j_},$_={features:"Features",pricing:"Pricing",docs:"Docs",blog:"Blog",sign_in:"Sign In",start_trial:"Start Free Trial"},N_={heading:"AML Screening That Catches Everything.",description:"AI-powered sanctions screening with 6-layer matching, {{listCount}} global lists, and configurable fuzzy search. Built for banks that demand zero missed hits.",cta_trial:"Start Free Trial",cta_demo:"View Demo",badge_security:"Security-First Architecture",badge_encryption:"End-to-End Encryption",badge_audit:"Full Audit Trail"},D_={subtitle:"Built for financial institutions worldwide",banks:"Banks",fintechs:"Fintechs",msbs:"MSBs",neobanks:"Neobanks",regulators:"Regulators",payments:"Payments"},M_={title:"Enterprise-Grade Features",subtitle:"Purpose-built for compliance teams who need zero missed hits and zero false positives.",ai_pipeline:"6-Layer AI Matching Pipeline",ai_pipeline_desc:"Advanced fuzzy matching across transliterations and phonetic variations with machine learning.",sanctions_lists:"{{listCount}}+ Sanctions Lists",sanctions_lists_desc:"OFAC, UN, EU, UK, and OpenSanctions integrated. Always updated with new designations.",fuzzy_search:"Configurable Fuzzy Search",fuzzy_search_desc:"Tune sensitivity from strict to lenient matching. Zero false negatives with minimal false positives.",latency:"<50ms API Latency",latency_desc:"Sub-50ms p99 latency target for real-time screening at scale.",explainable:"Explainable AI Decisions",explainable_desc:"Every match includes confidence scores, reasoning, and audit trails for compliance.",multilang:"Multi-Language (25+)",multilang_desc:"Automatic transcription and phonetic normalization across Latin, Cyrillic, Arabic, and more."},O_={heading:"See It In Action",hint:"Try: Mohammed Al-Rashidi, Donald Trump, Vladimir Putin",placeholder:"Type a name to screen...",layer_prefix:"Layer",match_found:"⚠ Match Found",confidence:"confidence",no_matches:"✓ No matches found",no_matches_sub:"Screened against OFAC, UN, EU, and 12 other lists"},I_={heading:"How AMLIQ Compares",feature:"Feature",amliq:"AMLIQ",worldcheck:"World-Check",manual:"Manual",sanctions_lists:"Sanctions Lists",six_layer:"6-Layer Matching",latency:"<50ms Latency",fuzzy_search:"Fuzzy Search",multilang:"Multi-Language",audit_trail:"Audit Trail",false_positive:"False Positive Rate"},V_={screened_daily:"Matching Layers",screened_value:"6",uptime:"Sanctions Lists",uptime_value:"{{listCount}}+",fewer_fp:"Uptime Target",fewer_fp_value:"99.9%",latency:"P99 Latency",latency_value:"<50ms"},F_={title:"Five Powerful Products",subtitle:"Mix and match. Start simple, scale fast. No setup fees.",most_popular:"Most Popular",per_month:"/mo",billed_yearly:"Billed ${{price}}/year",custom:"Custom",get_started:"Get Started",contact_sales:"Contact Sales",monthly:"Monthly",annual:"Annual",save_percent:"Save 20%"},z_={api:"API Access",dashboard:"Dashboard",sdk:"SDK",iframe:"iFrame",dataset:"Dataset"},B_={title:"Bundle & Save 15%",description:"Use multiple AMLIQ products together? Bundle them for 15% off your total monthly spend.",cta:"Contact Sales"},U_={heading:"Need Unlimited Scale?",description:"Custom list management, on-premise deployment, dedicated support, and SLA guarantees.",cta:"Contact Sales",note:"Designed for tier-1 financial institutions and global compliance teams."},W_={heading:"Built for Compliance Teams",items:[{scenario:"Customer Onboarding Screening",description:"A compliance team screens new customers during onboarding using 6-layer matching to catch transliteration and phonetic variations across multiple sanctions lists."},{scenario:"Batch Transaction Monitoring",description:"An AML operations team runs nightly batch screening of transaction counterparties, leveraging configurable fuzzy thresholds to balance coverage with analyst workload."},{scenario:"Real-Time Payment Screening",description:"A payments processor integrates the screening API into their payment flow, using sub-50ms latency targets to screen without delaying transaction processing."}]},H_={heading:"Frequently Asked Questions",items:[{q:"What lists are included?",a:"All plans include OFAC, UN, EU, UK, and OpenSanctions. Professional and Enterprise plans include {{listCount}}+ specialized lists."},{q:"How is data security handled?",a:"Built with security-first architecture. Encryption at rest and in transit. Designed for regulatory compliance with full audit trails."},{q:"Can I integrate AMLIQ with my systems?",a:"Yes, REST API with webhooks, SDKs for Python/Node.js/Go, and native integrations with Salesforce, Slack, and more."},{q:"What support is included?",a:"Email support (Starter), priority support (Professional), and dedicated CSM (Enterprise)."},{q:"Do you offer on-premise deployment?",a:"Yes, Enterprise customers can deploy on-premise, air-gapped, or in a private cloud."},{q:"What is your SLA?",a:"99.9% uptime target. Enterprise plans include priority support with dedicated response times."}]},K_={tagline:"AI-powered AML screening for banks that demand zero missed hits.",product:"Product",features:"Features",pricing:"Pricing",security:"Security",compliance:"Compliance",company:"Company",about:"About",blog:"Blog",careers:"Careers",contact:"Contact",legal:"Legal",privacy:"Privacy Policy",terms:"Terms of Service",dpa:"DPA",security_overview:"Security Overview",copyright:"© 2026 AMLIQ. All rights reserved."},Q_={nav:$_,hero:N_,logo_cloud:D_,features:M_,demo:O_,comparison:I_,stats:V_,pricing:F_,products:z_,bundle:B_,enterprise:U_,use_cases:W_,faq:H_,footer:K_},G_={title:"Terms of Service",last_updated:"Last updated: March 29, 2026",sections:[{title:"1. Acceptance of Terms",body:'By accessing or using AMLIQ ("the Service"), operated by FinSavvy AI Ltd., you agree to be bound by these Terms of Service. If you do not agree, do not use the Service.'},{title:"2. Description of Service",body:"AMLIQ provides AI-enhanced anti-money laundering (AML) and sanctions screening services, including entity screening, batch processing, alert management, and compliance dashboards for financial institutions and regulated entities."},{title:"3. Eligibility",body:"The Service is available to businesses and professionals in the financial services and compliance industry. You must be at least 18 years old and authorized to bind your organization to these terms."},{title:"4. Account Registration",body:"You must provide accurate and complete information when creating an account. You are responsible for maintaining the confidentiality of your credentials and for all activities under your account."},{title:"5. Acceptable Use",body:"You agree not to: (a) use the Service for any unlawful purpose; (b) attempt to reverse-engineer, decompile, or disassemble any part of the Service; (c) share credentials or provide access to unauthorized users; (d) use the Service to circumvent sanctions or compliance obligations."},{title:"6. Data Processing",body:"AMLIQ processes screening data on your behalf as a data processor. You retain ownership of all data you submit. We process data solely to provide the Service and as described in our Privacy Policy."},{title:"7. Service Level Agreement",body:"We target 99.9% uptime for the screening API. Scheduled maintenance windows will be communicated at least 48 hours in advance. Current system status is available on our status page."},{title:"8. Billing and Payment",body:"Subscription fees are billed in advance on a monthly or annual basis. Usage-based charges are billed in arrears. All fees are non-refundable except as required by law or described in our refund policy."},{title:"9. Intellectual Property",body:"The Service, including its algorithms, models, and user interface, is the intellectual property of FinSavvy AI Ltd. Your subscription grants a limited, non-exclusive, non-transferable license to use the Service."},{title:"10. Limitation of Liability",body:"AMLIQ is a screening tool and does not constitute legal advice. You are responsible for all compliance decisions. To the maximum extent permitted by law, our total liability shall not exceed the fees paid in the preceding 12 months."},{title:"11. Termination",body:"Either party may terminate the subscription with 30 days written notice. We may suspend access immediately for violation of these terms. Upon termination, your data will be available for export for 30 days."},{title:"12. Changes to Terms",body:"We may update these terms with 30 days notice. Continued use after changes take effect constitutes acceptance of the updated terms."},{title:"13. Contact",body:"For questions about these terms, contact us at legal@amliq.finance."}]},Y_={title:"Privacy Policy",last_updated:"Last updated: March 29, 2026",sections:[{title:"1. Introduction",body:'FinSavvy AI Ltd. ("we", "us") operates AMLIQ, an AI-enhanced AML screening platform. This policy explains how we collect, use, and protect your information.'},{title:"2. Information We Collect",body:"Account data: name, email, organization, country, and role when you register. Screening data: entity names, identifiers, and related data you submit for screening. Usage data: API calls, feature usage, and performance metrics. Technical data: IP address, browser type, and device information."},{title:"3. How We Use Your Information",body:"We use your information to: provide and improve the screening service; process billing; send service communications; monitor system performance; comply with legal obligations; and prevent fraud or misuse."},{title:"4. Data Processing Role",body:"For screening data, we act as a data processor on your behalf. You remain the data controller and are responsible for ensuring you have a lawful basis to process the personal data you submit."},{title:"5. Data Retention",body:"Account data is retained for the duration of your subscription plus 30 days. Screening results are retained per your tenant configuration. Audit logs are retained for 7 years as required by financial regulations."},{title:"6. Data Security",body:"We implement industry-standard security measures including: encryption at rest (AES-256) and in transit (TLS 1.3); regular penetration testing; role-based access controls; and immutable audit logging."},{title:"7. Data Sharing",body:"We do not sell your data. We may share data with: infrastructure providers (hosting, database) under strict data processing agreements; law enforcement when legally required; and professional advisors under confidentiality obligations."},{title:"8. International Transfers",body:"Data may be processed in data centers in the US and EU. We use Standard Contractual Clauses and ensure adequate safeguards for international transfers in compliance with GDPR."},{title:"9. Your Rights",body:"Depending on your jurisdiction, you may have the right to: access, correct, or delete your personal data; restrict or object to processing; data portability; and withdraw consent. Contact privacy@amliq.finance to exercise these rights."},{title:"10. Cookies",body:"We use essential cookies for authentication and session management. We use analytics cookies only with your consent. You can manage cookie preferences in your browser settings."},{title:"11. Changes to This Policy",body:"We will notify you of material changes via email or in-app notification at least 30 days before they take effect."},{title:"12. Contact",body:"Data Protection Officer: privacy@amliq.finance"}]},q_={terms:G_,privacy:Y_},X_={title:"Admin: Tenants",search_placeholder:"Search tenants..."},Z_={screening_history:"Screening History",total_screenings:"{{count}} total screenings",config_override:"Config Override",match_threshold:"Match Threshold (%)",save:"Save",loading:"Loading..."},J_={title:"System Health",api_status:"API Status",database:"Database",version:"Version",fetch_error:"Failed to fetch health"},eS={tenants:X_,tenant_detail:Z_,health:J_},tS="Team Management",nS="Email",rS="Invite",iS={admin:"Admin",analyst:"Analyst",auditor:"Auditor",viewer:"Viewer"},sS="No team members yet",oS={title:tS,email_placeholder:nS,invite:rS,roles:iS,no_members:sS},aS={title:"Platform Overview",total_tenants:"Total Tenants",total_screenings:"Total Screenings",loading:"Loading..."},lS={title:"All Users",search_placeholder:"Search by email or tenant...",email:"Email",tenant:"Tenant",role:"Role"},uS={title:"API Keys",prefix:"Prefix",tenant:"Tenant",product:"Product",rate_limit:"Rate Limit",actions:"Actions",unlimited:"Unlimited",revoke:"Revoke"},cS={overview:aS,users:lS,api_keys:uS},dS="Something went wrong",fS="Try Again",hS="Not found",pS="Unauthorized",mS="Forbidden",gS="Network error. Please check your connection.",yS="Request timed out. Please try again.",vS={generic:dS,try_again:fS,not_found:hS,unauthorized:pS,forbidden:mS,network:gS,timeout:yS},xS={common:t1,auth:l1,nav:B1,dashboard:cw,alerts:xw,screening:Pw,billing:Fw,compliance:Yw,config:i_,analytics:l_,audit:f_,monitoring:y_,batch:__,lists:E_,onboarding:R_,marketing:Q_,legal:q_,admin:eS,team:oS,platform:cS,errors:vS},wS={save:"שמור",save_changes:"שמור שינויים",reset:"אפס",continue:"המשך",back:"חזור",submit:"שלח",confirm:"אשר",cancel:"בטל",close:"סגור",delete:"מחק",edit:"ערוך",add:"הוסף",next:"הבא",previous:"הקודם",loading:"טוען",saving:"שומר",setting_up:"מגדיר",export:"ייצוא",import:"ייבוא",search:"חיפוש",filter:"סינון",sort:"מיון",apply:"החל",sync:"סנכרון",start:"התחל",invite:"הזמן",revoke:"בטל הרשאה"},_S={active:"פעיל",disabled:"מושבת",loading:"טוען",healthy:"תקין",connected:"מחובר",completed:"הושלם",pending:"ממתין",running:"פועל",failed:"נכשל",in_progress:"בתהליך",open:"פתוח",resolved:"טופל",trialing:"תקופת ניסיון"},SS={email:'דוא"ל',password:"סיסמה",name:"שם",status:"סטטוס",priority:"עדיפות",type:"סוג",role:"תפקיד",country:"מדינה",entities:"ישויות",alerts:"התרעות",matches:"התאמות"},kS={never:"אף פעם",created:"נוצר",updated:"עודכן",due:"תאריך יעד"},CS={actions:wS,status:_S,labels:SS,time:kS},PS={title:"התחברות ל-AMLIQ",subtitle:"בחר שיטת התחברות",email_placeholder:"you@company.com",password_placeholder:"סיסמה",forgot_password:"שכחת סיסמה?",submit:"התחבר",submitting:"מתחבר...",no_account:"אין לך חשבון?",start_trial:"התחל תקופת ניסיון חינם",failed:"ההתחברות נכשלה"},ES={welcome:"ברוך שובך",description:"מנוע הסינון שלך פועל. לוח הציות שלך מחכה.",feature_ai:"מנוע סינון AI בעל 6 שכבות",feature_lists:"{{listCount}}+ רשימות סנקציות גלובליות",feature_speed:"זמן תגובה של פחות מ-50 מילישניות"},bS={title:"התחל תקופת ניסיון חינם",subtitle:"14 ימים חינם. לא נדרש כרטיס אשראי.",org_placeholder:"שם הארגון",email_placeholder:'דוא"ל עבודה',password_placeholder:"סיסמה",min_chars:"מינימום 8 תווים",submit:"צור חשבון",submitting:"יוצר חשבון...",agree_prefix:"בהרשמה אתה מסכים ל",terms_link:"תנאי השימוש",and:"ו",privacy_link:"מדיניות הפרטיות",have_account:"כבר יש לך חשבון?",sign_in_link:"התחבר",failed:"ההרשמה נכשלה"},TS={tagline:"סינון הלבנת הון שתופס הכל",description:"החלף כלים יקרים ואטומים בהתאמה מונעת AI וניתנת להגדרה.",perk_ai:"מנוע התאמת AI בעל 6 שכבות",perk_lists:"{{listCount}}+ רשימות סנקציות כלולות",perk_compliance:"ארכיטקטורת אבטחה ראשונה",perk_speed:"זמן סינון של פחות מ-50 מילישניות"},LS={title:"איפוס סיסמה",description:'הזן את כתובת הדוא"ל המשויכת לחשבונך ונשלח לך קישור לאיפוס.',back_to_login:"חזרה להתחברות",email_placeholder:'כתובת דוא"ל',submit:"שלח קישור איפוס",success_title:"בדוק את תיבת הדואר שלך",success_message:"אם קיים חשבון עבור {{email}}, תקבל קישור לאיפוס סיסמה בקרוב."},AS={continue_with:"המשך עם {{provider}}",sign_up_with:"הירשם עם {{provider}}",or_continue_email:'או המשך עם דוא"ל'},jS={login:PS,login_panel:ES,signup:bS,signup_panel:TS,forgot:LS,oauth:AS},RS="ראשי",$S="לוח בקרה",NS="התרעות",DS="סינון",MS="ניטור",OS="עיבוד אצווה",IS="ציות",VS="תיקים",FS="הערכת סיכונים",zS="סינון PEP",BS="מדיה שלילית",US="עסקאות",WS="סינון קריפטו",HS="שרשרת UBO",KS="תהליך EDD",QS="מערכת",GS="אנליטיקה",YS="יומן ביקורת",qS="רשימות סנקציות",XS="שוק רשימות",ZS="מפתחות API",JS="Webhooks",ek="הגדרות",tk="חיוב",nk="צוות",rk="ניהול",ik="לקוחות",sk="בריאות מערכת",ok="מקורות מידע",ak="פלטפורמה",lk="סקירה כללית",uk="משתמשים",ck="חיפוש ישויות, התרעות...",dk={main:RS,dashboard:$S,alerts:NS,screen:DS,monitoring:MS,batch_jobs:OS,compliance:IS,cases:VS,risk_assessment:FS,pep_screening:zS,adverse_media:BS,transactions:US,crypto_screening:WS,ubo_chain:HS,edd_workflow:KS,system:QS,analytics:GS,audit_log:YS,sanctions_lists:qS,marketplace:XS,api_keys:ZS,webhooks:JS,configuration:ek,billing:tk,team:nk,admin:rk,tenants:ik,system_health:sk,data_sources:ok,platform:ak,overview:lk,users:uk,search_placeholder:ck},fk="לוח בקרה",hk="סקירת פעילות סינון והתרעות",pk='סה"כ התרעות',mk="טופלו היום",gk="הועברו לטיפול",yk="זמן טיפול ממוצע",vk="זמן בשעות",xk="נפח סינון (30 יום)",wk="פילוח סטטוסים",_k="התפלגות סיכונים",Sk="ישויות מובילות",kk="תיקים פתוחים",Ck="ניטורים פעילים",Pk="סיכון גבוה",Ek="ממתינים ל-EDD",bk="מדיה לא נבדקה",Tk="התרעות עסקאות",Lk={title:fk,description:hk,total_alerts:pk,cleared_today:mk,escalated:gk,avg_resolution:yk,time_in_hours:vk,screening_volume:xk,disposition_breakdown:wk,risk_distribution:_k,top_entities:Sk,open_cases:kk,active_monitors:Ck,high_risk:Pk,pending_edd:Ek,unreviewed_media:bk,txn_alerts:Tk},Ak={title:"תור התרעות",no_alerts:"אין התרעות",all_clear:"הכל תקין"},jk={status:"סטטוס",priority:"עדיפות",open:"פתוח",investigating:"בבדיקה",resolved:"טופל",archived:"בארכיון",critical:"קריטי",high:"גבוה",medium:"בינוני",low:"נמוך"},Rk={risk:"סיכון:"},$k={not_found:"ההתרעה לא נמצאה"},Nk={title:"פעולות",confirm:"אשר",false_positive:"חיובי שגוי",escalate:"העבר לטיפול",ai_draft:"טיוטת AI"},Dk={status:"סטטוס",current_status:"סטטוס נוכחי",priority:"עדיפות",risk_level:"רמת סיכון",investigator:"חוקר",timeline:"ציר זמן"},Mk={title:"פרטי ישות",type:"סוג",nationality:"אזרחות",dob:"תאריך לידה",matches_found:"התאמות שנמצאו"},Ok={title:"הערות חקירה",placeholder:"הוסף הערות חקירה...",save:"שמור הערות"},Ik={queue:Ak,filters:jk,card:Rk,detail:$k,actions:Nk,sidebar:Dk,entity_details:Mk,notes:Ok},Vk="סינון ישות",Fk="ביצוע סינון ישות ידני",zk={individual:"יחיד",company:"חברה",first_name:"שם פרטי",last_name:"שם משפחה",company_name:"שם החברה",dob:"תאריך לידה",nationality:"אזרחות",submit:"סנן ישות",submitting:"מסנן..."},Bk={title:"שכבות סינון",ofac_sdn:"OFAC SDN",eu_sanctions:"סנקציות האיחוד האירופי",un_consolidated:'רשימה מאוחדת של האו"ם',custom_lists:"רשימות מותאמות"},Uk={title:"תוצאות סינון",match_found:"נמצאה התאמה ברשימת סנקציות"},Wk={title:Vk,description:Fk,form:zk,layers:Bk,results:Uk},Hk="חיוב ומנויים",Kk="ניהול מוצרים, שימוש וחשבוניות",Qk="הוסף מוצר",Gk={active_subscriptions:"מנויים פעילים",dashboard_seats:"רישיונות לוח בקרה",promo_code:"קוד קידום",usage_history:"שימוש והיסטוריה",invoices:"חשבוניות"},Yk={no_subscriptions:"אין מנויים פעילים",current_plan:"תוכנית נוכחית",renews_on:"מתחדש בתאריך",manage:"ניהול מנוי",change_plan:"שנה תוכנית"},qk={email_placeholder:"user@company.com",investigator:"חוקר",analyst:"אנליסט",manager:"מנהל",used:"{{current}} מתוך {{total}} רישיונות בשימוש"},Xk={placeholder:"הזן קוד קידום",apply:"החל",discount:"הונחה {{percent}}%"},Zk={title:"חמישה מוצרים רבי עוצמה",subtitle:"שלב והתאם. התחל בפשטות, התרחב מהר. ללא דמי הקמה.",most_popular:"הפופולרי ביותר",per_month:"/חודש",billed_yearly:"חיוב שנתי ${{price}}",custom:"מותאם אישית",get_started:"התחל עכשיו",contact_sales:"צור קשר עם מכירות"},Jk={title:Hk,subtitle:Kk,add_product:Qk,sections:Gk,subscriptions:Yk,seats:qk,promo:Xk,pricing:Zk},e2={title:"ניהול תיקים",all:"הכל",open:"פתוח",in_review:"בבדיקה",escalated:"הועבר לטיפול",resolved:"טופל",no_cases:"לא נמצאו תיקים",matched:"הותאם:",match:"התאמה:"},t2={title:"הערכת סיכונים",entity_placeholder:"מזהה ישות",country_placeholder:"קוד מדינה (לדוגמה IL)",calculate:"חשב סיכון",composite_score:"{{score}}%",risk_factors:"גורמי סיכון",score_breakdown:"פירוט ציון"},n2={title:"סינון PEP",entity_placeholder:"מזהה ישות",screen:"סנן",identified:"זוהה כ-PEP",not_pep:"לא PEP",tier:"דרגה",risk_weight:"משקל סיכון",position:"תפקיד",country:"מדינה"},r2={title:"מדיה שלילית",category:"קטגוריה",severity:"חומרה",entity:"ישות:",no_hits:"אין ממצאי מדיה שלא נבדקו"},i2={title:"ניטור עסקאות",recent_alerts:"התרעות אחרונות",high_value:"ערך גבוה",rapid_movement:"תנועה מהירה",structuring:"פיצול עסקאות",high_risk_country:"מדינה בסיכון גבוה",unusual_pattern:"דפוס חריג",txn_prefix:"עסקה:",no_alerts:"אין התרעות עסקאות"},s2={title:"בעלות מועילה",organization:"ארגון:",total_identified:'סה"כ זוהו',direct:"(ישיר)",indirect:"(עקיף)",pep_badge:"PEP"},o2={title:"בדיקת נאותות מוגברת",progress:"התקדמות",checks:"בדיקות",identity:"אימות זהות",source_of_funds:"מקור כספים",source_of_wealth:"מקור עושר",pep_screening:"סינון PEP",adverse_media:"בדיקת מדיה שלילית",sanctions:"סינון סנקציות",ubo_verification:"אימות UBO",country_risk:"הערכת סיכון מדינה"},a2={match:"התאמה:",status:"סטטוס",priority:"עדיפות",confidence:"רמת ודאות",assigned_to:"מוקצה ל",unassigned:"לא מוקצה",escalate:"העבר לטיפול",false_positive:"סמן כחיובי שגוי",comments:"הערות"},l2={cases:e2,risk:t2,pep:n2,adverse_media:r2,transactions:i2,ubo:s2,edd:o2,case_detail:a2},u2="הגדרות",c2="ניהול פרמטרי סינון",d2={title:"ספים",default:"סף התאמה ברירת מחדל:",auto_dismiss:"דחייה אוטומטית מתחת ל:",auto_escalate:"העברה אוטומטית מעל:"},f2={title:"רשימות"},h2={title:u2,description:c2,thresholds:d2,lists:f2},p2="אנליטיקה",m2="מדדי סינון והתרעות",g2={screening_volume:"נפח סינון",alert_disposition:"סטטוס התרעות",risk_distribution:"התפלגות סיכונים"},y2={title:p2,description:m2,charts:g2},v2="יומן ביקורת",x2="יומן פעילות מלא",w2={screen_initiated:"סינון הופעל",alert_created:"התרעה נוצרה",alert_resolved:"התרעה טופלה",config_updated:"הגדרות עודכנו",list_imported:"רשימה יובאה",export_generated:"ייצוא נוצר"},_2={title:v2,description:x2,actions:w2},S2="ניטור מערכת",k2="בריאות מערכת וביצועים בזמן אמת",C2={api_response:"זמן תגובת API",db_connection:"חיבור מסד נתונים",cache_hit:"אחוז פגיעות מטמון",last_sync:"סנכרון מלא אחרון"},P2={ongoing:"משימות סינון פעילות",batch_prefix:"סינון אצווה #",complete_suffix:"% הושלם"},E2={title:S2,description:k2,metrics:C2,tasks:P2},b2="עיבוד אצווה",T2="ניהול פעולות סינון בכמויות",L2="משימה חדשה",A2={title:b2,description:T2,new_job:L2},j2="רשימות סנקציות",R2="ישויות",$2="סף",N2="סונכרן לאחרונה",D2={title:j2,entities:R2,threshold:$2,last_synced:N2},M2="ברוכים הבאים ל-AMLIQ",O2={title:"בחר את המדינה שלך",description:"נציע לך את רשימות הסנקציות המתאימות לתחום השיפוט שלך"},I2={title:"רשימות מומלצות",description:"בהתבסס על המדינה שלך, אנו ממליצים לסנן מול רשימות אלו",loading:"טוען רשימות מומלצות...",threshold:"סף:"},V2={title:"הגדר סף התאמה",description:"שמות שיתאימו מעל רמת ודאות זו יפיקו התרעות",low:"נמוך (50%)",high:"גבוה (95%)",current:"נוכחי:",hint_more:"יותר התרעות, פחות החמצות",hint_fewer:"פחות התרעות, עלול להחמיץ התאמות",hint_balanced:"מאוזן — מומלץ לרוב הארגונים",start:"התחל סינון",starting:"מגדיר..."},F2={welcome:M2,country:O2,lists:I2,threshold:V2},z2={features:"תכונות",pricing:"תמחור",docs:"תיעוד",blog:"בלוג",sign_in:"התחבר",start_trial:"התחל תקופת ניסיון חינם"},B2={heading:"סינון הלבנת הון שתופס הכל.",description:"סינון סנקציות מונע AI עם התאמה ב-6 שכבות, {{listCount}}+ רשימות, וחיפוש מטושטש הניתן להגדרה. נבנה עבור בנקים שדורשים אפס החמצות.",cta_trial:"התחל תקופת ניסיון חינם",cta_demo:"צפה בהדגמה",badge_security:"ארכיטקטורת אבטחה ראשונה",badge_encryption:"הצפנה מקצה לקצה",badge_audit:"מסלול ביקורת מלא"},U2={subtitle:"נבנה עבור מוסדות פיננסיים ברחבי העולם",banks:"בנקים",fintechs:"פינטק",msbs:"שירותי כספים",neobanks:"בנקים דיגיטליים",regulators:"רגולטורים",payments:"תשלומים"},W2={title:"תכונות ברמה ארגונית",subtitle:"נבנה במיוחד עבור צוותי ציות שדורשים אפס החמצות ואפס חיוביים שגויים.",ai_pipeline:"צינור התאמת AI בעל 6 שכבות",ai_pipeline_desc:"התאמה מטושטשת מתקדמת על פני תעתיקים ווריאציות פונטיות עם למידת מכונה.",sanctions_lists:"{{listCount}}+ רשימות סנקציות",sanctions_lists_desc:'OFAC, האו"ם, האיחוד האירופי, בריטניה ו-OpenSanctions משולבים. תמיד מעודכנים עם הגדרות חדשות.',fuzzy_search:"חיפוש מטושטש הניתן להגדרה",fuzzy_search_desc:"כוונן רגישות מהתאמה מדויקת לגמישה. אפס שליליים שגויים עם מינימום חיוביים שגויים.",latency:"זמן תגובת API פחות מ-50 מילישניות",latency_desc:"יעד זמן תגובת p99 של פחות מ-50 מילישניות לסינון בזמן אמת בקנה מידה.",explainable:"החלטות AI שקופות",explainable_desc:"כל התאמה כוללת ציוני ודאות, נימוקים ומסלולי ביקורת לציות.",multilang:"רב-שפתי (25+)",multilang_desc:"תעתיק אוטומטי ונורמליזציה פונטית על פני לטינית, קירילית, ערבית ועוד."},H2={heading:"ראה את זה בפעולה",hint:"נסה: מוחמד אל-רשידי, דונלד טראמפ, ולדימיר פוטין",placeholder:"הקלד שם לסינון...",layer_prefix:"שכבה",match_found:"⚠ נמצאה התאמה",confidence:"ודאות",no_matches:"✓ לא נמצאו התאמות",no_matches_sub:'נסנן מול OFAC, האו"ם, האיחוד האירופי ו-12 רשימות נוספות'},K2={heading:"איך AMLIQ משתווה",feature:"תכונה",amliq:"AMLIQ",worldcheck:"World-Check",manual:"ידני"},Q2={screened_daily:"שכבות התאמה",screened_value:"6",uptime:"רשימות סנקציות",uptime_value:"{{listCount}}+",fewer_fp:"יעד זמינות",fewer_fp_value:"99.9%",latency:"זמן תגובה P99",latency_value:"<50ms"},G2={heading:"נבנה עבור צוותי ציות",items:[{scenario:"סינון לקוחות בקליטה",description:"צוות ציות סורק לקוחות חדשים בזמן הקליטה באמצעות התאמה ב-6 שכבות לזיהוי תעתיקים ווריאציות פונטיות על פני רשימות סנקציות מרובות."},{scenario:"ניטור עסקאות באצווה",description:"צוות תפעולי AML מריץ סינון אצווה לילי של צדדים נגדיים בעסקאות, תוך ניצול סף התאמה מטושטש הניתן להגדרה לאיזון בין כיסוי לעומס עבודה של אנליסטים."},{scenario:"סינון תשלומים בזמן אמת",description:"מעבד תשלומים משלב את ה-API לסינון בזרימת התשלום שלו, תוך שימוש ביעד זמן תגובה של פחות מ-50 מילישניות כדי לסנן מבלי לעכב עיבוד עסקאות."}]},Y2={heading:"שאלות נפוצות"},q2={tagline:"סינון הלבנת הון מונע AI עבור בנקים שדורשים אפס החמצות.",product:"מוצר",features:"תכונות",pricing:"תמחור",security:"אבטחה",compliance:"ציות",company:"חברה",about:"אודות",blog:"בלוג",careers:"קריירה",contact:"צור קשר",legal:"משפטי",privacy:"מדיניות פרטיות",terms:"תנאי שימוש",dpa:"DPA",security_overview:"סקירת אבטחה",copyright:"© 2026 AMLIQ. כל הזכויות שמורות."},X2={nav:z2,hero:B2,logo_cloud:U2,features:W2,demo:H2,comparison:K2,stats:Q2,use_cases:G2,faq:Y2,footer:q2},Z2={title:"תנאי שימוש",last_updated:"עודכן לאחרונה: 29 במרץ 2026"},J2={title:"מדיניות פרטיות",last_updated:"עודכן לאחרונה: 29 במרץ 2026"},eC={terms:Z2,privacy:J2},tC={title:"ניהול: דיירים",search_placeholder:"חיפוש דיירים..."},nC={screening_history:"היסטוריית סינון",total_screenings:'סה"כ סינונים',config_override:"דריסת הגדרות",match_threshold:"סף התאמה (%)",save:"שמור"},rC={title:"בריאות מערכת",api_status:"סטטוס API",database:"מסד נתונים",version:"גרסה"},iC={tenants:tC,tenant_detail:nC,health:rC},sC="ניהול צוות",oC='דוא"ל',aC={admin:"מנהל",analyst:"אנליסט",auditor:"מבקר",viewer:"צופה"},lC="אין חברי צוות עדיין",uC={title:sC,email_placeholder:oC,roles:aC,no_members:lC},cC={title:"סקירת פלטפורמה",total_tenants:'סה"כ דיירים',total_screenings:'סה"כ סינונים'},dC={title:"כל המשתמשים",search_placeholder:'חיפוש לפי דוא"ל או דייר...',email:'דוא"ל',tenant:"דייר",role:"תפקיד"},fC={title:"מפתחות API",prefix:"קידומת",tenant:"דייר",product:"מוצר",rate_limit:"הגבלת קצב",actions:"פעולות",unlimited:"ללא הגבלה"},hC={overview:cC,users:dC,api_keys:fC},pC="משהו השתבש",mC="נסה שוב",gC="לא נמצא",yC="לא מורשה",vC="גישה נדחתה",xC="שגיאת רשת. אנא בדוק את החיבור שלך.",wC="הבקשה חרגה מזמן ההמתנה. אנא נסה שוב.",_C={generic:pC,try_again:mC,not_found:gC,unauthorized:yC,forbidden:vC,network:xC,timeout:wC},SC={common:CS,auth:jS,nav:dk,dashboard:Lk,alerts:Ik,screening:Wk,billing:Jk,compliance:l2,config:h2,analytics:y2,audit:_2,monitoring:E2,batch:A2,lists:D2,onboarding:F2,marketing:X2,legal:eC,admin:iC,team:uC,platform:hC,errors:_C},kC={save:"حفظ",save_changes:"حفظ التغييرات",reset:"إعادة تعيين",continue:"متابعة",back:"رجوع",submit:"إرسال",confirm:"تأكيد",cancel:"إلغاء",close:"إغلاق",delete:"حذف",edit:"تعديل",add:"إضافة",next:"التالي",previous:"السابق",loading:"جارٍ التحميل",saving:"جارٍ الحفظ",setting_up:"جارٍ الإعداد",export:"تصدير",import:"استيراد",search:"بحث",filter:"تصفية",sort:"ترتيب",apply:"تطبيق",sync:"مزامنة",start:"بدء",invite:"دعوة",revoke:"إلغاء الصلاحية"},CC={active:"نشط",disabled:"معطّل",loading:"جارٍ التحميل",healthy:"سليم",connected:"متصل",completed:"مكتمل",pending:"قيد الانتظار",running:"قيد التشغيل",failed:"فشل",in_progress:"قيد التنفيذ",open:"مفتوح",resolved:"تم الحل",trialing:"فترة تجريبية"},PC={email:"البريد الإلكتروني",password:"كلمة المرور",name:"الاسم",status:"الحالة",priority:"الأولوية",type:"النوع",role:"الدور",country:"الدولة",entities:"كيانات",alerts:"تنبيهات",matches:"تطابقات"},EC={never:"أبداً",created:"تاريخ الإنشاء",updated:"تاريخ التحديث",due:"تاريخ الاستحقاق"},bC={actions:kC,status:CC,labels:PC,time:EC},TC={title:"تسجيل الدخول إلى AMLIQ",subtitle:"اختر طريقة تسجيل الدخول",email_placeholder:"you@company.com",password_placeholder:"كلمة المرور",forgot_password:"نسيت كلمة المرور؟",submit:"تسجيل الدخول",submitting:"جارٍ تسجيل الدخول...",no_account:"ليس لديك حساب؟",start_trial:"ابدأ التجربة المجانية",failed:"فشل تسجيل الدخول"},LC={welcome:"مرحباً بعودتك",description:"محرك الفحص الخاص بك يعمل. لوحة الامتثال في انتظارك.",feature_ai:"محرك فحص بالذكاء الاصطناعي من 6 طبقات",feature_lists:"أكثر من {{listCount}} قائمة عقوبات عالمية",feature_speed:"زمن مطابقة أقل من 50 مللي ثانية"},AC={title:"ابدأ تجربتك المجانية",subtitle:"14 يوماً مجاناً. لا حاجة لبطاقة ائتمان.",org_placeholder:"اسم المؤسسة",email_placeholder:"البريد الإلكتروني للعمل",password_placeholder:"كلمة المرور",min_chars:"8 أحرف كحد أدنى",submit:"إنشاء حساب",submitting:"جارٍ إنشاء الحساب...",agree_prefix:"بالتسجيل فإنك توافق على",terms_link:"الشروط",and:"و",privacy_link:"سياسة الخصوصية",have_account:"لديك حساب بالفعل؟",sign_in_link:"تسجيل الدخول",failed:"فشل إنشاء الحساب"},jC={tagline:"فحص مكافحة غسل الأموال الذي لا يفوّت شيئاً",description:"استبدل الأدوات المكلفة وغير الشفافة بمطابقة قابلة للتخصيص مدعومة بالذكاء الاصطناعي.",perk_ai:"محرك مطابقة بالذكاء الاصطناعي من 6 طبقات",perk_lists:"أكثر من {{listCount}} قائمة عقوبات مضمّنة",perk_compliance:"بنية أمان أولاً",perk_speed:"زمن فحص أقل من 50 مللي ثانية"},RC={title:"إعادة تعيين كلمة المرور",description:"أدخل عنوان البريد الإلكتروني المرتبط بحسابك وسنرسل لك رابط إعادة التعيين.",back_to_login:"العودة لتسجيل الدخول",email_placeholder:"عنوان البريد الإلكتروني",submit:"إرسال رابط إعادة التعيين",success_title:"تحقق من بريدك الوارد",success_message:"إذا كان هناك حساب مرتبط بـ {{email}}، فستتلقى رابط إعادة تعيين كلمة المرور قريباً."},$C={continue_with:"المتابعة عبر {{provider}}",sign_up_with:"التسجيل عبر {{provider}}",or_continue_email:"أو المتابعة عبر البريد الإلكتروني"},NC={login:TC,login_panel:LC,signup:AC,signup_panel:jC,forgot:RC,oauth:$C},DC="الرئيسية",MC="لوحة المعلومات",OC="التنبيهات",IC="الفحص",VC="المراقبة",FC="المهام المجمّعة",zC="الامتثال",BC="القضايا",UC="تقييم المخاطر",WC="فحص PEP",HC="الإعلام السلبي",KC="المعاملات",QC="فحص العملات المشفرة",GC="سلسلة UBO",YC="سير عمل EDD",qC="النظام",XC="التحليلات",ZC="سجل التدقيق",JC="قوائم العقوبات",eP="سوق القوائم",tP="مفاتيح API",nP="Webhooks",rP="الإعدادات",iP="الفوترة",sP="الفريق",oP="الإدارة",aP="العملاء",lP="صحة النظام",uP="مصادر البيانات",cP="المنصة",dP="نظرة عامة",fP="المستخدمون",hP="بحث في الكيانات والتنبيهات...",pP={main:DC,dashboard:MC,alerts:OC,screen:IC,monitoring:VC,batch_jobs:FC,compliance:zC,cases:BC,risk_assessment:UC,pep_screening:WC,adverse_media:HC,transactions:KC,crypto_screening:QC,ubo_chain:GC,edd_workflow:YC,system:qC,analytics:XC,audit_log:ZC,sanctions_lists:JC,marketplace:eP,api_keys:tP,webhooks:nP,configuration:rP,billing:iP,team:sP,admin:oP,tenants:aP,system_health:lP,data_sources:uP,platform:cP,overview:dP,users:fP,search_placeholder:hP},mP="لوحة المعلومات",gP="نظرة عامة على نشاط الفحص والتنبيهات",yP="إجمالي التنبيهات",vP="تمت تسويتها اليوم",xP="تم تصعيدها",wP="متوسط وقت الحل",_P="الوقت بالساعات",SP="حجم الفحص (30 يوماً)",kP="توزيع القرارات",CP="توزيع المخاطر",PP="أهم الكيانات",EP="القضايا المفتوحة",bP="المراقبات النشطة",TP="مخاطر عالية",LP="EDD قيد الانتظار",AP="إعلام غير مراجَع",jP="تنبيهات المعاملات",RP={title:mP,description:gP,total_alerts:yP,cleared_today:vP,escalated:xP,avg_resolution:wP,time_in_hours:_P,screening_volume:SP,disposition_breakdown:kP,risk_distribution:CP,top_entities:PP,open_cases:EP,active_monitors:bP,high_risk:TP,pending_edd:LP,unreviewed_media:AP,txn_alerts:jP},$P={title:"قائمة التنبيهات",no_alerts:"لا توجد تنبيهات",all_clear:"الكل واضح"},NP={status:"الحالة",priority:"الأولوية",open:"مفتوح",investigating:"قيد التحقيق",resolved:"تم الحل",archived:"مؤرشف",critical:"حرج",high:"مرتفع",medium:"متوسط",low:"منخفض"},DP={risk:"المخاطر:"},MP={not_found:"التنبيه غير موجود"},OP={title:"الإجراءات",confirm:"تأكيد",false_positive:"إيجابي كاذب",escalate:"تصعيد",ai_draft:"مسودة الذكاء الاصطناعي"},IP={status:"الحالة",current_status:"الحالة الحالية",priority:"الأولوية",risk_level:"مستوى المخاطر",investigator:"المحقق",timeline:"الجدول الزمني"},VP={title:"تفاصيل الكيان",type:"النوع",nationality:"الجنسية",dob:"تاريخ الميلاد",matches_found:"التطابقات الموجودة"},FP={title:"ملاحظات التحقيق",placeholder:"أضف ملاحظات التحقيق...",save:"حفظ الملاحظات"},zP={queue:$P,filters:NP,card:DP,detail:MP,actions:OP,sidebar:IP,entity_details:VP,notes:FP},BP="فحص الكيان",UP="إجراء فحص يدوي للكيان",WP={individual:"فرد",company:"شركة",first_name:"الاسم الأول",last_name:"اسم العائلة",company_name:"اسم الشركة",dob:"تاريخ الميلاد",nationality:"الجنسية",submit:"فحص الكيان",submitting:"جارٍ الفحص..."},HP={title:"طبقات الفحص",ofac_sdn:"OFAC SDN",eu_sanctions:"عقوبات الاتحاد الأوروبي",un_consolidated:"القائمة الموحدة للأمم المتحدة",custom_lists:"قوائم مخصصة"},KP={title:"نتائج الفحص",match_found:"تم العثور على تطابق في قائمة العقوبات"},QP={title:BP,description:UP,form:WP,layers:HP,results:KP},GP="الفوترة والاشتراكات",YP="إدارة المنتجات والاستخدام والفواتير",qP="إضافة منتج",XP={active_subscriptions:"الاشتراكات النشطة",dashboard_seats:"مقاعد لوحة المعلومات",promo_code:"رمز ترويجي",usage_history:"الاستخدام والسجل",invoices:"الفواتير"},ZP={no_subscriptions:"لا توجد اشتراكات نشطة",current_plan:"الخطة الحالية",renews_on:"يتجدد في",manage:"إدارة الاشتراك",change_plan:"تغيير الخطة"},JP={email_placeholder:"user@company.com",investigator:"محقق",analyst:"محلل",manager:"مدير",used:"{{current}} من {{total}} مقعد مستخدم"},eE={placeholder:"أدخل الرمز الترويجي",apply:"تطبيق",discount:"تم تطبيق خصم {{percent}}%"},tE={title:"خمسة منتجات قوية",subtitle:"اختر وادمج. ابدأ ببساطة، وتوسّع بسرعة. بدون رسوم إعداد.",most_popular:"الأكثر شعبية",per_month:"/شهر",billed_yearly:"يُفوتر ${{price}}/سنة",custom:"مخصص",get_started:"ابدأ الآن",contact_sales:"تواصل مع المبيعات"},nE={title:GP,subtitle:YP,add_product:qP,sections:XP,subscriptions:ZP,seats:JP,promo:eE,pricing:tE},rE={title:"إدارة القضايا",all:"الكل",open:"مفتوح",in_review:"قيد المراجعة",escalated:"تم التصعيد",resolved:"تم الحل",no_cases:"لم يتم العثور على قضايا",matched:"مطابق:",match:"تطابق:"},iE={title:"تقييم المخاطر",entity_placeholder:"معرّف الكيان",country_placeholder:"رمز الدولة (مثل US)",calculate:"حساب المخاطر",composite_score:"{{score}}%",risk_factors:"عوامل المخاطر",score_breakdown:"تفصيل الدرجات"},sE={title:"فحص PEP",entity_placeholder:"معرّف الكيان",screen:"فحص",identified:"تم تحديد PEP",not_pep:"ليس PEP",tier:"المستوى",risk_weight:"وزن المخاطر",position:"المنصب",country:"الدولة"},oE={title:"الإعلام السلبي",category:"الفئة",severity:"الخطورة",entity:"الكيان:",no_hits:"لا توجد نتائج إعلام سلبي غير مراجعة"},aE={title:"مراقبة المعاملات",recent_alerts:"التنبيهات الأخيرة",high_value:"قيمة عالية",rapid_movement:"حركة سريعة",structuring:"تقسيم المبالغ",high_risk_country:"دولة عالية المخاطر",unusual_pattern:"نمط غير اعتيادي",txn_prefix:"معاملة:",no_alerts:"لا توجد تنبيهات معاملات"},lE={title:"الملكية النفعية",organization:"المؤسسة:",total_identified:"إجمالي المحددين",direct:"(مباشر)",indirect:"(غير مباشر)",pep_badge:"PEP"},uE={title:"العناية المعززة",progress:"التقدم",checks:"فحوصات",identity:"التحقق من الهوية",source_of_funds:"مصدر الأموال",source_of_wealth:"مصدر الثروة",pep_screening:"فحص PEP",adverse_media:"فحص الإعلام السلبي",sanctions:"فحص العقوبات",ubo_verification:"التحقق من UBO",country_risk:"تقييم مخاطر الدولة"},cE={match:"تطابق:",status:"الحالة",priority:"الأولوية",confidence:"مستوى الثقة",assigned_to:"مسند إلى",unassigned:"غير مسند",escalate:"تصعيد",false_positive:"تحديد كإيجابي كاذب",comments:"التعليقات"},dE={cases:rE,risk:iE,pep:sE,adverse_media:oE,transactions:aE,ubo:lE,edd:uE,case_detail:cE},fE="الإعدادات",hE="إدارة معايير الفحص",pE={title:"الحدود",default:"حد المطابقة الافتراضي:",auto_dismiss:"الرفض التلقائي أقل من:",auto_escalate:"التصعيد التلقائي أعلى من:"},mE={title:"القوائم"},gE={title:fE,description:hE,thresholds:pE,lists:mE},yE="التحليلات",vE="مقاييس الفحص والتنبيهات",xE={screening_volume:"حجم الفحص",alert_disposition:"توزيع التنبيهات",risk_distribution:"توزيع المخاطر"},wE={title:yE,description:vE,charts:xE},_E="سجل التدقيق",SE="سجل النشاط الكامل",kE={screen_initiated:"بدء الفحص",alert_created:"إنشاء تنبيه",alert_resolved:"حل التنبيه",config_updated:"تحديث الإعدادات",list_imported:"استيراد قائمة",export_generated:"إنشاء تصدير"},CE={title:_E,description:SE,actions:kE},PE="مراقبة النظام",EE="صحة النظام والأداء في الوقت الحقيقي",bE={api_response:"زمن استجابة API",db_connection:"اتصال قاعدة البيانات",cache_hit:"معدل إصابة الذاكرة المؤقتة",last_sync:"آخر مزامنة كاملة"},TE={ongoing:"مهام الفحص الجارية",batch_prefix:"الفحص المجمّع #",complete_suffix:"% مكتمل"},LE={title:PE,description:EE,metrics:bE,tasks:TE},AE="المهام المجمّعة",jE="إدارة عمليات الفحص المجمّعة",RE="مهمة جديدة",$E={title:AE,description:jE,new_job:RE},NE="قوائم العقوبات",DE="الكيانات",ME="الحد",OE="آخر مزامنة",IE={title:NE,entities:DE,threshold:ME,last_synced:OE},VE="مرحباً بك في AMLIQ",FE={title:"اختر دولتك",description:"سنقترح قوائم العقوبات المناسبة لنطاقك القضائي"},zE={title:"القوائم الموصى بها",description:"بناءً على دولتك، نوصي بالفحص مقابل هذه القوائم",loading:"جارٍ تحميل القوائم المقترحة...",threshold:"الحد:"},BE={title:"تعيين حد المطابقة",description:"الأسماء التي تتجاوز مستوى الثقة هذا ستولّد تنبيهات",low:"منخفض (50%)",high:"مرتفع (95%)",current:"الحالي:",hint_more:"تنبيهات أكثر، تطابقات مفقودة أقل",hint_fewer:"تنبيهات أقل، قد تفوت بعض التطابقات",hint_balanced:"متوازن — موصى به لمعظم المؤسسات",start:"بدء الفحص",starting:"جارٍ الإعداد..."},UE={welcome:VE,country:FE,lists:zE,threshold:BE},WE={features:"المميزات",pricing:"الأسعار",docs:"التوثيق",blog:"المدونة",sign_in:"تسجيل الدخول",start_trial:"ابدأ التجربة المجانية"},HE={heading:"فحص مكافحة غسل الأموال الذي لا يفوّت شيئاً.",description:"فحص عقوبات مدعوم بالذكاء الاصطناعي مع مطابقة من 6 طبقات، أكثر من {{listCount}} قائمة، وبحث ضبابي قابل للتخصيص. مصمم للبنوك التي تتطلب عدم تفويت أي تطابق.",cta_trial:"ابدأ التجربة المجانية",cta_demo:"عرض توضيحي",badge_security:"بنية أمان أولاً",badge_encryption:"تشفير شامل",badge_audit:"مسار تدقيق كامل"},KE={subtitle:"مصمم للمؤسسات المالية حول العالم",banks:"البنوك",fintechs:"التكنولوجيا المالية",msbs:"خدمات الأموال",neobanks:"البنوك الرقمية",regulators:"الجهات التنظيمية",payments:"المدفوعات"},QE={title:"مميزات بمستوى المؤسسات",subtitle:"مصمم خصيصاً لفرق الامتثال التي تحتاج إلى عدم تفويت أي تطابق وعدم وجود إيجابيات كاذبة.",ai_pipeline:"خط أنابيب مطابقة بالذكاء الاصطناعي من 6 طبقات",ai_pipeline_desc:"مطابقة ضبابية متقدمة عبر التحويلات الصوتية والتنويعات اللفظية مع التعلم الآلي.",sanctions_lists:"أكثر من {{listCount}} قائمة عقوبات",sanctions_lists_desc:"OFAC والأمم المتحدة والاتحاد الأوروبي والمملكة المتحدة وOpenSanctions مدمجة. محدّثة دائماً بالتعيينات الجديدة.",fuzzy_search:"بحث ضبابي قابل للتخصيص",fuzzy_search_desc:"ضبط الحساسية من المطابقة الصارمة إلى المرنة. صفر سلبيات كاذبة مع الحد الأدنى من الإيجابيات الكاذبة.",latency:"زمن استجابة API أقل من 50 مللي ثانية",latency_desc:"هدف زمن استجابة p99 أقل من 50 مللي ثانية للفحص الفوري على نطاق واسع.",explainable:"قرارات ذكاء اصطناعي قابلة للتفسير",explainable_desc:"كل تطابق يتضمن درجات ثقة وتبريراً ومسارات تدقيق للامتثال.",multilang:"متعدد اللغات (25+)",multilang_desc:"نسخ صوتي تلقائي وتطبيع لفظي عبر اللاتينية والسيريلية والعربية والمزيد."},GE={heading:"شاهده أثناء العمل",hint:"جرّب: محمد الرشيدي، دونالد ترامب، فلاديمير بوتين",placeholder:"اكتب اسماً للفحص...",layer_prefix:"طبقة",match_found:"⚠ تم العثور على تطابق",confidence:"مستوى الثقة",no_matches:"✓ لم يتم العثور على تطابقات",no_matches_sub:"تم الفحص مقابل OFAC والأمم المتحدة والاتحاد الأوروبي و12 قائمة أخرى"},YE={heading:"كيف يقارن AMLIQ",feature:"الميزة",amliq:"AMLIQ",worldcheck:"World-Check",manual:"يدوي"},qE={screened_daily:"طبقات المطابقة",screened_value:"6",uptime:"قوائم العقوبات",uptime_value:"{{listCount}}+",fewer_fp:"هدف وقت التشغيل",fewer_fp_value:"99.9%",latency:"زمن الاستجابة P99",latency_value:"<50ms"},XE={heading:"مصمم لفرق الامتثال",items:[{scenario:"فحص العملاء أثناء التسجيل",description:"يقوم فريق الامتثال بفحص العملاء الجدد أثناء التسجيل باستخدام مطابقة من 6 طبقات لالتقاط التحويلات الصوتية والتنويعات اللفظية عبر قوائم عقوبات متعددة."},{scenario:"مراقبة المعاملات على دفعات",description:"يقوم فريق عمليات مكافحة غسل الأموال بتشغيل فحص دفعات ليلي للأطراف المقابلة في المعاملات، مستفيداً من حدود المطابقة الضبابية القابلة للتخصيص لتحقيق التوازن بين التغطية وحجم عمل المحللين."},{scenario:"فحص المدفوعات في الوقت الفعلي",description:"يدمج معالج المدفوعات واجهة برمجة التطبيقات للفحص في تدفق الدفع الخاص به، باستخدام هدف زمن استجابة أقل من 50 مللي ثانية للفحص دون تأخير معالجة المعاملات."}]},ZE={heading:"الأسئلة الشائعة"},JE={tagline:"فحص مكافحة غسل الأموال بالذكاء الاصطناعي للبنوك التي تتطلب عدم تفويت أي تطابق.",product:"المنتج",features:"المميزات",pricing:"الأسعار",security:"الأمان",compliance:"الامتثال",company:"الشركة",about:"عن الشركة",blog:"المدونة",careers:"الوظائف",contact:"تواصل معنا",legal:"قانوني",privacy:"سياسة الخصوصية",terms:"شروط الخدمة",dpa:"DPA",security_overview:"نظرة عامة على الأمان",copyright:"© 2026 AMLIQ. جميع الحقوق محفوظة."},eb={nav:WE,hero:HE,logo_cloud:KE,features:QE,demo:GE,comparison:YE,stats:qE,use_cases:XE,faq:ZE,footer:JE},tb={title:"شروط الخدمة",last_updated:"آخر تحديث: 29 مارس 2026"},nb={title:"سياسة الخصوصية",last_updated:"آخر تحديث: 29 مارس 2026"},rb={terms:tb,privacy:nb},ib={title:"الإدارة: المستأجرون",search_placeholder:"بحث في المستأجرين..."},sb={screening_history:"سجل الفحص",total_screenings:"إجمالي عمليات الفحص",config_override:"تجاوز الإعدادات",match_threshold:"حد المطابقة (%)",save:"حفظ"},ob={title:"صحة النظام",api_status:"حالة API",database:"قاعدة البيانات",version:"الإصدار"},ab={tenants:ib,tenant_detail:sb,health:ob},lb="إدارة الفريق",ub="البريد الإلكتروني",cb={admin:"مسؤول",analyst:"محلل",auditor:"مدقق",viewer:"مشاهد"},db="لا يوجد أعضاء في الفريق بعد",fb={title:lb,email_placeholder:ub,roles:cb,no_members:db},hb={title:"نظرة عامة على المنصة",total_tenants:"إجمالي المستأجرين",total_screenings:"إجمالي عمليات الفحص"},pb={title:"جميع المستخدمين",search_placeholder:"بحث بالبريد الإلكتروني أو المستأجر...",email:"البريد الإلكتروني",tenant:"المستأجر",role:"الدور"},mb={title:"مفاتيح API",prefix:"البادئة",tenant:"المستأجر",product:"المنتج",rate_limit:"حد المعدل",actions:"الإجراءات",unlimited:"غير محدود"},gb={overview:hb,users:pb,api_keys:mb},yb="حدث خطأ ما",vb="حاول مرة أخرى",xb="غير موجود",wb="غير مصرّح",_b="محظور",Sb="خطأ في الشبكة. يرجى التحقق من اتصالك.",kb="انتهت مهلة الطلب. يرجى المحاولة مرة أخرى.",Cb={generic:yb,try_again:vb,not_found:xb,unauthorized:wb,forbidden:_b,network:Sb,timeout:kb},Pb={common:bC,auth:NC,nav:pP,dashboard:RP,alerts:zP,screening:QP,billing:nE,compliance:dE,config:gE,analytics:wE,audit:CE,monitoring:LE,batch:$E,lists:IE,onboarding:UE,marketing:eb,legal:rb,admin:ab,team:fb,platform:gb,errors:Cb},Eb="common",bb=["he","ar"],Tb={en:xS,he:SC,ar:Pb};function Lb(e){return bb.includes(e)}Le.use(Sm).use(wx).init({resources:Tb,defaultNS:Eb,fallbackLng:"en",supportedLngs:["en","he","ar"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"amliq_lang"}});/**
50
+ * @remix-run/router v1.23.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vi.apply(this,arguments)}var Vt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vt||(Vt={}));const Md="popstate";function Ab(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return _l("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Qs(i)}return Rb(t,n,null,e)}function ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jb(){return Math.random().toString(36).substr(2,8)}function Od(e,t){return{usr:e.state,key:e.key,idx:t}}function _l(e,t,n,r){return n===void 0&&(n=null),vi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_r(t):t,{state:n,key:t&&t.key||r||jb()})}function Qs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _r(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Rb(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Vt.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(vi({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function c(){a=Vt.Pop;let S=d(),v=S==null?null:S-u;u=S,l&&l({action:a,location:w.location,delta:v})}function f(S,v){a=Vt.Push;let p=_l(w.location,S,v);u=d()+1;let g=Od(p,u),_=w.createHref(p);try{o.pushState(g,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(_)}s&&l&&l({action:a,location:w.location,delta:1})}function m(S,v){a=Vt.Replace;let p=_l(w.location,S,v);u=d();let g=Od(p,u),_=w.createHref(p);o.replaceState(g,"",_),s&&l&&l({action:a,location:w.location,delta:0})}function y(S){let v=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof S=="string"?S:Qs(S);return p=p.replace(/ $/,"%20"),ue(v,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,v)}let w={get action(){return a},get location(){return e(i,o)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Md,c),l=S,()=>{i.removeEventListener(Md,c),l=null}},createHref(S){return t(i,S)},createURL:y,encodeLocation(S){let v=y(S);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:m,go(S){return o.go(S)}};return w}var Id;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Id||(Id={}));function $b(e,t,n){return n===void 0&&(n="/"),Nb(e,t,n)}function Nb(e,t,n,r){let i=typeof t=="string"?_r(t):t,s=Du(i.pathname||"/",n);if(s==null)return null;let o=km(e);Db(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=Qb(s);a=Wb(o[l],u)}return a}function km(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Gt([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(ue(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),km(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Bb(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Cm(s.path))i(s,o,l)}),t}function Cm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Cm(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Db(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ub(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Mb=/^:[\w-]+$/,Ob=3,Ib=2,Vb=1,Fb=10,zb=-2,Vd=e=>e==="*";function Bb(e,t){let n=e.split("/"),r=n.length;return n.some(Vd)&&(r+=zb),t&&(r+=Ib),n.filter(i=>!Vd(i)).reduce((i,s)=>i+(Mb.test(s)?Ob:s===""?Vb:Fb),r)}function Ub(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wb(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",c=Hb({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Gt([s,c.pathname]),pathnameBase:Zb(Gt([s,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(s=Gt([s,c.pathnameBase]))}return o}function Hb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Kb(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,c)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let w=a[c]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[c];return m&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function Kb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Qb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Du(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Gb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yb=e=>Gb.test(e);function qb(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?_r(e):e,s;if(n)if(Yb(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Nu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?s=Fd(n.substring(1),"/"):s=Fd(n,t)}else s=t;return{pathname:s,search:Jb(r),hash:eT(i)}}function Fd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ua(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Xb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mu(e,t){let n=Xb(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ou(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=_r(e):(i=vi({},e),ue(!i.pathname||!i.pathname.includes("?"),ua("?","pathname","search",i)),ue(!i.pathname||!i.pathname.includes("#"),ua("#","pathname","hash",i)),ue(!i.search||!i.search.includes("#"),ua("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),c-=1;i.pathname=f.join("/")}a=c>=0?t[c]:"/"}let l=qb(i,a),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Gt=e=>e.join("/").replace(/\/\/+/g,"/"),Zb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Jb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pm=["post","put","patch","delete"];new Set(Pm);const nT=["get",...Pm];new Set(nT);/**
59
+ * React Router v6.30.3
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xi.apply(this,arguments)}const Iu=x.createContext(null),rT=x.createContext(null),rn=x.createContext(null),_o=x.createContext(null),Lt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Em=x.createContext(null);function iT(e,t){let{relative:n}=t===void 0?{}:t;Sr()||ue(!1);let{basename:r,navigator:i}=x.useContext(rn),{hash:s,pathname:o,search:a}=Tm(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Gt([r,o])),i.createHref({pathname:l,search:a,hash:s})}function Sr(){return x.useContext(_o)!=null}function sn(){return Sr()||ue(!1),x.useContext(_o).location}function bm(e){x.useContext(rn).static||x.useLayoutEffect(e)}function $n(){let{isDataRoute:e}=x.useContext(Lt);return e?yT():sT()}function sT(){Sr()||ue(!1);let e=x.useContext(Iu),{basename:t,future:n,navigator:r}=x.useContext(rn),{matches:i}=x.useContext(Lt),{pathname:s}=sn(),o=JSON.stringify(Mu(i,n.v7_relativeSplatPath)),a=x.useRef(!1);return bm(()=>{a.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=Ou(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Gt([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,o,s,e])}function wD(){let{matches:e}=x.useContext(Lt),t=e[e.length-1];return t?t.params:{}}function Tm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(rn),{matches:i}=x.useContext(Lt),{pathname:s}=sn(),o=JSON.stringify(Mu(i,r.v7_relativeSplatPath));return x.useMemo(()=>Ou(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function oT(e,t){return aT(e,t)}function aT(e,t,n,r){Sr()||ue(!1);let{navigator:i}=x.useContext(rn),{matches:s}=x.useContext(Lt),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=sn(),d;if(t){var c;let S=typeof t=="string"?_r(t):t;l==="/"||(c=S.pathname)!=null&&c.startsWith(l)||ue(!1),d=S}else d=u;let f=d.pathname||"/",m=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=$b(e,{pathname:m}),w=fT(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Gt([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Gt([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?x.createElement(_o.Provider,{value:{location:xi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Vt.Pop}},w):w}function lT(){let e=gT(),t=tT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,null)}const uT=x.createElement(lT,null);class cT extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Lt.Provider,{value:this.props.routeContext},x.createElement(Em.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dT(e){let{routeContext:t,match:n,children:r}=e,i=x.useContext(Iu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Lt.Provider,{value:t},r)}function fT(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||ue(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let c=o[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:f,errors:m}=n,y=c.route.loader&&f[c.route.id]===void 0&&(!m||m[c.route.id]===void 0);if(c.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,c,f)=>{let m,y=!1,w=null,S=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,w=c.route.errorElement||uT,l&&(u<0&&f===0?(vT("route-fallback"),y=!0,S=null):u===f&&(y=!0,S=c.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,f+1)),p=()=>{let g;return m?g=w:y?g=S:c.route.Component?g=x.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,x.createElement(dT,{match:c,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?x.createElement(cT,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):p()},null)}var Lm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Lm||{}),Am=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Am||{});function hT(e){let t=x.useContext(Iu);return t||ue(!1),t}function pT(e){let t=x.useContext(rT);return t||ue(!1),t}function mT(e){let t=x.useContext(Lt);return t||ue(!1),t}function jm(e){let t=mT(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function gT(){var e;let t=x.useContext(Em),n=pT(),r=jm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yT(){let{router:e}=hT(Lm.UseNavigateStable),t=jm(Am.UseNavigateStable),n=x.useRef(!1);return bm(()=>{n.current=!0}),x.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xi({fromRouteId:t},s)))},[e,t])}const zd={};function vT(e,t,n){zd[e]||(zd[e]=!0)}function xT(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Bd(e){let{to:t,replace:n,state:r,relative:i}=e;Sr()||ue(!1);let{future:s,static:o}=x.useContext(rn),{matches:a}=x.useContext(Lt),{pathname:l}=sn(),u=$n(),d=Ou(t,Mu(a,s.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(d);return x.useEffect(()=>u(JSON.parse(c),{replace:n,state:r,relative:i}),[u,c,i,n,r]),null}function I(e){ue(!1)}function wT(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vt.Pop,navigator:s,static:o=!1,future:a}=e;Sr()&&ue(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:s,static:o,future:xi({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=_r(r));let{pathname:d="/",search:c="",hash:f="",state:m=null,key:y="default"}=r,w=x.useMemo(()=>{let S=Du(d,l);return S==null?null:{location:{pathname:S,search:c,hash:f,state:m,key:y},navigationType:i}},[l,d,c,f,m,y,i]);return w==null?null:x.createElement(rn.Provider,{value:u},x.createElement(_o.Provider,{children:n,value:w}))}function _T(e){let{children:t,location:n}=e;return oT(Sl(t),n)}new Promise(()=>{});function Sl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let s=[...t,i];if(r.type===x.Fragment){n.push.apply(n,Sl(r.props.children,s));return}r.type!==I&&ue(!1),!r.props.index||!r.props.children||ue(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Sl(r.props.children,s)),n.push(o)}),n}/**
68
+ * React Router DOM v6.30.3
69
+ *
70
+ * Copyright (c) Remix Software Inc.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE.md file in the root directory of this source tree.
74
+ *
75
+ * @license MIT
76
+ */function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}function ST(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function CT(e,t){return e.button===0&&(!t||t==="_self")&&!kT(e)}function Cl(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function PT(e,t){let n=Cl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}const ET=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],bT="6";try{window.__reactRouterVersion=bT}catch{}const TT="startTransition",Ud=Ry[TT];function LT(e){let{basename:t,children:n,future:r,window:i}=e,s=x.useRef();s.current==null&&(s.current=Ab({window:i,v5Compat:!0}));let o=s.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=x.useCallback(c=>{u&&Ud?Ud(()=>l(c)):l(c)},[l,u]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>xT(r),[r]),x.createElement(wT,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const AT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=x.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:c}=t,f=ST(t,ET),{basename:m}=x.useContext(rn),y,w=!1;if(typeof u=="string"&&jT.test(u)&&(y=u,AT))try{let g=new URL(window.location.href),_=u.startsWith("//")?new URL(g.protocol+u):new URL(u),k=Du(_.pathname,m);_.origin===g.origin&&k!=null?u=k+_.search+_.hash:w=!0}catch{}let S=iT(u,{relative:i}),v=RT(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:c});function p(g){r&&r(g),g.defaultPrevented||v(g)}return x.createElement("a",kl({},f,{href:y||S,onClick:w||s?r:p,ref:n,target:l}))});var Wd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wd||(Wd={}));var Hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hd||(Hd={}));function RT(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=$n(),u=sn(),d=Tm(e,{relative:o});return x.useCallback(c=>{if(CT(c,n)){c.preventDefault();let f=r!==void 0?r:Qs(u)===Qs(d);l(e,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,l,d,r,i,n,e,s,o,a])}function _D(e){let t=x.useRef(Cl(e)),n=x.useRef(!1),r=sn(),i=x.useMemo(()=>PT(r.search,n.current?null:t.current),[r.search]),s=$n(),o=x.useCallback((a,l)=>{const u=Cl(typeof a=="function"?a(i):a);n.current=!0,s("?"+u,l)},[s,i]);return[i,o]}function $T(){const{i18n:e}=$u(),t=Lb(e.language)?"rtl":"ltr";return x.useEffect(()=>{document.documentElement.dir=t,document.documentElement.lang=e.language},[t,e.language]),t}const NT="https://api.amliq.finance";class Kd extends Error{constructor(t,n,r){super(n),this.code=t,this.status=r,this.name="ApiError"}}function DT(){const e=localStorage.getItem("amliq_token");return e?{Authorization:`Bearer ${e}`}:{}}async function Zi(e,t={}){const n=`${NT}/api/v1${e}`,r={"Content-Type":"application/json",...DT(),...t.headers},i=await fetch(n,{...t,headers:r});if(i.status===401)throw localStorage.removeItem("amliq_token"),e.endsWith("/auth/me")||(window.location.href="/login"),new Kd("UNAUTHORIZED","Session expired",401);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Kd(o.code||"ERROR",o.message||i.statusText,i.status)}const s=await i.json();return s.data!=null?s.data:s}const ys={get:e=>Zi(e),post:(e,t)=>Zi(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>Zi(e,{method:"PUT",body:JSON.stringify(t)}),del:e=>Zi(e,{method:"DELETE"})},Ji={login:e=>ys.post("/auth/login",e),signup:e=>ys.post("/auth/signup",e),me:()=>ys.get("/auth/me")},Rm=x.createContext(null);function So(){const e=x.useContext(Rm);if(!e)throw new Error("useAuth must be inside AuthProvider");return e}function MT({children:e}){const[t,n]=x.useState(null),[r,i]=x.useState(!0);x.useEffect(()=>{if(!localStorage.getItem("amliq_token")){i(!1);return}Ji.me().then(n).catch(()=>localStorage.removeItem("amliq_token")).finally(()=>i(!1))},[]);const s=x.useCallback(async(d,c)=>{const f=await Ji.login({email:d,password:c});localStorage.setItem("amliq_token",f.token),n(f.user)},[]),o=x.useCallback(async d=>{localStorage.setItem("amliq_token",d);const c=await Ji.me();n(c)},[]),a=x.useCallback(async(d,c,f,m)=>{const y=await Ji.signup({email:d,password:c,org_name:f,country:m});localStorage.setItem("amliq_token",y.token),n(y.user)},[]),l=x.useCallback(()=>{localStorage.removeItem("amliq_token"),n(null),window.location.href="/login"},[]),u={user:t,loading:r,login:s,loginWithToken:o,signup:a,logout:l,isAuthenticated:!!t};return h.jsx(Rm.Provider,{value:u,children:e})}/**
77
+ * @license lucide-react v0.294.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */var OT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
82
+ * @license lucide-react v0.294.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const IT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),U=(e,t)=>{const n=x.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,...u},d)=>x.createElement("svg",{ref:d,...OT,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${IT(e)}`,a].join(" "),...u},[...t.map(([c,f])=>x.createElement(c,f)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
87
+ * @license lucide-react v0.294.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const $m=U("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
92
+ * @license lucide-react v0.294.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Nm=U("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
97
+ * @license lucide-react v0.294.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const VT=U("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
102
+ * @license lucide-react v0.294.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const FT=U("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
107
+ * @license lucide-react v0.294.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const zT=U("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]);/**
112
+ * @license lucide-react v0.294.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const BT=U("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
117
+ * @license lucide-react v0.294.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const UT=U("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
122
+ * @license lucide-react v0.294.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const WT=U("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
127
+ * @license lucide-react v0.294.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const HT=U("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/**
132
+ * @license lucide-react v0.294.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Dm=U("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
137
+ * @license lucide-react v0.294.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const KT=U("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
142
+ * @license lucide-react v0.294.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const QT=U("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
147
+ * @license lucide-react v0.294.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const GT=U("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
152
+ * @license lucide-react v0.294.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const YT=U("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
157
+ * @license lucide-react v0.294.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const Mm=U("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
162
+ * @license lucide-react v0.294.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const qT=U("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
167
+ * @license lucide-react v0.294.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const XT=U("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
172
+ * @license lucide-react v0.294.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const ZT=U("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
177
+ * @license lucide-react v0.294.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const JT=U("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
182
+ * @license lucide-react v0.294.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const eL=U("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
187
+ * @license lucide-react v0.294.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const tL=U("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
192
+ * @license lucide-react v0.294.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const nL=U("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
197
+ * @license lucide-react v0.294.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const Om=U("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
202
+ * @license lucide-react v0.294.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const rL=U("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
207
+ * @license lucide-react v0.294.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const iL=U("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
212
+ * @license lucide-react v0.294.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const Vu=U("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
217
+ * @license lucide-react v0.294.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const Im=U("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
222
+ * @license lucide-react v0.294.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const sL=U("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
227
+ * @license lucide-react v0.294.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const oL=U("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
232
+ * @license lucide-react v0.294.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const aL=U("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
237
+ * @license lucide-react v0.294.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const lL=U("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
242
+ * @license lucide-react v0.294.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const uL=U("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
247
+ * @license lucide-react v0.294.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const cL=U("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
252
+ * @license lucide-react v0.294.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const Vm=U("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
257
+ * @license lucide-react v0.294.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const dL=U("Wallet",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);/**
262
+ * @license lucide-react v0.294.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const fL=U("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/**
267
+ * @license lucide-react v0.294.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const Fu=U("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
272
+ * @license lucide-react v0.294.0 - ISC
273
+ *
274
+ * This source code is licensed under the ISC license.
275
+ * See the LICENSE file in the root directory of this source tree.
276
+ */const hL=U("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Fm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Fm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fm(e))&&(r&&(r+=" "),r+=t);return r}const pL=x.createContext({toast:()=>{}});let mL=0;const gL={success:BT,error:Nm,info:XT},Qd={success:"bg-green-500",error:"bg-red-500",info:"bg-blue-500"},yL={success:"text-green-400",error:"text-red-400",info:"text-blue-400"};function vL({children:e}){const[t,n]=x.useState([]),r=x.useCallback((s,o="info")=>{const a=mL++;n(l=>[...l,{id:a,message:s,type:o}]),setTimeout(()=>n(l=>l.filter(u=>u.id!==a)),4e3)},[]),i=s=>n(o=>o.filter(a=>a.id!==s));return h.jsxs(pL.Provider,{value:{toast:r},children:[e,h.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm","aria-live":"polite",children:t.map(s=>{const o=gL[s.type];return h.jsxs("div",{role:"alert",className:`flex items-start gap-3 px-4 py-3 rounded-xl
277
+ bg-[rgba(18,18,26,0.9)] backdrop-blur-xl border border-white/[0.08]
278
+ shadow-[0_8px_30px_rgba(0,0,0,0.4)] text-sm
279
+ animate-[slideInRight_0.3s_ease-out]`,style:{overflow:"hidden",position:"relative"},children:[h.jsx("div",{className:kn("absolute left-0 top-0 bottom-0 w-[3px] rounded-l-xl",Qd[s.type])}),h.jsx("div",{className:kn("w-7 h-7 rounded-lg flex items-center justify-center shrink-0 mt-0.5",`${Qd[s.type]}/10`),children:h.jsx(o,{className:kn("w-4 h-4",yL[s.type])})}),h.jsx("p",{className:"text-white/90 flex-1 leading-relaxed",children:s.message}),h.jsx("button",{type:"button",onClick:()=>i(s.id),className:"text-white/30 hover:text-white/60 transition-colors cursor-pointer mt-0.5",children:h.jsx(Fu,{className:"w-3.5 h-3.5"})})]},s.id)})})]})}const xL=["font-semibold rounded-apple-md cursor-pointer transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-apple-blue"].join(" "),wL={primary:"bg-gradient-to-br from-[#0A84FF] to-[#0066CC] text-white hover:shadow-[0_0_20px_rgba(10,132,255,0.3)]",secondary:"bg-apple-bg-tertiary text-white border border-white/[0.08] hover:bg-white/[0.06] hover:border-white/[0.12]",destructive:"bg-gradient-to-br from-[#FF453A] to-[#CC362E] text-white hover:shadow-[0_0_20px_rgba(255,69,58,0.3)]"},_L={sm:"px-md py-sm text-sf-caption",md:"px-lg py-md text-sf-body",lg:"px-xl py-lg text-sf-headline"};function SL({children:e,variant:t="primary",size:n="md",disabled:r,onClick:i,className:s,type:o="button"}){return h.jsx("button",{type:o,disabled:r,onClick:i,className:kn(xL,wL[t],_L[n],s),children:e})}class kL extends x.Component{constructor(){super(...arguments);Ro(this,"state",{hasError:!1,error:null});Ro(this,"handleReset",()=>{this.setState({hasError:!1,error:null})})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("ErrorBoundary caught:",n,r)}render(){var n;return this.state.hasError?this.props.fallback?this.props.fallback:h.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-center",children:[h.jsx("h2",{className:"sf-title mb-md",children:"Something went wrong"}),h.jsx("p",{className:"sf-caption mb-lg",children:(n=this.state.error)==null?void 0:n.message}),h.jsx(SL,{variant:"primary",onClick:this.handleReset,children:"Try Again"})]}):this.props.children}}function zm({size:e="md"}){const t={sm:"w-4 h-4",md:"w-8 h-8",lg:"w-12 h-12"};return h.jsx("div",{role:"status","aria-label":"Loading",className:`${t[e]} rounded-full border-2 border-apple-blue border-t-transparent spinner`})}function Pl({children:e,requiredRole:t}){const{isAuthenticated:n,loading:r,user:i}=So();return r?h.jsx("div",{className:"flex items-center justify-center h-screen",children:h.jsx(zm,{})}):n?t&&(i==null?void 0:i.role)!==t&&(i==null?void 0:i.role)!=="admin"?h.jsx(Bd,{to:"/dashboard",replace:!0}):h.jsx(h.Fragment,{children:e}):h.jsx(Bd,{to:"/login",replace:!0})}function Bm({name:e,size:t="md",className:n}){const r=e.split(" ").map(s=>s[0]).join("").toUpperCase().slice(0,2),i={sm:"w-6 h-6 text-xs",md:"w-8 h-8 text-sm",lg:"w-10 h-10 text-base"};return h.jsx("div",{className:kn("rounded-full bg-apple-blue flex items-center justify-center font-semibold text-white",i[t],n),children:r})}const Gd={viewer:0,auditor:1,analyst:2,admin:3,superadmin:4};function Gs(e,t){return t?(Gd[e]??0)>=(Gd[t]??99):!0}const CL={title:"Main",items:[{icon:JT,label:"Dashboard",path:"/dashboard"},{icon:Nm,label:"Alerts",path:"/alerts"},{icon:Vu,label:"Screen",path:"/screen"},{icon:GT,label:"Monitoring",path:"/monitoring"},{icon:rL,label:"Batch Jobs",path:"/batch"}]},PL={title:"Compliance",items:[{icon:zT,label:"Cases",path:"/compliance/cases"},{icon:aL,label:"Risk Assessment",path:"/compliance/risk"},{icon:cL,label:"PEP Screening",path:"/compliance/pep"},{icon:Mm,label:"Adverse Media",path:"/compliance/media"},{icon:hL,label:"Transactions",path:"/compliance/txn"},{icon:dL,label:"Crypto Screening",path:"/compliance/crypto"}]},EL={title:"System",items:[{icon:VT,label:"Analytics",path:"/analytics"},{icon:YT,label:"Audit Log",path:"/audit",minRole:"auditor"},{icon:tL,label:"Sanctions Lists",path:"/lists"},{icon:lL,label:"Marketplace",path:"/lists/marketplace"},{icon:ZT,label:"API Keys",path:"/keys",minRole:"admin"},{icon:fL,label:"Webhooks",path:"/webhooks",minRole:"admin"},{icon:Dm,label:"Task History",path:"/tasks"},{icon:sL,label:"Configuration",path:"/config",minRole:"admin"},{icon:KT,label:"Billing",path:"/billing",minRole:"admin"},{icon:Vm,label:"Team",path:"/team",minRole:"admin"}]},bL={title:"Admin",minRole:"admin",items:[{icon:Im,label:"Tenants",path:"/admin/tenants"},{icon:$m,label:"System Health",path:"/admin/health"},{icon:QT,label:"Data Sources",path:"/admin/data-sources"},{icon:iL,label:"Operations",path:"/admin/operations"},{icon:Dm,label:"Scheduled Tasks",path:"/admin/tasks"}]},TL={title:"Platform",minRole:"admin",items:[{icon:Im,label:"Overview",path:"/platform/overview"},{icon:Vm,label:"Users",path:"/platform/users"},{icon:$m,label:"API Keys",path:"/platform/keys"}]},Um=[CL,PL,EL,bL,TL];function LL({section:e,userRole:t,collapsed:n,onNavigate:r}){const{t:i}=$u("nav"),s=sn();if(!Gs(t,e.minRole))return null;const o=e.items.filter(l=>Gs(t,l.minRole));if(o.length===0)return null;const a=l=>s.pathname===l||l!=="/dashboard"&&s.pathname.startsWith(l);return h.jsxs("div",{className:"mb-lg",children:[!n&&h.jsx("p",{className:"text-[10px] uppercase tracking-[0.12em] text-apple-label-tertiary px-lg mb-sm font-medium",children:i(e.title.toLowerCase())}),h.jsx("div",{className:"space-y-px",children:o.map(({icon:l,label:u,path:d})=>h.jsxs(Sn,{to:d,onClick:r,title:n?u:void 0,className:kn("flex items-center gap-md rounded-apple-md transition-all cursor-pointer relative",n?"justify-center px-sm py-md":"px-lg py-sm",a(d)?"bg-white/5 text-white":"text-apple-label-secondary hover:bg-white/5 hover:text-white"),children:[a(d)&&h.jsx("span",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-4 bg-apple-blue rounded-r-full"}),h.jsx(l,{className:"w-4 h-4 flex-shrink-0"}),!n&&h.jsx("span",{className:"text-[14px]",children:i(u.toLowerCase().replace(/ /g,"_"))})]},d))})]})}function AL({isOpen:e,onClose:t}){var u;const{user:n}=So(),[r,i]=x.useState(!1),s=((u=n==null?void 0:n.email)==null?void 0:u.split("@")[0])??"User",o=(n==null?void 0:n.email)??"Compliance Officer",a=(n==null?void 0:n.role)??"viewer";x.useEffect(()=>{const d=c=>{c.key==="Escape"&&e&&t()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e,t]);const l=r?"w-16":"w-64";return h.jsxs(h.Fragment,{children:[e&&h.jsx("div",{className:"fixed inset-0 bg-black/60 md:hidden z-40",onClick:t,"aria-hidden":"true"}),h.jsxs("div",{className:kn("fixed md:relative h-screen flex flex-col transition-all duration-200 z-50",l,"bg-gradient-to-b from-[#0E0E16] to-[#08080C]","backdrop-blur-[24px] border-r border-white/[0.06]","md:translate-x-0",e?"translate-x-0":"-translate-x-full"),children:[h.jsx(jL,{collapsed:r,onClose:t,onToggle:()=>i(!r)}),h.jsx("div",{className:"mx-3 mb-sm h-px bg-gradient-to-r from-transparent via-white/[0.06] to-transparent"}),h.jsx("nav",{className:"flex-1 px-sm py-sm overflow-y-auto","aria-label":"Main navigation",children:Um.map(d=>h.jsx(LL,{section:d,userRole:a,collapsed:r,onNavigate:t},d.title))}),!r&&h.jsx("div",{className:"p-lg border-t border-white/[0.04]",children:h.jsxs(Sn,{to:"/config",className:"flex items-center gap-md hover:bg-white/[0.04] rounded-apple-md p-sm transition-colors",children:[h.jsx(Bm,{name:s,size:"md"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-[14px] font-medium text-white truncate",children:s}),h.jsx("p",{className:"text-[11px] text-apple-label-tertiary truncate",children:o})]})]})})]})]})}function jL({collapsed:e,onClose:t,onToggle:n}){return h.jsxs("div",{className:"relative p-md flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2 relative",children:[h.jsx("img",{src:"/logo.svg",alt:"AMLIQ",className:"h-7 w-7"}),!e&&h.jsx("span",{className:"text-white font-bold text-sm",children:"AMLIQ"})]}),h.jsx("button",{onClick:t,"aria-label":"Close menu",className:"md:hidden p-sm hover:bg-white/[0.08] rounded-apple-md cursor-pointer",children:h.jsx(Fu,{className:"w-5 h-5"})}),h.jsx("button",{onClick:n,"aria-label":e?"Expand":"Collapse",className:"hidden md:block p-sm hover:bg-white/[0.08] rounded-apple-md cursor-pointer",children:e?h.jsx(HT,{className:"w-4 h-4"}):h.jsx(WT,{className:"w-4 h-4"})})]})}const RL=[{code:"en",label:"English",flag:"🇺🇸"},{code:"he",label:"עברית",flag:"🇮🇱"},{code:"ar",label:"العربية",flag:"🇸🇦"}];function $L(){const{i18n:e}=$u(),t=n=>{e.changeLanguage(n.target.value)};return h.jsxs("div",{className:"flex items-center gap-xs",children:[h.jsx(Mm,{className:"w-4 h-4 text-apple-label-secondary"}),h.jsx("select",{value:e.language,onChange:t,className:`bg-transparent text-sm text-apple-label-secondary
280
+ border-none cursor-pointer appearance-none pr-4
281
+ focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-apple-blue`,"aria-label":"Select language",children:RL.map(({code:n,label:r,flag:i})=>h.jsxs("option",{value:n,children:[i," ",r]},n))})]})}function NL(){const[e,t]=x.useState(!1),[n,r]=x.useState([]),[i,s]=x.useState(0),o=x.useRef(null);x.useEffect(()=>{a();const l=setInterval(a,3e4);return()=>clearInterval(l)},[]),x.useEffect(()=>{const l=u=>{o.current&&!o.current.contains(u.target)&&t(!1)};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[]);async function a(){try{const l=await ys.get("/audit?limit=10");r(l.entries??[]),s(l.total>0?Math.min(l.total,9):0)}catch{}}return h.jsxs("div",{ref:o,className:"relative",children:[h.jsxs("button",{onClick:()=>{t(!e),s(0)},className:"relative p-sm hover:bg-white/[0.06] rounded-apple-md transition-colors cursor-pointer",children:[h.jsx(FT,{className:"w-5 h-5 text-apple-label-secondary"}),i>0&&h.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-4 h-4 bg-apple-red rounded-full text-[10px] text-white flex items-center justify-center font-bold",children:i})]}),e&&h.jsxs("div",{className:"absolute right-0 top-10 w-80 bg-[#1a1a24] border border-white/10 rounded-apple-lg shadow-2xl overflow-hidden z-50",children:[h.jsx("div",{className:"flex border-b border-white/[0.06]",children:h.jsx(DL,{label:"Notifications",active:!0})}),h.jsxs("div",{className:"max-h-72 overflow-y-auto",children:[n.length===0&&h.jsx("p",{className:"p-lg text-sm text-apple-label-tertiary text-center",children:"No notifications"}),n.map(l=>h.jsx(ML,{item:l},l.id))]})]})]})}function DL({label:e,active:t}){return h.jsx("button",{className:`flex-1 py-md text-sm font-medium ${t?"text-white border-b-2 border-apple-blue":"text-apple-label-tertiary"}`,children:e})}function ML({item:e}){const t=new Date(e.created_at).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});return h.jsxs("div",{className:"px-lg py-md border-b border-white/[0.04] hover:bg-white/[0.03]",children:[h.jsx("p",{className:"text-sm text-white",children:e.action}),h.jsx("p",{className:"text-[11px] text-apple-label-tertiary mt-xs",children:t})]})}function OL({open:e,onClose:t}){const[n,r]=x.useState(""),i=x.useRef(null),s=$n(),{user:o}=So(),a=(o==null?void 0:o.role)??"viewer";if(x.useEffect(()=>{e&&(r(""),setTimeout(()=>{var c;return(c=i.current)==null?void 0:c.focus()},50))},[e]),x.useEffect(()=>{const c=f=>{(f.metaKey||f.ctrlKey)&&f.key==="k"&&(f.preventDefault(),t()),f.key==="Escape"&&e&&t()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),!e)return null;const l=Um.filter(c=>Gs(a,c.minRole)).flatMap(c=>c.items.filter(f=>Gs(a,f.minRole))),u=n?l.filter(c=>c.label.toLowerCase().includes(n.toLowerCase())):l,d=c=>{s(c),t()};return h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[20vh]",onClick:t,children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsxs("div",{className:"relative w-full max-w-lg bg-[#1a1a24] border border-white/10 rounded-apple-lg shadow-2xl overflow-hidden",onClick:c=>c.stopPropagation(),children:[h.jsxs("div",{className:"flex items-center gap-md px-lg border-b border-white/[0.06]",children:[h.jsx(Vu,{className:"w-4 h-4 text-apple-label-tertiary"}),h.jsx("input",{ref:i,value:n,onChange:c=>r(c.target.value),placeholder:"Search pages...",className:"flex-1 py-lg bg-transparent text-white text-sm outline-none"}),h.jsx("kbd",{className:"text-[10px] text-apple-label-tertiary bg-white/5 px-1.5 py-0.5 rounded",children:"ESC"})]}),h.jsxs("div",{className:"max-h-64 overflow-y-auto py-sm",children:[u.map(({icon:c,label:f,path:m})=>h.jsxs("button",{onClick:()=>d(m),className:"w-full flex items-center gap-md px-lg py-md hover:bg-white/5 text-left cursor-pointer transition-colors",children:[h.jsx(c,{className:"w-4 h-4 text-apple-label-secondary"}),h.jsx("span",{className:"text-sm text-white",children:f}),h.jsx("span",{className:"ml-auto text-[11px] text-apple-label-tertiary",children:m})]},m)),u.length===0&&h.jsx("p",{className:"px-lg py-md text-sm text-apple-label-tertiary",children:"No results"})]})]})]})}function IL({onMenuClick:e}){var a;const[t,n]=x.useState(!1),{user:r,logout:i}=So(),s=$n(),o=((a=r==null?void 0:r.email)==null?void 0:a.split("@")[0])??"User";return x.useEffect(()=>{const l=u=>{(u.metaKey||u.ctrlKey)&&u.key==="k"&&(u.preventDefault(),n(d=>!d))};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[]),h.jsxs(h.Fragment,{children:[h.jsx("header",{className:"sticky top-0 z-40 px-lg py-md bg-[rgba(10,10,15,0.8)] backdrop-blur-[24px] backdrop-saturate-[180%] border-b border-white/[0.06]",children:h.jsxs("div",{className:"flex items-center gap-lg",children:[h.jsx("button",{onClick:e,"aria-label":"Toggle menu",className:"md:hidden p-sm hover:bg-white/[0.08] rounded-apple-md cursor-pointer",children:h.jsx(Om,{className:"w-5 h-5"})}),h.jsxs("button",{onClick:()=>n(!0),className:"hidden md:flex items-center gap-md px-lg py-sm bg-white/[0.04] hover:bg-white/[0.08] rounded-apple-md transition-colors cursor-pointer max-w-xs flex-1",children:[h.jsx(Vu,{className:"w-4 h-4 text-apple-label-tertiary"}),h.jsx("span",{className:"text-sm text-apple-label-tertiary",children:"Search..."}),h.jsx("kbd",{className:"ml-auto text-[10px] text-apple-label-tertiary bg-white/5 px-1.5 py-0.5 rounded",children:"⌘K"})]}),h.jsxs("div",{className:"flex items-center gap-sm ml-auto",children:[h.jsx($L,{}),h.jsx(NL,{}),h.jsxs("div",{className:"flex items-center gap-md pl-md border-l border-white/[0.06]",children:[h.jsx(Bm,{name:o,size:"sm"}),h.jsx("button",{onClick:()=>{i(),s("/login")},"aria-label":"Logout",className:"p-sm hover:bg-white/[0.08] rounded-apple-md cursor-pointer",children:h.jsx(nL,{className:"w-4 h-4 text-apple-label-tertiary"})})]})]})]})}),h.jsx(OL,{open:t,onClose:()=>n(!1)})]})}const VL={dashboard:"Dashboard",alerts:"Alerts",screen:"Screen",monitoring:"Monitoring",batch:"Batch Jobs",compliance:"Compliance",cases:"Cases",risk:"Risk",pep:"PEP",media:"Adverse Media",txn:"Transactions",crypto:"Crypto",analytics:"Analytics",audit:"Audit Log",lists:"Lists",marketplace:"Marketplace",config:"Configuration",billing:"Billing",team:"Team",admin:"Admin",tenants:"Tenants",health:"Health",keys:"API Keys",webhooks:"Webhooks",platform:"Platform",users:"Users",overview:"Overview","data-sources":"Data Sources","txn-screen":"Txn Screen"};function FL(){const t=sn().pathname.split("/").filter(Boolean);return t.length<=1?null:h.jsxs("nav",{"aria-label":"Breadcrumb",className:"flex items-center gap-xs px-lg py-sm text-[12px]",children:[h.jsx(Sn,{to:"/dashboard",className:"text-apple-label-tertiary hover:text-white transition-colors",children:h.jsx(qT,{className:"w-3.5 h-3.5"})}),t.map((n,r)=>{const i="/"+t.slice(0,r+1).join("/"),s=r===t.length-1,o=VL[n]||n;return h.jsxs(Ci.Fragment,{children:[h.jsx(UT,{className:"w-3 h-3 text-white/20"}),s?h.jsx("span",{className:"text-white/60",children:o}):h.jsx(Sn,{to:i,className:"text-apple-label-tertiary hover:text-white transition-colors",children:o})]},i)})]})}function zL(e){const[t,n]=x.useState(!1);return x.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const i=()=>n(r.matches);return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[t,e]),t}function BL(){return zL("(max-width: 639px)")}function UL(){const e=BL(),[t,n]=x.useState(!e);return x.useEffect(()=>{n(!e)},[e]),{isOpen:t,toggle:()=>n(r=>!r),close:()=>n(!1),open:()=>n(!0)}}function WL({children:e}){const{isOpen:t,toggle:n,close:r,open:i}=UL(),s=x.useRef(0),o=x.useCallback(l=>{s.current=l.touches[0].clientX},[]),a=x.useCallback(l=>{const u=l.changedTouches[0].clientX-s.current;u>80&&s.current<40&&i(),u<-80&&t&&r()},[t,i,r]);return h.jsxs("div",{className:"flex h-screen bg-apple-bg",onTouchStart:o,onTouchEnd:a,children:[h.jsx("a",{href:"#main-content",className:"skip-link",children:"Skip to main content"}),h.jsx(AL,{isOpen:t,onClose:r}),h.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[h.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40",style:{background:"radial-gradient(ellipse 60% 40% at 50% 0%, rgba(10,132,255,0.04) 0%, transparent 70%)"},"aria-hidden":"true"}),h.jsx(IL,{onMenuClick:n}),h.jsx(FL,{}),h.jsx("main",{id:"main-content",className:"flex-1 overflow-y-auto relative",tabIndex:-1,children:h.jsx("div",{className:"p-lg md:p-xxl max-w-7xl mx-auto min-h-[60vh]",children:e})})]})]})}const Wm=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ko=x.createContext({}),Co=x.createContext(null),Po=typeof document<"u",zu=Po?x.useLayoutEffect:x.useEffect,Hm=x.createContext({strict:!1}),Bu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),HL="framerAppearId",Km="data-"+Bu(HL);function KL(e,t,n,r){const{visualElement:i}=x.useContext(ko),s=x.useContext(Hm),o=x.useContext(Co),a=x.useContext(Wm).reducedMotion,l=x.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;x.useInsertionEffect(()=>{u&&u.update(n,o)});const d=x.useRef(!!(n[Km]&&!window.HandoffComplete));return zu(()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function Xn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QL(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xn(n)&&(n.current=r))},[t])}function wi(e){return typeof e=="string"||Array.isArray(e)}function Eo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...Uu];function bo(e){return Eo(e.animate)||Wu.some(t=>wi(e[t]))}function Qm(e){return!!(bo(e)||e.variants)}function GL(e,t){if(bo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wi(n)?n:void 0,animate:wi(r)?r:void 0}}return e.inherit!==!1?t:{}}function YL(e){const{initial:t,animate:n}=GL(e,x.useContext(ko));return x.useMemo(()=>({initial:t,animate:n}),[Yd(t),Yd(n)])}function Yd(e){return Array.isArray(e)?e.join(" "):e}const qd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_i={};for(const e in qd)_i[e]={isEnabled:t=>qd[e].some(n=>!!t[n])};function qL(e){for(const t in e)_i[t]={..._i[t],...e[t]}}const Hu=x.createContext({}),Gm=x.createContext({}),XL=Symbol.for("motionComponentSymbol");function ZL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&qL(e);function s(a,l){let u;const d={...x.useContext(Wm),...a,layoutId:JL(a)},{isStatic:c}=d,f=YL(a),m=r(a,c);if(!c&&Po){f.visualElement=KL(i,m,d,t);const y=x.useContext(Gm),w=x.useContext(Hm).strict;f.visualElement&&(u=f.visualElement.loadFeatures(d,w,e,y))}return x.createElement(ko.Provider,{value:f},u&&f.visualElement?x.createElement(u,{visualElement:f.visualElement,...d}):null,n(i,a,QL(m,f.visualElement,l),m,c,f.visualElement))}const o=x.forwardRef(s);return o[XL]=i,o}function JL({layoutId:e}){const t=x.useContext(Hu).id;return t&&e!==void 0?t+"-"+e:e}function eA(e){function t(r,i={}){return ZL(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const tA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ku(e){return typeof e!="string"||e.includes("-")?!1:!!(tA.indexOf(e)>-1||/[A-Z]/.test(e))}const Ys={};function nA(e){Object.assign(Ys,e)}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(Li);function Ym(e,{layout:t,layoutId:n}){return Nn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ys[e]||e==="opacity")}const De=e=>!!(e&&e.getVelocity),rA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iA=Li.length;function sA(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;o<iA;o++){const a=Li[o];if(e[a]!==void 0){const l=rA[a]||a;s+=`${l}(${e[a]}) `}}return t&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,r?"":s):n&&r&&(s="none"),s}const qm=e=>t=>typeof t=="string"&&t.startsWith(e),Xm=qm("--"),El=qm("var(--"),oA=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,aA=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zt=(e,t,n)=>Math.min(Math.max(n,e),t),Dn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...Dn,transform:e=>Zt(0,1,e)},es={...Dn,default:1},Xr=e=>Math.round(e*1e5)/1e5,To=/(-)?([\d]*\.?[\d])+/g,Zm=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lA=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ai(e){return typeof e=="string"}const ji=e=>({test:t=>Ai(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jt=ji("deg"),ht=ji("%"),M=ji("px"),uA=ji("vh"),cA=ji("vw"),Xd={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},Zd={...Dn,transform:Math.round},Jm={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:es,scaleX:es,scaleY:es,scaleZ:es,skew:jt,skewX:jt,skewY:jt,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:qr,originX:Xd,originY:Xd,originZ:M,zIndex:Zd,fillOpacity:qr,strokeOpacity:qr,numOctaves:Zd};function Qu(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const c in t){const f=t[c];if(Xm(c)){s[c]=f;continue}const m=Jm[c],y=aA(f,m);if(Nn.has(c)){if(l=!0,o[c]=y,!d)continue;f!==(m.default||0)&&(d=!1)}else c.startsWith("origin")?(u=!0,a[c]=y):i[c]=y}if(t.transform||(l||r?i.transform=sA(e.transform,n,d,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:f="50%",originZ:m=0}=a;i.transformOrigin=`${c} ${f} ${m}`}}const Gu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eg(e,t,n){for(const r in t)!De(t[r])&&!Ym(r,n)&&(e[r]=t[r])}function dA({transformTemplate:e},t,n){return x.useMemo(()=>{const r=Gu();return Qu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function fA(e,t,n){const r=e.style||{},i={};return eg(i,r,e),Object.assign(i,dA(e,t,n)),e.transformValues?e.transformValues(i):i}function hA(e,t,n){const r={},i=fA(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const pA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pA.has(e)}let tg=e=>!qs(e);function mA(e){e&&(tg=t=>t.startsWith("on")?!qs(t):e(t))}try{mA(require("@emotion/is-prop-valid").default)}catch{}function gA(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(tg(i)||n===!0&&qs(i)||!t&&!qs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Jd(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function yA(e,t,n){const r=Jd(t,e.x,e.width),i=Jd(n,e.y,e.height);return`${r} ${i}`}const vA={offset:"stroke-dashoffset",array:"stroke-dasharray"},xA={offset:"strokeDashoffset",array:"strokeDasharray"};function wA(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?vA:xA;e[s.offset]=M.transform(-r);const o=M.transform(t),a=M.transform(n);e[s.array]=`${o} ${a}`}function Yu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,c,f){if(Qu(e,u,d,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:w}=e;m.transform&&(w&&(y.transform=m.transform),delete m.transform),w&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=yA(w,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),o!==void 0&&wA(m,o,a,l,!1)}const ng=()=>({...Gu(),attrs:{}}),qu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _A(e,t,n,r){const i=x.useMemo(()=>{const s=ng();return Yu(s,t,{enableHardwareAcceleration:!1},qu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};eg(s,e.style,e),i.style={...s,...i.style}}return i}function SA(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Ku(n)?_A:hA)(r,s,o,n),d={...gA(r,typeof n=="string",e),...l,ref:i},{children:c}=r,f=x.useMemo(()=>De(c)?c.get():c,[c]);return x.createElement(n,{...d,children:f})}}function rg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const ig=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sg(e,t,n,r){rg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ig.has(i)?i:Bu(i),t.attrs[i])}function Xu(e,t){const{style:n}=e,r={};for(const i in n)(De(n[i])||t.style&&De(t.style[i])||Ym(i,e))&&(r[i]=n[i]);return r}function og(e,t){const n=Xu(e,t);for(const r in e)if(De(e[r])||De(t[r])){const i=Li.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Zu(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function ag(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xs=e=>Array.isArray(e),kA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),CA=e=>Xs(e)?e[e.length-1]||0:e;function vs(e){const t=De(e)?e.get():e;return kA(t)?t.toValue():t}function PA({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:EA(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const lg=e=>(t,n)=>{const r=x.useContext(ko),i=x.useContext(Co),s=()=>PA(e,t,r,i);return n?s():ag(s)};function EA(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=vs(s[f]);let{initial:o,animate:a}=e;const l=bo(e),u=Qm(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const c=d?a:o;return c&&typeof c!="boolean"&&!Eo(c)&&(Array.isArray(c)?c:[c]).forEach(m=>{const y=Zu(e,m);if(!y)return;const{transitionEnd:w,transition:S,...v}=y;for(const p in v){let g=v[p];if(Array.isArray(g)){const _=d?g.length-1:0;g=g[_]}g!==null&&(i[p]=g)}for(const p in w)i[p]=w[p]}),i}const ae=e=>e;class ef{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function bA(e){let t=new ef,n=new ef,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const c=d&&i,f=c?t:n;return u&&o.add(l),f.add(l)&&c&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const d=t.order[u];d(l),o.has(d)&&(a.schedule(d),e())}i=!1,s&&(s=!1,a.process(l))}};return a}const ts=["prepare","read","update","preRender","render","postRender"],TA=40;function LA(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=ts.reduce((c,f)=>(c[f]=bA(()=>n=!0),c),{}),o=c=>s[c].process(i),a=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,TA),1),i.timestamp=c,i.isProcessing=!0,ts.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:ts.reduce((c,f)=>{const m=s[f];return c[f]=(y,w=!1,S=!1)=>(n||l(),m.schedule(y,w,S)),c},{}),cancel:c=>ts.forEach(f=>s[f].cancel(c)),state:i,steps:s}}const{schedule:X,cancel:bt,state:_e,steps:ca}=LA(typeof requestAnimationFrame<"u"?requestAnimationFrame:ae,!0),AA={useVisualState:lg({scrapeMotionValuesFromProps:og,createRenderState:ng,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{Yu(n,r,{enableHardwareAcceleration:!1},qu(t.tagName),e.transformTemplate),sg(t,n)})}})},jA={useVisualState:lg({scrapeMotionValuesFromProps:Xu,createRenderState:Gu})};function RA(e,{forwardMotionProps:t=!1},n,r){return{...Ku(e)?AA:jA,preloadedFeatures:n,useRender:SA(t),createVisualElement:r,Component:e}}function xt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ug=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Lo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const $A=e=>t=>ug(t)&&e(t,Lo(t));function _t(e,t,n,r){return xt(e,t,$A(n),r)}const NA=(e,t)=>n=>t(e(n)),Yt=(...e)=>e.reduce(NA);function cg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const tf=cg("dragHorizontal"),nf=cg("dragVertical");function dg(e){let t=!1;if(e==="y")t=nf();else if(e==="x")t=tf();else{const n=tf(),r=nf();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function fg(){const e=dg(!0);return e?(e(),!1):!0}class on{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||fg())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&X.update(()=>a[r](s,o))};return _t(e.current,n,i,{passive:!e.getProps()[r]})}class DA extends on{mount(){this.unmount=Yt(rf(this.node,!0),rf(this.node,!1))}unmount(){}}class MA extends on{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yt(xt(this.node.current,"focus",()=>this.onFocus()),xt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hg=(e,t)=>t?e===t?!0:hg(e,t.parentElement):!1;function da(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Lo(n))}class OA extends on{constructor(){super(...arguments),this.removeStartListeners=ae,this.removeEndListeners=ae,this.removeAccessibleListeners=ae,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=_t(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:c}=this.node.getProps();X.update(()=>{!c&&!hg(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),o=_t(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Yt(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||da("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&X.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=xt(this.node.current,"keyup",o),da("down",(a,l)=>{this.startPress(a,l)})},n=xt(this.node.current,"keydown",t),r=()=>{this.isPressing&&da("cancel",(s,o)=>this.cancelPress(s,o))},i=xt(this.node.current,"blur",r);this.removeAccessibleListeners=Yt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!fg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_t(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=xt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Yt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const bl=new WeakMap,fa=new WeakMap,IA=e=>{const t=bl.get(e.target);t&&t(e)},VA=e=>{e.forEach(IA)};function FA({root:e,...t}){const n=e||document;fa.has(n)||fa.set(n,{});const r=fa.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(VA,{root:e,...t})),r[i]}function zA(e,t,n){const r=FA(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const BA={some:0,all:1};class UA extends on{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BA[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return zA(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(WA(t,n))&&this.startObserver()}unmount(){}}function WA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HA={inView:{Feature:UA},tap:{Feature:OA},focus:{Feature:MA},hover:{Feature:DA}};function pg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function KA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function QA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ao(e,t,n){const r=e.getProps();return Zu(r,t,n!==void 0?n:r.custom,KA(e),QA(e))}let SD=ae,Ju=ae;const Cn=e=>e*1e3,St=e=>e/1e3,GA={current:!1},mg=e=>Array.isArray(e)&&typeof e[0]=="number";function gg(e){return!!(!e||typeof e=="string"&&yg[e]||mg(e)||Array.isArray(e)&&e.every(gg))}const Ir=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ir([0,.65,.55,1]),circOut:Ir([.55,0,1,.45]),backIn:Ir([.31,.01,.66,-.59]),backOut:Ir([.33,1.53,.69,.99])};function vg(e){if(e)return mg(e)?Ir(e):Array.isArray(e)?e.map(vg):yg[e]}function YA(e,t,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=vg(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function qA(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const xg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,XA=1e-7,ZA=12;function JA(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=xg(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>XA&&++a<ZA);return o}function Ri(e,t,n,r){if(e===t&&n===r)return ae;const i=s=>JA(s,0,1,e,n);return s=>s===0||s===1?s:xg(i(s),t,r)}const ej=Ri(.42,0,1,1),tj=Ri(0,0,.58,1),wg=Ri(.42,0,.58,1),nj=e=>Array.isArray(e)&&typeof e[0]!="number",_g=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sg=e=>t=>1-e(1-t),ec=e=>1-Math.sin(Math.acos(e)),kg=Sg(ec),rj=_g(ec),Cg=Ri(.33,1.53,.69,.99),tc=Sg(Cg),ij=_g(tc),sj=e=>(e*=2)<1?.5*tc(e):.5*(2-Math.pow(2,-10*(e-1))),oj={linear:ae,easeIn:ej,easeInOut:wg,easeOut:tj,circIn:ec,circInOut:rj,circOut:kg,backIn:tc,backInOut:ij,backOut:Cg,anticipate:sj},sf=e=>{if(Array.isArray(e)){Ju(e.length===4);const[t,n,r,i]=e;return Ri(t,n,r,i)}else if(typeof e=="string")return oj[e];return e},nc=(e,t)=>n=>!!(Ai(n)&&lA.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Pg=(e,t,n)=>r=>{if(!Ai(r))return r;const[i,s,o,a]=r.match(To);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},aj=e=>Zt(0,255,e),ha={...Dn,transform:e=>Math.round(aj(e))},xn={test:nc("rgb","red"),parse:Pg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ha.transform(e)+", "+ha.transform(t)+", "+ha.transform(n)+", "+Xr(qr.transform(r))+")"};function lj(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Tl={test:nc("#"),parse:lj,transform:xn.transform},Zn={test:nc("hsl","hue"),parse:Pg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Xr(t))+", "+ht.transform(Xr(n))+", "+Xr(qr.transform(r))+")"},Ce={test:e=>xn.test(e)||Tl.test(e)||Zn.test(e),parse:e=>xn.test(e)?xn.parse(e):Zn.test(e)?Zn.parse(e):Tl.parse(e),transform:e=>Ai(e)?e:e.hasOwnProperty("red")?xn.transform(e):Zn.transform(e)},re=(e,t,n)=>-n*e+n*t+e;function pa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uj({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=pa(l,a,e+1/3),s=pa(l,a,e),o=pa(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const ma=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},cj=[Tl,xn,Zn],dj=e=>cj.find(t=>t.test(e));function of(e){const t=dj(e);let n=t.parse(e);return t===Zn&&(n=uj(n)),n}const Eg=(e,t)=>{const n=of(e),r=of(t),i={...n};return s=>(i.red=ma(n.red,r.red,s),i.green=ma(n.green,r.green,s),i.blue=ma(n.blue,r.blue,s),i.alpha=re(n.alpha,r.alpha,s),xn.transform(i))};function fj(e){var t,n;return isNaN(e)&&Ai(e)&&(((t=e.match(To))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Zm))===null||n===void 0?void 0:n.length)||0)>0}const bg={regex:oA,countKey:"Vars",token:"${v}",parse:ae},Tg={regex:Zm,countKey:"Colors",token:"${c}",parse:Ce.parse},Lg={regex:To,countKey:"Numbers",token:"${n}",parse:Dn.parse};function ga(e,{regex:t,countKey:n,token:r,parse:i}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(i)))}function Zs(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ga(n,bg),ga(n,Tg),ga(n,Lg),n}function Ag(e){return Zs(e).values}function jg(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Zs(e),s=t.length;return o=>{let a=i;for(let l=0;l<s;l++)l<r?a=a.replace(bg.token,o[l]):l<r+n?a=a.replace(Tg.token,Ce.transform(o[l])):a=a.replace(Lg.token,Xr(o[l]));return a}}const hj=e=>typeof e=="number"?0:e;function pj(e){const t=Ag(e);return jg(e)(t.map(hj))}const Jt={test:fj,parse:Ag,createTransformer:jg,getAnimatableNone:pj},Rg=(e,t)=>n=>`${n>0?t:e}`;function $g(e,t){return typeof e=="number"?n=>re(e,t,n):Ce.test(e)?Eg(e,t):e.startsWith("var(")?Rg(e,t):Dg(e,t)}const Ng=(e,t)=>{const n=[...e],r=n.length,i=e.map((s,o)=>$g(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}},mj=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$g(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},Dg=(e,t)=>{const n=Jt.createTransformer(t),r=Zs(e),i=Zs(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Yt(Ng(r.values,i.values),n):Rg(e,t)},Si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},af=(e,t)=>n=>re(e,t,n);function gj(e){return typeof e=="number"?af:typeof e=="string"?Ce.test(e)?Eg:Dg:Array.isArray(e)?Ng:typeof e=="object"?mj:af}function yj(e,t,n){const r=[],i=n||gj(e[0]),s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ae:t;a=Yt(l,a)}r.push(a)}return r}function Mg(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ju(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=yj(t,r,i),a=o.length,l=u=>{let d=0;if(a>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const c=Si(e[d],e[d+1],u);return o[d](c)};return n?u=>l(Zt(e[0],e[s-1],u)):l}function vj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Si(0,t,r);e.push(re(n,1,i))}}function xj(e){const t=[0];return vj(t,e.length-1),t}function wj(e,t){return e.map(n=>n*t)}function _j(e,t){return e.map(()=>t||wg).splice(0,e.length-1)}function Js({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nj(r)?r.map(sf):sf(r),s={done:!1,value:t[0]},o=wj(n&&n.length===t.length?n:xj(t),e),a=Mg(o,t,{ease:Array.isArray(i)?i:_j(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}function Og(e,t){return t?e*(1e3/t):0}const Sj=5;function Ig(e,t,n){const r=Math.max(t-Sj,0);return Og(n-e(r),t-r)}const ya=.001,kj=.01,Cj=10,Pj=.05,Ej=1;function bj({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Zt(Pj,Ej,o),e=Zt(kj,Cj,St(e)),o<1?(i=u=>{const d=u*o,c=d*e,f=d-n,m=Ll(u,o),y=Math.exp(-c);return ya-f/m*y},s=u=>{const c=u*o*e,f=c*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-c),w=Ll(Math.pow(u,2),o);return(-i(u)+ya>0?-1:1)*((f-m)*y)/w}):(i=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-ya+d*c},s=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=Lj(i,s,a);if(e=Cn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const Tj=12;function Lj(e,t,n){let r=n;for(let i=1;i<Tj;i++)r=r-e(r)/t(r);return r}function Ll(e,t){return e*Math.sqrt(1-t*t)}const Aj=["duration","bounce"],jj=["stiffness","damping","mass"];function lf(e,t){return t.some(n=>e[n]!==void 0)}function Rj(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!lf(e,jj)&&lf(e,Aj)){const n=bj(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Vg({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:d,velocity:c,isResolvedFromDuration:f}=Rj({...r,velocity:-St(r.velocity||0)}),m=c||0,y=l/(2*Math.sqrt(a*u)),w=s-i,S=St(Math.sqrt(a/u)),v=Math.abs(w)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let p;if(y<1){const g=Ll(S,y);p=_=>{const k=Math.exp(-y*S*_);return s-k*((m+y*S*w)/g*Math.sin(g*_)+w*Math.cos(g*_))}}else if(y===1)p=g=>s-Math.exp(-S*g)*(w+(m+S*w)*g);else{const g=S*Math.sqrt(y*y-1);p=_=>{const k=Math.exp(-y*S*_),b=Math.min(g*_,300);return s-k*((m+y*S*w)*Math.sinh(b)+g*w*Math.cosh(b))/g}}return{calculatedDuration:f&&d||null,next:g=>{const _=p(g);if(f)o.done=g>=d;else{let k=m;g!==0&&(y<1?k=Ig(p,g,_):k=0);const b=Math.abs(k)<=n,P=Math.abs(s-_)<=t;o.done=b&&P}return o.value=o.done?s:_,o}}}function uf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const c=e[0],f={done:!1,value:c},m=C=>a!==void 0&&C<a||l!==void 0&&C>l,y=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let w=n*t;const S=c+w,v=o===void 0?S:o(S);v!==S&&(w=v-c);const p=C=>-w*Math.exp(-C/r),g=C=>v+p(C),_=C=>{const A=p(C),L=g(C);f.done=Math.abs(A)<=u,f.value=f.done?v:L};let k,b;const P=C=>{m(f.value)&&(k=C,b=Vg({keyframes:[f.value,y(f.value)],velocity:Ig(g,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:C=>{let A=!1;return!b&&k===void 0&&(A=!0,_(C),P(C)),k!==void 0&&C>k?b.next(C-k):(!A&&_(C),f)}}}const $j=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>bt(t),now:()=>_e.isProcessing?_e.timestamp:performance.now()}},cf=2e4;function df(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Nj={decay:uf,inertia:uf,tween:Js,keyframes:Js,spring:Vg};function eo({autoplay:e=!0,delay:t=0,driver:n=$j,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:c,...f}){let m=1,y=!1,w,S;const v=()=>{S=new Promise(R=>{w=R})};v();let p;const g=Nj[i]||Js;let _;g!==Js&&typeof r[0]!="number"&&(_=Mg([0,100],r,{clamp:!1}),r=[0,100]);const k=g({...f,keyframes:r});let b;a==="mirror"&&(b=g({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",C=null,A=null,L=null;k.calculatedDuration===null&&s&&(k.calculatedDuration=df(k));const{calculatedDuration:te}=k;let F=1/0,N=1/0;te!==null&&(F=te+o,N=F*(s+1)-o);let D=0;const G=R=>{if(A===null)return;m>0&&(A=Math.min(A,R)),m<0&&(A=Math.min(R-N/m,A)),C!==null?D=C:D=Math.round(R-A)*m;const K=D-t*(m>=0?1:-1),Me=m>=0?K<0:K>N;D=Math.max(K,0),P==="finished"&&C===null&&(D=N);let Oe=D,pt=k;if(s){const jo=Math.min(D,N)/F;let $i=Math.floor(jo),ln=jo%1;!ln&&jo>=1&&(ln=1),ln===1&&$i--,$i=Math.min($i,s+1),!!($i%2)&&(a==="reverse"?(ln=1-ln,o&&(ln-=o/F)):a==="mirror"&&(pt=b)),Oe=Zt(0,1,ln)*F}const Ie=Me?{done:!1,value:r[0]}:pt.next(Oe);_&&(Ie.value=_(Ie.value));let{done:an}=Ie;!Me&&te!==null&&(an=m>=0?D>=N:D<=0);const fy=C===null&&(P==="finished"||P==="running"&&an);return c&&c(Ie.value),fy&&T(),Ie},B=()=>{p&&p.stop(),p=void 0},Y=()=>{P="idle",B(),w(),v(),A=L=null},T=()=>{P="finished",d&&d(),B(),w()},$=()=>{if(y)return;p||(p=n(G));const R=p.now();l&&l(),C!==null?A=R-C:(!A||P==="finished")&&(A=R),P==="finished"&&v(),L=A,C=null,P="running",p.start()};e&&$();const z={then(R,K){return S.then(R,K)},get time(){return St(D)},set time(R){R=Cn(R),D=R,C!==null||!p||m===0?C=R:A=p.now()-R/m},get duration(){const R=k.calculatedDuration===null?df(k):k.calculatedDuration;return St(R)},get speed(){return m},set speed(R){R===m||!p||(m=R,z.time=St(D))},get state(){return P},play:$,pause:()=>{P="paused",C=D},stop:()=>{y=!0,P!=="idle"&&(P="idle",u&&u(),Y())},cancel:()=>{L!==null&&G(L),Y()},complete:()=>{P="finished"},sample:R=>(A=0,G(R))};return z}function Dj(e){let t;return()=>(t===void 0&&(t=e()),t)}const Mj=Dj(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Oj=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ns=10,Ij=2e4,Vj=(e,t)=>t.type==="spring"||e==="backgroundColor"||!gg(t.ease);function Fj(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Mj()&&Oj.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,u=!1;const d=()=>{l=new Promise(g=>{a=g})};d();let{keyframes:c,duration:f=300,ease:m,times:y}=i;if(Vj(t,i)){const g=eo({...i,repeat:0,delay:0});let _={done:!1,value:c[0]};const k=[];let b=0;for(;!_.done&&b<Ij;)_=g.sample(b),k.push(_.value),b+=ns;y=void 0,c=k,f=b-ns,m="linear"}const w=YA(e.owner.current,t,c,{...i,duration:f,ease:m,times:y}),S=()=>{u=!1,w.cancel()},v=()=>{u=!0,X.update(S),a(),d()};return w.onfinish=()=>{u||(e.set(qA(c,i)),r&&r(),v())},{then(g,_){return l.then(g,_)},attachTimeline(g){return w.timeline=g,w.onfinish=null,ae},get time(){return St(w.currentTime||0)},set time(g){w.currentTime=Cn(g)},get speed(){return w.playbackRate},set speed(g){w.playbackRate=g},get duration(){return St(f)},play:()=>{o||(w.play(),bt(S))},pause:()=>w.pause(),stop:()=>{if(o=!0,w.playState==="idle")return;const{currentTime:g}=w;if(g){const _=eo({...i,autoplay:!1});e.setWithVelocity(_.sample(g-ns).value,_.sample(g).value,ns)}v()},complete:()=>{u||w.finish()},cancel:v}}function zj({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ae,pause:ae,stop:ae,then:s=>(s(),Promise.resolve()),cancel:ae,complete:ae});return t?eo({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Bj={type:"spring",stiffness:500,damping:25,restSpeed:10},Uj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wj={type:"keyframes",duration:.8},Hj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kj=(e,{keyframes:t})=>t.length>2?Wj:Nn.has(e)?e.startsWith("scale")?Uj(t[1]):Bj:Hj,Al=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jt.test(t)||t==="0")&&!t.startsWith("url(")),Qj=new Set(["brightness","contrast","saturate","opacity"]);function Gj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(To)||[];if(!r)return e;const i=n.replace(r,"");let s=Qj.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Yj=/([a-z-]*)\(.*?\)/g,jl={...Jt,getAnimatableNone:e=>{const t=e.match(Yj);return t?t.map(Gj).join(" "):e}},qj={...Jm,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:jl,WebkitFilter:jl},rc=e=>qj[e];function Fg(e,t){let n=rc(e);return n!==jl&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zg=e=>/^0[^.\s]+$/.test(e);function Xj(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||zg(e)}function Zj(e,t,n,r){const i=Al(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<s.length;u++)s[u]===null&&(s[u]=u===0?o:s[u-1]),Xj(s[u])&&l.push(u),typeof s[u]=="string"&&s[u]!=="none"&&s[u]!=="0"&&(a=s[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const d=l[u];s[d]=Fg(t,a)}return s}function Jj({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}function ic(e,t){return e[t]||e.default||e}const eR={skipAnimations:!1},sc=(e,t,n,r={})=>i=>{const s=ic(r,e)||{},o=s.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Cn(o);const l=Zj(t,e,n,s),u=l[0],d=l[l.length-1],c=Al(e,u),f=Al(e,d);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:y=>{t.set(y),s.onUpdate&&s.onUpdate(y)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(Jj(s)||(m={...m,...Kj(e,m)}),m.duration&&(m.duration=Cn(m.duration)),m.repeatDelay&&(m.repeatDelay=Cn(m.repeatDelay)),!c||!f||GA.current||s.type===!1||eR.skipAnimations)return zj(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Fj(t,e,m);if(y)return y}return eo(m)};function to(e){return!!(De(e)&&e.add)}const Bg=e=>/^\-?\d*\.?\d+$/.test(e);function oc(e,t){e.indexOf(t)===-1&&e.push(t)}function ac(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lc{constructor(){this.subscriptions=[]}add(t){return oc(this.subscriptions,t),()=>ac(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tR=e=>!isNaN(parseFloat(e)),ff={current:void 0};class nR{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=_e;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=tR(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ff.current&&ff.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Og(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gr(e,t){return new nR(e,t)}const Ug=e=>t=>t.test(e),rR={test:e=>e==="auto",parse:e=>e},Wg=[Dn,M,ht,jt,cA,uA,rR],Rr=e=>Wg.find(Ug(e)),iR=[...Wg,Ce,Jt],sR=e=>iR.find(Ug(e));function oR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gr(n))}function aR(e,t){const n=Ao(e,t);let{transitionEnd:r={},transition:i={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const a=CA(s[o]);oR(e,o,a)}}function lR(e,t,n){var r,i;const s=Object.keys(t).filter(a=>!e.hasValue(a)),o=s.length;if(o)for(let a=0;a<o;a++){const l=s[a],u=t[l];let d=null;Array.isArray(u)&&(d=u[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(Bg(d)||zg(d))?d=parseFloat(d):!sR(d)&&Jt.test(u)&&(d=Fg(l,u)),e.addValue(l,gr(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function uR(e,t){return t?(t[e]||t.default||t).from:void 0}function cR(e,t,n){const r={};for(const i in e){const s=uR(i,t);if(s!==void 0)r[i]=s;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function dR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function fR(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Hg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(s=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c),m=a[c];if(!f||m===void 0||d&&dR(d,c))continue;const y={delay:n,elapsed:0,...ic(s||{},c)};if(window.HandoffAppearAnimations){const v=e.getProps()[Km];if(v){const p=window.HandoffAppearAnimations(v,c,f,X);p!==null&&(y.elapsed=p,y.isHandoff=!0)}}let w=!y.isHandoff&&!fR(f,m);if(y.type==="spring"&&(f.getVelocity()||y.velocity)&&(w=!1),f.animation&&(w=!1),w)continue;f.start(sc(c,f,m,e.shouldReduceMotion&&Nn.has(c)?{type:!1}:y));const S=f.animation;to(l)&&(l.add(c),S.then(()=>l.remove(c))),u.push(S)}return o&&Promise.all(u).then(()=>{o&&aR(e,o)}),u}function Rl(e,t,n={}){const r=Ao(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Hg(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:c}=i;return hR(e,t,u+l,d,c,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function hR(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(pR).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Rl(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function pR(e,t){return e.sortNodePosition(t)}function mR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Rl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Rl(e,t,n);else{const i=typeof t=="function"?Ao(e,t,n.custom):t;r=Promise.all(Hg(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const gR=[...Uu].reverse(),yR=Uu.length;function vR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mR(e,n,r)))}function xR(e){let t=vR(e);const n=_R();let r=!0;const i=(l,u)=>{const d=Ao(e,u);if(d){const{transition:c,transitionEnd:f,...m}=d;l={...l,...m,...f}}return l};function s(l){t=l(e)}function o(l,u){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],m=new Set;let y={},w=1/0;for(let v=0;v<yR;v++){const p=gR[v],g=n[p],_=d[p]!==void 0?d[p]:c[p],k=wi(_),b=p===u?g.isActive:null;b===!1&&(w=v);let P=_===c[p]&&_!==d[p]&&k;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...y},!g.isActive&&b===null||!_&&!g.prevProp||Eo(_)||typeof _=="boolean")continue;let A=wR(g.prevProp,_)||p===u&&g.isActive&&!P&&k||v>w&&k,L=!1;const te=Array.isArray(_)?_:[_];let F=te.reduce(i,{});b===!1&&(F={});const{prevResolvedValues:N={}}=g,D={...N,...F},G=B=>{A=!0,m.has(B)&&(L=!0,m.delete(B)),g.needsAnimating[B]=!0};for(const B in D){const Y=F[B],T=N[B];if(y.hasOwnProperty(B))continue;let $=!1;Xs(Y)&&Xs(T)?$=!pg(Y,T):$=Y!==T,$?Y!==void 0?G(B):m.add(B):Y!==void 0&&m.has(B)?G(B):g.protectedKeys[B]=!0}g.prevProp=_,g.prevResolvedValues=F,g.isActive&&(y={...y,...F}),r&&e.blockInitialAnimation&&(A=!1),A&&(!P||L)&&f.push(...te.map(B=>({animation:B,options:{type:p,...l}})))}if(m.size){const v={};m.forEach(p=>{const g=e.getBaseTarget(p);g!==void 0&&(v[p]=g)}),f.push({animation:v})}let S=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(f):Promise.resolve()}function a(l,u,d){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const f=o(d,l);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function wR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pg(t,e):!1}function cn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _R(){return{animate:cn(!0),whileInView:cn(),whileHover:cn(),whileTap:cn(),whileDrag:cn(),whileFocus:cn(),exit:cn()}}class SR extends on{constructor(t){super(t),t.animationState||(t.animationState=xR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Eo(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let kR=0;class CR extends on{constructor(){super(...arguments),this.id=kR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const PR={animation:{Feature:SR},exit:{Feature:CR}},hf=(e,t)=>Math.abs(e-t);function ER(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kg{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=xa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=ER(c.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:y}=c,{timestamp:w}=_e;this.history.push({...y,timestamp:w});const{onStart:S,onMove:v}=this.handlers;f||(S&&S(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=va(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=xa(c.type==="pointercancel"?this.lastMoveEventInfo:va(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(c,S),y&&y(c,S)},!ug(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Lo(t),a=va(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=_e;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,xa(a,this.history)),this.removeListeners=Yt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),bt(this.updatePoint)}}function va(e,t){return t?{point:t(e.point)}:e}function pf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xa({point:e},t){return{point:e,delta:pf(e,Qg(t)),offset:pf(e,bR(t)),velocity:TR(t,.1)}}function bR(e){return e[0]}function Qg(e){return e[e.length-1]}function TR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Qg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cn(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ue(e){return e.max-e.min}function $l(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=Ue(n)/Ue(t),($l(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=re(n.min,n.max,e.origin)-e.originPoint,($l(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Zr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+Ue(t)}function LR(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function yf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ue(t)}function Jr(e,t,n){yf(e.x,t.x,n.x),yf(e.y,t.y,n.y)}function AR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function vf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function jR(e,{top:t,left:n,bottom:r,right:i}){return{x:vf(e.x,n,i),y:vf(e.y,t,r)}}function xf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function RR(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}function $R(e,t){let n=.5;const r=Ue(e),i=Ue(t);return i>r?n=Si(t.min,t.max-r,e.min):r>i&&(n=Si(e.min,e.max-i,t.min)),Zt(0,1,n)}function NR(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Nl=.35;function DR(e=Nl){return e===!1?e=0:e===!0&&(e=Nl),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}function wf(e,t,n){return{min:_f(e,t),max:_f(e,n)}}function _f(e,t){return typeof e=="number"?e:e[t]||0}const Sf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jn=()=>({x:Sf(),y:Sf()}),kf=()=>({min:0,max:0}),ce=()=>({x:kf(),y:kf()});function Qe(e){return[e("x"),e("y")]}function Gg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function MR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OR(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wa(e){return e===void 0||e===1}function Dl({scale:e,scaleX:t,scaleY:n}){return!wa(e)||!wa(t)||!wa(n)}function hn(e){return Dl(e)||Yg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Yg(e){return Cf(e.x)||Cf(e.y)}function Cf(e){return e&&e!=="0%"}function no(e,t,n){const r=e-n,i=t*r;return n+i}function Pf(e,t,n,r,i){return i!==void 0&&(e=no(e,i,r)),no(e,n,r)+t}function Ml(e,t=0,n=1,r,i){e.min=Pf(e.min,t,n,r,i),e.max=Pf(e.max,t,n,r,i)}function qg(e,{x:t,y:n}){Ml(e.x,t.translate,t.scale,t.originPoint),Ml(e.y,n.translate,n.scale,n.originPoint)}function IR(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const l=s.instance;l&&l.style&&l.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&er(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,qg(e,o)),r&&hn(s.latestValues)&&er(e,s.latestValues))}t.x=Ef(t.x),t.y=Ef(t.y)}function Ef(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nt(e,t){e.min=e.min+t,e.max=e.max+t}function bf(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=re(e.min,e.max,s);Ml(e,t[n],t[r],o,t.scale)}const VR=["x","scaleX","originX"],FR=["y","scaleY","originY"];function er(e,t){bf(e.x,t,VR),bf(e.y,t,FR)}function Xg(e,t){return Gg(OR(e.getBoundingClientRect(),t))}function zR(e,t,n){const r=Xg(e,n),{scroll:i}=t;return i&&(Nt(r.x,i.offset.x),Nt(r.y,i.offset.y)),r}const Zg=({current:e})=>e?e.ownerDocument.defaultView:null,BR=new WeakMap;class UR{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Lo(d,"page").point)},s=(d,c)=>{const{drag:f,dragPropagation:m,onDragStart:y}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qe(S=>{let v=this.getAxisMotionValue(S).get()||0;if(ht.test(v)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[S];g&&(v=Ue(g)*(parseFloat(v)/100))}}this.originPoint[S]=v}),y&&X.update(()=>y(d,c),!1,!0);const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(d,c)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=c;if(m&&this.currentDirection===null){this.currentDirection=WR(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",c.point,S),this.updateAxis("y",c.point,S),this.visualElement.render(),w&&w(d,c)},a=(d,c)=>this.stop(d,c),l=()=>Qe(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Kg(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Zg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&X.update(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!rs(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=AR(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Xn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=jR(i.layoutBox,n):this.constraints=!1,this.elastic=DR(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qe(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=NR(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=zR(r,i.root,this.visualElement.getTransformPagePoint());let o=RR(i.layout.layoutBox,s);if(n){const a=n(MR(o));this.hasMutatedConstraints=!!a,a&&(o=Gg(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qe(d=>{if(!rs(d,n,this.currentDirection))return;let c=l&&l[d]||{};o&&(c={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(sc(t,r,0,n))}stopAnimation(){Qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qe(n=>{const{drag:r}=this.getProps();if(!rs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qe(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=$R({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qe(o=>{if(!rs(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(re(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;BR.set(this.visualElement,this);const t=this.visualElement.current,n=_t(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=xt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qe(d=>{const c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Nl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function rs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function WR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HR extends on{constructor(t){super(t),this.removeGroupControls=ae,this.removeListeners=ae,this.controls=new UR(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ae}unmount(){this.removeGroupControls(),this.removeListeners()}}const Tf=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class KR extends on{constructor(){super(...arguments),this.removePointerDownListener=ae}onPointerDown(t){this.session=new Kg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Tf(t),onStart:Tf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&X.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function QR(){const e=x.useContext(Co);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=x.useId();return x.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Lf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $r={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=Lf(e,t.target.x),r=Lf(e,t.target.y);return`${n}% ${r}%`}},GR={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Jt.parse(e);if(i.length>5)return r;const s=Jt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=re(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class YR extends Ci.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;nA(qR),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),xs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jg(e){const[t,n]=QR(),r=x.useContext(Hu);return Ci.createElement(YR,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Gm),isPresent:t,safeToRemove:n})}const qR={borderRadius:{...$r,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$r,borderTopRightRadius:$r,borderBottomLeftRadius:$r,borderBottomRightRadius:$r,boxShadow:GR},ey=["TopLeft","TopRight","BottomLeft","BottomRight"],XR=ey.length,Af=e=>typeof e=="string"?parseFloat(e):e,jf=e=>typeof e=="number"||M.test(e);function ZR(e,t,n,r,i,s){i?(e.opacity=re(0,n.opacity!==void 0?n.opacity:1,JR(r)),e.opacityExit=re(t.opacity!==void 0?t.opacity:1,0,e$(r))):s&&(e.opacity=re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<XR;o++){const a=`border${ey[o]}Radius`;let l=Rf(t,a),u=Rf(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||jf(l)===jf(u)?(e[a]=Math.max(re(Af(l),Af(u),r),0),(ht.test(u)||ht.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function Rf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const JR=ty(0,.5,kg),e$=ty(.5,.95,ae);function ty(e,t,n){return r=>r<e?0:r>t?1:n(Si(e,t,r))}function $f(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){$f(e.x,t.x),$f(e.y,t.y)}function Nf(e,t,n,r,i){return e-=t,e=no(e,1/n,r),i!==void 0&&(e=no(e,1/i,r)),e}function t$(e,t=0,n=1,r=.5,i,s=e,o=e){if(ht.test(t)&&(t=parseFloat(t),t=re(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=re(s.min,s.max,r);e===s&&(a-=t),e.min=Nf(e.min,t,n,a,i),e.max=Nf(e.max,t,n,a,i)}function Df(e,t,[n,r,i],s,o){t$(e,t[n],t[r],t[i],t.scale,s,o)}const n$=["x","scaleX","originX"],r$=["y","scaleY","originY"];function Mf(e,t,n,r){Df(e.x,t,n$,n?n.x:void 0,r?r.x:void 0),Df(e.y,t,r$,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function ny(e){return Of(e.x)&&Of(e.y)}function i$(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ry(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function If(e){return Ue(e.x)/Ue(e.y)}class s${constructor(){this.members=[]}add(t){oc(this.members,t),t.scheduleRender()}remove(t){if(ac(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vf(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const o=e.x.scale*t.x,a=e.y.scale*t.y;return(o!==1||a!==1)&&(r+=`scale(${o}, ${a})`),r||"none"}const o$=(e,t)=>e.depth-t.depth;class a${constructor(){this.children=[],this.isDirty=!1}add(t){oc(this.children,t),this.isDirty=!0}remove(t){ac(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o$),this.isDirty=!1,this.children.forEach(t)}}function l$(e,t){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(bt(r),e(s-t))};return X.read(r,!0),()=>bt(r)}function u$(e){window.MotionDebug&&window.MotionDebug.record(e)}function c$(e){return e instanceof SVGElement&&e.tagName!=="svg"}function d$(e,t,n){const r=De(e)?e:gr(e);return r.start(sc("",r,t,n)),r.animation}const Ff=["","X","Y","Z"],f$={visibility:"hidden"},zf=1e3;let h$=0;const pn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=h$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pn.totalNodes=pn.resolvedTargetDeltas=pn.recalculatedProjection=0,this.nodes.forEach(g$),this.nodes.forEach(_$),this.nodes.forEach(S$),this.nodes.forEach(y$),u$(pn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new a$)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new lc),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=c$(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=l$(f,250),xs.hasAnimatedSinceResize&&(xs.hasAnimatedSinceResize=!1,this.nodes.forEach(Uf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||b$,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=d.getProps(),p=!this.targetLayout||!ry(this.targetLayout,y)||m,g=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,g);const _={...ic(w,"layout"),onPlay:S,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else f||Uf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(k$),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bf);return}this.isUpdating||this.nodes.forEach(x$),this.isUpdating=!1,this.nodes.forEach(w$),this.nodes.forEach(p$),this.nodes.forEach(m$),this.clearAllSnapshots();const a=performance.now();_e.delta=Zt(0,1e3/60,a-_e.timestamp),_e.timestamp=a,_e.isProcessing=!0,ca.update.process(_e),ca.preRender.process(_e),ca.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(v$),this.sharedNodes.forEach(C$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ce(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!ny(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||hn(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),T$(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const a=o.measureViewportBox(),{scroll:l}=this.root;return l&&(Nt(a.x,l.offset.x),Nt(a.y,l.offset.y)),a}removeElementScroll(o){const a=ce();Ke(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:c}=u;if(u!==this.root&&d&&c.layoutScroll){if(d.isRoot){Ke(a,o);const{scroll:f}=this.root;f&&(Nt(a.x,-f.offset.x),Nt(a.y,-f.offset.y))}Nt(a.x,d.offset.x),Nt(a.y,d.offset.y)}}return a}applyTransform(o,a=!1){const l=ce();Ke(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&er(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),hn(d.latestValues)&&er(l,d.latestValues)}return hn(this.latestValues)&&er(l,this.latestValues),l}removeTransform(o){const a=ce();Ke(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!hn(u.latestValues))continue;Dl(u.latestValues)&&u.updateSnapshot();const d=ce(),c=u.measurePageBox();Ke(d,c),Mf(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return hn(this.latestValues)&&Mf(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_e.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:f}=this.options;if(!(!this.layout||!(c||f))){if(this.resolvedRelativeTargetAt=_e.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),LR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ke(this.target,this.layout.layoutBox),qg(this.target,this.targetDelta)):Ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Jr(this.relativeTargetOrigin,this.target,m.target),Ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Dl(this.parent.latestValues)||Yg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===_e.timestamp&&(u=!1),u)return;const{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;Ke(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;IR(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:y}=a;if(!y){this.projectionTransform&&(this.projectionDelta=Jn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Jn(),this.projectionDeltaWithTransform=Jn());const w=this.projectionTransform;Zr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=Vf(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==f||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),pn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=Jn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ce(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,w=m!==y,S=this.getStack(),v=!S||S.members.length<=1,p=!!(w&&!v&&this.options.crossfade===!0&&!this.path.some(E$));this.animationProgress=0;let g;this.mixTargetDelta=_=>{const k=_/1e3;Wf(c.x,o.x,k),Wf(c.y,o.y,k),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P$(this.relativeTarget,this.relativeTargetOrigin,f,k),g&&i$(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ce()),Ke(g,this.relativeTarget)),w&&(this.animationValues=d,ZR(d,u,this.latestValues,k,p,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{xs.hasAnimatedSinceResize=!0,this.currentAnimation=d$(0,zf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&sy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const c=Ue(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+c;const f=Ue(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Ke(a,l),er(a,d),Zr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new s$),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d<Ff.length;d++){const c="rotate"+Ff[d];l[c]&&(u[c]=l[c],o.setStaticValue(c,0))}o.render();for(const d in u)o.setStaticValue(d,u[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return f$;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=vs(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=vs(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!hn(this.latestValues)&&(w.transform=d?d({},""):"none",this.hasProjected=!1),w}const f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=Vf(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:m,y}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=c===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const w in Ys){if(f[w]===void 0)continue;const{correct:S,applyTo:v}=Ys[w],p=u.transform==="none"?f[w]:S(f[w],c);if(v){const g=v.length;for(let _=0;_<g;_++)u[v[_]]=p}else u[w]=p}return this.options.layoutId&&(u.pointerEvents=c===this?vs(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bf),this.root.sharedNodes.clear()}}}function p$(e){e.updateLayout()}function m$(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Qe(c=>{const f=o?n.measuredBox[c]:n.layoutBox[c],m=Ue(f);f.min=r[c].min,f.max=f.min+m}):sy(s,n.layoutBox,r)&&Qe(c=>{const f=o?n.measuredBox[c]:n.layoutBox[c],m=Ue(r[c]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const a=Jn();Zr(a,r,n.layoutBox);const l=Jn();o?Zr(l,e.applyTransform(i,!0),n.measuredBox):Zr(l,r,n.layoutBox);const u=!ny(a);let d=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:m}=c;if(f&&m){const y=ce();Jr(y,n.layoutBox,f.layoutBox);const w=ce();Jr(w,r,m.layoutBox),ry(y,w)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function g$(e){pn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function y$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function v$(e){e.clearSnapshot()}function Bf(e){e.clearMeasurements()}function x$(e){e.isLayoutDirty=!1}function w$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _$(e){e.resolveTargetDelta()}function S$(e){e.calcProjection()}function k$(e){e.resetRotation()}function C$(e){e.removeLeadSnapshot()}function Wf(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function P$(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function E$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const b$={duration:.45,ease:[.4,0,.1,1]},Kf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Qf=Kf("applewebkit/")&&!Kf("chrome/")?Math.round:ae;function Gf(e){e.min=Qf(e.min),e.max=Qf(e.max)}function T$(e){Gf(e.x),Gf(e.y)}function sy(e,t,n){return e==="position"||e==="preserve-aspect"&&!$l(If(t),If(n),.2)}const L$=iy({attachResizeListener:(e,t)=>xt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_a={current:void 0},oy=iy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_a.current){const e=new L$({});e.mount(window),e.setOptions({layoutScroll:!0}),_a.current=e}return _a.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),A$={pan:{Feature:KR},drag:{Feature:HR,ProjectionNode:oy,MeasureLayout:Jg}},j$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function R$(e){const t=j$.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ol(e,t,n=1){const[r,i]=R$(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Bg(o)?parseFloat(o):o}else return El(i)?Ol(i,t,n+1):i}function $$(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const s=i.get();if(!El(s))return;const o=Ol(s,r);o&&i.set(o)});for(const i in t){const s=t[i];if(!El(s))continue;const o=Ol(s,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const N$=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ay=e=>N$.has(e),D$=e=>Object.keys(e).some(ay),Yf=e=>e===Dn||e===M,qf=(e,t)=>parseFloat(e.split(", ")[t]),Xf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return qf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?qf(s[1],e):0}},M$=new Set(["x","y","z"]),O$=Li.filter(e=>!M$.has(e));function I$(e){const t=[];return O$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const yr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xf(4,13),y:Xf(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const V$=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=yr[u](r,s)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=yr[u](l,s)}),e},F$=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(ay);let s=[],o=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],c=Rr(d);const f=t[l];let m;if(Xs(f)){const y=f.length,w=f[0]===null?1:0;d=f[w],c=Rr(d);for(let S=w;S<y&&f[S]!==null;S++)m?Ju(Rr(f[S])===m):m=Rr(f[S])}else m=Rr(f);if(c!==m)if(Yf(c)&&Yf(m)){const y=u.get();typeof y=="string"&&u.set(parseFloat(y)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&m===M&&(t[l]=f.map(parseFloat))}else c!=null&&c.transform&&(m!=null&&m.transform)&&(d===0||f===0)?d===0?u.set(m.transform(d)):t[l]=c.transform(f):(o||(s=I$(e),o=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(f))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=V$(t,e,a);return s.length&&s.forEach(([d,c])=>{e.getValue(d).set(c)}),e.render(),Po&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function z$(e,t,n,r){return D$(t)?F$(e,t,n,r):{target:t,transitionEnd:r}}const B$=(e,t,n,r)=>{const i=$$(e,t,r);return t=i.target,r=i.transitionEnd,z$(e,t,n,r)},Il={current:null},ly={current:!1};function U$(){if(ly.current=!0,!!Po)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Il.current=e.matches;e.addListener(t),t()}else Il.current=!1}function W$(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(De(s))e.addValue(i,s),to(r)&&r.add(i);else if(De(o))e.addValue(i,gr(s,{owner:e})),to(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,gr(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Zf=new WeakMap,uy=Object.keys(_i),H$=uy.length,Jf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],K$=Wu.length;class Q${constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>X.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=bo(n),this.isVariantNode=Qm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const c in d){const f=d[c];a[c]!==void 0&&De(f)&&(f.set(a[c],!1),to(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Zf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ly.current||U$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Il.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Zf.delete(this.current),this.projection&&this.projection.unmount(),bt(this.notifyUpdate),bt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Nn.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,a;for(let l=0;l<H$;l++){const u=uy[l],{isEnabled:d,Feature:c,ProjectionNode:f,MeasureLayout:m}=_i[u];f&&(o=f),d(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),m&&(a=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:c,layoutScroll:f,layoutRoot:m}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||c&&Xn(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jf.length;r++){const i=Jf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=W$(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<K$;r++){const i=Wu[r],s=this.props[i];(wi(s)||s===!1)&&(n[i]=s)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=gr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Zu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!De(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cy extends Q${sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},s){let o=cR(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){lR(this,r,o);const a=B$(this,r,o,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function G$(e){return window.getComputedStyle(e)}class Y$ extends cy{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Nn.has(n)){const r=rc(n);return r&&r.default||0}else{const r=G$(t),i=(Xm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Xg(t,n)}build(t,n,r,i){Qu(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Xu(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;De(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){rg(t,n,r,i)}}class q$ extends cy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nn.has(n)){const r=rc(n);return r&&r.default||0}return n=ig.has(n)?n:Bu(n),t.getAttribute(n)}measureInstanceViewportBox(){return ce()}scrapeMotionValuesFromProps(t,n){return og(t,n)}build(t,n,r,i){Yu(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){sg(t,n,r,i)}mount(t){this.isSVGTag=qu(t.tagName),super.mount(t)}}const X$=(e,t)=>Ku(e)?new q$(t,{enableHardwareAcceleration:!1}):new Y$(t,{enableHardwareAcceleration:!0}),Z$={layout:{ProjectionNode:oy,MeasureLayout:Jg}},J$={...PR,...HA,...A$,...Z$},is=eA((e,t)=>RA(e,t,J$,X$));function dy(){const e=x.useRef(!1);return zu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function eN(){const e=dy(),[t,n]=x.useState(0),r=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>X.postRender(r),[r]),t]}class tN extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nN({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0});return x.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
282
+ [data-motion-pop-id="${n}"] {
283
+ position: absolute !important;
284
+ width: ${s}px !important;
285
+ height: ${o}px !important;
286
+ top: ${a}px !important;
287
+ left: ${l}px !important;
288
+ }
289
+ `),()=>{document.head.removeChild(u)}},[t]),x.createElement(tN,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}const Sa=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=ag(rN),l=x.useId(),u=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:d=>{a.set(d,!0);for(const c of a.values())if(!c)return;r&&r()},register:d=>(a.set(d,!1),()=>a.delete(d))}),s?void 0:[n]);return x.useMemo(()=>{a.forEach((d,c)=>a.set(c,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=x.createElement(nN,{isPresent:n},e)),x.createElement(Co.Provider,{value:u},e)};function rN(){return new Map}function iN(e){return x.useEffect(()=>()=>e(),[])}const mn=e=>e.key||"";function sN(e,t){e.forEach(n=>{const r=mn(n);t.set(r,n)})}function oN(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const aN=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=x.useContext(Hu).forceRender||eN()[0],l=dy(),u=oN(e);let d=u;const c=x.useRef(new Map).current,f=x.useRef(d),m=x.useRef(new Map).current,y=x.useRef(!0);if(zu(()=>{y.current=!1,sN(u,m),f.current=d}),iN(()=>{y.current=!0,m.clear(),c.clear()}),y.current)return x.createElement(x.Fragment,null,d.map(p=>x.createElement(Sa,{key:mn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o},p)));d=[...d];const w=f.current.map(mn),S=u.map(mn),v=w.length;for(let p=0;p<v;p++){const g=w[p];S.indexOf(g)===-1&&!c.has(g)&&c.set(g,void 0)}return o==="wait"&&c.size&&(d=[]),c.forEach((p,g)=>{if(S.indexOf(g)!==-1)return;const _=m.get(g);if(!_)return;const k=w.indexOf(g);let b=p;if(!b){const P=()=>{c.delete(g);const C=Array.from(m.keys()).filter(A=>!S.includes(A));if(C.forEach(A=>m.delete(A)),f.current=u.filter(A=>{const L=mn(A);return L===g||C.includes(L)}),!c.size){if(l.current===!1)return;a(),r&&r()}};b=x.createElement(Sa,{key:mn(_),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:s,mode:o},_),c.set(g,b)}d.splice(k,0,b)}),d=d.map(p=>{const g=p.key;return c.has(g)?p:x.createElement(Sa,{key:mn(p),isPresent:!0,presenceAffectsLayout:s,mode:o},p)}),x.createElement(x.Fragment,null,c.size?d:d.map(p=>x.cloneElement(p)))},lN=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Solutions",href:"#screening"},{label:"Contact",href:"mailto:info@amliq.finance"}];function uN({onClose:e}){const t=$n(),n=r=>{t(r),e()};return h.jsxs("div",{className:"md:hidden px-4 py-6 space-y-4",style:{background:"#FAFBFC",borderBottom:"1px solid rgba(0,0,0,0.08)"},children:[lN.map(r=>h.jsx("a",{href:r.href,onClick:e,className:"block text-[#64748B] hover:text-[#1A1A2E] transition-colors",children:r.label},r.label)),h.jsxs("div",{className:"pt-4 space-y-3",style:{borderTop:"1px solid rgba(0,0,0,0.08)"},children:[h.jsx("button",{type:"button",onClick:()=>n("/login"),className:"w-full text-left text-[#64748B] hover:text-[#1A1A2E] transition-colors",children:"Login"}),h.jsx("button",{type:"button",onClick:()=>n("/signup"),className:"w-full px-4 py-2.5 bg-[#00B894] hover:bg-[#00A383] text-white font-semibold rounded-lg transition-colors",children:"Book a Demo"})]})]})}const cN=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"}];function dN(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),i=$n();return x.useEffect(()=>{const s=()=>r(window.scrollY>20);return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]),h.jsxs(h.Fragment,{children:[h.jsx(is.nav,{className:"sticky top-0 z-50 transition-all duration-300",style:{background:n?"rgba(255,255,255,0.9)":"rgba(255,255,255,0.6)",backdropFilter:"blur(20px) saturate(180%)",borderBottom:n?"1px solid rgba(0,0,0,0.06)":"1px solid transparent",boxShadow:n?"0 1px 3px rgba(0,0,0,0.04)":"none"},children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between",children:[h.jsxs("a",{href:"/",className:"flex items-center gap-1 group",children:[h.jsx("span",{className:"text-xl font-extrabold text-[#0F172A] tracking-tight",children:"AMLIQ"}),h.jsx(is.span,{className:"w-1.5 h-1.5 rounded-full bg-[#00B894] -mt-3",animate:{scale:[1,1.3,1]},transition:{duration:2,repeat:1/0}})]}),h.jsx("div",{className:"hidden md:flex items-center gap-8",children:cN.map(s=>h.jsx("a",{href:s.href,className:"text-sm text-[#64748B] hover:text-[#0F172A] transition-colors font-medium",children:s.label},s.label))}),h.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[h.jsx("button",{type:"button",onClick:()=>i("/login"),className:"text-sm text-[#64748B] hover:text-[#0F172A] transition-colors cursor-pointer font-medium",children:"Login"}),h.jsx(is.button,{type:"button",onClick:()=>window.open("https://calendly.com/amliq","_blank"),className:"px-5 py-2 bg-[#00B894] text-white text-sm font-semibold rounded-xl cursor-pointer",whileHover:{scale:1.04,boxShadow:"0 4px 16px rgba(0,184,148,0.3)"},whileTap:{scale:.97},children:"Book a Demo"})]}),h.jsx("button",{type:"button",onClick:()=>t(!e),className:"md:hidden text-[#0F172A] p-2 -mr-2",children:e?h.jsx(Fu,{size:24}):h.jsx(Om,{size:24})})]})}),h.jsx(aN,{children:e&&h.jsx(is.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},children:h.jsx(uN,{onClose:()=>t(!1)})})})]})}const fN=[{title:"Product",links:[{label:"Screening",href:"#screening"},{label:"Monitoring",href:"#monitoring"},{label:"API Reference",href:"#api"},{label:"Pricing",href:"#pricing"}]},{title:"Solutions",links:[{label:"Banks",href:"#"},{label:"Fintechs",href:"#"},{label:"MSBs",href:"#"},{label:"Crypto",href:"#"}]},{title:"Company",links:[{label:"About",href:"/about"},{label:"Blog",href:"/blog"},{label:"Careers",href:"/careers"},{label:"Contact",href:"mailto:info@amliq.finance"}]},{title:"Resources",links:[{label:"Documentation",href:"/docs"},{label:"Status",href:"/status"},{label:"Changelog",href:"/changelog"},{label:"Security",href:"/security"}]}],hN=["SOC 2 Type II","ISO 27001","GDPR"],pN=[{icon:h.jsx(uL,{size:16}),href:"#",label:"Twitter"},{icon:h.jsx(eL,{size:16}),href:"#",label:"LinkedIn"}];function mN(){return h.jsx("footer",{style:{borderTop:"1px solid rgba(255,255,255,0.06)"},className:"pt-16 pb-8 px-4",children:h.jsxs("div",{className:"max-w-6xl mx-auto",children:[h.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-8 mb-12",children:[h.jsxs("div",{className:"col-span-2 md:col-span-1",children:[h.jsxs("span",{className:"text-lg font-bold text-[#EDEDEF] flex items-center gap-1",children:["AMLIQ",h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#00D4AA] -mt-2"})]}),h.jsx("p",{className:"text-sm text-[#7C7C82] leading-relaxed mt-2",children:"AI-powered sanctions screening for modern finance."}),h.jsx("div",{className:"flex gap-3 mt-4",children:pN.map(e=>h.jsx("a",{href:e.href,"aria-label":e.label,className:"text-[#7C7C82] hover:text-[#EDEDEF] transition-colors",children:e.icon},e.label))})]}),fN.map(e=>h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-semibold text-[#EDEDEF] mb-4",children:e.title}),h.jsx("ul",{className:"space-y-2.5",children:e.links.map(t=>h.jsx("li",{children:h.jsx(Sn,{to:t.href,className:"text-sm text-[#7C7C82] hover:text-[#EDEDEF] transition-colors",children:t.label})},t.label))})]},e.title))]}),h.jsxs("div",{className:"pt-6 flex flex-col md:flex-row items-center justify-between gap-4",style:{borderTop:"1px solid rgba(255,255,255,0.06)"},children:[h.jsxs("p",{className:"text-xs text-[#7C7C82]/60",children:["© 2026 AMLIQ. All rights reserved.  · ",h.jsx(Sn,{to:"/privacy",className:"hover:text-[#EDEDEF]",children:"Privacy"})," · ",h.jsx(Sn,{to:"/terms",className:"hover:text-[#EDEDEF]",children:"Terms"})]}),h.jsx("div",{className:"flex items-center gap-4",children:hN.map(e=>h.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-[#7C7C82]/60",children:[h.jsx(oL,{size:12,className:"text-[#22C55E]"}),e]},e))})]})]})})}function gN({children:e}){return h.jsxs("div",{className:"min-h-screen bg-black flex flex-col",children:[h.jsx(dN,{}),h.jsx("main",{className:"flex-1",children:e}),h.jsx(mN,{})]})}function yN({children:e,sidebar:t}){return h.jsxs("div",{className:"flex h-screen bg-apple-bg",children:[t&&h.jsx("aside",{className:"hidden md:block w-64 border-r border-white/10",children:t}),h.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:h.jsx("main",{className:"flex-1 overflow-auto",children:e})})]})}const vN="modulepreload",xN=function(e){return"/"+e},eh={},O=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=xN(l),l in eh)return;eh[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":vN,u||(c.as="script"),c.crossOrigin="",c.href=l,a&&c.setAttribute("nonce",a),document.head.appendChild(c),u)return new Promise((f,m)=>{c.addEventListener("load",f),c.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},wN=x.lazy(()=>O(()=>import("./Dashboard-w4-Nhv9q.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.Dashboard}))),_N=x.lazy(()=>O(()=>import("./AlertQueue-DFtBiRoM.js"),__vite__mapDeps([4,3,5,2,6])).then(e=>({default:e.AlertQueue}))),SN=x.lazy(()=>O(()=>import("./AlertDetailPage-Bc2_zwu_.js"),__vite__mapDeps([7,8,2,9,10,11,3,5,12])).then(e=>({default:e.AlertDetailPage}))),kN=x.lazy(()=>O(()=>import("./ScreenEntity-D1U0YL7v.js"),__vite__mapDeps([13,2,14,15,3,16,17,18])).then(e=>({default:e.ScreenEntity}))),CN=x.lazy(()=>O(()=>import("./Configuration-B92kl9T0.js"),__vite__mapDeps([19,8,20,17])).then(e=>({default:e.Configuration}))),PN=x.lazy(()=>O(()=>import("./Analytics-DtruB5lQ.js"),__vite__mapDeps([21,8,1,2])).then(e=>({default:e.Analytics}))),EN=x.lazy(()=>O(()=>import("./AuditTrail-BK68ePu0.js"),__vite__mapDeps([22,8,2,3])).then(e=>({default:e.AuditTrail}))),bN=x.lazy(()=>O(()=>import("./Monitoring-9TN9MK4y.js"),__vite__mapDeps([23,8,2,11,20])).then(e=>({default:e.Monitoring}))),TN=x.lazy(()=>O(()=>import("./BatchJobs-Bz6KFnXD.js"),__vite__mapDeps([24,8,2,3])).then(e=>({default:e.BatchJobs}))),LN=x.lazy(()=>O(()=>import("./SanctionsLists-CPA3UH2v.js"),__vite__mapDeps([25,8,2,3,26])).then(e=>({default:e.SanctionsLists}))),AN=x.lazy(()=>O(()=>import("./Login-677LEGP1.js"),__vite__mapDeps([27,28,29])).then(e=>({default:e.Login}))),jN=x.lazy(()=>O(()=>import("./Signup-C0FmFOo_.js"),__vite__mapDeps([30,29])).then(e=>({default:e.Signup}))),RN=x.lazy(()=>O(()=>import("./LandingPage-CjaP0zw4.js"),__vite__mapDeps([31,28,17]))),$N=x.lazy(()=>O(()=>import("./BillingPage-R9nQ5nFb.js"),__vite__mapDeps([32,33,20,17]))),NN=x.lazy(()=>O(()=>import("./Onboarding-Cf0Y83lX.js"),__vite__mapDeps([34,9]))),DN=x.lazy(()=>O(()=>import("./Tenants-RB9E9ick.js"),__vite__mapDeps([35,8,36]))),MN=x.lazy(()=>O(()=>import("./TenantDetail-CgZQHUY8.js"),__vite__mapDeps([37,8]))),ON=x.lazy(()=>O(()=>import("./SystemHealth-B_8u4eva.js"),__vite__mapDeps([38,8]))),IN=x.lazy(()=>O(()=>import("./DataSources-u3-Ri_5_.js"),__vite__mapDeps([39,8,2,3]))),VN=x.lazy(()=>O(()=>import("./Operations-CcXwc2xw.js"),__vite__mapDeps([40,8,26,18]))),FN=x.lazy(()=>O(()=>import("./ScheduledTasks-Dsjk-6UR.js"),__vite__mapDeps([41,8,3,10,42]))),zN=x.lazy(()=>O(()=>import("./Team-CUo_FlU7.js"),__vite__mapDeps([43,8,2,3,6]))),BN=x.lazy(()=>O(()=>import("./TermsOfService-BfL-kndX.js"),[])),UN=x.lazy(()=>O(()=>import("./PrivacyPolicy-DZ2xrKir.js"),[])),WN=x.lazy(()=>O(()=>import("./ForgotPassword-BPYyQFQp.js"),__vite__mapDeps([44,12,16]))),HN=x.lazy(()=>O(()=>import("./ListsMarketplace-CG6KkT9B.js"),__vite__mapDeps([45,36,3,26,17,20,11,14])).then(e=>({default:e.ListsMarketplace}))),KN=x.lazy(()=>O(()=>import("./APIKeys-DaMSBZQL.js"),__vite__mapDeps([46,8,2,3,6]))),QN=x.lazy(()=>O(()=>import("./Webhooks-BZpAfaxv.js"),__vite__mapDeps([47,8,2,3,6])));x.lazy(()=>O(()=>import("./CryptoScreening-C7yFlskC.js"),__vite__mapDeps([48,8,2,3])));x.lazy(()=>O(()=>import("./TxnScreening-B7cm2-eh.js"),__vite__mapDeps([49,8,2,3])));const GN=x.lazy(()=>O(()=>import("./MFASetup-BxqCPvui.js"),__vite__mapDeps([50,8,2]))),YN=x.lazy(()=>O(()=>import("./ResetPassword-AtxtpIG1.js"),__vite__mapDeps([51,12]))),qN=x.lazy(()=>O(()=>import("./TaskHistory-BCmEM89q.js"),__vite__mapDeps([52,8,3,10,42])));function XN(e,t,n){return h.jsxs(h.Fragment,{children:[h.jsx(I,{path:"/",element:h.jsx(t,{children:h.jsx(RN,{})})}),h.jsx(I,{path:"/login",element:h.jsx(AN,{})}),h.jsx(I,{path:"/signup",element:h.jsx(jN,{})}),h.jsx(I,{path:"/forgot-password",element:h.jsx(WN,{})}),h.jsx(I,{path:"/terms",element:h.jsx(t,{children:h.jsx(BN,{})})}),h.jsx(I,{path:"/privacy",element:h.jsx(t,{children:h.jsx(UN,{})})}),h.jsx(I,{path:"/dashboard",element:h.jsx(e,{children:h.jsx(wN,{})})}),h.jsx(I,{path:"/alerts",element:h.jsx(e,{children:h.jsx(_N,{})})}),h.jsx(I,{path:"/alerts/:id",element:h.jsx(e,{children:h.jsx(SN,{})})}),h.jsx(I,{path:"/screen",element:h.jsx(e,{children:h.jsx(kN,{})})}),h.jsx(I,{path:"/config",element:h.jsx(e,{children:h.jsx(CN,{})})}),h.jsx(I,{path:"/analytics",element:h.jsx(e,{children:h.jsx(PN,{})})}),h.jsx(I,{path:"/audit",element:h.jsx(e,{children:h.jsx(EN,{})})}),h.jsx(I,{path:"/monitoring",element:h.jsx(e,{children:h.jsx(bN,{})})}),h.jsx(I,{path:"/batch",element:h.jsx(e,{children:h.jsx(TN,{})})}),h.jsx(I,{path:"/lists",element:h.jsx(e,{children:h.jsx(LN,{})})}),h.jsx(I,{path:"/lists/marketplace",element:h.jsx(e,{children:h.jsx(HN,{})})}),h.jsx(I,{path:"/billing",element:h.jsx(Pl,{children:h.jsx(n,{children:h.jsx($N,{})})})}),h.jsx(I,{path:"/onboarding",element:h.jsx(Pl,{children:h.jsx(NN,{})})}),h.jsx(I,{path:"/admin/tenants",element:h.jsx(e,{children:h.jsx(DN,{})})}),h.jsx(I,{path:"/admin/tenants/:id",element:h.jsx(e,{children:h.jsx(MN,{})})}),h.jsx(I,{path:"/admin/health",element:h.jsx(e,{children:h.jsx(ON,{})})}),h.jsx(I,{path:"/admin/data-sources",element:h.jsx(e,{children:h.jsx(IN,{})})}),h.jsx(I,{path:"/admin/operations",element:h.jsx(e,{children:h.jsx(VN,{})})}),h.jsx(I,{path:"/admin/tasks",element:h.jsx(e,{children:h.jsx(FN,{})})}),h.jsx(I,{path:"/team",element:h.jsx(e,{children:h.jsx(zN,{})})}),h.jsx(I,{path:"/keys",element:h.jsx(e,{children:h.jsx(KN,{})})}),h.jsx(I,{path:"/webhooks",element:h.jsx(e,{children:h.jsx(QN,{})})}),h.jsx(I,{path:"/settings/mfa",element:h.jsx(e,{children:h.jsx(GN,{})})}),h.jsx(I,{path:"/tasks",element:h.jsx(e,{children:h.jsx(qN,{})})}),h.jsx(I,{path:"/reset-password",element:h.jsx(YN,{})})]})}const ZN=x.lazy(()=>O(()=>import("./CaseManagement-B1Q4Dp1Y.js"),__vite__mapDeps([53,8,2,6])).then(e=>({default:e.CaseManagement}))),JN=x.lazy(()=>O(()=>import("./CaseDetail-DYs7Zg_y.js"),[]).then(e=>({default:e.CaseDetail}))),eD=x.lazy(()=>O(()=>import("./RiskAssessment-Dzuh1Usv.js"),__vite__mapDeps([54,8,2])).then(e=>({default:e.RiskAssessment}))),tD=x.lazy(()=>O(()=>import("./UBOChain-falXAsCo.js"),[]).then(e=>({default:e.UBOChain}))),nD=x.lazy(()=>O(()=>import("./EDDWorkflow-CFzlEO0e.js"),[]).then(e=>({default:e.EDDWorkflow}))),rD=x.lazy(()=>O(()=>import("./TransactionMonitoring-DGh_T22s.js"),__vite__mapDeps([55,8,3,33,11])).then(e=>({default:e.TransactionMonitoring}))),iD=x.lazy(()=>O(()=>import("./AdverseMedia-DckXfMzS.js"),[]).then(e=>({default:e.AdverseMedia}))),sD=x.lazy(()=>O(()=>import("./PEPScreening-pUQjTH9c.js"),__vite__mapDeps([56,8,2,36,15,3,16,17,18])).then(e=>({default:e.PEPScreening}))),oD=x.lazy(()=>O(()=>import("./SARForm-D8w2ZGe-.js"),[]).then(e=>({default:e.SARForm}))),aD=x.lazy(()=>O(()=>import("./ComplianceReport-Dhssqc9T.js"),[]).then(e=>({default:e.ComplianceReport}))),lD=x.lazy(()=>O(()=>import("./CryptoScreening-C7yFlskC.js"),__vite__mapDeps([48,8,2,3]))),uD=x.lazy(()=>O(()=>import("./TxnScreening-B7cm2-eh.js"),__vite__mapDeps([49,8,2,3])));function cD(e){return h.jsxs(h.Fragment,{children:[h.jsx(I,{path:"/compliance/cases",element:h.jsx(e,{children:h.jsx(ZN,{})})}),h.jsx(I,{path:"/compliance/cases/:id",element:h.jsx(e,{children:h.jsx(JN,{})})}),h.jsx(I,{path:"/compliance/risk",element:h.jsx(e,{children:h.jsx(eD,{})})}),h.jsx(I,{path:"/compliance/ubo/:id",element:h.jsx(e,{children:h.jsx(tD,{})})}),h.jsx(I,{path:"/compliance/edd/:id",element:h.jsx(e,{children:h.jsx(nD,{})})}),h.jsx(I,{path:"/compliance/txn",element:h.jsx(e,{children:h.jsx(rD,{})})}),h.jsx(I,{path:"/compliance/media",element:h.jsx(e,{children:h.jsx(iD,{})})}),h.jsx(I,{path:"/compliance/pep",element:h.jsx(e,{children:h.jsx(sD,{})})}),h.jsx(I,{path:"/compliance/sar",element:h.jsx(e,{children:h.jsx(oD,{})})}),h.jsx(I,{path:"/compliance/report",element:h.jsx(e,{children:h.jsx(aD,{})})}),h.jsx(I,{path:"/compliance/crypto",element:h.jsx(e,{children:h.jsx(lD,{})})}),h.jsx(I,{path:"/compliance/txn-screen",element:h.jsx(e,{children:h.jsx(uD,{})})})]})}const dD=x.lazy(()=>O(()=>import("./Overview-B_Ky0VWV.js"),__vite__mapDeps([57,8]))),fD=x.lazy(()=>O(()=>import("./Users-Doakpg9c.js"),__vite__mapDeps([58,8,3,36]))),hD=x.lazy(()=>O(()=>import("./APIKeys-BvwFauIs.js"),__vite__mapDeps([59,8,3])));function pD(e){return h.jsxs(h.Fragment,{children:[h.jsx(I,{path:"/platform/overview",element:h.jsx(e,{children:h.jsx(dD,{})})}),h.jsx(I,{path:"/platform/users",element:h.jsx(e,{children:h.jsx(fD,{})})}),h.jsx(I,{path:"/platform/keys",element:h.jsx(e,{children:h.jsx(hD,{})})})]})}const ka=({children:e})=>h.jsx(Pl,{children:h.jsx(WL,{children:e})}),mD=()=>h.jsx("div",{className:"flex items-center justify-center h-96",children:h.jsx(zm,{})});function gD(){return $T(),h.jsx(kL,{children:h.jsx(MT,{children:h.jsx(vL,{children:h.jsx(LT,{children:h.jsx(x.Suspense,{fallback:h.jsx(mD,{}),children:h.jsxs(_T,{children:[XN(ka,gN,yN),cD(ka),pD(ka)]})})})})})})}Ca.createRoot(document.getElementById("root")).render(h.jsx(Ci.StrictMode,{children:h.jsx(gD,{})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{ZT as $,Nm as A,SL as B,Dm as C,QT as D,Og as E,YT as F,Mm as G,xj as H,_e as I,SD as J,is as K,zm as L,Wm as M,VT as N,GT as O,rL as P,aN as Q,Ci as R,aL as S,JT as T,cL as U,eL as V,dL as W,Fu as X,FT as Y,hL as Z,fL as _,kn as a,ys as b,U as c,So as d,BT as e,Vu as f,$n as g,UT as h,wD as i,h as j,Kd as k,Sn as l,xD as m,gy as n,lL as o,_D as p,ag as q,x as r,gr as s,Mg as t,$u as u,zu as v,bt as w,X as x,ff as y,Si as z};