adam-agent-server 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +4 -5
  2. package/dist/App-6TRGTNZ7.js +13 -0
  3. package/dist/approval-handler-YLO3V75T.js +1 -0
  4. package/dist/audit-diagnostics-MASYIEGZ.js +1 -0
  5. package/dist/audit-manager-LYBXP7U4.js +1 -0
  6. package/dist/bree-engine-AA7EVKTG.js +1 -0
  7. package/dist/{channels-WFC26TED.js → channels-2IL6USWL.js} +1 -1
  8. package/dist/channels-6BEGHNOK.js +1 -0
  9. package/dist/chat-tool-calls-KARPW7PE.js +1 -0
  10. package/dist/chunk-245WE5AF.js +1 -0
  11. package/dist/chunk-2N4EOZZ4.js +9 -0
  12. package/dist/chunk-3BRHWRZ5.js +2 -0
  13. package/dist/chunk-3KNR2F6H.js +3 -0
  14. package/dist/chunk-42V6ZPCS.js +5 -0
  15. package/dist/chunk-6NWIZ3BH.js +220 -0
  16. package/dist/chunk-APAOIZN4.js +114 -0
  17. package/dist/chunk-ASPPM7TQ.js +1 -0
  18. package/dist/chunk-BKNXRSJU.js +4 -0
  19. package/dist/{chunk-MRTJFYPR.js → chunk-BLCNUT53.js} +1 -1
  20. package/dist/chunk-BPXS4QEO.js +1006 -0
  21. package/dist/chunk-CLNYHWZ6.js +5 -0
  22. package/dist/chunk-D3SPXZZY.js +6 -0
  23. package/dist/{chunk-SWP2JC54.js → chunk-DRO3DG7X.js} +1 -1
  24. package/dist/chunk-EVUZ5LH2.js +1 -0
  25. package/dist/chunk-F6U5TMM3.js +5 -0
  26. package/dist/chunk-FD4IKMXV.js +1 -0
  27. package/dist/chunk-GXWB47NF.js +9 -0
  28. package/dist/{chunk-PXGK5H5C.js → chunk-I7LJ4432.js} +1 -1
  29. package/dist/chunk-ICAM2GUU.js +1 -0
  30. package/dist/{chunk-B44X7JAJ.js → chunk-IRUR4DVD.js} +1 -1
  31. package/dist/chunk-ISKCTUI7.js +9 -0
  32. package/dist/{chunk-7T4B2MZ7.js → chunk-J3VYLSJI.js} +1 -1
  33. package/dist/chunk-KJNAORKM.js +15 -0
  34. package/dist/chunk-L47LZYVG.js +21 -0
  35. package/dist/chunk-LU3D53ZV.js +34 -0
  36. package/dist/{chunk-YKYRNTPV.js → chunk-N2OLEUAQ.js} +1 -1
  37. package/dist/{chunk-PHT24MOV.js → chunk-NLTYJUQG.js} +1 -1
  38. package/dist/chunk-NNMQGISW.js +1 -0
  39. package/dist/chunk-NPGZRSGL.js +5 -0
  40. package/dist/chunk-NTVLV7NI.js +1 -0
  41. package/dist/chunk-NUJSTEV4.js +1 -0
  42. package/dist/{chunk-FUWPDXXG.js → chunk-NWGRLNUM.js} +1 -1
  43. package/dist/chunk-OQ3JOTPK.js +1 -0
  44. package/dist/chunk-RBJPQYV3.js +6 -0
  45. package/dist/chunk-SVUP3F4V.js +14 -0
  46. package/dist/chunk-TLMG5W3L.js +4 -0
  47. package/dist/chunk-TLP4ZMJB.js +19 -0
  48. package/dist/{chunk-WQFNB2MQ.js → chunk-TZCMK3UG.js} +6 -6
  49. package/dist/chunk-UFWMUBFH.js +25 -0
  50. package/dist/chunk-VKKDSXMR.js +1 -0
  51. package/dist/chunk-VNXTBIPI.js +31 -0
  52. package/dist/chunk-XF7YHFVR.js +15 -0
  53. package/dist/{chunk-X5V4VMET.js → chunk-XIVFVKMB.js} +2 -2
  54. package/dist/chunk-XYZVMTNN.js +1 -0
  55. package/dist/{chunk-Q2JQFDAK.js → chunk-XZEBYOFR.js} +3 -3
  56. package/dist/chunk-Z6LHGA27.js +1 -0
  57. package/dist/cli.js +10 -10
  58. package/dist/config-VHWLMFIN.js +1 -0
  59. package/dist/{config-GKVOAMY2.js → config-XO7TGH27.js} +1 -1
  60. package/dist/db-WCTOLFAZ.js +1 -0
  61. package/dist/delivery-log-ML4RJOBM.js +1 -0
  62. package/dist/dist-HCSYRPJU.js +1 -0
  63. package/dist/engine-XLH4VL6Y.js +1 -0
  64. package/dist/evolution-audit-HLU7LQL6.js +1 -0
  65. package/dist/execution-tools-SYP3GR6T.js +1 -0
  66. package/dist/{external-api-DOVGA3ML.js → external-api-YMEFVZGG.js} +1 -1
  67. package/dist/index.js +240 -36
  68. package/dist/learner-NJXX2RUL.js +1 -0
  69. package/dist/{logger-WEXZORHP.js → logger-PAMNFWI3.js} +1 -1
  70. package/dist/memories-JDTQM3UN.js +1 -0
  71. package/dist/memory-extractor-5PTMCSOX.js +1 -0
  72. package/dist/memory-gc-BCHTOSXK.js +1 -0
  73. package/dist/memory-service-66EMRJXO.js +1 -0
  74. package/dist/onnxruntime_binding-2BPLI7ZQ.node +0 -0
  75. package/dist/onnxruntime_binding-5J67DTMJ.node +0 -0
  76. package/dist/onnxruntime_binding-7ZZLEQ2F.node +0 -0
  77. package/dist/onnxruntime_binding-KDCXAPN5.node +0 -0
  78. package/dist/onnxruntime_binding-R73P2IQW.node +0 -0
  79. package/dist/outbound-gateway-3INYZDOR.js +1 -0
  80. package/dist/presets-DT3J2ON4.js +1 -0
  81. package/dist/reflection-job-ST4ANCGB.js +23 -0
  82. package/dist/role-presets-3IQKCSVQ.js +1 -0
  83. package/dist/role-workspace-SIHNI6HO.js +1 -0
  84. package/dist/roles-F6AEM6B5.js +1 -0
  85. package/dist/{runtime-QA2DCZYQ.js → runtime-TWLGJSL6.js} +1 -1
  86. package/dist/session-manager-JTQRJI7R.js +1 -0
  87. package/dist/skill-registry-4JT62GEF.js +1 -0
  88. package/dist/target-resolution-PSSBM4LX.js +1 -0
  89. package/dist/task-templates-6G46OVYT.js +1 -0
  90. package/dist/template-dispatch-2K7KV7YS.js +1 -0
  91. package/dist/template-execution-artifacts-NEPSVD2B.js +1 -0
  92. package/dist/trace-context-UR7DI5ME.js +1 -0
  93. package/package.json +34 -14
  94. package/web/dist/assets/{Button-VPwTNGpF.js → Button-fLMsJd5o.js} +1 -1
  95. package/web/dist/assets/{Card-C2N6k4gh.js → Card-cy-gHU0O.js} +1 -1
  96. package/web/dist/assets/{ChannelDetail-DktmpO0A.js → ChannelDetail-CsKBPHkT.js} +1 -1
  97. package/web/dist/assets/Channels-DMutLV9r.js +14 -0
  98. package/web/dist/assets/Chat-DWTs-iOw.js +2 -0
  99. package/web/dist/assets/Dashboard-CoatfhW8.js +1 -0
  100. package/web/dist/assets/{EmptyState-CWS9PJND.js → EmptyState-C5kVDHc7.js} +1 -1
  101. package/web/dist/assets/{EnvVarEditor-D0kGIBcl.js → EnvVarEditor-BvRsHayG.js} +1 -1
  102. package/web/dist/assets/{EventDefDetail-BiXTA6LF.js → EventDefDetail-zuJydp12.js} +1 -1
  103. package/web/dist/assets/Events-nCImjXyr.js +1 -0
  104. package/web/dist/assets/{Evolution-C884p_CE.js → Evolution-Br41g99g.js} +1 -1
  105. package/web/dist/assets/ExtensionDetail-BXlphIkn.js +1 -0
  106. package/web/dist/assets/Extensions-3lhbw0A2.js +1 -0
  107. package/web/dist/assets/{FeatureRequests-Ck0WQnXX.js → FeatureRequests-oaXQNu43.js} +1 -1
  108. package/web/dist/assets/{GoalDetail-DJOyf7By.js → GoalDetail-DRDg1JDv.js} +1 -1
  109. package/web/dist/assets/Goals-DGmKvtGA.js +1 -0
  110. package/web/dist/assets/{Logs-6r7fnBn7.js → Logs-BZKxhdnb.js} +1 -1
  111. package/web/dist/assets/{Memories-CvPaqv5r.js → Memories-DhJJk-KB.js} +1 -1
  112. package/web/dist/assets/{Mistakes-aUhkqHDC.js → Mistakes-DxThj9as.js} +1 -1
  113. package/web/dist/assets/{NotFound-R6tIzhL0.js → NotFound-buXr2gl7.js} +1 -1
  114. package/web/dist/assets/{PageHeader-D9lLjo0N.js → PageHeader-BgNbz3JV.js} +1 -1
  115. package/web/dist/assets/Plugins-BXrsGsXs.js +1 -0
  116. package/web/dist/assets/RoleDetail-rClUsHwS.js +35 -0
  117. package/web/dist/assets/Roles-DH9cRv8h.js +1 -0
  118. package/web/dist/assets/{SectionHeader-BB3H3F_P.js → SectionHeader-CwX6m1f6.js} +1 -1
  119. package/web/dist/assets/Settings-My2lOEWv.js +1 -0
  120. package/web/dist/assets/{Strategies-DUps-2I9.js → Strategies-YLMryJlG.js} +1 -1
  121. package/web/dist/assets/{Switch-B_R_EX9s.js → Switch-PNpjNoGn.js} +1 -1
  122. package/web/dist/assets/{Table-D4lT5uHx.js → Table-BrERwl-F.js} +1 -1
  123. package/web/dist/assets/{Tabs-CwzWpI-7.js → Tabs-CGHmpUAD.js} +1 -1
  124. package/web/dist/assets/TaskDetail-Bkaq0NwW.js +2 -0
  125. package/web/dist/assets/Work-4OcGMu_a.js +1 -0
  126. package/web/dist/assets/api-BkdixMz9.js +1 -0
  127. package/web/dist/assets/{es2015-DCW7LI8d.js → es2015-JqLIWAgH.js} +1 -1
  128. package/web/dist/assets/index-C-e-qpXc.js +12 -0
  129. package/web/dist/assets/index-DGTVc0qD.css +2 -0
  130. package/web/dist/assets/{useIsMobileLayout-D6Tz5o5h.js → useIsMobileLayout-Blj4Mk4K.js} +1 -1
  131. package/web/dist/assets/{usePluginsWithUsage-CSQr03vZ.js → usePluginsWithUsage-Ch9WCFTb.js} +1 -1
  132. package/web/dist/assets/vendor-icons-U4igmrUq.js +1 -0
  133. package/web/dist/assets/{vendor-react-CIkiuNDu.js → vendor-react-Bp_V-Hsf.js} +1 -1
  134. package/web/dist/assets/{vendor-state-CEOsUh-T.js → vendor-state-Zjl_6-V3.js} +1 -1
  135. package/web/dist/index.html +8 -8
  136. package/dist/App-5QZKMPRM.js +0 -13
  137. package/dist/adam-tools-SQD2V4RJ.js +0 -1
  138. package/dist/approval-handler-J6RUTICJ.js +0 -1
  139. package/dist/audit-manager-CWVHQAUI.js +0 -1
  140. package/dist/bree-engine-VGEYMVNP.js +0 -1
  141. package/dist/channels-OOIM62BX.js +0 -1
  142. package/dist/chunk-2BXTT4P2.js +0 -6
  143. package/dist/chunk-47COBMRF.js +0 -1
  144. package/dist/chunk-6JBSBSCL.js +0 -1
  145. package/dist/chunk-6WRZJVQ2.js +0 -1
  146. package/dist/chunk-7IFLU3CY.js +0 -4
  147. package/dist/chunk-AQO6IIHV.js +0 -684
  148. package/dist/chunk-AVM3O74V.js +0 -5
  149. package/dist/chunk-B544JOZM.js +0 -3
  150. package/dist/chunk-DZIEY4CH.js +0 -47
  151. package/dist/chunk-E4WIUUL4.js +0 -27
  152. package/dist/chunk-HDHMNT6D.js +0 -1
  153. package/dist/chunk-JYHOGBCP.js +0 -12
  154. package/dist/chunk-M3RZWIW3.js +0 -50
  155. package/dist/chunk-N4ES7TCL.js +0 -1
  156. package/dist/chunk-NPIXYK5G.js +0 -5
  157. package/dist/chunk-O7XQSONJ.js +0 -5
  158. package/dist/chunk-OZL6VNOR.js +0 -146
  159. package/dist/chunk-Q2ISNOBQ.js +0 -1
  160. package/dist/chunk-QYRI4HYA.js +0 -1
  161. package/dist/chunk-R2WB5BKF.js +0 -7
  162. package/dist/chunk-RMGBR3XZ.js +0 -21
  163. package/dist/chunk-S6OV7Z6K.js +0 -1
  164. package/dist/chunk-SC2DDRYB.js +0 -5
  165. package/dist/chunk-SGIKNIC5.js +0 -49
  166. package/dist/chunk-TI3AKKWZ.js +0 -80
  167. package/dist/chunk-U2LBBBWO.js +0 -8
  168. package/dist/chunk-UXDTFTG5.js +0 -10
  169. package/dist/chunk-Y5FFL6UO.js +0 -5
  170. package/dist/chunk-ZFDULJGB.js +0 -3
  171. package/dist/chunk-ZQ4PNKMQ.js +0 -10
  172. package/dist/config-DRFRLIVN.js +0 -1
  173. package/dist/db-FACSMWEY.js +0 -1
  174. package/dist/delivery-log-JIQMHBJ5.js +0 -1
  175. package/dist/dist-CDWBOTZS.js +0 -1
  176. package/dist/engine-OHYWUUMJ.js +0 -1
  177. package/dist/evolution-audit-M7FSYRQR.js +0 -1
  178. package/dist/learner-OUNQSWN7.js +0 -1
  179. package/dist/memories-ABE7PMQL.js +0 -1
  180. package/dist/memory-extractor-ZX2NJIBV.js +0 -6
  181. package/dist/memory-service-UWER3T2S.js +0 -1
  182. package/dist/onnxruntime_binding-6Q6HXASN.node +0 -0
  183. package/dist/onnxruntime_binding-EKZT2NRK.node +0 -0
  184. package/dist/onnxruntime_binding-P6S7V3CI.node +0 -0
  185. package/dist/onnxruntime_binding-PJNNIIUO.node +0 -0
  186. package/dist/onnxruntime_binding-UN6SPTQK.node +0 -0
  187. package/dist/outbound-gateway-XDCGAXXW.js +0 -1
  188. package/dist/presets-RMW3WO5P.js +0 -1
  189. package/dist/role-presets-FAXQRBII.js +0 -1
  190. package/dist/role-workspace-ISGPO25D.js +0 -1
  191. package/dist/roles-WNKRM6FD.js +0 -1
  192. package/dist/session-manager-SOJXQHHY.js +0 -1
  193. package/dist/task-templates-IS3DJCZB.js +0 -1
  194. package/dist/token-estimator-HMPVGDCN.js +0 -1
  195. package/dist/workflow-executor-LOMKVFPV.js +0 -1
  196. package/web/dist/assets/Channels-ozCXdZMq.js +0 -12
  197. package/web/dist/assets/Chat-CggvtidD.js +0 -2
  198. package/web/dist/assets/Dashboard-z37ZVhzH.js +0 -1
  199. package/web/dist/assets/Events-C4P3jjZd.js +0 -1
  200. package/web/dist/assets/Goals-CDZWDuXR.js +0 -1
  201. package/web/dist/assets/Plugins-CtwoMUoj.js +0 -1
  202. package/web/dist/assets/RoleDetail-B32225ae.js +0 -33
  203. package/web/dist/assets/Roles-CGYsxuq8.js +0 -1
  204. package/web/dist/assets/Settings-D2jrO8-G.js +0 -1
  205. package/web/dist/assets/TaskDetail-DKminIM_.js +0 -2
  206. package/web/dist/assets/Work-uD_6IieV.js +0 -1
  207. package/web/dist/assets/api-D-UzHSDq.js +0 -1
  208. package/web/dist/assets/index-6f2jcj0h.css +0 -2
  209. package/web/dist/assets/index-Bl-2p6d8.js +0 -12
  210. package/web/dist/assets/vendor-icons-jzPiR6xl.js +0 -1
