@sapienx/agentos 0.1.9 → 0.3.11

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 (206) hide show
  1. package/bin/agentos.js +3 -1
  2. package/bundle/.next/BUILD_ID +1 -1
  3. package/bundle/.next/app-path-routes-manifest.json +7 -3
  4. package/bundle/.next/build-manifest.json +6 -6
  5. package/bundle/.next/prerender-manifest.json +3 -3
  6. package/bundle/.next/react-loadable-manifest.json +11 -1
  7. package/bundle/.next/routes-manifest.json +30 -0
  8. package/bundle/.next/server/app/_global-error/page.js +3 -3
  9. package/bundle/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/bundle/.next/server/app/_global-error.html +1 -1
  11. package/bundle/.next/server/app/_global-error.rsc +1 -1
  12. package/bundle/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/bundle/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/bundle/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  15. package/bundle/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/bundle/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/bundle/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/bundle/.next/server/app/_not-found/page.js +2 -2
  19. package/bundle/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/bundle/.next/server/app/_not-found.html +1 -1
  21. package/bundle/.next/server/app/_not-found.rsc +3 -3
  22. package/bundle/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  23. package/bundle/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  24. package/bundle/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  25. package/bundle/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  26. package/bundle/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  27. package/bundle/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  28. package/bundle/.next/server/app/api/agents/[agentId]/chat/route.js +1 -0
  29. package/bundle/.next/server/app/api/agents/[agentId]/chat/route.js.nft.json +1 -0
  30. package/bundle/.next/server/app/api/agents/[agentId]/chat/route_client-reference-manifest.js +1 -0
  31. package/bundle/.next/server/app/api/agents/route.js +1 -1
  32. package/bundle/.next/server/app/api/agents/route.js.nft.json +1 -1
  33. package/bundle/.next/server/app/api/diagnostics/route.js +1 -1
  34. package/bundle/.next/server/app/api/diagnostics/route.js.nft.json +1 -1
  35. package/bundle/.next/server/app/api/files/reveal/route.js +1 -1
  36. package/bundle/.next/server/app/api/gateway/control/route.js +1 -1
  37. package/bundle/.next/server/app/api/gateway/control/route.js.nft.json +1 -1
  38. package/bundle/.next/server/app/api/mission/route.js +1 -1
  39. package/bundle/.next/server/app/api/mission/route.js.nft.json +1 -1
  40. package/bundle/.next/server/app/api/models/providers/route.js +2 -2
  41. package/bundle/.next/server/app/api/models/providers/route.js.nft.json +1 -1
  42. package/bundle/.next/server/app/api/onboarding/models/route.js +7 -7
  43. package/bundle/.next/server/app/api/onboarding/models/route.js.nft.json +1 -1
  44. package/bundle/.next/server/app/api/onboarding/route.js +6 -6
  45. package/bundle/.next/server/app/api/onboarding/route.js.nft.json +1 -1
  46. package/bundle/.next/server/app/api/openclaw/capabilities/route.js +3 -0
  47. package/bundle/.next/server/app/api/openclaw/capabilities/route.js.nft.json +1 -0
  48. package/bundle/.next/server/app/api/openclaw/capabilities/route_client-reference-manifest.js +1 -0
  49. package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js +2 -2
  50. package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js.nft.json +1 -1
  51. package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js +1 -1
  52. package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js.nft.json +1 -1
  53. package/bundle/.next/server/app/api/planner/[planId]/route.js +1 -1
  54. package/bundle/.next/server/app/api/planner/[planId]/route.js.nft.json +1 -1
  55. package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js +1 -1
  56. package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js.nft.json +1 -1
  57. package/bundle/.next/server/app/api/planner/[planId]/turn/route.js +1 -1
  58. package/bundle/.next/server/app/api/planner/[planId]/turn/route.js.nft.json +1 -1
  59. package/bundle/.next/server/app/api/planner/route.js +1 -1
  60. package/bundle/.next/server/app/api/planner/route.js.nft.json +1 -1
  61. package/bundle/.next/server/app/api/reset/route.js +2 -2
  62. package/bundle/.next/server/app/api/reset/route.js.nft.json +1 -1
  63. package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js +1 -1
  64. package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js.nft.json +1 -1
  65. package/bundle/.next/server/app/api/settings/gateway/route.js +1 -1
  66. package/bundle/.next/server/app/api/settings/gateway/route.js.nft.json +1 -1
  67. package/bundle/.next/server/app/api/settings/workspace-root/route.js +1 -1
  68. package/bundle/.next/server/app/api/settings/workspace-root/route.js.nft.json +1 -1
  69. package/bundle/.next/server/app/api/snapshot/route.js +1 -1
  70. package/bundle/.next/server/app/api/snapshot/route.js.nft.json +1 -1
  71. package/bundle/.next/server/app/api/stream/route.js +2 -2
  72. package/bundle/.next/server/app/api/stream/route.js.nft.json +1 -1
  73. package/bundle/.next/server/app/api/system/open-terminal/route.js +1 -1
  74. package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js +1 -1
  75. package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js.nft.json +1 -1
  76. package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js +2 -2
  77. package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js.nft.json +1 -1
  78. package/bundle/.next/server/app/api/update/route.js +2 -2
  79. package/bundle/.next/server/app/api/update/route.js.nft.json +1 -1
  80. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/discovered-groups/route.js +1 -0
  81. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/discovered-groups/route.js.nft.json +1 -0
  82. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/discovered-groups/route_client-reference-manifest.js +1 -0
  83. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/route.js +1 -0
  84. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/route.js.nft.json +1 -0
  85. package/bundle/.next/server/app/api/workspaces/[workspaceId]/channels/route_client-reference-manifest.js +1 -0
  86. package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js +1 -1
  87. package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js.nft.json +1 -1
  88. package/bundle/.next/server/app/api/workspaces/route.js +2 -2
  89. package/bundle/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  90. package/bundle/.next/server/app/page.js +52 -39
  91. package/bundle/.next/server/app/page.js.nft.json +1 -1
  92. package/bundle/.next/server/app/page_client-reference-manifest.js +1 -1
  93. package/bundle/.next/server/app-paths-manifest.json +7 -3
  94. package/bundle/.next/server/chunks/212.js +3 -3
  95. package/bundle/.next/server/chunks/49.js +212 -42
  96. package/bundle/.next/server/functions-config-manifest.json +3 -0
  97. package/bundle/.next/server/middleware-build-manifest.js +1 -1
  98. package/bundle/.next/server/middleware-react-loadable-manifest.js +1 -1
  99. package/bundle/.next/server/pages/404.html +1 -1
  100. package/bundle/.next/server/pages/500.html +1 -1
  101. package/bundle/.next/server/server-reference-manifest.json +1 -1
  102. package/bundle/.next/static/PMHP584Iqd3KMZJH68hEV/_buildManifest.js +1 -0
  103. package/bundle/.next/static/chunks/1364.5bd755c8584fcbc8.js +1 -0
  104. package/bundle/.next/static/chunks/1506.ec91294c1cbc454f.js +1 -0
  105. package/bundle/.next/static/chunks/{424-90a1df1753670aa3.js → 4424-08671f25c8f9ae84.js} +1 -1
  106. package/bundle/.next/static/chunks/4a846800.17bbc9efb621dbb7.js +1 -0
  107. package/bundle/.next/static/chunks/5954-fd2a9c905dcede3c.js +15 -0
  108. package/bundle/.next/static/chunks/8583-0efb0aa0937b762c.js +1 -0
  109. package/bundle/.next/static/chunks/app/_global-error/page-1a770949224cd2a0.js +1 -0
  110. package/bundle/.next/static/chunks/app/_not-found/page-1a770949224cd2a0.js +1 -0
  111. package/bundle/.next/static/chunks/app/api/agents/[agentId]/chat/route-1a770949224cd2a0.js +1 -0
  112. package/bundle/.next/static/chunks/app/api/agents/route-1a770949224cd2a0.js +1 -0
  113. package/bundle/.next/static/chunks/app/api/diagnostics/route-1a770949224cd2a0.js +1 -0
  114. package/bundle/.next/static/chunks/app/api/files/reveal/route-1a770949224cd2a0.js +1 -0
  115. package/bundle/.next/static/chunks/app/api/gateway/control/route-1a770949224cd2a0.js +1 -0
  116. package/bundle/.next/static/chunks/app/api/mission/route-1a770949224cd2a0.js +1 -0
  117. package/bundle/.next/static/chunks/app/api/models/providers/route-1a770949224cd2a0.js +1 -0
  118. package/bundle/.next/static/chunks/app/api/onboarding/models/route-1a770949224cd2a0.js +1 -0
  119. package/bundle/.next/static/chunks/app/api/onboarding/route-1a770949224cd2a0.js +1 -0
  120. package/bundle/.next/static/chunks/app/api/openclaw/capabilities/route-1a770949224cd2a0.js +1 -0
  121. package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-1a770949224cd2a0.js +1 -0
  122. package/bundle/.next/static/chunks/app/api/planner/[planId]/document-rewrite/route-1a770949224cd2a0.js +1 -0
  123. package/bundle/.next/static/chunks/app/api/planner/[planId]/route-1a770949224cd2a0.js +1 -0
  124. package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-1a770949224cd2a0.js +1 -0
  125. package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-1a770949224cd2a0.js +1 -0
  126. package/bundle/.next/static/chunks/app/api/planner/route-1a770949224cd2a0.js +1 -0
  127. package/bundle/.next/static/chunks/app/api/reset/route-1a770949224cd2a0.js +1 -0
  128. package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-1a770949224cd2a0.js +1 -0
  129. package/bundle/.next/static/chunks/app/api/settings/gateway/route-1a770949224cd2a0.js +1 -0
  130. package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-1a770949224cd2a0.js +1 -0
  131. package/bundle/.next/static/chunks/app/api/snapshot/route-1a770949224cd2a0.js +1 -0
  132. package/bundle/.next/static/chunks/app/api/stream/route-1a770949224cd2a0.js +1 -0
  133. package/bundle/.next/static/chunks/app/api/system/open-terminal/route-1a770949224cd2a0.js +1 -0
  134. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-1a770949224cd2a0.js +1 -0
  135. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-1a770949224cd2a0.js +1 -0
  136. package/bundle/.next/static/chunks/app/api/update/route-1a770949224cd2a0.js +1 -0
  137. package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/channels/discovered-groups/route-1a770949224cd2a0.js +1 -0
  138. package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/channels/route-1a770949224cd2a0.js +1 -0
  139. package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/edit-draft/route-1a770949224cd2a0.js +1 -0
  140. package/bundle/.next/static/chunks/app/api/workspaces/route-1a770949224cd2a0.js +1 -0
  141. package/bundle/.next/static/chunks/app/layout-7c2d7e515f68248b.js +1 -0
  142. package/bundle/.next/static/chunks/app/not-found-1a770949224cd2a0.js +1 -0
  143. package/bundle/.next/static/chunks/app/page-e7ca3c6ffb09198b.js +176 -0
  144. package/bundle/.next/static/chunks/d08e407b-a7a2691dd8d9de6b.js +1 -0
  145. package/bundle/.next/static/chunks/f6503f1c-7df4e7c4564148dc.js +1 -0
  146. package/bundle/.next/static/chunks/framework-c8a5f18418cd0e86.js +1 -0
  147. package/bundle/.next/static/chunks/main-app-9a4481b0ab7b57f6.js +1 -0
  148. package/bundle/.next/static/chunks/{main-28f7be32434a5aa2.js → main-eb49e7f5b314b5dc.js} +2 -2
  149. package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-1a770949224cd2a0.js +1 -0
  150. package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-1a770949224cd2a0.js +1 -0
  151. package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-38aa72b47d0b8f99.js +1 -0
  152. package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1a770949224cd2a0.js +1 -0
  153. package/bundle/.next/static/chunks/webpack-4fdc6767ef8ff7b1.js +1 -0
  154. package/bundle/.next/static/css/e20ab76ee4e77d93.css +3 -0
  155. package/bundle/package.json +2 -1
  156. package/bundle/public/assets/agent.mp4 +0 -0
  157. package/bundle/public/assets/provider-logos/deepseek.svg +1 -0
  158. package/bundle/public/assets/provider-logos/openai.svg +5 -0
  159. package/bundle/public/assets/provider-logos/xai.svg +7 -0
  160. package/package.json +2 -2
  161. package/bundle/.next/static/GiI1KbaEnOWQ2uB6c5S7l/_buildManifest.js +0 -1
  162. package/bundle/.next/static/chunks/4a846800-6992bfdb6d680e8c.js +0 -1
  163. package/bundle/.next/static/chunks/583-20f3363124499c5d.js +0 -1
  164. package/bundle/.next/static/chunks/805-27fb5cc3e5bbb716.js +0 -15
  165. package/bundle/.next/static/chunks/app/_global-error/page-e372189c79e963a1.js +0 -1
  166. package/bundle/.next/static/chunks/app/_not-found/page-e372189c79e963a1.js +0 -1
  167. package/bundle/.next/static/chunks/app/api/agents/route-e372189c79e963a1.js +0 -1
  168. package/bundle/.next/static/chunks/app/api/diagnostics/route-e372189c79e963a1.js +0 -1
  169. package/bundle/.next/static/chunks/app/api/files/reveal/route-e372189c79e963a1.js +0 -1
  170. package/bundle/.next/static/chunks/app/api/gateway/control/route-e372189c79e963a1.js +0 -1
  171. package/bundle/.next/static/chunks/app/api/mission/route-e372189c79e963a1.js +0 -1
  172. package/bundle/.next/static/chunks/app/api/models/providers/route-e372189c79e963a1.js +0 -1
  173. package/bundle/.next/static/chunks/app/api/onboarding/models/route-e372189c79e963a1.js +0 -1
  174. package/bundle/.next/static/chunks/app/api/onboarding/route-e372189c79e963a1.js +0 -1
  175. package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-e372189c79e963a1.js +0 -1
  176. package/bundle/.next/static/chunks/app/api/planner/[planId]/document-rewrite/route-e372189c79e963a1.js +0 -1
  177. package/bundle/.next/static/chunks/app/api/planner/[planId]/route-e372189c79e963a1.js +0 -1
  178. package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-e372189c79e963a1.js +0 -1
  179. package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-e372189c79e963a1.js +0 -1
  180. package/bundle/.next/static/chunks/app/api/planner/route-e372189c79e963a1.js +0 -1
  181. package/bundle/.next/static/chunks/app/api/reset/route-e372189c79e963a1.js +0 -1
  182. package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-e372189c79e963a1.js +0 -1
  183. package/bundle/.next/static/chunks/app/api/settings/gateway/route-e372189c79e963a1.js +0 -1
  184. package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-e372189c79e963a1.js +0 -1
  185. package/bundle/.next/static/chunks/app/api/snapshot/route-e372189c79e963a1.js +0 -1
  186. package/bundle/.next/static/chunks/app/api/stream/route-e372189c79e963a1.js +0 -1
  187. package/bundle/.next/static/chunks/app/api/system/open-terminal/route-e372189c79e963a1.js +0 -1
  188. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-e372189c79e963a1.js +0 -1
  189. package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-e372189c79e963a1.js +0 -1
  190. package/bundle/.next/static/chunks/app/api/update/route-e372189c79e963a1.js +0 -1
  191. package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/edit-draft/route-e372189c79e963a1.js +0 -1
  192. package/bundle/.next/static/chunks/app/api/workspaces/route-e372189c79e963a1.js +0 -1
  193. package/bundle/.next/static/chunks/app/layout-f64f74d82381e703.js +0 -1
  194. package/bundle/.next/static/chunks/app/not-found-e372189c79e963a1.js +0 -1
  195. package/bundle/.next/static/chunks/app/page-f4845e91032a411f.js +0 -163
  196. package/bundle/.next/static/chunks/f6503f1c-76bd524eece75922.js +0 -1
  197. package/bundle/.next/static/chunks/framework-3804ea39af33aa2e.js +0 -1
  198. package/bundle/.next/static/chunks/main-app-5eca1027f109d5af.js +0 -1
  199. package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-e372189c79e963a1.js +0 -1
  200. package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-e372189c79e963a1.js +0 -1
  201. package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-e382d739d625239d.js +0 -1
  202. package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e372189c79e963a1.js +0 -1
  203. package/bundle/.next/static/chunks/webpack-5bdc2ea2996939e4.js +0 -1
  204. package/bundle/.next/static/css/de551c93149758e0.css +0 -3
  205. /package/bundle/.next/static/{GiI1KbaEnOWQ2uB6c5S7l → PMHP584Iqd3KMZJH68hEV}/_ssgManifest.js +0 -0
  206. /package/bundle/public/readme/{banner.jpeg → banner2.jpeg} +0 -0
