@hivemagnus/magnus-ui 2.3.1 → 2.3.3

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 (193) hide show
  1. package/dist/app/apps/dashboard/.next/BUILD_ID +1 -1
  2. package/dist/app/apps/dashboard/.next/build-manifest.json +3 -3
  3. package/dist/app/apps/dashboard/.next/prerender-manifest.json +3 -3
  4. package/dist/app/apps/dashboard/.next/required-server-files.json +2 -2
  5. package/dist/app/apps/dashboard/.next/server/app/_global-error.html +1 -1
  6. package/dist/app/apps/dashboard/.next/server/app/_global-error.rsc +1 -1
  7. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/dist/app/apps/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  11. package/dist/app/apps/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page.js.nft.json +1 -1
  13. package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page_client-reference-manifest.js +1 -1
  14. package/dist/app/apps/dashboard/.next/server/app/anomalies/page.js.nft.json +1 -1
  15. package/dist/app/apps/dashboard/.next/server/app/anomalies/page_client-reference-manifest.js +1 -1
  16. package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page.js.nft.json +1 -1
  17. package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page_client-reference-manifest.js +1 -1
  18. package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/callback/route.js.nft.json +1 -1
  19. package/dist/app/apps/dashboard/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  20. package/dist/app/apps/dashboard/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  21. package/dist/app/apps/dashboard/.next/server/app/api/auth/me/route.js.nft.json +1 -1
  22. package/dist/app/apps/dashboard/.next/server/app/api/federation/route.js.nft.json +1 -1
  23. package/dist/app/apps/dashboard/.next/server/app/api/hermes/dashboard/[[...path]]/route.js.nft.json +1 -1
  24. package/dist/app/apps/dashboard/.next/server/app/api/hive-router/dashboard/[[...path]]/route.js.nft.json +1 -1
  25. package/dist/app/apps/dashboard/.next/server/app/api/proxy/[...path]/route.js.nft.json +1 -1
  26. package/dist/app/apps/dashboard/.next/server/app/api/terminal/close/route.js.nft.json +1 -1
  27. package/dist/app/apps/dashboard/.next/server/app/api/terminal/input/route.js.nft.json +1 -1
  28. package/dist/app/apps/dashboard/.next/server/app/api/terminal/open/route.js.nft.json +1 -1
  29. package/dist/app/apps/dashboard/.next/server/app/api/terminal/resize/route.js.nft.json +1 -1
  30. package/dist/app/apps/dashboard/.next/server/app/api/terminal/stream/route.js.nft.json +1 -1
  31. package/dist/app/apps/dashboard/.next/server/app/api-docs/page.js.nft.json +1 -1
  32. package/dist/app/apps/dashboard/.next/server/app/api-docs/page_client-reference-manifest.js +1 -1
  33. package/dist/app/apps/dashboard/.next/server/app/application-operations/page.js.nft.json +1 -1
  34. package/dist/app/apps/dashboard/.next/server/app/application-operations/page_client-reference-manifest.js +1 -1
  35. package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page.js.nft.json +1 -1
  36. package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page_client-reference-manifest.js +1 -1
  37. package/dist/app/apps/dashboard/.next/server/app/ardent/page.js.nft.json +1 -1
  38. package/dist/app/apps/dashboard/.next/server/app/ardent/page_client-reference-manifest.js +1 -1
  39. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page.js.nft.json +1 -1
  40. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page_client-reference-manifest.js +1 -1
  41. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page.js.nft.json +1 -1
  42. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page_client-reference-manifest.js +1 -1
  43. package/dist/app/apps/dashboard/.next/server/app/audit/page.js.nft.json +1 -1
  44. package/dist/app/apps/dashboard/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  45. package/dist/app/apps/dashboard/.next/server/app/codex/installations/page.js.nft.json +1 -1
  46. package/dist/app/apps/dashboard/.next/server/app/codex/installations/page_client-reference-manifest.js +1 -1
  47. package/dist/app/apps/dashboard/.next/server/app/codex/page.js.nft.json +1 -1
  48. package/dist/app/apps/dashboard/.next/server/app/codex/page_client-reference-manifest.js +1 -1
  49. package/dist/app/apps/dashboard/.next/server/app/commands/page.js.nft.json +1 -1
  50. package/dist/app/apps/dashboard/.next/server/app/commands/page_client-reference-manifest.js +1 -1
  51. package/dist/app/apps/dashboard/.next/server/app/cron/page/server-reference-manifest.json +1 -1
  52. package/dist/app/apps/dashboard/.next/server/app/cron/page.js.nft.json +1 -1
  53. package/dist/app/apps/dashboard/.next/server/app/cron/page_client-reference-manifest.js +1 -1
  54. package/dist/app/apps/dashboard/.next/server/app/files/page.js.nft.json +1 -1
  55. package/dist/app/apps/dashboard/.next/server/app/files/page_client-reference-manifest.js +1 -1
  56. package/dist/app/apps/dashboard/.next/server/app/fleet-map/page.js.nft.json +1 -1
  57. package/dist/app/apps/dashboard/.next/server/app/fleet-map/page_client-reference-manifest.js +1 -1
  58. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js +1 -1
  59. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js.nft.json +1 -1
  60. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page_client-reference-manifest.js +1 -1
  61. package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page.js.nft.json +1 -1
  62. package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page_client-reference-manifest.js +1 -1
  63. package/dist/app/apps/dashboard/.next/server/app/governor/operations/page.js.nft.json +1 -1
  64. package/dist/app/apps/dashboard/.next/server/app/governor/operations/page_client-reference-manifest.js +1 -1
  65. package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page.js.nft.json +1 -1
  66. package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page_client-reference-manifest.js +1 -1
  67. package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page.js.nft.json +1 -1
  68. package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page_client-reference-manifest.js +1 -1
  69. package/dist/app/apps/dashboard/.next/server/app/hermes-security/page.js.nft.json +1 -1
  70. package/dist/app/apps/dashboard/.next/server/app/hermes-security/page_client-reference-manifest.js +1 -1
  71. package/dist/app/apps/dashboard/.next/server/app/incidents/page.js.nft.json +1 -1
  72. package/dist/app/apps/dashboard/.next/server/app/incidents/page_client-reference-manifest.js +1 -1
  73. package/dist/app/apps/dashboard/.next/server/app/library/page.js.nft.json +1 -1
  74. package/dist/app/apps/dashboard/.next/server/app/library/page_client-reference-manifest.js +1 -1
  75. package/dist/app/apps/dashboard/.next/server/app/login/page.js.nft.json +1 -1
  76. package/dist/app/apps/dashboard/.next/server/app/login/page_client-reference-manifest.js +1 -1
  77. package/dist/app/apps/dashboard/.next/server/app/logs/page.js.nft.json +1 -1
  78. package/dist/app/apps/dashboard/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  79. package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js +1 -1
  80. package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js.nft.json +1 -1
  81. package/dist/app/apps/dashboard/.next/server/app/mission-control/page_client-reference-manifest.js +1 -1
  82. package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page.js.nft.json +1 -1
  83. package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page_client-reference-manifest.js +1 -1
  84. package/dist/app/apps/dashboard/.next/server/app/nodes/page.js.nft.json +1 -1
  85. package/dist/app/apps/dashboard/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  86. package/dist/app/apps/dashboard/.next/server/app/notifications/page.js.nft.json +1 -1
  87. package/dist/app/apps/dashboard/.next/server/app/notifications/page_client-reference-manifest.js +1 -1
  88. package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page.js.nft.json +1 -1
  89. package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page_client-reference-manifest.js +1 -1
  90. package/dist/app/apps/dashboard/.next/server/app/orchestra/page.js.nft.json +1 -1
  91. package/dist/app/apps/dashboard/.next/server/app/orchestra/page_client-reference-manifest.js +1 -1
  92. package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page.js.nft.json +1 -1
  93. package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page_client-reference-manifest.js +1 -1
  94. package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page.js.nft.json +1 -1
  95. package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page_client-reference-manifest.js +1 -1
  96. package/dist/app/apps/dashboard/.next/server/app/page.js.nft.json +1 -1
  97. package/dist/app/apps/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  98. package/dist/app/apps/dashboard/.next/server/app/retention/page.js.nft.json +1 -1
  99. package/dist/app/apps/dashboard/.next/server/app/retention/page_client-reference-manifest.js +1 -1
  100. package/dist/app/apps/dashboard/.next/server/app/roles/page.js.nft.json +1 -1
  101. package/dist/app/apps/dashboard/.next/server/app/roles/page_client-reference-manifest.js +1 -1
  102. package/dist/app/apps/dashboard/.next/server/app/rollouts/page.js.nft.json +1 -1
  103. package/dist/app/apps/dashboard/.next/server/app/rollouts/page_client-reference-manifest.js +1 -1
  104. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page.js.nft.json +1 -1
  105. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page_client-reference-manifest.js +1 -1
  106. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page.js.nft.json +1 -1
  107. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page_client-reference-manifest.js +1 -1
  108. package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page.js.nft.json +1 -1
  109. package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page_client-reference-manifest.js +1 -1
  110. package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page.js.nft.json +1 -1
  111. package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page_client-reference-manifest.js +1 -1
  112. package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page.js.nft.json +1 -1
  113. package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page_client-reference-manifest.js +1 -1
  114. package/dist/app/apps/dashboard/.next/server/app/security-fusion/page.js.nft.json +1 -1
  115. package/dist/app/apps/dashboard/.next/server/app/security-fusion/page_client-reference-manifest.js +1 -1
  116. package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page.js.nft.json +1 -1
  117. package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page_client-reference-manifest.js +1 -1
  118. package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page.js.nft.json +1 -1
  119. package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page_client-reference-manifest.js +1 -1
  120. package/dist/app/apps/dashboard/.next/server/app/skills/page/server-reference-manifest.json +1 -1
  121. package/dist/app/apps/dashboard/.next/server/app/skills/page.js.nft.json +1 -1
  122. package/dist/app/apps/dashboard/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  123. package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page.js.nft.json +1 -1
  124. package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page_client-reference-manifest.js +1 -1
  125. package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page.js.nft.json +1 -1
  126. package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page_client-reference-manifest.js +1 -1
  127. package/dist/app/apps/dashboard/.next/server/app/webhooks/page.js.nft.json +1 -1
  128. package/dist/app/apps/dashboard/.next/server/app/webhooks/page_client-reference-manifest.js +1 -1
  129. package/dist/app/apps/dashboard/.next/server/chunks/ssr/1q96_modules_lucide-react_dist_esm_icons_shield-exclamation-point_mjs_1tkr7n-tgo96-._.js +3 -0
  130. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06giq9g4me8eh._.js +1 -1
  131. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__08sgyyf_y8ab8._.js +1 -1
  132. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11pe-l2-ko65_._.js +1 -1
  133. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0wsvm9s-rtmzo._.js → [root-of-the-server]__1puyk1oobvatz._.js} +1 -1
  134. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0hkl39n6k8s99._.js → [root-of-the-server]__1qgn9450v696_._.js} +1 -1
  135. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{_1ircn2sooizal._.js → _0_1zoskz6tg4y._.js} +2 -2
  136. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0caxc2bc6a__r._.js +1 -1
  137. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0fge-mr3ok0j9._.js +1 -1
  138. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0sfwhwcsjtppm._.js +3 -0
  139. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{_0f89fican-_s9._.js → _11ouppxul_ebs._.js} +2 -2
  140. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ml_bvfb1fitq._.js +1 -1
  141. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1oebzzj_en62h._.js +1 -1
  142. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_20ln5i8p8muqj._.js +1 -1
  143. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js +2 -2
  144. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_anomalies_page_tsx_1oqqex9du4yhn._.js +1 -1
  145. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_codex_page_tsx_113aas0vmxegr._.js +1 -1
  146. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_cron_page_tsx_1i3duyygc0_tg._.js +1 -1
  147. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_dashboard-client_tsx_0o_8papeie86c._.js +1 -1
  148. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_fleet-readiness_page_tsx_129clnb6oplu7._.js +1 -1
  149. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_governor_operations_page_tsx_1tvdkgil8mlgk._.js +1 -1
  150. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_mission-control_page_tsx_0crgxncex_u3w._.js +1 -1
  151. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_nodes_[nodeId]_page_tsx_1q7fqu18oklzc._.js +1 -1
  152. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_nodes_nodes-client_tsx_0pt4iarhpqbgn._.js +1 -1
  153. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_orchestra_web-gateway_page_tsx_1fz12np0wk27t._.js +1 -1
  154. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_roles_roles-client_tsx_1ivvp_kqt5io0._.js +1 -1
  155. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_skills_page_tsx_0n5zp4xad38in._.js +1 -1
  156. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_components_nodes_tailscale-expiry-alert_tsx_1ll2-i32ej6c2._.js +1 -1
  157. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_1w0trtqcl9-wn._.js +3 -0
  158. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{node_modules_@xterm_1aplmmrj23vvx._.js → node_modules_@xterm_120daugm414or._.js} +1 -1
  159. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1z36d7pdfx5zy._.js +3 -0
  160. package/dist/app/apps/dashboard/.next/server/middleware-build-manifest.js +3 -3
  161. package/dist/app/apps/dashboard/.next/server/pages/500.html +1 -1
  162. package/dist/app/apps/dashboard/.next/server/preview-props.json +3 -3
  163. package/dist/app/apps/dashboard/.next/server/server-reference-manifest.js +1 -1
  164. package/dist/app/apps/dashboard/.next/server/server-reference-manifest.json +3 -3
  165. package/dist/app/apps/dashboard/.next/static/chunks/{0diifaom2d_cn.js → 07uou-f2ig2z3.js} +1 -1
  166. package/dist/app/apps/dashboard/.next/static/chunks/0c34_gunccud3.css +2 -0
  167. package/dist/app/apps/dashboard/.next/static/chunks/{1qof_dzyxcovx.js → 0jjlvquibj1y7.js} +1 -1
  168. package/dist/app/apps/dashboard/.next/static/chunks/{0jd62jw1t6xu7.js → 0lday6tat45ag.js} +1 -1
  169. package/dist/app/apps/dashboard/.next/static/chunks/{329-89v549ihn.js → 0t2ucm_2a2rg6.js} +1 -1
  170. package/dist/app/apps/dashboard/.next/static/chunks/{07ca8rxnrcu1j.js → 13xhzbvpgnpe-.js} +1 -1
  171. package/dist/app/apps/dashboard/.next/static/chunks/{2ztok0-w0f1y6.js → 1fv88nu13uv4g.js} +2 -2
  172. package/dist/app/apps/dashboard/.next/static/chunks/{1uj8oezn_z82c.js → 1kjl44-64ume7.js} +1 -1
  173. package/dist/app/apps/dashboard/.next/static/chunks/{2h6o1ta-xcjtp.js → 215cfit1tgz2o.js} +1 -1
  174. package/dist/app/apps/dashboard/.next/static/chunks/{2a69e_72vy07_.js → 23o8zfgrdxuhk.js} +1 -1
  175. package/dist/app/apps/dashboard/.next/static/chunks/{028ezuxrvvye_.js → 2lk4ailve7631.js} +1 -1
  176. package/dist/app/apps/dashboard/.next/static/chunks/{3153ier_x5pc9.js → 2lulmsr2vjuw5.js} +1 -1
  177. package/dist/app/apps/dashboard/.next/static/chunks/{3fyjlk6fsmzc5.js → 36vn0m8_5apop.js} +1 -1
  178. package/dist/app/apps/dashboard/.next/static/chunks/{2p26kwyyzgqph.js → 37pb0l96d03rk.js} +1 -1
  179. package/dist/app/apps/dashboard/.next/static/chunks/3gd78w81m3ouh.js +1 -0
  180. package/dist/app/apps/dashboard/.next/static/chunks/{2p-sasidykf0f.js → 3qq-otw-t-6b0.js} +1 -1
  181. package/dist/app/apps/dashboard/.next/static/chunks/{1hcdglofzkp3n.js → 3y_9v_-9n_gex.js} +1 -1
  182. package/dist/app/apps/dashboard/package.json +8 -8
  183. package/dist/app/apps/dashboard/server.js +1 -1
  184. package/package.json +8 -8
  185. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0wh_e2bpxcaf4._.js +0 -3
  186. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_138fu3pss1hww._.js +0 -3
  187. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1wnnq70cs49fi._.js +0 -3
  188. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_shield-alert_mjs_171qztcjn79hl._.js +0 -3
  189. package/dist/app/apps/dashboard/.next/static/chunks/0fy1-ohtdf-xm.css +0 -2
  190. package/dist/app/apps/dashboard/.next/static/chunks/11d-a975loj77.js +0 -1
  191. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_buildManifest.js +0 -0
  192. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_clientMiddlewareManifest.js +0 -0
  193. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32568,32181,t=>{"use strict";let e,i,n,s,r,o,a,l;var h=t.i(43476),u=t.i(71645),d=t.i(74080),c=t.i(63676);let p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set([...p,"pathRotation"]),f=(t,e,i)=>i>e?e:i<t?t:i,g={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},y={...g,transform:t=>f(0,1,t)},v={...g,default:1},x=t=>Math.round(1e5*t)/1e5,w=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,b=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T=(t,e)=>i=>!!("string"==typeof i&&b.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),S=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(w);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},P={...g,transform:t=>Math.round(f(0,255,t))},A={test:T("rgb","red"),parse:S("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+P.transform(t)+", "+P.transform(e)+", "+P.transform(i)+", "+x(y.transform(n))+")"},E=(t,e,i)=>{let n=t.substring(1+e*i,1+(e+1)*i);return i>1?n:n+n},M={test:T("#"),parse:function(t){let e=t.length>5?2:1,i=E(t,3,e);return{red:parseInt(E(t,0,e),16),green:parseInt(E(t,1,e),16),blue:parseInt(E(t,2,e),16),alpha:i?parseInt(i,16)/255:1}},transform:A.transform},k=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),V=k("deg"),C=k("%"),R=k("px"),D=k("vh"),L=k("vw"),j={...C,parse:t=>C.parse(t)/100,transform:t=>C.transform(100*t)},F={test:T("hsl","hue"),parse:S("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+C.transform(x(e))+", "+C.transform(x(i))+", "+x(y.transform(n))+")"},B={test:t=>A.test(t)||M.test(t)||F.test(t),parse:t=>A.test(t)?A.parse(t):F.test(t)?F.parse(t):M.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?A.transform(t):F.transform(t),getAnimatableNone:t=>{let e=B.parse(t);return e.alpha=0,B.transform(e)}},O=new RegExp(w.source),I=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),U="number",N="color",W=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function $(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(W,t=>(B.test(t)?(n.color.push(r),s.push(N),i.push(B.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(U),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function z({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===U?s+=x(n[r]):t===N?s+=B.transform(n[r]):s+=n[r]}return s}}let _={test:function(t){return isNaN(t)&&"string"==typeof t&&(O.test(t)||I.test(t))},parse:function(t){return $(t).values},createTransformer:function(t){return z($(t))},getAnimatableNone:function(t){let e=$(t);return z(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:B.test(t)?B.getAnimatableNone(t):t)(t,e.split[i])))}},Y=new Set(["brightness","contrast","saturate","opacity"]);function H(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(w)||[];if(!n)return t;let s=i.replace(n,""),r=+!!Y.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let X=/\b([a-z-]*)\(.*?\)/gu,K={..._,getAnimatableNone:t=>{let e=t.match(X);return e?e.map(H).join(" "):t}},G={..._,getAnimatableNone:t=>{let e=_.parse(t);return _.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},q={...g,transform:Math.round},Z={rotate:V,pathRotation:V,rotateX:V,rotateY:V,rotateZ:V,scale:v,scaleX:v,scaleY:v,scaleZ:v,skew:V,skewX:V,skewY:V,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:y,originX:j,originY:j,originZ:R},J={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,...Z,zIndex:q,fillOpacity:y,strokeOpacity:y,numOctaves:q},Q={...J,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:K,WebkitFilter:K,mask:G,WebkitMask:G},tt=t=>Q[t],te=()=>({translate:0,scale:1,origin:0,originPoint:0}),ti=()=>({x:te(),y:te()}),tn=()=>({min:0,max:0}),ts=()=>({x:tn(),y:tn()}),tr=t=>!!(t&&t.getVelocity),to=new Set(["width","height","top","left","right","bottom",...p]),ta=[g,R,C,V,L,D,{test:t=>"auto"===t,parse:t=>t}],tl=t=>ta.find(e=>e.test(t));var th=t.i(47167);let tu=t=>e=>"string"==typeof e&&e.startsWith(t),td=tu("--"),tc=tu("var(--"),tp=t=>!!tc(t)&&tm.test(t.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tf(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ty(t,e,i=1){let[n,s]=function(t){let e=tg.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(t);if(!n)return;let r=window.getComputedStyle(e).getPropertyValue(n);if(r){let t=r.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tp(s)?ty(s,e,i+1):s}let tv=new Set([K,G]);function tx(t,s){if(t===e&&s===i)return n;let r=tt(t);return tv.has(r)||(r=_),n=r.getAnimatableNone?r.getAnimatableNone(s):void 0,e=t,i=s,n}let tw=t=>180*t/Math.PI,tb=t=>tS(tw(Math.atan2(t[1],t[0]))),tT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tb,rotateZ:tb,skewX:t=>tw(Math.atan(t[1])),skewY:t=>tw(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tS=t=>((t%=360)<0&&(t+=360),t),tP=t=>Math.hypot(t[0],t[1]),tA=t=>Math.hypot(t[4],t[5]),tE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tP,scaleY:tA,scaleZ:t=>Math.hypot(t[8],t[9],t[10]),scale:t=>(tP(t)+tA(t))/2,rotateX:t=>tS(tw(Math.atan2(t[6],t[5]))),rotateY:t=>tS(tw(Math.atan2(-t[2],t[0]))),rotateZ:tb,rotate:tb,skewX:t=>tw(Math.atan(t[4])),skewY:t=>tw(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tM(t){return+!!t.includes("scale")}function tk(t,e){if(!t||"none"===t)return tM(e);let i=t.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!i)return tM(e);let n=(i[1]?tE:tT)[e],s=i[2].split(",").map(t=>parseFloat(t));return"function"==typeof n?n(s):s[n]}let tV=t=>t===g||t===R,tC=new Set(["x","y","z"]),tR=p.filter(t=>!tC.has(t)),tD=new Set(["bottom","right"]);function tL(t,e,i,n,s,r){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],h=l-a;return"border-box"===r?h:h-parseFloat(n)-parseFloat(s)}let tj=({transform:t})=>tk(t,"x"),tF=({transform:t})=>tk(t,"y"),tB={width:({width:t,paddingLeft:e="0",paddingRight:i="0",boxSizing:n},s)=>tL(t,s,"x",e,i,n),height:({height:t,paddingTop:e="0",paddingBottom:i="0",boxSizing:n},s)=>tL(t,s,"y",e,i,n),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:i}=e();return parseFloat(t)+(i.max-i.min)},right:({left:t},e)=>{let{x:i}=e();return parseFloat(t)+(i.max-i.min)},x:tj,y:tF,translateX:tj,translateY:tF},tO=t=>t,tI={},tU=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tN(t,e,i={delta:0,timestamp:0,isProcessing:!1}){let n=!1,s=!0,r=()=>n=!0,o=tU.reduce((t,e)=>(t[e]=function(t){let e,i=new Set,n=new Set,s=!1,r=!1,o=new Set,a={delta:0,timestamp:0,isProcessing:!1};function l(i){o.has(i)&&(n.add(i),t()),(e=i)(a)}let h={schedule:(t,r=!1,a=!1)=>{let l=a&&s,h=l?i:n;return r&&o.add(t),l&&t!==e&&h.delete(t),h.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0;let o=i;i=n,n=o,i.forEach(l),i.clear(),e=void 0,s=!1,r&&(r=!1,h.process(t))}};return h}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tI.useManualTiming,o=r?i.timestamp:performance.now();n=!1,r||(i.delta=s?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),h.process(i),u.process(i),d.process(i),c.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))};return{schedule:tU.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!n&&(n=!0,s=!0,i.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tU.length;e++)o[tU[e]].cancel(t)},state:i,steps:o}}let tW={delta:0,timestamp:0,isProcessing:!1},{schedule:t$,cancel:tz,steps:t_}=tN("u">typeof requestAnimationFrame?requestAnimationFrame:tO,!0,tW),tY=new Set,tH=!1,tX=!1,tK=!1;function tG(){if(tX){let t=[],e=new Set,i=new Set;tY.forEach(n=>{n.needsMeasurement&&(t.push(n),e.add(n.element),tD.has(n.name)&&i.add(n.element))});let n=new Map;i.forEach(t=>{let e,i=(e=[],tR.forEach(i=>{let n=t.getValue(i);if(void 0!==n){let t=n.get(),s=+!!i.startsWith("scale");if(t===s)return;e.push([i,t]),n.set(s)}}),e);i.length&&(n.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tX=!1,tH=!1,tY.forEach(t=>t.complete(tK)),tY.clear()}function tq(){tY.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tX=!0)})}class tZ{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tY.add(this),tH||(tH=!0,t$.read(tq),t$.resolveKeyframes(tG))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!_.test(t)&&_.test(i))return tx(e,i)}return t??void 0}(i.readValue(e,r),e,r);void 0!==n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tY.delete(this)}cancel(){"scheduled"===this.state&&(tY.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tJ=new Set(["auto","none","0"]);class tQ extends tZ{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:t,element:e,motionValue:i}=this,n=t[0]??i?.get();if(!e?.current||void 0===n)return!1;for(let e=0;e<t.length;e++)if(tf(e?t[e]:n))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e?.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tp(n=n.trim())){let s=ty(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!to.has(i)||2!==t.length)return;let[n,s]=t;if("number"==typeof n&&"number"==typeof s)return;let r=tl(n),o=tl(s);if(tf(n)!==tf(s)&&tB[i]){this.needsMeasurement=!0;return}if(r!==o)if(tV(r)&&tV(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tB[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tJ.has(e)&&function(t){let e=t.toString();return O.test(e)||I.test(e)}(e)&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]!==n&&(t[s]=tx(i,n))}(t,i,e)}measure(){let{element:t,name:e}=this;return tB[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t?.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&this.motionValue?.jump(n,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,n=e[i];e[i]=this.measure(),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.resolveNoneKeyframes()}}let t0=t=>1e3*t;function t1(t,e){-1===t.indexOf(e)&&t.push(e)}function t2(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t3{constructor(){this.subscriptions=[]}add(t){return t1(this.subscriptions,t),()=>this.remove(t)}remove(t){t2(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t5(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}let t4={};function t9(t,e){let i,n=()=>(void 0===i&&(i=t()),i);return()=>t4[e]??n()}let t6=t9(()=>void 0!==window.ScrollTimeline,"scrollTimeline");function t8(t,{repeat:e,repeatType:i="loop"},n,s=1){let r,o,a=0;for(let e=0;e<t.length;e++){let i=t[e];null!==i&&(a++||(r=i),o=i)}let l=s<0||e&&"loop"!==i&&e%2==1?0:a-1;return l&&void 0!==n?n:l?o:r}class t7{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}function et(){s=void 0}let ee={now:()=>(void 0===s&&ee.set(tW.isProcessing||tI.useManualTiming?tW.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(et)}};function ei(t,e){return{kind:t,animation:e,timestamp:ee.now(),frameTimestamp:tW.timestamp,frameIsProcessing:tW.isProcessing}}function en(t,e,i){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...ei("animation-start",t),options:i?{...e,...i}:e})}catch{}}let es=t=>Array.isArray(t)&&"number"==typeof t[0],er=t9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eo=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ea=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,el={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ea([0,.65,.55,1]),circOut:ea([.55,0,1,.45]),backIn:ea([.31,.01,.66,-.59]),backOut:ea([.33,1.53,.69,.99])};function eh(t){return"function"==typeof t&&"applyToOptions"in t}class eu extends t7{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,th.default;let l=function({type:t,...e}){return eh(t)&&er()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?er()?eo(e,i):"ease-out":es(e)?ea(e):Array.isArray(e)?e.map(e=>t(e,i)||el.easeOut):el[e]}(a,s);Array.isArray(d)&&(u.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(c.pseudoElement=h),t.animate(u,c)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!s){let t=t8(n,this.options,o,this.speed);this.updateMotionValue?.(t),t5(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},en(this,t,l)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch(t){}}stop(){this.isStopped||(this.isStopped=!0,"idle"!==this.state&&null===this.finishedTime&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t0(t),e&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:e,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=this.onFinish=null,t&&t6())?(this.animation.timeline=t,e?.(this.animation),tO):i(this)}}let ed=new Set(["opacity","clipPath","filter","transform"]),ec=new WeakMap,{schedule:ep}=tN(queueMicrotask,!1),em=(t,e)=>e?1e3/e*t:0,ef;class eg{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ee.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.dirty(),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ee.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){var i;return"change"===t?this.onChangeSubscribe(e):((i=this.events)[t]||(i[t]=new t3)).add(e)}onChangeSubscribe(t){let{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new t3,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){t$.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){e&&(this.updatedAt=ee.now(),this.stop()),this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){(this.dependents||(this.dependents=new Set)).add(t)}removeDependent(t){this.dependents?.delete(t)}get(){ef?.push(this);let t=this.animation?.liveValue?.();return void 0===t?this.current:t}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let t=ee.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return em(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return new Promise(e=>this.run(t,e))}run(t,e){let i;this.stop(),this.hasAnimated=!0;let n=!1;i=t(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===i&&(this.animation=void 0),e?.()}),n||(this.animation=i),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}}function ey(t,e){return new eg(t,e)}let ev=new WeakMap;function ex(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ew(t){return"string"==typeof t||Array.isArray(t)}let eb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eT=["initial"].concat(eb);function eS(t){if(ex(t.animate))return!0;for(let e=0;e<eT.length;e++)if(ew(t[eT[e]]))return!0;return!1}function eP(t){return!!(eS(t)||t.variants)}let eA={current:null},eE={current:!1},eM="u">typeof window,ek=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eV={};class eC{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tZ,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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.renderScheduledAt=0,this.scheduleRender=()=>{let t=ee.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,t$.render(this.render,!1,!0))};let{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=eS(e),this.isVariantNode=eP(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&tr(e)&&e.set(l[t])}}mount(t){let e=this.presenceContext;if(this.hasBeenMounted&&e?.isPresent!==!1&&!e?.keepValuesOnRemount)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];if(this.current=t,ev.set(t,this),this.projection?.instance||this.projection?.mount(t),this.isVariantNode&&!this.isControllingVariants){let t=this;do t=!1!==t.props.inherit&&t.parent;while(t&&!t.isVariantNode)if(t){let{variantChildren:e}=t;e.add(this),this.removeFromVariantTree=()=>e.delete(this)}}this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eE.current||function(){if(eE.current=!0,eM)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eA.current=t.matches;t.addEventListener("change",e),e()}else eA.current=!1}(),this.shouldReduceMotion=eA.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection?.unmount(),tz(this.notifyUpdate),tz(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),(this.enteringChildren||(this.enteringChildren=new Set)).add(t)}removeChild(t){this.children.delete(t),this.enteringChildren?.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.get(t)?.(),e.accelerate&&ed.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new eu({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:t0(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=m.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&t$.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ec.get(this.current)?.check()),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i?.()})}sortNodePosition(t){return this.current&&t.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eV){let e=eV[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ts()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){let{transformTemplate:i,onUpdate:n}=this.props;(t.transformTemplate||i)&&this.scheduleRender(),(t.transformTemplate&&!i||t.onUpdate&&!n)&&ec.get(this.current)?.demote(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ek.length;e++){let i=ek[e];this.propEventSubscriptions[i]?.(),delete this.propEventSubscriptions[i];let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(tr(s))t.addValue(n,s);else if(tr(r))t.addValue(n,ey(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,ey(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(t){return this.props.variants?.[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(t,e){let i=this.values.get(t);if(e!==i){i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e);let n=e.get();void 0!==n&&(this.latestValues[t]=n)}}removeValue(t){this.values.delete(t),this.valueSubscriptions.get(t)?.(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){let i=this.props.values?.[t];return i||void 0===(i=this.values.get(t))&&void 0!==e&&(i=ey(e??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;"string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s)))?i=parseFloat(i):"number"!=typeof i&&!_.test(i)&&_.test(e)&&(i=tx(t,e)),this.setBaseTarget(t,tr(i)?i.get():i)}return tr(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}on(t,e){return(this.events[t]||(this.events[t]=new t3)).add(e)}notify(t,...e){this.events[t]?.notify(...e)}scheduleRenderMicrotask(){ep.render(this.render)}}class eR extends eC{constructor(){super(...arguments),this.KeyframeResolver=tQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tr(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eD(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eL=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ej={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eF=p.length,eB={},eO=(t,e,i=eL(e,Z[t]))=>(eB[t]||(eB[t]=(ej[t]||t)+"("))+i+")",eI=(t,e)=>("number"==typeof e?e:parseFloat(e))===+!!t.startsWith("scale");function eU(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(m.has(t)){o=!0;continue}if(td(t)){s[t]=i;continue}{let e=eL(i,J[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="";for(let s=0;s<eF;s++){let r=p[s],o=t[r];if(void 0===o)continue;let a=i&&(e[r]=eL(o,J[r]));eI(r,o)||(n+=eO(r,o,a||void 0)+" ")}let s=t.pathRotation;return s&&(n+=eO("rotate",s)),n=n.trim(),i?i(e,n):n||"none"}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let eN={offset:"stroke-dashoffset",array:"stroke-dasharray"},eW={offset:"strokeDashoffset",array:"strokeDasharray"},e$=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ez(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(eU(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of e$)void 0!==d[t]&&(c[t]=d[t],delete d[t]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eN:eW;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,o,!1)}let e_=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"]),eY=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eH(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eX={};function eK(t,{layout:e,layoutId:i}){return m.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eX[t]||"opacity"===t)}function eG(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(tr(n[e])||s&&tr(s[e])||eK(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eq(t,e,i){let n=eG(t,e,i);for(let i in t)"children"!==i&&(tr(t[i])||tr(e[i]))&&(n[-1!==p.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eZ extends eR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ts}getBaseTargetFromProps(t,e){return m.has(e)?super.getBaseTargetFromProps(t,e)??tM(e):t[e]}getDefaultValue(t){return m.has(t)?this.latestValues[t]??tM(t):void 0}readValueFromInstance(t,e){if(m.has(e)){let t=tt(e);return t&&t.default||0}if(e$.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=e_.has(e)?e:eD(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eq(t,e,i)}build(t,e,i){ez(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eH(t,e,void 0,n),e.attrs)t.setAttribute(e_.has(i)?i:eD(i),e.attrs[i])}mount(t){this.isSVGTag=eY(t.tagName),super.mount(t)}}function eJ({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let eQ=(t,e,i)=>t+(e-t)*i;function e0(t){return void 0===t||1===t}function e1({scale:t,scaleX:e,scaleY:i}){return!e0(t)||!e0(e)||!e0(i)}let e2=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function e3(t){return e1(t)||e4(t)||e5(t)}function e5(t){return t.z||t.rotate||t.rotateX||t.rotateY||t.rotateZ||t.skewX||t.skewY}function e4(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e9(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function e6(t,e=0,i=1,n,s){t.min=e9(t.min,e,i,n,s),t.max=e9(t.max,e,i,n,s)}function e8(t,{x:e,y:i}){e6(t.x,e.translate,e.scale,e.originPoint),e6(t.y,i.translate,i.scale,i.originPoint)}function e7(t,e){t.min+=e,t.max+=e}function it(t,e,i,n,s=.5){let r=eQ(t.min,t.max,s);e6(t,e,i,r,n)}function ie(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function ii(t,e,i){let n=i??t;it(t.x,ie(e.x,n.x),e.scaleX,e.scale,e.originX),it(t.y,ie(e.y,n.y),e.scaleY,e.scale,e.originY)}function is(t,e){return eJ(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class ir extends eR{constructor(){super(...arguments),this.type="html",this.renderInstance=eH}mount(t){super.mount(t)}readValueFromInstance(t,e){if(m.has(e))return this.projection?.isProjecting?tM(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tk(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(td(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return is(t,e)}build(t,e,i){eU(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eG(t,e,i)}}let io=["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 ia(t){if("string"!=typeof t||t.includes("-"));else if(io.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let il={current:void 0},ih=(0,u.createContext)({}),iu=(0,u.createContext)({strict:!1});var id=t.i(37806);let ic=(0,u.createContext)({});function ip(t){return Array.isArray(t)?t.join(" "):t}let im=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ig(t,e,i){for(let n in e)tr(e[n])||eK(n,i)||(t[n]=e[n])}let iy=()=>({...im(),attrs:{}}),iv=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","tap","propagate","ignoreStrict","viewport"]);function ix(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iv.has(t)}function iw(t){return tr(t)?t.get():t}function ib(t,e,i,n){let s=e=>{let s;return"function"==typeof e?e(void 0!==i?i:t.custom,...(s=[{},{}],n?.values.forEach((t,e)=>{s[0][e]=t.get(),s[1][e]=t.getVelocity()}),s)):e};return"string"==typeof(e=s(e))&&(e=t.variants&&t.variants[e]),s(e)}let iT=(0,u.createContext)(null);var iS=t.i(47414);let iP=t=>(e,i)=>{let n=(0,u.useContext)(ic),s=(0,u.useContext)(iT),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=iw(r[t]);let{initial:o,animate:a}=t,l=eS(t),h=eP(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!ex(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=ib(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():(0,iS.f)(r)},iA=iP({scrapeMotionValuesFromProps:eG,createRenderState:im}),iE=iP({scrapeMotionValuesFromProps:eq,createRenderState:iy}),iM={animation:["variants",...eb],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"]},ik=!1;function iV(){return!function(){if(ik)return;let t={};for(let e in iM)t[e]={isEnabled:t=>iM[e].some(e=>!!t[e])};eV=t,ik=!0}(),eV}let iC=Symbol.for("motionComponentSymbol"),iR="data-framer-appear-id",iD=(0,u.createContext)({}),iL="u">typeof window?u.useLayoutEffect:u.useEffect;function ij(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=iV();for(let i in t)e[i]={...e[i],...t[i]};eV=e}(n);let r=i?"svg"===i:ia(t),o=r?iE:iA;function a(i,n){var a;let l,d,c,p=function({layoutId:t}){let e=(0,u.useContext)(ih).id;return e&&void 0!==t?e+"-"+t:t}(i);(0,iS.f)(()=>!!il.current?.sharedNodes.get(p)?.lead&&i.initial)&&(i={...i,initial:!1});let m={...(0,u.useContext)(id.f),...i,layoutId:p},{isStatic:f,isValidProp:g}=m,y=function(t){let{initial:e,animate:i}=function(t,e){if(eS(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ew(e)?e:void 0,animate:ew(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,u.useContext)(ic));return(0,u.useMemo)(()=>({initial:e,animate:i}),[ip(e),ip(i)])}(i),v=o(i,f);if(!f&&"u">typeof window){(0,u.useContext)(iu).strict;let e=function(t){let{drag:e,layout:i}=iV();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:n.MeasureLayout,isEnabled:e?.isEnabled(t)||i?.isEnabled(t),ProjectionNode:n.ProjectionNode}}(m);y.visualElement=function(t,e,i,n,s,r){let{visualElement:o}=(0,u.useContext)(ic),a=(0,u.useContext)(iu),l=(0,u.useContext)(iT),h=(0,u.useContext)(id.f),d=h.reducedMotion,c=h.skipAnimations,p=(0,u.useRef)(null),m=(0,u.useRef)(!1);n=n||a.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:c,isSVG:r}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,u.useContext)(iD);f&&!f.projection&&s&&("html"===f.type||"svg"===f.type)&&s.create(f,i,g),(0,u.useInsertionEffect)(()=>{f&&f.props!==i&&f.update(i,l)});let y=i[iR],v=(0,u.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iL(()=>{m.current&&f&&(f.animationState?.animateChanges(),f.enteringChildren=void 0)},[]),iL(()=>{m.current=!0,f&&(window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,u.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),f.enteringChildren=void 0)}),f}(t,v,m,s,e.ProjectionNode,r),(e.isEnabled||y.visualElement?.projection?.options.layoutId)&&(l=e.MeasureLayout)}return(0,h.jsxs)(ic.Provider,{value:y,children:[l&&y.visualElement?(0,h.jsx)(l,{visualElement:y.visualElement,...m}):null,function(t,e,i,{latestValues:n},s,r=!1,o,a){let l=(o??ia(t)?function(t,e,i,n){let s=(0,u.useMemo)(()=>{let i=iy();return ez(i,e,eY(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};return ig(e,t.style,t),{...s,style:{...e,...s.style}}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ig(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,u.useMemo)(()=>{let i=im();return eU(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),h=function(t,e,i,n){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!tr(t[r])&&((r.startsWith("on")?!ix(r):n?.(r)??!ix(r))||!0===i&&ix(r)||!e&&!ix(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(e,"string"==typeof t,r,a),d=t!==u.Fragment?{...h,...l,ref:i}:{},{children:c}=e,p=(0,u.useMemo)(()=>tr(c)?c.get():c,[c]);return(0,u.createElement)(t,{...d,children:p})}(t,i,(a=y.visualElement,d=(0,u.useRef)(n),(0,u.useInsertionEffect)(()=>{d.current=n}),c=(0,u.useRef)(null),(0,u.useCallback)(t=>{t&&v.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=d.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[a])),v,f,e,r,g)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,u.forwardRef)(a);return l[iC]=t,l}class iF{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iB(t,e,i){return ib(t.getProps(),e,i,t)}let iO=(t,e)=>"exit"===e?t.presenceContext?.custom:void 0;var iI=t.i(53034);function iU(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,iI.f)(i,t):i}function iN(t,e){let i=t.getValue("willChange");if(tr(i)&&i.add)return i.add(e);if(!i&&tI.WillChange){let i=new tI.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iW=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function i$(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iz(t,e){return i=>i>0?e:t}let i_=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iY=[M,A,F];function iH(t){let e=iY.find(e=>e.test(t));if(!e)return!1;let i=e.parse(t);return e===F&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=i$(a,n,t+1/3),r=i$(a,n,t),o=i$(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let iX=(t,e)=>{let i=iH(t),n=iH(e);if(!i||!n)return iz(t,e);let s={...i};return t=>(s.red=i_(i.red,n.red,t),s.green=i_(i.green,n.green,t),s.blue=i_(i.blue,n.blue,t),s.alpha=eQ(i.alpha,n.alpha,t),A.transform(s))},iK=new Set(["none","hidden"]);function iG(t,e){return i=>eQ(t,e,i)}function iq(t){return"number"==typeof t?iG:"string"==typeof t?tp(t)?iz:B.test(t)?iX:iQ:Array.isArray(t)?iZ:"object"==typeof t?B.test(t)?iX:iJ:iz}function iZ(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iq(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iJ(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iq(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iQ=(t,e)=>{let i=$(t),n=$(e);if(!(i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length))return iz(t,e);if(iK.has(t)&&!n.values.length||iK.has(e)&&!i.values.length)return iK.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iW(iZ(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(i,n),n.values),z(n))},i0=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function i1(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return eQ(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=i0.exec(t);if(!i)return;let n=i0.exec(e);if(!n||i[2]!==n[2])return;let s=i[2],r=parseFloat(i[1]),o=parseFloat(n[1]);return t=>x(eQ(r,o,t))+s}(t,e);if(i)return i}return iq(t)(t,e)}let i2=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>t$.update(e,t),stop:()=>tz(e),now:()=>tW.isProcessing?tW.timestamp:ee.now()}};function i3(t,e=50,i=2e4,n){let s=0,r=t.next(s);for(n?.push(r.value);!r.done&&s<i;)s+=e,r=t.next(s),n?.push(r.value);return s>=i?1/0:s}let i5=t=>t<0?1/Math.max(1+t,.05):Math.max(1-t,.05);function i4(t,e){if(!(t>1))return 1;let i=Math.sqrt(t*t-1),n=t-i,s=t+i,r=2*i*Math.exp(-e)*(1+e);return i6(t=>s*Math.exp(-n*t)-n*Math.exp(-s*t)-r,t=>Math.exp(-s*t)-Math.exp(-n*t),e)/e}function i9(t,e){return t*Math.sqrt(1-e*e)}function i6(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}let i8=(t,e)=>(e?t>=0:t>0)&&t<1/0;function i7(t,e){if(i8(t,e))return t}function nt(t=.3,e=.3){let i,n,s,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,isResolvedFromDuration:p,isTimeDefined:m}=function(t){let e=i7(t.stiffness),i=i7(t.damping,!0),n=i7(t.mass),s={...t,stiffness:e??100,damping:i??10,mass:n??1,isResolvedFromDuration:!1,isTimeDefined:(e??i??n)===void 0&&(void 0!==t.duration||void 0!==t.bounce)};if(s.isTimeDefined){if(t.visualDuration){let e=i5(t.bounce||0),i=2*Math.PI/(1.2*t.visualDuration)*i4(e,2*Math.PI/1.2);s.stiffness=i*i,s.damping=2*e*Math.sqrt(s.stiffness)}else Object.assign(s,function({duration:t=800,bounce:e=.3}){let i,n,s=i5(e);t=f(.01,10,t/1e3),s<1?(i=e=>{let i=e*s,n=i*t;return .001-i/i9(e,s)*Math.exp(-n)},n=e=>{let n=e*s*t,r=s*s*e*e*t,o=Math.exp(-n),a=i9(e*e,s);return-((-i(e)+.001>0?-1:1)*r)*o/a}):(i=e=>-.001+Math.exp(-e*t)*(e*t+1),n=e=>-(t*t*e*Math.exp(-e*t)));let r=i6(i,n,5/t),o=r*i4(s,r*t),a=o*o;return{stiffness:a,damping:2*s*Math.sqrt(a),duration:t0(t)}}(s)),s.isResolvedFromDuration=!0;i8(s.stiffness)&&i8(s.damping,!0)||(s.stiffness=100,s.damping=10)}return s}({...r}),g=t=>m?0:-(t/1e3),y=u/(2*Math.sqrt(h*d)),v=Math.sqrt(h/d)/1e3,x=y*v,w={target:a,delta:a-o,velocity:g(r.velocity||0)||0,restSpeed:0,restDelta:0},b=()=>{let t=5>Math.abs(w.delta);w.restSpeed=r.restSpeed||(t?.01:2),w.restDelta=r.restDelta||(t?.005:.5)};if(b(),y<1){let t=i9(v,y),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};s=()=>{e.A=(w.velocity+x*w.delta)/t,e.sinC=x*e.A+w.delta*t,e.cosC=x*w.delta-e.A*t};let r=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-x*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(r(t),w.target-e.env*(e.A*e.sin+w.delta*e.cos)),n=t=>(r(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===y){i=t=>w.target-Math.exp(-v*t)*(w.delta+(w.velocity+v*w.delta)*t);let t={C:0};s=()=>{t.C=w.velocity+v*w.delta},n=e=>Math.exp(-v*e)*(v*t.C*e-w.velocity)}else{let t=v*Math.sqrt(y*y-1),e=x-t,r=x+t,o=t<1||m?1/0:300/t,a=(t,e)=>Math.exp(e>o?(x-t)*o-x*e:-t*e),l={S:0,F:0};s=()=>{let e=(w.velocity+x*w.delta)/t;l.S=(w.delta+e)/2,l.F=(w.delta-e)/2},i=t=>w.target-l.S*a(e,t)-l.F*a(r,t),n=t=>e*l.S*a(e,t)+r*l.F*a(r,t)}s();let T=p&&c||null,S={calculatedDuration:T,retarget:(t,e)=>{w.target=t[t.length-1],w.delta=w.target-t[0],w.velocity=g(e),r.restSpeed&&r.restDelta||b(),S.calculatedDuration=T,l.done=!1,s()},velocity:t=>t0(n(t)),next:t=>{let e=i(t);return p?l.done=t>=c:l.done=Math.abs(t0(n(t)))<=w.restSpeed&&Math.abs(w.target-e)<=w.restDelta,l.value=l.done?w.target:e,l},toString:()=>{let t=Math.min(i3(S),2e4),e=eo(e=>S.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return S}let ne=Object.assign(nt,{applyToOptions:t=>{let e=function(t,e=100,i){let{keyframes:n,velocity:s}=t,r=n&&n[n.length-1]-n[0],o=i({...t,velocity:s&&r?s*e/r:s,keyframes:[0,e]}),a=Math.min(i3(o),2e4);return{type:"keyframes",ease:t=>o.next(a*t).value/e,duration:a/1e3}}(t,100,nt);return t.ease=e.ease,t.duration=t0(e.duration),t.type="keyframes",t}});function ni({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=o?o(g):g;y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>{let e=v(t);m.done=Math.abs(e)<=h,m.value=m.done?y:t?y+e:p},w=t=>{let e;if((e=m.value)<a||e>l){var i;d=t,c=ne({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(t)/n*1e3,damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,x(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||x(t),m)}}}let nn=(t,e,i)=>t*(3*(1-t)*((1-t)*e+t*i)+t*t);function ns(t,e,i,n){return t===e&&i===n?tO:s=>{let r=0,o=1,a=s;for(let e=0;;e++){a>=r&&a<=o||(a=(r+o)/2);let n=nn(a,t,i)-s;if(n*n<1e-28||40===e)break;n>0?o=a:r=a,a-=1e-7*n/(nn(a+1e-7,t,i)-s-n)}return nn(a,e,n)}}let nr=ns(.42,0,1,1),no=ns(0,0,.58,1),na=ns(.42,0,.58,1),nl=t=>Array.isArray(t)&&"number"!=typeof t[0],nh=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nu=t=>e=>1-t(1-e),nd=ns(.33,1.53,.69,.99),nc=nu(nd),np=nh(nc),nm=t=>t>=1?1:(t*=2)<1?.5*nc(t):.5*(2-Math.pow(2,-10*(t-1))),nf=t=>1-Math.sin(Math.acos(t)),ng=nu(nf),ny=nh(nf),nv={linear:tO,easeIn:nr,easeInOut:na,easeOut:no,circIn:nf,circInOut:ny,circOut:ng,backIn:nc,backInOut:np,backOut:nd,anticipate:nm},nx=t=>{if(es(t)){th.default;let[e,i,n,s]=t;return ns(e,i,n,s)}return"string"==typeof t?(th.default,nv[t]):t},nw=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nb(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nw(0,e,n);t.push(eQ(i,1,s))}}(e,t.length-1),e}function nT({duration:t=300,keyframes:e,times:i,ease:n="easeInOut",mixer:s}){var r;let o="number"==typeof e[0]?void 0:s,a=nl(n)?n.map(nx):nx(n)||na,l={done:!1,value:e[0]},h=-1;if(!o){for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(h>=0){h=-2;break}h=t-1}}if(h>=0){let n=i&&i.length===e.length?i:nb(e),s=n[h]*t,r=n[h+1]*t,o=e[h],u=e[h+1],d=Array.isArray(a)?a[h]:a,c=(tI.mix||i1)(o,u),p=e.length-2;return{calculatedDuration:t,next:e=>(l.value=h&&e<s?c(0):h<p&&(e>=r||!t)?"number"==typeof u?u:c(1):c(d(e>=r||!t?1:e<=s?0:(e-s)/(r-s))),l.done=e>=t,l)}}let u=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=tI.mix||i1,r=t.length-1;for(let o=0;o<r;o++){let r=i?.(t[o],t[o+1])||s(t[o],t[o+1]);e&&(r=iW(Array.isArray(e)?e[o]||tO:e,r)),n.push(r)}return n}(e,n,s),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nw(t[n],t[n+1],i);return a[n](s)};return i?e=>h(f(t[0],t[r-1],e)):h}((r=i&&i.length===e.length?i:nb(e),r.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||na).splice(0,e.length-1),mixer:o});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}let nS={decay:ni,inertia:ni,tween:nT,keyframes:nT,spring:ne};function nP(t){"string"==typeof t.type&&(t.type=nS[t.type])}let nA=(t,e)=>e-t>40&&!tI.useManualTiming?e:t,nE=t=>t/100,nM=t=>Math.round(1e4*t)/1e4;class nk extends t7{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ee.now()&&this.tick(ee.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),en(this,this.options)}initAnimation(){let{options:t}=this;nP(t);let{type:e=nT,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||nT;this.mixKeyframes=void 0,a!==nT&&"number"!=typeof o[0]&&(this.mixKeyframes=iW(nE,t.mixer?.(o[0],o[1])||i1(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i3(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){this.currentTime=this.holdTime??Math.round(t-this.startTime)*this.playbackSpeed}tick(t,e=!1){let{generator:i,totalDuration:n,calculatedDuration:s}=this;if(null===this.startTime)return i.next(0);let{delay:r=0,keyframes:o,type:a,onUpdate:l,finalKeyframe:h}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=nA(this.startTime,t)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let u=this.currentTime-r*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>n;this.currentTime=Math.max(u,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let c=this.generate(this.currentTime,d),{done:p}=c;d||(p=this.playbackSpeed>=0?s<1/0?this.currentTime>=n:p:this.currentTime<=0);let m=null===this.holdTime&&("finished"===this.state||"running"===this.state&&p);return m&&a!==ni&&(c.value=t8(o,this.options,h,this.speed)),l&&l(c.value),m&&this.finish(),c}at(t){return this.holdTime??nM((t-this.startTime)*this.playbackSpeed)}sampleAt(t,e){let{options:i,totalDuration:n}=this,s=this.at(t)-(i.delay||0);return s>=n&&i.type!==ni?t8(i.keyframes,i,e?void 0:i.finalKeyframe):this.generate(Math.max(s,0),s<0).value}generate(t,e){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a}=this,{keyframes:l,repeat:h,repeatType:u,repeatDelay:d}=this.options,c=t,p=n;if(h){let e=Math.min(t,s)/a,i=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&i--,(i=Math.min(i,h+1))%2&&("reverse"===u?(n=1-n,d&&(n-=d/a)):"mirror"===u&&(p=o)),c=f(0,1,n)*a}return e?(this.delayState.value=l[0],i=this.delayState):i=p.next(c),r&&!e&&(i.value=r(i.value)),i}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){return this.duration+(this.options.delay??0)/1e3}get time(){return this.currentTime/1e3}set time(t){"finished"===this.state&&this.updateFinished(),t=t0(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return function(t,e,i=0){var n,s;let r;return e<=0?i:t.velocity?t.velocity(e):(n=e=>t.next(e).value,s=t.next(e).value,em(s-n(r=Math.max(e-5,0)),e-r))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ee.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i2,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=e??(this.pendingStartTime=i)),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ee.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nV={anticipate:nm,backInOut:np,circInOut:ny};class nC extends eu{constructor(t){"string"==typeof t.ease&&t.ease in nV&&(t.ease=nV[t.ease]),nP(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}elapsed(){return"running"===this.state?(ee.now()-this.startTime)*this.speed:1e3*this.time}sample(t){if(!this.sampler){let{motionValue:t,onUpdate:e,onComplete:i,onPlay:n,onStop:s,element:r,...o}=this.options;this.sampler=new nk({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,t)).value}liveValue(){let{state:t}=this;if("running"===t||"paused"===t)return this.sample(this.elapsed())}updateMotionValue(t){let{motionValue:e,element:i,name:n}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let{speed:s}=this,r=this.elapsed(),o="running"===this.state&&s?f(0,10,r):0,a=this.sample(r);i&&n&&t5(i,n,a),e.setWithVelocity(this.sample(r-o*Math.sign(s)),a,o/Math.abs(s||1))}}let nR=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(_.test(t)||"0"===t)&&!t.startsWith("url("));function nD(t){t.duration=0,t.type="keyframes"}let nL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nj=({mixer:t,keyframes:e})=>t&&"number"!=typeof e[0]&&e.some((i,n)=>n&&t(e[n-1],i)),nF=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nB=()=>!tI.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate"),nO=new Set(["linear","easeIn","easeOut","easeInOut"]),nI=new WeakMap,nU=(t,e)=>Math.min(200,Math.max(2,Math.ceil((e-t)/10))),nN=(t,e)=>.001>=Math.abs(t-e),nW=(t,e)=>t-e,n$=(t,e,i)=>nb(Array(i+1)).map(i=>eQ(t,e,i)),nz=({state:t})=>"idle"===t||"finished"===t,n_=(t,e)=>t.latestValues?t.latestValues[e]:t.getValue(e)?.get();class nY{constructor(t,e,i,n){this.element=t,this.update=e,this.makeDriver=i,this.animation=n}get js(){return this.driver||(this.driver=this.makeDriver(this.update))}now(){return this.driver||this.makeDriver!==i2?this.js.now():tW.isProcessing?tW.timestamp:ee.now()}start(t=!0){let e,i=(e=this.element,ec.get(e));!i||i.isJS?this.js.start(t):i.schedule(!1,!t)}stopJS(){this.driver?.stop()}stop(){let t;this.stopJS();let e=(t=this.element,ec.get(t));e&&!e.isFinishing&&e.release(this.animation)}}class nH extends nk{constructor(t){let e,i=t.motionValue.owner.current,{driver:n=i2}=t,s=function(t){let e=t.motionValue.owner,{onUpdate:i,transformTemplate:n}=e.getProps();return!t.isHandoff&&!i&&!t.hasOnUpdate&&!n&&"inertia"!==t.type&&"none"===(n_(e,"transform")||"none")&&!n_(e,"pathRotation")&&!e.projection?.isProjecting()&&!nj(t)}(t);t.driver=t=>new nY(i,t,n,e),super(t),e=this;let r=this.driver;r&&(r.animation=this),this.canAccelerate=s;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:t,times:e}=this.options;return e||(this.offsetsOf!==t&&(this.offsetsOf=t,this.cachedOffsets=nb(t)),this.cachedOffsets)}get group(){let t;return t=this.options.motionValue.owner.current,ec.get(t)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:t,speed:e,totalDuration:i}=this,{delay:n=0,repeatType:s}=this.options;return null!==this.holdTime?[1/0,0]:1/0===i?[t+n/e,this.resolvedDuration*("loop"===s?1:2)/e||1]:[t+(n+i)/e,0]}isAccelerated(){let{group:t,state:e}=this;return t?.tracks.has(this)&&!t.isJS&&this.canAccelerate&&("running"===e||"paused"===e)}liveValue(){return this.isAccelerated()?this.sampleAt(ee.now()):void 0}tween(){let{keyframes:t,type:e,repeat:i,delay:n=0}=this.options,s=-1;if(i||e!==nT||null!==this.holdTime)return;for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(s>=0)return;s=e-1}let{ease:r}=this.options;nl(r)&&(r=r[s]);let o=this.offsets(),a=t=>this.startTime+(n+o[t]*this.totalDuration)/this.speed;if(s>=0){let t,e=es(r)?ea(r):(t=r,nO.has(t))?el[r]:nx(r);return[a(s),a(s+1),"string"==typeof e||nN(e(0),0)&&nN(e(1),1)?e:void 0]}}boundaries(t,e){let{startTime:i,speed:n,resolvedDuration:s,options:r}=this,{delay:o=0,repeat:a=0,repeatDelay:l=0,repeatType:h,type:u}=r,d=(u||nT)===nT?this.offsets():[0,1],c=i+o/n,p=[];if(null!==this.holdTime||!(s>0))return p;for(let i=Math.max(0,Math.floor((t-c)*n/s));i<=a;i++){let r=c+i*s/n;if(r>e)break;for(let o of d){let a=r+(i%2&&h&&"loop"!==h?1-o:o)*(s-l)/n;a>t&&a<e&&p.push(a)}}return p}numberAt(t){return parseFloat(this.sampleAt(t,!0))}sync(){let t=ee.now(),e=this.sampleAt(t,!0);this.options.motionValue.setWithVelocity(null===this.holdTime?this.sampleAt(t-10,!0):e,e,10)}play(){var t;let e,i,n,s,r,a,l,h,u,d,c,m,f,g,y,v,x,w,b,T,S,P,A,E,M,k,V,C,R,D;this.isStopped||((this.group||(n=(t=this.options.motionValue.owner).current,s=new Set,r=new Map,a={},l=[],h=new Map,u=[],d=!1,c=!1,m=!1,f=!1,g=-1/0,y=1/0,v=t=>{for(let e of s)if(e.name===t)return!0},x=(e,i)=>{let n={};for(let s of void 0===e?p:l){let o=r.get(s),l=void 0===e?n_(t,s):o?o.sampleAt(i>e&&!o.timing()[1]?i:e):a[s];void 0!==l&&(n[s]=l)}return n},w=(t,e)=>{let i="";for(let n in t){let s=t[n];e&&eI(n,s)||(i+=eO(n,s)+" ")}return(e?i.trim():i)||"none"},b=(t=x())=>{n.style.transform=w(t,!0)},T=t=>{t.onfinish=t.oncancel=null,t.cancel()},S=(t=!0)=>{clearTimeout(e),y=1/0,i=void 0,t&&b(),u.forEach(({animation:t})=>T(t)),u=[]},P=(t,e)=>new Animation(new KeyframeEffect(n,t,e)),A=(t,e,i=1/0)=>{let n={animation:t,offset:e,end:i};t.startTime=ee.now()+e,i<1/0&&(t.onfinish=()=>{n.isDone=!0,u.some(t=>1/0===t.end)&&(T(t),u=u.filter(t=>t!==n)),D.schedule(!1)}),t.oncancel=()=>u.includes(n)&&D.demote(),u.push(n)},E=(t,e,i)=>{let n=(e,i)=>Math.abs(t(i)-t(e)),s=n(e,i);for(;i-e>.01;){let t=(e+i)/2;n(e,t)>n(t,i)?i=t:e=t}return n(e,i)>s/2?[e,i]:[]},M=(t,e,i,n)=>{let s,r,o,a=nU(e,i);if(4*n.length>a)return;for(let n of t){let t=n.numberAt(e),r=(n.numberAt((e+i)/2)-t)/(n.numberAt(i)-t);if(r==r){if(void 0===s)s=r;else if(!nN(r,s))return}}let l=n$(e,i,a).concat(n).sort(nW);for(let i of t){let t=i.numberAt(e),n=l.map(e=>i.numberAt(e)-t),s=n[n.length-1],a=n.some(t=>.001*Math.abs(t)>Math.abs(s))?0:s,h=n.map(t=>a?t/a:t);if(a&&!r)r=h,o=e=>(i.numberAt(e)-t)/a;else if(h.some((t,e)=>!nN(t,a&&r[e])))return}if(!r||r.every((t,n)=>nN(t,nw(e,i,l[n]))))return"linear";let h=[],u=(t,n=o(t))=>h.push(nM(n)+" "+nM(100*nw(e,i,t))+"%");return r.forEach((t,e)=>{e&&Math.abs(t-r[e-1])>.2&&E(o,l[e-1],l[e]).forEach(t=>u(t)),u(l[e],t)}),"linear("+h+")"},k=(t,e,i,n,s={fill:"both"},r)=>{let o=n?[]:t.flatMap(t=>t.boundaries(e,i)),a=n||M(t,e,i,o),l=a?[e,i]:((t,e,i,n)=>{let s=[e],r=[],o=i,a=e;for(let n of t){let t=n.tween();if(t?.[2]!=="linear"){let[s,l]=n.timing(),[h,u]=t||[e,l?i:s];o=Math.min(o,h),a=Math.max(a,u),r.push(n)}}o=Math.max(e,o);let l=(e,i,n)=>{if(i-e<1||r.every(t=>!(Math.abs(t.numberAt((e+i)/2)-(t.numberAt(e)+t.numberAt(i))/2)>(t.name.startsWith("scale")?.001:.1))))s.push(i);else if(n<4)l(e,(e+i)/2,n+1),l((e+i)/2,i,n+1);else{for(let n of t)s.push(...E(t=>n.numberAt(t),e,i));s.push(i)}},h=(a=Math.min(i,a))>o?n$(o,a,Math.ceil((a-o)/100)):[];for(let t of(h.push(i),n))h.push(t,Math.min(t+.01,i));let u=e;for(let t of h.sort(nW))t>u&&l(u,t,0),u=t;return s.sort(nW)})(t,e,i,o),h=l.map(t=>w(x(t,r))),u={transform:h};return a||(u.offset=l.map(t=>nw(e,i,t))),h.every(t=>t===h[0])&&(b(x(e,r)),u=null),P(u,{...s,duration:i-e,easing:a||"linear"})},V=t=>{let i=ee.now()+t;i<y&&(clearTimeout(e),y=i,e=setTimeout(()=>{y=1/0,D.schedule(!1)},t))},C=()=>!s.size&&(m=!0,ec.get(n)===D&&ec.delete(n),D.isJS||S(),!0),R=()=>{let e=ee.now();if(D.isJS||(D.isFinishing=!0,s.forEach(i=>{let[n,s]=i.timing();"running"===i.state&&i.speed>0&&!s&&n<=e+1&&(i.complete(),a[i.name]=n_(t,i.name),h.has(i)||(d=!0))}),D.isFinishing=!1),c=!1,m||(s.forEach(t=>nz(t)&&s.delete(t)),C()))return;for(let t of s)if(!t.canAccelerate)return D.demote(!0);D.isJS&&(D.isJS=!1,d=!0,s.forEach(t=>t.stopJS()));let n=d,o=f;if(d=f=!1,n||!((t,e)=>{let n,r=0;for(let e of s){let i=h.get(e);if(!i)return!1;let[s,o,a]=i,l=e.at(t),d=1/0===e.timing()[0];if(a){if(d&&(l===s||!u.length))continue;return!1}let c=(l-s)/o,p=d?0:e.speed/o;if(void 0===n)n=c,r=p;else if(Math.abs(c-n)>1||p!==r)return!1}if(void 0===n)return!0;if(!u.length){if(void 0===i||e&&r)return!1;if(r){let t=(i-n)/r;if(t<1)return!1;V(t)}return!0}for(let{offset:t,end:i,isDone:s}of u){let r=n-t;if(i<1/0&&(s?r<i-1:r<0&&(e||t<=0)||r>=i))return!1}for(let{animation:e,offset:i,isDone:s}of u){if(s)continue;let o=n-i;r&&e.updatePlaybackRate&&"running"===e.playState&&20>Math.abs(Number(e.currentTime)-o)?e.playbackRate!==r&&e.updatePlaybackRate(r):r?(e.playbackRate!==r&&(e.playbackRate=r),e.startTime=t-o/r):(e.startTime=null,e.currentTime=o)}return!0})(e,o)){if(o){if(e-g<100)return D.demote();g=e}if(!(e=>{let n=e,o=0,d=0,c=[],m=[],f=new Set;for(let t of(r.clear(),h=new Map,s)){r.set(t.name,t);let[i,s]=t.timing(),a=1/0===i;if(h.set(t,[t.at(e),t.speed,a]),!a){if(t.speed<0)return;if(s){if(o){let t=(i-d)/s;if(Math.abs(s-o)>1||Math.abs(t-Math.round(t))*o>1)return}else o=s,d=i;m.push(t)}else f.add(i);c.push(t),n=Math.max(n,i)}}a={},l=p.filter(e=>{if(r.has(e))return!0;let i=a[e]=n_(t,e);return void 0!==i&&!eI(e,i)}),S(!1);let g=!o&&(t=>{let e;for(let i of t){let t=i.tween();if(!t||e&&(Math.abs(t[0]-e[0])>1||Math.abs(t[1]-e[1])>1))return;e=[t[0],t[1],e&&t[2]!==e[2]?void 0:t[2]]}return e})(c);try{if(n>e){let t;if(g&&g[1]>e){var y;let s,[r,o,a]=g;if(r-e>100)return c.forEach(t=>t.sync()),V(i=r-e-100),!0;(t="string"==typeof a?a:a?(y=nU(r,o),s=nI.get(a),s?.[0]!==y&&(s=[y,"linear("+nb(Array(y+1)).map(t=>nM(a(t))+" "+nM(100*t)+"%")+")"],nI.set(a,s)),s[1]):M(c,r,o,[]))&&A(k(c,r,o,t,{fill:"both",endDelay:n-o}),r-e,n-r)}t||A(k(c,e,n),0,n-e),f.forEach(t=>t<n-1&&A(P(null,{duration:t-e}),0,t-e))}if(o){let t=d+Math.floor((n-d)/o)*o;A(k(m,t,t+o,void 0,{iterations:1/0,iterationStart:(n-t)/o,fill:"forwards"},n),n-e)}}catch{return}return u.length||S(),!0})(e))return D.demote()}else if(void 0!==i&&!o)return;s.forEach(t=>1/0===t.timing()[0]&&t.sync())},D={tracks:s,isJS:!1,isFinishing:!1,schedule(t,e){!m&&(d||(d=t),f||(f=!!e),!c)&&(c=!0,tW.isProcessing?t$.render(R,!1,!0):(o||queueMicrotask(()=>{let t=o;o=void 0,t.forEach(t=>t())}),(o||(o=[])).push(R)))},release(t){nz(t)&&s.delete(t),C()||D.schedule(!0)},check(){if(!D.isJS){for(let e in a)if(n_(t,e)!==a[e]&&!v(e))return D.schedule(!0,!0)}},demote(t){if(!D.isJS&&!m)return s.forEach(e=>{e.isAccelerated()&&e.sync(),t||(e.canAccelerate=!1)}),D.isJS=!0,h=new Map,S(),s.forEach(t=>"running"===t.state&&t.js?.start()),!0}},ec.set(n,D),D)).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:t}=this;t&&!t.isJS&&this.tick(ee.now())}get time(){return this.isAccelerated()?f(0,this.totalDuration,this.at(ee.now())-(this.options.delay||0))/1e3:super.time}set time(t){(r??(r=Object.getOwnPropertyDescriptor(nk.prototype,"time").set)).call(this,t)}attachTimeline(t){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(t)}}class nX extends t7{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ee.now();let{keyframes:e,name:i,motionValue:n,element:s}=t;t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");let r=s?.KeyframeResolver||tZ;this.keyframeResolver=new r(e,(e,i,n)=>this.onKeyframesResolved(e,i,t,!n),i,n,s),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=ee.now();let d=function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=nR(s,e),a=nR(r,e);return!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||eh(i))&&n)}(t,r,o,a);d||((tI.instantAnimations||!l)&&u?.(t8(t,i,e)),t[0]=t[t.length-1],nD(i),i.repeat=0);let{onComplete:c}=i;i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{c?.(),this.notifyFinished()};let m=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!i||!(ed.has(i)||nF.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return nB()&&(ed.has(i)||nF.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nL.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!h&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o&&!nj(t)}(i),f=!m&&(({name:t,motionValue:e})=>t&&p.includes(t)&&e?.owner?.current instanceof HTMLElement&&nB()&&er())(i);if(n&&(m||f||this.resolvedAt!==this.createdAt)&&(i.startTime??(i.startTime=nA(this.createdAt,this.resolvedAt))),m){i.element=i.motionValue?.owner?.current;try{s=new nC(i)}catch{s=new nk(i)}}else s=f?new nH(i):new nk(i);this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),tK=!0,tq(),tG(),tK=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}}let nK={type:"spring",stiffness:500,damping:25,restSpeed:10},nG={type:"keyframes",duration:.8},nq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nZ=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]),nJ=(t,e,i,n={},s,r)=>o=>{let a=iU(n,t)||{},l=a.delay||n.delay||0,{elapsed:h=0}=n;h-=t0(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s,hasOnUpdate:!!a.onUpdate};!function(t){for(let e in t)if(!nZ.has(e))return!0;return!1}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?nG:m.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nK:nq)(t,u)),u.duration&&(u.duration=t0(u.duration)),u.repeatDelay&&(u.repeatDelay=t0(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(nD(u),0===u.delay&&(d=!0)),(tI.instantAnimations||tI.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,nD(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=t8(u.keyframes,a);if(void 0!==t)return void t$.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new nk(u):new nX(u)},nQ="u">typeof window;function n0(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?(0,iI.f)(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let d=[],c=s&&t.animationState?.getState()[s],p=r?.path;for(let e in p&&(p.animateValues?p.animateValues(e=>t.getValue(e,t.latestValues[e]??0),a,r,i,d):p.animateVisualElement?.(t,a,r,i,d)),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=i in t&&!e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...iU(c?.out[e]||r||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){t$.update(()=>n.set(s));continue}let p=!1;if(nQ&&window.MotionHandoffAnimation){let i=t.props[iR];if(i){let t=window.MotionHandoffAnimation(i,e,t$);null!==t&&(o.startTime=t,p=!0)}}iN(t,e);let m=h??t.shouldReduceMotion;n.run(nJ(e,n,s,m&&to.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&d.push(f)}if(o){let e=()=>t$.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iB(t,e)||{};for(let e in s={...s,...i}){var r;let i=Array.isArray(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ey(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function n1(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function n2(t,e,i={}){let n=iB(t,e,iO(t,i.type)),s=i.transitionOverride||(n?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(n?n0(t,n,i):[]),o=(n=0)=>{let{variantChildren:r}=t,{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s,h=[];return r?.forEach(t=>{t.notify("AnimationStart",e),h.push(n2(t,e,{...i,delay:n+("function"==typeof o?0:o)+n1(r,t,o,a,l)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(h)},{when:a}=s;return a?"beforeChildren"===a?r().then(()=>o()):o().then(r):Promise.all([r(),o(i.delay)])}function n3(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let n5=[...eb].reverse(),n4=t=>t?.out===!0?t:t?.out;function n9(){let t={};for(let e of eb)t[e]={isActive:"animate"===e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return t}let n6=0;function n8(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let n7=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function st(t){return{point:{x:t.pageX,y:t.pageY}}}function se(t,e,i,n){return n8(t,e,t=>n7(t)&&i(t,st(t)),n)}function si(t){return t.max-t.min}function sn(t,e,i,n=.5){t.origin=n,t.originPoint=eQ(e.min,e.max,t.origin),t.scale=si(i)/si(e),t.translate=eQ(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ss(t,e,i,n){sn(t.x,e.x,i.x,n?.originX),sn(t.y,e.y,i.y,n?.originY)}function sr(t,e,i,n=0){t.min=(n?eQ(i.min,i.max,n):i.min)+e.min,t.max=t.min+si(e)}function so(t,e,i,n=0){let s=n?eQ(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+si(e)}function sa(t,e,i,n){so(t.x,e.x,i.x,n?.x),so(t.y,e.y,i.y,n?.y)}function sl(t){return[t("x"),t("y")]}let sh={};function su(t){return sh.current?.add(t),t}let sd=t=>sh.current?sh.current.bind(t):t,sc=t=>"object"==typeof t&&null!==t;function sp(t){return sc(t)&&"ownerSVGElement"in t}function sm(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=e?e.current:sh.current?.root||document,s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let sf=new WeakMap,sg=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:sp(n)&&"getBBox"in n?n.getBBox()[e]:n[i],sy=sg("inline","width","offsetWidth"),sv=sg("block","height","offsetHeight");function sx({target:t,borderBoxSize:e}){sf.get(t)?.forEach(i=>{i(t,{get width(){return sy(t,e)},get height(){return sv(t,e)}})})}function sw(t){t.forEach(sx)}let sb=new Set;function sT(t,e){let i;return su("function"==typeof t?(sb.add(t),l||(l=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};sb.forEach(e=>e(t))},window.addEventListener("resize",l)),()=>{sb.delete(t),sb.size||"function"!=typeof l||(window.removeEventListener("resize",l),l=void 0)}):(!a&&"u">typeof ResizeObserver&&(a=new ResizeObserver(sw)),(i=sm(t)).forEach(t=>{let i=sf.get(t);i||(i=new Set,sf.set(t,i)),i.add(e),a?.observe(t)}),()=>{i.forEach(t=>{let i=sf.get(t);i?.delete(e),i?.size||a?.unobserve(t)})}))}let sS=(t,e)=>Math.abs(t-e),sP=new Set(["auto","scroll"]);class sA{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o,immediate:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sM(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sV(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sS(t.x,e.x)**2+sS(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i;this.history.push({...r,timestamp:ee.now()});let{onStart:o,onMove:a}=this.handlers;n||(o?.(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.handleScroll(window),this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sM(e,this.transformPagePoint),this.hasPendingMove=!0,t$.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sV("pointercancel"===t.type?this.lastMoveEventInfo:sM(e,this.transformPagePoint),this.history);this.startEvent&&i?.(t,r),n?.(t,r)},!n7(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=a?0:r,this.contextWindow=n||window;let l=st(t),h=sM(l,this.transformPagePoint),{point:u}=h;this.history=[{...u,timestamp:ee.now()}];let{onSessionStart:d}=e;d&&d(t,sV(h,this.history));let c={passive:!0,capture:!0};this.removeListeners=iW(se(this.contextWindow,"pointermove",this.handlePointerMove,c),se(this.contextWindow,"pointerup",this.handlePointerUp,c),se(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o),a&&(this.handlePointerMove(t,l),this.updatePoint())}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sP.has(t.overflowX)||sP.has(t.overflowY))&&this.scrollPositions.set(e,sE(e)),e=e.parentElement}this.scrollPositions.set(window,sE(window)),this.removeScrollListeners=iW(n8(window,"scroll",this.onElementScroll,{capture:!0}),n8(window,"scroll",this.onWindowScroll,{}))}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=sE(t),s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),t$.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),tz(this.updatePoint)}}let sE=t=>t===window?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop};function sM(t,e){return e?{point:e(t.point)}:t}function sk(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sV({point:t},e){return{point:t,delta:sk(t,sC(e)),offset:sk(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sC(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>t0(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t0(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return 1/0===r.x&&(r.x=0),1/0===r.y&&(r.y=0),r}(e)}}function sC(t){return t[t.length-1]}let sR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sD=new Set(["INPUT","SELECT","TEXTAREA"]),sL={x:!1,y:!1};function sj(){return sL.x||sL.y}function sF(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function sB(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sO(t,e,i){return{min:sI(t,e),max:sI(t,i)}}function sI(t,e){return"number"==typeof t?t:t[e]||0}function sU(t){let e="";for(let i of t.path){i.scroll=void 0,i.updateScroll();let{scroll:n}=i;i!==t.root&&n&&(e+=n.offset.x+","+n.offset.y+",")}return e}let sN=new WeakMap;class sW{constructor(t,e=()=>t.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ts(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t,this.readProps=e}start(t,e={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let i=t=>{e.snapToCursor&&this.snapToCursor(t),this.stopAnimation()},n=(t,e)=>{let{drag:i,dragConstraints:n,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock?.(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sL[t])return null;else return sL[t]=!0,()=>{sL[t]=!1};return sL.x||sL.y?null:(sL.x=sL.y=!0,()=>{sL.x=sL.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),sl(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tp(e)&&(e=ty(e,this.visualElement.current)||0),R.test(e))e=parseFloat(e);else if(C.test(e)){let i=o?.layout?.layoutBox[t];i&&(e=si(i)*(parseFloat(e)/100))}this.originPoint[t]=e}),this.point="function"==typeof n&&n(this),r&&t$.update(()=>r(t,e),!1,!0),iN(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){if(this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null===this.currentDirection)return;s&&s(this.currentDirection)}this.updateAxis("x",o),this.updateAxis("y",o),this.point&&this.point.move(),this.visualElement.render(),r&&t$.update(()=>r(t,e),!1,!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},o=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:a}=this.getProps();this.panSession=new sA(t,{onSessionStart:i,onStart:n,onMove:s,onSessionEnd:r,resumeAnimation:o},{...e,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(t,e,i){let n=t||this.latestPointerEvent,s=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!n)return;let{velocity:o}=s;this.startAnimation(o,i);let{onDragEnd:a}=this.getProps();a&&t$.postRender(()=>a(n,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(t,e){let{drag:i}=this.readProps();if(!e||!sY(t,i,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+e[t],r=this.constraints&&this.constraints[t];r&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eQ(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eQ(i,t,n.max):Math.min(t,i)),t}(s,r,this.elastic[t])),this.point?this.point[t]=s:n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{projection:i}=this.visualElement,n=i&&(i.layout||i.measure(!1)),s=this.constraints;s$(t)?this.constraints&&this.scroll===sU(i)||(this.constraints=this.resolveRefConstraints()):t&&n&&"object"==typeof t?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sF(t.x,i,s),y:sF(t.y,e,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sO(t,"left","right"),y:sO(t,"top","bottom")}}(e),s!==this.constraints&&!s$(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&sl(t=>{var e,i;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=n.layoutBox[t],i=this.constraints[t],s={},void 0!==i.min&&(s.min=i.min-e.min),void 0!==i.max&&(s.max=i.max-e.min),s))})}resolveRefConstraints(){var t,e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!s$(i))return!1;let s=sz(i),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=sU(r);let o=function(t,e,i){let n=is(t,i),{scroll:s}=e;return s&&(e7(n.x,s.offset.x),e7(n.y,s.offset.y)),n}(s,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,e=r.removeElementScroll(o),{x:sB(t.x,e.x),y:sB(t.y,e.y)});if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eJ(t))}return a}startAnimation(t,e){let{drag:i,dragMomentum:n,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l={bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r},h=s=>n&&!(this.point&&o)&&sY(s,e||i,this.currentDirection)?t[s]:0;if(this.point&&!o)return this.point.release({x:h("x"),y:h("y")},l).then(a);let u=this.constraints||{};return Promise.all(sl(t=>{if(!sY(t,e||i,this.currentDirection))return;let n=u[t]||{};(!0===o||o===t)&&(n={min:0,max:0});let s={type:"inertia",velocity:h(t),...l,...n};return this.startAxisValueAnimation(t,s)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iN(this.visualElement,t),i.start(nJ(t,i,0,e,this.visualElement,!1))}stopAnimation(){sl(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.readProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:e}){let{drag:i}=this.getProps(),n={x:t,y:e},s=this.visualElement.getTransformPagePoint()?.(n)||n,r=this.visualElement.measureViewportBox();sl(t=>{if(!sY(t,i,this.currentDirection))return;let e=this.getAxisMotionValue(t),{min:n,max:o}=r[t];e.set((e.get()||0)+s[t]-eQ(n,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!s$(e)||!i||!this.constraints)return;this.stopAnimation();let n=this.constraints,s={x:0,y:0};sl(t=>{var e,i;let r,o,a,l=this.getAxisMotionValue(t).get();s[t]=(e={min:l,max:l},i=n[t],r=.5,o=si(e),(a=si(i))>o?r=nw(i.min,i.max-o,e.min):o>a&&(r=nw(e.min,e.max-a,i.min)),f(0,1,r))});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root?.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sl(e=>{let i=this.getAxisMotionValue(e);if(!sY(e,t,null)||!i.get())return;let{min:n,max:r}=this.constraints[e];i.set(eQ(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sN.set(this.visualElement,this);let e=this.visualElement.current,i=se(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(sD.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps(),l=s$(a)&&sz(a);l&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=l,r=sT(i,s_(s=()=>this.scalePositionWithinConstraints())),o=sT(n,s_(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s.layout||(s.root?.updateScroll(),s.updateLayout()),t$.read(n);let o=n8(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sl(e=>{if(!sY(e,this.getProps().drag,this.currentDirection))return;let i=this.getAxisMotionValue(e);this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate)}),this.visualElement.render())});return()=>{o(),i(),r(),a(),t?.()}}getProps(){let t=this.readProps(),{dragElastic:e=.35,dragMomentum:i=!0}=t;return{...t,dragElastic:e,dragMomentum:i}}}function s$(t){return!!t&&"object"==typeof t&&("current"in t||"nodeType"in t)}let sz=t=>"current"in t?t.current:t;function s_(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sY(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sH=t=>(e,i)=>{t&&t$.update(()=>t(e,i),!1,!0)},sX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sK=u;function sG(t=!0){let e=(0,u.useContext)(iT);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,u.useId)();(0,u.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,u.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}let sq=!1,sZ=({layout:t,layoutDependency:e,layoutAnchor:i})=>({layout:t,layoutDependency:e,layoutAnchor:i,animationType:"string"==typeof t?t:"both"}),sJ=(t,e)=>{let{snapshot:i}=t,n=t.getStack();n?.remove(t);let s=n?.lead;if(n?.prevLead===t&&s.resumeFrom===t&&(s.resumeFrom=s.currentAnimation=t.resumingFrom=void 0),t.options.layoutId=e,!e){t.needsShow=!0;return}return t.root.registerSharedNode(e,t),()=>{let{resumeFrom:e}=t;e?.isPresent!==!1&&t.getStack().members.includes(e)&&(e.hide(),t.resumeFrom=void 0,t.snapshot=i)}};class sQ extends sK.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group?.add(s),n&&i?.register?.(s),sq&&s.root.didUpdate(),s.options.layoutId!==n&&sJ(s,n)?.(),s.addEventListener("animationComplete",()=>this.safeToRemove()),s.setOptions({...s.options,...sZ(this.props),onExitComplete:()=>this.safeToRemove()})),sX.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,layoutId:i,visualElement:n,drag:s,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,this.takeOver=t.layoutId!==i?(o.willUpdate(),sJ(o,i)):void 0,o.setOptions({...o.options,...sZ(this.props)}),sq=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||t$.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(this.takeOver?.(),t.root.didUpdate(),ep.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sq=!0,n&&(n.scheduleCheckAfterUnmount(),e.group?.remove(n),i?.deregister?.(n))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}}function s0(t){let[e,i]=sG(),n=(0,sK.useContext)(ih);return(0,h.jsx)(sQ,{...t,layoutGroup:n,switchLayoutGroup:(0,sK.useContext)(iD),isPresent:e,safeToRemove:i})}let s1,s2=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],s3=t=>"number"==typeof t?t:parseFloat(t),s5=s2.length,s4=t=>"number"==typeof t||R.test(t);function s9(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let s6=s7(0,.5,ng),s8=s7(.5,.95,tO);function s7(t,e,i){return n=>n<t?0:n>e?1:i(nw(t,e,n))}function rt(t,e){t.min=e.min,t.max=e.max}function re(t,e){rt(t.x,e.x),rt(t.y,e.y)}function ri(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rn(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function rs(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(C.test(e)&&(e=parseFloat(e),e=eQ(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eQ(r.min,r.max,n);t===r&&(a-=e),t.min=rn(t.min,e,i,a,s),t.max=rn(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let rr=["x","scaleX","originX"],ro=["y","scaleY","originY"];function ra(t,e,i,n){rs(t.x,e,rr,i?.x,n?.x),rs(t.y,e,ro,i?.y,n?.y)}let rl=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rh=rl("applewebkit/")&&!rl("chrome/")?Math.round:tO;function ru(t){t.min=rh(t.min),t.max=rh(t.max)}function rd(t){return 0===t.translate&&1===t.scale}function rc(t){return rd(t.x)&&rd(t.y)}function rp(t,e){return t.min===e.min&&t.max===e.max}function rm(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rf(t,e){return rm(t.x,e.x)&&rm(t.y,e.y)}function rg(t){return si(t.x)/si(t.y)}function ry(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rv{constructor(){this.members=[]}add(t){t1(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(t2(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(t2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function rx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rw={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!R.test(t))return t;else t=parseFloat(t);let i=rx(t,e.target.x),n=rx(t,e.target.y);return`${i}% ${n}%`}},rb={borderRadius:Object.assign({},rw,{applyTo:s2.slice()}),borderTopLeftRadius:rw,borderTopRightRadius:rw,borderBottomLeftRadius:rw,borderBottomRightRadius:rw,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=_.parse(t);if(n.length>5)return t;let s=_.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eQ(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},rT=(t,e)=>t.depth-e.depth;class rS{constructor(){this.children=[],this.isDirty=!1}add(t){t1(this.children,t),this.isDirty=!0}remove(t){t2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rT),this.isDirty=!1,this.children.forEach(t)}}let rP=["z","skew","skewZ"],rA=0;function rE(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}let rM=t=>t.instance&&ec.get(t.instance)?.demote()&&t.resetSkewAndRotation();function rk({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return Object.assign(eX,{...rb,...eX}),class{static create(t,e,i){var n;let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e,c=t.projection=new this(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent));c.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&(n=a)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"current"),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u});let p=c.getStack()?.lead;p&&!c.root.isUpdateBlocked()&&(p.willUpdate(),p.scheduleCheckAfterUnmount())}constructor(t={},i=e?.()){this.id=rA++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rR),this.nodes.forEach(rW),this.nodes.forEach(r$),this.nodes.forEach(rD),s1?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rS)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t3),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){this.eventHandlers.get(t)?.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=sp(e)&&!(sp(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;t$.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){var e;let r,o;n=t,this.root.updateBlockedByResize=!0,i?.(),e=s,r=ee.now(),e=sd(e),o=({timestamp:t})=>{let i=t-r;i>=250&&(tz(o),e(i-250))},t$.setup(o,!0),i=su(()=>tz(o)),sX.hasAnimatedSinceResize&&(sX.hasAnimatedSinceResize=!1,this.nodes.forEach(rN))}})}i&&this.root.registerSharedNode(i,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:t,layout:e,visualElement:i,animate:n}=this.options;this.instance&&!this.hasLayoutListener&&!1!==n&&i&&(t||e)&&(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:s})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||i.getDefaultTransition()||rX,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!rf(this.targetLayout,s),h=!e&&n;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iU(r,"layout"),onPlay:o,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||rN(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,tz(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes?.forEach(rz),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void this.options.onExitComplete?.();if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iR];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",t$,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;rM(this),this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,rM(e),("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1),e.isAnimationBlocked&&(e.dragSnapshot||(e.dragSnapshot=e.measure()),this.dragAncestor=e)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(rF),this.nodes.forEach(rj);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rB);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rO),this.nodes.forEach(rI),this.nodes.forEach(rU),this.nodes.forEach(rV),this.nodes.forEach(rC)):this.nodes.forEach(rB),this.clearAllSnapshots();let t=ee.now();tW.delta=f(0,1e3/60,t-tW.timestamp),tW.timestamp=t,tW.isProcessing=!0,t_.update.process(tW),t_.preRender.process(tW),t_.render.process(tW),tW.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ep.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rL),this.sharedNodes.forEach((t,e)=>t.members.length?t.removeLeadSnapshot():this.sharedNodes.delete(e))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,t$.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){t$.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||si(this.snapshot.measuredBox.x)||si(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=ts()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e?.notify("LayoutMeasure",this.layout.layoutBox,t?.layoutBox)}updateScroll(t="measure"){let{scroll:e,instance:s}=this,{animationId:r}=this.root;if(this.options.layoutScroll&&s&&!(e&&e.animationId===r&&e.phase===t)){let o=n(s);this.scroll={animationId:r,phase:t,isRoot:o,offset:i(s),wasRoot:e?e.isRoot:o}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;t&&rM(this);let e=this.projectionDelta&&!rc(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||e3(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ru((e=n).x),ru(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ts();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rq))){let{scroll:t}=this.root;t&&(e7(e.x,t.offset.x),e7(e.y,t.offset.y))}return e}removeElementScroll(t){let e=ts();if(re(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&re(e,t),e7(e.x,s.offset.x),e7(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i,n,s=0){let r=i||ts();re(r,t);for(let t=s;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e7(r.x,-i.scroll.offset.x),e7(r.y,-i.scroll.offset.y)),e3(i.latestValues)&&ii(r,i.latestValues,i.layout?.layoutBox)}return!n&&e3(this.latestValues)&&ii(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(t){let e=ts();re(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];e3(n.latestValues)&&(n.instance&&(e1(n.latestValues)&&n.updateSnapshot(),re(i=ts(),n.measurePageBox())),ra(e,n.latestValues,n.snapshot?.layoutBox,i))}return e3(this.latestValues)&&ra(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade},this.addLayoutListener()}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!==tW.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tW.timestamp;let r=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ts(),this.targetWithTransforms=ts()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,sr(o.x,a.x,l.x,h?.x),sr(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):re(this.target,this.layout.layoutBox),e8(this.target,this.targetDelta)):re(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&(!r.resumingFrom==!this.resumingFrom||r.options.layoutRoot&&!r.resumingFrom)&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),s1?.(1)}}getClosestProjectingParent(){if(!(!this.parent||e1(this.parent.latestValues)||e4(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ts(),this.relativeTargetOrigin=ts(),sa(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),re(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tW.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;re(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++)r=(s=i[a]).projectionDelta,s.options.visualElement?.props.style?.display!=="contents"&&(!0===n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(e7(t.x,-s.scroll.offset.x),e7(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,e8(t,r)),n&&(n.path?.[a]||n)!==s&&e3(s.latestValues)&&ii(t,s.latestValues,s.layout?.layoutBox));e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e&&(!t.relativeTarget||!!t.relativeParent.resumingFrom||t.relativeParent)),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=ts());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ri(this.prevProjectionDelta.x,this.projectionDelta.x),ri(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ss(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&ry(this.projectionDelta.x,this.prevProjectionDelta.x)&&ry(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),s1?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){this.options.visualElement?.scheduleRender(),t&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ti(),this.projectionDelta=ti(),this.projectionDeltaWithTransform=ti()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=ti();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=ts(),h=s?.source!==this.layout?.source,u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(rH));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(r_(a.x,t.x,i),r_(a.y,t.y,i),s&&(a.x.translate=s.x,a.y.translate=s.y),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;sa(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,rY(f.x,g.x,y.x,v),rY(f.y,g.y,y.y,v),n&&(u=this.relativeTarget,m=n,rp(u.x,m.x)&&rp(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=ts()),re(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=eQ(0,i.opacity??1,s6(n)),t.opacityExit=eQ(e.opacity??1,0,s8(n))):r&&(t.opacity=eQ(e.opacity??1,i.opacity??1,n));for(let s=0;s<s5;s++){let r=s2[s],o=s9(e,r),a=s9(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||s4(o)===s4(a)?(t[r]=Math.max(eQ(s3(o),s3(a),n),0),(C.test(a)||C.test(o))&&(t[r]+="%")):t[r]=a)}for(let s=0;s<e2.length;s++){let r=e2[s];(e[r]||i[r])&&(t[r]=eQ(e[r]||0,i[r]||0,n))}}(o,r,this.latestValues,i,c,d)),s?.rotate!==void 0&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tz(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t$.update(()=>{var e,i,n;let s;sX.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ey(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=tr(e)?e:ey(e)).run(nJ("",s,i,n)),s.animation),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...ei("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,layout:i,latestValues:n}=t,{target:s}=t;if(e&&s&&i){if(this!==t&&this.layout&&i&&rG(this.options.animationType,this.layout.layoutBox,i.layoutBox)){let{layoutBox:t}=this.layout,e=s;rK((s=this.target||ts()).x,e.x,t.x),rK(s.y,e.y,t.y)}re(e,s),ii(e,n),ss(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rv),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?.transition,preserveFollowOpacity:i?.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){this.getStack()?.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let{latestValues:e}=t;if(!e5(e))return;let i={};for(let e=0;e<rP.length;e++)rE(rP[e],t,i,this.animationValues);for(let e=0;e<e2.length;e++)rE(e2[e],t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;let i=this.getLead();if(!this.isVisible&&i!==this){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iw(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!i.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,t.visibility="",t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iw(e?.pointerEvents)||""),this.hasProjected&&!e3(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;(s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `);let a="";if(i){let{transformPerspective:t}=i;t&&(n=`perspective(${t}px) ${n}`);for(let t=0;t<e2.length;t++){let e=e2[t],n=i[e];n&&(a+=`${e}(${n}deg) `),!t&&i.pathRotation&&(a+=`rotate(${i.pathRotation}deg) `)}}if(a){(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),n+=a;let i=t.x.scale*e.x,s=t.y.scale*e.y;(1!==i||1!==s)&&(n+=`scale(${i}, ${s})`)}else 1!==t.x.scale||1!==t.y.scale?n+=`scale(${t.x.scale}, ${t.y.scale})`:n||1===e.x&&1===e.y||(n="scale(1, 1)");return n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);n&&(r=n(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eX){if(void 0===s[e])continue;let{correct:n,applyTo:o,isCSSVariable:a}=eX[e],l="none"===r?s[e]:n(s[e],i);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?iw(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rj),this.root.sharedNodes.clear()}}}function rV(t){t.updateLayout(),function(t){let{snapshot:e,dragAncestor:i}=t,n=i?.isAnimationBlocked&&i.layout;if(!e||!n||t.resumeFrom||t.isAnimationBlocked)return;let s=i.dragSnapshot;sl(t=>e7(e.layoutBox[t],n.layoutBox[t].min-s.layoutBox[t].min))}(t)}function rC(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source,o=(n,r)=>{if("size"===s)sl(t=>{let e=si(n[t]);n[t].min=r[t].min,n[t].max=n[t].min+e});else if("x"===s||"y"===s){let t="x"===s?"y":"x";rt(n[t],r[t])}else rG(s,e.layoutBox,i)&&sl(e=>{let i=si(r[e]);n[e].max=n[e].min+i,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+i)})},a=r?e.measuredBox:e.layoutBox;o(a,i);let l=ti();ss(l,i,e.layoutBox);let h=ti();ss(h,r?t.applyTransform(n,!0):i,a);let u=!rc(l),d=!1,c=t.getClosestProjectingParent();if((!r||c?.options.layoutRoot&&t.resumeFrom?.path.includes(c))&&c&&!c.resumeFrom){let{snapshot:n,layout:s}=c;if(n&&s){let a=t.options.layoutAnchor||void 0,l=ts();sa(l,r?t.resumeFrom.applyTransform(e.layoutBox,!0,void 0,!0,c.depth+1):e.layoutBox,n.layoutBox,a);let h=ts();sa(h,i,s.layoutBox,a),r&&o(l,h),rf(l,h)||(d=!0),c.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=l,t.relativeParent=c)}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:h,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else t.isLead()&&t.options.onExitComplete?.();t.options.transition=void 0}function rR(t){s1?.(0),t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rD(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rL(t){t.clearSnapshot()}function rj(t){t.clearMeasurements()}function rF(t){t.isLayoutDirty=!0,t.updateLayout()}function rB(t){t.isLayoutDirty=!1}function rO(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.dragSnapshot||t.layout,t.isLayoutDirty=!0)}function rI(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function rU(t){let{visualElement:e}=t.options;e?.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rW(t){t.resolveTargetDelta()}function r$(t){t.calcProjection()}function rz(t){t.resetSkewAndRotation()}function r_(t,e,i){t.translate=eQ(e.translate,0,i),t.scale=eQ(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rY(t,e,i,n){t.min=eQ(e.min,i.min,n),t.max=eQ(e.max,i.max,n)}function rH(t){return t.animationValues?.opacityExit!==void 0}let rX={duration:.45,ease:[.4,0,.1,1]};function rK(t,e,i){t.max=si(i)+(t.min=e.min)}function rG(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rg(e)-rg(i)))}function rq(t){return t!==t.root&&t.scroll?.wasRoot}let rZ=rk({attachResizeListener:(t,e)=>n8(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rJ=rk({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!il.current){let t=new rZ({});t.mount(window),t.setOptions({layoutScroll:!0}),il.current=t}return il.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rQ(t,e){let i=sm(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},su(()=>n.abort())]}function r0(t,e,i,n,s){let{props:r}=t,o="while"+i;!s&&t.animationState&&r[o]&&t.animationState.setActive(o,"Start"===n);let a=r["on"+i+n];a&&t$.postRender(()=>a(e,st(e)))}function r1(t){return sc(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}let r2=(t,e)=>!!e&&(t===e||r2(t,e.parentElement)),r3=new WeakSet;function r5(t){return e=>{"Enter"===e.key&&t(e)}}function r4(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let r9=new WeakSet,r6=(t,e,i)=>Math.hypot(t.clientX-e.clientX,t.clientY-e.clientY)>i,r8=t=>t.preventDefault();function r7(t,e,i,n){t.current instanceof HTMLButtonElement&&t.current.disabled||r0(t,e,"Tap",i,n)}let ot=new WeakMap,oe=new WeakMap,oi=t=>{let e=ot.get(t.target);e&&e(t)},on=t=>{t.forEach(oi)},os={some:0,all:1},or=function(t,e){if("u"<typeof Proxy)return ij;let i=new Map,n=(i,n)=>ij(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ij(r,void 0,t,e)),i.get(r))})}(Object.assign({},{animation:{Feature:class extends iF{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(e=>n2(t,e,i))):"string"==typeof e?n2(t,e,i):Promise.all(n0(t,iB(t,e,i.custom),i))).then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=n9(),n=!0,s=!1;function r(r){let{props:o,parent:a,manuallyAnimateOnMount:l}=t,{initial:h}=o,u=n||s,d=[],c=(e=h)=>"boolean"!=typeof e&&iB(t,Array.isArray(e)?e[0]:e,t.presenceContext?.custom)||void 0,p=new Map,m={},f=1/0,g=t;do g=!1!==g.props.inherit&&g.parent;while(g&&!g.isControllingVariants)let y=u&&n4(c(h??(g&&g.props.initial))?.transition);if(n5.forEach((e,n)=>{var s,h;let c,v=i[e],x=o[e],w=g&&g.props[e],b=void 0!==x?x:ew(w)||!1===w?w:void 0,T=ew(b),S=e===r?v.isActive:null,P=T&&void 0===x&&!(u&&l);if(v.protectedKeys={...m},!v.isActive&&null===S||!b&&!v.prevProp||ex(b)||"boolean"==typeof b)return;if(!1===S&&(f=n),"exit"===e&&v.isActive&&!0!==S){m={...m,...v.prevResolvedValues};return}let A=(s=v.prevProp,"string"==typeof(h=b)?h!==s:!!Array.isArray(h)&&!n3(h,s)),E=A||T&&(S&&!P||n>f),M=!1,k=Array.isArray(b)?b:[b],V={};if(!1!==S)for(let i of k){let{transition:n,transitionEnd:s,...r}=iB(t,i,iO(t,e))||{};V={...V,...r,...s},c=n4(n)||c}let{prevResolvedValues:C}=v;for(let e in{...C,...V}){let i;if(e in m)continue;let n=V[e],s=C[e],r=Array.isArray(n)&&Array.isArray(s)?!n3(n,s)||A:n!==s;if(r&&null==n)p.has(e)||p.set(e,v.prevOut);else if(r||void 0!==n&&p.has(e)){E=!0,i=p.get(e)||y,p.delete(e)&&(M=!0),v.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)}else v.protectedKeys[e]=!0;v.out[e]=i}if(v.prevProp=b,v.prevResolvedValues=V,v.prevOut=c,v.isActive&&(m={...m,...V}),E&&(!(P&&A)||M))for(let i of k){let n={type:e};if("string"==typeof i&&u&&l&&a?.enteringChildren){let e=iB(a,i)?.transition?.delayChildren;n.delay=n1(a.enteringChildren,t,e)}d.push({animation:i,options:n})}}),p.size){let e={},i=c(),n=i?.transition;p.forEach((s,r)=>{s&&(n={...n||t.getDefaultTransition(),[r]:s});let a=t.getValue(r);a&&(a.liveStyle=!0);let l=i&&!Array.isArray(h)?i[r]:void 0,u=t.getBaseTargetFromProps(o,r);e[r]=(void 0!==l?l:void 0===u||tr(u)?void 0===t.initialValues[r]?t.baseTarget[r]:void 0:u)??null}),n&&(e.transition=n),d.push({animation:e})}let v=u&&t.blockInitialAnimation||n&&!l&&(!1===o.initial||o.initial===o.animate);return n=s=!1,!v&&d.length?e(d):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:i=>{e=i(t)},getState:()=>i,reset:()=>{i=n9(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ex(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iF{constructor(){super(...arguments),this.id=n6++}update(){let{presenceContext:t,animationState:e}=this.node;if(!t||!e)return;let{isPresent:i,onExitComplete:n}=t;if(i===!this.exit)return;if(i){if(!0===this.exit){let{initial:t}=this.node.getProps();if(t&&!Array.isArray(t)){let{transition:e,transitionEnd:i,...n}=iB(this.node,t)||{};for(let t in n)this.node.getValue(t)?.jump(n[t])}this.node.blockInitialAnimation=!1,e.reset(),e.animateChanges()}else e.setActive("exit",!1);this.exit=void 0;return}let s=this.exit=e.setActive("exit",!0);n&&s.then(()=>{this.exit===s&&(this.exit=!0,n(this.id))})}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id,this.node)),this.update()}unmount(){}}}},{inView:{Feature:class extends iF{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:os[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;oe.has(i)||oe.set(i,{});let n=oe.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(on,{root:t,...e})),n[s]}(a),ot.set(t,l),e.observe(t),()=>{ot.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iF{constructor(){super(...arguments),this.options={}}mount(){let{current:t}=this.node;t&&(this.update(),this.unmount=function(t,e,i={}){e=sd(e);let[n,s,r]=rQ(t,i),o=new WeakMap,a=t=>{let n,r=t.currentTarget;if(!(n7(t)&&!sj())||r9.has(t))return;i.stopPropagation&&r9.add(t);let{count:a=1,countTimeout:l=.3,hold:h=0,repeat:u}=i,d=ee.now(),c=t0(h),p=t0(l),m=o.get(r);m?.expire(r6(m.event,t,100))?m=void 0:m&&(tz(m.expire),o.delete(r));let f=m?m.count+1:1,g=f>=a,y=g&&(h||u),v=!h,x=0;if(r3.add(r),m)n=m.handlers;else{let i=e(r,t);n="function"==typeof i?{onComplete:i}:i||{}}g&&v&&n.onActive?.();let w=t0(u),b=c||w,T=d+b,S=!0,P=()=>{if(s.signal.aborted)return tz(P);let t=Math.min(1-(T-ee.now())/b,1);S&&t<1&&(t=0),S=!1,n.onHold?.(t),t<1||(v?n.onRepeat?.(++x):(v=!0,n.onActive?.()),u?(S=!0,T+=b=w):tz(P))},A={...s,capture:!0},E=(e,i)=>{if(window.removeEventListener("pointerup",M,A),window.removeEventListener("pointercancel",k,A),window.removeEventListener("pointermove",V,A),r.removeEventListener("contextmenu",r8),tz(P),r3.delete(r),n7(e))if(sj()&&(i=!1),i&&!g){let i=ee.now(),a=t=>{let l=s.signal.aborted;if(l||!0===t||ee.now()-i>p)return tz(a),o.delete(r),l||n.onComplete?.(e,{success:!1}),!0};o.set(r,{count:f,event:t,handlers:n,expire:a}),t$.update(a,!0)}else n.onComplete?.(e,{success:i&&v})},M=t=>{E(t,r===window||r===document||i.useGlobalTarget||r2(r,t.target))},k=t=>{E(t,!1)},V=e=>{n7(e)&&((u||!v)&&r6(t,e,8)||a>1&&sj())&&k(e)};window.addEventListener("pointerup",M,A),window.addEventListener("pointercancel",k,A),(y||a>1)&&window.addEventListener("pointermove",V,A),y&&(t$.update(P,!0),r.addEventListener("contextmenu",r8,{...s,passive:!1}))};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),r1(t))&&(t.addEventListener("focus",()=>{let e,i,n;return e=!1,i=r5(()=>{e||r3.has(t)||(e=!0,r4(t,"down"))}),n=r5(()=>{e&&(e=!1,r4(t,"up"))}),void(t.addEventListener("keydown",i,s),t.addEventListener("keyup",n,s),t.addEventListener("blur",()=>{t.removeEventListener("keydown",i),t.removeEventListener("keyup",n),e&&r4(t,"cancel")},{...s,once:!0}))},s),sR.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(r7(this.node,e,"Start"),{onComplete:(t,{success:e})=>r7(this.node,t,e?"":"Cancel"),onRepeat:()=>r7(this.node,e,"",!0)}),this.options))}update(){let{options:t,node:e}=this,{globalTapTarget:i,propagate:n,tap:s}=e.props;for(let e in t)delete t[e];Object.assign(t,s,{useGlobalTarget:i,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends iF{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=iW(n8(this.node.current,"focus",()=>this.onFocus()),n8(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iF{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){e=sd(e);let[n,s,r]=rQ(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||sj())return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(r0(this.node,e,"Hover","Start"),t=>r0(this.node,t,"Hover","End"))))}unmount(){}}}},{pan:{Feature:class extends iF{constructor(){super(...arguments),this.removePointerDownListener=tO}onPointerDown(t){this.session=new sA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sH(t),onStart:sH(e),onMove:sH(i),onEnd:(t,e)=>{delete this.session,n&&t$.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=se(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}}},drag:{Feature:class extends iF{constructor(t){super(t),this.removeGroupControls=tO,this.removeListeners=tO,this.controls=new sW(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tO}update(){let{dragControls:t,drag:e}=this.node.getProps(),{dragControls:i,drag:n}=this.node.prevProps||{};t!==i&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls))),n&&!e&&this.controls.stop(void 0,void 0,n)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rJ,MeasureLayout:s0}},{layout:{ProjectionNode:rJ,MeasureLayout:s0}}),(t,e)=>e.isSVG??ia(t)?new eZ(e):new ir(e,{allowProjection:t!==u.Fragment}));t.s(["f",0,or],32181);var oo=u;function oa(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}let ol=t=>{let{width:e,height:i}=t?.getBoundingClientRect()||{};return[e/t?.offsetWidth||1,i/t?.offsetHeight||1]},oh=t=>{let{left:e,top:i}=t.getBoundingClientRect(),n=t;for(;n=n.parentElement||n.parentNode?.host;){let{scrollLeft:t,scrollTop:s}=n;if(t||s){let[r,o]=ol(n);e+=t*r,i+=s*o}if("fixed"===getComputedStyle(n).position)break}let[s,r]=ol(t.offsetParent);return[e/s,i/r]};class ou extends oo.Component{getSnapshotBeforeUpdate(t){let e=this.props.getElement();if(r1(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=r1(t)&&t.offsetWidth||0,n=r1(t)&&t.offsetHeight||0,s=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(s.height),r.width=parseFloat(s.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top,r.direction=s.direction,r.point=oh(e)}return null}componentDidUpdate(){}render(){return this.props.children}}function od({children:t,isPresent:e,anchorX:i,anchorY:n,root:s,pop:r,popNode:o}){let a=(0,oo.useId)(),l=(0,oo.useRef)(null),d=(0,oo.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,oo.useContext)(id.f),p=function(...t){return u.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=oa(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():oa(t[e],null)}}}}(...t),t)}(l,!1!==r?t.props?.ref??t?.ref:void 0),m=()=>l.current||o?.current?.current,f=t=>{let{width:e,height:s,top:r,left:o,right:l,bottom:h,direction:u}=d.current,c="rtl"===u,p="left"===i?c?`right:${l}`:`left:${o}`:c?`left:${o}`:`right:${l}`,m="bottom"===n?`bottom:${h}`:`top:${r}`;t?.insertRule(`[data-motion-pop-id="${a}"]{position:absolute!important;width:${e}px!important;height:${s}px!important;${p}px!important;${m}px!important}`)};return(0,oo.useInsertionEffect)(()=>{let{width:t,height:i}=d.current,n=m();if(e||!1===r||!n||!t||!i)return;n.dataset.motionPopId=a;let o=n.ownerDocument,l=o.createElement("style");c&&(l.nonce=c);let h=s??o.head;h.appendChild(l),f(l.sheet);let u=0,p=0;return ep.setup(()=>{let[t,e]=oh(n);u=d.current.point[0]-t,p=d.current.point[1]-e}),ep.read(()=>{let{sheet:t}=l;if(!t||!u&&!p)return;let e=d.current;e.left+=u,e.right-=u,e.top+=p,e.bottom-=p,t.deleteRule(0),f(t)}),()=>{n.removeAttribute("data-motion-pop-id"),h.contains(l)&&h.removeChild(l)}},[e]),(0,h.jsx)(ou,{isPresent:e,getElement:m,sizeRef:d,pop:r,children:!1===r?t:oo.cloneElement(t,{ref:p})})}let oc=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:d})=>{let c=(0,iS.f)(op),p=(0,u.useId)(),m=(0,u.useRef)(),f=(0,u.useRef)(i),g=(0,u.useRef)(n);iL(()=>{f.current=i,g.current=n});let y=!0,v=(0,u.useMemo)(()=>(y=!1,{id:p,initial:e,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(c.set(t,!0),c.values()))if(!e)return;n&&n()},register:(t,e)=>(c.set(t,!1),e&&e.parent?.presenceContext?.id!==p&&(m.current=e),()=>{c.delete(t),f.current||c.size||g.current?.()})}),[i,c,n]);return r&&y&&(v={...v}),(0,u.useMemo)(()=>{c.forEach((t,e)=>c.set(e,!1))},[i]),u.useEffect(()=>{i||c.size||!n||n()},[i]),t=(0,h.jsx)(od,{pop:"popLayout"===o,isPresent:i,anchorX:a,anchorY:l,root:d,popNode:m,children:t}),(0,h.jsx)(iT.Provider,{value:v,children:t})};function op(){return new Map}let om=t=>t.key||"";function of(t){let e=[];return u.Children.forEach(t,t=>{(0,u.isValidElement)(t)&&e.push(t)}),e}let og=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:d})=>{let[c,p]=sG(o),m=(0,u.useMemo)(()=>of(t),[t]),f=o&&!c?[]:m.map(om),g=(0,u.useRef)(!0),y=(0,iS.f)(()=>new Map),v=(0,u.useRef)(new Set),[x,w]=(0,u.useState)(m),[b,T]=(0,u.useState)(m);iL(()=>{!o||c||b.length||p?.()},[c,o,b.length,p]);let S=(0,u.useRef)();(0,u.useEffect)(()=>()=>{let t=S.current;S.current=void 0,t?.()},[b]),iL(()=>{g.current=!1;for(let t=0;t<b.length;t++){let e=om(b[t]);f.includes(e)?(y.delete(e),v.current.delete(e)):!0!==y.get(e)&&y.set(e,!1)}},[b,f.length,f.join("-")]);let P=[];if(m!==x){let t=[...m],e=0;for(let i of b){let n=f.indexOf(om(i));-1===n?(t.splice(e++,0,i),P.push(i)):e=n+P.length+1}return P.every(t=>y.get(om(t)))?t=m:"wait"===r&&(t=P),T(of(t)),w(m),null}let{forceRender:A}=(0,u.useContext)(ih);return(0,h.jsx)(h.Fragment,{children:b.map(t=>{let u=om(t),x=(!o||!!c)&&(m===b||f.includes(u));return(0,h.jsx)(oc,{isPresent:x,initial:(!g.current||!!i)&&void 0,custom:e,presenceAffectsLayout:s,mode:r,root:d,onExitComplete:x?void 0:()=>{if(v.current.has(u)||!y.has(u))return;v.current.add(u),y.set(u,!0);let t=!0;y.forEach(e=>{e||(t=!1)}),t&&(A?.(),w([]),o&&p?.(),S.current=n)},anchorX:a,anchorY:l,children:t},u)})})};var oy=t.i(78571);t.s(["G",0,function({label:t,required:e,children:i}){return(0,h.jsxs)("div",{children:[(0,h.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:[t," ",e&&(0,h.jsx)("span",{className:"text-accent",children:"*"})]}),i]})},"n",0,function({open:t,onClose:e,title:i,description:n,icon:s,children:r,className:o}){let a=(0,u.useRef)(null),l=(0,u.useId)(),p=(0,u.useRef)(e);return(p.current=e,(0,u.useEffect)(()=>{if(!t)return;let e=t=>{"Escape"===t.key&&p.current()};window.addEventListener("keydown",e);let i=a.current,n=t=>{if("Tab"!==t.key||!i)return;let e=i.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])');if(0===e.length)return;let n=e[0],s=e[e.length-1];t.shiftKey&&document.activeElement===n?(t.preventDefault(),s.focus()):t.shiftKey||document.activeElement!==s||(t.preventDefault(),n.focus())};return window.addEventListener("keydown",n),i?.focus(),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keydown",n)}},[t]),"u"<typeof document)?null:(0,d.createPortal)((0,h.jsx)(og,{children:t&&(0,h.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-3",children:[(0,h.jsx)(or.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:e}),(0,h.jsxs)(or.div,{ref:a,role:"dialog","aria-modal":"true","aria-labelledby":l,tabIndex:-1,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2,ease:[.16,1,.3,1]},className:(0,oy.f)("relative z-10 w-full max-w-lg rounded border border-border bg-surface p-6 shadow-[0_0_30px_var(--color-glow)] outline-none",o),children:[(0,h.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-primary/60 via-accent/40 to-transparent"}),(0,h.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3",children:[s&&(0,h.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded border border-primary/30 bg-primary/5",children:s}),(0,h.jsxs)("div",{children:[(0,h.jsx)("h2",{id:l,className:"text-sm font-bold uppercase tracking-wider",children:i}),n&&(0,h.jsx)("p",{className:"text-[11px] text-text-muted",children:n})]})]}),(0,h.jsx)("button",{onClick:e,"aria-label":"Close dialog",className:"rounded p-1.5 text-text-muted hover:text-accent transition-colors",children:(0,h.jsx)(c.X,{className:"h-4 w-4"})})]}),r]})]})}),document.body)},"W",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","N",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","M",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all resize-none"],32568)},37806,47414,t=>{"use strict";var e=t.i(71645);let i=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["f",0,i],37806),t.s(["f",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}],47414)},53034,t=>{"use strict";t.s(["f",0,function(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7415,e=>{"use strict";var a=e.i(43476),r=e.i(71645),s=e.i(22016),t=e.i(79432),n=e.i(24983),n=n,i=e.i(52330),l=e.i(58925),o=e.i(41120),c=e.i(41220),d=e.i(82983),x=e.i(46670),u=e.i(68759),m=e.i(93999),h=e.i(63376),p=e.i(49292);e.s(["default",0,function(){let[e,f]=(0,r.useState)([]),[g,v]=(0,r.useState)(!0),[b,j]=(0,r.useState)(""),[w,N]=(0,r.useState)(null);async function y(e){N(e.nodeId),j("");try{let a=await d.f.codex.update(e.nodeId);if(!a.data)throw Error(a.error?.message??"Codex update failed");let r=a.data;f(e=>e.map(e=>e.nodeId===r.nodeId?r:e))}catch(a){j(`${e.nodeName}: ${a instanceof Error?a.message:"Codex update failed"}`)}finally{N(null)}}async function _(e=!1){v(!0),j("");try{f((await d.f.codex.installations(e)).data??[])}catch(e){j(e instanceof Error?e.message:"Failed to load Codex fleet state")}finally{v(!1)}}(0,r.useEffect)(()=>{_()},[]);let I=e.filter(e=>e.installed&&e.reachable),k=I.filter(e=>e.auth.oauth),C=I.filter(e=>e.updateAvailable),E=I.filter(e=>!e.auth.oauth),A=(0,r.useMemo)(()=>I.find(e=>e.latestVersion)?.latestVersion??"unavailable",[I]);return(0,a.jsxs)(h.U,{className:"space-y-6",children:[(0,a.jsx)(h.z,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider text-primary",children:"Codex Agents"}),(0,a.jsx)("p",{className:"mt-1 text-[11px] uppercase tracking-wider text-text-muted",children:"ChatGPT OAuth and CLI release posture · API tokens disabled"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(u.K,{size:"sm",variant:"secondary",disabled:g||null!==w,icon:(0,a.jsx)(o.f,{className:`h-3.5 w-3.5 ${g?"animate-spin":""}`}),onClick:()=>void _(!0),children:"Refresh"}),(0,a.jsxs)(s.default,{href:"/codex/installations",className:"inline-flex h-8 items-center gap-2 rounded border border-primary/60 bg-primary/10 px-3 text-[11px] font-medium uppercase tracking-wider text-primary hover:bg-primary/20",children:[(0,a.jsx)(c.f,{className:"h-3.5 w-3.5"}),"Installations"]})]})]})}),b&&(0,a.jsx)("div",{role:"alert",className:"rounded border border-danger/30 bg-danger/10 p-4 text-xs text-danger",children:b}),(0,a.jsx)(h.z,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[(0,a.jsx)(m.n,{label:"Codex Installed",value:I.length,icon:(0,a.jsx)(i.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"OAuth Healthy",value:k.length,icon:(0,a.jsx)(l.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"Updates Available",value:C.length,icon:(0,a.jsx)(o.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"Needs Login",value:E.length,icon:(0,a.jsx)(n.f,{className:"h-4 w-4"})})]})}),(0,a.jsx)(h.z,{children:(0,a.jsx)(m.N,{title:"Fleet Posture",description:`Latest published Codex CLI: ${A}`,children:(0,a.jsxs)("div",{className:"space-y-2",children:[I.map(e=>(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded border border-border/50 bg-bg/50 px-3 py-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-medium text-text",children:e.nodeName}),(0,a.jsx)("p",{className:"mt-0.5 font-mono text-[10px] text-text-muted",children:e.version??(e.reachable?"not installed":"agent unreachable")})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[e.updateAvailable&&(0,a.jsx)(x.t,{variant:"warning",children:"update"}),(0,a.jsx)(x.t,{variant:e.auth.oauth?"success":e.reachable?"warning":"danger",children:e.auth.oauth?"OAuth current":e.reachable?e.auth.status.replaceAll("_"," "):"unreachable"}),(0,p.f)(e)&&(0,a.jsx)(u.K,{size:"sm",variant:"secondary",disabled:g||null!==w,"aria-label":`Update Codex on ${e.nodeName}`,icon:(0,a.jsx)(o.f,{className:`h-3.5 w-3.5 ${w===e.nodeId?"animate-spin":""}`}),onClick:()=>void y(e),children:w===e.nodeId?"Updating Codex…":e.latestVersion?"Update Codex":"Check & Update Codex"})]})]},e.nodeId)),!g&&0===I.length&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["No Codex installations were detected across ",e.length," managed nodes."]}),g&&(0,a.jsxs)("p",{className:"inline-flex items-center gap-2 text-xs text-text-muted",children:[(0,a.jsx)(t.f,{className:"h-3.5 w-3.5 animate-pulse"}),"Loading cached Codex fleet state..."]})]})})})]})}],7415)},46670,e=>{"use strict";var a=e.i(43476),r=e.i(78571);let s={default:"border-border text-text-muted",success:"border-success/40 text-success bg-success/5 shadow-[0_0_6px_rgba(0,255,65,0.15)]",warning:"border-warning/40 text-warning bg-warning/5 shadow-[0_0_6px_rgba(255,179,0,0.15)]",danger:"border-danger/40 text-danger bg-danger/5 shadow-[0_0_6px_rgba(255,23,68,0.15)]",info:"border-info/40 text-info bg-info/5 shadow-[0_0_6px_rgba(0,176,255,0.15)]"},t={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:n="default",className:i,dot:l=!1,pulse:o=!1}){return(0,a.jsxs)("span",{className:(0,r.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",s[n],i),children:[l&&(0,a.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[o&&(0,a.jsx)("span",{className:(0,r.f)("absolute inset-0 rounded-full animate-halo",t[n])}),(0,a.jsx)("span",{className:(0,r.f)("relative inline-flex h-1.5 w-1.5 rounded-full",t[n])})]}),e]})},"k",0,function(e){switch(e.toUpperCase()){case"ONLINE":case"COMPLETED":case"ACTIVE":case"RUNNING":case"INSTALLED":case"HEALTHY":return"success";case"DEGRADED":case"PAUSED":case"QUEUED":case"PENDING":case"INSTALLING":return"warning";case"OFFLINE":case"FAILED":case"ERROR":case"TIMEOUT":case"CANCELLED":case"DECOMMISSIONED":case"CRITICAL":return"danger";case"PROVISIONING":case"UPDATING":return"info";default:return"default"}}])},93999,51196,55427,e=>{"use strict";var a=e.i(43476),r=e.i(56420);let s={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};s.node;let t=(0,r.f)(s);var n=e.i(75775),i=e.i(78571),l=e.i(3062),o=e.i(35084);let c={warning:"shadow-[0_0_6px_var(--color-warning)]",danger:"shadow-[0_0_8px_var(--color-danger)]",accent:"shadow-[0_0_6px_var(--color-accent)]",primary:"shadow-[0_0_6px_var(--color-primary)]"},d={xs:"h-1",sm:"h-1.5",md:"h-2"};function x({value:e,max:r=100,tone:s,thresholds:t=o.q,label:n,size:l="xs",showValue:u=!1,valueLabel:m,glow:h,className:p,testId:f}){let g="number"==typeof e&&Number.isFinite(e),v=g?Math.max(0,Math.min(100,e/(r||1)*100)):0,b=s??(g?(0,o.Z)(v,t):"muted"),j=h||!s&&g&&v>=t.warn,w=m??(g?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,a.jsxs)("div",{className:(0,i.f)("flex min-w-0 items-center gap-2",p),"data-testid":f,children:[(0,a.jsx)("div",{role:"meter","aria-label":n,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":g?e:void 0,"aria-valuetext":w,className:(0,i.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[l]),children:(0,a.jsx)("div",{style:{"--meter":`${v}%`},className:(0,i.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",o.H[b],j&&c[b])})}),u&&(0,a.jsx)("span",{className:(0,i.f)("num w-11 shrink-0 text-right text-[11px]",g?o.T[b]:"text-text-muted"),children:w})]})}e.s(["f",0,x],51196);var u=e.i(71645);function m({values:e,tone:r="primary",width:s=160,height:t=32,area:n=!0,max:l,percent:c=!1,threshold:d,live:x=!0,emptyLabel:h="not enough data",className:p,testId:f,label:g,stretch:v=!1}){let b=`spark${(0,u.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,a.jsx)("div",{className:(0,i.f)("flex h-8 items-center text-xs italic text-text-muted",p),"data-testid":f,children:h});let j=o.v[r],w=l??(c?Math.max(100,...e):Math.max(...e,d??0)||1),N=t-4,y=s/(e.length-1),_=e=>2+N-Math.max(0,e)/w*N,I=e.map((e,a)=>[a*y,_(e)]),k=I.map(([e,a])=>`${e.toFixed(1)},${a.toFixed(1)}`).join(" "),C=I[I.length-1];return(0,a.jsxs)("svg",{width:v?"100%":s,height:t,viewBox:`0 0 ${s} ${t}`,preserveAspectRatio:v?"none":void 0,className:(0,i.f)("block overflow-visible",p),"data-testid":f,role:g?"img":void 0,"aria-label":g,"aria-hidden":!g||void 0,children:[n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:j,stopOpacity:.35}),(0,a.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,a.jsx)("polygon",{points:`0,${t} ${k} ${s},${t}`,fill:`url(#${b})`})]}),void 0!==d&&(0,a.jsx)("line",{x1:0,x2:s,y1:_(d),y2:_(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,a.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:k}),x&&!v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:C[0],cy:C[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,a.jsx)("circle",{cx:C[0],cy:C[1],r:2,fill:j})]})]})}e.s(["f",0,m],55427),e.s(["N",0,function({title:e,description:r,children:s,className:t,action:n,tone:i,corners:o=!1,...c}){return(0,a.jsx)(l.f,{...c,tone:i,corners:o,title:e,description:r,action:n,className:t,children:s})},"n",0,function({label:e,value:r,icon:s,trend:c,spark:d,meter:u,delta:h,tone:p="primary",className:f,testId:g}){let v=!h||h.value>=0===(h.positiveIsGood??!0);return(0,a.jsxs)(l.f,{tone:p,className:(0,i.f)("overflow-hidden",f),testId:g,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),s&&(0,a.jsx)("span",{className:"text-primary/60",children:s})]}),(0,a.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,a.jsx)("div",{className:(0,i.f)("num text-2xl font-bold","primary"===p?"text-primary neon-text":o.T[p]),children:r}),h&&0!==h.value&&(0,a.jsxs)("span",{className:(0,i.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[h.value>0?(0,a.jsx)(n.f,{className:"h-3 w-3"}):(0,a.jsx)(t,{className:"h-3 w-3"}),Math.abs(h.value).toFixed(+!Number.isInteger(h.value)),h.unit]})]}),c&&(0,a.jsx)("div",{className:(0,i.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==u&&(0,a.jsx)(x,{value:u,className:"mt-3",label:e}),d&&d.length>1&&(0,a.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,a.jsx)(m,{values:d,tone:p,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var a=e.i(43476),r=e.i(78571),s=e.i(35084);let t={primary:"[--panel-corner-color:color-mix(in_srgb,var(--color-primary)_60%,transparent)]",accent:"[--panel-corner-color:color-mix(in_srgb,var(--color-accent)_70%,transparent)]",success:"[--panel-corner-color:color-mix(in_srgb,var(--color-success)_60%,transparent)]",warning:"[--panel-corner-color:color-mix(in_srgb,var(--color-warning)_70%,transparent)]",danger:"[--panel-corner-color:color-mix(in_srgb,var(--color-danger)_70%,transparent)]",info:"[--panel-corner-color:color-mix(in_srgb,var(--color-info)_60%,transparent)]",muted:"[--panel-corner-color:var(--color-border-strong)]"},n={primary:"[--glow-hover-color:var(--color-glow)]",accent:"[--glow-hover-color:var(--color-glow-accent)]",success:"[--glow-hover-color:var(--color-glow-success)]",warning:"[--glow-hover-color:var(--color-glow-warning)]",danger:"[--glow-hover-color:var(--color-glow-danger)]",info:"[--glow-hover-color:var(--color-glow)]",muted:"[--glow-hover-color:var(--color-glow)]"},i={primary:"hover:border-primary/30",accent:"hover:border-accent/40",success:"hover:border-success/30",warning:"hover:border-warning/40",danger:"hover:border-danger/40",info:"hover:border-info/30",muted:"hover:border-border-strong"},l={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:o=!0,interactive:c=!0,hero:d=!1,title:x,description:u,icon:m,action:h,as:p="div",padding:f="md",testId:g,className:v,children:b,...j}){return(0,a.jsxs)(p,{...j,"data-testid":g??j["data-testid"],className:(0,r.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",l[f],o&&"panel-corners",o&&t[e],c&&"glow-hover",c&&n[e],c&&i[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||h||m)&&(0,a.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[m&&(0,a.jsx)("span",{className:(0,r.f)("mt-0.5 shrink-0",s.T[e]),children:m}),(0,a.jsxs)("div",{className:"min-w-0",children:[x&&(0,a.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),u&&(0,a.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:u})]})]}),h]}),b]})}])},63376,e=>{"use strict";var a=e.i(43476);e.s(["z",0,function({children:e,className:r}){return(0,a.jsx)("div",{className:`animate-page-in${r?` ${r}`:""}`,children:e})},"U",0,function({children:e,className:r}){return(0,a.jsx)("div",{className:r,children:e})}])},49292,e=>{"use strict";e.s(["f",0,function(e){return e.installed&&e.updateSupported&&(e.updateAvailable||!e.latestVersion)}])},79432,e=>{"use strict";var a=e.i(56420);let r={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};r.node;let s=(0,a.f)(r);e.s(["f",0,s],79432)},75775,e=>{"use strict";var a=e.i(56420);let r={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};r.node;let s=(0,a.f)(r);e.s(["f",0,s],75775)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7415,e=>{"use strict";var a=e.i(43476),r=e.i(71645),s=e.i(22016),t=e.i(79432),n=e.i(61837),n=n,i=e.i(52330),l=e.i(58925),o=e.i(41120),c=e.i(41220),d=e.i(82983),x=e.i(46670),u=e.i(68759),m=e.i(93999),h=e.i(63376),p=e.i(49292);e.s(["default",0,function(){let[e,f]=(0,r.useState)([]),[g,v]=(0,r.useState)(!0),[b,j]=(0,r.useState)(""),[w,N]=(0,r.useState)(null);async function y(e){N(e.nodeId),j("");try{let a=await d.f.codex.update(e.nodeId);if(!a.data)throw Error(a.error?.message??"Codex update failed");let r=a.data;f(e=>e.map(e=>e.nodeId===r.nodeId?r:e))}catch(a){j(`${e.nodeName}: ${a instanceof Error?a.message:"Codex update failed"}`)}finally{N(null)}}async function _(e=!1){v(!0),j("");try{f((await d.f.codex.installations(e)).data??[])}catch(e){j(e instanceof Error?e.message:"Failed to load Codex fleet state")}finally{v(!1)}}(0,r.useEffect)(()=>{_()},[]);let I=e.filter(e=>e.installed&&e.reachable),k=I.filter(e=>e.auth.oauth),C=I.filter(e=>e.updateAvailable),E=I.filter(e=>!e.auth.oauth),A=(0,r.useMemo)(()=>I.find(e=>e.latestVersion)?.latestVersion??"unavailable",[I]);return(0,a.jsxs)(h.U,{className:"space-y-6",children:[(0,a.jsx)(h.z,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider text-primary",children:"Codex Agents"}),(0,a.jsx)("p",{className:"mt-1 text-[11px] uppercase tracking-wider text-text-muted",children:"ChatGPT OAuth and CLI release posture · API tokens disabled"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(u.K,{size:"sm",variant:"secondary",disabled:g||null!==w,icon:(0,a.jsx)(o.f,{className:`h-3.5 w-3.5 ${g?"animate-spin":""}`}),onClick:()=>void _(!0),children:"Refresh"}),(0,a.jsxs)(s.default,{href:"/codex/installations",className:"inline-flex h-8 items-center gap-2 rounded border border-primary/60 bg-primary/10 px-3 text-[11px] font-medium uppercase tracking-wider text-primary hover:bg-primary/20",children:[(0,a.jsx)(c.f,{className:"h-3.5 w-3.5"}),"Installations"]})]})]})}),b&&(0,a.jsx)("div",{role:"alert",className:"rounded border border-danger/30 bg-danger/10 p-4 text-xs text-danger",children:b}),(0,a.jsx)(h.z,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[(0,a.jsx)(m.n,{label:"Codex Installed",value:I.length,icon:(0,a.jsx)(i.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"OAuth Healthy",value:k.length,icon:(0,a.jsx)(l.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"Updates Available",value:C.length,icon:(0,a.jsx)(o.f,{className:"h-4 w-4"})}),(0,a.jsx)(m.n,{label:"Needs Login",value:E.length,icon:(0,a.jsx)(n.f,{className:"h-4 w-4"})})]})}),(0,a.jsx)(h.z,{children:(0,a.jsx)(m.N,{title:"Fleet Posture",description:`Latest published Codex CLI: ${A}`,children:(0,a.jsxs)("div",{className:"space-y-2",children:[I.map(e=>(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded border border-border/50 bg-bg/50 px-3 py-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-medium text-text",children:e.nodeName}),(0,a.jsx)("p",{className:"mt-0.5 font-mono text-[10px] text-text-muted",children:e.version??(e.reachable?"not installed":"agent unreachable")})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[e.updateAvailable&&(0,a.jsx)(x.t,{variant:"warning",children:"update"}),(0,a.jsx)(x.t,{variant:e.auth.oauth?"success":e.reachable?"warning":"danger",children:e.auth.oauth?"OAuth current":e.reachable?e.auth.status.replaceAll("_"," "):"unreachable"}),(0,p.f)(e)&&(0,a.jsx)(u.K,{size:"sm",variant:"secondary",disabled:g||null!==w,"aria-label":`Update Codex on ${e.nodeName}`,icon:(0,a.jsx)(o.f,{className:`h-3.5 w-3.5 ${w===e.nodeId?"animate-spin":""}`}),onClick:()=>void y(e),children:w===e.nodeId?"Updating Codex…":e.latestVersion?"Update Codex":"Check & Update Codex"})]})]},e.nodeId)),!g&&0===I.length&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["No Codex installations were detected across ",e.length," managed nodes."]}),g&&(0,a.jsxs)("p",{className:"inline-flex items-center gap-2 text-xs text-text-muted",children:[(0,a.jsx)(t.f,{className:"h-3.5 w-3.5 animate-pulse"}),"Loading cached Codex fleet state..."]})]})})})]})}],7415)},46670,e=>{"use strict";var a=e.i(43476),r=e.i(78571);let s={default:"border-border text-text-muted",success:"border-success/40 text-success bg-success/5 shadow-[0_0_6px_rgba(0,255,65,0.15)]",warning:"border-warning/40 text-warning bg-warning/5 shadow-[0_0_6px_rgba(255,179,0,0.15)]",danger:"border-danger/40 text-danger bg-danger/5 shadow-[0_0_6px_rgba(255,23,68,0.15)]",info:"border-info/40 text-info bg-info/5 shadow-[0_0_6px_rgba(0,176,255,0.15)]"},t={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:n="default",className:i,dot:l=!1,pulse:o=!1}){return(0,a.jsxs)("span",{className:(0,r.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",s[n],i),children:[l&&(0,a.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[o&&(0,a.jsx)("span",{className:(0,r.f)("absolute inset-0 rounded-full animate-halo",t[n])}),(0,a.jsx)("span",{className:(0,r.f)("relative inline-flex h-1.5 w-1.5 rounded-full",t[n])})]}),e]})},"k",0,function(e){switch(e.toUpperCase()){case"ONLINE":case"COMPLETED":case"ACTIVE":case"RUNNING":case"INSTALLED":case"HEALTHY":return"success";case"DEGRADED":case"PAUSED":case"QUEUED":case"PENDING":case"INSTALLING":return"warning";case"OFFLINE":case"FAILED":case"ERROR":case"TIMEOUT":case"CANCELLED":case"DECOMMISSIONED":case"CRITICAL":return"danger";case"PROVISIONING":case"UPDATING":return"info";default:return"default"}}])},93999,51196,55427,e=>{"use strict";var a=e.i(43476),r=e.i(56420);let s={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};s.node;let t=(0,r.f)(s);var n=e.i(75775),i=e.i(78571),l=e.i(3062),o=e.i(35084);let c={warning:"shadow-[0_0_6px_var(--color-warning)]",danger:"shadow-[0_0_8px_var(--color-danger)]",accent:"shadow-[0_0_6px_var(--color-accent)]",primary:"shadow-[0_0_6px_var(--color-primary)]"},d={xs:"h-1",sm:"h-1.5",md:"h-2"};function x({value:e,max:r=100,tone:s,thresholds:t=o.q,label:n,size:l="xs",showValue:u=!1,valueLabel:m,glow:h,className:p,testId:f}){let g="number"==typeof e&&Number.isFinite(e),v=g?Math.max(0,Math.min(100,e/(r||1)*100)):0,b=s??(g?(0,o.Z)(v,t):"muted"),j=h||!s&&g&&v>=t.warn,w=m??(g?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,a.jsxs)("div",{className:(0,i.f)("flex min-w-0 items-center gap-2",p),"data-testid":f,children:[(0,a.jsx)("div",{role:"meter","aria-label":n,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":g?e:void 0,"aria-valuetext":w,className:(0,i.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[l]),children:(0,a.jsx)("div",{style:{"--meter":`${v}%`},className:(0,i.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",o.H[b],j&&c[b])})}),u&&(0,a.jsx)("span",{className:(0,i.f)("num w-11 shrink-0 text-right text-[11px]",g?o.T[b]:"text-text-muted"),children:w})]})}e.s(["f",0,x],51196);var u=e.i(71645);function m({values:e,tone:r="primary",width:s=160,height:t=32,area:n=!0,max:l,percent:c=!1,threshold:d,live:x=!0,emptyLabel:h="not enough data",className:p,testId:f,label:g,stretch:v=!1}){let b=`spark${(0,u.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,a.jsx)("div",{className:(0,i.f)("flex h-8 items-center text-xs italic text-text-muted",p),"data-testid":f,children:h});let j=o.v[r],w=l??(c?Math.max(100,...e):Math.max(...e,d??0)||1),N=t-4,y=s/(e.length-1),_=e=>2+N-Math.max(0,e)/w*N,I=e.map((e,a)=>[a*y,_(e)]),k=I.map(([e,a])=>`${e.toFixed(1)},${a.toFixed(1)}`).join(" "),C=I[I.length-1];return(0,a.jsxs)("svg",{width:v?"100%":s,height:t,viewBox:`0 0 ${s} ${t}`,preserveAspectRatio:v?"none":void 0,className:(0,i.f)("block overflow-visible",p),"data-testid":f,role:g?"img":void 0,"aria-label":g,"aria-hidden":!g||void 0,children:[n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:j,stopOpacity:.35}),(0,a.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,a.jsx)("polygon",{points:`0,${t} ${k} ${s},${t}`,fill:`url(#${b})`})]}),void 0!==d&&(0,a.jsx)("line",{x1:0,x2:s,y1:_(d),y2:_(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,a.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:k}),x&&!v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:C[0],cy:C[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,a.jsx)("circle",{cx:C[0],cy:C[1],r:2,fill:j})]})]})}e.s(["f",0,m],55427),e.s(["N",0,function({title:e,description:r,children:s,className:t,action:n,tone:i,corners:o=!1,...c}){return(0,a.jsx)(l.f,{...c,tone:i,corners:o,title:e,description:r,action:n,className:t,children:s})},"n",0,function({label:e,value:r,icon:s,trend:c,spark:d,meter:u,delta:h,tone:p="primary",className:f,testId:g}){let v=!h||h.value>=0===(h.positiveIsGood??!0);return(0,a.jsxs)(l.f,{tone:p,className:(0,i.f)("overflow-hidden",f),testId:g,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),s&&(0,a.jsx)("span",{className:"text-primary/60",children:s})]}),(0,a.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,a.jsx)("div",{className:(0,i.f)("num text-2xl font-bold","primary"===p?"text-primary neon-text":o.T[p]),children:r}),h&&0!==h.value&&(0,a.jsxs)("span",{className:(0,i.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[h.value>0?(0,a.jsx)(n.f,{className:"h-3 w-3"}):(0,a.jsx)(t,{className:"h-3 w-3"}),Math.abs(h.value).toFixed(+!Number.isInteger(h.value)),h.unit]})]}),c&&(0,a.jsx)("div",{className:(0,i.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==u&&(0,a.jsx)(x,{value:u,className:"mt-3",label:e}),d&&d.length>1&&(0,a.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,a.jsx)(m,{values:d,tone:p,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var a=e.i(43476),r=e.i(78571),s=e.i(35084);let t={primary:"[--panel-corner-color:color-mix(in_srgb,var(--color-primary)_60%,transparent)]",accent:"[--panel-corner-color:color-mix(in_srgb,var(--color-accent)_70%,transparent)]",success:"[--panel-corner-color:color-mix(in_srgb,var(--color-success)_60%,transparent)]",warning:"[--panel-corner-color:color-mix(in_srgb,var(--color-warning)_70%,transparent)]",danger:"[--panel-corner-color:color-mix(in_srgb,var(--color-danger)_70%,transparent)]",info:"[--panel-corner-color:color-mix(in_srgb,var(--color-info)_60%,transparent)]",muted:"[--panel-corner-color:var(--color-border-strong)]"},n={primary:"[--glow-hover-color:var(--color-glow)]",accent:"[--glow-hover-color:var(--color-glow-accent)]",success:"[--glow-hover-color:var(--color-glow-success)]",warning:"[--glow-hover-color:var(--color-glow-warning)]",danger:"[--glow-hover-color:var(--color-glow-danger)]",info:"[--glow-hover-color:var(--color-glow)]",muted:"[--glow-hover-color:var(--color-glow)]"},i={primary:"hover:border-primary/30",accent:"hover:border-accent/40",success:"hover:border-success/30",warning:"hover:border-warning/40",danger:"hover:border-danger/40",info:"hover:border-info/30",muted:"hover:border-border-strong"},l={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:o=!0,interactive:c=!0,hero:d=!1,title:x,description:u,icon:m,action:h,as:p="div",padding:f="md",testId:g,className:v,children:b,...j}){return(0,a.jsxs)(p,{...j,"data-testid":g??j["data-testid"],className:(0,r.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",l[f],o&&"panel-corners",o&&t[e],c&&"glow-hover",c&&n[e],c&&i[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||h||m)&&(0,a.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[m&&(0,a.jsx)("span",{className:(0,r.f)("mt-0.5 shrink-0",s.T[e]),children:m}),(0,a.jsxs)("div",{className:"min-w-0",children:[x&&(0,a.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),u&&(0,a.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:u})]})]}),h]}),b]})}])},63376,e=>{"use strict";var a=e.i(43476);e.s(["z",0,function({children:e,className:r}){return(0,a.jsx)("div",{className:`animate-page-in${r?` ${r}`:""}`,children:e})},"U",0,function({children:e,className:r}){return(0,a.jsx)("div",{className:r,children:e})}])},49292,e=>{"use strict";e.s(["f",0,function(e){return e.installed&&e.updateSupported&&(e.updateAvailable||!e.latestVersion)}])},79432,e=>{"use strict";var a=e.i(56420);let r={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};r.node;let s=(0,a.f)(r);e.s(["f",0,s],79432)},75775,e=>{"use strict";var a=e.i(56420);let r={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};r.node;let s=(0,a.f)(r);e.s(["f",0,s],75775)}]);