@@ -1,12 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-z37ZVhzH.js","assets/rolldown-runtime-Dw2cE7zH.js","assets/vendor-react-CIkiuNDu.js","assets/vendor-icons-jzPiR6xl.js","assets/vendor-state-CEOsUh-T.js","assets/PageHeader-D9lLjo0N.js","assets/dist-CgGno8kE.js","assets/SectionHeader-BB3H3F_P.js","assets/Card-C2N6k4gh.js","assets/format-BUYXZqDw.js","assets/Chat-CggvtidD.js","assets/Button-VPwTNGpF.js","assets/EmptyState-CWS9PJND.js","assets/api-D-UzHSDq.js","assets/ui-CerQw0jA.js","assets/useIsMobileLayout-D6Tz5o5h.js","assets/Work-uD_6IieV.js","assets/es2015-DCW7LI8d.js","assets/Tabs-CwzWpI-7.js","assets/Switch-B_R_EX9s.js","assets/Goals-CDZWDuXR.js","assets/Table-D4lT5uHx.js","assets/TaskDetail-DKminIM_.js","assets/Plugins-CtwoMUoj.js","assets/usePluginsWithUsage-CSQr03vZ.js","assets/Strategies-DUps-2I9.js","assets/Logs-6r7fnBn7.js","assets/Settings-D2jrO8-G.js","assets/EnvVarEditor-D0kGIBcl.js","assets/Memories-CvPaqv5r.js","assets/Evolution-C884p_CE.js","assets/Channels-ozCXdZMq.js","assets/GoalDetail-DJOyf7By.js","assets/ChannelDetail-DktmpO0A.js","assets/Roles-CGYsxuq8.js","assets/RoleDetail-B32225ae.js","assets/FeatureRequests-Ck0WQnXX.js","assets/Mistakes-aUhkqHDC.js","assets/NotFound-R6tIzhL0.js","assets/Events-C4P3jjZd.js","assets/EventDefDetail-BiXTA6LF.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{A as t,F as n,N as r,P as i,Z as a,b as o,c as s,i as c,it as l,k as u,l as d,lt as f,m as p,n as m,o as h,r as g,t as _,u as v,x as y,z as b}from"./vendor-icons-jzPiR6xl.js";import{a as x,c as S,h as C,i as w,m as T,n as E,o as D,p as O,s as k,t as A,u as j}from"./vendor-react-CIkiuNDu.js";import{n as M,r as N,t as ee}from"./dist-CgGno8kE.js";import{_ as P,a as te,c as ne,d as re,f as F,g as ie,h as ae,i as oe,l as se,m as ce,n as le,o as I,r as ue,s as de,t as L,u as fe,v as R}from"./es2015-DCW7LI8d.js";import{i as z,n as pe,t as me}from"./Button-VPwTNGpF.js";import{n as he}from"./vendor-state-CEOsUh-T.js";import{a as ge,f as _e,l as ve,r as ye,s as be,t as B}from"./api-D-UzHSDq.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var xe=T(),V=e(f(),1),H=A(),Se=class extends V.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`[ErrorBoundary] Uncaught error:`,e,t.componentStack)}render(){return this.state.hasError?(0,H.jsx)(`div`,{className:`flex h-screen items-center justify-center bg-[var(--app-canvas)] p-6`,children:(0,H.jsxs)(`div`,{className:`w-full max-w-md rounded-lg border border-[var(--app-border)] bg-[var(--app-panel)] p-8 text-center`,children:[(0,H.jsx)(`div`,{className:`mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-[var(--app-danger)]/10`,children:(0,H.jsx)(`svg`,{className:`h-6 w-6 text-[var(--app-danger)]`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,H.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`})})}),(0,H.jsx)(`h1`,{className:`mb-2 text-lg font-semibold text-[var(--app-text)]`,children:`Something went wrong`}),(0,H.jsx)(`p`,{className:`mb-6 text-sm text-[var(--app-text-muted)]`,children:`An unexpected error occurred. Try reloading the page.`}),this.state.error&&(0,H.jsx)(`pre`,{className:`mb-6 max-h-32 overflow-auto rounded bg-[var(--app-canvas)] p-3 text-left text-xs text-[var(--app-danger)]`,children:this.state.error.message}),(0,H.jsx)(`button`,{onClick:()=>window.location.reload(),className:`rounded-md bg-[var(--app-accent)] px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-[var(--app-accent)] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-[var(--app-canvas)]`,children:`Reload`})]})}):this.props.children}},Ce=[{to:`/`,icon:n,label:`Dashboard`,description:`Live system overview and operational focus.`},{to:`/chat`,icon:u,label:`Chat`,description:`Start a session, monitor execution, and review responses.`},{to:`/work`,icon:r,label:`Work`,description:`Tasks, automations, and goals in one work surface.`},{to:`/roles`,icon:a,label:`Roles`,description:`Role definitions, prompts, permissions, and health.`},{to:`/events`,icon:_,label:`Events`,description:`Event definitions that trigger automations.`},{to:`/strategies`,icon:i,label:`Strategies`,description:`Evaluate and adjust strategy records.`},{to:`/channels`,icon:o,label:`Channels`,description:`Delivery targets, sessions, and routing rules.`},{to:`/goals`,icon:d,label:`Goals`,description:`Long-running outcomes, budgets, and delivery targets.`},{to:`/feature-requests`,icon:v,label:`Feature Requests`,description:`Unmet needs extracted from chat sessions.`},{to:`/mistakes`,icon:h,label:`Mistakes`,description:`Cross-role failure patterns extracted from audit data.`},{to:`/memories`,icon:l,label:`Memories`,description:`Query memory records and retention patterns.`},{to:`/evolution`,icon:b,label:`Evolution`,description:`Review learning history and rule updates.`},{to:`/plugins`,icon:y,label:`Plugins`,description:`Installed plugins, scope, and activation state.`},{to:`/logs`,icon:s,label:`Logs`,description:`Observe runtime events and system diagnostics.`},{to:`/settings`,icon:p,label:`Settings`,description:`Server, model, and environment configuration.`}],we=[{test:e=>/^\/tasks\/[^/]+$/.test(e),meta:{title:`Task Detail`,description:`Summary, execution, results, and diagnostics for a single task.`,section:`Work`}},{test:e=>/^\/roles\/[^/]+$/.test(e),meta:{title:`Role Detail`,description:`Role configuration, memory, scores, and activity history.`,section:`Identities`}},{test:e=>/^\/channels\/[^/]+$/.test(e),meta:{title:`Channel Detail`,description:`Channel delivery rules, bindings, and recent activity.`,section:`Delivery`}},{test:e=>/^\/goals\/[^/]+$/.test(e),meta:{title:`Goal Detail`,description:`Goal progress, budgets, and related orchestration state.`,section:`Operations`}}];function Te(e){let t=Ce.find(t=>t.to===e);if(t)return{title:t.label,description:t.description,section:{"/":`Overview`,"/chat":`Sessions`,"/work":`Operations`,"/roles":`Identities`,"/events":`Control Plane`,"/strategies":`Decision Engine`,"/channels":`Delivery`,"/goals":`Operations`,"/feature-requests":`Intelligence`,"/mistakes":`Intelligence`,"/memories":`Knowledge`,"/evolution":`Learning`,"/plugins":`Capabilities`,"/logs":`Diagnostics`,"/settings":`Configuration`}[e]??`Control Plane`};let n=we.find(t=>t.test(e));return n?n.meta:{title:`Adam`,description:`Control plane for tasks, roles, channels, and delivery.`,section:`Control Plane`}}var Ee=[`top`,`right`,`bottom`,`left`],De=Math.min,U=Math.max,Oe=Math.round,ke=Math.floor,W=e=>({x:e,y:e}),Ae={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function je(e,t,n){return U(e,De(t,n))}function Me(e,t){return typeof e==`function`?e(t):e}function Ne(e){return e.split(`-`)[0]}function Pe(e){return e.split(`-`)[1]}function Fe(e){return e===`x`?`y`:`x`}function Ie(e){return e===`y`?`height`:`width`}function G(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Le(e){return Fe(G(e))}function Re(e,t,n){n===void 0&&(n=!1);let r=Pe(e),i=Le(e),a=Ie(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=qe(o)),[o,qe(o)]}function ze(e){let t=qe(e);return[Be(e),t,Be(t)]}function Be(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ve=[`left`,`right`],He=[`right`,`left`],Ue=[`top`,`bottom`],We=[`bottom`,`top`];function Ge(e,t,n){switch(e){case`top`:case`bottom`:return n?t?He:Ve:t?Ve:He;case`left`:case`right`:return t?Ue:We;default:return[]}}function Ke(e,t,n,r){let i=Pe(e),a=Ge(Ne(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Be)))),a}function qe(e){let t=Ne(e);return Ae[t]+e.slice(t.length)}function Je(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ye(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Je(e)}function Xe(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ze(e,t,n){let{reference:r,floating:i}=e,a=G(t),o=Le(t),s=Ie(o),c=Ne(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Pe(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Qe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Me(t,e),p=Ye(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Xe(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Xe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $e=50,et=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ze(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<$e&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ze(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},tt=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Me(e,t)||{};if(l==null)return{};let d=Ye(u),f={x:n,y:r},p=Le(i),m=Ie(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=De(d[_],T),D=De(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=je(O,A,k),M=!c.arrow&&Pe(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),nt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Me(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ne(r),_=G(o),v=Ne(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[qe(o)]:ze(o)),x=p!==`none`;!d&&x&&b.push(...Ke(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Re(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==G(t))||T.every(e=>G(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=G(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function rt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function it(e){return Ee.some(t=>e[t]>=0)}var at=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Me(e,t);switch(i){case`referenceHidden`:{let e=rt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:it(e)}}}case`escaped`:{let e=rt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:it(e)}}}default:return{}}}}},ot=new Set([`left`,`top`]);async function st(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ne(n),s=Pe(n),c=G(n)===`y`,l=ot.has(o)?-1:1,u=a&&c?-1:1,d=Me(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ct=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await st(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Me(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=G(Ne(i)),p=Fe(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=je(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=je(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ut=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Me(e,t),u={x:n,y:r},d=G(i),f=Fe(d),p=u[f],m=u[d],h=Me(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ot.has(Ne(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},dt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Me(e,t),u=await o.detectOverflow(t,l),d=Ne(i),f=Pe(i),p=G(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=De(h-u[g],v),x=De(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=U(u.left,0),t=U(u.right,0),n=U(u.top,0),r=U(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:U(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:U(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ft(){return typeof window<`u`}function pt(e){return mt(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){return((mt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function mt(e){return ft()?e instanceof Node||e instanceof K(e).Node:!1}function J(e){return ft()?e instanceof Element||e instanceof K(e).Element:!1}function ht(e){return ft()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function gt(e){return!ft()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function _t(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function vt(e){return/^(table|td|th)$/.test(pt(e))}function yt(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var bt=/transform|translate|scale|rotate|perspective|filter/,xt=/paint|layout|strict|content/,St=e=>!!e&&e!==`none`,Ct;function wt(e){let t=J(e)?Y(e):e;return St(t.transform)||St(t.translate)||St(t.scale)||St(t.rotate)||St(t.perspective)||!Et()&&(St(t.backdropFilter)||St(t.filter))||bt.test(t.willChange||``)||xt.test(t.contain||``)}function Tt(e){let t=kt(e);for(;ht(t)&&!Dt(t);){if(wt(t))return t;if(yt(t))return null;t=kt(t)}return null}function Et(){return Ct??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ct}function Dt(e){return/^(html|body|#document)$/.test(pt(e))}function Y(e){return K(e).getComputedStyle(e)}function Ot(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kt(e){if(pt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||gt(e)&&e.host||q(e);return gt(t)?t.host:t}function At(e){let t=kt(e);return Dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&_t(t)?t:At(t)}function jt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=At(e),i=r===e.ownerDocument?.body,a=K(r);if(i){let e=Mt(a);return t.concat(a,a.visualViewport||[],_t(r)?r:[],e&&n?jt(e):[])}else return t.concat(r,jt(r,[],n))}function Mt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nt(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ht(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Oe(n)!==a||Oe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Pt(e){return J(e)?e:e.contextElement}function Ft(e){let t=Pt(e);if(!ht(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Nt(t),o=(a?Oe(n.width):n.width)/r,s=(a?Oe(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var It=W(0);function Lt(e){let t=K(e);return!Et()||!t.visualViewport?It:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function zt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Pt(e),o=W(1);t&&(r?J(r)&&(o=Ft(r)):o=Ft(e));let s=Rt(a,n,r)?Lt(a):W(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=K(a),t=r&&J(r)?K(r):r,n=e,i=Mt(n);for(;i&&r&&t!==n;){let e=Ft(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=Mt(n)}}return Xe({width:u,height:d,x:c,y:l})}function Bt(e,t){let n=Ot(e).scrollLeft;return t?t.left+n:zt(q(e)).left+n}function Vt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Bt(e,n),y:n.top+t.scrollTop}}function Ht(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=q(r),s=t?yt(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W(1),u=W(0),d=ht(r);if((d||!d&&!a)&&((pt(r)!==`body`||_t(o))&&(c=Ot(r)),d)){let e=zt(r);l=Ft(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Vt(o,c):W(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ut(e){return Array.from(e.getClientRects())}function Wt(e){let t=q(e),n=Ot(e),r=e.ownerDocument.body,i=U(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=U(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Bt(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=U(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Gt=25;function Kt(e,t){let n=K(e),r=q(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Et();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Bt(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Gt&&(a-=o)}else l<=Gt&&(a+=l);return{width:a,height:o,x:s,y:c}}function qt(e,t){let n=zt(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ht(e)?Ft(e):W(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Jt(e,t,n){let r;if(t===`viewport`)r=Kt(e,n);else if(t===`document`)r=Wt(q(e));else if(J(t))r=qt(t,n);else{let n=Lt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xe(r)}function Yt(e,t){let n=kt(e);return n===t||!J(n)||Dt(n)?!1:Y(n).position===`fixed`||Yt(n,t)}function Xt(e,t){let n=t.get(e);if(n)return n;let r=jt(e,[],!1).filter(e=>J(e)&&pt(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?kt(e):e;for(;J(o)&&!Dt(o);){let t=Y(o),n=wt(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||_t(o)&&!n&&Yt(e,o))?r=r.filter(e=>e!==o):i=t,o=kt(o)}return t.set(e,r),r}function Zt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?yt(t)?[]:Xt(t,this._c):[].concat(n),r],o=Jt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Jt(t,a[e],i);s=U(n.top,s),c=De(n.right,c),l=De(n.bottom,l),u=U(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Qt(e){let{width:t,height:n}=Nt(e);return{width:t,height:n}}function $t(e,t,n){let r=ht(t),i=q(t),a=n===`fixed`,o=zt(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W(0);function l(){c.x=Bt(i)}if(r||!r&&!a)if((pt(t)!==`body`||_t(i))&&(s=Ot(t)),r){let e=zt(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Vt(i,s):W(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function en(e){return Y(e).position===`static`}function tn(e,t){if(!ht(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function nn(e,t){let n=K(e);if(yt(e))return n;if(!ht(e)){let t=kt(e);for(;t&&!Dt(t);){if(J(t)&&!en(t))return t;t=kt(t)}return n}let r=tn(e,t);for(;r&&vt(r)&&en(r);)r=tn(r,t);return r&&Dt(r)&&en(r)&&!wt(r)?n:r||Tt(e)||n}var rn=async function(e){let t=this.getOffsetParent||nn,n=this.getDimensions,r=await n(e.floating);return{reference:$t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function an(e){return Y(e).direction===`rtl`}var on={convertOffsetParentRelativeRectToViewportRelativeRect:Ht,getDocumentElement:q,getClippingRect:Zt,getOffsetParent:nn,getElementRects:rn,getClientRects:Ut,getDimensions:Qt,getScale:Ft,isElement:J,isRTL:an};function sn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cn(e,t){let n=null,r,i=q(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ke(d),h=ke(i.clientWidth-(u+f)),g=ke(i.clientHeight-(d+p)),_=ke(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:U(0,De(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!sn(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ln(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Pt(e),u=i||a?[...l?jt(l):[],...t?jt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?cn(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?zt(e):null;c&&g();function g(){let t=zt(e);h&&!sn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var un=ct,dn=lt,fn=nt,pn=dt,mn=at,hn=tt,gn=ut,_n=(e,t,n)=>{let r=new Map,i={platform:on,...n},a={...i.platform,_c:r};return et(e,t,{...i,platform:a})},vn=e(C(),1),yn=typeof document<`u`?V.useLayoutEffect:function(){};function bn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!bn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sn(e,t){let n=xn(e);return Math.round(t*n)/n}function Cn(e){let t=V.useRef(e);return yn(()=>{t.current=e}),t}function wn(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=V.useState(r);bn(f,r)||p(r);let[m,h]=V.useState(null),[g,_]=V.useState(null),v=V.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=V.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=V.useRef(null),C=V.useRef(null),w=V.useRef(u),T=c!=null,E=Cn(c),D=Cn(i),O=Cn(l),k=V.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),_n(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!bn(w.current,t)&&(w.current=t,vn.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);yn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=V.useRef(!1);yn(()=>(A.current=!0,()=>{A.current=!1}),[]),yn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=V.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=V.useMemo(()=>({reference:b,floating:x}),[b,x]),N=V.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Sn(M.floating,u.x),r=Sn(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...xn(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return V.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Tn=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:hn({element:r.current,padding:i}).fn(n):r?hn({element:r,padding:i}).fn(n):{}}}},En=(e,t)=>{let n=un(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dn=(e,t)=>{let n=dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},On=(e,t)=>({fn:gn(e).fn,options:[e,t]}),kn=(e,t)=>{let n=fn(e);return{name:n.name,fn:n.fn,options:[e,t]}},An=(e,t)=>{let n=pn(e);return{name:n.name,fn:n.fn,options:[e,t]}},jn=(e,t)=>{let n=mn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mn=(e,t)=>{let n=Tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nn=`Arrow`,Pn=V.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,H.jsx)(F.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,H.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Pn.displayName=Nn;var Fn=Pn;function In(e){let[t,n]=V.useState(void 0);return se(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ln=`Popper`,[Rn,zn]=P(Ln),[Bn,Vn]=Rn(Ln),Hn=e=>{let{__scopePopper:t,children:n}=e,[r,i]=V.useState(null);return(0,H.jsx)(Bn,{scope:t,anchor:r,onAnchorChange:i,children:n})};Hn.displayName=Ln;var Un=`PopperAnchor`,Wn=V.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Vn(Un,n),o=V.useRef(null),s=z(t,o),c=V.useRef(null);return V.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,H.jsx)(F.div,{...i,ref:s})});Wn.displayName=Un;var Gn=`PopperContent`,[Kn,qn]=Rn(Gn),Jn=V.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Vn(Gn,n),[_,v]=V.useState(null),y=z(t,e=>v(e)),[b,x]=V.useState(null),S=In(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(Qn),altBoundary:O},{refs:A,floatingStyles:j,placement:M,isPositioned:N,middlewareData:ee}=wn({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>ln(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[En({mainAxis:i+w,alignmentAxis:o}),c&&Dn({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?On():void 0,...k}),c&&kn({...k}),An({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Mn({element:b,padding:s}),$n({arrowWidth:C,arrowHeight:w}),f&&jn({strategy:`referenceHidden`,...k})]}),[P,te]=er(M),ne=re(m);se(()=>{N&&ne?.()},[N,ne]);let ie=ee.arrow?.x,ae=ee.arrow?.y,oe=ee.arrow?.centerOffset!==0,[ce,le]=V.useState();return se(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,H.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:N?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(` `),...ee.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,H.jsx)(Kn,{scope:n,placedSide:P,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,H.jsx)(F.div,{"data-side":P,"data-align":te,...h,ref:y,style:{...h.style,animation:N?void 0:`none`}})})})});Jn.displayName=Gn;var Yn=`PopperArrow`,Xn={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Zn=V.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=qn(Yn,n),a=Xn[i.placedSide];return(0,H.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,H.jsx)(Fn,{...r,ref:t,style:{...r.style,display:`block`}})})});Zn.displayName=Yn;function Qn(e){return e!==null}var $n=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=er(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function er(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var tr=Hn,nr=Wn,rr=Jn,ir=Zn,ar=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),or=`VisuallyHidden`,sr=V.forwardRef((e,t)=>(0,H.jsx)(F.span,{...e,ref:t,style:{...ar,...e.style}}));sr.displayName=or;var cr=sr,[lr,ur]=P(`Tooltip`,[zn]),dr=zn(),fr=`TooltipProvider`,pr=700,mr=`tooltip.open`,[hr,gr]=lr(fr),_r=e=>{let{__scopeTooltip:t,delayDuration:n=pr,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=V.useRef(!0),s=V.useRef(!1),c=V.useRef(0);return V.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,H.jsx)(hr,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:V.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:V.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:V.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};_r.displayName=fr;var vr=`Tooltip`,[yr,br]=lr(vr),xr=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=gr(vr,e.__scopeTooltip),l=dr(t),[u,d]=V.useState(null),f=ne(),p=V.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=V.useRef(!1),[_,v]=te({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(mr))):c.onClose(),a?.(e)},caller:vr}),y=V.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=V.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=V.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=V.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return V.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,H.jsx)(tr,{...l,children:(0,H.jsx)(yr,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:V.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:V.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};xr.displayName=vr;var Sr=`TooltipTrigger`,Cr=V.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=br(Sr,n),a=gr(Sr,n),o=dr(n),s=z(t,V.useRef(null),i.onTriggerChange),c=V.useRef(!1),l=V.useRef(!1),u=V.useCallback(()=>c.current=!1,[]);return V.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,H.jsx)(nr,{asChild:!0,...o,children:(0,H.jsx)(F.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:R(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:R(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:R(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:R(e.onBlur,i.onClose),onClick:R(e.onClick,i.onClose)})})});Cr.displayName=Sr;var wr=`TooltipPortal`,[Tr,Er]=lr(wr,{forceMount:void 0}),Dr=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=br(wr,t);return(0,H.jsx)(Tr,{scope:t,forceMount:n,children:(0,H.jsx)(I,{present:n||a.open,children:(0,H.jsx)(de,{asChild:!0,container:i,children:r})})})};Dr.displayName=wr;var Or=`TooltipContent`,kr=V.forwardRef((e,t)=>{let n=Er(Or,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=br(Or,e.__scopeTooltip);return(0,H.jsx)(I,{present:r||o.open,children:o.disableHoverableContent?(0,H.jsx)(Pr,{side:i,...a,ref:t}):(0,H.jsx)(Ar,{side:i,...a,ref:t})})}),Ar=V.forwardRef((e,t)=>{let n=br(Or,e.__scopeTooltip),r=gr(Or,e.__scopeTooltip),i=V.useRef(null),a=z(t,i),[o,s]=V.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=V.useCallback(()=>{s(null),d(!1)},[d]),p=V.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Rr(r,Lr(r,n.getBoundingClientRect())),a=zr(t.getBoundingClientRect());s(Vr([...i,...a])),d(!0)},[d]);return V.useEffect(()=>()=>f(),[f]),V.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),V.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Br(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,H.jsx)(Pr,{...e,ref:a})}),[jr,Mr]=lr(vr,{isInside:!1}),Nr=ae(`TooltipContent`),Pr=V.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=br(Or,n),l=dr(n),{onClose:u}=c;return V.useEffect(()=>(document.addEventListener(mr,u),()=>document.removeEventListener(mr,u)),[u]),V.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,H.jsx)(fe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,H.jsxs)(rr,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,H.jsx)(Nr,{children:r}),(0,H.jsx)(jr,{scope:n,isInside:!0,children:(0,H.jsx)(cr,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});kr.displayName=Or;var Fr=`TooltipArrow`,Ir=V.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=dr(n);return Mr(Fr,n).isInside?null:(0,H.jsx)(ir,{...i,...r,ref:t})});Ir.displayName=Fr;function Lr(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Rr(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function zr(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Br(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Vr(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),Hr(t)}function Hr(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ur=_r,Wr=xr,Gr=Cr,Kr=Dr,qr=kr,Jr=Ur,Yr=Wr,Xr=Gr,Zr=V.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,H.jsx)(Kr,{children:(0,H.jsx)(qr,{ref:r,sideOffset:t,className:M(`surface-panel z-50 max-w-xs overflow-hidden rounded-md px-3 py-1.5 text-xs text-[var(--app-text)] shadow-[var(--app-shadow-md)] animate-in fade-in-0 zoom-in-95`,e),...n})}));Zr.displayName=qr.displayName;function Qr({onNavigate:e}){return(0,H.jsxs)(`aside`,{className:`flex h-full w-64 flex-col border-r border-[var(--app-border)] bg-[var(--app-sidebar-bg)]`,children:[(0,H.jsxs)(`div`,{className:`flex h-16 items-center gap-3 border-b border-[var(--app-border)] px-5`,children:[(0,H.jsx)(`div`,{className:`surface-accent flex h-10 w-10 items-center justify-center rounded-lg text-sm font-bold text-white`,children:`A`}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`div`,{className:`text-sm font-semibold tracking-wide text-[var(--app-text)]`,children:`Adam`}),(0,H.jsx)(`div`,{className:`text-[11px] text-[var(--app-text-subtle)]`,children:`Operator workspace`})]}),(0,H.jsx)(`span`,{className:`ml-auto rounded-full border border-[var(--app-border)] bg-white/[0.04] px-2 py-0.5 font-mono text-[10px] text-[var(--app-text-subtle)]`,children:`v2.0`})]}),(0,H.jsx)(Jr,{delayDuration:300,children:(0,H.jsx)(`nav`,{role:`navigation`,"aria-label":`Main navigation`,className:`flex-1 space-y-1 px-3 py-4`,children:Ce.map(({to:t,icon:n,label:r,description:i})=>(0,H.jsxs)(Yr,{children:[(0,H.jsx)(Xr,{asChild:!0,children:(0,H.jsx)(w,{to:t,end:t===`/`,onClick:e,className:({isActive:e})=>N(`group flex items-center gap-3 rounded-lg px-3 py-2 transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--app-canvas)]`,e?`surface-panel-elevated text-[var(--app-text)]`:`text-[var(--app-text-muted)] hover:bg-white/[0.04] hover:text-[var(--app-text)]`),children:({isActive:e})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(n,{size:16,className:`flex-shrink-0`}),(0,H.jsx)(`span`,{className:`text-sm font-medium`,children:r}),e&&(0,H.jsx)(`span`,{className:`sr-only`,children:`(current page)`})]})})}),(0,H.jsx)(Zr,{side:`right`,children:(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(`div`,{className:`font-medium text-[var(--app-text)]`,children:r}),(0,H.jsx)(`div`,{className:`text-[var(--app-text-muted)]`,children:i})]})})]},t))})})]})}function $r(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var ei=e=>{switch(e){case`success`:return ri;case`info`:return ai;case`warning`:return ii;case`error`:return oi;default:return null}},ti=Array(12).fill(0),ni=({visible:e,className:t})=>V.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},V.createElement(`div`,{className:`sonner-spinner`},ti.map((e,t)=>V.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),ri=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},V.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),ii=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},V.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),ai=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},V.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),oi=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},V.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),si=V.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},V.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),V.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ci=()=>{let[e,t]=V.useState(document.hidden);return V.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},li=1,X=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:li++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],V.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(di(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!V.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||li++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ui=(e,t)=>{let n=t?.id||li++;return X.addToast({title:e,...t,id:n}),n},di=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,fi=Object.assign(ui,{success:X.success,info:X.info,warning:X.warning,error:X.error,custom:X.custom,message:X.message,promise:X.promise,dismiss:X.dismiss,loading:X.loading},{getHistory:()=>X.toasts,getToasts:()=>X.getActiveToasts()});$r(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function pi(e){return e.label!==void 0}var mi=3,hi=`24px`,gi=`16px`,_i=4e3,vi=356,yi=14,bi=45,xi=200;function Z(...e){return e.filter(Boolean).join(` `)}function Si(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Ci=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=V.useState(null),[O,k]=V.useState(null),[A,j]=V.useState(!1),[M,N]=V.useState(!1),[ee,P]=V.useState(!1),[te,ne]=V.useState(!1),[re,F]=V.useState(!1),[ie,ae]=V.useState(0),[oe,se]=V.useState(0),ce=V.useRef(n.duration||y||_i),le=V.useRef(null),I=V.useRef(null),ue=c===0,de=c+1<=o,L=n.type,fe=n.dismissible!==!1,R=n.className||``,z=n.descriptionClassName||``,pe=V.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),me=V.useMemo(()=>n.closeButton??p,[n.closeButton,p]),he=V.useMemo(()=>n.duration||y||_i,[n.duration,y]),ge=V.useRef(0),_e=V.useRef(0),ve=V.useRef(0),ye=V.useRef(null),[be,B]=b.split(`-`),xe=V.useMemo(()=>s.reduce((e,t,n)=>n>=pe?e:e+t.height,0),[s,pe]),H=ci(),Se=n.invert||t,Ce=L===`loading`;_e.current=V.useMemo(()=>pe*x+xe,[pe,xe]),V.useEffect(()=>{ce.current=he},[he]),V.useEffect(()=>{j(!0)},[]),V.useEffect(()=>{let e=I.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),V.useLayoutEffect(()=>{if(!A)return;let e=I.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[A,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let we=V.useCallback(()=>{N(!0),ae(_e.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},xi)},[n,d,a,_e]);V.useEffect(()=>{if(n.promise&&L===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||H?(()=>{if(ve.current<ge.current){let e=new Date().getTime()-ge.current;ce.current-=e}ve.current=new Date().getTime()})():ce.current!==1/0&&(ge.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),we()},ce.current)),()=>clearTimeout(e)},[u,i,n,L,H,we]),V.useEffect(()=>{n.delete&&(we(),n.onDismiss==null||n.onDismiss.call(n,n))},[we,n.delete]);function Te(){return w?.loading?V.createElement(`div`,{className:Z(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":L===`loading`},w.loading):V.createElement(ni,{className:Z(C?.loader,n?.classNames?.loader),visible:L===`loading`})}let Ee=n.icon||w?.[L]||ei(L);return V.createElement(`li`,{tabIndex:0,ref:I,className:Z(_,R,C?.toast,n?.classNames?.toast,C?.default,C?.[L],n?.classNames?.[L]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":A,"data-promise":!!n.promise,"data-swiped":re,"data-removed":M,"data-visible":de,"data-y-position":be,"data-x-position":B,"data-index":c,"data-front":ue,"data-swiping":ee,"data-dismissible":fe,"data-type":L,"data-invert":Se,"data-swipe-out":te,"data-swipe-direction":O,"data-expanded":!!(u||S&&A),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${M?ie:_e.current}px`,"--initial-height":S?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{P(!1),D(null),ye.current=null},onPointerDown:e=>{e.button!==2&&(Ce||!fe||(le.current=new Date,ae(_e.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(P(!0),ye.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(te||!fe)return;ye.current=null;let e=Number(I.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(I.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-le.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=bi||a>.11){ae(_e.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),we(),ne(!0);return}else{var o,s;(o=I.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=I.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}F(!1),P(!1),D(null)},onPointerMove:t=>{var n,r;if(!ye.current||!fe||window.getSelection()?.toString().length>0)return;let i=t.clientY-ye.current.y,a=t.clientX-ye.current.x,o=e.swipeDirections??Si(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(E===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&F(!0),(n=I.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=I.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},me&&!n.jsx&&L!==`loading`?V.createElement(`button`,{"aria-label":T,"data-disabled":Ce,"data-close-button":!0,onClick:Ce||!fe?()=>{}:()=>{we(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Z(C?.closeButton,n?.classNames?.closeButton)},w?.close??si):null,(L||n.icon||n.promise)&&n.icon!==null&&(w?.[L]!==null||n.icon)?V.createElement(`div`,{"data-icon":``,className:Z(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Te():null,n.type===`loading`?null:Ee):null,V.createElement(`div`,{"data-content":``,className:Z(C?.content,n?.classNames?.content)},V.createElement(`div`,{"data-title":``,className:Z(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?V.createElement(`div`,{"data-description":``,className:Z(v,z,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),V.isValidElement(n.cancel)?n.cancel:n.cancel&&pi(n.cancel)?V.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{pi(n.cancel)&&fe&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),we())},className:Z(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,V.isValidElement(n.action)?n.action:n.action&&pi(n.action)?V.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{pi(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&we())},className:Z(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function wi(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Ti(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?gi:hi;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Ei=V.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=mi,toastOptions:g,dir:_=wi(),gap:v=yi,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=V.useState([]),C=V.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=V.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=V.useState([]),[D,O]=V.useState(!1),[k,A]=V.useState(!1),[j,M]=V.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),N=V.useRef(null),ee=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),P=V.useRef(null),te=V.useRef(!1),ne=V.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||X.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return V.useEffect(()=>X.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{vn.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),V.useEffect(()=>{if(d!==`system`){M(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?M(`dark`):M(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{M(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{M(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),V.useEffect(()=>{x.length<=1&&O(!1)},[x]),V.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=N.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===N.current||N.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),V.useEffect(()=>{if(N.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,te.current=!1)}},[N.current]),V.createElement(`section`,{ref:t,"aria-label":`${b} ${ee}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?V.createElement(`ol`,{key:t,dir:_===`auto`?wi():_,tabIndex:-1,ref:N,className:c,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${vi}px`,"--gap":`${v}px`,...m,...Ti(l,u)},onBlur:e=>{te.current&&!e.currentTarget.contains(e.relatedTarget)&&(te.current=!1,P.current&&=(P.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te.current||(te.current=!0,P.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||A(!0)},onPointerUp:()=>A(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>V.createElement(Ci,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:k,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))}),Di=({...e})=>(0,H.jsx)(Ei,{theme:`dark`,className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-[var(--app-panel)] group-[.toaster]:text-[var(--app-text)] group-[.toaster]:border-[var(--app-border)] group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-[var(--app-text-muted)]`,actionButton:`group-[.toast]:bg-[var(--app-accent)] group-[.toast]:text-white`,cancelButton:`group-[.toast]:bg-[var(--app-panel-elevated)] group-[.toast]:text-[var(--app-text)]`}},...e}),Oi=500,ki=he((e,t)=>({tasks:[],goals:[],strategies:[],templates:[],readiness:null,stats:{activeTasks:0,queuedTasks:0,totalCostToday:0},logs:[],configVersion:0,pendingPlanApproval:null,planTimeoutNotice:null,roles:[],executionPool:{active:0,max:5,queued:0},deliveryLog:[],wsConnected:!1,_ws:null,_wsReconnectDelay:1e3,fetchTasks:async t=>{let n=new URLSearchParams({limit:`100`});t&&n.set(`status`,t),e({tasks:(await B(`/tasks?${n}`)).tasks})},fetchGoals:async()=>{e({goals:(await B(`/goals`)).goals})},updateGoal:async(t,n)=>{let r=await B(`/goals/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n)});return e(e=>({goals:e.goals.map(e=>e.id===t?r.goal:e)})),r.goal},deleteGoal:async t=>{await B(`/goals/${t}`,{method:`DELETE`}),e(e=>({goals:e.goals.filter(e=>e.id!==t)}))},fetchStrategies:async()=>{e({strategies:(await B(`/strategies`)).strategies})},fetchTemplates:async()=>{e({templates:(await B(`/task-templates`)).templates})},fetchExecutionPool:async()=>{try{e({executionPool:(await B(`/stats`)).executionPool})}catch{}},fetchReadiness:async()=>{try{e({readiness:await(await fetch(`/readyz`)).json()})}catch{e({readiness:{status:`not_ready`,checks:{database:!1,config:!1}}})}},connectWebSocket:()=>{let n=t()._ws;if(n&&n.readyState<=1)return;let r=window.location.protocol===`https:`?`wss:`:`ws:`,i=ge(),a=new URL(`${r}//${window.location.host}/events`);i&&a.searchParams.set(`api_key`,i);let o=new WebSocket(a.toString()),s=!1;o.onopen=()=>{s=!0,e({wsConnected:!0,_ws:o,_wsReconnectDelay:1e3})},o.onclose=async()=>{if(!s&&i&&!await _e(i).catch(()=>!0)){ye(),be();return}let n=t()._wsReconnectDelay;e({wsConnected:!1,_ws:null,_wsReconnectDelay:Math.min(n*2,1e4)}),setTimeout(()=>{t().connectWebSocket()},n)},o.onerror=()=>{o.close()},o.onmessage=n=>{try{Ai(JSON.parse(n.data),e,t)}catch{}},e({_ws:o})},disconnectWebSocket:()=>{let n=t()._ws;n&&(n.close(),e({_ws:null,wsConnected:!1}))},addLog:t=>{e(e=>({logs:[...e.logs.slice(-(Oi-1)),t]}))},addDeliveryLogEntry:t=>{e(e=>({deliveryLog:[t,...e.deliveryLog].slice(0,100)}))},approvePlan:async(t,n,r)=>{await B(`/tasks/${t}/approve-plan`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({planId:n,decision:`allow`,approvalType:r})}),e({pendingPlanApproval:null})},denyPlan:async(t,n,r)=>{await B(`/tasks/${t}/approve-plan`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({planId:n,decision:`deny`,reason:r??`rejected by user`})}),e({pendingPlanApproval:null})},clearPlanTimeoutNotice:()=>{e({planTimeoutNotice:null})},fetchRoles:async()=>{let{roles:t}=await B(`/roles`);e({roles:t})},createRole:async t=>{let n=await B(`/roles`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});return e(e=>({roles:[...e.roles,n.role]})),n.role},updateRole:async(t,n)=>{let r=await B(`/roles/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n)});return e(e=>({roles:e.roles.map(e=>e.id===t?{...e,...r.role}:e)})),r.role},deleteRole:async t=>{await B(`/roles/${t}`,{method:`DELETE`}),e(e=>({roles:e.roles.filter(e=>e.id!==t)}))}}));function Ai(e,t,n){switch(e.type){case`task_status_change`:t(t=>({tasks:t.tasks.map(t=>t.id===e.taskId?{...t,status:e.newStatus}:t)}));break;case`stats_update`:t(()=>({stats:{activeTasks:e.activeTasks,queuedTasks:e.queuedTasks,totalCostToday:e.totalCostToday}}));break;case`log_event`:n().addLog(e);break;case`goal_status_change`:t(t=>({goals:t.goals.map(t=>t.id===e.goalId?{...t,status:e.newStatus}:t)}));break;case`config_changed`:t(e=>({configVersion:e.configVersion+1}));break;case`execution_slot_change`:t(()=>({executionPool:{active:e.active,max:e.max,queued:e.queued}}));break;case`plan_approval_request`:t(()=>({pendingPlanApproval:{taskId:e.taskId,planId:e.planId,plan:e.plan}}));break;case`plan_approval_decision`:n().pendingPlanApproval?.planId===e.planId&&t(()=>({pendingPlanApproval:null}));break;case`delivery_status_change`:n().addDeliveryLogEntry(e);break}}function ji(){let[e,n]=(0,V.useState)(!1),r=j(),i=ki(e=>e.wsConnected),a=ki(e=>e.connectWebSocket),o=ki(e=>e.fetchReadiness),s=Te(r.pathname);(0,V.useEffect)(()=>{a(),o();let e=setInterval(o,3e4);return()=>clearInterval(e)},[a,o]);let l=(0,V.useCallback)(()=>n(!1),[]);return(0,H.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,H.jsx)(`a`,{href:`#main-content`,className:`sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-[var(--app-accent)] focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-white focus:outline-none`,children:`Skip to content`}),(0,H.jsx)(`div`,{className:`hidden lg:block`,children:(0,H.jsx)(Qr,{})}),e&&(0,H.jsxs)(`div`,{className:`fixed inset-0 z-40 lg:hidden`,children:[(0,H.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:l}),(0,H.jsx)(`div`,{className:`relative z-50 h-full w-60`,children:(0,H.jsx)(Qr,{onNavigate:l})})]}),(0,H.jsxs)(`div`,{className:`flex flex-1 flex-col overflow-hidden`,children:[(0,H.jsx)(`header`,{className:`border-b border-[var(--app-border)] bg-[var(--app-header-bg)] px-4 py-2.5 lg:px-6`,children:(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(`button`,{className:`text-[var(--app-text-subtle)] transition-colors hover:text-[var(--app-text)] lg:hidden`,onClick:()=>n(!e),"aria-label":e?`Close menu`:`Open menu`,children:e?(0,H.jsx)(m,{size:20}):(0,H.jsx)(t,{size:20})}),(0,H.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,H.jsxs)(`p`,{className:`text-sm text-[var(--app-text-muted)]`,children:[(0,H.jsx)(`span`,{className:`text-[var(--app-text)]`,children:s.section}),(0,H.jsx)(`span`,{className:`mx-1.5 text-[var(--app-text-subtle)]`,children:`/`}),(0,H.jsx)(`span`,{className:`font-medium text-[var(--app-text)]`,children:s.title})]})}),(0,H.jsx)(`div`,{className:`surface-panel-muted flex items-center gap-2 rounded-full px-3 py-1 text-xs`,"aria-live":`polite`,children:i?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(g,{size:14,className:`text-[var(--app-success)]`}),(0,H.jsx)(`span`,{className:`text-[var(--app-text)]`,children:`Connected`})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(c,{size:14,className:`text-[var(--app-danger)]`}),(0,H.jsx)(`span`,{className:`text-[var(--app-text)]`,children:`Disconnected`})]})})]})}),(0,H.jsx)(`main`,{id:`main-content`,role:`main`,className:`flex-1 overflow-y-auto p-4 lg:p-5`,children:(0,H.jsx)(x,{})})]}),(0,H.jsx)(Di,{position:`bottom-center`})]})}var Mi=`Dialog`,[Ni,Pi]=P(Mi),[Fi,Q]=Ni(Mi),Ii=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=V.useRef(null),c=V.useRef(null),[l,u]=te({prop:r,defaultProp:i??!1,onChange:a,caller:Mi});return(0,H.jsx)(Fi,{scope:t,triggerRef:s,contentRef:c,contentId:ne(),titleId:ne(),descriptionId:ne(),open:l,onOpenChange:u,onOpenToggle:V.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};Ii.displayName=Mi;var Li=`DialogTrigger`,Ri=V.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Q(Li,n),a=z(t,i.triggerRef);return(0,H.jsx)(F.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ia(i.open),...r,ref:a,onClick:R(e.onClick,i.onOpenToggle)})});Ri.displayName=Li;var zi=`DialogPortal`,[Bi,Vi]=Ni(zi,{forceMount:void 0}),Hi=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Q(zi,t);return(0,H.jsx)(Bi,{scope:t,forceMount:n,children:V.Children.map(r,e=>(0,H.jsx)(I,{present:n||a.open,children:(0,H.jsx)(de,{asChild:!0,container:i,children:e})}))})};Hi.displayName=zi;var Ui=`DialogOverlay`,Wi=V.forwardRef((e,t)=>{let n=Vi(Ui,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Q(Ui,e.__scopeDialog);return a.modal?(0,H.jsx)(I,{present:r||a.open,children:(0,H.jsx)(Ki,{...i,ref:t})}):null});Wi.displayName=Ui;var Gi=ce(`DialogOverlay.RemoveScroll`),Ki=V.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Q(Ui,n);return(0,H.jsx)(le,{as:Gi,allowPinchZoom:!0,shards:[i.contentRef],children:(0,H.jsx)(F.div,{"data-state":ia(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),qi=`DialogContent`,Ji=V.forwardRef((e,t)=>{let n=Vi(qi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Q(qi,e.__scopeDialog);return(0,H.jsx)(I,{present:r||a.open,children:a.modal?(0,H.jsx)(Yi,{...i,ref:t}):(0,H.jsx)(Xi,{...i,ref:t})})});Ji.displayName=qi;var Yi=V.forwardRef((e,t)=>{let n=Q(qi,e.__scopeDialog),r=V.useRef(null),i=z(t,n.contentRef,r);return V.useEffect(()=>{let e=r.current;if(e)return L(e)},[]),(0,H.jsx)(Zi,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())})}),Xi=V.forwardRef((e,t)=>{let n=Q(qi,e.__scopeDialog),r=V.useRef(!1),i=V.useRef(!1);return(0,H.jsx)(Zi,{...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,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Zi=V.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Q(qi,n),c=V.useRef(null),l=z(t,c);return ue(),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(oe,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,H.jsx)(fe,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ia(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ca,{titleId:s.titleId}),(0,H.jsx)(ua,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Qi=`DialogTitle`,$i=V.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Q(Qi,n);return(0,H.jsx)(F.h2,{id:i.titleId,...r,ref:t})});$i.displayName=Qi;var ea=`DialogDescription`,ta=V.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Q(ea,n);return(0,H.jsx)(F.p,{id:i.descriptionId,...r,ref:t})});ta.displayName=ea;var na=`DialogClose`,ra=V.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Q(na,n);return(0,H.jsx)(F.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})});ra.displayName=na;function ia(e){return e?`open`:`closed`}var aa=`DialogTitleWarning`,[oa,sa]=ie(aa,{contentName:qi,titleName:Qi,docsSlug:`dialog`}),ca=({titleId:e})=>{let t=sa(aa),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3
-
4
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
5
-
6
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return V.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},la=`DialogDescriptionWarning`,ua=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sa(la).contentName}}.`;return V.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},da=Ii,fa=Ri,pa=Hi,ma=Wi,ha=Ji,ga=$i,_a=ta,va=ra,ya=`AlertDialog`,[ba,xa]=P(ya,[Pi]),Sa=Pi(),Ca=e=>{let{__scopeAlertDialog:t,...n}=e,r=Sa(t);return(0,H.jsx)(da,{...r,...n,modal:!0})};Ca.displayName=ya;var wa=`AlertDialogTrigger`,Ta=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=Sa(n);return(0,H.jsx)(fa,{...i,...r,ref:t})});Ta.displayName=wa;var Ea=`AlertDialogPortal`,Da=e=>{let{__scopeAlertDialog:t,...n}=e,r=Sa(t);return(0,H.jsx)(pa,{...r,...n})};Da.displayName=Ea;var Oa=`AlertDialogOverlay`,ka=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=Sa(n);return(0,H.jsx)(ma,{...i,...r,ref:t})});ka.displayName=Oa;var Aa=`AlertDialogContent`,[ja,Ma]=ba(Aa),Na=ae(`AlertDialogContent`),Pa=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=Sa(n),o=V.useRef(null),s=z(t,o),c=V.useRef(null);return(0,H.jsx)(oa,{contentName:Aa,titleName:Fa,docsSlug:`alert-dialog`,children:(0,H.jsx)(ja,{scope:n,cancelRef:c,children:(0,H.jsxs)(ha,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:R(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,H.jsx)(Na,{children:r}),(0,H.jsx)(Ua,{contentRef:o})]})})})});Pa.displayName=Aa;var Fa=`AlertDialogTitle`,Ia=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=Sa(n);return(0,H.jsx)(ga,{...i,...r,ref:t})});Ia.displayName=Fa;var La=`AlertDialogDescription`,Ra=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=Sa(n);return(0,H.jsx)(_a,{...i,...r,ref:t})});Ra.displayName=La;var za=`AlertDialogAction`,Ba=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=Sa(n);return(0,H.jsx)(va,{...i,...r,ref:t})});Ba.displayName=za;var Va=`AlertDialogCancel`,Ha=V.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Ma(Va,n),a=Sa(n),o=z(t,i);return(0,H.jsx)(va,{...a,...r,ref:o})});Ha.displayName=Va;var Ua=({contentRef:e})=>{let t=`\`${Aa}\` requires a description for the component to be accessible for screen reader users.
7
-
8
- You can add a description to the \`${Aa}\` by passing a \`${La}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
9
-
10
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Aa}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
11
-
12
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return V.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Wa=Ca,Ga=Ta,Ka=Da,qa=ka,Ja=Pa,Ya=Ba,Xa=Ha,Za=Ia,Qa=Ra,$a=Wa,eo=Ga,to=Ka,no=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(qa,{ref:n,className:M(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));no.displayName=qa.displayName;var ro=V.forwardRef(({className:e,...t},n)=>(0,H.jsxs)(to,{children:[(0,H.jsx)(no,{}),(0,H.jsx)(Ja,{ref:n,className:M(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--app-border)] bg-[var(--app-panel)] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));ro.displayName=Ja.displayName;var io=({className:e,...t})=>(0,H.jsx)(`div`,{className:M(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});io.displayName=`AlertDialogHeader`;var ao=({className:e,...t})=>(0,H.jsx)(`div`,{className:M(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});ao.displayName=`AlertDialogFooter`;var oo=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(Za,{ref:n,className:M(`text-lg font-semibold text-[var(--app-text)]`,e),...t}));oo.displayName=Za.displayName;var so=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(Qa,{ref:n,className:M(`text-sm text-[var(--app-text-muted)]`,e),...t}));so.displayName=Qa.displayName;var co=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(Ya,{ref:n,className:M(pe(),e),...t}));co.displayName=Ya.displayName;var lo=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(Xa,{ref:n,className:M(pe({variant:`ghost`}),`mt-2 sm:mt-0`,e),...t}));lo.displayName=Xa.displayName;var uo=ee(`inline-flex items-center rounded-md px-2 py-0.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2`,{variants:{variant:{default:`bg-[var(--app-panel-muted)] text-[var(--app-text)]`,secondary:`bg-[var(--app-panel-elevated)] text-[var(--app-text-muted)]`,destructive:`bg-[var(--app-danger-soft-bg)] text-[var(--app-danger)] border border-[var(--app-danger-soft-border)]`,outline:`border border-[var(--app-border)] text-[var(--app-text)]`,success:`bg-[var(--app-success-soft-bg)] text-[var(--app-success)] border border-[var(--app-success-soft-border)]`,warning:`bg-[var(--app-warning-soft-bg)] text-[var(--app-warning)] border border-[var(--app-warning-soft-border)]`,info:`bg-[var(--app-accent-soft-bg)] text-[var(--app-accent)] border border-[var(--app-accent-soft-border)]`,muted:`bg-[var(--app-panel-elevated)] text-[var(--app-text-subtle)]`}},defaultVariants:{variant:`default`}});function fo({className:e,variant:t=`default`,...n}){return(0,H.jsx)(`span`,{className:M(uo({variant:t}),e),...n})}function po(e){switch(e){case`blocked`:return`warning`;case`completed`:case`ready`:case`idle`:return`success`;case`running`:case`busy`:case`executing`:case`planning`:case`evaluating`:case`replanning`:return`info`;case`pending`:case`queued`:case`paused`:case`degraded`:return`warning`;case`failed`:case`cancelled`:case`dead`:case`not_ready`:return`destructive`;default:return`muted`}}var mo=300;function ho(e){return e===`high`?`destructive`:e===`medium`?`outline`:`secondary`}function go(){let e=ki(e=>e.pendingPlanApproval),t=ki(e=>e.approvePlan),n=ki(e=>e.denyPlan),r=ki(e=>e.planTimeoutNotice),i=ki(e=>e.clearPlanTimeoutNotice),[a,o]=(0,V.useState)(mo),[s,c]=(0,V.useState)(!1);(0,V.useEffect)(()=>{if(!e){o(mo),c(!1);return}let t=setInterval(()=>{o(e=>e<=1?(clearInterval(t),0):e-1)},1e3);return()=>clearInterval(t)},[e?.planId]),(0,V.useEffect)(()=>{a===0&&e&&!s&&(c(!0),n(e.taskId,e.planId,`timeout`).catch(()=>{}))},[a,e,s,n]);let l=async n=>{if(e){c(!0);try{await t(e.taskId,e.planId,n)}catch{c(!1)}}},u=async()=>{if(e){c(!0);try{await n(e.taskId,e.planId)}catch{c(!1)}}},d=e?.plan;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)($a,{open:!!e,children:(0,H.jsxs)(ro,{className:`max-w-2xl max-h-[80vh] overflow-y-auto`,children:[(0,H.jsxs)(io,{children:[(0,H.jsxs)(oo,{className:`flex items-center gap-2`,children:[`Execution Plan — Approval Required`,d&&(0,H.jsxs)(fo,{variant:ho(d.overallRisk),children:[d.overallRisk.toUpperCase(),` RISK`]})]}),(0,H.jsxs)(so,{className:`text-xs text-[var(--app-text-muted)]`,children:[`Plan `,e?.planId,` | Task `,e?.taskId,` | `,a,`s remaining`]})]}),d&&(0,H.jsxs)(`div`,{className:`space-y-4 py-2`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h4`,{className:`text-sm font-medium text-[var(--app-text)] mb-2`,children:[`Plan Steps (`,d.steps.length,`)`]}),(0,H.jsx)(`div`,{className:`space-y-2`,children:d.steps.map(e=>(0,H.jsxs)(`div`,{className:`rounded-md border border-[var(--app-border)] bg-[var(--app-panel-elevated)]/50 p-2`,children:[(0,H.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsxs)(`span`,{className:`text-xs font-mono text-[var(--app-text-subtle)]`,children:[`#`,e.index]}),(0,H.jsx)(`span`,{className:`text-sm text-[var(--app-text)]`,children:e.description})]}),(0,H.jsx)(fo,{variant:ho(e.riskLevel),children:e.riskLevel})]}),(0,H.jsxs)(`div`,{className:`mt-1 text-xs text-[var(--app-text-muted)]`,children:[`Tools: `,e.toolsNeeded.join(`, `)||`none`]})]},e.index))})]}),Object.keys(d.requiredPermissions).length>0&&(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h4`,{className:`text-sm font-medium text-[var(--app-text)] mb-1`,children:`Required Permissions`}),(0,H.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Object.keys(d.requiredPermissions).map(e=>(0,H.jsx)(fo,{variant:`secondary`,children:e},e))})]})]}),(0,H.jsxs)(ao,{children:[(0,H.jsx)(me,{variant:`destructive`,onClick:u,disabled:s,children:`Deny`}),(0,H.jsx)(me,{variant:`outline`,onClick:()=>l(`permanent`),disabled:s,children:`Allow Permanent`}),(0,H.jsx)(me,{onClick:()=>l(`once`),disabled:s,children:`Allow Once`})]})]})}),r&&(0,H.jsxs)(`div`,{className:`fixed bottom-4 right-4 z-50 rounded-md border border-[var(--app-warning-soft-border)] bg-[var(--app-warning-soft-bg)] px-4 py-2 text-sm text-[var(--app-warning-soft-text)] shadow-[var(--app-shadow-lg)]`,children:[r,(0,H.jsx)(`button`,{className:`ml-3 text-[var(--app-warning)] hover:text-[var(--app-warning-soft-text)]`,onClick:i,children:`Dismiss`})]})]})}function $(e){return(0,V.lazy)(()=>e().catch(e=>{let t=`chunk-reload-`+window.location.pathname;if(!sessionStorage.getItem(t))return sessionStorage.setItem(t,`1`),window.location.reload(),new Promise(()=>{});throw sessionStorage.removeItem(t),e}))}function _o(){let[e,t]=(0,V.useState)(``),[n,r]=(0,V.useState)(null),[i,a]=(0,V.useState)(!1),o=new URLSearchParams(window.location.search).get(`returnTo`)??`/ui`;async function s(t){t.preventDefault();let n=e.trim();if(!n){r(`API key is required`);return}r(null),a(!0);try{if(!await _e(n)){r(`Invalid API key`),a(!1);return}ve(n),window.location.href=o}catch(e){r(e instanceof Error?e.message:`Verification failed`),a(!1)}}return(0,H.jsx)(`div`,{className:`flex h-screen items-center justify-center bg-[var(--app-bg)] text-[var(--app-fg)]`,children:(0,H.jsxs)(`form`,{onSubmit:s,className:`w-full max-w-md rounded-lg border border-[var(--app-border)] bg-[var(--app-panel)] p-8 shadow-lg`,children:[(0,H.jsx)(`h1`,{className:`mb-2 text-2xl font-semibold`,children:`Adam — Sign in`}),(0,H.jsx)(`p`,{className:`mb-6 text-sm text-[var(--app-muted)]`,children:`Paste your API key to continue.`}),(0,H.jsx)(`label`,{className:`mb-1 block text-sm font-medium`,children:`API key`}),(0,H.jsx)(`input`,{type:`password`,value:e,onChange:e=>t(e.target.value),placeholder:`64-character hex string`,className:`mb-4 w-full rounded border border-[var(--app-border)] bg-[var(--app-bg)] px-3 py-2 font-mono text-sm outline-none focus:border-[var(--app-accent)]`,autoFocus:!0,disabled:i}),n&&(0,H.jsx)(`div`,{className:`mb-4 rounded border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-400`,children:n}),(0,H.jsx)(`button`,{type:`submit`,disabled:i,className:`w-full rounded bg-[var(--app-accent)] px-4 py-2 font-medium text-[var(--app-accent-fg)] transition hover:opacity-90 disabled:opacity-50`,children:i?`Verifying...`:`Sign in`}),(0,H.jsxs)(`details`,{className:`mt-6 text-xs text-[var(--app-muted)]`,children:[(0,H.jsx)(`summary`,{className:`cursor-pointer select-none`,children:`Where do I find my API key?`}),(0,H.jsxs)(`div`,{className:`mt-2 space-y-1 leading-relaxed`,children:[(0,H.jsxs)(`p`,{children:[`Adam generates a random API key on first boot and stores it at`,` `,(0,H.jsx)(`code`,{className:`rounded bg-[var(--app-bg)] px-1`,children:`~/.adam/adam.key`}),`.`]}),(0,H.jsxs)(`p`,{children:[`Local: `,(0,H.jsx)(`code`,{className:`rounded bg-[var(--app-bg)] px-1`,children:`cat ~/.adam/adam.key`})]}),(0,H.jsxs)(`p`,{children:[`Remote (VPS): `,(0,H.jsx)(`code`,{className:`rounded bg-[var(--app-bg)] px-1`,children:`ssh <host> cat ~/.adam/adam.key`})]}),(0,H.jsx)(`p`,{children:`Rotation resets all logged-in sessions. Do it from Settings → API Key.`})]})]})]})})}var vo=$(()=>O(()=>import(`./Dashboard-z37ZVhzH.js`).then(e=>({default:e.Dashboard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),yo=$(()=>O(()=>import(`./Chat-CggvtidD.js`).then(e=>({default:e.Chat})),__vite__mapDeps([10,1,2,3,11,6,4,5,12,13,9,14,15]))),bo=$(()=>O(()=>import(`./Work-uD_6IieV.js`).then(e=>({default:e.Work})),__vite__mapDeps([16,1,2,3,17,11,6,18,19,4,5,7,8,12,20,13,9,21,14,15]))),xo=$(()=>O(()=>import(`./TaskDetail-DKminIM_.js`).then(e=>({default:e.TaskDetail})),__vite__mapDeps([22,1,2,3,11,6,5,7,8,13,9,14]))),So=$(()=>O(()=>import(`./Plugins-CtwoMUoj.js`).then(e=>({default:e.Plugins})),__vite__mapDeps([23,1,2,3,17,11,6,18,5,7,24,12,13,14,8,21,9]))),Co=$(()=>O(()=>import(`./Strategies-DUps-2I9.js`).then(e=>({default:e.Strategies})),__vite__mapDeps([25,1,2,3,11,6,5,8,12,21,9]))),wo=$(()=>O(()=>import(`./Goals-CDZWDuXR.js`).then(e=>({default:e.Goals})),__vite__mapDeps([20,1,2,3,17,11,6,5,8,12,13,9]))),To=$(()=>O(()=>import(`./Logs-6r7fnBn7.js`).then(e=>({default:e.Logs})),__vite__mapDeps([26,1,2,3,11,6,5,8,12,14]))),Eo=$(()=>O(()=>import(`./Settings-D2jrO8-G.js`).then(e=>({default:e.Settings})),__vite__mapDeps([27,1,2,3,17,11,6,28,8,13,14,5,7,12,9]))),Do=$(()=>O(()=>import(`./Memories-CvPaqv5r.js`).then(e=>({default:e.Memories})),__vite__mapDeps([29,1,2,3,11,6,5,7,8,12,13,9]))),Oo=$(()=>O(()=>import(`./Evolution-C884p_CE.js`).then(e=>({default:e.Evolution})),__vite__mapDeps([30,1,2,3,11,6,5,8,12,13,9]))),ko=$(()=>O(()=>import(`./Channels-ozCXdZMq.js`).then(e=>({default:e.Channels})),__vite__mapDeps([31,1,2,3,11,6,5,7,8,12,13,14]))),Ao=$(()=>O(()=>import(`./GoalDetail-DJOyf7By.js`).then(e=>({default:e.GoalDetail})),__vite__mapDeps([32,1,2,3,5,6,7,8,13,9]))),jo=$(()=>O(()=>import(`./ChannelDetail-DktmpO0A.js`).then(e=>({default:e.ChannelDetail})),__vite__mapDeps([33,1,2,3,5,6,7,8,13,9]))),Mo=$(()=>O(()=>import(`./Roles-CGYsxuq8.js`).then(e=>({default:e.Roles})),__vite__mapDeps([34,1,2,3,11,6,5,7,8,12,21,9,15]))),No=$(()=>O(()=>import(`./RoleDetail-B32225ae.js`).then(e=>({default:e.RoleDetail})),__vite__mapDeps([35,1,2,3,17,11,6,19,28,8,13,14,5,7,24,12,21,9,15]))),Po=$(()=>O(()=>import(`./FeatureRequests-Ck0WQnXX.js`).then(e=>({default:e.FeatureRequests})),__vite__mapDeps([36,1,2,3,11,6,7,8,12,13]))),Fo=$(()=>O(()=>import(`./Mistakes-aUhkqHDC.js`).then(e=>({default:e.Mistakes})),__vite__mapDeps([37,1,2,3,11,6,7,8,12,13]))),Io=$(()=>O(()=>import(`./NotFound-R6tIzhL0.js`),__vite__mapDeps([38,2,1,3]))),Lo=$(()=>O(()=>import(`./Events-C4P3jjZd.js`).then(e=>({default:e.Events})),__vite__mapDeps([39,1,2,3,17,11,6,19,7,8,12,21,13,9]))),Ro=$(()=>O(()=>import(`./EventDefDetail-BiXTA6LF.js`).then(e=>({default:e.EventDefDetail})),__vite__mapDeps([40,1,2,3,11,6,7,8,12,21,13])));function zo(){return(0,H.jsx)(`div`,{className:`flex h-full items-center justify-center`,children:(0,H.jsx)(`div`,{className:`h-8 w-8 animate-spin rounded-full border-2 border-[var(--app-border)] border-t-[var(--app-accent)]`})})}function Bo(){let e=window.location.pathname,t=ge();return e===`/ui/login`||!t?(0,H.jsx)(_o,{}):(0,H.jsxs)(V.Suspense,{fallback:(0,H.jsx)(zo,{}),children:[(0,H.jsxs)(k,{children:[(0,H.jsx)(D,{path:`login`,element:(0,H.jsx)(_o,{})}),(0,H.jsxs)(D,{element:(0,H.jsx)(ji,{}),children:[(0,H.jsx)(D,{index:!0,element:(0,H.jsx)(vo,{})}),(0,H.jsx)(D,{path:`chat`,element:(0,H.jsx)(yo,{})}),(0,H.jsx)(D,{path:`work`,element:(0,H.jsx)(bo,{})}),(0,H.jsx)(D,{path:`tasks/:id`,element:(0,H.jsx)(xo,{})}),(0,H.jsx)(D,{path:`plugins`,element:(0,H.jsx)(So,{})}),(0,H.jsx)(D,{path:`roles`,element:(0,H.jsx)(Mo,{})}),(0,H.jsx)(D,{path:`roles/:id`,element:(0,H.jsx)(No,{})}),(0,H.jsx)(D,{path:`feature-requests`,element:(0,H.jsx)(Po,{})}),(0,H.jsx)(D,{path:`mistakes`,element:(0,H.jsx)(Fo,{})}),(0,H.jsx)(D,{path:`events`,element:(0,H.jsx)(Lo,{})}),(0,H.jsx)(D,{path:`events/:id`,element:(0,H.jsx)(Ro,{})}),(0,H.jsx)(D,{path:`channels`,element:(0,H.jsx)(ko,{})}),(0,H.jsx)(D,{path:`channels/:id`,element:(0,H.jsx)(jo,{})}),(0,H.jsx)(D,{path:`strategies`,element:(0,H.jsx)(Co,{})}),(0,H.jsx)(D,{path:`goals`,element:(0,H.jsx)(wo,{})}),(0,H.jsx)(D,{path:`goals/:id`,element:(0,H.jsx)(Ao,{})}),(0,H.jsx)(D,{path:`logs`,element:(0,H.jsx)(To,{})}),(0,H.jsx)(D,{path:`settings`,element:(0,H.jsx)(Eo,{})}),(0,H.jsx)(D,{path:`memories`,element:(0,H.jsx)(Do,{})}),(0,H.jsx)(D,{path:`evolution`,element:(0,H.jsx)(Oo,{})}),(0,H.jsx)(D,{path:`*`,element:(0,H.jsx)(Io,{})})]})]}),(0,H.jsx)(go,{})]})}var Vo=S([{path:`*`,element:(0,H.jsx)(Bo,{})}],{basename:`/ui`});(0,xe.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(V.StrictMode,{children:(0,H.jsx)(Se,{children:(0,H.jsx)(E,{router:Vo})})}));export{In as C,zn as S,Xr as _,lo as a,rr as b,ao as c,eo as d,ki as f,Jr as g,Zr as h,co as i,io as l,Yr as m,po as n,ro as o,fi as p,$a as r,so as s,fo as t,oo as u,nr as v,tr as x,ir as y};
@@ -1 +0,0 @@
1
- import{r as e,t}from"./rolldown-runtime-Dw2cE7zH.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),r=t(((e,t)=>{t.exports=n()})),i=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),c=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},l={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`},u=e(r()),d=(0,u.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...d},f)=>(0,u.createElement)(`svg`,{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:s(`lucide`,i),...!a&&!c(d)&&{"aria-hidden":`true`},...d},[...o.map(([e,t])=>(0,u.createElement)(e,t)),...Array.isArray(a)?a:[a]])),f=(e,t)=>{let n=(0,u.forwardRef)(({className:n,...r},a)=>(0,u.createElement)(d,{ref:a,iconNode:t,className:s(`lucide-${i(o(e))}`,`lucide-${e}`,n),...r}));return n.displayName=o(e),n},p=f(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),m=f(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),h=f(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),g=f(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.9 4.9 14.2 14.2`,key:`1m5liu`}]]),_=f(`brain`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`,key:`ep3f8r`}],[`path`,{d:`M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4`,key:`1p4c4q`}],[`path`,{d:`M17.599 6.5a3 3 0 0 0 .399-1.375`,key:`tmeiqw`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M19.938 10.5a4 4 0 0 1 .585.396`,key:`1qfode`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M19.967 17.484A4 4 0 0 1 18 18`,key:`159ez6`}]]),v=f(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),y=f(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),b=f(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),x=f(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),S=f(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),C=f(`circle-dollar-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),w=f(`circle-user`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]]),T=f(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),E=f(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16.5 12`,key:`1aq6pp`}]]),D=f(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16 14`,key:`68esgv`}]]),O=f(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),k=f(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),A=f(`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`}]]),j=f(`eraser`,[[`path`,{d:`m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21`,key:`182aya`}],[`path`,{d:`M22 21H7`,key:`t4ddhn`}],[`path`,{d:`m5 11 9 9`,key:`1mo9qw`}]]),M=f(`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`}]]),N=f(`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`}]]),P=f(`file-code`,[[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z`,key:`1mlx9k`}]]),F=f(`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`}]]),I=f(`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`}]]),L=f(`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`}]]),ee=f(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),te=f(`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`}]]),R=f(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),z=f(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),B=f(`list-todo`,[[`rect`,{x:`3`,y:`5`,width:`6`,height:`6`,rx:`1`,key:`1defrl`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),V=f(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),H=f(`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`}]]),U=f(`menu`,[[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 18h16`,key:`19g7jn`}],[`path`,{d:`M4 6h16`,key:`1o0s65`}]]),W=f(`message-circle`,[[`path`,{d:`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`,key:`vv11sd`}]]),G=f(`message-square`,[[`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,key:`1lielz`}]]),K=f(`pause`,[[`rect`,{x:`14`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`zuxfzm`}],[`rect`,{x:`6`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`1okwgv`}]]),q=f(`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`}]]),J=f(`play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),Y=f(`plug-zap`,[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]]),X=f(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M9 8V2`,key:`14iosj`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`,key:`osxo6l`}]]),Z=f(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Q=f(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),ne=f(`radio`,[[`path`,{d:`M4.9 19.1C1 15.2 1 8.8 4.9 4.9`,key:`1vaf9d`}],[`path`,{d:`M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5`,key:`u1ii0m`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5`,key:`1j5fej`}],[`path`,{d:`M19.1 4.9C23 8.8 23 15.1 19.1 19`,key:`10b0cb`}]]),re=f(`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`}]]),ie=f(`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`}]]),ae=f(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),oe=f(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),se=f(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),ce=f(`settings`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),le=f(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),ue=f(`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`}]]),de=f(`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`}]]),fe=f(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),pe=f(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),$=f(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),me=f(`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`}]]),he=f(`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`}]]),ge=f(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),_e=f(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),ve=f(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),ye=f(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),be=f(`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`}]]);export{S as $,U as A,F as B,X as C,K as D,q as E,R as F,A as G,N as H,te as I,D as J,k as K,ee as L,V as M,B as N,G as O,z as P,C as Q,L as R,Z as S,J as T,M as U,P as V,j as W,T as X,E as Y,w as Z,ae as _,ge as a,g as at,ne as b,$ as c,p as ct,de as d,x as et,ue as f,oe as g,se as h,_e as i,_ as it,H as j,W as k,pe as l,r as lt,ce as m,ye as n,y as nt,he as o,h as ot,le as p,O as q,ve as r,v as rt,me as s,m as st,be as t,b as tt,fe as u,ie as v,Y as w,Q as x,re as y,I as z};