@@ -1,15 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[805],{25:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(478),i=n.n(r)},93:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]])},159:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},345:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]])},395:(e,t,n)=>{"use strict";e.exports=n(9926)},421:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("briefcase-business",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return u}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(2523),a=n(9238),s=n(6038),l=o._(n(4574));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=s.Image},493:(e,t,n)=>{"use strict";n.d(t,{QP:()=>eh});let r=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),i=[],o=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=o(e,t+1,i);if(n)return n}let a=n.validators;if(null===a)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=a.length;for(let e=0;e<l;e++){let t=a[e];if(t.validator(s))return t.classGroupId}},a=(e,t)=>{let n=r();for(let r in e)s(e[r],n,r,t);return n},s=(e,t,n,r)=>{let i=e.length;for(let o=0;o<i;o++)l(e[o],t,n,r)},l=(e,t,n,r)=>{"string"==typeof e?u(e,t,n):"function"==typeof e?c(e,t,n,r):d(e,t,n,r)},u=(e,t,n)=>{(""===e?t:h(t,e)).classGroupId=n},c=(e,t,n,r)=>{f(e)?s(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e}))},d=(e,t,n,r)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,a]=i[e];s(a,h(t,o),n,r)}},h=(e,t)=>{let n=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=n.nextPart.get(t);o||(o=r(),n.nextPart.set(t,o)),n=o}return n},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],m=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),y=/\s+/,g=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=g(e[r]))&&(n&&(n+=" "),n+=t);return n},v=[],b=e=>{let t=t=>t[e]||v;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,k=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>k.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),C=e=>!!e&&Number.isInteger(Number(e)),R=e=>e.endsWith("%")&&_(e.slice(0,-1)),j=e=>M.test(e),D=()=>!0,L=e=>E.test(e)&&!A.test(e),z=()=>!1,O=e=>S.test(e),N=e=>P.test(e),V=e=>!$(e)&&!Y(e),I=e=>en(e,ea,z),$=e=>x.test(e),F=e=>en(e,es,L),B=e=>en(e,el,_),W=e=>en(e,ec,D),H=e=>en(e,eu,z),U=e=>en(e,ei,z),q=e=>en(e,eo,N),X=e=>en(e,ed,O),Y=e=>w.test(e),K=e=>er(e,es),G=e=>er(e,eu),Z=e=>er(e,ei),Q=e=>er(e,ea),J=e=>er(e,eo),ee=e=>er(e,ed,!0),et=e=>er(e,ec,!0),en=(e,t,n)=>{let r=x.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},er=(e,t,n=!1)=>{let r=w.exec(e);return!!r&&(r[1]?t(r[1]):n)},ei=e=>"position"===e||"percentage"===e,eo=e=>"image"===e||"url"===e,ea=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,el=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,ed=e=>"shadow"===e,eh=((e,...t)=>{let n,r,s,l,u=e=>{let t=r(e);if(t)return t;let i=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(y),l="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let p=!!f,m=r(p?h.substring(0,f):h);if(!m){if(!p||!(m=r(h))){l=t+(l.length>0?" "+l:l);continue}p=!1}let y=0===c.length?"":1===c.length?c[0]:o(c).join(":"),g=d?y+"!":y,v=g+m;if(a.indexOf(v)>-1)continue;a.push(v);let b=i(m,p);for(let e=0;e<b.length;++e){let t=b[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return s(e,i),i};return l=c=>{var d;let h;return r=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,o)=>{n[i]=o,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,i=0,o=0,a=e.length;for(let s=0;s<a;s++){let a=e[s];if(0===r&&0===i){if(":"===a){n.push(e.slice(o,s)),o=s+1;continue}if("/"===a){t=s;continue}}"["===a?r++:"]"===a?r--:"("===a?i++:")"===a&&i--}let s=0===n.length?e:e.slice(o),l=s,u=!1;return s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0),m(n,u,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):m(p,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(d),sortModifiers:(h=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{h.set(e,1e6+t)}),e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r],o="["===i[0],a=h.has(i);o||a?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(i)):n.push(i)}return n.length>0&&(n.sort(),t.push(...n)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return a(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var n;let t,r,i;return -1===(n=e).slice(1,-1).indexOf(":")?void 0:(r=(t=n.slice(1,-1)).indexOf(":"),(i=t.slice(0,r))?"arbitrary.."+i:void 0)}let r=e.split("-"),i=+(""===r[0]&&r.length>1);return o(r,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],o=n[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let n=0;n<t.length;n++)e[o.length+n]=t[n];return e}return t}return o||i}return n[e]||i}}})(d)}).cache.get,s=n.cache.set,l=u,u(c)},(...e)=>l(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=g(t))&&(i&&(i+=" "),i+=n);return i})(...e))})(()=>{let e=b("color"),t=b("font"),n=b("text"),r=b("font-weight"),i=b("tracking"),o=b("leading"),a=b("breakpoint"),s=b("container"),l=b("spacing"),u=b("radius"),c=b("shadow"),d=b("inset-shadow"),h=b("text-shadow"),f=b("drop-shadow"),p=b("blur"),m=b("perspective"),y=b("aspect"),g=b("ease"),v=b("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),Y,$],M=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],A=()=>[Y,$,l],S=()=>[T,"full","auto",...A()],P=()=>[C,"none","subgrid",Y,$],L=()=>["auto",{span:["full",C,Y,$]},C,Y,$],z=()=>[C,"auto",Y,$],O=()=>["auto","min","max","fr",Y,$],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],en=()=>["start","end","center","stretch","center-safe","end-safe"],er=()=>["auto",...A()],ei=()=>[T,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],eo=()=>[T,"screen","full","dvw","lvw","svw","min","max","fit",...A()],ea=()=>[T,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],es=()=>[e,Y,$],el=()=>[...w(),Z,U,{position:[Y,$]}],eu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",Q,I,{size:[Y,$]}],ed=()=>[R,K,F],eh=()=>["","none","full",u,Y,$],ef=()=>["",_,K,F],ep=()=>["solid","dashed","dotted","double"],em=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ey=()=>[_,R,Z,U],eg=()=>["","none",p,Y,$],ev=()=>["none",_,Y,$],eb=()=>["none",_,Y,$],ex=()=>[_,Y,$],ew=()=>[T,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[j],breakpoint:[j],color:[D],container:[j],"drop-shadow":[j],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[j],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[j],shadow:[j],spacing:["px",_],text:[j],"text-shadow":[j],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",T,$,Y,y]}],container:["container"],columns:[{columns:[_,$,Y,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[C,"auto",Y,$]}],basis:[{basis:[T,"full","auto",s,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,T,"auto","initial","none",$]}],grow:[{grow:["",_,Y,$]}],shrink:[{shrink:["",_,Y,$]}],order:[{order:[C,"first","last","none",Y,$]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...en(),"normal"]}],"justify-self":[{"justify-self":["auto",...en()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...en(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...en(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...en(),"baseline"]}],"place-self":[{"place-self":["auto",...en()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:er()}],mx:[{mx:er()}],my:[{my:er()}],ms:[{ms:er()}],me:[{me:er()}],mbs:[{mbs:er()}],mbe:[{mbe:er()}],mt:[{mt:er()}],mr:[{mr:er()}],mb:[{mb:er()}],ml:[{ml:er()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:ei()}],"inline-size":[{inline:["auto",...eo()]}],"min-inline-size":[{"min-inline":["auto",...eo()]}],"max-inline-size":[{"max-inline":["none",...eo()]}],"block-size":[{block:["auto",...ea()]}],"min-block-size":[{"min-block":["auto",...ea()]}],"max-block-size":[{"max-block":["none",...ea()]}],w:[{w:[s,"screen",...ei()]}],"min-w":[{"min-w":[s,"screen","none",...ei()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...ei()]}],h:[{h:["screen","lh",...ei()]}],"min-h":[{"min-h":["screen","lh","none",...ei()]}],"max-h":[{"max-h":["screen","lh",...ei()]}],"font-size":[{text:["base",n,K,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,et,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R,$]}],"font-family":[{font:[G,H,t]}],"font-features":[{"font-features":[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Y,$]}],"line-clamp":[{"line-clamp":[_,"none",Y,B]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",Y,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:es()}],"text-color":[{text:es()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ep(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",Y,F]}],"text-decoration-color":[{decoration:es()}],"underline-offset":[{"underline-offset":[_,"auto",Y,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:eu()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},C,Y,$],radial:["",Y,$],conic:[C,Y,$]},J,q]}],"bg-color":[{bg:es()}],"gradient-from-pos":[{from:ed()}],"gradient-via-pos":[{via:ed()}],"gradient-to-pos":[{to:ed()}],"gradient-from":[{from:es()}],"gradient-via":[{via:es()}],"gradient-to":[{to:es()}],rounded:[{rounded:eh()}],"rounded-s":[{"rounded-s":eh()}],"rounded-e":[{"rounded-e":eh()}],"rounded-t":[{"rounded-t":eh()}],"rounded-r":[{"rounded-r":eh()}],"rounded-b":[{"rounded-b":eh()}],"rounded-l":[{"rounded-l":eh()}],"rounded-ss":[{"rounded-ss":eh()}],"rounded-se":[{"rounded-se":eh()}],"rounded-ee":[{"rounded-ee":eh()}],"rounded-es":[{"rounded-es":eh()}],"rounded-tl":[{"rounded-tl":eh()}],"rounded-tr":[{"rounded-tr":eh()}],"rounded-br":[{"rounded-br":eh()}],"rounded-bl":[{"rounded-bl":eh()}],"border-w":[{border:ef()}],"border-w-x":[{"border-x":ef()}],"border-w-y":[{"border-y":ef()}],"border-w-s":[{"border-s":ef()}],"border-w-e":[{"border-e":ef()}],"border-w-bs":[{"border-bs":ef()}],"border-w-be":[{"border-be":ef()}],"border-w-t":[{"border-t":ef()}],"border-w-r":[{"border-r":ef()}],"border-w-b":[{"border-b":ef()}],"border-w-l":[{"border-l":ef()}],"divide-x":[{"divide-x":ef()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ef()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ep(),"hidden","none"]}],"divide-style":[{divide:[...ep(),"hidden","none"]}],"border-color":[{border:es()}],"border-color-x":[{"border-x":es()}],"border-color-y":[{"border-y":es()}],"border-color-s":[{"border-s":es()}],"border-color-e":[{"border-e":es()}],"border-color-bs":[{"border-bs":es()}],"border-color-be":[{"border-be":es()}],"border-color-t":[{"border-t":es()}],"border-color-r":[{"border-r":es()}],"border-color-b":[{"border-b":es()}],"border-color-l":[{"border-l":es()}],"divide-color":[{divide:es()}],"outline-style":[{outline:[...ep(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,Y,$]}],"outline-w":[{outline:["",_,K,F]}],"outline-color":[{outline:es()}],shadow:[{shadow:["","none",c,ee,X]}],"shadow-color":[{shadow:es()}],"inset-shadow":[{"inset-shadow":["none",d,ee,X]}],"inset-shadow-color":[{"inset-shadow":es()}],"ring-w":[{ring:ef()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:es()}],"ring-offset-w":[{"ring-offset":[_,F]}],"ring-offset-color":[{"ring-offset":es()}],"inset-ring-w":[{"inset-ring":ef()}],"inset-ring-color":[{"inset-ring":es()}],"text-shadow":[{"text-shadow":["none",h,ee,X]}],"text-shadow-color":[{"text-shadow":es()}],opacity:[{opacity:[_,Y,$]}],"mix-blend":[{"mix-blend":[...em(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":em()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":ey()}],"mask-image-linear-to-pos":[{"mask-linear-to":ey()}],"mask-image-linear-from-color":[{"mask-linear-from":es()}],"mask-image-linear-to-color":[{"mask-linear-to":es()}],"mask-image-t-from-pos":[{"mask-t-from":ey()}],"mask-image-t-to-pos":[{"mask-t-to":ey()}],"mask-image-t-from-color":[{"mask-t-from":es()}],"mask-image-t-to-color":[{"mask-t-to":es()}],"mask-image-r-from-pos":[{"mask-r-from":ey()}],"mask-image-r-to-pos":[{"mask-r-to":ey()}],"mask-image-r-from-color":[{"mask-r-from":es()}],"mask-image-r-to-color":[{"mask-r-to":es()}],"mask-image-b-from-pos":[{"mask-b-from":ey()}],"mask-image-b-to-pos":[{"mask-b-to":ey()}],"mask-image-b-from-color":[{"mask-b-from":es()}],"mask-image-b-to-color":[{"mask-b-to":es()}],"mask-image-l-from-pos":[{"mask-l-from":ey()}],"mask-image-l-to-pos":[{"mask-l-to":ey()}],"mask-image-l-from-color":[{"mask-l-from":es()}],"mask-image-l-to-color":[{"mask-l-to":es()}],"mask-image-x-from-pos":[{"mask-x-from":ey()}],"mask-image-x-to-pos":[{"mask-x-to":ey()}],"mask-image-x-from-color":[{"mask-x-from":es()}],"mask-image-x-to-color":[{"mask-x-to":es()}],"mask-image-y-from-pos":[{"mask-y-from":ey()}],"mask-image-y-to-pos":[{"mask-y-to":ey()}],"mask-image-y-from-color":[{"mask-y-from":es()}],"mask-image-y-to-color":[{"mask-y-to":es()}],"mask-image-radial":[{"mask-radial":[Y,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":ey()}],"mask-image-radial-to-pos":[{"mask-radial-to":ey()}],"mask-image-radial-from-color":[{"mask-radial-from":es()}],"mask-image-radial-to-color":[{"mask-radial-to":es()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":ey()}],"mask-image-conic-to-pos":[{"mask-conic-to":ey()}],"mask-image-conic-from-color":[{"mask-conic-from":es()}],"mask-image-conic-to-color":[{"mask-conic-to":es()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:eu()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,$]}],filter:[{filter:["","none",Y,$]}],blur:[{blur:eg()}],brightness:[{brightness:[_,Y,$]}],contrast:[{contrast:[_,Y,$]}],"drop-shadow":[{"drop-shadow":["","none",f,ee,X]}],"drop-shadow-color":[{"drop-shadow":es()}],grayscale:[{grayscale:["",_,Y,$]}],"hue-rotate":[{"hue-rotate":[_,Y,$]}],invert:[{invert:["",_,Y,$]}],saturate:[{saturate:[_,Y,$]}],sepia:[{sepia:["",_,Y,$]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,$]}],"backdrop-blur":[{"backdrop-blur":eg()}],"backdrop-brightness":[{"backdrop-brightness":[_,Y,$]}],"backdrop-contrast":[{"backdrop-contrast":[_,Y,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,Y,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,Y,$]}],"backdrop-invert":[{"backdrop-invert":["",_,Y,$]}],"backdrop-opacity":[{"backdrop-opacity":[_,Y,$]}],"backdrop-saturate":[{"backdrop-saturate":[_,Y,$]}],"backdrop-sepia":[{"backdrop-sepia":["",_,Y,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",Y,$]}],ease:[{ease:["linear","initial",g,Y,$]}],delay:[{delay:[_,Y,$]}],animate:[{animate:["none",v,Y,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,$]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ev()}],"rotate-x":[{"rotate-x":ev()}],"rotate-y":[{"rotate-y":ev()}],"rotate-z":[{"rotate-z":ev()}],scale:[{scale:eb()}],"scale-x":[{"scale-x":eb()}],"scale-y":[{"scale-y":eb()}],"scale-z":[{"scale-z":eb()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[Y,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ew()}],"translate-x":[{"translate-x":ew()}],"translate-y":[{"translate-y":ew()}],"translate-z":[{"translate-z":ew()}],"translate-none":["translate-none"],accent:[{accent:es()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:es()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,$]}],fill:[{fill:["none",...es()]}],"stroke-w":[{stroke:[_,K,F,B]}],stroke:[{stroke:["none",...es()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},576:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},656:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},669:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(430),i=n(5962);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},736:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},796:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(430).createContext)({})},910:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("file-json",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])},1113:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1283:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(430).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1333:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},1741:(e,t,n)=>{"use strict";var r=n(430),i=n(395),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},1844:(e,t,n)=>{"use strict";n.d(t,{hO:()=>l,sG:()=>s});var r=n(430),i=n(891),o=n(6777),a=n(6366),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},1880:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]])},1909:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]])},2071:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},2374:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}})},2452:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},2625:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},2662:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},2787:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})},2820:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]])},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},3004:(e,t,n)=>{"use strict";n.d(t,{h:()=>d,n:()=>u});var r=n(430),i=n(3325);let o=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:s}=i,l=e=>e;function u(e,t=l,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r}let c=(e,t)=>{let n=e?o(e):o,r=(e,r=t)=>u(n,e,r);return Object.assign(r,n),r},d=(e,t)=>e?c(e,t):c},3260:(e,t)=>{"use strict";function n(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return n}})},3324:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},3325:(e,t,n)=>{"use strict";e.exports=n(1741)},3479:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},3633:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("folder-kanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]])},3688:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("folder-open-dot",[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]])},3776:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},3875:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},3899:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},3932:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]])},3942:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},3960:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},3962:(e,t,n)=>{"use strict";var r;n.d(t,{k:()=>m});let i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return(t,n={})=>{let r,i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}let c={code:"en-US",formatDistance:(e,t,n)=>{let r,o=i[e];if(r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:a,formatRelative:(e,t,n,r)=>s[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let n=e.match(r.matchPattern);if(!n)return null;let i=n[0],o=e.match(r.parsePattern);if(!o)return null;let a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d={},h=Symbol.for("constructDateFrom");function f(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&h in e?e[h](t):e instanceof Date?new e.constructor(t):new Date(t)}function p(e){let t=f(e,e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function m(e,t,n){var r;let i,o,a=n?.locale??d.locale??c,s=(o=f(e,e)-f(t,t))<0?-1:o>0?1:o;if(isNaN(s))throw RangeError("Invalid time value");let l=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[u,h]=function(e,...t){let n=f.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}(n?.in,...s>0?[t,e]:[e,t]),m=(r=n?.roundingMethod??"round",e=>{let t=(r?Math[r]:Math.trunc)(e);return 0===t?0:t}),y=h.getTime()-u.getTime(),g=y/6e4,v=(y-(p(h)-p(u)))/6e4,b=n?.unit;if("second"===(i=b||(g<1?"second":g<60?"minute":g<1440?"hour":v<43200?"day":v<525600?"month":"year"))){let e=m(y/1e3);return a.formatDistance("xSeconds",e,l)}if("minute"===i){let e=m(g);return a.formatDistance("xMinutes",e,l)}if("hour"===i){let e=m(g/60);return a.formatDistance("xHours",e,l)}if("day"===i){let e=m(v/1440);return a.formatDistance("xDays",e,l)}if("month"===i){let e=m(v/43200);return 12===e&&"month"!==b?a.formatDistance("xYears",1,l):a.formatDistance("xMonths",e,l)}else{let e=m(v/525600);return a.formatDistance("xYears",e,l)}}},4259:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,q:()=>o});var r=n(430),i=n(6366);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},4318:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]])},4574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(3260),i=n(5452);function o({config:e,src:t,width:n,quality:a}){let s=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),r=n.get("dpl");if(r){s=r,n.delete("dpl");let i=n.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
2
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,r.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${l}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}o.__next_img_default=!0;let a=o},4606:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},4681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(2523)._(n(430)),i=n(6011),o=r.default.createContext(i.imageConfigDefault)},4779:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},4816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},4837:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("moon-star",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]])},4927:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},5027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(430),i=r.useLayoutEffect,o=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5054:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},5084:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},5286:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r})},5391:(e,t,n)=>{"use strict";n.d(t,{s:()=>a,t:()=>o});var r=n(430);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},5411:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},5433:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]])},5880:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(5286);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.$,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},5962:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(430).createContext)(null)},6011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return o}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let i=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},6038:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let r=n(2523),i=n(2016),o=n(6366),a=i._(n(430)),s=r._(n(891)),l=r._(n(7711)),u=n(9238),c=n(6011),d=n(4681);n(7367);let h=n(7692),f=r._(n(4574)),p=n(6933),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function y(e,t,n,r,i,o,a){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)(({src:e,srcSet:t,sizes:n,height:r,width:i,decoding:s,className:l,style:u,fetchPriority:c,placeholder:d,loading:h,unoptimized:f,fill:m,onLoadRef:v,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,sizesInput:k,onLoad:M,onError:E,...A},S)=>{let P=(0,a.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&y(e,d,v,b,x,f,k))},[e,d,v,b,x,E,f,k]),T=(0,p.useMergedRef)(S,P);return(0,o.jsx)("img",{...A,...g(c),loading:h,width:i,height:r,decoding:s,"data-nimg":m?"fill":"1",className:l,style:u,sizes:n,srcSet:t,src:e,ref:T,onLoad:e=>{y(e.currentTarget,d,v,b,x,f,k)},onError:e=>{w(!0),"empty"!==d&&x(!0),E&&E(e)}})});function b({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...g(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let x=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(h.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=m||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:i,localPatterns:e.localPatterns}},[r]),{onLoad:s,onLoadingComplete:l}=e,p=(0,a.useRef)(s);(0,a.useEffect)(()=>{p.current=s},[s]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[g,x]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),{props:M,meta:E}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:g,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...M,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:y,setBlurComplete:x,setShowAltText:k,sizesInput:e.sizes,ref:t}),E.preload?(0,o.jsx)(b,{isAppRouter:!n,imgAttributes:M}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6161:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("folder-git-2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]])},6247:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},6287:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]])},6337:(e,t,n)=>{"use strict";n.d(t,{OK:()=>Y,bL:()=>q,VM:()=>k,lr:()=>D,LM:()=>X});var r=n(430),i=n(1844),o=n(7685),a=n(4259),s=n(5391),l=n(9678),u=n(6756),c=n(8746),d=n(9059),h=n(6366),f="ScrollArea",[p,m]=(0,a.A)(f),[y,g]=p(f),v=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:o="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,f]=r.useState(null),[p,m]=r.useState(null),[g,v]=r.useState(null),[b,x]=r.useState(null),[w,k]=r.useState(null),[M,E]=r.useState(0),[A,S]=r.useState(0),[P,T]=r.useState(!1),[_,C]=r.useState(!1),R=(0,s.s)(t,e=>f(e)),j=(0,u.jH)(a);return(0,h.jsx)(y,{scope:n,type:o,dir:j,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:g,onContentChange:v,scrollbarX:b,onScrollbarXChange:x,scrollbarXEnabled:P,onScrollbarXEnabledChange:T,scrollbarY:w,onScrollbarYChange:k,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:E,onCornerHeightChange:S,children:(0,h.jsx)(i.sG.div,{dir:j,...c,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":M+"px","--radix-scroll-area-corner-height":A+"px",...e.style}})})});v.displayName=f;var b="ScrollAreaViewport",x=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:o,nonce:a,...l}=e,u=g(b,n),c=r.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,h.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,h.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});x.displayName=b;var w="ScrollAreaScrollbar",k=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=g(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return r.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,h.jsx)(M,{...i,ref:t,forceMount:n}):"scroll"===o.type?(0,h.jsx)(E,{...i,ref:t,forceMount:n}):"auto"===o.type?(0,h.jsx)(A,{...i,ref:t,forceMount:n}):"always"===o.type?(0,h.jsx)(S,{...i,ref:t}):null});k.displayName=w;var M=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=g(w,e.__scopeScrollArea),[s,l]=r.useState(!1);return r.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[a.scrollArea,a.scrollHideDelay]),(0,h.jsx)(o.C,{present:n||s,children:(0,h.jsx)(A,{"data-state":s?"visible":"hidden",...i,ref:t})})}),E=r.forwardRef((e,t)=>{var n;let{forceMount:i,...a}=e,s=g(w,e.__scopeScrollArea),l="horizontal"===e.orientation,u=H(()=>f("SCROLL_END"),100),[c,f]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>n[e][t]??e,"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,f]),r.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(f("SCROLL"),u()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,l,f,u]),(0,h.jsx)(o.C,{present:i||"hidden"!==c,children:(0,h.jsx)(S,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:(0,d.mK)(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:(0,d.mK)(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),A=r.forwardRef((e,t)=>{let n=g(w,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=r.useState(!1),u="horizontal"===e.orientation,c=H(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return U(n.viewport,c),U(n.content,c),(0,h.jsx)(o.C,{present:i||s,children:(0,h.jsx)(S,{"data-state":s?"visible":"hidden",...a,ref:t})})}),S=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,o=g(w,e.__scopeScrollArea),a=r.useRef(null),s=r.useRef(0),[l,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=I(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return function(e,t,n,r="ltr"){let i=$(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return B([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===n?(0,h.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=F(o.viewport.scrollLeft,l,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}}):"vertical"===n?(0,h.jsx)(T,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=F(o.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}}):null}),P=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=g(w,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarXChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(R,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){var r,i;let o=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),r=o,i=n,r>0&&r<i&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:V(l.paddingLeft),paddingEnd:V(l.paddingRight)}})}})}),T=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=g(w,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarYChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(R,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){var r,i;let o=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),r=o,i=n,r>0&&r<i&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:V(l.paddingTop),paddingEnd:V(l.paddingBottom)}})}})}),[_,C]=p(w),R=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:y,onResize:v,...b}=e,x=g(w,n),[k,M]=r.useState(null),E=(0,s.s)(t,e=>M(e)),A=r.useRef(null),S=r.useRef(""),P=x.viewport,T=o.content-o.viewport,C=(0,l.c)(y),R=(0,l.c)(p),j=H(v,10);function D(e){A.current&&m({x:e.clientX-A.current.left,y:e.clientY-A.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;k?.contains(t)&&C(e,T)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[P,k,T,C]),r.useEffect(R,[o,R]),U(k,j),U(x.content,j),(0,h.jsx)(_,{scope:n,scrollbar:k,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:R,onThumbPointerDown:(0,l.c)(f),children:(0,h.jsx)(i.sG.div,{...b,ref:E,style:{position:"absolute",...b.style},onPointerDown:(0,d.mK)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),A.current=k.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),D(e))}),onPointerMove:(0,d.mK)(e.onPointerMove,D),onPointerUp:(0,d.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=S.current,x.viewport&&(x.viewport.style.scrollBehavior=""),A.current=null})})})}),j="ScrollAreaThumb",D=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=C(j,e.__scopeScrollArea);return(0,h.jsx)(o.C,{present:n||i.hasThumb,children:(0,h.jsx)(L,{ref:t,...r})})}),L=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:o,...a}=e,l=g(j,n),u=C(j,n),{onThumbPositionChange:c}=u,f=(0,s.s)(t,e=>u.onThumbChange(e)),p=r.useRef(void 0),m=H(()=>{p.current&&(p.current(),p.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),p.current||(p.current=W(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,h.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,d.mK)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,d.mK)(e.onPointerUp,u.onThumbPointerUp)})});D.displayName=j;var z="ScrollAreaCorner",O=r.forwardRef((e,t)=>{let n=g(z,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,h.jsx)(N,{...e,ref:t}):null});O.displayName=z;var N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...o}=e,a=g(z,n),[s,l]=r.useState(0),[u,c]=r.useState(0),d=!!(s&&u);return U(a.scrollbarX,()=>{let e=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(e),c(e)}),U(a.scrollbarY,()=>{let e=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(e),l(e)}),d?(0,h.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function V(e){return e?parseInt(e,10):0}function I(e,t){let n=e/t;return isNaN(n)?0:n}function $(e){let t=I(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function F(e,t,n="ltr"){let r=$(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,a]:[-1*a,0]);return B([0,a],[0,o-r])(s)}function B(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var W=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function H(e,t){let n=(0,l.c)(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function U(e,t){let n=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var q=v,X=x,Y=O},6408:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},6563:(e,t,n)=>{"use strict";n.d(t,{UC:()=>Q,B8:()=>G,bL:()=>K,l9:()=>Z});var r=n(430),i=n(9059),o=n(4259),a=n(5391),s=n(6777),l=n(6366),u=new WeakMap;function c(e,t){var n,r;let i,o,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(n=e,r=t,i=n.length,(a=(o=d(r))>=0?o:i+o)<0||a>=i?-1:a);return -1===s?void 0:e[s]}function d(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,a=d(e),s=a>=0?a:o+a,l=s<0||s>=o?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;a<0&&s++;let c=[...this.#e],h=!1;for(let e=s;e<u;e++)if(s===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{h||c[e-1]!==t||(h=!0);let n=c[h?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=c(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=c(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return c(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}});var h=n(9070),f=n(1844),p=n(9678),m=n(7750),y=n(6756),g="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[x,w,k]=function(e){let t=e+"CollectionProvider",[n,i]=(0,o.A)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let h=e+"CollectionSlot",f=(0,s.TL)(h),p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(h,n),o=(0,a.s)(t,i.collectionRef);return(0,l.jsx)(f,{ref:o,children:r})});p.displayName=h;let m=e+"CollectionItemSlot",y="data-radix-collection-item",g=(0,s.TL)(m),v=r.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,s=r.useRef(null),u=(0,a.s)(t,s),d=c(m,n);return r.useEffect(()=>(d.itemMap.set(s,{ref:s,...o}),()=>void d.itemMap.delete(s))),(0,l.jsx)(g,{...{[y]:""},ref:u,children:i})});return v.displayName=m,[{Provider:d,Slot:p,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}(b),[M,E]=(0,o.A)(b,[k]),[A,S]=M(b),P=r.forwardRef((e,t)=>(0,l.jsx)(x.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(x.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(T,{...e,ref:t})})}));P.displayName=b;var T=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:x,preventScrollOnEntryFocus:k=!1,...M}=e,E=r.useRef(null),S=(0,a.s)(t,E),P=(0,y.jH)(u),[T,_]=(0,m.i)({prop:c,defaultProp:d??null,onChange:h,caller:b}),[C,R]=r.useState(!1),D=(0,p.c)(x),L=w(n),z=r.useRef(!1),[O,N]=r.useState(0);return r.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(g,D),()=>e.removeEventListener(g,D)},[D]),(0,l.jsx)(A,{scope:n,orientation:o,dir:P,loop:s,currentTabStopId:T,onItemFocus:r.useCallback(e=>_(e),[_]),onItemShiftTab:r.useCallback(()=>R(!0),[]),onFocusableItemAdd:r.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>N(e=>e-1),[]),children:(0,l.jsx)(f.sG.div,{tabIndex:C||0===O?-1:0,"data-orientation":o,...M,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{z.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!z.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(g,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),k)}}z.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>R(!1))})})}),_="RovingFocusGroupItem",C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...c}=e,d=(0,h.B)(),p=s||d,m=S(_,n),y=m.currentTabStopId===p,g=w(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:k}=m;return r.useEffect(()=>{if(o)return v(),()=>b()},[o,v,b]),(0,l.jsx)(x.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,l.jsx)(f.sG.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return R[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=m.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>j(i))}}),children:"function"==typeof u?u({isCurrentTabStop:y,hasTabStop:null!=k}):u})})});C.displayName=_;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var D=n(7685),L="Tabs",[z,O]=(0,o.A)(L,[E]),N=E(),[V,I]=z(L),$=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:u="automatic",...c}=e,d=(0,y.jH)(s),[p,g]=(0,m.i)({prop:r,onChange:i,defaultProp:o??"",caller:L});return(0,l.jsx)(V,{scope:n,baseId:(0,h.B)(),value:p,onValueChange:g,orientation:a,dir:d,activationMode:u,children:(0,l.jsx)(f.sG.div,{dir:d,"data-orientation":a,...c,ref:t})})});$.displayName=L;var F="TabsList",B=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=I(F,n),a=N(n);return(0,l.jsx)(P,{asChild:!0,...a,orientation:o.orientation,dir:o.dir,loop:r,children:(0,l.jsx)(f.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});B.displayName=F;var W="TabsTrigger",H=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=I(W,n),u=N(n),c=X(s.baseId,r),d=Y(s.baseId,r),h=r===s.value;return(0,l.jsx)(C,{asChild:!0,...u,focusable:!o,active:h,children:(0,l.jsx)(f.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==s.activationMode;h||o||!e||s.onValueChange(r)})})})});H.displayName=W;var U="TabsContent",q=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:o,children:a,...s}=e,u=I(U,n),c=X(u.baseId,i),d=Y(u.baseId,i),h=i===u.value,p=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.jsx)(D.C,{present:o||h,children:({present:n})=>(0,l.jsx)(f.sG.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&a})})});function X(e,t){return`${e}-trigger-${t}`}function Y(e,t){return`${e}-content-${t}`}q.displayName=U;var K=$,G=B,Z=H,Q=q},6658:(e,t,n)=>{"use strict";let r,i,o,a;n.d(t,{P:()=>oN});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(s),u=(e,t,n)=>n>t?t:n<e?e:n,c={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},d={...c,transform:e=>u(0,1,e)},h={...c,default:1},f=e=>Math.round(1e5*e)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,y=(e,t)=>n=>!!("string"==typeof n&&m.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),g=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(p);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},v={...c,transform:e=>Math.round(u(0,255,e))},b={test:y("rgb","red"),parse:g("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+v.transform(e)+", "+v.transform(t)+", "+v.transform(n)+", "+f(d.transform(r))+")"},x={test:y("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:b.transform},w=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),k=w("deg"),M=w("%"),E=w("px"),A=w("vh"),S=w("vw"),P={...M,parse:e=>M.parse(e)/100,transform:e=>M.transform(100*e)},T={test:y("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+M.transform(f(t))+", "+M.transform(f(n))+", "+f(d.transform(r))+")"},_={test:e=>b.test(e)||x.test(e)||T.test(e),parse:e=>b.test(e)?b.parse(e):T.test(e)?T.parse(e):x.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):T.transform(e),getAnimatableNone:e=>{let t=_.parse(e);return t.alpha=0,_.transform(t)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",j="color",D=/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+)/giu;function L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(D,e=>(_.test(e)?(r.color.push(o),i.push(j),n.push(_.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(R),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function z(e){return L(e).values}function O(e){let{split:t,types:n}=L(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===R?i+=f(e[o]):t===j?i+=_.transform(e[o]):i+=e[o]}return i}}let N=e=>"number"==typeof e?0:_.test(e)?_.getAnimatableNone(e):e,V={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(p)?.length||0)+(e.match(C)?.length||0)>0},parse:z,createTransformer:O,getAnimatableNone:function(e){let t=z(e);return O(e)(t.map(N))}},I=new Set(["brightness","contrast","saturate","opacity"]);function $(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(p)||[];if(!r)return e;let i=n.replace(r,""),o=+!!I.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let F=/\b([a-z-]*)\(.*?\)/gu,B={...V,getAnimatableNone:e=>{let t=e.match(F);return t?t.map($).join(" "):e}},W={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},H={...c,transform:Math.round},U={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,rotate:k,rotateX:k,rotateY:k,rotateZ:k,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:k,skewX:k,skewY:k,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:d,originX:P,originY:P,originZ:E,zIndex:H,fillOpacity:d,strokeOpacity:d,numOctaves:H},q={...U,color:_,backgroundColor:_,outlineColor:_,fill:_,stroke:_,borderColor:_,borderTopColor:_,borderRightColor:_,borderBottomColor:_,borderLeftColor:_,filter:B,WebkitFilter:B,mask:W,WebkitMask:W},X=e=>q[e],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:Y(),y:Y()}),G=()=>({min:0,max:0}),Z=()=>({x:G(),y:G()}),Q=e=>!!(e&&e.getVelocity),J=new Set(["width","height","top","left","right","bottom",...s]),ee=e=>t=>t.test(e),et=[c,E,M,k,S,A,{test:e=>"auto"===e,parse:e=>e}],en=e=>et.find(ee(e));n(974);let er=()=>{},ei=()=>{},eo=e=>t=>"string"==typeof t&&t.startsWith(e),ea=eo("--"),es=eo("var(--"),el=e=>!!es(e)&&eu.test(e.split("/*")[0].trim()),eu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ec(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ed=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eh=e=>180*e/Math.PI,ef=e=>em(eh(Math.atan2(e[1],e[0]))),ep={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>eh(Math.atan(e[1])),skewY:e=>eh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:eg,scale:e=>(ey(e)+eg(e))/2,rotateX:e=>em(eh(Math.atan2(e[6],e[5]))),rotateY:e=>em(eh(Math.atan2(-e[2],e[0]))),rotateZ:ef,rotate:ef,skewX:e=>eh(Math.atan(e[4])),skewY:e=>eh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eb(e){return+!!e.includes("scale")}function ex(e,t){let n,r;if(!e||"none"===e)return eb(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=ev,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ep,r=t}if(!r)return eb(t);let o=n[t],a=r[1].split(",").map(ew);return"function"==typeof o?o(a):a[o]}function ew(e){return parseFloat(e.trim())}let ek=e=>e===c||e===E,eM=new Set(["x","y","z"]),eE=s.filter(e=>!eM.has(e)),eA={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ex(t,"x"),y:(e,{transform:t})=>ex(t,"y")};eA.translateX=eA.x,eA.translateY=eA.y;let eS=e=>e,eP={},eT=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function e_(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=eT.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t,l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=a,m=()=>{let o=eP.useManualTiming?i.timestamp:performance.now();n=!1,eP.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:eT.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<eT.length;t++)a[eT[t]].cancel(e)},state:i,steps:a}}let{schedule:eC,cancel:eR,state:ej,steps:eD}=e_("u">typeof requestAnimationFrame?requestAnimationFrame:eS,!0),eL=new Set,ez=!1,eO=!1,eN=!1;function eV(){if(eO){let e=Array.from(eL).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eE.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eO=!1,ez=!1,eL.forEach(e=>e.complete(eN)),eL.clear()}function eI(){eL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eO=!0)})}class e${constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eL.add(this),ez||(ez=!0,eC.read(eI),eC.resolveKeyframes(eV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eL.delete(this)}cancel(){"scheduled"===this.state&&(eL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eF=new Set([B,W]);function eB(e,t){let n=X(e);return eF.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eW=new Set(["auto","none","0"]);class eH extends e${constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&el(r=r.trim())){let i=function e(t,n,r=1){ei(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=ed.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return el(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!J.has(n)||2!==e.length)return;let[r,i]=e,o=en(r),a=en(i);if(ec(r)!==ec(i)&&eA[n]){this.needsMeasurement=!0;return}if(o!==a)if(ek(o)&&ek(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eA[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eW.has(t)&&L(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eB(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eA[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=eA[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eU=e=>1e3*e;function eq(e,t){-1===e.indexOf(t)&&e.push(t)}function eX(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eY{constructor(){this.subscriptions=[]}add(e){return eq(this.subscriptions,e),()=>eX(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(e){let t;return()=>(void 0===t&&(t=e()),t)}let eG={};function eZ(e,t){let n=eK(e);return()=>eG[t]??n()}let eQ=eZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eJ=e=>null!==e;function e0(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(eJ),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class e1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e2={layout:0,mainThread:0,waapi:0},e3=e=>Array.isArray(e)&&"number"==typeof e[0],e5=eZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e6=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e4=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e4([0,.65,.55,1]),circOut:e4([.55,0,1,.45]),backIn:e4([.31,.01,.66,-.59]),backOut:e4([.33,1.53,.69,.99])};function e7(e){return"function"==typeof e&&"applyToOptions"in e}class e8 extends e1{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ei("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e7(e)&&e5()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?e5()?e6(t,n):"ease-out":e3(t)?e4(t):Array.isArray(t)?t.map(t=>e(t,n)||e9.easeOut):e9[t]}(s,i);Array.isArray(d)&&(c.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=e0(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e);n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eU(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eQ())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),eS):r(this)}}let te=new Set(["opacity","clipPath","filter","transform"]),{schedule:tt}=e_(queueMicrotask,!1);function tn(){r=void 0}let tr={now:()=>(void 0===r&&tr.set(ej.isProcessing||eP.useManualTiming?ej.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(tn)}};class ti{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eY);let n=this.events[e].add(t);return"change"===e?()=>{n(),eC.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return a&&a.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function to(e,t){return new ti(e,t)}let ta=[...et,_,V],ts=new WeakMap;function tl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...tc];function th(e){return tl(e.animate)||td.some(t=>tu(e[t]))}function tf(e){return!!(th(e)||e.variants)}let tp={current:null},tm={current:!1},ty="u">typeof window;function tg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tv(e,t,n,r){if("function"==typeof t){let[i,o]=tg(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tg(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tx={};class tw{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},s={}){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=e$,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 e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eC.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=th(t),this.isVariantNode=tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&Q(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ts.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tm.current||function(){if(tm.current=!0,ty)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tp.current=e.matches;e.addEventListener("change",t),t()}else tp.current=!1}(),this.shouldReduceMotion=tp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eR(this.notifyUpdate),eR(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&te.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:a}=t.accelerate,s=new e8({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:eU(a)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let r=l.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eC.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tx){let t=tx[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tb.length;t++){let n=tb[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(Q(i))e.addValue(r,i);else if(Q(o))e.addValue(r,to(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,to(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=to(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ta.find(ee(r))&&V.test(t)&&(n=eB(e,t))}this.setBaseTarget(e,Q(n)?n.get():n)}return Q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tv(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Q(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eY),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tt.render(this.render)}}class tk extends tw{constructor(){super(...arguments),this.KeyframeResolver=eH}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Q(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tM(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tE=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tS=s.length;function tP(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,u=!1;for(let e in t){let n=t[e];if(l.has(e)){a=!0;continue}if(ea(e)){i[e]=n;continue}{let t=tE(n,U[e]);e.startsWith("origin")?(u=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<tS;o++){let a=s[o],l=e[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=tE(l,U[a]);if(!u){i=!1;let t=tA[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let tT={offset:"stroke-dashoffset",array:"stroke-dasharray"},t_={offset:"strokeDashoffset",array:"strokeDasharray"},tC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tR(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,c){if(tP(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),tC))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tT:t_;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(d,i,o,a,!1)}let tj=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"]),tD=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,{style:t,vars:n},r,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function tz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tO={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!E.test(e))return e;else e=parseFloat(e);let n=tz(e,t.target.x),r=tz(e,t.target.y);return`${n}% ${r}%`}},tN=(e,t,n)=>e+(t-e)*n,tV={borderRadius:{...tO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=V.parse(e);if(r.length>5)return e;let i=V.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=tN(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function tI(e,{layout:t,layoutId:n}){return l.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tV[e]||"opacity"===e)}function t$(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(Q(r[t])||i&&Q(i[t])||tI(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function tF(e,t,n){let r=t$(e,t,n);for(let n in e)(Q(e[n])||Q(t[n]))&&(r[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tB extends tk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=X(t);return e&&e.default||0}return t=tj.has(t)?t:tM(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tF(e,t,n)}build(e,t,n){tR(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tL(e,t,void 0,r),t.attrs)e.setAttribute(tj.has(n)?n:tM(n),t.attrs[n])}mount(e){this.isSVGTag=tD(e.tagName),super.mount(e)}}function tW({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tH(e){return void 0===e||1===e}function tU({scale:e,scaleX:t,scaleY:n}){return!tH(e)||!tH(t)||!tH(n)}function tq(e){return tU(e)||tX(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tX(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tY(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tK(e,t=0,n=1,r,i){e.min=tY(e.min,t,n,r,i),e.max=tY(e.max,t,n,r,i)}function tG(e,{x:t,y:n}){tK(e.x,t.translate,t.scale,t.originPoint),tK(e.y,n.translate,n.scale,n.originPoint)}function tZ(e,t){e.min=e.min+t,e.max=e.max+t}function tQ(e,t,n,r,i=.5){let o=tN(e.min,e.max,i);tK(e,t,n,o,r)}function tJ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t0(e,t){tQ(e.x,tJ(t.x,e.x),t.scaleX,t.scale,t.originX),tQ(e.y,tJ(t.y,e.y),t.scaleY,t.scale,t.originY)}function t1(e,t){return tW(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t2 extends tk{constructor(){super(...arguments),this.type="html",this.renderInstance=tL}readValueFromInstance(e,t){if(l.has(t))return this.projection?.isProjecting?eb(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ex(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(ea(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t1(e,t)}build(e,t,n){tP(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return t$(e,t,n)}}var t3,t5=n(430);let t6=["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 t4(e){if("string"!=typeof e||e.includes("-"));else if(t6.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t9=n(6366),t7=n(796);let t8=(0,t5.createContext)({strict:!1});var ne=n(1283);let nt=(0,t5.createContext)({});function nn(e){return Array.isArray(e)?e.join(" "):e}let nr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ni(e,t,n){for(let r in t)Q(t[r])||tI(r,n)||(e[r]=t[r])}let no=()=>({...nr(),attrs:{}}),na=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ns(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||na.has(e)}let nl=e=>!ns(e);try{t3=require("@emotion/is-prop-valid").default,"function"==typeof t3&&(nl=e=>e.startsWith("on")?!ns(e):t3(e))}catch{}function nu(e){return Q(e)?e.get():e}var nc=n(5962),nd=n(9332);let nh=e=>(t,n)=>{let r=(0,t5.useContext)(nt),i=(0,t5.useContext)(nc.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=nu(o[e]);let{initial:a,animate:s}=e,l=th(e),u=tf(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;if(d&&"boolean"!=typeof d&&!tl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tv(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():(0,nd.M)(o)},nf=nh({scrapeMotionValuesFromProps:t$,createRenderState:nr}),np=nh({scrapeMotionValuesFromProps:tF,createRenderState:no}),nm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ny=!1;function ng(){return!function(){if(ny)return;let e={};for(let t in nm)e[t]={isEnabled:e=>nm[t].some(t=>!!e[t])};tx=e,ny=!0}(),tx}let nv=Symbol.for("motionComponentSymbol"),nb="data-"+tM("framerAppearId"),nx=(0,t5.createContext)({});function nw(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nk=n(8220);function nM(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=ng();for(let n in e)t[n]={...t[n],...e[n]};tx=t}(r);let o=n?"svg"===n:t4(e),a=o?np:nf;function s(n,r){var s;let l,u,c,d={...(0,t5.useContext)(ne.Q),...n,layoutId:function({layoutId:e}){let t=(0,t5.useContext)(t7.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h}=d,f=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t5.useContext)(nt));return(0,t5.useMemo)(()=>({initial:t,animate:n}),[nn(t),nn(n)])}(n),p=a(n,h);if(!h&&"u">typeof window){(0,t5.useContext)(t8).strict;let t=function(e){let{drag:t,layout:n}=ng();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);l=t.MeasureLayout,f.visualElement=function(e,t,n,r,i,o){let{visualElement:a}=(0,t5.useContext)(nt),s=(0,t5.useContext)(t8),l=(0,t5.useContext)(nc.t),u=(0,t5.useContext)(ne.Q),c=u.reducedMotion,d=u.skipAnimations,h=(0,t5.useRef)(null),f=(0,t5.useRef)(!1);r=r||s.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,m=(0,t5.useContext)(nx);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&nw(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(h.current,n,i,m);let y=(0,t5.useRef)(!1);(0,t5.useInsertionEffect)(()=>{p&&y.current&&p.update(n,l)});let g=n[nb],v=(0,t5.useRef)(!!g&&"u">typeof window&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return(0,nk.E)(()=>{f.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,t5.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,p,d,i,t.ProjectionNode,o)}return(0,t9.jsxs)(nt.Provider,{value:f,children:[l&&f.visualElement?(0,t9.jsx)(l,{visualElement:f.visualElement,...d}):null,function(e,t,n,{latestValues:r},i,o=!1,a){let s=(a??t4(e)?function(e,t,n,r){let i=(0,t5.useMemo)(()=>{let n=no();return tR(n,t,tD(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ni(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},ni(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t5.useMemo)(()=>{let n=nr();return tP(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(nl(i)||!0===n&&ns(i)||!t&&!ns(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==t5.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,t5.useMemo)(()=>Q(c)?c.get():c,[c]);return(0,t5.createElement)(e,{...u,children:d})}(e,n,(s=f.visualElement,u=(0,t5.useRef)(r),(0,t5.useInsertionEffect)(()=>{u.current=r}),c=(0,t5.useRef)(null),(0,t5.useCallback)(e=>{e&&p.onMount?.(e);let t=u.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(c.current=n)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e);s&&(e?s.mount(e):s.unmount())},[s])),p,h,t,o)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t5.forwardRef)(s);return l[nv]=e,l}class nE{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nA(e,t,n){let r=e.getProps();return tv(r,t,void 0!==n?n:r.custom,e)}function nS(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nP(e,t){let n=e?.[t]??e?.default??e;return n!==e?nS(n,e):n}let nT=e=>Array.isArray(e);function n_(e,t){let n=e.getValue("willChange");if(Q(n)&&n.add)return n.add(t);if(!n&&eP.WillChange){let n=new eP.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nC=(e,t)=>n=>t(e(n)),nR=(...e)=>e.reduce(nC);function nj(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nD(e,t){return n=>n>0?t:e}let nL=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nz=[x,b,T];function nO(e){let t=nz.find(t=>t.test(e));if(er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===T&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=nj(s,r,e+1/3),o=nj(s,r,e),a=nj(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nN=(e,t)=>{let n=nO(e),r=nO(t);if(!n||!r)return nD(e,t);let i={...n};return e=>(i.red=nL(n.red,r.red,e),i.green=nL(n.green,r.green,e),i.blue=nL(n.blue,r.blue,e),i.alpha=tN(n.alpha,r.alpha,e),b.transform(i))},nV=new Set(["none","hidden"]);function nI(e,t){return n=>tN(e,t,n)}function n$(e){return"number"==typeof e?nI:"string"==typeof e?el(e)?nD:_.test(e)?nN:nW:Array.isArray(e)?nF:"object"==typeof e?_.test(e)?nN:nB:nD}function nF(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>n$(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nB(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=n$(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nW=(e,t)=>{let n=V.createTransformer(t),r=L(e),i=L(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nD(e,t);if(nV.has(e)&&!i.values.length||nV.has(t)&&!r.values.length)return nV.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nR(nF(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n)};function nH(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tN(e,t,n):n$(e)(e,t)}let nU=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eC.update(t,e),stop:()=>eR(t),now:()=>ej.isProcessing?ej.timestamp:tr.now()}};function nq(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nX(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nY=.01,nK=2,nG=.005,nZ=.5;function nQ(e,t){return e*Math.sqrt(1-t*t)}let nJ=["duration","bounce"],n0=["stiffness","damping","mass"];function n1(e,t){return t.some(t=>void 0!==e[t])}function n2(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:d,mass:h,duration:f,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!n1(e,n0)&&n1(e,nJ))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*u(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;er(e<=eU(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=u(.05,1,a),e=u(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nQ(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=nQ(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=eU(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),y=p||0,g=d/(2*Math.sqrt(c*h)),v=s-a,b=Math.sqrt(c/h)/1e3,x=5>Math.abs(v);if(i||(i=x?nY:nK),o||(o=x?nG:nZ),g<1){let e=nQ(b,g);n=t=>s-Math.exp(-g*b*t)*((y+g*b*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)n=e=>s-Math.exp(-b*e)*(v+(y+b*v)*e);else{let e=b*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*b*t),r=Math.min(e*t,300);return s-n*((y+g*b*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}let w={calculatedDuration:m&&f||null,next:e=>{let t=n(e);if(m)l.done=e>=f;else{let r=0===e?y:0;g<1&&(r=0===e?eU(y):nX(n,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(r)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(nq(w),2e4),t=e6(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function n3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,y=f+m,g=void 0===a?y:a(y);g!==y&&(m=g-f);let v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),x=e=>{let t=v(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n},w=e=>{let t;if(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,h=n2({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:nX(b,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}n2.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nq(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,n2);return e.ease=t.ease,e.duration=eU(t.duration),e.type="keyframes",e};let n5=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n6(e,t,n,r){return e===t&&n===r?eS:i=>0===i||1===i?i:n5(function(e,t,n,r,i){let o,a,s=0;do(o=n5(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let n4=n6(.42,0,1,1),n9=n6(0,0,.58,1),n7=n6(.42,0,.58,1),n8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,re=e=>t=>1-e(1-t),rt=n6(.33,1.53,.69,.99),rn=re(rt),rr=n8(rn),ri=e=>(e*=2)<1?.5*rn(e):.5*(2-Math.pow(2,-10*(e-1))),ro=e=>1-Math.sin(Math.acos(e)),ra=re(ro),rs=n8(ro),rl={linear:eS,easeIn:n4,easeInOut:n7,easeOut:n9,circIn:ro,circInOut:rs,circOut:ra,backIn:rn,backInOut:rr,backOut:rt,anticipate:ri},ru=e=>{if(e3(e)){ei(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return n6(t,n,r,i)}return"string"==typeof e?(ei(void 0!==rl[e],`Invalid easing type '${e}'`,"invalid-easing-type"),rl[e]):e},rc=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function rd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ru):ru(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ei(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||eP.mix||nH,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nR(Array.isArray(t)?t[n]||eS:t,o)),r.push(o)}return r}(t,r,i),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rc(e[r],e[r+1],n);return s[r](i)};return n?t=>c(u(e[0],e[o-1],t)):c}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rc(0,t,r);e.push(tN(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||n7).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let rh={decay:n3,inertia:n3,tween:rd,keyframes:rd,spring:n2};function rf(e){"string"==typeof e.type&&(e.type=rh[e.type])}let rp=e=>e/100;class rm extends e1{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e2.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rf(e);let{type:t=rd,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||rd;s!==rd&&"number"!=typeof a[0]&&(this.mixKeyframes=nR(rp,nH(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nq(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=n;if(d){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/a)):"mirror"===h&&(x=o)),b=u(0,1,n)*a}let w=v?{done:!1,value:c[0]}:x.next(b);i&&(w.value=i(w.value));let{done:k}=w;v||null===s||(k=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return M&&p!==n3&&(w.value=e0(c,this.options,y,this.speed)),m&&m(w.value),M&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eU(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(tr.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nU,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"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(tr.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.stopDriver(),this.startTime=this.holdTime=null,e2.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ry={anticipate:ri,backInOut:rr,circInOut:rs};class rg extends e8{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ry&&(e.ease=ry[e.ease])}(e),rf(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rm({...o,autoplay:!1}),s=Math.max(10,tr.now()-this.startTime),l=u(0,10,s-10);t.setWithVelocity(a.sample(Math.max(0,s-l)).value,a.sample(s).value,l),a.stop()}}let rv=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(V.test(e)||"0"===e)&&!e.startsWith("url("));function rb(e){e.duration=0,e.type="keyframes"}let rx=new Set(["opacity","clipPath","filter","transform"]),rw=eK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rk extends e1{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c},h=u?.KeyframeResolver||e$;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=tr.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=rv(i,t),s=rv(o,t);return er(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e7(n))&&r)}(e,i,o,a)&&((eP.instantAnimations||!s)&&u?.(e0(e,n,t)),e[0]=e[e.length-1],rb(n),n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return rw()&&n&&rx.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(c),h=c.motionValue?.owner?.current,f=d?new rg({...c,element:h}):new rm(c);f.finished.then(()=>{this.notifyFinished()}).catch(eS),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eN=!0,eI(),eV(),eN=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rM={type:"spring",stiffness:500,damping:25,restSpeed:10},rE={type:"keyframes",duration:.8},rA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rS=e=>null!==e,rP=(e,t,n,r={},i,o)=>a=>{let s=nP(r,e)||{},u=s.delay||r.delay||0,{elapsed:c=0}=r;c-=eU(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rE:l.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rM:rA)(e,d)),d.duration&&(d.duration=eU(d.duration)),d.repeatDelay&&(d.repeatDelay=eU(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(rb(d),0===d.delay&&(h=!0)),(eP.instantAnimations||eP.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,rb(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,h&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"}){let r=e.filter(rS),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return r[i]}(d.keyframes,s);if(void 0!==e)return void eC.update(()=>{d.onUpdate(e),d.onComplete()})}return s.isSync?new rm(d):new rk(d)};function rT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t,l=e.getDefaultTransition();o=o?nS(o,l):l;let u=o?.reduceMotion;r&&(o=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...nP(o||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating&&!Array.isArray(i)&&i===l&&!a.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[nb];if(n){let e=window.MotionHandoffAnimation(n,t,eC);null!==e&&(a.startTime=e,h=!0)}}n_(e,t);let f=u??e.shouldReduceMotion;r.start(rP(t,r,i,f&&J.has(t)?{type:!1}:a,e,h));let p=r.animation;p&&c.push(p)}if(a){let t=()=>eC.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nA(e,t)||{};for(let t in i={...i,...n}){var o;let n=nT(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,to(n))}}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function r_(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function rC(e,t,n={}){let r=nA(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(rC(l,t,{...a,delay:n+("function"==typeof r?0:r)+r_(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}let rR=td.length;function rj(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rD=[...tc].reverse(),rL=tc.length;function rz(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rO(){return{animate:rz(!0),whileInView:rz(),whileHover:rz(),whileTap:rz(),whileDrag:rz(),whileFocus:rz(),exit:rz()}}class rN extends nE{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rC(e,t,n)));else if("string"==typeof t)r=rC(e,t,n);else{let i="function"==typeof t?nA(e,t,n.custom):t;r=Promise.all(rT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rO(),r=!0,i=!1,o=t=>(n,r)=>{let i=nA(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rR;e++){let r=td[e],i=t.props[r];(tu(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],c=new Set,d={},h=1/0;for(let t=0;t<rL;t++){var f,p;let m=rD[t],y=n[m],g=void 0!==s[m]?s[m]:l[m],v=tu(g),b=m===a?y.isActive:null;!1===b&&(h=t);let x=g===l[m]&&g!==s[m]&&v;if(x&&(r||i)&&e.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...d},!y.isActive&&null===b||!g&&!y.prevProp||tl(g)||"boolean"==typeof g)continue;if("exit"===m&&y.isActive&&!0!==b){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let w=(f=y.prevProp,"string"==typeof(p=g)?p!==f:!!Array.isArray(p)&&!rj(p,f)),k=w||m===a&&y.isActive&&!x&&v||t>h&&v,M=!1,E=Array.isArray(g)?g:[g],A=E.reduce(o(m),{});!1===b&&(A={});let{prevResolvedValues:S={}}=y,P={...S,...A},T=t=>{k=!0,c.has(t)&&(M=!0,c.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in P){let t=A[e],n=S[e];if(!d.hasOwnProperty(e))(nT(t)&&nT(n)?rj(t,n):t===n)?void 0!==t&&c.has(e)?T(e):y.protectedKeys[e]=!0:null!=t?T(e):c.add(e)}y.prevProp=g,y.prevResolvedValues=A,y.isActive&&(d={...d,...A}),(r||i)&&e.blockInitialAnimation&&(k=!1);let _=x&&w,C=!_||M;k&&C&&u.push(...E.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!_&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nA(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=r_(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let n=nA(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let m=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rO(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rV=0;class rI extends nE{constructor(){super(...arguments),this.id=rV++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let r$={x:!1,y:!1};function rF(e){return[e("x"),e("y")]}function rB(e){return e.max-e.min}function rW(e,t,n,r=.5){e.origin=r,e.originPoint=tN(t.min,t.max,e.origin),e.scale=rB(n)/rB(t),e.translate=tN(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rH(e,t,n,r){rW(e.x,t.x,n.x,r?r.originX:void 0),rW(e.y,t.y,n.y,r?r.originY:void 0)}function rU(e,t,n){e.min=n.min+t.min,e.max=e.min+rB(t)}function rq(e,t,n){e.min=t.min-n.min,e.max=e.min+rB(t)}function rX(e,t,n){rq(e.x,t.x,n.x),rq(e.y,t.y,n.y)}let rY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rK=new Set(["INPUT","SELECT","TEXTAREA"]);function rG(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var rZ=n(2787);function rQ(e){return(0,rZ.G)(e)&&"ownerSVGElement"in e}function rJ(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let r0=new WeakMap,r1=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:rQ(r)&&"getBBox"in r?r.getBBox()[t]:r[n],r2=r1("inline","width","offsetWidth"),r3=r1("block","height","offsetHeight");function r5({target:e,borderBoxSize:t}){r0.get(e)?.forEach(n=>{n(e,{get width(){return r2(e,t)},get height(){return r3(e,t)}})})}function r6(e){e.forEach(r5)}let r4=new Set;function r9(e,t){let n;return"function"==typeof e?(r4.add(e),o||(o=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r4.forEach(t=>t(e))},window.addEventListener("resize",o)),()=>{r4.delete(e),r4.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(r6)),(n=rJ(e)).forEach(e=>{let n=r0.get(e);n||(n=new Set,r0.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=r0.get(e);n?.delete(t),n?.size||i?.unobserve(e)})})}let r7=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r8(e){return{point:{x:e.pageX,y:e.pageY}}}function ie(e,t,n,r){return rG(e,t,e=>r7(e)&&n(e,r8(e)),r)}let it=({current:e})=>e?e.ownerDocument.defaultView:null,ir=(e,t)=>Math.abs(e-t),ii=new Set(["auto","scroll"]);class io{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=il(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(ir(e.x,t.x)**2+ir(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=ej;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ia(t,this.transformPagePoint),eC.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=il("pointercancel"===e.type?this.lastMoveEventInfo:ia(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!r7(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=ia(r8(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=ej;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,il(s,this.history)),this.removeListeners=nR(ie(this.contextWindow,"pointermove",this.handlePointerMove),ie(this.contextWindow,"pointerup",this.handlePointerUp),ie(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ii.has(e.overflowX)||ii.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eC.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eR(this.updatePoint)}}function ia(e,t){return t?{point:t(e.point)}:e}function is(e,t){return{x:e.x-t.x,y:e.y-t.y}}function il({point:e},t){return{point:e,delta:is(e,iu(t)),offset:is(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=iu(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>eU(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*eU(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function iu(e){return e[e.length-1]}function ic(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function id(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ih(e,t,n){return{min:ip(e,t),max:ip(e,n)}}function ip(e,t){return"number"==typeof e?e:e[t]||0}let im=new WeakMap;class iy{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(r8(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(r$[e])return null;else return r$[e]=!0,()=>{r$[e]=!1};return r$.x||r$.y?null:(r$.x=r$.y=!0,()=>{r$.x=r$.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rF(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rB(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eC.update(()=>i(e,t),!1,!0),n_(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&eC.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new io(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:it(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&eC.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!iv(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tN(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tN(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ic(e.x,n,i),y:ic(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ih(e,"left","right"),y:ih(e,"top","bottom")}}(t),r!==this.constraints&&!nw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rF(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nw(t))return!1;let r=t.current;ei(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=t1(e,n),{scroll:i}=t;return i&&(tZ(r.x,i.offset.x),tZ(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:id(e.x,o.x),y:id(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tW(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rF(a=>{if(!iv(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n_(this.visualElement,e),n.start(rP(e,n,0,t,this.visualElement,!1))}stopAnimation(){rF(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rF(t=>{let{drag:n}=this.getProps();if(!iv(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-tN(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rF(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,s,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,a=rB(n),(s=rB(i))>a?o=rc(i.min,i.max-a,n.min):a>s&&(o=rc(n.min,n.max-s,i.min)),u(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rF(t=>{if(!iv(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tN(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;im.set(this.visualElement,this);let t=this.visualElement.current,n=ie(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(rK.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,a,{dragConstraints:s}=this.getProps();nw(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,o=r9(n,ig(i=()=>this.scalePositionWithinConstraints())),a=r9(r,ig(i)),e=()=>{o(),a()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eC.read(r);let a=rG(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rF(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ig(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iv(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class ib extends nE{constructor(e){super(e),this.removeGroupControls=eS,this.removeListeners=eS,this.controls=new iy(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eS}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let ix=e=>(t,n)=>{e&&eC.update(()=>e(t,n),!1,!0)};class iw extends nE{constructor(){super(...arguments),this.removePointerDownListener=eS}onPointerDown(e){this.session=new io(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:it(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ix(e),onStart:ix(t),onMove:ix(n),onEnd:(e,t)=>{delete this.session,r&&eC.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ie(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ik={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var iM=n(669);let iE=!1;class iA extends t5.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iE&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ik.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),iE=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eC.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iS(e){let[t,n]=(0,iM.xQ)(),r=(0,t5.useContext)(t7.L);return(0,t9.jsx)(iA,{...e,layoutGroup:r,switchLayoutGroup:(0,t5.useContext)(nx),isPresent:t,safeToRemove:n})}let iP=["TopLeft","TopRight","BottomLeft","BottomRight"],iT=iP.length,i_=e=>"string"==typeof e?parseFloat(e):e,iC=e=>"number"==typeof e||E.test(e);function iR(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ij=iL(0,.5,ra),iD=iL(.5,.95,eS);function iL(e,t,n){return r=>r<e?0:r>t?1:n(rc(e,t,r))}function iz(e,t){e.min=t.min,e.max=t.max}function iO(e,t){iz(e.x,t.x),iz(e.y,t.y)}function iN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iV(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iI(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(M.test(t)&&(t=parseFloat(t),t=tN(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=tN(o.min,o.max,r);e===o&&(s-=t),e.min=iV(e.min,t,n,s,i),e.max=iV(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let i$=["x","scaleX","originX"],iF=["y","scaleY","originY"];function iB(e,t,n,r){iI(e.x,t,i$,n?n.x:void 0,r?r.x:void 0),iI(e.y,t,iF,n?n.y:void 0,r?r.y:void 0)}function iW(e){return 0===e.translate&&1===e.scale}function iH(e){return iW(e.x)&&iW(e.y)}function iU(e,t){return e.min===t.min&&e.max===t.max}function iq(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iX(e,t){return iq(e.x,t.x)&&iq(e.y,t.y)}function iY(e){return rB(e.x)/rB(e.y)}function iK(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iG{constructor(){this.members=[]}add(e){eq(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(eX(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eX(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let iZ=(e,t)=>e.depth-t.depth;class iQ{constructor(){this.children=[],this.isDirty=!1}add(e){eq(this.children,e),this.isDirty=!0}remove(e){eX(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iZ),this.isDirty=!1,this.children.forEach(e)}}let iJ=["","X","Y","Z"],i0=0;function i1(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function i2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=i0++,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.layoutVersion=0,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(i6),this.nodes.forEach(on),this.nodes.forEach(or),this.nodes.forEach(i4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iQ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eY),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rQ(t)&&!(rQ(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eC.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=tr.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(eR(o),i(n-250))},eC.setup(o,!0),n=()=>eR(o),ik.hasAnimatedSinceResize&&(ik.hasAnimatedSinceResize=!1,this.nodes.forEach(ot))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||ou,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iX(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nP(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||ot(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eR(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oi),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nb];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eC,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(i7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i8);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oe),this.nodes.forEach(i3),this.nodes.forEach(i5)):this.nodes.forEach(i8),this.clearAllSnapshots();let e=tr.now();ej.delta=u(0,1e3/60,e-ej.timestamp),ej.timestamp=e,ej.isProcessing=!0,eD.update.process(ej),eD.preRender.process(ej),eD.render.process(ej),ej.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i9),this.sharedNodes.forEach(oo)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rB(this.snapshot.measuredBox.x)||rB(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iH(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tq(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),oh((t=r).x),oh(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(op))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(iO(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iO(t,e),tZ(t.x,i.offset.x),tZ(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Z();iO(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&t0(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tq(r.latestValues)&&t0(n,r.latestValues)}return tq(this.latestValues)&&t0(n,this.latestValues),n}removeTransform(e){let t=Z();iO(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!tq(n.latestValues))continue;tU(n.latestValues)&&n.updateSnapshot();let r=Z();iO(r,n.measurePageBox()),iB(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tq(this.latestValues)&&iB(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==ej.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=ej.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,s,l;this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,rU(a.x,s.x,l.x),rU(a.y,s.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iO(this.target,this.layout.layoutBox),tG(this.target,this.targetDelta)):iO(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tU(this.parent.latestValues)||tX(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(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),rX(this.relativeTargetOrigin,t,n),iO(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ej.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iO(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&t0(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tG(e,o)),r&&tq(i.latestValues)&&t0(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Z());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iN(this.prevProjectionDelta.x,this.projectionDelta.x),iN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rH(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iK(this.projectionDelta.x,this.prevProjectionDelta.x)&&iK(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Z(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ol));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(oa(a.x,e.x,r),oa(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,m,y;rX(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=s,y=r,os(f.x,p.x,m.x,y),os(f.y,p.y,m.y,y),n&&(u=this.relativeTarget,h=n,iU(u.x,h.x)&&iU(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=Z()),iO(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tN(0,n.opacity??1,ij(r)),e.opacityExit=tN(t.opacity??1,0,iD(r))):o&&(e.opacity=tN(t.opacity??1,n.opacity??1,r));for(let i=0;i<iT;i++){let o=`border${iP[i]}Radius`,a=iR(t,o),s=iR(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||iC(a)===iC(s)?(e[o]=Math.max(tN(i_(a),i_(s),r),0),(M.test(s)||M.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=tN(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eC.update(()=>{var t,n,r;let i;ik.hasAnimatedSinceResize=!0,e2.layout++,this.motionValue||(this.motionValue=to(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e2.layout--},onComplete:()=>{e2.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=Q(t)?t:to(t)).start(rP("",i,n,r)),i.animation),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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&of(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Z();let t=rB(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rB(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iO(t,n),t0(t,i),rH(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iG),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&i1("z",e,r,this.animationValues);for(let t=0;t<iJ.length;t++)i1(`rotate${iJ[t]}`,e,r,this.animationValues),i1(`skew${iJ[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nu(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nu(t?.pointerEvents)||""),this.hasProjected&&!tq(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tV){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=tV[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?nu(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(i7),this.root.sharedNodes.clear()}}}function i3(e){e.updateLayout()}function i5(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rF(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rB(r);r.min=n[e].min,r.max=r.min+i}):of(i,t.layoutBox,n)&&rF(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=rB(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=K();rH(a,n,t.layoutBox);let s=K();o?rH(s,e.applyTransform(r,!0),t.measuredBox):rH(s,n,t.layoutBox);let l=!iH(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=Z();rX(a,t.layoutBox,i.layoutBox);let s=Z();rX(s,n,o.layoutBox),iX(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i6(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i9(e){e.clearSnapshot()}function i7(e){e.clearMeasurements()}function i8(e){e.isLayoutDirty=!1}function oe(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ot(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function on(e){e.resolveTargetDelta()}function or(e){e.calcProjection()}function oi(e){e.resetSkewAndRotation()}function oo(e){e.removeLeadSnapshot()}function oa(e,t,n){e.translate=tN(t.translate,0,n),e.scale=tN(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function os(e,t,n,r){e.min=tN(t.min,n.min,r),e.max=tN(t.max,n.max,r)}function ol(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ou={duration:.45,ease:[.4,0,.1,1]},oc=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),od=oc("applewebkit/")&&!oc("chrome/")?Math.round:eS;function oh(e){e.min=od(e.min),e.max=od(e.max)}function of(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iY(t)-iY(n)))}function op(e){return e!==e.root&&e.scroll?.wasRoot}let om=i2({attachResizeListener:(e,t)=>rG(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oy={current:void 0},og=i2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oy.current){let e=new om({});e.mount(window),e.setOptions({layoutScroll:!0}),oy.current=e}return oy.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ov(e,t){let n=rJ(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ob(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eC.postRender(()=>i(t,r8(t)))}class ox extends nE{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ov(e,n);return r.forEach(e=>{let n,r=!1,o=!1,a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r$.x||r$.y)return;o=!1;let a=t(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),o}(e,(e,t)=>(ob(this.node,t,"Start"),e=>ob(this.node,e,"End"))))}unmount(){}}class ow extends nE{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=nR(rG(this.node.current,"focus",()=>this.onFocus()),rG(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ok=n(7765);let oM=(e,t)=>!!t&&(e===t||oM(e,t.parentElement)),oE=new WeakSet;function oA(e){return t=>{"Enter"===t.key&&e(t)}}function oS(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oP(e){return r7(e)&&!(r$.x||r$.y)}let oT=new WeakSet;function o_(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eC.postRender(()=>i(t,r8(t)))}class oC extends nE{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=ov(e,n),a=e=>{let r=e.currentTarget;if(!oP(e)||oT.has(e))return;oE.add(r),n.stopPropagation&&oT.add(e);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),oE.has(r)&&oE.delete(r),oP(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||oM(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,ok.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=oA(()=>{if(oE.has(n))return;oS(n,"down");let e=oA(()=>{oS(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oS(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),rY.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(o_(this.node,t,"Start"),(e,{success:t})=>o_(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let oR=new WeakMap,oj=new WeakMap,oD=e=>{let t=oR.get(e.target);t&&t(e)},oL=e=>{e.forEach(oD)},oz={some:0,all:1};class oO extends nE{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:a}=n,s={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:oz[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;oj.has(n)||oj.set(n,{});let r=oj.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oL,{root:e,...t})),r[i]}(s),oR.set(e,l),t.observe(e),()=>{oR.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let oN=function(e,t){if("u"<typeof Proxy)return nM;let n=new Map,r=(n,r)=>nM(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,nM(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rN},exit:{Feature:rI},inView:{Feature:oO},tap:{Feature:oC},focus:{Feature:ow},hover:{Feature:ox},pan:{Feature:iw},drag:{Feature:ib,ProjectionNode:og,MeasureLayout:iS},layout:{ProjectionNode:og,MeasureLayout:iS}},(e,t)=>t.isSVG??t4(e)?new tB(t):new t2(t,{allowProjection:e!==t5.Fragment}))},6756:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(430);n(6366);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},6765:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]])},6777:(e,t,n)=>{"use strict";n.d(t,{TL:()=>a});var r=n(430),i=n(5391),o=n(6366);function a(e){var t;let n,a=(t=e,(n=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${t}.SlotClone`,n),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),u=s.find(l);if(u){let e=u.props.children,n=s.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:t,children:n})});return s.displayName=`${e}.Slot`,s}var s=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},6933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(430);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6968:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},7101:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},7227:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},7262:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},7408:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},7489:(e,t,n)=>{"use strict";n.d(t,{Do:()=>p,WZ:()=>d,TG:()=>m,ny:()=>h,yX:()=>y,xN:()=>g,Qc:()=>f,I$:()=>rg,aQ:()=>rk,di:()=>rM,kO:()=>rR,rN:()=>nJ,bi:()=>rs,_s:()=>nL,aE:()=>ns,Hm:()=>rt,tM:()=>t6,KE:()=>nM,tn:()=>t5,xc:()=>t2,us:()=>nD,IO:()=>na,e_:()=>nU,Fp:()=>nY,Mi:()=>nb,HF:()=>t7,Eo:()=>nV,b5:()=>n4,Tq:()=>nl,qX:()=>nG,q1:()=>nW,M_:()=>n7,oj:()=>nI,aZ:()=>ni,aW:()=>re,uD:()=>nR,Jo:()=>nr,U$:()=>no,X6:()=>nx,oN:()=>n5,ah:()=>n0,R4:()=>nT,r8:()=>rc,ZO:()=>t3,bK:()=>t4,b$:()=>t8,uj:()=>nZ,v5:()=>nF,Ue:()=>n_,Er:()=>nB,oB:()=>ne,kf:()=>nk,mW:()=>nw,Q6:()=>nO,QE:()=>nj,kM:()=>ng,No:()=>rh,Ff:()=>nA,zj:()=>nS,s_:()=>nE,vS:()=>ro,qn:()=>rp,uL:()=>rd,YN:()=>nz});var r,i,o,a,s,l,u,c,d,h,f,p,m,y,g,v={value:()=>{}};function b(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new x(r)}function x(e){this._=e}function w(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=v,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}function k(){}function M(e){return null==e?k:function(){return this.querySelector(e)}}function E(){return[]}function A(e){return null==e?E:function(){return this.querySelectorAll(e)}}function S(e){return function(){return this.matches(e)}}function P(e){return function(t){return t.matches(e)}}x.prototype=b.prototype={constructor:x,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((n=(e=i[o]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=w(r[n],e.name,t);else if(null==t)for(n in r)r[n]=w(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new x(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var T=Array.prototype.find;function _(){return this.firstElementChild}var C=Array.prototype.filter;function R(){return Array.from(this.children)}function j(e){return Array(e.length)}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function L(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new D(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function z(e,t,n,r,i,o,a){var s,l,u,c=new Map,d=t.length,h=o.length,f=Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new D(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c.get(f[s])===l&&(i[s]=l)}function O(e){return e.__data__}function N(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var V="http://www.w3.org/1999/xhtml";let I={svg:"http://www.w3.org/2000/svg",xhtml:V,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),I.hasOwnProperty(t)?{space:I[t],local:e}:e}function F(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function B(e,t){return e.style.getPropertyValue(t)||F(e).getComputedStyle(e,null).getPropertyValue(t)}function W(e){return e.trim().split(/^|\s+/)}function H(e){return e.classList||new U(e)}function U(e){this._node=e,this._names=W(e.getAttribute("class")||"")}function q(e,t){for(var n=H(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function X(e,t){for(var n=H(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Y(){this.textContent=""}function K(){this.innerHTML=""}function G(){this.nextSibling&&this.parentNode.appendChild(this)}function Z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Q(e){var t=$(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===V&&t.documentElement.namespaceURI===V?t.createElement(e):t.createElementNS(n,e)}})(t)}function J(){return null}function ee(){var e=this.parentNode;e&&e.removeChild(this)}function et(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function en(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function er(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function ei(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function eo(e,t,n){var r=F(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}U.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ea=[null];function es(e,t){this._groups=e,this._parents=t}function el(){return new es([[document.documentElement]],ea)}function eu(e){return"string"==typeof e?new es([[document.querySelector(e)]],[document.documentElement]):new es([[e]],ea)}function ec(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}es.prototype=el.prototype={constructor:es,select:function(e){"function"!=typeof e&&(e=M(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new es(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=A(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s,l=n[a],u=l.length,c=0;c<u;++c)(s=l[c])&&(i.push(e.call(s,s.__data__,c,l)),o.push(s));return new es(i,o)},selectChild:function(e){var t;return this.select(null==e?_:(t="function"==typeof e?e:P(e),function(){return T.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?R:(t="function"==typeof e?e:P(e),function(){return C.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=S(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new es(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,O);var n=t?z:L,r=this._parents,i=this._groups;"function"!=typeof e&&(v=e,e=function(){return v});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],h=d.length,f="object"==typeof(g=e.call(c,c&&c.__data__,u,r))&&"length"in g?g:Array.from(g),p=f.length,m=s[u]=Array(p),y=a[u]=Array(p);n(c,d,m,y,l[u]=Array(h),f,t);for(var g,v,b,x,w=0,k=0;w<p;++w)if(b=m[w]){for(w>=k&&(k=w+1);!(x=y[k])&&++k<p;);b._next=x||null}}return(a=new es(a,r))._enter=s,a._exit=l,a},enter:function(){return new es(this._enter||this._groups.map(j),this._parents)},exit:function(){return new es(this._exit||this._groups.map(j),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],d=r[l],h=c.length,f=s[l]=Array(h),p=0;p<h;++p)(u=c[p]||d[p])&&(f[p]=u);for(;l<i;++l)s[l]=n[l];return new es(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=N);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new es(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=$(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):B(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=W(e+"");if(arguments.length<2){for(var r=H(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?q:X)(this,e)}}:t?function(e){return function(){q(this,e)}}:function(e){return function(){X(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?Y:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?K:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(G)},lower:function(){return this.each(Z)},append:function(e){var t="function"==typeof e?e:Q(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Q(e),r=null==t?J:"function"==typeof t?t:M(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(ee)},clone:function(e){return this.select(e?en:et)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?ei:er;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return eo(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return eo(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};let ed={passive:!1},eh={capture:!0,passive:!1};function ef(e){e.stopImmediatePropagation()}function ep(e){e.preventDefault(),e.stopImmediatePropagation()}function em(e){var t=e.document.documentElement,n=eu(e).on("dragstart.drag",ep,eh);"onselectstart"in t?n.on("selectstart.drag",ep,eh):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ey(e,t){var n=e.document.documentElement,r=eu(e).on("dragstart.drag",null);t&&(r.on("click.drag",ep,eh),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let eg=e=>()=>e;function ev(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function eb(e){return!e.ctrlKey&&!e.button}function ex(){return this.parentNode}function ew(e,t){return null==t?{x:e.x,y:e.y}:t}function ek(){return navigator.maxTouchPoints||"ontouchstart"in this}function eM(e){return((e=Math.exp(e))+1/e)/2}ev.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};let eE=function e(t,n,r){function i(e,i){var o,a,s=e[0],l=e[1],u=e[2],c=i[0],d=i[1],h=i[2],f=c-s,p=d-l,m=f*f+p*p;if(m<1e-12)a=Math.log(h/u)/t,o=function(e){return[s+e*f,l+e*p,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(m),g=(h*h-u*u+r*m)/(2*u*n*y),v=(h*h-u*u-r*m)/(2*h*n*y),b=Math.log(Math.sqrt(g*g+1)-g);a=(Math.log(Math.sqrt(v*v+1)-v)-b)/t,o=function(e){var r,i,o=e*a,c=eM(b),d=u/(n*y)*(c*(((r=Math.exp(2*(r=t*o+b)))-1)/(r+1))-((i=Math.exp(i=b))-1/i)/2);return[s+d*f,l+d*p,u*c/eM(t*o+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);var eA,eS,eP=0,eT=0,e_=0,eC=0,eR=0,ej=0,eD="object"==typeof performance&&performance.now?performance:Date,eL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ez(){return eR||(eL(eO),eR=eD.now()+ej)}function eO(){eR=0}function eN(){this._call=this._time=this._next=null}function eV(e,t,n){var r=new eN;return r.restart(e,t,n),r}function eI(){eR=(eC=eD.now())+ej,eP=eT=0;try{ez(),++eP;for(var e,t=eA;t;)(e=eR-t._time)>=0&&t._call.call(void 0,e),t=t._next;--eP}finally{eP=0,function(){for(var e,t,n=eA,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eA=t);eS=e,eF(r)}(),eR=0}}function e$(){var e=eD.now(),t=e-eC;t>1e3&&(ej-=t,eC=e)}function eF(e){!eP&&(eT&&(eT=clearTimeout(eT)),e-eR>24?(e<1/0&&(eT=setTimeout(eI,e-eD.now()-ej)),e_&&(e_=clearInterval(e_))):(e_||(eC=eD.now(),e_=setInterval(e$,1e3)),eP=1,eL(eI)))}function eB(e,t,n){var r=new eN;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eN.prototype=eV.prototype={constructor:eN,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?ez():+n)+(null==t?0:+t),this._next||eS===this||(eS?eS._next=this:eA=this,eS=this),this._call=e,this._time=n,eF()},stop:function(){this._call&&(this._call=null,this._time=1/0,eF())}};var eW=b("start","end","cancel","interrupt"),eH=[];function eU(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,h;if(1!==n.state)return s();for(u in i)if((h=i[u]).name===n.name){if(3===h.state)return eB(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[u]):+u<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[u])}if(eB(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(h=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=eV(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eW,tween:eH,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function eq(e,t){var n=eY(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eX(e,t){var n=eY(e,t);if(n.state>3)throw Error("too late; already running");return n}function eY(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eK(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function eG(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var eZ=180/Math.PI,eQ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eJ(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*eZ,skewX:Math.atan(l)*eZ,scaleX:a,scaleY:s}}function e0(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],h=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:eG(e,i)},{i:l-2,x:eG(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,h),s=o.rotate,l=a.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:eG(s,l)})):l&&d.push(i(d)+"rotate("+l+r),u=o.skewX,c=a.skewX,u!==c?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:eG(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:eG(e,n)},{i:s-2,x:eG(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,h),o=a=null,function(e){for(var t,n=-1,r=h.length;++n<r;)d[(t=h[n]).i]=t.x(e);return d.join("")}}}var e1=e0(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eQ:eJ(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),e2=e0(function(e){return null==e?eQ:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",e),e=c.transform.baseVal.consolidate())?eJ((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eQ},", ",")",")");function e3(e,t,n){var r=e._id;return e.each(function(){var e=eX(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eY(e,r).value[t]}}function e5(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function e6(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e4(){}var e9="\\s*([+-]?\\d+)\\s*",e7="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",e8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",te=/^#([0-9a-f]{3,8})$/,tt=RegExp(`^rgb\\(${e9},${e9},${e9}\\)$`),tn=RegExp(`^rgb\\(${e8},${e8},${e8}\\)$`),tr=RegExp(`^rgba\\(${e9},${e9},${e9},${e7}\\)$`),ti=RegExp(`^rgba\\(${e8},${e8},${e8},${e7}\\)$`),to=RegExp(`^hsl\\(${e7},${e8},${e8}\\)$`),ta=RegExp(`^hsla\\(${e7},${e8},${e8},${e7}\\)$`),ts={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function tl(){return this.rgb().formatHex()}function tu(){return this.rgb().formatRgb()}function tc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=te.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?td(t):3===n?new tp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?th(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?th(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=tt.exec(e))?new tp(t[1],t[2],t[3],1):(t=tn.exec(e))?new tp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tr.exec(e))?th(t[1],t[2],t[3],t[4]):(t=ti.exec(e))?th(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=to.exec(e))?tx(t[1],t[2]/100,t[3]/100,1):(t=ta.exec(e))?tx(t[1],t[2]/100,t[3]/100,t[4]):ts.hasOwnProperty(e)?td(ts[e]):"transparent"===e?new tp(NaN,NaN,NaN,0):null}function td(e){return new tp(e>>16&255,e>>8&255,255&e,1)}function th(e,t,n,r){return r<=0&&(e=t=n=NaN),new tp(e,t,n,r)}function tf(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof e4||(i=tc(i)),i)?new tp((i=i.rgb()).r,i.g,i.b,i.opacity):new tp:new tp(e,t,n,null==r?1:r)}function tp(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tm(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}`}function ty(){let e=tg(this.opacity);return`${1===e?"rgb(":"rgba("}${tv(this.r)}, ${tv(this.g)}, ${tv(this.b)}${1===e?")":`, ${e})`}`}function tg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tb(e){return((e=tv(e))<16?"0":"")+e.toString(16)}function tx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tk(e,t,n,r)}function tw(e){if(e instanceof tk)return new tk(e.h,e.s,e.l,e.opacity);if(e instanceof e4||(e=tc(e)),!e)return new tk;if(e instanceof tk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new tk(a,s,l,e.opacity)}function tk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tM(e){return(e=(e||0)%360)<0?e+360:e}function tE(e){return Math.max(0,Math.min(1,e||0))}function tA(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function tS(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}e5(e4,tc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tl,formatHex:tl,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tw(this).formatHsl()},formatRgb:tu,toString:tu}),e5(tp,tf,e6(e4,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tp(tv(this.r),tv(this.g),tv(this.b),tg(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tm,formatHex:tm,formatHex8:function(){return`#${tb(this.r)}${tb(this.g)}${tb(this.b)}${tb((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ty,toString:ty})),e5(tk,function(e,t,n,r){return 1==arguments.length?tw(e):new tk(e,t,n,null==r?1:r)},e6(e4,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new tk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new tk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tp(tA(e>=240?e-240:e+120,i,r),tA(e,i,r),tA(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tk(tM(this.h),tE(this.s),tE(this.l),tg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tg(this.opacity);return`${1===e?"hsl(":"hsla("}${tM(this.h)}, ${100*tE(this.s)}%, ${100*tE(this.l)}%${1===e?")":`, ${e})`}`}}));let tP=e=>()=>e;function tT(e,t){var n=t-e;return n?function(t){return e+t*n}:tP(isNaN(e)?t:e)}let t_=function e(t){var n,r=1==(n=+t)?tT:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):tP(isNaN(e)?t:e)};function i(e,t){var n=r((e=tf(e)).r,(t=tf(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=tT(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function tC(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=tf(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}tC(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return tS((n-r/t)*t,a,i,o,s)}}),tC(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return tS((n-r/t)*t,i,o,a,s)}});var tR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tj=RegExp(tR.source,"g");function tD(e,t){var n,r,i,o,a,s=tR.lastIndex=tj.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=tR.exec(e))&&(o=tj.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:eG(i,o)})),s=tj.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})}function tL(e,t){var n;return("number"==typeof t?eG:t instanceof tc?t_:(n=tc(t))?(t=n,t_):tD)(e,t)}var tz=el.prototype.constructor;function tO(e){return function(){this.style.removeProperty(e)}}var tN=0;function tV(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tI=el.prototype;tV.prototype=(function(e){return el().transition(e)}).prototype={constructor:tV,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=M(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,d=o[a]=Array(c),h=0;h<c;++h)(s=u[h])&&(l=e.call(s,s.__data__,h,u))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,eU(d[h],t,n,h,d,eY(s,n)));return new tV(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=A(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var h,f=e.call(l,l.__data__,d,u),p=eY(l,n),m=0,y=f.length;m<y;++m)(h=f[m])&&eU(h,t,n,m,f,p);o.push(f),a.push(l)}return new tV(o,a,t,n)},selectChild:tI.selectChild,selectChildren:tI.selectChildren,filter:function(e){"function"!=typeof e&&(e=S(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new tV(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=Array(d),f=0;f<d;++f)(l=u[f]||c[f])&&(h[f]=l);for(;s<r;++s)a[s]=t[s];return new tV(a,this._parents,this._name,this._id)},selection:function(){return new tz(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++tN,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=eY(a,t);eU(a,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new tV(r,this._parents,e,n)},call:tI.call,nodes:tI.nodes,node:tI.node,size:tI.size,empty:tI.empty,each:tI.each,on:function(e,t){var n,r,i,o,a,s,l=this._id;return arguments.length<2?eY(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,s=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eq:eX,function(){var e=s(this,n),t=e.on;t!==o&&(a=(o=t).copy()).on(r,i),e.on=a}))},attr:function(e,t){var n=$(e),r="transform"===n?e2:tL;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}:function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}})(n,r,e3(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=$(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,l,u,c,d,h,f,p,m,y,g,v,b,x,w,k,M,E="transform"==(e+="")?e1:tL;return null==t?this.styleTween(e,(r=e,function(){var e=B(this,r),t=(this.style.removeProperty(r),B(this,r));return e===t?null:e===i&&t===o?a:a=E(i=e,o=t)})).on("end.style."+e,tO(e)):"function"==typeof t?this.styleTween(e,(s=e,l=e3(this,"style."+e,t),function(){var e=B(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=B(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=E(u=e,t))})).each((h=this._id,b="end."+(v="style."+(f=e)),function(){var e=eX(this,h),t=e.on,n=null==e.value[v]?g||(g=tO(f)):void 0;(t!==p||y!==n)&&(m=(p=t).copy()).on(b,y=n),e.on=m})):this.styleTween(e,(x=e,M=t+"",function(){var e=B(this,x);return e===M?null:e===w?k:k=E(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=e3(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eY(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eX(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=eX(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eq(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eq(this,e).delay=t}})(t,e)):eY(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eX(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eX(this,e).duration=t}})(t,e)):eY(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eX(this,e).ease=t}}(t,e)):eY(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eX(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=eX(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:tI[Symbol.iterator]};var t$={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};el.prototype.interrupt=function(e){return this.each(function(){eK(this,e)})},el.prototype.transition=function(e){var t,n;e instanceof tV?(t=e._id,e=e._name):(t=++tN,(n=t$).time=ez(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&eU(a,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new tV(r,this._parents,e,t)};let tF=e=>()=>e;function tB(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function tW(e,t,n){this.k=e,this.x=t,this.y=n}tW.prototype={constructor:tW,scale:function(e){return 1===e?this:new tW(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new tW(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tH=new tW(1,0,0);function tU(e){for(;!e.__zoom;)if(!(e=e.parentNode))return tH;return e.__zoom}function tq(e){e.stopImmediatePropagation()}function tX(e){e.preventDefault(),e.stopImmediatePropagation()}function tY(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function tK(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tG(){return this.__zoom||tH}function tZ(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function tJ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function t0(){var e,t,n,r=tY,i=tK,o=tJ,a=tZ,s=tQ,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,d=eE,h=b("start","zoom","end"),f=0,p=10;function m(e){e.property("__zoom",tG).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new tW(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new tW(e.k,r,i)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,r){e.on("start.zoom",function(){w(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,o=w(this,e).event(r),a=i.apply(this,e),s=null==n?v(a):"function"==typeof n?n.apply(this,e):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,h=d(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=h(e),n=l/t[2];e=new tW(n,s[0]-t[0]*n,s[1]-t[1]*n)}o.zoom(null,e)}})}function w(e,t,n){return!n&&e.__zooming||new k(e,t)}function k(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function M(e,...t){if(r.apply(this,arguments)){var n=w(this,t).event(e),i=this.__zoom,s=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,a.apply(this,arguments)))),c=ec(e);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[c,i.invert(c)],eK(this),n.start()}tX(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(g(y(i,s),n.mouse[0],n.mouse[1]),n.extent,u))}}function E(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=w(this,t,!0).event(e),s=eu(e.view).on("mousemove.zoom",function(e){if(tX(e),!a.moved){var t=e.clientX-c,n=e.clientY-d;a.moved=t*t+n*n>f}a.event(e).zoom("mouse",o(g(a.that.__zoom,a.mouse[0]=ec(e,i),a.mouse[1]),a.extent,u))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),ey(e.view,a.moved),tX(e),a.event(e).end()},!0),l=ec(e,i),c=e.clientX,d=e.clientY;em(e.view),tq(e),a.mouse=[l,this.__zoom.invert(l)],eK(this),a.start()}}function A(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=ec(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(a),l=n.k*(e.shiftKey?.5:2),d=o(g(y(n,l),a,s),i.apply(this,t),u);tX(e),c>0?eu(this).transition().duration(c).call(x,d,a,e):eu(this).call(m.transform,d,a,e)}}function S(n,...i){if(r.apply(this,arguments)){var o,a,s,l,u=n.touches,c=u.length,d=w(this,i,n.changedTouches.length===c).event(n);for(tq(n),a=0;a<c;++a)l=[l=ec(s=u[a],this),this.__zoom.invert(l),s.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,o=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(d.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),eK(this),d.start())}}function P(e,...t){if(this.__zooming){var n,r,i,a,s=w(this,t).event(e),l=e.changedTouches,c=l.length;for(tX(e),n=0;n<c;++n)i=ec(r=l[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var d=s.touch0[0],h=s.touch0[1],f=s.touch1[0],p=s.touch1[1],m=(m=f[0]-d[0])*m+(m=f[1]-d[1])*m,v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v;r=y(r,Math.sqrt(m/v)),i=[(d[0]+f[0])/2,(d[1]+f[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],a=s.touch0[1]}s.zoom("touch",o(g(r,i,a),s.extent,u))}}function T(e,...r){if(this.__zooming){var i,o,a=w(this,r).event(e),s=e.changedTouches,l=s.length;for(tq(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=ec(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<p)){var u=eu(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",tG),e!==i?x(e,t,n,r):i.interrupt().each(function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},m.scaleBy=function(e,t,n,r){m.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,function(){var e=i.apply(this,arguments),r=this.__zoom,a=null==n?v(e):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(a),l="function"==typeof t?t.apply(this,arguments):t;return o(g(y(r,l),a,s),e,u)},n,r)},m.translateBy=function(e,t,n,r){m.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)},null,r)},m.translateTo=function(e,t,n,r,a){m.transform(e,function(){var e=i.apply(this,arguments),a=this.__zoom,s=null==r?v(e):"function"==typeof r?r.apply(this,arguments):r;return o(tH.translate(s[0],s[1]).scale(a.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)},r,a)},k.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=eu(this.that).datum();h.call(e,this.that,new tB(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:h}),t)}},m.wheelDelta=function(e){return arguments.length?(a="function"==typeof e?e:tF(+e),m):a},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:tF(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"==typeof e?e:tF(!!e),m):s},m.extent=function(e){return arguments.length?(i="function"==typeof e?e:tF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],m):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(c=+e,m):c},m.interpolate=function(e){return arguments.length?(d=e,m):d},m.on=function(){var e=h.on.apply(h,arguments);return e===h?m:e},m.clickDistance=function(e){return arguments.length?(f=(e*=1)*e,m):Math.sqrt(f)},m.tapDistance=function(e){return arguments.length?(p=+e,m):p},m}function t1(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?tP(t):("number"===i?eG:"string"===i?(r=tc(t))?(t=r,t_):tD:t instanceof tc?t_:t instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(n=t)||n instanceof DataView?Array.isArray(t)?function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=Array(i),a=Array(r);for(n=0;n<i;++n)o[n]=t1(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,r={},i={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?r[n]=t1(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}:eG:function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}})(e,t)}tU.prototype=tW.prototype;let t2={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},t3=[[-1/0,-1/0],[1/0,1/0]],t5=["Enter"," ","Escape"],t6={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=d||(d={})).Strict="strict",r.Loose="loose",(i=h||(h={})).Free="free",i.Vertical="vertical",i.Horizontal="horizontal",(o=f||(f={})).Partial="partial",o.Full="full";let t4={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(s=m||(m={})).Arrow="arrow",s.ArrowClosed="arrowclosed",(l=y||(y={})).Left="left",l.Top="top",l.Right="right",l.Bottom="bottom";let t9={[y.Left]:y.Right,[y.Right]:y.Left,[y.Top]:y.Bottom,[y.Bottom]:y.Top};function t7(e){return null===e?null:e?"valid":"invalid"}let t8=e=>"id"in e&&"source"in e&&"target"in e,ne=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),nt=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),nn=(e,t=[0,0])=>{let{width:n,height:r}=nR(e),i=e.origin??t,o=n*i[0],a=r*i[1];return{x:e.position.x-o,y:e.position.y-a}},nr=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:ny(e.reduce((e,n)=>{let r="string"==typeof n,i=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(i=r?t.nodeLookup.get(n):nt(n)?n:t.nodeLookup.get(n.id)),np(e,i?nv(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),ni=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=np(n,nv(e)),r=!0)}),r?ny(n):{x:0,y:0,width:0,height:0}},no=(e,t,[n,r,i]=[0,0,1],o=!1,a=!1)=>{let s={...nA(t,[n,r,i]),width:t.width/i,height:t.height/i},l=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(a&&!n||r)continue;let i=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,c=nx(s,ng(t)),d=(i??0)*(u??0),h=o&&c>0;(!t.internals.handleBounds||h||c>=d||t.dragging)&&l.push(t)}return l};async function na({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:o},a){let s,l;if(0===e.size)return Promise.resolve(!0);let u=nT(ni((s=new Map,l=a?.nodes?new Set(a.nodes.map(e=>e.id)):null,e.forEach(e=>{e.measured.width&&e.measured.height&&(a?.includeHiddenNodes||!e.hidden)&&(!l||l.has(e.id))&&s.set(e.id,e)}),s)),t,n,a?.minZoom??i,a?.maxZoom??o,a?.padding??.1);return await r.setViewport(u,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),Promise.resolve(!0)}function ns({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:l,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},c=a.origin??r,d=a.extent||i;if("parent"!==a.extent||a.expandParent)s&&nC(a.extent)&&(d=[[a.extent[0][0]+l,a.extent[0][1]+u],[a.extent[1][0]+l,a.extent[1][1]+u]]);else if(s){let e=s.measured.width,t=s.measured.height;e&&t&&(d=[[l,u],[l+e,u+t]])}else o?.("005",t2.error005());let h=nC(d)?nc(t,d,a.measured):t;return(void 0===a.measured.width||void 0===a.measured.height)&&o?.("015",t2.error015()),{position:{x:h.x-l+(a.measured.width??0)*c[0],y:h.y-u+(a.measured.height??0)*c[1]},positionAbsolute:h}}async function nl({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let o,a=new Set(e.map(e=>e.id)),s=[];for(let e of n){if(!1===e.deletable)continue;let t=a.has(e.id),n=!t&&e.parentId&&s.find(t=>t.id===e.parentId);(t||n)&&s.push(e)}let l=new Set(t.map(e=>e.id)),u=r.filter(e=>!1!==e.deletable),c=(o=new Set,s.forEach(e=>{o.add(e.id)}),u.filter(e=>o.has(e.source)||o.has(e.target)));for(let e of u)l.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!i)return{edges:c,nodes:s};let d=await i({nodes:s,edges:c});return"boolean"==typeof d?d?{edges:c,nodes:s}:{edges:[],nodes:[]}:d}let nu=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),nc=(e={x:0,y:0},t,n)=>({x:nu(e.x,t[0][0],t[1][0]-(n?.width??0)),y:nu(e.y,t[0][1],t[1][1]-(n?.height??0))});function nd(e,t,n){let{width:r,height:i}=nR(n),{x:o,y:a}=n.internals.positionAbsolute;return nc(e,[[o,a],[o+r,a+i]],t)}let nh=(e,t,n)=>e<t?nu(Math.abs(e-t),1,t)/t:e>n?-nu(Math.abs(e-n),1,t)/t:0,nf=(e,t,n=15,r=40)=>[nh(e.x,r,t.width-r)*n,nh(e.y,r,t.height-r)*n],np=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nm=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),ny=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),ng=(e,t=[0,0])=>{let{x:n,y:r}=nt(e)?e.internals.positionAbsolute:nn(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},nv=(e,t=[0,0])=>{let{x:n,y:r}=nt(e)?e.internals.positionAbsolute:nn(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},nb=(e,t)=>ny(np(nm(e),nm(t))),nx=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),nw=e=>nk(e.width)&&nk(e.height)&&nk(e.x)&&nk(e.y),nk=e=>!isNaN(e)&&isFinite(e),nM=(e,t)=>{},nE=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),nA=({x:e,y:t},[n,r,i],o=!1,a=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return o?nE(s,a):s},nS=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function nP(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let nT=(e,t,n,r,i,o)=>{let a=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=nP(e,n),i=nP(e,t);return{top:r,right:i,bottom:r,left:i,x:2*i,y:2*r}}if("object"==typeof e){let r=nP(e.top??e.y??0,n),i=nP(e.bottom??e.y??0,n),o=nP(e.left??e.x??0,t),a=nP(e.right??e.x??0,t);return{top:r,right:a,bottom:i,left:o,x:o+a,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,t,n),s=nu(Math.min((t-a.x)/e.width,(n-a.y)/e.height),r,i),l=e.x+e.width/2,u=e.y+e.height/2,c=t/2-l*s,d=n/2-u*s,h=function(e,t,n,r,i,o){let{x:a,y:s}=nS(e,[t,n,r]),{x:l,y:u}=nS({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(i-l),bottom:Math.floor(o-u)}}(e,c,d,s,t,n),f={left:Math.min(h.left-a.left,0),top:Math.min(h.top-a.top,0),right:Math.min(h.right-a.right,0),bottom:Math.min(h.bottom-a.bottom,0)};return{x:c-f.left+f.right,y:d-f.top+f.bottom,zoom:s}},n_=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function nC(e){return null!=e&&"parent"!==e}function nR(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function nj(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function nD(e,t={width:0,height:0},n,r,i){let o={...e},a=r.get(n);if(a){let e=a.origin||i;o.x+=a.internals.positionAbsolute.x-(t.width??0)*e[0],o.y+=a.internals.positionAbsolute.y-(t.height??0)*e[1]}return o}function nL(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function nz(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function nO(e){return{...t6,...e||{}}}function nN(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:a}=nW(e),s=nA({x:o-(i?.left??0),y:a-(i?.top??0)},r),{x:l,y:u}=n?nE(s,t):s;return{xSnapped:l,ySnapped:u,...s}}let nV=e=>({width:e.offsetWidth,height:e.offsetHeight}),nI=e=>e?.getRootNode?.()||window?.document,n$=["INPUT","SELECT","TEXTAREA"];function nF(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(n$.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}let nB=e=>"clientX"in e,nW=(e,t)=>{let n=nB(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},nH=(e,t,n,r,i)=>{let o=t.querySelectorAll(`.${e}`);return o&&o.length?Array.from(o).map(t=>{let o=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:i,position:t.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...nV(t)}}):null};function nU({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:a,targetControlY:s}){let l=.125*e+.375*i+.375*a+.125*n,u=.125*t+.375*o+.375*s+.125*r,c=Math.abs(l-e),d=Math.abs(u-t);return[l,u,c,d]}function nq(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function nX({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case y.Left:return[t-nq(t-r,o),n];case y.Right:return[t+nq(r-t,o),n];case y.Top:return[t,n-nq(n-i,o)];case y.Bottom:return[t,n+nq(i-n,o)]}}function nY({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:i,targetPosition:o=y.Top,curvature:a=.25}){let[s,l]=nX({pos:n,x1:e,y1:t,x2:r,y2:i,c:a}),[u,c]=nX({pos:o,x1:r,y1:i,x2:e,y2:t,c:a}),[d,h,f,p]=nU({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${s},${l} ${u},${c} ${r},${i}`,d,h,f,p]}function nK({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,o=Math.abs(r-t)/2;return[n<e?n+i:n-i,r<t?r+o:r-o,i,o]}function nG({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if("manual"===o)return r;let a=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return(i&&n?r+1e3:r)+a}function nZ({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let o=np(nv(e),nv(t));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),nx({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},ny(o))>0}let nQ=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,nJ=(e,t,n={})=>{let r,i;if(!e.source||!e.target)return nM("006",t2.error006()),t;let o=n.getEdgeId||nQ;return(i=r=t8(e)?{...e}:{...e,id:o(e)},t.some(e=>e.source===i.source&&e.target===i.target&&(e.sourceHandle===i.sourceHandle||!e.sourceHandle&&!i.sourceHandle)&&(e.targetHandle===i.targetHandle||!e.targetHandle&&!i.targetHandle)))?t:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,t.concat(r))};function n0({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,o,a,s]=nK({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,a,s]}let n1={[y.Left]:{x:-1,y:0},[y.Right]:{x:1,y:0},[y.Top]:{x:0,y:-1},[y.Bottom]:{x:0,y:1}},n2=({source:e,sourcePosition:t=y.Bottom,target:n})=>t===y.Left||t===y.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},n3=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function n5({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:i,targetPosition:o=y.Top,borderRadius:a=5,centerX:s,centerY:l,offset:u=20,stepPosition:c=.5}){let[d,h,f,p,m]=function({source:e,sourcePosition:t=y.Bottom,target:n,targetPosition:r=y.Top,center:i,offset:o,stepPosition:a}){let s,l,u=n1[t],c=n1[r],d={x:e.x+u.x*o,y:e.y+u.y*o},h={x:n.x+c.x*o,y:n.y+c.y*o},f=n2({source:d,sourcePosition:t,target:h}),p=0!==f.x?"x":"y",m=f[p],g=[],v={x:0,y:0},b={x:0,y:0},[,,x,w]=nK({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[p]*c[p]==-1){"x"===p?(s=i.x??d.x+(h.x-d.x)*a,l=i.y??(d.y+h.y)/2):(s=i.x??(d.x+h.x)/2,l=i.y??d.y+(h.y-d.y)*a);let e=[{x:s,y:d.y},{x:s,y:h.y}],t=[{x:d.x,y:l},{x:h.x,y:l}];g=u[p]===m?"x"===p?e:t:"x"===p?t:e}else{let i=[{x:d.x,y:h.y}],a=[{x:h.x,y:d.y}];if(g="x"===p?u.x===m?a:i:u.y===m?i:a,t===r){let t=Math.abs(e[p]-n[p]);if(t<=o){let r=Math.min(o-1,o-t);u[p]===m?v[p]=(d[p]>e[p]?-1:1)*r:b[p]=(h[p]>n[p]?-1:1)*r}}if(t!==r){let e="x"===p?"y":"x",t=u[p]===c[e],n=d[e]>h[e],r=d[e]<h[e];(1===u[p]&&(!t&&n||t&&r)||1!==u[p]&&(!t&&r||t&&n))&&(g="x"===p?i:a)}let f={x:d.x+v.x,y:d.y+v.y},y={x:h.x+b.x,y:h.y+b.y};Math.max(Math.abs(f.x-g[0].x),Math.abs(y.x-g[0].x))>=Math.max(Math.abs(f.y-g[0].y),Math.abs(y.y-g[0].y))?(s=(f.x+y.x)/2,l=g[0].y):(s=g[0].x,l=(f.y+y.y)/2)}return[[e,{x:d.x+v.x,y:d.y+v.y},...g,{x:h.x+b.x,y:h.y+b.y},n],s,l,x,w]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:s,y:l},offset:u,stepPosition:c});return[d.reduce((e,t,n)=>e+(n>0&&n<d.length-1?function(e,t,n,r){let i=Math.min(n3(e,t)/2,n3(t,n)/2,r),{x:o,y:a}=t;if(e.x===o&&o===n.x||e.y===a&&a===n.y)return`L${o} ${a}`;if(e.y===a){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${o+i*t},${a}Q ${o},${a} ${o},${a+i*r}`}let s=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${o},${a+i*l}Q ${o},${a} ${o+i*s},${a}`}(d[n-1],t,d[n+1],a):`${0===n?"M":"L"}${t.x} ${t.y}`),""),h,f,p,m]}function n6(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function n4(e){let{sourceNode:t,targetNode:n}=e;if(!n6(t)||!n6(n))return null;let r=t.internals.handleBounds||n9(t.handles),i=n.internals.handleBounds||n9(n.handles),o=n8(r?.source??[],e.sourceHandle),a=n8(e.connectionMode===d.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!o||!a)return e.onError?.("008",t2.error008(!o?"source":"target",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let s=o?.position||y.Bottom,l=a?.position||y.Top,u=n7(t,o,s),c=n7(n,a,l);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:s,targetPosition:l}}function n9(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,"source"===r.type?t.push(r):"target"===r.type&&n.push(r);return{source:t,target:n}}function n7(e,t,n=y.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,o=(t?.y??0)+e.internals.positionAbsolute.y,{width:a,height:s}=t??nR(e);if(r)return{x:i+a/2,y:o+s/2};switch(t?.position??n){case y.Top:return{x:i+a/2,y:o};case y.Right:return{x:i+a,y:o+s/2};case y.Bottom:return{x:i+a/2,y:o+s};case y.Left:return{x:i,y:o+s/2}}}function n8(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function re(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function rt(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return e.reduce((e,a)=>([a.markerStart||r,a.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=re(r,t);o.has(i)||(e.push({id:i,color:r.color||n,...r}),o.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}let rn={nodeOrigin:[0,0],nodeExtent:t3,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},rr={...rn,checkEquality:!0};function ri(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function ro(e,t,n){let r=ri(rn,n);for(let n of e.values())if(n.parentId)rl(n,e,t,r);else{let e=nc(nn(n,r.nodeOrigin),nC(n.extent)?n.extent:r.nodeExtent,nR(n));n.internals.positionAbsolute=e}}function ra(e){return"manual"===e}function rs(e,t,n,r={}){let i=ri(rr,r),o={i:0},a=new Map(t),s=i?.elevateNodesOnSelect&&!ra(i.zIndexMode)?1e3:0,l=e.length>0;for(let u of(t.clear(),n.clear(),e)){let e=a.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=nc(nn(u,i.nodeOrigin),nC(u.extent)?u.extent:i.nodeExtent,nR(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(i):"target"===t.type&&r.push(i)}return{source:n,target:r}}(u,e),z:ru(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(l=!1),u.parentId&&rl(e,t,n,r,o)}return l}function rl(e,t,n,r,i){let{elevateNodesOnSelect:o,nodeOrigin:a,nodeExtent:s,zIndexMode:l}=ri(rn,r),u=e.parentId,c=t.get(u);if(!c)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),i&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===l&&(c.internals.rootParentIndex=++i.i,c.internals.z=c.internals.z+10*i.i),i&&void 0!==c.internals.rootParentIndex&&(i.i=c.internals.rootParentIndex);let{x:d,y:h,z:f}=function(e,t,n,r,i,o){let{x:a,y:s}=t.internals.positionAbsolute,l=nR(e),u=nn(e,n),c=nC(e.extent)?nc(u,e.extent,l):u,d=nc({x:a+c.x,y:s+c.y},r,l);"parent"===e.extent&&(d=nd(d,l,t));let h=ru(e,i,o),f=t.internals.z??0;return{x:d.x,y:d.y,z:f>=h?f+1:h}}(e,c,a,s,o&&!ra(l)?1e3:0,l),{positionAbsolute:p}=e.internals,m=d!==p.x||h!==p.y;(m||f!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:m?{x:d,y:h}:p,z:f}})}function ru(e,t,n){let r=nk(e.zIndex)?e.zIndex:0;return ra(n)?r:r+(e.selected?t:0)}function rc(e,t,n,r=[0,0]){let i=[],o=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=nb(o.get(n.parentId)?.expandedRect??ng(e),n.rect);o.set(n.parentId,{expandedRect:r,parent:e})}return o.size>0&&o.forEach(({expandedRect:t,parent:o},a)=>{let s=o.internals.positionAbsolute,l=nR(o),u=o.origin??r,c=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,d=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,h=Math.max(l.width,Math.round(t.width)),f=Math.max(l.height,Math.round(t.height)),p=(h-l.width)*u[0],m=(f-l.height)*u[1];(c>0||d>0||p||m)&&(i.push({id:a,type:"position",position:{x:o.position.x-c+p,y:o.position.y-d+m}}),n.get(a)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+d}})})),(l.width<t.width||l.height<t.height||c||d)&&i.push({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:h+(c?u[0]*c-p:0),height:f+(d?u[1]*d-m:0)}})}),i}function rd(e,t,n,r,i,o,a){let s=r?.querySelector(".xyflow__viewport"),l=!1;if(!s)return{changes:[],updatedInternals:l};let u=[],c=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(c.transform),h=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),l=!0;continue}let s=nV(r.nodeElement),c=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(c||!e.internals.handleBounds||r.force)){let f=r.nodeElement.getBoundingClientRect(),p=nC(e.extent)?e.extent:o,{positionAbsolute:m}=e.internals;e.parentId&&"parent"===e.extent?m=nd(m,s,t.get(e.parentId)):p&&(m=nc(m,p,s));let y={...e,measured:s,internals:{...e.internals,positionAbsolute:m,handleBounds:{source:nH("source",r.nodeElement,f,d,e.id),target:nH("target",r.nodeElement,f,d,e.id)}}};t.set(e.id,y),e.parentId&&rl(y,t,n,{nodeOrigin:i,zIndexMode:a}),l=!0,c&&(u.push({id:e.id,type:"dimensions",dimensions:s}),e.expandParent&&e.parentId&&h.push({id:e.id,parentId:e.parentId,rect:ng(y,i)}))}}if(h.length>0){let e=rc(h,t,n,i);u.push(...e)}return{changes:u,updatedInternals:l}}async function rh({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,o]],r);return Promise.resolve(!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]))}function rf(e,t,n,r,i,o){let a=i,s=r.get(a)||new Map;r.set(a,s.set(n,t)),a=`${i}-${e}`;let l=r.get(a)||new Map;if(r.set(a,l.set(n,t)),o){a=`${i}-${e}-${o}`;let s=r.get(a)||new Map;r.set(a,s.set(n,t))}}function rp(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:a=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:a},l=`${n}-${o}--${i}-${a}`;rf("source",s,`${i}-${a}--${n}-${o}`,e,n,o),rf("target",s,l,e,i,a),t.set(r.id,r)}}function rm(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function ry({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,o]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:o.position,dragging:r})}if(!e)return[i[0],i];let o=n.get(e)?.internals.userNode;return[o?{...o,position:t.get(e)?.position||o.position,dragging:r}:i[0],i]}function rg({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},a=0,s=new Map,l=!1,u={x:0,y:0},c=null,d=!1,h=null,f=!1,p=!1,m=null;return{update:function({noDragClassName:y,handleSelector:g,domNode:v,isSelectable:x,nodeId:w,nodeClickDistance:k=0}){function M({x:e,y:n}){let{nodeLookup:i,nodeExtent:a,snapGrid:l,snapToGrid:u,nodeOrigin:c,onNodeDrag:d,onSelectionDrag:h,onError:f,updateNodePositions:y}=t();o={x:e,y:n};let g=!1,v=s.size>1,b=v&&a?nm(ni(s)):null,x=v&&u?function({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let o={x:n-i.distance.x,y:r-i.distance.y},a=nE(o,t);return{x:a.x-o.x,y:a.y-o.y}}({dragItems:s,snapGrid:l,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let o={x:e-r.distance.x,y:n-r.distance.y};u&&(o=x?{x:Math.round(o.x+x.x),y:Math.round(o.y+x.y)}:nE(o,l));let s=null;if(v&&a&&!r.extent&&b){let{positionAbsolute:e}=r.internals,t=e.x-b.x+a[0][0],n=e.x+r.measured.width-b.x2+a[1][0];s=[[t,e.y-b.y+a[0][1]],[n,e.y+r.measured.height-b.y2+a[1][1]]]}let{position:d,positionAbsolute:h}=ns({nodeId:t,nextPosition:o,nodeLookup:i,nodeExtent:s||a,nodeOrigin:c,onError:f});g=g||r.position.x!==d.x||r.position.y!==d.y,r.position=d,r.internals.positionAbsolute=h}if(p=p||g,g&&(y(s,!0),m&&(r||d||!w&&h))){let[e,t]=ry({nodeId:w,dragItems:s,nodeLookup:i});r?.(m,s,e,t),d?.(m,e,t),w||h?.(m,t)}}async function E(){if(!c)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){l=!1,cancelAnimationFrame(a);return}let[s,d]=nf(u,c,r);(0!==s||0!==d)&&(o.x=(o.x??0)-s/e[2],o.y=(o.y??0)-d/e[2],await n({x:s,y:d})&&M(o)),a=requestAnimationFrame(E)}function A(r){let{nodeLookup:i,multiSelectionActive:a,nodesDraggable:l,transform:u,snapGrid:h,snapToGrid:f,selectNodesOnDrag:p,onNodeDragStart:m,onSelectionDragStart:y,unselectNodesAndEdges:g}=t();d=!0,p&&x||a||!w||i.get(w)?.selected||g(),x&&p&&w&&e?.(w);let v=nN(r.sourceEvent,{transform:u,snapGrid:h,snapToGrid:f,containerBounds:c});if(o=v,(s=function(e,t,n,r){let i=new Map;for(let[o,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(a,e))&&(a.draggable||t&&void 0===a.draggable)){let t=e.get(o);t&&i.set(o,{id:o,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}(i,l,v,w)).size>0&&(n||m||!w&&y)){let[e,t]=ry({nodeId:w,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),m?.(r.sourceEvent,e,t),w||y?.(r.sourceEvent,t)}}h=eu(v);let S=(function(){var e,t,n,r,i=eb,o=ex,a=ew,s=ek,l={},u=b("start","drag","end"),c=0,d=0;function h(e){e.on("mousedown.drag",f).filter(s).on("touchstart.drag",y).on("touchmove.drag",g,ed).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(a,s){if(!r&&i.call(this,a,s)){var l=x(this,o.call(this,a,s),a,s,"mouse");l&&(eu(a.view).on("mousemove.drag",p,eh).on("mouseup.drag",m,eh),em(a.view),ef(a),n=!1,e=a.clientX,t=a.clientY,l("start",a))}}function p(r){if(ep(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}l.mouse("drag",r)}function m(e){eu(e.view).on("mousemove.drag mouseup.drag",null),ey(e.view,n),ep(e),l.mouse("end",e)}function y(e,t){if(i.call(this,e,t)){var n,r,a=e.changedTouches,s=o.call(this,e,t),l=a.length;for(n=0;n<l;++n)(r=x(this,s,e,t,a[n].identifier,a[n]))&&(ef(e),r("start",e,a[n]))}}function g(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=l[r[t].identifier])&&(ep(e),n("drag",e,r[t]))}function v(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<o;++t)(n=l[i[t].identifier])&&(ef(e),n("end",e,i[t]))}function x(e,t,n,r,i,o){var s,d,f,p=u.copy(),m=ec(o||n,t);if(null!=(f=a.call(e,new ev("beforestart",{sourceEvent:n,target:h,identifier:i,active:c,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),r)))return s=f.x-m[0]||0,d=f.y-m[1]||0,function n(o,a,u){var y,g=m;switch(o){case"start":l[i]=n,y=c++;break;case"end":delete l[i],--c;case"drag":m=ec(u||a,t),y=c}p.call(o,e,new ev(o,{sourceEvent:a,subject:f,target:h,identifier:i,active:y,x:m[0]+s,y:m[1]+d,dx:m[0]-g[0],dy:m[1]-g[1],dispatch:p}),r)}}return h.filter=function(e){return arguments.length?(i="function"==typeof e?e:eg(!!e),h):i},h.container=function(e){return arguments.length?(o="function"==typeof e?e:eg(e),h):o},h.subject=function(e){return arguments.length?(a="function"==typeof e?e:eg(e),h):a},h.touchable=function(e){return arguments.length?(s="function"==typeof e?e:eg(!!e),h):s},h.on=function(){var e=u.on.apply(u,arguments);return e===u?h:e},h.clickDistance=function(e){return arguments.length?(d=(e*=1)*e,h):Math.sqrt(d)},h})().clickDistance(k).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:a,snapToGrid:s}=t();c=n?.getBoundingClientRect()||null,f=!1,p=!1,m=e.sourceEvent,0===r&&A(e),o=nN(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:s,containerBounds:c}),u=nW(e.sourceEvent,c)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:a,nodeDragThreshold:h,nodeLookup:p}=t(),y=nN(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:a,containerBounds:c});if(m=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||w&&!p.has(w))&&(f=!0),!f){if(!l&&n&&d&&(l=!0,E()),!d){let t=nW(e.sourceEvent,c),n=t.x-u.x,r=t.y-u.y;Math.sqrt(n*n+r*r)>h&&A(e)}(o.x!==y.xSnapped||o.y!==y.ySnapped)&&s&&d&&(u=nW(e.sourceEvent,c),M(y))}}).on("end",e=>{if(d&&!f&&(l=!1,d=!1,cancelAnimationFrame(a),s.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:a}=t();if(p&&(r(s,!1),p=!1),i||o||!w&&a){let[t,r]=ry({nodeId:w,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),o?.(e.sourceEvent,t,r),w||a?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!y||!rm(t,`.${y}`,v))&&(!g||rm(t,g,v))});h.call(S)},destroy:function(){h?.on(".drag",null)}}}function rv(e,t,n,r,i,o=!1){let a=r.get(e);if(!a)return null;let s="strict"===i?a.internals.handleBounds?.[t]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],l=(n?s?.find(e=>e.id===n):s?.[0])??null;return l&&o?{...l,...n7(a,l,l.position,!0)}:l}function rb(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let rx=()=>!0;function rw(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:a,lib:s,flowId:l,isValidConnection:u=rx,nodeLookup:c}){let h="target"===o,f=t?a.querySelector(`.${s}-flow__handle[data-id="${l}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:m}=nW(e),y=a.elementFromPoint(p,m),g=y?.classList.contains(`${s}-flow__handle`)?y:f,v={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=rb(void 0,g),t=g.getAttribute("data-nodeid"),o=g.getAttribute("data-handleid"),a=g.classList.contains("connectable"),s=g.classList.contains("connectableend");if(!t||!e)return v;let l={source:h?t:r,sourceHandle:h?o:i,target:h?r:t,targetHandle:h?i:o};v.connection=l,v.isValid=a&&s&&(n===d.Strict?h&&"source"===e||!h&&"target"===e:t!==r||o!==i)&&u(l),v.toHandle=rv(t,e,o,c,n,!0)}return v}let rk={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:a,domNode:s,nodeLookup:l,lib:u,autoPanOnConnect:c,flowId:d,panBy:h,cancelConnection:f,onConnectStart:p,onConnect:m,onConnectEnd:g,isValidConnection:v=rx,onReconnectEnd:b,updateConnection:x,getTransform:w,getFromHandle:k,autoPanSpeed:M,dragThreshold:E=1,handleDomNode:A}){let S,P=nI(e.target),T=0,{x:_,y:C}=nW(e),R=rb(o,A),j=s?.getBoundingClientRect(),D=!1;if(!j||!R)return;let L=rv(i,R,r,l,t);if(!L)return;let z=nW(e,j),O=!1,N=null,V=!1,I=null,$={...L,nodeId:i,type:R,position:L.position},F=l.get(i),B={inProgress:!0,isValid:null,from:n7(F,$,y.Left,!0),fromHandle:$,fromPosition:$.position,fromNode:F,to:z,toHandle:null,toPosition:t9[$.position],toNode:null,pointer:z};function W(){D=!0,x(B),p?.(e,{nodeId:i,handleId:r,handleType:R})}function H(e){var o,s;let f;if(!D){let{x:t,y:n}=nW(e),r=t-_,i=n-C;if(!(r*r+i*i>E*E))return;W()}if(!k()||!$)return void U(e);let p=w();S=function(e,t,n,r){let i=[],o=1/0;for(let a of function(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())nx(i,ng(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:s,y:l}=n7(a,n,n.position,!0),u=Math.sqrt(Math.pow(s-e.x,2)+Math.pow(l-e.y,2));u>t||(u<o?(i=[{...n,x:s,y:l}],o=u):u===o&&i.push({...n,x:s,y:l}))}if(!i.length)return null;if(i.length>1){let e="source"===r.type?"target":"source";return i.find(t=>t.type===e)??i[0]}return i[0]}(nA(z=nW(e,j),p,!1,[1,1]),n,l,$),O||(!function e(){if(!c||!j)return;let[t,n]=nf(z,j,M);h({x:t,y:n}),T=requestAnimationFrame(e)}(),O=!0);let m=rw(e,{handle:S,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:a?"target":"source",isValidConnection:v,doc:P,lib:u,flowId:d,nodeLookup:l});I=m.handleDomNode,N=m.connection,o=!!S,s=m.isValid,f=null,s?f=!0:o&&!s&&(f=!1),V=f;let g=l.get(i),b=g?n7(g,$,y.Left,!0):B.from,A={...B,from:b,isValid:V,to:m.toHandle&&V?nS({x:m.toHandle.x,y:m.toHandle.y},p):z,toHandle:m.toHandle,toPosition:V&&m.toHandle?m.toHandle.position:t9[$.position],toNode:m.toHandle?l.get(m.toHandle.nodeId):null,pointer:z};x(A),B=A}function U(e){if(!("touches"in e)||!(e.touches.length>0)){if(D){(S||I)&&N&&V&&m?.(N);let{inProgress:t,...n}=B,r={...n,toPosition:B.toHandle?B.toPosition:null};g?.(e,r),o&&b?.(e,r)}f(),cancelAnimationFrame(T),O=!1,V=!1,N=null,I=null,P.removeEventListener("mousemove",H),P.removeEventListener("mouseup",U),P.removeEventListener("touchmove",H),P.removeEventListener("touchend",U)}}0===E&&W(),P.addEventListener("mousemove",H),P.addEventListener("mouseup",U),P.addEventListener("touchmove",H),P.addEventListener("touchend",U)},isValid:rw};function rM({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=eu(e);return{update:function({translateExtent:e,width:o,height:a,zoomStep:s=1,pannable:l=!0,zoomable:u=!0,inversePan:c=!1}){let d=[0,0],h=t0().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(d=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",l?i=>{let s=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!t)return;let l=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],u=[l[0]-d[0],l[1]-d[1]];d=l;let h=r()*Math.max(s[2],Math.log(s[2]))*(c?-1:1),f={x:s[0]-u[0]*h,y:s[1]-u[1]*h};t.setViewportConstrained({x:f.x,y:f.y,zoom:s[2]},[[0,0],[o,a]],e)}:null).on("zoom.wheel",u?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&n_()?10:1,o=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*s,a=r[2]*Math.pow(2,o*i);t.scaleTo(a)}:null);i.call(h,{})},destroy:function(){i.on("zoom",null)},pointer:ec}}let rE=e=>({x:e.x,y:e.y,zoom:e.k}),rA=({x:e,y:t,zoom:n})=>tH.translate(e,t).scale(n),rS=(e,t)=>e.target.closest(`.${t}`),rP=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),rT=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,r_=(e,t=0,n=rT,r=()=>{})=>{let i="number"==typeof t&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},rC=e=>{let t=e.ctrlKey&&n_()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function rR({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:o,onPanZoomStart:a,onPanZoomEnd:s,onDraggingChange:l}){let u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},c=e.getBoundingClientRect(),d=t0().scaleExtent([t,n]).translateExtent(r),f=eu(e).call(d);v({x:i.x,y:i.y,zoom:nu(i.zoom,t,n)},[[0,0],[c.width,c.height]],r);let p=f.on("wheel.zoom"),m=f.on("dblclick.zoom");function y(e,t){return f?new Promise(n=>{d?.interpolate(t?.interpolate==="linear"?t1:eE).transform(r_(f,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function g(){d.on("zoom",null)}async function v(e,t,n){let r=rA(e),i=d?.constrain()(r,t,n);return i&&await y(i),new Promise(e=>e(i))}return d.wheelDelta(rC),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:c,panOnScrollMode:y,panOnScrollSpeed:v,preventScrolling:b,zoomOnPinch:x,zoomOnScroll:w,zoomOnDoubleClick:k,zoomActivationKeyPressed:M,lib:E,onTransformChange:A,connectionInProgress:S,paneClickDistance:P,selectionOnDrag:T}){r&&!u.isZoomingOrPanning&&g();let _=i&&!M&&!r;d.clickDistance(T?1/0:!nk(P)||P<0?0:P);let C=_?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:u}){return c=>{if(rS(c,t))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();let d=n.property("__zoom").k||1;if(c.ctrlKey&&a){let e=ec(c),t=d*Math.pow(2,rC(c));r.scaleTo(n,t,e,c);return}let f=1===c.deltaMode?20:1,p=i===h.Vertical?0:c.deltaX*f,m=i===h.Horizontal?0:c.deltaY*f;!n_()&&c.shiftKey&&i!==h.Vertical&&(p=c.deltaY*f,m=0),r.translateBy(n,-(p/d)*o,-(m/d)*o,{internal:!0});let y=rE(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(l?.(c,y),e.panScrollTimeout=setTimeout(()=>{u?.(c,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(c,y))}}({zoomPanValues:u,noWheelClassName:e,d3Selection:f,d3Zoom:d,panOnScrollMode:y,panOnScrollSpeed:v,zoomOnPinch:x,onPanZoomStart:a,onPanZoom:o,onPanZoomEnd:s}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let o="wheel"===r.type,a=!t&&o&&!r.ctrlKey,s=rS(r,e);if(r.ctrlKey&&o&&s&&r.preventDefault(),a||s)return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:e,preventScrolling:b,d3ZoomHandler:p});if(f.on("wheel.zoom",C,{passive:!1}),!r){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=rE(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:u,onDraggingChange:l,onPanZoomStart:a});d.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{e.usedRightMouseButton=!!(n&&rP(t,e.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,rE(o.transform))}}({zoomPanValues:u,panOnDrag:c,onPaneContextMenu:!!n,onPanZoom:o,onTransformChange:A});d.on("zoom",t);let r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return a=>{if(!a.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,o&&rP(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&o(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=rE(a.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(a.sourceEvent,t)},150*!!n)}}}({zoomPanValues:u,panOnDrag:c,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:l});d.on("end",r)}let R=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:a,noWheelClassName:s,noPanClassName:l,lib:u,connectionInProgress:c}){return d=>{let h=e||t,f=n&&d.ctrlKey,p="wheel"===d.type;if(1===d.button&&"mousedown"===d.type&&(rS(d,`${u}-flow__node`)||rS(d,`${u}-flow__edge`)))return!0;if(!r&&!h&&!i&&!o&&!n||a||c&&!p||rS(d,s)&&p||rS(d,l)&&(!p||i&&p&&!e)||!n&&d.ctrlKey&&p)return!1;if(!n&&"touchstart"===d.type&&d.touches?.length>1)return d.preventDefault(),!1;if(!h&&!i&&!f&&p||!r&&("mousedown"===d.type||"touchstart"===d.type)||Array.isArray(r)&&!r.includes(d.button)&&"mousedown"===d.type)return!1;let m=Array.isArray(r)&&r.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||p)&&m}}({zoomActivationKeyPressed:M,panOnDrag:c,zoomOnScroll:w,panOnScroll:i,zoomOnDoubleClick:k,zoomOnPinch:x,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:E,connectionInProgress:S});d.filter(R),k?f.on("dblclick.zoom",m):f.on("dblclick.zoom",null)},destroy:g,setViewport:async function e(e,t){let n=rA(e);return await y(n,t),new Promise(e=>e(n))},setViewportConstrained:v,getViewport:function(){let e=f?tU(f.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return f?new Promise(n=>{d?.interpolate(t?.interpolate==="linear"?t1:eE).scaleTo(r_(f,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return f?new Promise(n=>{d?.interpolate(t?.interpolate==="linear"?t1:eE).scaleBy(r_(f,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){d?.scaleExtent(e)},setTranslateExtent:function(e){d?.translateExtent(e)},syncViewport:function(e){if(f){let t=rA(e),n=f.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&d?.transform(f,t,null,{sync:!0})}},setClickDistance:function(e){let t=!nk(e)||e<0?0:e;d?.clickDistance(t)}}}(u=g||(g={})).Line="line",u.Handle="handle"},7618:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]])},7685:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(430),i=n(5391),o=n(8746),a=e=>{var t;let n,a,{present:l,children:u}=e,c=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?h("MOUNT"):"none"===i||t?.display==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(h("ANIMATION_END"),!u.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):r.Children.only(u),h=(0,i.s)(c.ref,(t=d,(a=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(a=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof u||c.isPresent?r.cloneElement(d,{ref:h}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},7692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(2523)._(n(430)).default.createContext(null)},7711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return m},defaultHead:function(){return d}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(2523),a=n(2016),s=n(6366),l=a._(n(430)),u=o._(n(5027)),c=n(4471);function d(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(7367);let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,n,r,i;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,n=new Set,r=new Set,i={},e=>{let o=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?o=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?o=!1:n.add(e.type);break;case"meta":for(let t=0,n=f.length;t<n;t++){let n=f[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?o=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set;("name"!==n||!a)&&r.has(t)?o=!1:(r.add(t),i[n]=r)}}}return o})).reverse().map((e,t)=>{let n=e.key||t;return l.default.cloneElement(e,{key:n})})}let m=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,s.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7750:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r,i=n(430),o=n(8746),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,u]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),c=void 0!==e,d=c?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,r])}return[d,i.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[c,e,l,u])]}Symbol("RADIX:SYNC_STATE")},7765:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(2787);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},7794:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},7828:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},7876:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},7882:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var r=n(6366),i=n(430),o=n(796),a=n(9332),s=n(8220),l=n(5962),u=n(7765),c=n(1283);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class h extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:n,anchorY:o,root:a,pop:s}){let l=(0,i.useId)(),u=(0,i.useRef)(null),p=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,i.useContext)(c.Q),y=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:c,right:d,bottom:h}=p.current;if(t||!1===s||!u.current||!e||!r)return;let f="left"===n?`left: ${c}`:`right: ${d}`,y="bottom"===o?`bottom: ${h}`:`top: ${i}`;u.current.dataset.motionPopId=l;let g=document.createElement("style");m&&(g.nonce=m);let v=a??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
3
- [data-motion-pop-id="${l}"] {
4
- position: absolute !important;
5
- width: ${e}px !important;
6
- height: ${r}px !important;
7
- ${f}px !important;
8
- ${y}px !important;
9
- }
10
- `),()=>{v.contains(g)&&v.removeChild(g)}},[t]),(0,r.jsx)(h,{isPresent:t,childRef:u,sizeRef:p,pop:s,children:!1===s?e:i.cloneElement(e,{ref:y})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:c,anchorX:d,anchorY:h,root:p})=>{let y=(0,a.M)(m),g=(0,i.useId)(),v=!0,b=(0,i.useMemo)(()=>(v=!1,{id:g,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;o&&o()},register:e=>(y.set(e,!1),()=>y.delete(e))}),[n,y,o]);return u&&v&&(b={...b}),(0,i.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[n]),i.useEffect(()=>{n||y.size||!o||o()},[n]),e=(0,r.jsx)(f,{pop:"popLayout"===c,isPresent:n,anchorX:d,anchorY:h,root:p,children:e}),(0,r.jsx)(l.t.Provider,{value:b,children:e})};function m(){return new Map}var y=n(669);let g=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:m})=>{let[b,x]=(0,y.xQ)(d),w=(0,i.useMemo)(()=>v(e),[e]),k=d&&!b?[]:w.map(g),M=(0,i.useRef)(!0),E=(0,i.useRef)(w),A=(0,a.M)(()=>new Map),S=(0,i.useRef)(new Set),[P,T]=(0,i.useState)(w),[_,C]=(0,i.useState)(w);(0,s.E)(()=>{M.current=!1,E.current=w;for(let e=0;e<_.length;e++){let t=g(_[e]);k.includes(t)?(A.delete(t),S.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}},[_,k.length,k.join("-")]);let R=[];if(w!==P){let e=[...w];for(let t=0;t<_.length;t++){let n=_[t],r=g(n);k.includes(r)||(e.splice(t,0,n),R.push(n))}return"wait"===c&&R.length&&(e=R),C(v(e)),T(w),null}let{forceRender:j}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:_.map(e=>{let i=g(e),o=(!d||!!b)&&(w===_||k.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!M.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:m,onExitComplete:o?void 0:()=>{if(S.current.has(i)||(S.current.add(i),!A.has(i)))return;A.set(i,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(j?.(),C(E.current),d&&x?.(),l&&l())},anchorX:h,anchorY:f,children:e},i)})})}},7932:(e,t,n)=>{"use strict";n.d(t,{DX:()=>d,TL:()=>c});var r,i=n(430),o=n(5391),a=n(6366),s=Symbol.for("react.lazy"),l=(r||(r=n.t(i,2)))[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){var t;let n,r=(t=e,(n=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(u(n)&&"function"==typeof l&&(n=l(n._payload)),i.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(u.ref=t?(0,o.t)(t,l):l),i.cloneElement(n,u)}return i.Children.count(n)>1?i.Children.only(null):null})).displayName=`${t}.SlotClone`,n),s=i.forwardRef((e,t)=>{let{children:n,...o}=e;u(n)&&"function"==typeof l&&(n=l(n._payload));let s=i.Children.toArray(n),c=s.find(f);if(c){let e=c.props.children,n=s.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(r,{...o,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,a.jsx)(r,{...o,ref:t,children:n})});return s.displayName=`${e}.Slot`,s}var d=c("Slot"),h=Symbol("radix.slottable");function f(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},8049:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("orbit",[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]])},8072:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},8220:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(430);let i="u">typeof window?r.useLayoutEffect:r.useEffect},8359:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},8482:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},8732:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},8746:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(430),i=globalThis?.document?r.useLayoutEffect:()=>{}},8755:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var r=n(430);n(891);var i=n(7932),o=n(6366),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),a=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s=r.forwardRef((e,t)=>(0,o.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s},8954:()=>{},8957:(e,t,n)=>{"use strict";let r;n.d(t,{bm:()=>tc,UC:()=>ts,VY:()=>tu,hJ:()=>ta,ZL:()=>to,bL:()=>tr,hE:()=>tl,l9:()=>ti});var i,o,a,s,l,u,c,d,h=n(430),f=n(9059),p=n(5391),m=n(4259),y=n(9070),g=n(7750),v=n(1844),b=n(9678),x=n(6366),w="dismissableLayer.update",k=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,u=h.useContext(k),[d,m]=h.useState(null),y=d?.ownerDocument??globalThis?.document,[,g]=h.useState({}),M=(0,p.s)(t,e=>m(e)),S=Array.from(u.layers),[P]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(P),_=d?S.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,R=_>=T,j=function(e,t=globalThis?.document){let n=(0,b.c)(e),r=h.useRef(!1),i=h.useRef(()=>{});return h.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){A("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));R&&!n&&(i?.(e),a?.(e),e.defaultPrevented||s?.())},y),D=function(e,t=globalThis?.document){let n=(0,b.c)(e),r=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!r.current&&A("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(o?.(e),a?.(e),e.defaultPrevented||s?.())},y);return!function(e,t=globalThis?.document){let n=(0,b.c)(e);h.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{_===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},y),h.useEffect(()=>{if(d)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(c=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),E(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=c)}},[d,y,n,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),E())},[d,u]),h.useEffect(()=>{let e=()=>g({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,x.jsx)(v.sG.div,{...l,ref:M,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,f.mK)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,f.mK)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,f.mK)(e.onPointerDownCapture,j.onPointerDownCapture)})});function E(){let e=new CustomEvent(w);document.dispatchEvent(e)}function A(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,v.hO)(i,o):i.dispatchEvent(o)}M.displayName="DismissableLayer",h.forwardRef((e,t)=>{let n=h.useContext(k),r=h.useRef(null),i=(0,p.s)(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,x.jsx)(v.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var S="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},_=h.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=h.useState(null),u=(0,b.c)(i),c=(0,b.c)(o),d=h.useRef(null),f=(0,p.s)(t,e=>l(e)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:j(d.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||j(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&j(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,m.paused]),h.useEffect(()=>{if(s){D.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(S,T);s.addEventListener(S,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(j(r,{select:t}),document.activeElement!==n)return}(C(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&j(s))}return()=>{s.removeEventListener(S,u),setTimeout(()=>{let t=new CustomEvent(P,T);s.addEventListener(P,c),s.dispatchEvent(t),t.defaultPrevented||j(e??document.body,{select:!0}),s.removeEventListener(P,c),D.remove(m)},0)}}},[s,u,c,m]);let y=h.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var o;let t,r=e.currentTarget,[a,s]=[R(t=C(o=r),o),R(t.reverse(),o)];a&&s?e.shiftKey||i!==s?e.shiftKey&&i===a&&(e.preventDefault(),n&&j(s,{select:!0})):(e.preventDefault(),n&&j(a,{select:!0})):i===r&&e.preventDefault()}},[n,r,m.paused]);return(0,x.jsx)(v.sG.div,{tabIndex:-1,...a,ref:f,onKeyDown:y})});function C(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function R(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function j(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var D=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=L(r,e)).unshift(e)},remove(e){r=L(r,e),r[0]?.resume()}});function L(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var z=n(891),O=n(8746),N=h.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=h.useState(!1);(0,O.N)(()=>o(!0),[]);let a=n||i&&globalThis?.document?.body;return a?z.createPortal((0,x.jsx)(v.sG.div,{...r,ref:t}),a):null});N.displayName="Portal";var V=n(7685),I=0;function $(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function B(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var W=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),H="width-before-scroll-bar";function U(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var q="u">typeof window?h.useLayoutEffect:h.useEffect,X=new WeakMap,Y=(void 0===i&&(i={}),(void 0===o&&(o=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=F({async:!0,ssr:!1},i),l),K=function(){},G=h.forwardRef(function(e,t){var n,r,i,o,a=h.useRef(null),s=h.useState({onScrollCapture:K,onWheelCapture:K,onTouchMoveCapture:K}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,y=e.shards,g=e.sideCar,v=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,k=e.as,M=e.gapMode,E=B(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(n=[a,t],r=function(e){return n.forEach(function(t){return U(t,e)})},(i=(0,h.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,q(function(){var e=X.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||U(e,null)}),r.forEach(function(e){t.has(e)||U(e,i)})}X.set(o,n)},[n]),o),S=F(F({},E),l);return h.createElement(h.Fragment,null,m&&h.createElement(g,{sideCar:Y,removeScrollBar:p,shards:y,noRelative:v,noIsolation:b,inert:x,setCallbacks:u,allowPinchZoom:!!w,lockRef:a,gapMode:M}),c?h.cloneElement(h.Children.only(d),F(F({},S),{ref:A})):h.createElement(void 0===k?"div":k,F({},S,{className:f,ref:A}),d))});G.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},G.classNames={fullWidth:H,zeroRight:W};var Z=function(e){var t=e.sideCar,n=B(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,F({},n))};Z.isSideCarExport=!0;var Q=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},J=function(){var e=Q();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ee=function(){var e=J();return function(t){return e(t.styles,t.dynamic),null}},et={left:0,top:0,right:0,gap:0},en=function(e){return parseInt(e||"",10)||0},er=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[en(n),en(r),en(i)]},ei=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return et;var t=er(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eo=ee(),ea="data-scroll-locked",es=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(ea,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(W," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(H," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(W," .").concat(W," {\n right: 0 ").concat(r,";\n }\n \n .").concat(H," .").concat(H," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ea,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},el=function(){var e=parseInt(document.body.getAttribute(ea)||"0",10);return isFinite(e)?e:0},eu=function(){h.useEffect(function(){return document.body.setAttribute(ea,(el()+1).toString()),function(){var e=el()-1;e<=0?document.body.removeAttribute(ea):document.body.setAttribute(ea,e.toString())}},[])},ec=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;eu();var o=h.useMemo(function(){return ei(i)},[i]);return h.createElement(eo,{styles:es(o,!t,i,n?"":"!important")})},ed=!1;if("u">typeof window)try{var eh=Object.defineProperty({},"passive",{get:function(){return ed=!0,!0}});window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch(e){ed=!1}var ef=!!ed&&{passive:!1},ep=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},em=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ey(e,r)){var i=eg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ey=function(e,t){return"v"===e?ep(t,"overflowY"):ep(t,"overflowX")},eg=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ev=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{if(!l)break;var p=eg(e,l),m=p[0],y=p[1]-p[2]-a*m;(m||y)&&ey(e,l)&&(h+=y,f+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},eb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ex=function(e){return[e.deltaX,e.deltaY]},ew=function(e){return e&&"current"in e?e.current:e},ek=0,eM=[];let eE=(u=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(ek++)[0],o=h.useState(ee)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ew),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=eb(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var p=em(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=em(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return ev(m,t,e,"h"===m?l:u,!0)},[]),l=h.useCallback(function(e){if(eM.length&&eM[eM.length-1]===o){var n="deltaY"in e?ex(e):eb(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(ew).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=h.useCallback(function(e){n.current=eb(e),r.current=void 0},[]),d=h.useCallback(function(t){u(t.type,ex(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){u(t.type,eb(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return eM.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ef),document.addEventListener("touchmove",l,ef),document.addEventListener("touchstart",c,ef),function(){eM=eM.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ef),document.removeEventListener("touchmove",l,ef),document.removeEventListener("touchstart",c,ef)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?h.createElement(ec,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Y.useMedium(u),Z);var eA=h.forwardRef(function(e,t){return h.createElement(G,F({},e,{ref:t,sideCar:eE}))});eA.classNames=G.classNames;var eS=new WeakMap,eP=new WeakMap,eT={},e_=0,eC=function(e){return e&&(e.host||eC(e.parentNode))},eR=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eC(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eT[n]||(eT[n]=new WeakMap);var o=eT[n],a=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(eS.get(e)||0)+1,u=(o.get(e)||0)+1;eS.set(e,l),o.set(e,u),a.push(e),1===l&&i&&eP.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),e_++,function(){a.forEach(function(e){var t=eS.get(e)-1,i=o.get(e)-1;eS.set(e,t),o.set(e,i),t||(eP.has(e)||e.removeAttribute(r),eP.delete(e)),i||e.removeAttribute(n)}),--e_||(eS=new WeakMap,eS=new WeakMap,eP=new WeakMap,eT={})}},ej=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),eR(r,i,n,"aria-hidden")):function(){return null}},eD=n(6777),eL="Dialog",[ez,eO]=(0,m.A)(eL),[eN,eV]=ez(eL),eI=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=h.useRef(null),l=h.useRef(null),[u,c]=(0,g.i)({prop:r,defaultProp:i??!1,onChange:o,caller:eL});return(0,x.jsx)(eN,{scope:t,triggerRef:s,contentRef:l,contentId:(0,y.B)(),titleId:(0,y.B)(),descriptionId:(0,y.B)(),open:u,onOpenChange:c,onOpenToggle:h.useCallback(()=>c(e=>!e),[c]),modal:a,children:n})};eI.displayName=eL;var e$="DialogTrigger",eF=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eV(e$,n),o=(0,p.s)(t,i.triggerRef);return(0,x.jsx)(v.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":e9(i.open),...r,ref:o,onClick:(0,f.mK)(e.onClick,i.onOpenToggle)})});eF.displayName=e$;var eB="DialogPortal",[eW,eH]=ez(eB,{forceMount:void 0}),eU=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=eV(eB,t);return(0,x.jsx)(eW,{scope:t,forceMount:n,children:h.Children.map(r,e=>(0,x.jsx)(V.C,{present:n||o.open,children:(0,x.jsx)(N,{asChild:!0,container:i,children:e})}))})};eU.displayName=eB;var eq="DialogOverlay",eX=h.forwardRef((e,t)=>{let n=eH(eq,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eV(eq,e.__scopeDialog);return o.modal?(0,x.jsx)(V.C,{present:r||o.open,children:(0,x.jsx)(eK,{...i,ref:t})}):null});eX.displayName=eq;var eY=(0,eD.TL)("DialogOverlay.RemoveScroll"),eK=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eV(eq,n);return(0,x.jsx)(eA,{as:eY,allowPinchZoom:!0,shards:[i.contentRef],children:(0,x.jsx)(v.sG.div,{"data-state":e9(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eG="DialogContent",eZ=h.forwardRef((e,t)=>{let n=eH(eG,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eV(eG,e.__scopeDialog);return(0,x.jsx)(V.C,{present:r||o.open,children:o.modal?(0,x.jsx)(eQ,{...i,ref:t}):(0,x.jsx)(eJ,{...i,ref:t})})});eZ.displayName=eG;var eQ=h.forwardRef((e,t)=>{let n=eV(eG,e.__scopeDialog),r=h.useRef(null),i=(0,p.s)(t,n.contentRef,r);return h.useEffect(()=>{let e=r.current;if(e)return ej(e)},[]),(0,x.jsx)(e0,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,f.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,f.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,f.mK)(e.onFocusOutside,e=>e.preventDefault())})}),eJ=h.forwardRef((e,t)=>{let n=eV(eG,e.__scopeDialog),r=h.useRef(!1),i=h.useRef(!1);return(0,x.jsx)(e0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),e0=h.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=eV(eG,n),l=h.useRef(null),u=(0,p.s)(t,l);return h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$()),document.body.insertAdjacentElement("beforeend",e[1]??$()),I++,()=>{1===I&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),I--}},[]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,x.jsx)(M,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":e9(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tt,{titleId:s.titleId}),(0,x.jsx)(tn,{contentRef:l,descriptionId:s.descriptionId})]})]})}),e1="DialogTitle",e2=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eV(e1,n);return(0,x.jsx)(v.sG.h2,{id:i.titleId,...r,ref:t})});e2.displayName=e1;var e3="DialogDescription",e5=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eV(e3,n);return(0,x.jsx)(v.sG.p,{id:i.descriptionId,...r,ref:t})});e5.displayName=e3;var e6="DialogClose",e4=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eV(e6,n);return(0,x.jsx)(v.sG.button,{type:"button",...r,ref:t,onClick:(0,f.mK)(e.onClick,()=>i.onOpenChange(!1))})});function e9(e){return e?"open":"closed"}e4.displayName=e6;var e7="DialogTitleWarning",[e8,te]=(0,m.q)(e7,{contentName:eG,titleName:e1,docsSlug:"dialog"}),tt=({titleId:e})=>{let t=te(e7),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
11
-
12
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
13
-
14
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tn=({contentRef:e,descriptionId:t})=>{let n=te("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return h.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tr=eI,ti=eF,to=eU,ta=eX,ts=eZ,tl=e2,tu=e5,tc=e4},8988:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},9059:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"u">typeof window&&window.document&&window.document.createElement},9070:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r,i=n(430),o=n(8746),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},9163:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(430);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:u,...c},d)=>(0,r.createElement)("svg",{ref:d,...a,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:o("lucide",s),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},l)=>(0,r.createElement)(s,{ref:l,iconNode:t,className:o(`lucide-${i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...a}));return n.displayName=i(e),n}},9238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),n(7367);let r=n(5452),i=n(9423),o=n(6011),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:n=!1,priority:c=!1,preload:d=!1,loading:h,className:f,quality:p,width:m,height:y,fill:g=!1,style:v,overrideSrc:b,onLoad:x,onLoadingComplete:w,placeholder:k="empty",blurDataURL:M,fetchPriority:E,decoding:A="async",layout:S,objectFit:P,objectPosition:T,lazyBoundary:_,lazyRoot:C,...R},j){var D;let L,z,O,{imgConf:N,showAltText:V,blurComplete:I,defaultLoader:$}=j,F=N||o.imageConfigDefault;if("allSizes"in F)L=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),n=F.qualities?.sort((e,t)=>e-t);L={...F,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=R.loader||$;delete R.loader,delete R.srcSet;let W="__next_img_default"in B;if(W){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
15
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(v={...v,...e});let n={responsive:"100vw",fill:"100vw"}[S];n&&!t&&(t=n)}let H="",U=l(m),q=l(y);if((D=e)&&"object"==typeof D&&(s(D)||void 0!==D.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(z=t.blurWidth,O=t.blurHeight,M=M||t.blurDataURL,H=t.src,!g)if(U||q){if(U&&!q){let e=U/t.width;q=Math.round(t.height*e)}else if(!U&&q){let e=q/t.height;U=Math.round(t.width*e)}}else U=t.width,q=t.height}let X=!c&&!d&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,X=!1),L.unoptimized&&(n=!0),W&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let Y=l(p),K=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:T}:{},V?{}:{color:"transparent"},v),G=I||"empty"===k?null:"blur"===k?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:U,heightInt:q,blurWidth:z,blurHeight:O,blurDataURL:M||"",objectFit:K.objectFit})}")`:`url("${k}")`,Z=a.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Q=G?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},J=function({config:e,src:t,unoptimized:n,width:i,quality:o,sizes:a,loader:s}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(e){let n=t.indexOf("?");if(-1!==n){let r=new URLSearchParams(t.slice(n+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,n)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},n,r){if(r){let n=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=n.exec(r);)i.push(parseInt(e[2]));if(i.length){let n=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((n,r)=>`${s({config:e,src:t,quality:o,width:n})} ${"w"===u?n:r+1}${u}`).join(", "),src:s({config:e,src:t,quality:o,width:l[c]})}}({config:L,src:e,unoptimized:n,width:U,quality:Y,sizes:t,loader:B}),ee=X?"lazy":h;return{props:{...R,loading:ee,fetchPriority:E,width:U,height:q,decoding:A,className:f,style:{...K,...Q},sizes:J.sizes,srcSet:J.srcSet,src:b||J.src},meta:{unoptimized:n,preload:d||c,placeholder:k,fill:g}}}},9261:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("sun-medium",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]])},9266:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},9332:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(430);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},9350:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},9423:(e,t)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}){let s=r?40*r:e,l=i?40*i:t,u=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},9568:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},9582:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},9613:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},9678:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(430);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9758:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9163).A)("settings-2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]])},9926:(e,t,n)=>{"use strict";var r=n(430),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c}}]);