@geminilight/mindos-windows-arm64 1.0.6 → 1.0.8

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 (483) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/__next/BUILD_ID +1 -1
  3. package/_standalone/__next/app-path-routes-manifest.json +24 -24
  4. package/_standalone/__next/build-manifest.json +3 -3
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +48 -7
  7. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  8. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/_standalone/__next/server/app/_global-error.html +2 -2
  10. package/_standalone/__next/server/app/_global-error.rsc +1 -1
  11. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_not-found/page.js +1 -1
  18. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
  21. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/page.js +2 -2
  24. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  27. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  28. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  30. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  31. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  32. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  33. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  34. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  36. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  37. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  38. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  39. package/_standalone/__next/server/app/api/ask/route.js +2 -2
  40. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  42. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  43. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  44. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  45. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  46. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  48. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  49. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  50. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  51. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  52. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  54. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  55. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  56. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  57. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  58. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  60. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  61. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  62. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  63. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  64. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  66. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  67. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  68. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  69. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  70. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  72. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  73. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  74. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  75. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  76. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  77. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  78. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  80. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  81. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  82. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  83. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  84. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  86. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  87. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  88. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  89. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  90. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  92. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  93. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  94. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  95. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  96. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  98. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  100. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  102. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  103. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  104. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  105. package/_standalone/__next/server/app/capture/history/page.js +1 -1
  106. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  107. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  108. package/_standalone/__next/server/app/capture/page.js +1 -1
  109. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  110. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  111. package/_standalone/__next/server/app/changelog/page.js +1 -1
  112. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  113. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  114. package/_standalone/__next/server/app/changes/page.js +1 -1
  115. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  116. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  117. package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
  118. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  119. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  120. package/_standalone/__next/server/app/echo/page.js +1 -1
  121. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  122. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  123. package/_standalone/__next/server/app/explore/page.js +3 -3
  124. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  125. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  126. package/_standalone/__next/server/app/help/page.js +2 -2
  127. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  128. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  129. package/_standalone/__next/server/app/inbox/history/page.js +1 -1
  130. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  131. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  132. package/_standalone/__next/server/app/login/page.js +1 -1
  133. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  134. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  135. package/_standalone/__next/server/app/page.js +1 -1
  136. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  137. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  138. package/_standalone/__next/server/app/settings/page.js +8 -3
  139. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  140. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  141. package/_standalone/__next/server/app/setup/page.js +1 -1
  142. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  143. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  144. package/_standalone/__next/server/app/todo/page.js +1 -1
  145. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  146. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  147. package/_standalone/__next/server/app/trash/page.js +2 -2
  148. package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
  149. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  150. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  151. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  152. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  153. package/_standalone/__next/server/app/wiki/page.js +1 -1
  154. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  155. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  156. package/_standalone/__next/server/app-paths-manifest.json +24 -24
  157. package/_standalone/__next/server/chunks/103.js +1 -1
  158. package/_standalone/__next/server/chunks/1976.js +1 -1
  159. package/_standalone/__next/server/chunks/6602.js +43 -66
  160. package/_standalone/__next/server/chunks/6646.js +16 -0
  161. package/_standalone/__next/server/chunks/8461.js +7 -7
  162. package/_standalone/__next/server/chunks/9868.js +2 -0
  163. package/_standalone/__next/server/chunks/{3219.js → 9969.js} +4 -4
  164. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  165. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  166. package/_standalone/__next/server/pages/500.html +2 -2
  167. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  168. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  169. package/_standalone/__next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
  170. package/_standalone/__next/static/chunks/1655.0a559759973b42e9.js +1 -0
  171. package/_standalone/__next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
  172. package/{static-web/_next/static/chunks/9216.d3339c27169b21bf.js → _standalone/__next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
  173. package/_standalone/__next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
  174. package/{static-web/_next/static/chunks/4937-4101fcdadacf46e3.js → _standalone/__next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
  175. package/_standalone/__next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
  176. package/_standalone/__next/static/chunks/3807-115388f118106ca8.js +1 -0
  177. package/_standalone/__next/static/chunks/3966.ea75f9c5490955de.js +1 -0
  178. package/_standalone/__next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
  179. package/_standalone/__next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
  180. package/_standalone/__next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
  181. package/_standalone/__next/static/chunks/577.5e448c99068f1323.js +1 -0
  182. package/_standalone/__next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
  183. package/_standalone/__next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
  184. package/_standalone/__next/static/chunks/6223-3fb90852221bda56.js +1 -0
  185. package/_standalone/__next/static/chunks/6343.582d063078c45d73.js +6 -0
  186. package/_standalone/__next/static/chunks/8174-50048777dc2469c0.js +1 -0
  187. package/_standalone/__next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
  188. package/_standalone/__next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
  189. package/_standalone/__next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
  190. package/_standalone/__next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
  191. package/_standalone/__next/static/chunks/9440-eee639175695be7d.js +33 -0
  192. package/_standalone/__next/static/chunks/9479-b48d19e3588823c1.js +34 -0
  193. package/_standalone/__next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
  194. package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
  195. package/_standalone/__next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
  196. package/_standalone/__next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
  197. package/_standalone/__next/static/chunks/app/page-d22928276c36528c.js +1 -0
  198. package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
  199. package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
  200. package/_standalone/__next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
  201. package/_standalone/__next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
  202. package/_standalone/__next/static/chunks/webpack-1decda0633a8a874.js +1 -0
  203. package/_standalone/__next/static/css/5f000212c8b2e09a.css +1 -0
  204. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  205. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  206. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  207. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  208. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  209. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  210. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  211. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  212. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  213. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  214. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  215. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  216. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  217. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  218. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  219. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  220. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  221. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  222. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  223. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  224. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  225. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  226. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  227. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  228. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  229. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  230. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  231. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  232. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  233. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  234. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  235. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  236. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  237. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  238. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  239. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  240. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  241. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  242. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  243. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  244. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
  245. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  246. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
  247. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  248. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  249. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  250. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  251. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  252. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  253. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  254. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  255. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  256. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  257. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  258. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  259. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  260. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  261. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  262. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  263. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  264. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  265. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  266. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  267. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  268. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  269. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  270. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  271. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  272. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  273. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  274. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  275. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  276. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  277. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  278. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  279. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  280. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  281. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  282. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  283. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  284. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  285. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  286. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  287. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  288. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  289. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  290. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  291. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  292. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  293. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  294. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  295. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  296. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  297. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  298. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  299. package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
  300. package/_standalone/__node_modules/entities/LICENSE +11 -0
  301. package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
  302. package/_standalone/__node_modules/entities/dist/decode.js +544 -0
  303. package/_standalone/__node_modules/entities/dist/encode.js +90 -0
  304. package/_standalone/__node_modules/entities/dist/escape.js +132 -0
  305. package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
  306. package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  307. package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
  308. package/_standalone/__node_modules/entities/dist/index.js +91 -0
  309. package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  310. package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
  311. package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
  312. package/_standalone/__node_modules/entities/package.json +83 -0
  313. package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
  314. package/_standalone/__node_modules/entities/src/decode.ts +671 -0
  315. package/_standalone/__node_modules/entities/src/encode.ts +95 -0
  316. package/_standalone/__node_modules/entities/src/escape.ts +160 -0
  317. package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
  318. package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  319. package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
  320. package/_standalone/__node_modules/entities/src/index.ts +162 -0
  321. package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  322. package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
  323. package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
  324. package/_standalone/__node_modules/has-flag/index.js +8 -0
  325. package/_standalone/__node_modules/has-flag/license +9 -0
  326. package/_standalone/__node_modules/has-flag/package.json +46 -0
  327. package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
  328. package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
  329. package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
  330. package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
  331. package/_standalone/__node_modules/koffi/doc/index.md +61 -0
  332. package/_standalone/__node_modules/koffi/doc/input.md +471 -0
  333. package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
  334. package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
  335. package/_standalone/__node_modules/koffi/doc/output.md +305 -0
  336. package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
  337. package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
  338. package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
  339. package/_standalone/__node_modules/koffi/doc/start.md +118 -0
  340. package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
  341. package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
  342. package/_standalone/__node_modules/supports-color/browser.js +5 -0
  343. package/_standalone/__node_modules/supports-color/index.js +135 -0
  344. package/_standalone/__node_modules/supports-color/license +9 -0
  345. package/_standalone/__node_modules/supports-color/package.json +53 -0
  346. package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
  347. package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  348. package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  349. package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  350. package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
  351. package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
  352. package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
  353. package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
  354. package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
  355. package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
  356. package/_standalone/public/agent-icons/claude.svg +1 -0
  357. package/_standalone/public/agent-icons/cursor.svg +1 -0
  358. package/_standalone/public/agent-icons/github-copilot.svg +1 -0
  359. package/_standalone/public/agent-icons/google.svg +1 -0
  360. package/_standalone/public/agent-icons/openai.svg +1 -0
  361. package/_standalone/public/agent-icons/windsurf.svg +1 -0
  362. package/bin/lib/stop.js +45 -0
  363. package/bin/lib/sync.js +32 -19
  364. package/dist/server/handlers/file.js +5 -2
  365. package/dist/server/handlers/file.js.map +1 -1
  366. package/dist/server/handlers/mcp-restart.d.ts +2 -0
  367. package/dist/server/handlers/mcp-restart.d.ts.map +1 -1
  368. package/dist/server/handlers/mcp-restart.js +45 -2
  369. package/dist/server/handlers/mcp-restart.js.map +1 -1
  370. package/dist/server/handlers/skills.d.ts.map +1 -1
  371. package/dist/server/handlers/skills.js +17 -3
  372. package/dist/server/handlers/skills.js.map +1 -1
  373. package/dist/server/handlers/sync.d.ts.map +1 -1
  374. package/dist/server/handlers/sync.js +28 -10
  375. package/dist/server/handlers/sync.js.map +1 -1
  376. package/dist/server/index.d.ts +1 -1
  377. package/dist/server/index.d.ts.map +1 -1
  378. package/dist/server/index.js +1 -1
  379. package/dist/server/index.js.map +1 -1
  380. package/dist/server/runtime.d.ts.map +1 -1
  381. package/dist/server/runtime.js +20 -21
  382. package/dist/server/runtime.js.map +1 -1
  383. package/package.json +1 -1
  384. package/runtime-manifest.json +1 -1
  385. package/scripts/build-bun-binary.mjs +139 -6
  386. package/scripts/prepare-standalone.mjs +0 -1
  387. package/scripts/prepare-static-web.mjs +52 -4
  388. package/scripts/release.sh +1 -1
  389. package/scripts/setup.js +115 -2
  390. package/scripts/verify-standalone.mjs +12 -0
  391. package/static-web/.mindos-build-version +1 -1
  392. package/static-web/_next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
  393. package/static-web/_next/static/chunks/1655.0a559759973b42e9.js +1 -0
  394. package/static-web/_next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
  395. package/{_standalone/__next/static/chunks/9216.d3339c27169b21bf.js → static-web/_next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
  396. package/static-web/_next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
  397. package/{_standalone/__next/static/chunks/4937-4101fcdadacf46e3.js → static-web/_next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
  398. package/static-web/_next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
  399. package/static-web/_next/static/chunks/3807-115388f118106ca8.js +1 -0
  400. package/static-web/_next/static/chunks/3966.ea75f9c5490955de.js +1 -0
  401. package/static-web/_next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
  402. package/static-web/_next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
  403. package/static-web/_next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
  404. package/static-web/_next/static/chunks/577.5e448c99068f1323.js +1 -0
  405. package/static-web/_next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
  406. package/static-web/_next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
  407. package/static-web/_next/static/chunks/6223-3fb90852221bda56.js +1 -0
  408. package/static-web/_next/static/chunks/6343.582d063078c45d73.js +6 -0
  409. package/static-web/_next/static/chunks/8174-50048777dc2469c0.js +1 -0
  410. package/static-web/_next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
  411. package/static-web/_next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
  412. package/static-web/_next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
  413. package/static-web/_next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
  414. package/static-web/_next/static/chunks/9440-eee639175695be7d.js +33 -0
  415. package/static-web/_next/static/chunks/9479-b48d19e3588823c1.js +34 -0
  416. package/static-web/_next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
  417. package/static-web/_next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
  418. package/static-web/_next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
  419. package/static-web/_next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
  420. package/static-web/_next/static/chunks/app/page-d22928276c36528c.js +1 -0
  421. package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
  422. package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
  423. package/static-web/_next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
  424. package/static-web/_next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
  425. package/static-web/_next/static/chunks/webpack-1decda0633a8a874.js +1 -0
  426. package/static-web/_next/static/css/5f000212c8b2e09a.css +1 -0
  427. package/static-web/agent-icons/claude.svg +1 -0
  428. package/static-web/agent-icons/cursor.svg +1 -0
  429. package/static-web/agent-icons/github-copilot.svg +1 -0
  430. package/static-web/agent-icons/google.svg +1 -0
  431. package/static-web/agent-icons/openai.svg +1 -0
  432. package/static-web/agent-icons/windsurf.svg +1 -0
  433. package/static-web/help/index.html +5 -20
  434. package/static-web/index.html +8 -22
  435. package/static-web/setup/index.html +5 -20
  436. package/static-web/static-web-manifest.json +1 -1
  437. package/static-web/wiki/index.html +5 -20
  438. package/_standalone/__next/server/chunks/2037.js +0 -2
  439. package/_standalone/__next/server/chunks/9350.js +0 -11
  440. package/_standalone/__next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
  441. package/_standalone/__next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
  442. package/_standalone/__next/static/chunks/3424-060f01a8983e438d.js +0 -1
  443. package/_standalone/__next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
  444. package/_standalone/__next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
  445. package/_standalone/__next/static/chunks/47-41e1a06e6d389b69.js +0 -48
  446. package/_standalone/__next/static/chunks/5152-2db55438be7ecb94.js +0 -1
  447. package/_standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
  448. package/_standalone/__next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
  449. package/_standalone/__next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
  450. package/_standalone/__next/static/chunks/725-3b648bf7929ff78d.js +0 -1
  451. package/_standalone/__next/static/chunks/9479-7b304601a56304cd.js +0 -32
  452. package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
  453. package/_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
  454. package/_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
  455. package/_standalone/__next/static/chunks/app/page-5c9489e28657376e.js +0 -1
  456. package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  457. package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  458. package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  459. package/_standalone/__next/static/css/0d2fd378b5449176.css +0 -1
  460. package/static-web/_next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
  461. package/static-web/_next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
  462. package/static-web/_next/static/chunks/3424-060f01a8983e438d.js +0 -1
  463. package/static-web/_next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
  464. package/static-web/_next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
  465. package/static-web/_next/static/chunks/47-41e1a06e6d389b69.js +0 -48
  466. package/static-web/_next/static/chunks/5152-2db55438be7ecb94.js +0 -1
  467. package/static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
  468. package/static-web/_next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
  469. package/static-web/_next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
  470. package/static-web/_next/static/chunks/725-3b648bf7929ff78d.js +0 -1
  471. package/static-web/_next/static/chunks/9479-7b304601a56304cd.js +0 -32
  472. package/static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
  473. package/static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
  474. package/static-web/_next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
  475. package/static-web/_next/static/chunks/app/page-5c9489e28657376e.js +0 -1
  476. package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  477. package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  478. package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  479. package/static-web/_next/static/css/0d2fd378b5449176.css +0 -1
  480. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
  481. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
  482. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
  483. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
@@ -0,0 +1,10 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4010],{40517:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(73015).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},64010:(e,t,n)=>{n.r(t),n.d(t,{RIGHT_AGENT_DETAIL_DEFAULT_WIDTH:()=>j,RIGHT_AGENT_DETAIL_MAX_WIDTH:()=>k,RIGHT_AGENT_DETAIL_MIN_WIDTH:()=>N,default:()=>T});var s=n(66839),i=n(44223),o=n(20677),r=n(2073),a=n(42962),l=n(72799),d=n(39086),c=n(44361),u=n(38688),p=n(21082),m=n(40517),f=n(31082),x=n(24336),g=n(79455),h=n(98641),b=n(46990);function y({agent:e,agentStatus:t,mcpStatus:n,onBack:o,onInstallAgent:r,copy:a,headerVariant:y="inline"}){let[v,j]=(0,i.useState)(!1),[N,k]=(0,i.useState)(null),[A,T]=(0,i.useState)(()=>e.preferredTransport),$=(0,i.useMemo)(()=>"notFound"===t?null:(0,h.$k)(e,n,A),[e,n,A,t]),w=async()=>{j(!0),k(null),k(await r(e.key)?{type:"success",text:`${e.name} ${a.connected}`}:{type:"error",text:a.installFailed}),j(!1)},S=async()=>{!$||await (0,b.l)($.snippet)&&g.oR.copy()},_="connected"===t?"bg-[var(--success)]":"detected"===t?"bg-[var(--amber)]":"bg-muted-foreground";return(0,s.jsxs)("div",{className:"flex flex-col h-full min-h-0",children:["dock"===y?(0,s.jsxs)("header",{className:"shrink-0 flex items-center justify-between gap-3 border-b border-border px-4 py-3 bg-card",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,s.jsx)("span",{className:`w-2 h-2 rounded-full shrink-0 ${_}`}),(0,s.jsx)("h2",{className:"text-sm font-semibold text-foreground truncate",title:e.name,children:e.name})]}),(0,s.jsx)("button",{type:"button",onClick:o,className:"p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0","aria-label":a.closeDetail??"Close",children:(0,s.jsx)(l.A,{size:16})})]}):(0,s.jsxs)("div",{className:"sticky top-0 z-10 flex items-center gap-2 border-b border-border bg-background/95 px-3 py-2.5 backdrop-blur-sm shrink-0",children:[(0,s.jsxs)("button",{type:"button",onClick:o,className:"flex items-center gap-1 text-2xs text-muted-foreground hover:text-foreground rounded-md px-1 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0",children:[(0,s.jsx)(d.A,{size:16}),a.backToList]}),(0,s.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${_}`}),(0,s.jsx)("span",{className:"text-sm font-medium text-foreground truncate",title:e.name,children:e.name})]}),(0,s.jsxs)("div",{className:"px-4 py-4 space-y-4 flex-1 min-h-0 overflow-y-auto",children:["detected"===t&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:w,disabled:v,className:"inline-flex items-center gap-1.5 px-3 py-2 text-xs rounded-lg font-medium text-[var(--amber-foreground)] disabled:opacity-50 bg-[var(--amber)] hover:bg-[var(--amber)]/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[v?(0,s.jsx)(c.A,{size:14,className:"animate-spin"}):null,v?a.installing:a.install]}),N&&(0,s.jsxs)("span",{className:`flex items-center gap-1 text-2xs ${"success"===N.type?"text-success":"text-destructive"}`,children:["success"===N.type?(0,s.jsx)(u.A,{size:12}):(0,s.jsx)(p.A,{size:12}),N.text]})]}),"notFound"===t&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:a.notFoundDetail}),"notFound"!==t&&$&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1",children:a.configPath}),(0,s.jsx)("p",{className:"text-xs font-mono text-foreground break-all",children:$.path})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:a.agentDetailTransport}),(0,s.jsxs)("div",{className:"flex items-center gap-1 p-0.5 rounded-lg bg-muted/40 w-fit",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>T("stdio"),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${"stdio"===A?"bg-card shadow-sm text-foreground":"text-muted-foreground"}`,children:[(0,s.jsx)(m.A,{size:13}),a.transportLocal]}),(0,s.jsxs)("button",{type:"button",onClick:()=>T("http"),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${"http"===A?"bg-card shadow-sm text-foreground":"text-muted-foreground"}`,children:[(0,s.jsx)(f.A,{size:13}),a.transportRemote]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-2",children:a.agentDetailSnippet}),(0,s.jsx)("pre",{className:"text-[11px] font-mono bg-muted/50 border border-border rounded-lg p-3 overflow-x-auto whitespace-pre max-h-[min(320px,50vh)] overflow-y-auto select-all",children:$.displaySnippet})]}),(0,s.jsxs)("button",{type:"button",onClick:S,className:"inline-flex items-center gap-1.5 px-3 py-2 rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,s.jsx)(x.A,{size:14}),a.copyConfig]})]})]})]})}var v=n(38896);let j=v.oT.DEFAULT,N=v.oT.MIN,k=v.oT.MAX_ABS,A=v.oT.MAX_RATIO;function T({open:e,agentKey:t,onClose:n,rightOffset:l,width:d,onWidthChange:c,onWidthCommit:u}){let p=(0,o.oc)(),m=(0,o.av)(),f=(0,o.u_)(),{t:x}=(0,r.Y)(),g=x.panels.agents,h=p.filter(e=>e.present&&e.installed),b=p.filter(e=>e.present&&!e.installed),v=p.filter(e=>!e.present),j=(0,i.useMemo)(()=>{if(!t)return null;let e=p.find(e=>e.key===t);if(!e)return null;let n=h.some(e=>e.key===t)?"connected":b.some(e=>e.key===t)?"detected":v.some(e=>e.key===t)?"notFound":null;return n?{agent:e,status:n}:null},[t,p,h,b,v]);(0,i.useEffect)(()=>{if(t&&!j){let e=requestAnimationFrame(()=>n());return()=>cancelAnimationFrame(e)}},[t,j,n]);let T=(0,a._)({width:d,minWidth:N,maxWidth:k,maxWidthRatio:A,direction:"left",onResize:c,onResizeEnd:u}),$={connected:g.connected,installing:g.installing,install:g.install,installFailed:g.installFailed,copyConfig:g.copyConfig,copied:g.copied,transportLocal:g.transportLocal,transportRemote:g.transportRemote,configPath:g.configPath,notFoundDetail:g.notFoundDetail,backToList:g.backToList,closeDetail:g.closeAgentDetail,agentDetailTransport:g.agentDetailTransport,agentDetailSnippet:g.agentDetailSnippet};return(0,s.jsxs)("aside",{className:`
2
+ hidden md:flex fixed top-0 h-screen z-[31] flex-col bg-card border-l border-border shadow-sm
3
+ transition-transform duration-200 ease-out
4
+ ${e?"translate-x-0":"translate-x-full pointer-events-none"}
5
+ `,style:{width:`${d}px`,right:`${l}px`},role:"complementary","aria-label":g.agentDetailPanelAria,"aria-hidden":!e||!j,children:[j&&(0,s.jsx)("div",{className:"flex flex-col flex-1 min-h-0 overflow-y-auto",children:(0,s.jsx)(y,{agent:j.agent,agentStatus:j.status,mcpStatus:m,onBack:n,onInstallAgent:f,copy:$,headerVariant:"dock"})}),(0,s.jsx)("div",{className:"absolute top-0 -left-[3px] w-[6px] h-full cursor-col-resize z-40 group hidden md:block",onMouseDown:T,children:(0,s.jsx)("div",{className:"absolute left-[2px] top-0 w-[2px] h-full opacity-0 group-hover:opacity-100 bg-[var(--amber)]/50 transition-opacity"})})]})}},98641:(e,t,n)=>{function s(e){return JSON.stringify(String(e))}function i(e){return/^[A-Za-z0-9_-]+$/.test(e)?e:s(e)}function o(e,t){let n=e.split(".").map(e=>e.trim()).filter(Boolean),s={},i=s;for(let e of n)i[e]={},i=i[e];return Object.assign(i,t),s}function r(e,t){let n=[`${i(e)}:`," mindos:"];if(t.type&&n.push(` type: ${s(t.type)}`),t.command&&n.push(` command: ${s(t.command)}`),t.url&&n.push(` url: ${s(t.url)}`),Array.isArray(t.args)&&n.push(` args: [${t.args.map(s).join(", ")}]`),t.env&&"object"==typeof t.env)for(let[e,o]of(n.push(" env:"),Object.entries(t.env)))n.push(` ${i(e)}: ${s(o)}`);if(t.headers&&"object"==typeof t.headers)for(let[e,o]of(n.push(" headers:"),Object.entries(t.headers)))n.push(` ${i(e)}: ${s(o)}`);return n.join("\n")}function a(e,t,n){var s,i;let a,l,d;if("stdio"===n)return function(e){let t={type:"stdio",command:"mindos",args:["mcp"],env:{MCP_TRANSPORT:"stdio"}};if("toml"===e.format){let t=`[${e.configKey}.mindos]
6
+ command = "mindos"
7
+ args = ["mcp"]
8
+
9
+ [${e.configKey}.mindos.env]
10
+ MCP_TRANSPORT = "stdio"`;return{snippet:t,displaySnippet:t,path:e.globalPath}}if("yaml"===e.format){let n=r(e.configKey,t);return{snippet:n,displaySnippet:n,path:e.globalPath}}if(e.globalNestedKey){let n=JSON.stringify(o(e.globalNestedKey,{mindos:t}),null,2);return{snippet:n,displaySnippet:n,path:e.globalPath}}let n=JSON.stringify({[e.configKey]:{mindos:t}},null,2);return{snippet:n,displaySnippet:n,path:e.globalPath}}(e);let c=t?.localIP?`http://${t.localIP}:${t.port}/mcp`:t?.endpoint??"http://127.0.0.1:8781/mcp";return s=t?.authToken,i=t?.maskedToken,a={url:c},s&&(a.headers={Authorization:`Bearer ${s}`}),l={url:c},i&&(l.headers={Authorization:`Bearer ${i}`}),{snippet:(d=t=>{if("toml"===e.format){let n=[`[${e.configKey}.mindos]`,'type = "http"',`url = "${c}"`],s=t.headers?.Authorization;return s&&(n.push(""),n.push(`[${e.configKey}.mindos.headers]`),n.push(`Authorization = "${s}"`)),n.join("\n")}return"yaml"===e.format?r(e.configKey,t):e.globalNestedKey?JSON.stringify(o(e.globalNestedKey,{mindos:t}),null,2):JSON.stringify({[e.configKey]:{mindos:t}},null,2)})(a),displaySnippet:d(s?l:a),path:(e.format,e.globalPath)}}n.d(t,{$k:()=>a})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5026],{20677:(e,t,r)=>{r.d(t,{av:()=>f,cd:()=>m,kr:()=>u,oc:()=>p,u_:()=>x,zd:()=>c});var n=r(59029),s=r(65264);let a=null,o=null,l=null,i=0;async function d(e,t={}){let r=Date.now();if(!t.force){if(o)return o;if(i>0&&r-i<2e3)return void e({loading:!1})}t.force&&a?.abort();let n=new AbortController;a=n;let c=Symbol("mcp-fetch");l=c;let u=(async()=>{try{let[t,r,a]=await Promise.all([(0,s.n)("/api/mcp/status",{signal:n.signal}),(0,s.n)("/api/mcp/agents",{signal:n.signal}),(0,s.n)("/api/skills",{signal:n.signal})]);n.signal.aborted||(i=Date.now(),e({status:t,agents:r.agents,skills:a.skills}))}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return}finally{n.signal.aborted||e({loading:!1}),l===c&&(o=null,l=null)}})();return o=u,u}let c=(0,n.v)((e,t)=>({status:null,agents:[],skills:[],loading:!0,refresh:t=>d(e,t),toggleSkill:async(r,n)=>{e({skills:t().skills.map(e=>e.name===r?{...e,enabled:n}:e)});try{return await (0,s.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",name:r,enabled:n})}),!0}catch{return e({skills:t().skills.map(e=>e.name===r?{...e,enabled:!n}:e)}),!1}},installAgent:async(r,n)=>{let a=t().agents.find(e=>e.key===r);if(!a)return!1;try{let t=await (0,s.n)("/api/mcp/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agents:[{key:r,scope:n?.scope??(a.hasProjectScope?"project":"global"),transport:n?.transport??a.preferredTransport}],transport:"auto"})}),o=t.results?.[0],l=o?.ok===!0||o?.status==="ok";return l&&await d(e,{force:!0}),l}catch{return!1}},_init:()=>{let t;d(e);let r=()=>{clearTimeout(t),t=setTimeout(()=>d(e),500)};window.addEventListener("mindos:skills-changed",r);let n=setInterval(()=>{"visible"===document.visibilityState&&d(e)},3e4);return()=>{a?.abort(),clearTimeout(t),clearInterval(n),window.removeEventListener("mindos:skills-changed",r)}}}));function u(){return c()}function m(){return c()}let p=()=>c(e=>e.agents),f=()=>c(e=>e.status),x=()=>c(e=>e.installAgent)},46990:(e,t,r)=>{r.d(t,{l:()=>n});async function n(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}},58221:(e,t,r)=>{r.d(t,{IX:()=>i,KW:()=>l,O0:()=>o,cn:()=>a,vr:()=>d});var n=r(10325),s=r(91498);function a(...e){return(0,s.QP)((0,n.$)(e))}function o(e){return e.split("/").map(encodeURIComponent).join("/")}function l(e,t){let r=Date.now()-e,n=Math.floor(r/6e4),s=Math.floor(r/36e5),a=Math.floor(r/864e5);return n<1?t.justNow:n<60?t.minutesAgo(n):s<24?t.hoursAgo(s):a<7?t.daysAgo(a):new Date(e).toLocaleDateString()}function i(e){let t=e.match(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]+/u);return t?.[0]??""}function d(e){return e.replace(/^[\p{Emoji_Presentation}\p{Extended_Pictographic}\s]+/u,"")||e}},65264:(e,t,r)=>{r.d(t,{h:()=>n,n:()=>s});class n extends Error{constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.code=r}}async function s(e,t={}){let r,a,o,{timeout:l=3e4,signal:i,...d}=t;if((l>0||i)&&(r=new AbortController),l>0&&r&&(a=setTimeout(()=>{r.abort(Error(`Request timed out after ${Math.round(l/1e3)}s`))},l)),i&&r)if(i.aborted)r.abort();else{let e=()=>r?.abort();i.addEventListener("abort",e,{once:!0}),o=()=>{i.removeEventListener("abort",e)}}let c=r?.signal??i;try{let t=await fetch(e,{...d,signal:c});if(!t.ok){let e,r=`Request failed (${t.status})`;try{let n=await t.json();n?.error?.code&&n?.error?.message?(r=n.error.message,e=n.error.code):n?.error&&(r="string"==typeof n.error?n.error:n.error.message??r)}catch{}throw new n(r,t.status,e)}return await t.json()}finally{a&&clearTimeout(a),o&&o()}}},69527:(e,t,r)=>{r.d(t,{Bt:()=>p,D0:()=>d,L7:()=>b,jn:()=>x,l6:()=>m,lM:()=>f,pM:()=>g,pd:()=>c,yA:()=>u});var n=r(66839),s=r(44223),a=r(9986),o=r(55798),l=r(72615),i=r(76723);function d({label:e,hint:t,hintError:r,children:s}){return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)("label",{className:"text-sm text-foreground font-medium",children:e}),s,t&&(0,n.jsx)("p",{className:`text-xs ${r?"text-destructive":"text-muted-foreground"}`,children:t})]})}function c({className:e="",...t}){return(0,n.jsx)("input",{...t,className:`w-full px-3 py-2 text-sm bg-background border border-border rounded-lg text-foreground placeholder:text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 ${e}`})}function u({value:e,onChange:t,placeholder:r,disabled:l,className:i="",size:d="md"}){let[c,u]=(0,s.useState)(!1),m="sm"===d;return(0,n.jsxs)("div",{className:`flex items-center border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring overflow-hidden ${i}`,children:[(0,n.jsx)("input",{type:c?"text":"password",value:e,onChange:e=>t(e.target.value),placeholder:r??"••••••••",disabled:l,className:`flex-1 bg-transparent text-foreground placeholder:text-muted-foreground outline-none disabled:opacity-50 ${m?"px-2.5 py-1.5 text-xs font-mono":"px-3 py-2 text-sm"}`}),!!e&&(0,n.jsx)("button",{type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:()=>u(e=>!e),disabled:l,className:`shrink-0 text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50 ${m?"p-1.5":"p-2"}`,title:c?"Hide":"Show",children:c?(0,n.jsx)(a.A,{size:m?14:16}):(0,n.jsx)(o.A,{size:m?14:16})})]})}function m({value:e,onChange:t,children:r,className:a="",disabled:o,size:d="md"}){let c=(0,s.useId)(),[u,m]=(0,s.useState)(!1),[p,f]=(0,s.useState)(-1),x=(0,s.useRef)(null),b=(0,s.useRef)(null),g=(0,s.useMemo)(()=>s.Children.toArray(r).filter(e=>s.isValidElement(e)&&"option"===e.type).map(e=>({value:String(e.props.value??""),label:String(e.props.children??e.props.value??"")})),[r]),h=g.findIndex(t=>t.value===e),v=g[h]?.label??"";(0,s.useEffect)(()=>{if(!u)return;let e=e=>{x.current&&!x.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,s.useEffect)(()=>{if(u&&b.current&&p>=0){let e=b.current.children[p];e?.scrollIntoView({block:"nearest"})}},[u,p]);let w=(0,s.useCallback)(e=>{e>=0&&e<g.length&&(t?.({target:{value:g[e].value}}),m(!1))},[g,t]),y=(0,s.useCallback)(e=>{if(!u){["Enter"," ","ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),m(!0),f(h>=0?h:0));return}switch(e.key){case"ArrowDown":e.preventDefault(),f(e=>Math.min(e+1,g.length-1));break;case"ArrowUp":e.preventDefault(),f(e=>Math.max(e-1,0));break;case"Enter":case" ":e.preventDefault(),w(p);break;case"Escape":e.preventDefault(),m(!1);break;case"Tab":m(!1)}},[u,g.length,h,p,w]);return(0,n.jsxs)("div",{ref:x,className:`relative ${a}`,children:[(0,n.jsxs)("button",{type:"button",disabled:o,onClick:()=>{m(e=>!e),f(h>=0?h:0)},onKeyDown:y,"aria-haspopup":"listbox","aria-expanded":u,className:`${"sm"===d?"px-1.5 py-0.5 text-xs rounded cursor-pointer":"w-full px-3 py-2 text-sm rounded-lg"} bg-background border border-border text-foreground text-left flex items-center justify-between gap-2 outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed`,children:[(0,n.jsx)("span",{className:`truncate ${v?"":"text-muted-foreground"}`,children:v||"—"}),(0,n.jsx)(l.A,{size:"sm"===d?10:14,className:`shrink-0 text-muted-foreground transition-transform duration-150 ${u?"rotate-180":""}`})]}),u&&(0,n.jsx)("div",{ref:b,role:"listbox","aria-activedescendant":p>=0?`${c}-opt-${p}`:void 0,className:`absolute z-20 ${"sm"===d?"min-w-[8rem]":"w-full"} mt-1 py-1 border border-border rounded-lg bg-card shadow-lg max-h-60 overflow-auto animate-in fade-in-0 zoom-in-95 duration-100`,children:g.map((t,r)=>{let s=t.value===e,a=r===p;return(0,n.jsxs)("button",{id:`${c}-opt-${r}`,role:"option","aria-selected":s,type:"button",onMouseDown:e=>{e.preventDefault(),w(r)},onMouseEnter:()=>f(r),className:`w-full ${"sm"===d?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} text-left flex items-center gap-2 transition-colors ${a?"bg-accent text-accent-foreground":"text-foreground"}`,children:[(0,n.jsx)(i.A,{size:"sm"===d?10:14,className:`shrink-0 ${s?"text-[var(--amber)]":"invisible"}`}),(0,n.jsx)("span",{className:"truncate",children:t.label})]},t.value)})})]})}function p({overridden:e}){return e?(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-[var(--amber-subtle)] text-[var(--amber-text)] font-mono ml-1.5",children:"env"}):null}function f({checked:e,onChange:t,size:r="md",disabled:s,title:a,onClick:o}){let l="sm"===r;return(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:s,title:a,onClick:o??(()=>t?.(!e)),className:`relative inline-flex shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 ${l?"h-4 w-7":"h-5 w-9"} ${e?"bg-[var(--amber)]":"bg-muted"}`,children:(0,n.jsx)("span",{className:`pointer-events-none inline-block rounded-full bg-white shadow-sm transition-transform ${l?"h-3 w-3":"h-4 w-4"} ${e?l?"translate-x-3":"translate-x-4":"translate-x-0"}`})})}function x({children:e,disabled:t,onClick:r,type:s="button",className:a="",...o}){return(0,n.jsx)("button",{type:s,onClick:r,disabled:t,className:`px-4 py-2 text-sm font-medium rounded-lg bg-[var(--amber)] text-[var(--amber-foreground)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed ${a}`,...o,children:e})}function b({icon:e,title:t,description:r,badge:s,children:a,className:o=""}){return(0,n.jsxs)("div",{className:`rounded-xl border border-border/50 bg-card/50 p-5 ${o}`,children:[(0,n.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0 mt-0.5",children:(0,n.jsx)("span",{className:"text-muted-foreground",children:e})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:t}),s]}),r&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:r})]})]}),(0,n.jsx)("div",{className:"space-y-4 pl-11",children:a})]})}function g({label:e,hint:t,children:r}){return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"text-sm text-foreground",children:e}),t&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:t})]}),(0,n.jsx)("div",{className:"shrink-0",children:r})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5152],{79455:(e,r,t)=>{t.d(r,{B1:()=>s,X8:()=>l,dV:()=>d,oR:()=>c});let o=[],n=[],i=0;function a(){for(let e of n)e()}function s(e){return n=[...n,e],()=>{n=n.filter(r=>r!==e)}}function d(){return o}function l(e){o=o.filter(r=>r.id!==e),a()}function u(e){let r=`toast-${++i}`,t={id:r,message:e.message,type:e.type??"info",duration:e.duration??2e3,action:e.action};o=[...o,t].slice(-3),a(),t.duration>0&&setTimeout(()=>l(r),t.duration)}function c(e,r){u({message:e,...r})}c.success=(e,r)=>u({message:e,type:"success",duration:r}),c.undo=(e,r,t)=>u({message:e,type:"info",duration:t?.duration??5e3,action:{label:t?.label??"Undo",onClick:r}}),c.error=(e,r)=>u({message:e,type:"error",duration:r}),c.copy=(e="Copied")=>u({message:e,type:"success",duration:1500})},84734:(e,r,t)=>{t.d(r,{BK:()=>j,DO:()=>c,KF:()=>l,Mv:()=>m,TM:()=>y,ZC:()=>k,lx:()=>h,md:()=>u,pp:()=>f,rA:()=>b});var o=t(66839),n=t(72799),i=t(44361),a=t(73601),s=t(44223),d=t(84747);function l({active:e,label:r,onClick:t}){return(0,o.jsx)("button",{type:"button",onClick:t,"aria-pressed":e,className:`relative px-2.5 min-h-[28px] rounded text-xs cursor-pointer transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${e?"bg-[var(--amber-dim)] text-[var(--amber-text)] font-medium shadow-[0_1px_2px_rgba(200,135,58,0.08)]":"text-muted-foreground hover:text-foreground hover:bg-muted/60"}`,children:r})}function u({tone:e,label:r,count:t}){return(0,o.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,o.jsx)("span",{className:`w-2 h-2 rounded-full ${"ok"===e?"bg-[var(--success)]":"warn"===e?"bg-[var(--amber)]":"bg-muted-foreground/60"}`,"aria-hidden":"true"}),(0,o.jsx)("span",{className:"text-xs",children:r}),(0,o.jsx)("span",{className:`tabular-nums font-medium ${"ok"===e?"text-foreground":"warn"===e?"text-[var(--amber)]":"text-muted-foreground"}`,children:t})]})}function c({value:e,onChange:r,placeholder:t,ariaLabel:i,icon:a}){return(0,o.jsxs)("label",{className:"relative block group/search",children:[(0,o.jsx)(a,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground/60 group-focus-within/search:text-[var(--amber)] pointer-events-none transition-colors duration-150"}),(0,o.jsx)("input",{value:e,onChange:e=>r(e.target.value),placeholder:t,"aria-label":i,className:"w-full h-9 rounded-lg border border-border bg-background pl-9 pr-8 text-sm text-foreground placeholder:text-muted-foreground/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--amber)]/30 focus-visible:border-[var(--amber)]/40 transition-all duration-150"}),e.length>0&&(0,o.jsx)("button",{type:"button",onClick:()=>r(""),"aria-label":"Clear search",className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-0.5 rounded-full text-muted-foreground hover:text-foreground hover:bg-muted cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors duration-150",children:(0,o.jsx)(n.A,{size:13})})]})}function b({onClick:e,disabled:r,busy:t,label:n,busyLabel:a,variant:s="default"}){return(0,o.jsxs)("button",{type:"button",onClick:e,disabled:r,"aria-busy":t,className:`inline-flex items-center justify-center gap-1.5 text-2xs min-h-[28px] px-2.5 rounded-md cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-150 ${{default:"border border-border hover:bg-muted",primary:"bg-[var(--amber)] text-[var(--amber-foreground)] hover:bg-[var(--amber)]/90"}[s]}`,children:[t&&(0,o.jsx)(i.A,{size:12,className:"animate-spin","aria-hidden":"true"}),t?a??n:n]})}function m({message:e}){return e?(0,o.jsx)("span",{role:"status","aria-live":"polite",className:"text-2xs text-muted-foreground animate-in fade-in duration-200",children:e}):null}function f({message:e,icon:r,className:t}){return(0,o.jsxs)("div",{className:`rounded-xl border border-border/40 bg-card/30 p-10 text-center ${t??""}`,children:[r&&(0,o.jsx)("div",{className:"w-10 h-10 rounded-full bg-muted/50 flex items-center justify-center mx-auto mb-3 text-muted-foreground/40",children:r}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:e})]})}let g=[["bg-rose-100/70 dark:bg-rose-900/30","border-rose-300/50 dark:border-rose-700/40","text-rose-600/80 dark:text-rose-400/80"],["bg-violet-100/70 dark:bg-violet-900/30","border-violet-300/50 dark:border-violet-700/40","text-violet-600/80 dark:text-violet-400/80"],["bg-emerald-100/70 dark:bg-emerald-900/30","border-emerald-300/50 dark:border-emerald-700/40","text-emerald-600/80 dark:text-emerald-400/80"],["bg-sky-100/70 dark:bg-sky-900/30","border-sky-300/50 dark:border-sky-700/40","text-sky-600/80 dark:text-sky-400/80"],["bg-amber-100/70 dark:bg-amber-900/30","border-amber-300/50 dark:border-amber-700/40","text-amber-700/80 dark:text-amber-400/80"],["bg-teal-100/70 dark:bg-teal-900/30","border-teal-300/50 dark:border-teal-700/40","text-teal-600/80 dark:text-teal-400/80"],["bg-pink-100/70 dark:bg-pink-900/30","border-pink-300/50 dark:border-pink-700/40","text-pink-600/80 dark:text-pink-400/80"],["bg-indigo-100/70 dark:bg-indigo-900/30","border-indigo-300/50 dark:border-indigo-700/40","text-indigo-600/80 dark:text-indigo-400/80"],["bg-lime-100/70 dark:bg-lime-900/30","border-lime-300/50 dark:border-lime-700/40","text-lime-700/80 dark:text-lime-400/80"],["bg-fuchsia-100/70 dark:bg-fuchsia-900/30","border-fuchsia-300/50 dark:border-fuchsia-700/40","text-fuchsia-600/80 dark:text-fuchsia-400/80"],["bg-cyan-100/70 dark:bg-cyan-900/30","border-cyan-300/50 dark:border-cyan-700/40","text-cyan-600/80 dark:text-cyan-400/80"],["bg-orange-100/70 dark:bg-orange-900/30","border-orange-300/50 dark:border-orange-700/40","text-orange-600/80 dark:text-orange-400/80"]];function x(e){let r=0;for(let t=0;t<e.length;t++)r=31*r+e.charCodeAt(t)|0;return Math.abs(r)}function p(e){let r=e.split(/[\s\-_]+/).filter(Boolean);return r.length>=2?(r[0][0]+r[1][0]).toUpperCase():e.slice(0,2).toUpperCase()}let v={"claude-code":"claude",claude:"claude",cursor:"cursor",windsurf:"windsurf",codex:"openai","github-copilot":"github-copilot",copilot:"github-copilot","gemini-cli":"google",gemini:"google",antigravity:"google"};function h({name:e,status:r,size:t="md",onRemove:i,href:a}){let s,[d,l,u]=g[x(e)%g.length],c="connected"===r?"bg-[var(--success)]":"detected"===r?"bg-[var(--amber)]":"bg-muted-foreground",b=v[s=e.trim().toLowerCase().replace(/\+/g,"plus").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")]?v[s]:s.includes("claude")?"claude":s.includes("cursor")?"cursor":s.includes("windsurf")?"windsurf":s.includes("codex")?"openai":s.includes("copilot")?"github-copilot":s.includes("gemini")||s.includes("google")?"google":null;return(0,o.jsxs)("div",{className:"relative group/avatar",title:e,children:[(0,o.jsx)("div",{className:`${"sm"===t?"w-7 h-7 text-[10px]":"w-9 h-9 text-xs"} ${d} ${l} ${u} border rounded-full flex items-center justify-center font-semibold select-none shadow-sm dark:shadow-none`,children:b?(0,o.jsx)("img",{src:`/agent-icons/${b}.svg`,alt:"","aria-hidden":"true",className:`${"sm"===t?"w-3.5 h-3.5":"w-5 h-5"} object-contain opacity-90`}):p(e)}),r&&(0,o.jsx)("span",{className:`absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border-2 border-card ${c}`,"aria-hidden":"true"}),i&&(0,o.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),i()},className:"absolute -top-1 -right-1 w-4 h-4 rounded-full bg-destructive text-destructive-foreground flex items-center justify-center opacity-0 scale-75 group-hover/avatar:opacity-100 group-hover/avatar:scale-100 transition-all duration-150 cursor-pointer focus-visible:opacity-100 focus-visible:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":`Remove ${e}`,children:(0,o.jsx)(n.A,{size:9})})]})}function k({onClick:e,label:r,size:t="md"}){return(0,o.jsx)("button",{type:"button",onClick:e,title:r,"aria-label":r,className:`${"sm"===t?"w-7 h-7":"w-9 h-9"} rounded-full border-2 border-dashed border-border flex items-center justify-center text-muted-foreground hover:text-foreground hover:border-foreground/30 hover:bg-muted cursor-pointer transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,o.jsx)(a.A,{size:14})})}function y({open:e,title:r,message:t,confirmLabel:n,cancelLabel:i,onConfirm:a,onCancel:l,variant:u="destructive"}){let c=(0,s.useRef)(null),b=(0,s.useRef)(null);return((0,d.r)(b,e),(0,s.useEffect)(()=>{e&&c.current?.focus()},[e]),(0,s.useEffect)(()=>{if(e)return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r);function r(e){"Escape"===e.key&&l()}},[e,l]),e)?(0,o.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",role:"alertdialog","aria-modal":"true","aria-labelledby":"confirm-dialog-title",children:[(0,o.jsx)("div",{className:"absolute inset-0 overlay-backdrop",onClick:l,"aria-hidden":"true"}),(0,o.jsxs)("div",{ref:b,className:"relative bg-card border border-border rounded-lg shadow-xl p-5 max-w-sm w-full mx-4 animate-in fade-in zoom-in-95 duration-200",children:[(0,o.jsx)("h3",{id:"confirm-dialog-title",className:"text-sm font-medium text-foreground mb-1.5",children:r}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground mb-4 leading-relaxed",children:t}),(0,o.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,o.jsx)("button",{ref:c,type:"button",onClick:l,className:"px-3 min-h-[32px] text-sm rounded-md border border-border hover:bg-muted cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors duration-150",children:i}),(0,o.jsx)("button",{type:"button",onClick:a,className:`px-3 min-h-[32px] text-sm rounded-md cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors duration-150 ${"destructive"===u?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"bg-[var(--amber)] text-[var(--amber-foreground)] hover:bg-[var(--amber)]/90"}`,children:n})]})]})]}):null}function j({open:e,agents:r,emptyLabel:t,onSelect:n,onClose:i}){let a=(0,s.useRef)(null);return((0,s.useEffect)(()=>{if(e)return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r);function r(e){a.current&&!a.current.contains(e.target)&&i()}},[e,i]),(0,s.useEffect)(()=>{if(e)return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r);function r(e){"Escape"===e.key&&i()}},[e,i]),e)?(0,o.jsx)("div",{ref:a,className:"absolute right-0 top-full mt-1 z-30 w-56 rounded-lg border border-border bg-card shadow-lg animate-in fade-in slide-in-from-top-1 duration-150",children:0===r.length?(0,o.jsx)("p",{className:"px-3 py-2.5 text-xs text-muted-foreground",children:t}):(0,o.jsx)("div",{className:"py-1 max-h-48 overflow-y-auto",children:r.map(e=>(0,o.jsxs)("button",{type:"button",onClick:()=>n(e.key),className:"w-full text-left px-3 py-2 text-xs text-foreground hover:bg-muted cursor-pointer flex items-center gap-2 transition-colors duration-100",children:[(()=>{let[r,t,n]=g[x(e.name)%g.length];return(0,o.jsx)("div",{className:`w-6 h-6 rounded-full border ${r} ${t} ${n} flex items-center justify-center text-[9px] font-semibold shrink-0`,children:p(e.name)})})(),e.name]},e.key))})}):null}},84747:(e,r,t)=>{t.d(r,{r:()=>n});var o=t(44223);function n(e,r=!0){(0,o.useEffect)(()=>{if(!r||!e.current)return;let t=r=>{if("Tab"!==r.key)return;let t=e.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t||0===t.length)return;let o=t[0],n=t[t.length-1],i=document.activeElement;r.shiftKey?i===o&&(r.preventDefault(),n.focus()):i===n&&(r.preventDefault(),o.focus())},o=e.current;return o.addEventListener("keydown",t),()=>o.removeEventListener("keydown",t)},[e,r])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[577],{13229:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(73015).A)("footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]])},20577:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var r=s(66839),n=s(56261),l=s(13229),a=s(32959),i=s(55798),o=s(18704),d=s(86146),c=s(44223);let u=(0,s(73015).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var x=s(21082),m=s(78132),f=s(65264),h=s(2073);function g(){let[e,t]=(0,c.useState)(null),[s,n]=(0,c.useState)([]),[l,a]=(0,c.useState)(!0),{t:i}=(0,h.Y)();return((0,c.useEffect)(()=>{let e=async()=>{try{a(!0);let[e,s,r]=await Promise.all([(0,f.n)("/api/monitoring"),(0,f.n)("/api/changes?op=list&limit=3"),(0,f.n)("/api/ask-sessions")]);t({fileCount:e?.knowledgeBase?.fileCount??0,unreadChanges:s?.events?.length??0,sessionCount:Array.isArray(r)?r.length:0}),n((s?.events??[]).slice(0,3))}catch(e){console.warn("[EchoSidebarStats] Failed to load stats:",e),t({fileCount:0,unreadChanges:0,sessionCount:0}),n([])}finally{a(!1)}};e();let s=setInterval(e,1e4);return()=>clearInterval(s)},[]),l||!e)?(0,r.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:(0,r.jsx)("div",{className:"h-2 w-20 bg-muted rounded animate-pulse"})}):(0,r.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-3 border-t border-border",children:[(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center p-1.5 rounded bg-muted/40 hover:bg-muted/60 transition-colors cursor-default",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.fileCount}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:"Files"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center p-1.5 rounded bg-muted/40 hover:bg-muted/60 transition-colors cursor-default",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.unreadChanges}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:"Changes"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center p-1.5 rounded bg-muted/40 hover:bg-muted/60 transition-colors cursor-default",children:[(0,r.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.sessionCount}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:"Chats"})]})]}),s.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("div",{className:"text-xs font-medium text-muted-foreground px-0.5",children:"Recent"}),s.map(e=>{let t=function(e){try{let t=new Date(e),s=new Date().getTime()-t.getTime(),r=Math.floor(s/6e4),n=Math.floor(s/36e5),l=Math.floor(s/864e5);if(r<1)return"now";if(r<60)return`${r}m ago`;if(n<24)return`${n}h ago`;if(l<7)return`${l}d ago`;return t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}catch{return"recently"}}(e.ts),s=function(e){switch(e){case"create":return(0,r.jsx)(u,{size:12,className:"text-success"});case"write":case"append":return(0,r.jsx)(x.A,{size:12,className:"text-foreground"});case"delete":return(0,r.jsx)(x.A,{size:12,className:"text-destructive"});case"rename":case"move":return(0,r.jsx)(m.A,{size:12,className:"text-muted-foreground"});default:return(0,r.jsx)(x.A,{size:12,className:"text-muted-foreground"})}}(e.op),n=e.path.split("/").pop()||e.path;return(0,r.jsxs)("div",{className:"flex items-start gap-2 p-1.5 rounded hover:bg-muted/40 transition-colors text-xs",children:[(0,r.jsx)("span",{className:"text-muted-foreground shrink-0 mt-0.5",children:s}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"text-foreground truncate font-medium",title:n,children:n}),(0,r.jsx)("p",{className:"text-muted-foreground text-2xs",children:t})]})]},e.id)})]})]})}var p=s(85130);function v({active:e,maximized:t,onMaximize:s}){let{t:c}=(0,h.Y)(),u=c.panels.echo,x=(0,n.usePathname)()??"",m={imprint:{icon:(0,r.jsx)(l.A,{size:14}),title:u.imprintTitle},growth:{icon:(0,r.jsx)(a.A,{size:14}),title:u.growthTitle},self:{icon:(0,r.jsx)(i.A,{size:14}),title:u.selfTitle}};return(0,r.jsxs)("div",{className:`flex flex-col h-full ${e?"":"hidden"}`,children:[(0,r.jsx)(o.A,{title:u.title,maximized:t,onMaximize:s}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto min-h-0 flex flex-col",children:[(0,r.jsx)("div",{className:"flex flex-col gap-0.5 py-1.5",children:p.RS.map(e=>{let t=m[e],s=p.AI[e],n=x===s||x.startsWith(`${s}/`);return(0,r.jsx)(d.G,{href:s,icon:t.icon,title:t.title,active:n},e)})}),(0,r.jsx)("div",{className:"mt-auto",children:(0,r.jsx)(g,{})})]})]})}},85130:(e,t,s)=>{s.d(t,{AI:()=>n,RS:()=>r});let r=["imprint","growth","self"],n={imprint:"/echo/imprint",growth:"/echo/growth",self:"/echo/self"}},86146:(e,t,s)=>{s.d(t,{G:()=>o,M:()=>d});var r=s(66839),n=s(18016),l=s.n(n),a=s(98327),i=s(58221);function o({icon:e,title:t,subtitle:s,badge:n,href:o,onClick:d,active:c}){let u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e}),(0,r.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,r.jsx)("span",{className:"block text-left text-sm font-medium text-foreground truncate",title:t,children:t}),s?(0,r.jsx)("span",{className:"block text-left text-2xs text-muted-foreground truncate",title:s,children:s}):null]}),n,(0,r.jsx)(a.A,{size:14,className:"shrink-0 text-muted-foreground"})]}),x=!!c,m=(0,i.cn)("relative flex items-center gap-3 py-2.5 transition-[background-color] duration-150 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",x?"bg-[var(--amber-dim)]/40 pl-3.5 pr-4 text-foreground":"px-4",!x&&"cursor-pointer hover:bg-muted/50",x&&"cursor-default"),f=x?(0,r.jsx)("span",{className:"pointer-events-none absolute bottom-[22%] left-0 top-[22%] w-0.5 rounded-r-full bg-[var(--amber)]","aria-hidden":!0}):null;return o?(0,r.jsxs)(l(),{href:o,className:m,"aria-current":c?"page":void 0,children:[f,u]}):(0,r.jsxs)("button",{type:"button",onClick:d,className:(0,i.cn)(m,"w-full"),children:[f,u]})}function d({label:e}){return(0,r.jsx)("span",{className:"text-2xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground shrink-0",children:e})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5913],{10500:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},13591:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},21036:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},25208:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},38125:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},40517:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},42973:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]])},46884:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]])},47533:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]])},52285:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var d=t(66839),l=t(92258);function h({open:e,onClose:a,initialTab:t}){return(0,d.jsx)("div",{style:{display:e?void 0:"none"},children:(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-end md:items-start justify-center md:pt-[10vh] modal-backdrop",onClick:e=>e.target===e.currentTarget&&a(),children:(0,d.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"Settings",className:"w-full md:max-w-3xl md:mx-4 bg-card border-t md:border border-border rounded-t-2xl md:rounded-xl shadow-2xl flex flex-col h-[88vh] md:h-[80vh] md:max-h-[85vh]",children:(0,d.jsx)(l.default,{visible:e,variant:"modal",onClose:a,initialTab:t})})})})}},71481:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("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"}]])},73033:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("shield-check",[["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:"m9 12 2 2 4-4",key:"dzmm74"}]])},82296:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},95156:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("a-large-small",[["path",{d:"m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16",key:"xik6mr"}],["path",{d:"M15.697 14h5.606",key:"1stdlc"}],["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}]])},95333:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]])},96733:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("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"}]])},97786:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},98480:(e,a,t)=>{t.d(a,{A:()=>d});let d=(0,t(73015).A)("shield",[["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"}]])}}]);
@@ -0,0 +1,7 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[596],{7625:(e,t,s)=>{s.d(t,{A:()=>x});var n=s(66839),r=s(44223),a=s(31082),i=s(72799),o=s(44361),l=s(21082),c=s(38688),d=s(2073);function x({open:e,onClose:t,onDiscover:s,discovering:x,error:u}){let{t:m}=(0,d.Y)(),p=m.panels.agents,[g,h]=(0,r.useState)(""),[f,b]=(0,r.useState)(null);if(!e)return null;let v=async()=>{if(!g.trim()||x)return;b(null);let e=await s(g.trim());e&&b(e)},y=()=>{h(""),b(null),t()};return(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center overlay-backdrop",onClick:y,children:(0,n.jsxs)("div",{className:"bg-popover border border-border rounded-xl shadow-lg w-full max-w-md mx-4 p-5",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":p.a2aDiscover,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,n.jsx)(a.A,{size:15,className:"text-muted-foreground"}),p.a2aDiscover]}),(0,n.jsx)("button",{type:"button",onClick:y,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Close",children:(0,n.jsx)(i.A,{size:14})})]}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground mb-3",children:p.a2aDiscoverHint}),(0,n.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,n.jsx)("input",{type:"url",value:g,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&v(),"Escape"===e.key&&t()},placeholder:p.a2aDiscoverPlaceholder,disabled:x,className:"flex-1 px-3 py-2 text-xs rounded-lg border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",autoFocus:!0}),(0,n.jsxs)("button",{type:"button",onClick:v,disabled:x||!g.trim(),className:"px-3 py-2 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 disabled:opacity-50 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center gap-1.5 shrink-0",children:[x&&(0,n.jsx)(o.A,{size:12,className:"animate-spin"}),x?p.a2aDiscovering:p.a2aDiscover]})]}),u&&!f&&(0,n.jsx)("div",{className:"rounded-lg border border-error/30 bg-error/5 px-3 py-2.5 mb-3",children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(l.A,{size:14,className:"text-error mt-0.5 shrink-0"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-xs font-medium text-error",children:p.a2aDiscoverFailed}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground mt-0.5",children:p.a2aDiscoverFailedHint})]})]})}),f&&(0,n.jsx)("div",{className:"rounded-lg border border-success/30 bg-success/5 px-3 py-2.5",children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(c.A,{size:14,className:"text-success mt-0.5 shrink-0"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"text-xs font-medium text-success mb-1.5",children:p.a2aDiscoverSuccess}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsxs)("p",{className:"text-xs font-medium text-foreground truncate",title:f.card.name,children:[f.card.name,(0,n.jsxs)("span",{className:"text-2xs text-muted-foreground ml-1.5",children:["v",f.card.version]})]}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:f.card.description,children:f.card.description}),f.card.skills.length>0&&(0,n.jsxs)("div",{className:"mt-1.5",children:[(0,n.jsxs)("p",{className:"text-2xs text-muted-foreground mb-1",children:[p.a2aSkills,":"]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1",children:f.card.skills.map(e=>(0,n.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:e.description,children:e.name},e.id))})]}),(0,n.jsxs)("p",{className:"text-2xs text-muted-foreground mt-1 truncate",title:f.endpoint,children:[p.a2aEndpoint,": ",f.endpoint]})]})]})]})})]})})}},30626:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(73015).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},41209:(e,t,s)=>{s.d(t,{P:()=>n,u:()=>r});let n=[{id:"telegram",name:"Telegram",icon:"\uD83D\uDCF1",guide:"1. Open Telegram → search @BotFather\n2. Send /newbot → follow prompts\n3. Copy the token below",purpose:"Receive MindOS notifications and quick updates in Telegram.",purposeZh:"通过 Telegram 接收 MindOS 的通知和快速更新。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. chat ID like 123456789 or -1001234567890",recipientExampleZh:"例如 123456789 或 -1001234567890 这样的 chat ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"123456789:AABBccDD-EeFfGgHh...",hint:"Format: number:alphanumeric"}]},{id:"feishu",name:"Feishu",icon:"\uD83D\uDC26",guide:"1. open.feishu.cn → Create App\n2. Credentials page → copy App ID & Secret\n3. Enable Bot capability + add permissions",guideUrl:"https://open.feishu.cn/",editHint:"Need to update credentials? Edit and save below — MindOS will reconnect automatically.",purpose:"Receive MindOS results in Feishu, or let users message the bot directly when conversations are enabled.",purposeZh:"通过飞书接收 MindOS 的结果;开启对话后,也可以让用户直接在飞书里给机器人发消息。",useCases:["Agent completion alerts","Error notifications","Test messages","Direct bot conversations in Feishu"],useCasesZh:["Agent 完成提醒","错误通知","测试消息","在飞书里直接与机器人对话"],recipientExample:"e.g. ou_xxx, oc_xxx, or a work email",recipientExampleZh:"例如 ou_xxx、oc_xxx,或企业邮箱",fields:[{key:"app_id",label:"App ID",placeholder:"CLI_XXXXXXXXXXXXXXXXX",hint:"From Credentials page on open.feishu.cn"},{key:"app_secret",label:"App Secret",placeholder:"XXXXXXXXXXXXXXXXXXXXXXXX",hint:"Keep this secret — do not share"}]},{id:"discord",name:"Discord",icon:"\uD83D\uDCAC",guide:"1. discord.com/developers → New Application\n2. Bot tab → Reset Token → copy\n3. Enable Message Content Intent",purpose:"Send MindOS updates into Discord channels and DMs.",purposeZh:"把 MindOS 的更新发送到 Discord 频道或私信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. Discord channel or user ID",recipientExampleZh:"例如 Discord 频道 ID 或用户 ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"MTIxNzM..."}]},{id:"slack",name:"Slack",icon:"\uD83D\uDCBC",guide:"1. api.slack.com/apps → Create New App\n2. OAuth & Permissions → add chat:write scope\n3. Install to Workspace → copy Bot Token",purpose:"Route MindOS notifications into Slack channels and direct messages.",purposeZh:"把 MindOS 的通知发送到 Slack 频道或私信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. Slack channel or user ID like C123... or U123...",recipientExampleZh:"例如 Slack 频道 ID 或用户 ID(如 C123... / U123...)",fields:[{key:"bot_token",label:"Bot Token",placeholder:"xoxb-xxxx-xxxx-xxxx",hint:"Starts with xoxb-"}]},{id:"wecom",name:"WeCom",icon:"\uD83C\uDFE2",guide:"1. Group chat → Add Robot → Custom\n2. Copy Webhook URL\n3. Extract the key parameter from URL",purpose:"Deliver MindOS notifications into WeCom group chats.",purposeZh:"把 MindOS 通知投递到企业微信群聊。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use your configured robot or WeCom target",recipientExampleZh:"使用你配置好的机器人或企业微信目标",fields:[{key:"webhook_key",label:"Webhook Key",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",hint:"The key= value from webhook URL"}]},{id:"dingtalk",name:"DingTalk",icon:"\uD83D\uDD14",guide:"1. Group → Settings → Smart Assistant → Add Robot\n2. Select Custom (Webhook)\n3. Copy the full Webhook URL",purpose:"Push MindOS notifications into DingTalk groups.",purposeZh:"把 MindOS 通知发送到钉钉群。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use your configured DingTalk robot target",recipientExampleZh:"使用你配置好的钉钉机器人目标",fields:[{key:"webhook_url",label:"Webhook URL",placeholder:"https://oapi.dingtalk.com/robot/send?access_token=...",hint:"Full URL including access_token"}]},{id:"wechat",name:"WeChat",icon:"\uD83D\uDC9A",guide:"1. Visit ilinkai.weixin.qq.com\n2. Register & create a bot application\n3. QR login in the console → copy Bot Token from dashboard",purpose:"Send MindOS updates to WeChat via your configured bot.",purposeZh:"通过你配置好的机器人把 MindOS 更新发送到微信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use the WeChat user or chat ID supported by your bot",recipientExampleZh:"使用你的机器人支持的微信用户或群聊 ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"wx_xxxxxxxxxxxxxxxx",hint:"From iLink Bot console after QR login"}]},{id:"qq",name:"QQ",icon:"\uD83D\uDC27",guide:"1. q.qq.com → Create Bot\n2. Development tab → copy App ID & Secret\n3. Add group/C2C intents as needed",purpose:"Deliver MindOS notifications through QQ bot channels.",purposeZh:"通过 QQ 机器人频道接收 MindOS 通知。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use the QQ openid or group_openid for your target",recipientExampleZh:"使用目标 QQ 的 openid 或 group_openid",fields:[{key:"app_id",label:"App ID",placeholder:"102xxxxxx"},{key:"app_secret",label:"App Secret",placeholder:"xxxxxxxxxxxxxxxxxxxxxxxx"}]}];function r(e){return n.find(t=>t.id===e)}},51117:(e,t,s)=>{s.d(t,{V:()=>r});var n=s(44223);function r(){let[e,t]=(0,n.useState)([]),[s,r]=(0,n.useState)(!1),[a,i]=(0,n.useState)(null),o=(0,n.useCallback)(async e=>{r(!0),i(null);try{let s=await fetch("/api/a2a/discover",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),n=await s.json();if(n.agent)return t(e=>e.some(e=>e.id===n.agent.id)?e.map(e=>e.id===n.agent.id?n.agent:e):[...e,n.agent]),n.agent;return i(n.error||"Discovery failed"),null}catch(e){return i(e.message),null}finally{r(!1)}},[]);return{agents:e,discovering:s,error:a,discover:o,remove:(0,n.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),refresh:(0,n.useCallback)(()=>{t([]),i(null)},[])}}},70596:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Z});var n=s(66839),r=s(44223),a=s(56261),i=s(67885),o=s(44361),l=s(31082),c=s(77932),d=s(20677),x=s(51117),u=s(2073),m=s(18704);let p=(0,s(73015).A)("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"}]]);var g=s(30626),h=s(29696),f=s(78132),b=s(86146);function v({copy:e,connectedCount:t,mcpEnabled:s=!0,channelsActive:r=!1,onChannelsClick:i}){let o=(0,a.usePathname)(),c=(0,a.useSearchParams)().get("tab"),d="/agents"===o,x=!r;return(0,n.jsxs)("div",{className:"py-2",children:[(0,n.jsx)(b.G,{icon:(0,n.jsx)(p,{size:14,className:x&&d&&(null===c||"overview"===c)?"text-[var(--amber)]":"text-muted-foreground"}),title:e.navOverview,badge:(0,n.jsx)("span",{className:"text-2xs tabular-nums text-muted-foreground/60 px-1.5 py-0.5 rounded bg-muted/40 font-medium",children:t}),href:"/agents",active:x&&d&&(null===c||"overview"===c)}),s&&(0,n.jsx)(b.G,{icon:(0,n.jsx)(g.A,{size:14,className:x&&d&&"mcp"===c?"text-[var(--amber)]":"text-muted-foreground"}),title:e.navMcp,href:"/agents?tab=mcp",active:x&&d&&"mcp"===c}),(0,n.jsx)(b.G,{icon:(0,n.jsx)(h.A,{size:14,className:x&&d&&"skills"===c?"text-[var(--amber)]":"text-muted-foreground"}),title:e.navSkills,href:"/agents?tab=skills",active:x&&d&&"skills"===c}),(0,n.jsx)(b.G,{icon:(0,n.jsx)(f.A,{size:14,className:r?"text-[var(--amber)]":"text-muted-foreground"}),title:e.navChannels,onClick:i,active:r}),(0,n.jsx)(b.G,{icon:(0,n.jsx)(l.A,{size:14,className:x&&d&&"a2a"===c?"text-[var(--amber)]":"text-muted-foreground"}),title:e.navNetwork,href:"/agents?tab=a2a",active:x&&d&&"a2a"===c})]})}var y=s(72615),j=s(98327),k=s(18016),N=s.n(k),A=s(76723),w=s(98479),C=s(84734);function S({agent:e,agentStatus:t,selected:s=!1,detailHref:r,onInstallAgent:a,copy:i,isA2aReady:o=!1,a2aTooltip:c}){return(0,n.jsxs)("div",{className:`
2
+ group flex items-center gap-0 rounded-xl border transition-all duration-150
3
+ ${s?"border-border ring-2 ring-ring/50 bg-[var(--amber-dim)]/45":"border-border/70 bg-card/50 hover:border-border hover:bg-muted/25"}
4
+ `,children:[(0,n.jsxs)(N(),{href:r,className:"flex flex-1 min-w-0 items-center gap-2.5 text-left rounded-xl pl-2.5 pr-2 py-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,n.jsx)(C.lx,{name:e.name,status:t,size:"sm"}),(0,n.jsx)("span",{className:"text-sm font-medium text-foreground truncate leading-tight",children:e.name}),"connected"===t&&e.transport&&(0,n.jsx)("span",{className:"text-2xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-muted/90 text-muted-foreground shrink-0 border border-border/50",children:e.transport}),o&&(0,n.jsx)("span",{title:c,className:"shrink-0 text-muted-foreground/70",children:(0,n.jsx)(l.A,{size:12})}),(0,n.jsx)("span",{className:"flex-1 min-w-[4px]"}),(0,n.jsx)(j.A,{size:15,className:`shrink-0 transition-opacity duration-150 ${s?"text-[var(--amber)] opacity-90":"text-muted-foreground/45 group-hover:text-muted-foreground/80"}`,"aria-hidden":!0})]}),"detected"===t&&(0,n.jsx)("div",{className:"pr-2 py-2 shrink-0",children:(0,n.jsx)(D,{agentKey:e.key,agentName:e.name,onInstallAgent:a,copy:i})})]})}function D({agentKey:e,agentName:t,onInstallAgent:s,copy:a}){let[i,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)("idle"),x=async t=>{if(t.stopPropagation(),i)return;l(!0),d("idle");let n=await s(e);l(!1),d(n?"success":"error")},u="error"===c,m="success"===c,p=i?a.installing:m?a.installSuccess:u?a.retryInstall:a.install;return(0,n.jsxs)("button",{type:"button",onClick:x,disabled:i,className:`flex items-center gap-1 px-2 py-1.5 text-2xs rounded-lg font-medium text-white disabled:opacity-50 transition-colors shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${u?"bg-error hover:bg-error/90":m?"bg-success hover:bg-success/90":"bg-[var(--amber)] hover:bg-[var(--amber)]/90"}`,"aria-label":`${t} ${p}`,children:[i?(0,n.jsx)(o.A,{size:10,className:"animate-spin"}):null,!i&&m?(0,n.jsx)(A.A,{size:10}):null,!i&&u?(0,n.jsx)(w.A,{size:10}):null,p,(0,n.jsx)("span",{className:"sr-only","aria-live":"polite",children:u?a.installFailed:""})]})}function X({connected:e,detected:t,notFound:s,selectedAgentKey:r,onInstallAgent:a,listCopy:i,showNotDetected:o,setShowNotDetected:l,p:c}){return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"px-0 py-1.5 mb-1",children:(0,n.jsx)("span",{className:"text-2xs font-semibold text-muted-foreground/70 uppercase tracking-wider",children:c.rosterLabel})}),e.length>0&&(0,n.jsxs)("section",{className:"mb-3",children:[(0,n.jsxs)("h3",{className:"flex items-center gap-1.5 text-[11px] font-medium text-muted-foreground/80 uppercase tracking-wider mb-2 pl-0.5",children:[(0,n.jsx)("span",{className:"w-1 h-3 rounded-full bg-[var(--success)]/50","aria-hidden":"true"}),c.sectionConnected," ",(0,n.jsxs)("span",{className:"text-muted-foreground/50 tabular-nums",children:["(",e.length,")"]})]}),(0,n.jsx)("div",{className:"space-y-1.5",children:e.map(e=>(0,n.jsx)(S,{agent:e,agentStatus:"connected",selected:r===e.key,detailHref:`/agents/${encodeURIComponent(e.key)}`,onInstallAgent:a,copy:i},e.key))})]}),t.length>0&&(0,n.jsxs)("section",{className:"mb-3",children:[(0,n.jsxs)("h3",{className:"flex items-center gap-1.5 text-[11px] font-medium text-muted-foreground/80 uppercase tracking-wider mb-2 pl-0.5",children:[(0,n.jsx)("span",{className:"w-1 h-3 rounded-full bg-[var(--amber)]/50","aria-hidden":"true"}),c.sectionDetected," ",(0,n.jsxs)("span",{className:"text-muted-foreground/50 tabular-nums",children:["(",t.length,")"]})]}),(0,n.jsx)("div",{className:"space-y-1.5",children:t.map(e=>(0,n.jsx)(S,{agent:e,agentStatus:"detected",selected:r===e.key,detailHref:`/agents/${encodeURIComponent(e.key)}`,onInstallAgent:a,copy:i},e.key))})]}),s.length>0&&(0,n.jsxs)("section",{children:[(0,n.jsxs)("button",{type:"button",onClick:()=>l(!o),className:"flex items-center gap-1 text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-2 hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm pl-0.5",children:[o?(0,n.jsx)(y.A,{size:12}):(0,n.jsx)(j.A,{size:12}),c.sectionNotDetected," (",s.length,")"]}),o&&(0,n.jsx)("div",{className:"space-y-1.5",children:s.map(e=>(0,n.jsx)(S,{agent:e,agentStatus:"notFound",selected:r===e.key,detailHref:`/agents/${encodeURIComponent(e.key)}`,onInstallAgent:a,copy:i},e.key))})]})]})}var E=s(7625),z=s(21082),I=s(38688),M=s(3837),T=s(41209);function O(){let{t:e}=(0,u.Y)(),t=e.panels.im,s=(0,a.useSearchParams)().get("platform"),[l,c]=(0,r.useState)([]),[d,x]=(0,r.useState)(!0),[m,p]=(0,r.useState)(!1),g=(0,r.useCallback)(async()=>{p(!1);try{let e=await fetch("/api/im/status");if(e.ok){let t=await e.json();c(t.platforms??[])}else p(!0)}catch{p(!0)}x(!1)},[]);if((0,r.useEffect)(()=>{g()},[g]),d)return(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(o.A,{size:16,className:"animate-spin text-muted-foreground"})});if(m)return(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2 py-8 px-3",children:[(0,n.jsx)(z.A,{size:16,className:"text-muted-foreground"}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground",children:t.fetchError}),(0,n.jsxs)("button",{type:"button",onClick:()=>{x(!0),g()},className:"inline-flex items-center gap-1 text-2xs text-muted-foreground hover:text-foreground transition-colors",children:[(0,n.jsx)(i.A,{size:11})," ",t.retry]})]});let h=l.filter(e=>e.connected).length;return(0,n.jsxs)("div",{className:"flex flex-col py-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 mb-0.5",children:[(0,n.jsx)("span",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider",children:t.title}),h>0&&(0,n.jsxs)("span",{className:"text-2xs text-muted-foreground/60",children:[h," ",t.connected]})]}),(0,n.jsx)("div",{className:"flex flex-col",children:T.P.map(({id:e,name:t,icon:r})=>{let a=l.find(t=>t.platform===e),i=a?.connected??!1,o=s===e;return(0,n.jsxs)(N(),{href:`/agents?tab=channels&platform=${e}`,className:`
5
+ relative flex items-center gap-2.5 px-3 py-2 text-left rounded-sm transition-colors
6
+ ${o?"bg-[var(--amber-dim)]/40 pl-3.5":"hover:bg-muted/50"}
7
+ `,children:[o&&(0,n.jsx)("span",{className:"pointer-events-none absolute bottom-[22%] left-0 top-[22%] w-0.5 rounded-r-full bg-[var(--amber)]","aria-hidden":!0}),(0,n.jsx)("span",{className:"text-sm",children:r}),(0,n.jsx)("span",{className:"text-sm flex-1 truncate text-foreground",children:t}),i?(0,n.jsx)(I.A,{size:14,className:"text-success shrink-0"}):(0,n.jsx)(M.A,{size:14,className:"text-border shrink-0"})]},e)})})]})}function Z({active:e,maximized:t,onMaximize:s,selectedAgentKey:p=null}){let{t:g}=(0,u.Y)(),h=g.panels.agents,f=(0,a.useRouter)(),b=(0,d.kr)(),y=(0,a.usePathname)(),j=(0,a.useSearchParams)(),k="/agents"===y&&"channels"===j.get("tab"),[N,A]=(0,r.useState)(!1),[w,C]=(0,r.useState)(!1),[S,D]=(0,r.useState)(!1),z=(0,x.V)(),I=async()=>{A(!0),await b.refresh({force:!0}),A(!1)},M=b.agents.filter(e=>e.present&&e.installed),T=b.agents.filter(e=>e.present&&!e.installed),Z=b.agents.filter(e=>!e.present),_=async e=>{let t=await b.installAgent(e);return t&&await b.refresh(),t},R=y?.startsWith("/agents/")?decodeURIComponent(y.slice(8)):null,F={installing:h.installing,install:h.install,installSuccess:h.installSuccess,installFailed:h.installFailed,retryInstall:h.retryInstall},U={navOverview:h.navOverview,navMcp:h.navMcp,navSkills:h.navSkills,navChannels:h.channels,navNetwork:h.navNetwork,navSessions:h.navSessions,navActivity:h.navActivity},B=(0,n.jsx)(v,{copy:U,connectedCount:M.length,mcpEnabled:b.status?.connectionMode?.mcp??!1,channelsActive:k,onChannelsClick:()=>{f.push("/agents?tab=channels")}});return(0,n.jsxs)("div",{className:`flex flex-col h-full ${e?"":"hidden"}`,children:[(0,n.jsx)(m.A,{title:h.title,maximized:t,onMaximize:s,children:(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[!b.loading&&(0,n.jsxs)("span",{className:"text-2xs text-muted-foreground",children:[M.length," ",h.connected,z.agents.length>0&&(0,n.jsxs)(n.Fragment,{children:[" \xb7 ",h.a2aLabel," ",z.agents.length]})]}),(0,n.jsx)("button",{onClick:I,disabled:N,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground disabled:opacity-50 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":h.refresh,title:h.refresh,type:"button",children:(0,n.jsx)(i.A,{size:12,className:N?"animate-spin":""})})]})}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",children:b.loading?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)(o.A,{size:16,className:"animate-spin text-muted-foreground"})}):0===b.agents.length&&0===b.skills.length?(0,n.jsxs)("div",{className:"flex flex-col gap-2 py-4 px-0",children:[B,(0,n.jsx)("div",{className:"mx-4 border-t border-border"}),(0,n.jsxs)("div",{className:"mx-3 rounded-lg border border-border/40 bg-card/30 px-3 py-5 text-center",children:[(0,n.jsx)("p",{className:"text-xs text-muted-foreground/70 mb-1.5",children:h.noAgents}),(0,n.jsx)("p",{className:"text-2xs text-muted-foreground/40 mb-3",children:h.skillsEmptyHint}),(0,n.jsxs)("button",{onClick:I,type:"button",className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,n.jsx)(i.A,{size:11})," ",h.retry]})]})]}):(0,n.jsxs)("div",{className:"pb-3",children:[B,(0,n.jsx)("div",{className:"mx-4 border-t border-border"}),k?(0,n.jsx)(O,{}):(0,n.jsx)("div",{className:"px-3 py-3 space-y-4",children:(0,n.jsx)(X,{connected:M,detected:T,notFound:Z,selectedAgentKey:R??p,listCopy:F,onInstallAgent:_,showNotDetected:w,setShowNotDetected:C,p:{rosterLabel:h.rosterLabel,sectionConnected:h.sectionConnected,sectionDetected:h.sectionDetected,sectionNotDetected:h.sectionNotDetected}})})]})}),(0,n.jsxs)("div",{className:"px-3 py-2 border-t border-border shrink-0 space-y-1",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>D(!0),className:"flex items-center gap-1.5 text-2xs text-muted-foreground hover:text-foreground transition-colors w-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:[(0,n.jsx)(l.A,{size:11}),h.a2aDiscover]}),(0,n.jsxs)("button",{type:"button",onClick:()=>{window.dispatchEvent(new CustomEvent("mindos:open-settings",{detail:{tab:"mcp"}}))},className:"flex items-center gap-1.5 text-2xs text-muted-foreground hover:text-foreground transition-colors w-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:[(0,n.jsx)(c.A,{size:11}),h.advancedConfig]})]}),(0,n.jsx)(E.A,{open:S,onClose:()=>D(!1),onDiscover:z.discover,discovering:z.discovering,error:z.error})]})}},86146:(e,t,s)=>{s.d(t,{G:()=>l,M:()=>c});var n=s(66839),r=s(18016),a=s.n(r),i=s(98327),o=s(58221);function l({icon:e,title:t,subtitle:s,badge:r,href:l,onClick:c,active:d}){let x=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:e}),(0,n.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,n.jsx)("span",{className:"block text-left text-sm font-medium text-foreground truncate",title:t,children:t}),s?(0,n.jsx)("span",{className:"block text-left text-2xs text-muted-foreground truncate",title:s,children:s}):null]}),r,(0,n.jsx)(i.A,{size:14,className:"shrink-0 text-muted-foreground"})]}),u=!!d,m=(0,o.cn)("relative flex items-center gap-3 py-2.5 transition-[background-color] duration-150 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",u?"bg-[var(--amber-dim)]/40 pl-3.5 pr-4 text-foreground":"px-4",!u&&"cursor-pointer hover:bg-muted/50",u&&"cursor-default"),p=u?(0,n.jsx)("span",{className:"pointer-events-none absolute bottom-[22%] left-0 top-[22%] w-0.5 rounded-r-full bg-[var(--amber)]","aria-hidden":!0}):null;return l?(0,n.jsxs)(a(),{href:l,className:m,"aria-current":d?"page":void 0,children:[p,x]}):(0,n.jsxs)("button",{type:"button",onClick:c,className:(0,o.cn)(m,"w-full"),children:[p,x]})}function c({label:e}){return(0,n.jsx)("span",{className:"text-2xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground shrink-0",children:e})}},98479:(e,t,s)=>{s.d(t,{A:()=>n});let n=(0,s(73015).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6223],{5038:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},9181:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},9986:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},12240:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("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"}]])},12361:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},19777:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},21082:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("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"}]])},24336:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},26732:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},28284:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("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"}]])},29696:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},30401:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},30626:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},31082:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},31606:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},38325:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},38688:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},44361:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},53097:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},55798:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},71044:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},72700:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("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"}]])},72799:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73601:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},75157:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]])},76723:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},86386:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},88283:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},98327:(e,a,t)=>{t.d(a,{A:()=>y});let y=(0,t(73015).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}}]);
@@ -0,0 +1,6 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6343],{56848:(e,t,r)=>{r.d(t,{NT:()=>l,uC:()=>d,yN:()=>n});var s=r(44223),a=r(65264);function n({active:e,hasAttemptedPrewarm:t,warmState:r}){return e&&!t&&"idle"===r}function l(e,t,r={preparing:"Preparing search...",fallbackWarmHint:"Search will prepare on first query."}){return t.trim()?null:"warming"===e?r.preparing:"fallback"===e?r.fallbackWarmHint:null}function d(e){let[t,r]=(0,s.useState)("idle"),l=(0,s.useRef)(!1),d=(0,s.useRef)(!0);return(0,s.useEffect)(()=>{n({active:e,hasAttemptedPrewarm:l.current,warmState:t})&&(l.current=!0,r("warming"),(0,a.n)("/api/search/prewarm").then(()=>{d.current&&r("ready")}).catch(()=>{d.current&&r("fallback")}))},[e,t]),(0,s.useEffect)(()=>(d.current=!0,()=>{d.current=!1}),[]),(0,s.useEffect)(()=>{let e=()=>{l.current=!1,r("idle")};return window.addEventListener("mindos:files-changed",e),()=>window.removeEventListener("mindos:files-changed",e)},[]),(0,s.useEffect)(()=>{e||"fallback"!==t||(l.current=!1,r("idle"))},[e,t]),t}},86343:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b,getSearchWarmHint:()=>g.NT,shouldStartSearchPrewarm:()=>g.yN});var s=r(66839),a=r(44223),n=r(56261),l=r(38325),d=r(72799),c=r(18659),i=r(30401),o=r(98327),u=r(55798),m=r(58221),x=r(65264),h=r(2073),f=r(18704),p=r(58626),g=r(56848);function b({active:e,onNavigate:t,maximized:r,onMaximize:b}){let[j,N]=(0,a.useState)(""),[v,y]=(0,a.useState)([]),[w,k]=(0,a.useState)(!1),[C,E]=(0,a.useState)(0),[S,A]=(0,a.useState)(null),T=(0,a.useRef)(null),D=(0,n.useRouter)(),z=(0,a.useRef)(null),{t:R}=(0,h.Y)();(0,a.useEffect)(()=>{e&&setTimeout(()=>T.current?.focus(),50)},[e]);let $=(0,g.uC)(e),[H,W]=(0,a.useState)(null),[I,M]=(0,a.useState)(null),[_,L]=(0,a.useState)(!1),P=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(P.current&&clearTimeout(P.current),0===v.length||C<0||C>=v.length){W(null),M(null);return}let e=v[C];if(e.path!==I||null===H)return P.current=setTimeout(async()=>{L(!0);try{let t=await (0,x.n)(`/api/file?path=${encodeURIComponent(e.path)}`);W("string"==typeof t.content?t.content.slice(0,2e3):null),M(e.path)}catch{W(null),M(null)}finally{L(!1)}},150),()=>{P.current&&clearTimeout(P.current)}},[v,C]),(0,a.useEffect)(()=>{W(null),M(null)},[j]);let U=(0,a.useCallback)(e=>{if(z.current&&clearTimeout(z.current),!e.trim()){y([]),k(!1);return}k(!0),z.current=setTimeout(async()=>{try{let t=await (0,x.n)(`/api/search?q=${encodeURIComponent(e)}`);y(Array.isArray(t)?t:[]),E(0)}catch{y([])}finally{k(!1)}},300)},[]),q=(0,a.useCallback)(e=>{let t=e.target.value;N(t),U(t)},[U]),B=(0,a.useCallback)(e=>{D.push(`/view/${(0,m.O0)(e.path)}`),t?.()},[D,t]),Y=(0,a.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),E(e=>Math.min(e+1,v.length-1))):"ArrowUp"===e.key?(e.preventDefault(),E(e=>Math.max(e-1,0))):"Enter"===e.key&&v[C]&&B(v[C])},[v,C,B]),F=(0,a.useCallback)((e,t)=>{e.dataTransfer.effectAllowed="copy",e.dataTransfer.setData("text/mindos-path",t.path),e.dataTransfer.setData("text/mindos-type","file");let r=new Image;e.dataTransfer.setDragImage(r,0,0)},[]),K=(0,a.useCallback)(()=>{A(null)},[]),O=(0,g.NT)($,j,{preparing:R.search.preparing,fallbackWarmHint:R.search.fallbackWarmHint});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.A,{title:"Search",maximized:r,onMaximize:b}),(0,s.jsxs)("div",{className:"px-4 py-3 border-b border-border shrink-0 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 overflow-hidden",children:[(0,s.jsx)(l.A,{size:16,className:"text-muted-foreground shrink-0 flex-none"}),(0,s.jsx)("input",{ref:T,type:"text",value:j,onChange:q,onKeyDown:Y,placeholder:R.search.placeholder,"aria-label":R.search.placeholder,className:"flex-1 min-w-0 bg-transparent text-foreground text-base font-medium placeholder:text-muted-foreground/60 outline-none"}),w&&(0,s.jsx)("div",{className:"w-4 h-4 border-2 border-muted-foreground/30 border-t-foreground rounded-full animate-spin shrink-0 flex-none"}),!w&&j&&(0,s.jsx)("button",{onClick:()=>{N(""),y([]),T.current?.focus()},className:"shrink-0 flex-none p-1 text-muted-foreground hover:text-foreground transition-colors","aria-label":R.search.clear,children:(0,s.jsx)(d.A,{size:16})})]}),O&&(0,s.jsx)("p",{className:"mt-2 text-xs text-muted-foreground/70",children:O})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto min-h-0",role:"listbox","aria-label":"Search results",children:[0===v.length&&!j&&!w&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center px-4 py-12 text-center",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-lg bg-muted mb-4",children:(0,s.jsx)(l.A,{size:20,className:"text-muted-foreground/60"})}),(0,s.jsx)("h3",{className:"text-sm font-medium text-foreground mb-1",children:R.search.emptyTitle}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/70",children:R.search.emptyHint})]}),0===v.length&&j&&!w&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center px-4 py-12 text-center",children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-lg bg-muted mb-4",children:(0,s.jsx)(l.A,{size:20,className:"text-muted-foreground/60"})}),(0,s.jsx)("h3",{className:"text-sm font-medium text-foreground mb-1",children:R.search.noResults}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground/70",children:R.search.noResultsHint})]}),w&&0===v.length&&(0,s.jsx)("div",{className:"space-y-2 p-3",children:[1,2,3].map(e=>(0,s.jsxs)("div",{className:"px-3 py-2.5 space-y-2 animate-pulse",children:[(0,s.jsx)("div",{className:"h-4 bg-muted rounded-md w-3/4"}),(0,s.jsx)("div",{className:"h-3 bg-muted rounded-md w-1/2"}),(0,s.jsx)("div",{className:"h-3 bg-muted rounded-md w-2/3"})]},e))}),v.length>0&&(0,s.jsx)(p.aY,{totalCount:v.length,overscan:100,itemContent:e=>{let t,r=v[e],a=r.path.endsWith(".csv")?".csv":".md",{name:n,breadcrumb:l}={name:(t=r.path.split("/").filter(Boolean))[t.length-1],breadcrumb:t.slice(0,-1)},d=e===C,u=e===S;return(0,s.jsxs)("button",{role:"option","aria-selected":d,draggable:!0,onDragStart:e=>F(e,r),onDragEnd:K,onDragEnter:()=>A(e),onDragLeave:()=>A(null),onClick:()=>B(r),onMouseEnter:()=>E(e),className:`
2
+ w-full px-3 py-2.5 flex items-start gap-3 text-left transition-colors duration-100
3
+ border-b border-border/50
4
+ ${d?"bg-[var(--amber-dim)] border-l-2 border-[var(--amber)]":"border-l-2 border-transparent"}
5
+ ${u?"bg-muted/70":d?"":"hover:bg-muted/60"}
6
+ `,children:[(0,s.jsx)("div",{className:"shrink-0 flex-none mt-0.5",children:".csv"===a?(0,s.jsx)(c.A,{size:14,className:"text-success"}):(0,s.jsx)(i.A,{size:14,className:"text-muted-foreground"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-foreground truncate",title:n,children:n}),l.length>0&&(0,s.jsx)("div",{className:"flex items-center gap-1 mt-0.5 text-xs text-muted-foreground/70 truncate",children:l.map((e,t)=>(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[t>0&&(0,s.jsx)(o.A,{size:10,className:"shrink-0 flex-none"}),(0,s.jsx)("span",{className:"truncate",children:e})]},t))}),r.snippet&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2 leading-relaxed",title:r.snippet,children:function(e,t){if(!t.trim())return e;let r=t.trim().split(/\s+/).filter(Boolean).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),a=RegExp(`(${r.join("|")})`,"gi");return e.split(a).map((e,t)=>a.test(e)?(0,s.jsx)("mark",{className:"bg-[var(--amber)]/25 text-foreground rounded-sm px-0.5",children:e},t):e)}(r.snippet,j)})]}),d&&!u&&(0,s.jsx)("div",{className:"shrink-0 flex-none text-[10px] text-muted-foreground/50 font-mono pt-0.5",children:"⬆ Drag"})]})}})]}),v.length>0&&(H||_)&&(0,s.jsxs)("div",{className:"border-t border-border shrink-0 max-h-[30%] overflow-y-auto",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b border-border/50 sticky top-0 bg-card z-10",children:[(0,s.jsx)(u.A,{size:12,className:"shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:I??""})]}),_&&!H?(0,s.jsxs)("div",{className:"px-3 py-4 space-y-2 animate-pulse",children:[(0,s.jsx)("div",{className:"h-3 bg-muted rounded w-full"}),(0,s.jsx)("div",{className:"h-3 bg-muted rounded w-5/6"}),(0,s.jsx)("div",{className:"h-3 bg-muted rounded w-4/6"})]}):H?(0,s.jsxs)("pre",{className:"px-3 py-2 text-xs text-muted-foreground leading-relaxed whitespace-pre-wrap break-words font-sans",children:[H,H.length>=2e3&&(0,s.jsx)("span",{className:"text-muted-foreground/40",children:" …"})]}):null]}),v.length>0&&(0,s.jsxs)("div",{className:"px-3 py-2 border-t border-border/50 flex items-center gap-2 text-xs text-muted-foreground/60 shrink-0",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("kbd",{className:"font-mono text-[10px] px-1 py-0.5 bg-muted/40 rounded",children:"↑↓"})," ",R.search.navigate]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("kbd",{className:"font-mono text-[10px] px-1 py-0.5 bg-muted/40 rounded",children:"↵"})," ",R.search.open]}),(0,s.jsx)("span",{className:"text-muted-foreground/40 mx-0.5",children:"•"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("kbd",{className:"font-mono text-[10px] px-1 py-0.5 bg-muted/40 rounded",children:"Drag"})," ",R.search.dragToChat]})]})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8174],{11235:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("history",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},13224:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]])},28034:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},29696:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},32959:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},34137:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},38325:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},38688:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},42277:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["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"}]])},44910:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},49320:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},52212:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},52364:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},53378:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},53557:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},59031:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]])},64728:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},67643:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("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"}]])},67885:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},71114:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]])},71128:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},72700:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("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"}]])},76551:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},78132:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]])},78610:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},84441:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]])},86386:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},90156:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},93816:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]])},93960:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(73015).A)("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"}]])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5913],{95913:(O,e,t)=>{t.r(e),t.d(e,{autoCloseTags:()=>X,completeFromSchema:()=>w,xml:()=>Q,xmlLanguage:()=>_});var o=t(7906),r=t(46398);let n=null,l=null,a=0;function s(O,e){var t;let o=O.pos+e;if(l==O&&a==o)return n;for(;9==(t=O.peek(e))||10==t||13==t||32==t;)e++;let r="";for(;;){let t=O.peek(e);if(!(45==t||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161))break;r+=String.fromCharCode(t),e++}return l=O,a=o,n=r||null}function i(O,e){this.name=O,this.parent=e}let c=new o.Aj({start:null,shift:(O,e,t,o)=>1==e?new i(s(o,1)||"",O):O,reduce:(O,e)=>11==e&&O?O.parent:O,reuse(O,e,t,o){let r=e.type.id;return 1==r||13==r?new i(s(o,1)||"",O):O},strict:!1}),$=new o.Lu((O,e)=>{if(60==O.next){if(O.advance(),47==O.next){O.advance();let t=s(O,0);if(!t)return O.acceptToken(5);if(e.context&&t==e.context.name)return O.acceptToken(2);for(let o=e.context;o;o=o.parent)if(o.name==t)return O.acceptToken(3,-2);O.acceptToken(4)}else if(33!=O.next&&63!=O.next)return O.acceptToken(1)}},{contextual:!0});function S(O,e){return new o.Lu(t=>{let o=0,r=e.charCodeAt(0);O:for(;!(t.next<0);t.advance(),o++)if(t.next==r){for(let O=1;O<e.length;O++)if(t.peek(O)!=e.charCodeAt(O))continue O;break}o&&t.acceptToken(O)})}let p=S(36,"--\x3e"),u=S(37,"?>"),g=S(38,"]]>"),m=(0,r.pn)({Text:r._A.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r._A.angleBracket,TagName:r._A.tagName,"MismatchedCloseTag/TagName":[r._A.tagName,r._A.invalid],AttributeName:r._A.attributeName,AttributeValue:r._A.attributeValue,Is:r._A.definitionOperator,"EntityReference CharacterReference":r._A.character,Comment:r._A.blockComment,ProcessingInst:r._A.processingInstruction,DoctypeDecl:r._A.documentMeta,Cdata:r._A.special(r._A.string)}),x=o.U1.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:c,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[m],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[$,p,u,g,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});var q=t(23696),f=t(43854),d=t(44020);function P(O,e){let t=e&&e.getChild("TagName");return t?O.sliceString(t.from,t.to):""}function v(O,e){let t=e&&e.firstChild;return t&&"OpenTag"==t.name?P(O,t):""}function T(O){for(let e=O&&O.parent;e;e=e.parent)if("Element"==e.name)return e;return null}class h{constructor(O,e,t){this.attrs=e,this.attrValues=t,this.children=[],this.name=O.name,this.completion=Object.assign(Object.assign({type:"type"},O.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=O.textContent?O.textContent.map(O=>({label:O,type:"text"})):[]}}let C=/^[:\-\.\w\u00b7-\uffff]*$/;function b(O){return Object.assign(Object.assign({type:"property"},O.completion||{}),{label:O.name})}function W(O){return"string"==typeof O?{label:`"${O}"`,type:"constant"}:/^"/.test(O.label)?O:Object.assign(Object.assign({},O),{label:`"${O.label}"`})}function w(O,e){let t=[],o=[],r=Object.create(null);for(let O of e){let e=b(O);t.push(e),O.global&&o.push(e),O.values&&(r[O.name]=O.values.map(W))}let n=[],l=[],a=Object.create(null);for(let e of O){let O=o,s=r;e.attributes&&(O=O.concat(e.attributes.map(O=>"string"==typeof O?t.find(e=>e.label==O)||{label:O,type:"property"}:(O.values&&(s==r&&(s=Object.create(s)),s[O.name]=O.values.map(W)),b(O)))));let i=new h(e,O,s);a[i.name]=i,n.push(i),e.top&&l.push(i)}l.length||(l=n);for(let e=0;e<n.length;e++){let t=O[e],o=n[e];if(t.children)for(let O of t.children)a[O]&&o.children.push(a[O]);else o.children=n}return O=>{var e;let{doc:t}=O.state,s=function(O,e){var t;let o=(0,q.mv)(O).resolveInner(e,-1),r=null;for(let O=o;!r&&O.parent;O=O.parent)("OpenTag"==O.name||"CloseTag"==O.name||"SelfClosingTag"==O.name||"MismatchedCloseTag"==O.name)&&(r=O);if(r&&(r.to>e||r.lastChild.type.isError)){let O=r.parent;if("TagName"==o.name)return"CloseTag"==r.name||"MismatchedCloseTag"==r.name?{type:"closeTag",from:o.from,context:O}:{type:"openTag",from:o.from,context:T(O)};if("AttributeName"==o.name)return{type:"attrName",from:o.from,context:r};if("AttributeValue"==o.name)return{type:"attrValue",from:o.from,context:r};let t=o==r||"Attribute"==o.name?o.childBefore(e):o;return(null==t?void 0:t.name)=="StartTag"?{type:"openTag",from:e,context:T(O)}:(null==t?void 0:t.name)=="StartCloseTag"&&t.to<=e?{type:"closeTag",from:e,context:O}:(null==t?void 0:t.name)=="Is"?{type:"attrValue",from:e,context:r}:t?{type:"attrName",from:e,context:r}:null}if("StartCloseTag"==o.name)return{type:"closeTag",from:e,context:o.parent};for(;o.parent&&o.to==e&&!(null==(t=o.lastChild)?void 0:t.type.isError);)o=o.parent;return"Element"==o.name||"Text"==o.name||"Document"==o.name?{type:"tag",from:e,context:"Element"==o.name?o:T(o)}:null}(O.state,O.pos);if(!s||"tag"==s.type&&!O.explicit)return null;let{type:i,from:c,context:$}=s;if("openTag"==i){let O=l,e=v(t,$);if(e){let t=a[e];O=(null==t?void 0:t.children)||n}return{from:c,options:O.map(O=>O.completion),validFor:C}}if("closeTag"==i){let o=v(t,$);return o?{from:c,to:O.pos+ +(">"==t.sliceString(O.pos,O.pos+1)),options:[(null==(e=a[o])?void 0:e.closeNameCompletion)||{label:o+">",type:"type"}],validFor:C}:null}if("attrName"==i){let O=a[P(t,$)];return{from:c,options:(null==O?void 0:O.attrs)||o,validFor:C}}if("attrValue"==i){let e,o,n=(o=(e=$&&$.getChildren("Attribute").find(O=>O.from<=c&&O.to>=c))&&e.getChild("AttributeName"))?t.sliceString(o.from,o.to):"";if(!n)return null;let l=a[P(t,$)],s=((null==l?void 0:l.attrValues)||r)[n];return s&&s.length?{from:c,to:O.pos+ +('"'==t.sliceString(O.pos,O.pos+1)),options:s,validFor:/^"[^"]*"?$/}:null}{if("tag"!=i)return null;let e=v(t,$),o=a[e],r=[],s=$&&$.lastChild;e&&(!s||"CloseTag"!=s.name||P(t,s)!=e)&&r.push(o?o.closeCompletion:{label:"</"+e+">",type:"type",boost:2});let S=r.concat(((null==o?void 0:o.children)||($?n:l)).map(O=>O.openCompletion));if($&&(null==o?void 0:o.text.length)){let e=$.firstChild;e.to>O.pos-20&&!/\S/.test(O.state.sliceDoc(e.to,O.pos))&&(S=S.concat(o.text))}return{from:c,options:S,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}}}let _=q.bj.define({name:"xml",parser:x.configure({props:[q.Oh.add({Element(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"OpenTag CloseTag SelfClosingTag":O=>O.column(O.node.from)+O.unit}),q.b_.add({Element(O){let e=O.firstChild,t=O.lastChild;return e&&"OpenTag"==e.name?{from:e.to,to:"CloseTag"==t.name?t.from:O.to}:null}}),q.Q_.add({"OpenTag CloseTag":O=>O.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Q(O={}){let e=[_.data.of({autocomplete:w(O.elements||[],O.attributes||[])})];return!1!==O.autoCloseTags&&e.push(X),new q.Yy(_,e)}function y(O,e,t=O.length){if(!e)return"";let o=e.firstChild,r=o&&o.getChild("TagName");return r?O.sliceString(r.from,Math.min(r.to,t)):""}let X=d.Lz.inputHandler.of((O,e,t,o,r)=>{if(O.composing||O.state.readOnly||e!=t||">"!=o&&"/"!=o||!_.isActiveAt(O.state,e,-1))return!1;let n=r(),{state:l}=n,a=l.changeByRange(O=>{var e,t,r;let{head:n}=O,a=l.doc.sliceString(n-1,n)==o,s=(0,q.mv)(l).resolveInner(n,-1),i;if(a&&">"==o&&"EndTag"==s.name){let o=s.parent;if((null==(t=null==(e=o.parent)?void 0:e.lastChild)?void 0:t.name)!="CloseTag"&&(i=y(l.doc,o.parent,n))){let e=n+ +(">"===l.doc.sliceString(n,n+1));return{range:O,changes:{from:n,to:e,insert:`</${i}>`}}}}else if(a&&"/"==o&&"StartCloseTag"==s.name){let O=s.parent;if(s.from==n-2&&(null==(r=O.lastChild)?void 0:r.name)!="CloseTag"&&(i=y(l.doc,O,n))){let O=n+ +(">"===l.doc.sliceString(n,n+1)),e=`${i}>`;return{range:f.OF.cursor(n+e.length,-1),changes:{from:n,to:O,insert:e}}}}return{range:O}});return!a.changes.empty&&(O.dispatch([n,l.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8294],{95913:(O,e,t)=>{t.r(e),t.d(e,{autoCloseTags:()=>X,completeFromSchema:()=>w,xml:()=>Q,xmlLanguage:()=>_});var o=t(7906),r=t(46398);let n=null,l=null,a=0;function s(O,e){var t;let o=O.pos+e;if(l==O&&a==o)return n;for(;9==(t=O.peek(e))||10==t||13==t||32==t;)e++;let r="";for(;;){let t=O.peek(e);if(!(45==t||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161))break;r+=String.fromCharCode(t),e++}return l=O,a=o,n=r||null}function i(O,e){this.name=O,this.parent=e}let c=new o.Aj({start:null,shift:(O,e,t,o)=>1==e?new i(s(o,1)||"",O):O,reduce:(O,e)=>11==e&&O?O.parent:O,reuse(O,e,t,o){let r=e.type.id;return 1==r||13==r?new i(s(o,1)||"",O):O},strict:!1}),$=new o.Lu((O,e)=>{if(60==O.next){if(O.advance(),47==O.next){O.advance();let t=s(O,0);if(!t)return O.acceptToken(5);if(e.context&&t==e.context.name)return O.acceptToken(2);for(let o=e.context;o;o=o.parent)if(o.name==t)return O.acceptToken(3,-2);O.acceptToken(4)}else if(33!=O.next&&63!=O.next)return O.acceptToken(1)}},{contextual:!0});function S(O,e){return new o.Lu(t=>{let o=0,r=e.charCodeAt(0);O:for(;!(t.next<0);t.advance(),o++)if(t.next==r){for(let O=1;O<e.length;O++)if(t.peek(O)!=e.charCodeAt(O))continue O;break}o&&t.acceptToken(O)})}let p=S(36,"--\x3e"),u=S(37,"?>"),g=S(38,"]]>"),m=(0,r.pn)({Text:r._A.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r._A.angleBracket,TagName:r._A.tagName,"MismatchedCloseTag/TagName":[r._A.tagName,r._A.invalid],AttributeName:r._A.attributeName,AttributeValue:r._A.attributeValue,Is:r._A.definitionOperator,"EntityReference CharacterReference":r._A.character,Comment:r._A.blockComment,ProcessingInst:r._A.processingInstruction,DoctypeDecl:r._A.documentMeta,Cdata:r._A.special(r._A.string)}),x=o.U1.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:c,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[m],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[$,p,u,g,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});var q=t(23696),f=t(43854),d=t(44020);function P(O,e){let t=e&&e.getChild("TagName");return t?O.sliceString(t.from,t.to):""}function v(O,e){let t=e&&e.firstChild;return t&&"OpenTag"==t.name?P(O,t):""}function T(O){for(let e=O&&O.parent;e;e=e.parent)if("Element"==e.name)return e;return null}class h{constructor(O,e,t){this.attrs=e,this.attrValues=t,this.children=[],this.name=O.name,this.completion=Object.assign(Object.assign({type:"type"},O.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=O.textContent?O.textContent.map(O=>({label:O,type:"text"})):[]}}let C=/^[:\-\.\w\u00b7-\uffff]*$/;function b(O){return Object.assign(Object.assign({type:"property"},O.completion||{}),{label:O.name})}function W(O){return"string"==typeof O?{label:`"${O}"`,type:"constant"}:/^"/.test(O.label)?O:Object.assign(Object.assign({},O),{label:`"${O.label}"`})}function w(O,e){let t=[],o=[],r=Object.create(null);for(let O of e){let e=b(O);t.push(e),O.global&&o.push(e),O.values&&(r[O.name]=O.values.map(W))}let n=[],l=[],a=Object.create(null);for(let e of O){let O=o,s=r;e.attributes&&(O=O.concat(e.attributes.map(O=>"string"==typeof O?t.find(e=>e.label==O)||{label:O,type:"property"}:(O.values&&(s==r&&(s=Object.create(s)),s[O.name]=O.values.map(W)),b(O)))));let i=new h(e,O,s);a[i.name]=i,n.push(i),e.top&&l.push(i)}l.length||(l=n);for(let e=0;e<n.length;e++){let t=O[e],o=n[e];if(t.children)for(let O of t.children)a[O]&&o.children.push(a[O]);else o.children=n}return O=>{var e;let{doc:t}=O.state,s=function(O,e){var t;let o=(0,q.mv)(O).resolveInner(e,-1),r=null;for(let O=o;!r&&O.parent;O=O.parent)("OpenTag"==O.name||"CloseTag"==O.name||"SelfClosingTag"==O.name||"MismatchedCloseTag"==O.name)&&(r=O);if(r&&(r.to>e||r.lastChild.type.isError)){let O=r.parent;if("TagName"==o.name)return"CloseTag"==r.name||"MismatchedCloseTag"==r.name?{type:"closeTag",from:o.from,context:O}:{type:"openTag",from:o.from,context:T(O)};if("AttributeName"==o.name)return{type:"attrName",from:o.from,context:r};if("AttributeValue"==o.name)return{type:"attrValue",from:o.from,context:r};let t=o==r||"Attribute"==o.name?o.childBefore(e):o;return(null==t?void 0:t.name)=="StartTag"?{type:"openTag",from:e,context:T(O)}:(null==t?void 0:t.name)=="StartCloseTag"&&t.to<=e?{type:"closeTag",from:e,context:O}:(null==t?void 0:t.name)=="Is"?{type:"attrValue",from:e,context:r}:t?{type:"attrName",from:e,context:r}:null}if("StartCloseTag"==o.name)return{type:"closeTag",from:e,context:o.parent};for(;o.parent&&o.to==e&&!(null==(t=o.lastChild)?void 0:t.type.isError);)o=o.parent;return"Element"==o.name||"Text"==o.name||"Document"==o.name?{type:"tag",from:e,context:"Element"==o.name?o:T(o)}:null}(O.state,O.pos);if(!s||"tag"==s.type&&!O.explicit)return null;let{type:i,from:c,context:$}=s;if("openTag"==i){let O=l,e=v(t,$);if(e){let t=a[e];O=(null==t?void 0:t.children)||n}return{from:c,options:O.map(O=>O.completion),validFor:C}}if("closeTag"==i){let o=v(t,$);return o?{from:c,to:O.pos+ +(">"==t.sliceString(O.pos,O.pos+1)),options:[(null==(e=a[o])?void 0:e.closeNameCompletion)||{label:o+">",type:"type"}],validFor:C}:null}if("attrName"==i){let O=a[P(t,$)];return{from:c,options:(null==O?void 0:O.attrs)||o,validFor:C}}if("attrValue"==i){let e,o,n=(o=(e=$&&$.getChildren("Attribute").find(O=>O.from<=c&&O.to>=c))&&e.getChild("AttributeName"))?t.sliceString(o.from,o.to):"";if(!n)return null;let l=a[P(t,$)],s=((null==l?void 0:l.attrValues)||r)[n];return s&&s.length?{from:c,to:O.pos+ +('"'==t.sliceString(O.pos,O.pos+1)),options:s,validFor:/^"[^"]*"?$/}:null}{if("tag"!=i)return null;let e=v(t,$),o=a[e],r=[],s=$&&$.lastChild;e&&(!s||"CloseTag"!=s.name||P(t,s)!=e)&&r.push(o?o.closeCompletion:{label:"</"+e+">",type:"type",boost:2});let S=r.concat(((null==o?void 0:o.children)||($?n:l)).map(O=>O.openCompletion));if($&&(null==o?void 0:o.text.length)){let e=$.firstChild;e.to>O.pos-20&&!/\S/.test(O.state.sliceDoc(e.to,O.pos))&&(S=S.concat(o.text))}return{from:c,options:S,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}}}let _=q.bj.define({name:"xml",parser:x.configure({props:[q.Oh.add({Element(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"OpenTag CloseTag SelfClosingTag":O=>O.column(O.node.from)+O.unit}),q.b_.add({Element(O){let e=O.firstChild,t=O.lastChild;return e&&"OpenTag"==e.name?{from:e.to,to:"CloseTag"==t.name?t.from:O.to}:null}}),q.Q_.add({"OpenTag CloseTag":O=>O.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Q(O={}){let e=[_.data.of({autocomplete:w(O.elements||[],O.attributes||[])})];return!1!==O.autoCloseTags&&e.push(X),new q.Yy(_,e)}function y(O,e,t=O.length){if(!e)return"";let o=e.firstChild,r=o&&o.getChild("TagName");return r?O.sliceString(r.from,Math.min(r.to,t)):""}let X=d.Lz.inputHandler.of((O,e,t,o,r)=>{if(O.composing||O.state.readOnly||e!=t||">"!=o&&"/"!=o||!_.isActiveAt(O.state,e,-1))return!1;let n=r(),{state:l}=n,a=l.changeByRange(O=>{var e,t,r;let{head:n}=O,a=l.doc.sliceString(n-1,n)==o,s=(0,q.mv)(l).resolveInner(n,-1),i;if(a&&">"==o&&"EndTag"==s.name){let o=s.parent;if((null==(t=null==(e=o.parent)?void 0:e.lastChild)?void 0:t.name)!="CloseTag"&&(i=y(l.doc,o.parent,n))){let e=n+ +(">"===l.doc.sliceString(n,n+1));return{range:O,changes:{from:n,to:e,insert:`</${i}>`}}}}else if(a&&"/"==o&&"StartCloseTag"==s.name){let O=s.parent;if(s.from==n-2&&(null==(r=O.lastChild)?void 0:r.name)!="CloseTag"&&(i=y(l.doc,O,n))){let O=n+ +(">"===l.doc.sliceString(n,n+1)),e=`${i}>`;return{range:f.OF.cursor(n+e.length,-1),changes:{from:n,to:O,insert:e}}}}return{range:O}});return!a.changes.empty&&(O.dispatch([n,l.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8626],{58626:(e,t,o)=>{o.d(t,{aY:()=>tW});var n=o(66839),r=o(44223),i=o(53454);function l(e){e()}function s(e,t){return o=>e(t(o))}function a(e){return void 0!==e}function u(){}function d(e,t){return t(e)}function c(...e){return e}function h(e){e(2)}function m(e){return e(4)}function f(e,t){return e(1,e=>t(0,e))}function g(e,t){let o=e(1,e=>{o(),t(e)});return o}function p(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function x(e,t){return e===t}function v(e=x){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function I(e){return t=>o=>{e(o)&&t(o)}}function T(e){return t=>s(t,e)}function C(e){return t=>()=>{t(e)}}function S(e,...t){let o=function(...e){return t=>e.reduceRight(d,t)}(...t);return(t,n)=>{switch(t){case 2:h(e);return;case 1:return e(1,o(n))}}}function w(e,t){return o=>n=>{o(t=e(t,n))}}function H(e){return t=>o=>{e>0?e--:t(o)}}function y(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function z(...e){let t=Array(e.length),o=0,n=null,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{let s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{let l=()=>{e([i].concat(t))};o===r?l():n=l}}function b(e){let t=e,o=k();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function R(e,t){var o;return o=b(t),f(e,o),o}function k(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function E(e){var t;return t=k(),f(e,t),t}function B(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:L(),singleton:o}}let L=()=>Symbol();function F(...e){let t=k(),o=Array(e.length),n=0,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{o[i]=e,(n|=l)===r&&t(0,o)})}),function(e,i){switch(e){case 2:return void h(t);case 1:return n===r&&i(o),t(1,i)}}}function O(e,t=x){return S(e,v(t))}function j(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(l)}}(...e.map(e=>e(1,o)))}}}let M=1,P={0:"debug",3:"error",[M]:"log",2:"warn"},W=B(()=>{let e=b(3);return{log:b((t,o,n=M)=>{n>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??m(e))&&console[P[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function A(e,t,o){return V(e,t,o).callbackRef}function V(e,t,o){let n=r.useRef(null),i=r.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let n=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};o?n():requestAnimationFrame(n)}):null,[e,o]);return{callbackRef:e=>{e&&t?(i?.observe(e),n.current=e):(n.current&&i?.unobserve(n.current),n.current=null)},ref:n}}function D(e,t,o,n,i,l,s,a,u){return V(r.useCallback(o=>{let r,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let i=[];for(let l=0;l<r;l++){let r=e.item(l);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},3),u===a)continue;let d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,a?"offsetWidth":"offsetHeight",i),d=o.parentElement;for(;void 0===d.dataset.virtuosoScroller;)d=d.parentElement;let c="window"===d.lastElementChild.dataset.viewportType;c&&(r=d.ownerDocument.defaultView);let h=s?a?s.scrollLeft:s.scrollTop:c?a?r.scrollX||r.document.documentElement.scrollLeft:r.scrollY||r.document.documentElement.scrollTop:a?d.scrollLeft:d.scrollTop;n({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:c?a?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight:a?d.scrollWidth:d.scrollHeight,scrollTop:Math.max(h,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:c?a?r.innerWidth:r.innerHeight:a?d.offsetWidth:d.offsetHeight}),l?.(a?G("column-gap",getComputedStyle(o).columnGap,i):G("row-gap",getComputedStyle(o).rowGap,i)),null!==u&&e(u)},[e,t,i,l,s,n,a]),o,u)}function G(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function _(e,t,o){let n=r.useRef(null),i=r.useCallback(o=>{let r,i;if(!o?.offsetParent)return;let l=o.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),o=l.top-e.top;i=e.height-Math.max(0,o),r=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;i=e.innerHeight-Math.max(0,l.top),r=l.top+e.scrollY}n.current={listHeight:l.height,offsetTop:r,visibleHeight:i,visibleWidth:a},e(n.current)},[e,t]),{callbackRef:l,ref:s}=V(i,!0,o),a=r.useCallback(()=>{i(s.current)},[i,s]);return r.useEffect(()=>{if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}let e=s.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",a),e?.addEventListener("resize",a),()=>{e?.removeEventListener("scroll",a),e?.removeEventListener("resize",a)}},[a,t,s]),l}let N=B(()=>{let e=k(),t=k(),o=b(0),n=k(),r=b(0),i=k(),l=k(),s=b(0),a=b(0),u=b(0),d=b(0),c=k(),h=k(),m=b(!1),g=b(!1),p=b(!1);return f(S(e,T(({scrollTop:e})=>e)),t),f(S(e,T(({scrollHeight:e})=>e)),l),f(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:g,scrollBy:h,scrollContainerState:e,scrollHeight:l,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:p,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),K={lvl:0};function q(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),i=[];for(let l=1;l<o;l++){let{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function $(e){return e===K}function U(e,t){if(!$(e))return t===e.k?e.v:t<e.k?U(e.l,t):U(e.r,t)}function Y(e,t,o="k"){if($(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=Y(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return Y(e.l,t,o)}function X(e,t,o){return $(e)?eo(t,o,1):t===e.k?ee(e,{k:t,v:o}):t<e.k?er(en(ee(e,{l:X(e.l,t,o)}))):er(en(ee(e,{r:X(e.r,t,o)})))}function Z(e,t,o){if($(e))return[];let n=Y(e,t)[0];return q(function e(t,o,n){if($(t))return[];let{k:r,l:i,r:l,v:s}=t,a=[];return r>o&&(a=a.concat(e(i,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(l,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function J(e){return $(e)?[]:[...J(e.l),{k:e.k,v:e.v},...J(e.r)]}function Q(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(et(t))return en(ee(e,{lvl:o-1}));if(!$(t)&&!$(t.r))return ee(t.r,{l:ee(t,{r:t.r.l}),lvl:o,r:ee(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(et(e))return er(ee(e,{lvl:o-1}));if(!$(n)&&!$(n.l)){let t=n.l,r=et(t)?n.lvl-1:n.lvl;return ee(t,{l:ee(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:er(ee(n,{l:t.r,lvl:r}))})}throw Error("Unexpected empty nodes")}function ee(e,t){return eo(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function et(e){return $(e)||e.lvl>e.r.lvl}function eo(e,t,o,n=K,r=K){return{k:e,l:n,lvl:o,r,v:t}}function en(e){let{l:t}=e;return $(t)||t.lvl!==e.lvl?e:ee(t,{r:ee(e,{l:t.r})})}function er(e){let{lvl:t,r:o}=e;return $(o)||$(o.r)||o.lvl!==t||o.r.lvl!==t?e:ee(o,{l:ee(e,{r:o.l}),lvl:t+1})}function ei(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function el(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let es=B(()=>({recalcInProgress:b(!1)}),[],{singleton:!0});function ea(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),l=o(e[i],t);if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function eu(e,t){return Math.round(e.getBoundingClientRect()[t])}function ed(e){return!$(e.groupOffsetTree)}function ec({index:e},t){return t===e?0:t<e?-1:1}function eh({offset:e},t){return t===e?0:t<e?-1:1}function em(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:i}=t[ea(t,e,ec)],l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function ef(e,t){if(!ed(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function eg(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;let n=ef("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}function ep(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,0);let i=e.sizeTree,l=i,s=0;if(o.length>0&&$(i)&&2===t.length){let e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>X(X(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=$(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),$(e)){e=X(e,0,r);continue}let l=Z(e,i-1,t+1);if(l.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=function e(t,o){if($(t))return K;let{k:n,l:r,r:i}=t;if(o===n){if($(r))return i;if($(i))return r;let[e,o]=function e(t){return $(t.r)?[t.k,t.v]:e(t.r)}(r);return Q(ee(t,{k:e,l:function e(t){return $(t.r)?t.l:Q(ee(t,{r:e(t.r)}))}(r),v:o}))}return o<n?Q(ee(t,{l:e(r,o)})):Q(ee(t,{r:e(i,o)}))}(e,n)):(a=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=X(e,t+1,i));a&&(e=X(e,i,r))}return[e,o]}(l,t);if(l===i)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ev(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>X(e,t,em(t,c,r)),K),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:l}}function ex(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o!==e)}function ev(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(0!==t){a=ea(r,t-1,ec),s=r[a].offset;let e=Y(o,t-1);i=e[0],l=e[1],r.length&&r[a].size===Y(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of Z(o,t,1/0)){let t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:a}),i=e,s=o,l=a}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function eI(e){return{index:e.index,value:e}}let eT={offsetHeight:"height",offsetWidth:"width"},eC=B(([{log:e},{recalcInProgress:t}])=>{let o=k(),n=k(),r=R(n,0),i=k(),l=k(),s=b(0),a=b([]),u=b(void 0),d=b(void 0),c=b(void 0),h=b(void 0),g=b((e,t)=>eu(e,eT[t])),p=b(void 0),x=b(0),C={groupIndices:[],groupOffsetTree:K,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:K},H=R(S(o,z(a,e,x),w(ep,C),v()),C),y=R(S(a,v(),w((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),T(({prev:e})=>e)),[]);f(S(a,I(e=>e.length>0),z(H,x),T(([e,t,o])=>{let n=e.reduce((e,n,r)=>X(e,n,em(n,t.offsetTree,o)||r),K);return{...t,groupIndices:e,groupOffsetTree:n}})),H),f(S(n,z(H),I(([e,{lastIndex:t}])=>e<t),T(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),f(u,d);let B=R(S(u,T(e=>void 0===e)),!0);f(S(d,I(e=>void 0!==e&&$(m(H).sizeTree)),T(e=>{let t=m(c),o=m(a).length>0;return void 0!==t&&0!==t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),f(S(h,I(e=>void 0!==e&&e.length>0&&$(m(H).sizeTree)),T(e=>{let t=[],o=e[0],n=0;for(let r=1;r<e.length;r++){let i=e[r];i!==o&&(t.push({endIndex:r-1,size:o,startIndex:n}),o=i,n=r)}return t.push({endIndex:e.length-1,size:o,startIndex:n}),t})),o),f(S(a,z(c,d),I(([,e,t])=>void 0!==e&&void 0!==t),T(([e,t,o])=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],l=e[r+1];n.push({startIndex:i,endIndex:i,size:t}),void 0!==l&&n.push({startIndex:i+1,endIndex:l-1,size:o})}return n})),o);let L=E(S(o,z(H),w(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:C}),T(e=>e.changed)));S(s,w((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),T(e=>e.diff))(1,e=>{let{groupIndices:o}=m(H);if(e>0)t(0,!0),i(0,e+ex(e,o));else if(e<0){let t=m(y);t.length>0&&(e-=ex(-e,t)),l(0,e)}}),S(s,z(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},3)});let F=E(i);f(S(i,z(H),T(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=U(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}let s=J(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return J(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);let O=E(S(l,z(H,x),T(([e,{offsetTree:t},o])=>em(-e,t,o))));return f(S(l,z(H,x),T(([e,t,o])=>{if(t.groupIndices.length>0){if($(t.sizeTree))return t;let n=K,r=m(y),i=0,l=0,s=0;for(;i<-e;){s=r[l];let e=r[l+1]-s-1;l++,i+=e+1}return n=J(t.sizeTree).reduce((t,{k:o,v:n})=>X(t,Math.max(0,o+e),n),n),i!==-e&&(n=X(n,0,U(t.sizeTree,s)),n=X(n,1,Y(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ev(t.offsetTree,0,n,o)}}let n=J(t.sizeTree).reduce((t,{k:o,v:n})=>X(t,Math.max(0,o+e),n),K);return{...t,sizeTree:n,...ev(t.offsetTree,0,n,o)}})),H),{beforeUnshiftWith:F,data:p,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:c,gap:x,groupIndices:a,heightEstimates:h,itemSize:g,listRefresh:L,shiftWith:l,shiftWithOffset:O,sizeRanges:o,sizes:H,statefulTotalCount:r,totalCount:n,trackItemSizes:B,unshiftWith:i}},c(W,es),{singleton:!0});function eS(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let ew=B(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let i=k(),l=k(),s=E(S(i,T(eS)));return f(S(s,T(e=>e.totalCount)),o),f(S(s,T(e=>e.groupIndices)),e),f(S(F(r,t,n),I(([e,t])=>ed(t)),T(([e,t,o])=>Y(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),v(),T(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},c(eC,N)),eH=B(([{log:e}])=>{let t=b(!1),o=E(S(t,I(e=>e),v()));return t(1,t=>{t&&m(e)("props updated",{},0)}),{didMount:o,propsReady:t}},c(W),{singleton:!0}),ey="u">typeof document&&"scrollBehavior"in document.documentElement.style;function ez(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ey||(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}let eb=B(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:h}])=>{let m=k(),p=k(),x=b(0),v=null,I=null,C=null;function w(){null!==v&&(v(),v=null),null!==C&&(C(),C=null),I&&(clearTimeout(I),I=null),a(0,!1)}return f(S(m,z(o,c,n,x,s,l,h),z(e,i,r),T(([[e,o,n,r,i,l,s,u],c,h,f])=>{let x=ez(e),{align:T,behavior:H,offset:y}=x,z=r-1,b=eg(x,o,z),R=em(b,o.offsetTree,c)+l;"end"===T?(R+=h+Y(o.sizeTree,b)[1]-n+f,b===z&&(R+=s)):"center"===T?R+=(h+Y(o.sizeTree,b)[1]-n+f)/2:R-=i,void 0!==y&&0!==y&&(R+=y);let k=t=>{w(),t?(u("retrying to scroll to",{location:e},0),m(0,e)):(p(0,!0),u("list did not change, scroll successful",{},0))};if(w(),"smooth"===H){let e=!1;C=t(1,t=>{e=e||t}),v=g(d,()=>{k(e)})}else v=g(S(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),k);return I=setTimeout(()=>{w()},1200),a(0,!0),u("scrolling from index to",{behavior:H,index:b,top:R},0),{behavior:H,top:R}})),u),{scrollTargetReached:p,scrollToIndex:m,topListHeight:x}},c(eC,N,W),{singleton:!0});function eR(e,t){0===e?t():requestAnimationFrame(()=>{eR(e-1,t)})}function ek(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eE=B(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{let s=b(!0),u=b(0),d=b(!0);return f(S(l,z(u),I(([e,t])=>0!==t),C(!1)),s),f(S(l,z(u),I(([e,t])=>0!==t),C(!1)),d),S(F(t,l),z(s,o,e,d),I(([[,e],t,{sizeTree:o},n,r])=>e&&(!$(o)||a(n))&&!t&&!r),z(u))(1,([,e])=>{g(r,()=>{d(0,!0)}),eR(4,()=>{g(n,()=>{s(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:u,scrolledToInitialItem:s}},c(eC,N,eb,eH),{singleton:!0});function eB(e,t){return 1.01>Math.abs(e-t)}let eL="down",eF={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eO=B(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{let l=b(!1),s=b(!0),a=k(),u=k(),d=b(4),c=b(0),h=R(S(j(S(O(r),H(1),C(!0)),S(O(r),H(1),C(!1),p(100))),v()),!1),g=R(S(j(S(o,C(!0)),S(o,C(!1),p(200))),v()),!1);f(S(F(O(r),O(c)),T(([e,t])=>e<=t),v()),s),f(S(s,y(50)),u);let x=E(S(F(n,O(i),O(t),O(e),O(d)),w((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},eF),v((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),B=R(S(n,w((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(!eB(e.scrollHeight,t)){let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:o}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),I(e=>e.changed),T(e=>e.jump)),0);f(S(x,T(e=>e.atBottom)),l),f(S(l,y(50)),a);let L=b(eL);f(S(n,T(({scrollTop:e})=>e),v(),w((e,t)=>m(g)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eL,prevScrollTop:t},{direction:eL,prevScrollTop:0}),T(e=>e.direction)),L),f(S(n,y(50),C("none")),L);let M=b(0);return f(S(h,I(e=>!e),C(0)),M),f(S(r,y(100),z(h),I(([e,t])=>t),w(([e,t],[o])=>[t,o],[0,0]),T(([e,t])=>t-e)),M),{atBottomState:x,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:c,isAtBottom:l,isAtTop:s,isScrolling:h,lastJumpDueToItemResize:B,scrollDirection:L,scrollVelocity:M}},c(N)),ej="bottom",eM="none";function eP(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===eL&&t===ej?e:0:"up"===o?"top"===t?e.main:e.reverse:t===ej?e.main:e.reverse}function eW(e,t){return"number"==typeof e?e:e[t]??0}let eA=B(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let i=k(),l=b(0),s=b(0),a=b(0),u=R(S(F(O(n),O(r),O(o),O(i,el),O(a),O(l),O(t),O(e),O(s)),T(([e,t,o,[n,r],i,l,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),h=eM,m=eW(u,"top"),f=eW(u,ej);return n-=a,n+=o+s,r+=o+s,n>e+(l+s)-m&&(h="up"),(r-=a)<e-c+t+f&&(h=eL),h!==eM?[Math.max(d-o-eP(i,"top",h)-m,0),d-c-s+t+eP(i,ej,h)+f]:null}),I(e=>null!==e),v(el)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:u}},c(N),{singleton:!0}),eV={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eD(e,t,o,n,r,i){let{lastIndex:l,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-l,h=u,m=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:i,items:e_(e,r,i),offsetBottom:m,offsetTop:u,top:h,topItems:e_(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eG(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-l>=e)break;l++}let s=e+l,a=ek(t,s);return eD(Array.from({length:s}).map((e,t)=>({data:i[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function e_(e,t,o){if(0===e.length)return[];if(!ed(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,i=[],l=Z(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}function eN(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}let eK=B(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:u},{initialTopMostItemIndex:d,scrolledToInitialItem:c},{topListHeight:h},g,{didMount:p},{recalcInProgress:x}])=>{let C=b([]),w=b(0),H=k(),B=b(0);f(i.topItemsIndexes,C);let L=R(S(F(p,x,O(u,el),O(r),O(n),O(d),c,O(C),O(t),O(o),O(B),e),I(([e,t,,o,,,,,,,,n])=>{let r=void 0!==n&&n.length!==o;return e&&!t&&!r}),T(([,,[e,t],o,n,r,i,l,s,a,u,d])=>{var c;let{offsetTree:h,sizeTree:f}=n,g=m(w);if(0===o)return{...eV,totalCount:o};if(0===e&&0===t)return 0===g?{...eV,totalCount:o}:eG(g,r,n,s,a,d||[]);if($(f))return g>0?null:eD(function(e,t,o){if(ed(t)){let n=ef(e,t);return[{index:Y(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}(ek(r,o),n,d),[],o,a,n,s);let p=[];if(l.length>0){let e=l[0],t=l[l.length-1],o=0;for(let n of Z(f,e,t)){let r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)p.push({data:d?.[e],index:e,offset:o,size:r}),o+=r}}if(!i)return eD([],p,o,a,n,s);let x=l.length>0?l[l.length-1]+1:0,v=function(e,t,o,n=0){let r,i;return n>0&&(t=Math.max(t,e[ea(e,n,ec)].offset)),q((r=ea(e,t,eh),i=ea(e,o,eh,r),e.slice(r,i+1)),eI)}(h,e,t,x);if(0===v.length)return null;let I=o-1,T=((o=>{for(let n of v){let r=n.value,i=r.offset,l=n.start,s=r.size;if(r.offset<e){let t=(l+=Math.floor((e-r.offset+a)/(s+a)))-n.start;i+=t*s+t*a}l<x&&(i+=(x-l)*s,l=x);let u=Math.min(n.end,I);for(let e=l;e<=u&&!(i>=t);e++)o.push({data:d?.[e],index:e,offset:i,size:s}),i+=s+a}})(c=[]),c),C=eN(u,"top"),S=eN(u,ej);if(T.length>0&&(C>0||S>0)){let e=T[0],t=T[T.length-1];if(C>0&&e.index>x){let t=Math.min(C,e.index-x),o=[],n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){let t=Z(f,r,r)[0]?.value??e.size;n-=t+a,o.unshift({data:d?.[r],index:r,offset:n,size:t})}T.unshift(...o)}if(S>0&&t.index<I){let e=Math.min(S,I-t.index),o=t.offset+t.size+a;for(let n=t.index+1;n<=t.index+e;n++){let e=Z(f,n,n)[0]?.value??t.size;T.push({data:d?.[n],index:n,offset:o,size:e}),o+=e+a}}}return eD(T,p,o,a,n,s)}),I(e=>null!==e),v()),eV);f(S(e,I(a),T(e=>e?.length)),r),f(S(L,T(e=>e.topListHeight)),h),f(h,s),f(S(L,T(e=>[e.top,e.bottom])),l),f(S(L,T(e=>e.items)),H);let j=E(S(L,I(({items:e})=>e.length>0),z(r,e),I(([{items:e},t])=>e[e.length-1].originalIndex===t-1),T(([,e,t])=>[e-1,t]),v(el),T(([e])=>e))),M=E(S(L,y(200),I(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),T(({items:e})=>e[0].index),v())),P=E(S(L,I(({items:e})=>e.length>0),T(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),v(ei)));return{endReached:j,initialItemCount:w,itemsRendered:H,listState:L,minOverscanItemCount:B,rangeChanged:P,startReached:M,topItemsIndexes:C,...g}},c(eC,ew,eA,eE,eb,eO,eH,es),{singleton:!0}),eq=B(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let i=k(),l=R(S(F(o,e,n,t,r),T(([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom)),0);return f(O(l),i),{totalListHeight:l,totalListHeightChanged:i}},c(N,eK),{singleton:!0}),e$=B(([{viewportHeight:e},{totalListHeight:t}])=>{let o=b(!1),n=R(S(F(o,e,t),I(([e])=>e),T(([,e,t])=>Math.max(0,e-t)),y(0),v()),0);return{alignToBottom:o,paddingTopAddition:n}},c(N,eq),{singleton:!0}),eU=B(()=>({context:b(null)})),eY=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",...void 0!==n?{behavior:n}:{}}:e>i?{...r,align:o??"end",...void 0!==n?{behavior:n}:{}}:null,eX=B(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=k();return f(S(d,z(t,a,o,i,r,n,s),z(e),T(([[e,t,o,n,r,i,s,a],u])=>{let{calculateViewLocation:d=eY,done:c,...h}=e,f=eg(e,t,n-1),p=em(f,t.offsetTree,u)+r+i,x=d({itemBottom:p+Y(t.sizeTree,f)[1],itemTop:p,locationParams:h,viewportBottom:a+o-s,viewportTop:a+i});return null!==x?c&&g(S(l,I(e=>!e),H(m(l)?1:2)),c):c?.(),x}),I(e=>null!==e)),u),{scrollIntoView:d}},c(eC,N,eb,eK,W),{singleton:!0});function eZ(e){return!1!==e&&("smooth"===e?"smooth":"auto")}let eJ=B(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:c},{context:h},{scrollIntoView:p}])=>{let x=b(!1),v=k(),C=null;function R(e){l(0,{align:"end",behavior:e,index:"LAST"})}function E(e){setTimeout(g(r,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===C&&(m(d)("scrolling to bottom due to increased size",{},0),R("auto"))}),100)}S(F(S(O(t),H(1)),a),z(O(x),i,s,c),T(([[e,t],o,n,r,i])=>{let l,s=t&&r,a="auto";return s&&(l=n||i,a="function"==typeof o?eZ(o(l)):l&&eZ(o),s=s&&!1!==a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),I(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{null!==C&&(C(),C=null),void 0!==m(o)?requestAnimationFrame(()=>{m(d)("following output to ",{totalCount:n},0),R(t)}):C=g(e,()=>{m(d)("following output to ",{totalCount:n},0),R(t),C=null})}),S(F(O(x),t,u),I(([e,,t])=>!1!==e&&t),w(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),I(({refreshed:e})=>e),z(x,t))(1,([,e])=>{m(s)&&E(!1!==e)}),v(1,()=>{E(!1!==m(x))}),F(O(x),r)(1,([e,t])=>{!1===e||t.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==t.notAtBottomBecause||R("auto")});let B=b(null),L=k();return f(j(S(O(n),T(e=>e?.length??0)),S(O(t))),L),S(F(S(L,H(1)),a),z(O(B),s,c,h),T(([[e,t],o,n,r,i])=>t&&n&&o?.({context:i,totalCount:e,scrollingInProgress:r})),I(e=>!!e),y(0))(1,t=>{null!==C&&(C(),C=null),void 0!==m(o)?requestAnimationFrame(()=>{m(d)("scrolling into view",{}),p(0,t)}):C=g(e,()=>{m(d)("scrolling into view",{}),p(0,t),C=null})}),{autoscrollToBottom:v,followOutput:x,scrollIntoViewOnChange:B}},c(eC,eO,eb,eE,eH,W,N,eU,eX)),eQ=B(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(f(S(s,z(i),I(([,e])=>0!==e),z(r,n,t,o,e),T(([[,e],t,o,n,r,i=[]])=>eG(e,t,o,n,r,i))),l),{}),c(eC,eE,eK,eH),{singleton:!0}),e0=B(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=b(0);return S(e,z(n),I(([,e])=>0!==e),T(([,e])=>({top:e})))(1,e=>{g(S(o,H(1),I(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},c(eH,N,eK),{singleton:!0}),e1=B(([{scrollVelocity:e}])=>{let t=b(!1),o=k(),n=b(!1);return f(S(e,z(n,t,o),I(([e,t])=>!1!==t&&void 0!==t),T(([e,t,o,n])=>{let{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),v()),t),S(F(t,e,o),z(n))(1,([[e,t,o],n])=>{e&&!1!==n&&void 0!==n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},c(eO),{singleton:!0}),e2=B(([{scrollContainerState:e,scrollTo:t}])=>{let o=k(),n=k(),r=k(),i=b(!1),l=b(void 0);return f(S(F(o,n),T(([{scrollTop:e,viewportHeight:t},{offsetTop:o,listHeight:n}])=>({scrollHeight:n,scrollTop:Math.max(0,e-o),viewportHeight:t}))),e),f(S(t,z(n),T(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},c(N)),e3=B(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:u}])=>{let d=k(),c=b(void 0),h=b(null),m=b(null);return f(s,h),f(u,m),S(d,z(t,n,l,h,m,o))(1,([e,t,o,n,r,i,l])=>{let s=J(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:void 0!==r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),f(S(c,I(a),T(e4)),r),f(S(i,z(c),I(([,e])=>void 0!==e),v(),T(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},c(eC,N,eE,eH,e2));function e4(e){return{align:"start",index:0,offset:e.scrollTop}}let e5=B(([{topItemsIndexes:e}])=>{let t=b(0);return f(S(t,I(e=>e>=0),T(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},c(eK));function e6(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e8=e6(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e9=B(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:g}])=>{let p=E(S(a,z(l),w(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{let a=n+i,u=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,l,a]},[0,[],0,0]),I(([e])=>0!==e),z(n,s,o,r,m,g),I(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),T(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function x(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return S(p,z(e,i))(1,([t,o,n])=>{n&&e8()?e(0,o-t):x(-t)}),S(F(R(i,!1),e,g),I(([e,t,o])=>!e&&!o&&0!==t),T(([e,t])=>t),y(1))(1,x),f(S(c,T(e=>({top:-e}))),t),S(u,z(h,d),T(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);let i=0,l=U(n,0),s=0,a=0;for(;s<e;){s++,i+=l;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(i-=l,n=e-s+1),s+=n,i+=n*(o+r),a++}return i}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),g(0,!1)})})}),{deviation:e}},c(N,eO,eK,eC,W,es)),e7=B(([e,t,o,n,r,i,l,s,a,u,d])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...u,...d}),c(eA,eQ,eH,e1,eq,e0,e$,e2,eX,W,eU)),te=B(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:a,sizeRanges:u,sizes:d,statefulTotalCount:c,totalCount:h,trackItemSizes:m},{initialItemFinalLocationReached:g,initialTopMostItemIndex:p,scrolledToInitialItem:x},v,I,C,w,{scrollToIndex:H},y,{topItemCount:z},{groupCounts:b},R])=>{let{listState:k,minOverscanItemCount:E,topItemsIndexes:B,rangeChanged:L,...F}=w;return f(L,R.scrollSeekRangeChanged),f(S(R.windowViewportRect,T(e=>e.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:b,heightEstimates:s,initialItemFinalLocationReached:g,initialTopMostItemIndex:p,scrolledToInitialItem:x,sizeRanges:u,topItemCount:z,topItemsIndexes:B,totalCount:h,...C,groupIndices:l,itemSize:a,listState:k,minOverscanItemCount:E,scrollToIndex:H,statefulTotalCount:c,trackItemSizes:m,rangeChanged:L,...F,...R,...v,sizes:d,...I}},c(eC,eE,N,e3,eJ,eK,eb,e9,e5,ew,e7)),tt="u">typeof document?r.useLayoutEffect:r.useEffect;function to(e,t,o){let i=Object.keys(t.required||{}),l=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),d=r.createContext({});function c(e,o){for(let n of(void 0!==e.propsReady&&(0,e.propsReady)(0,!1),i))(0,e[t.required[n]])(0,o[n]);for(let n of l)n in o&&(0,e[t.optional[n]])(0,o[n]);void 0!==e.propsReady&&(0,e.propsReady)(0,!0)}function f(e){return a.reduce((o,n)=>{var r;let i,l,s;return o[n]=(r=e[t.events[n]],s=()=>i?.(),function(e,t){switch(e){case 1:return t?l===t?void 0:(s(),l=t,i=r(1,t)):(s(),u);case 2:s(),l=null;return}}),o},{})}return{Component:r.forwardRef(function(u,m){var g;let{children:p,...x}=u,[v]=r.useState(()=>{var t;let o,n;return o=new Map,c(t=(n=({constructor:e,dependencies:t,id:r,singleton:i})=>{if(i&&o.has(r))return o.get(r);let l=e(t.map(e=>n(e)));return i&&o.set(r,l),l})(e),x),t}),[I]=r.useState(()=>f(v));return tt(()=>{for(let e of a)e in x&&(0,I[e])(1,x[e]);return()=>{Object.values(I).map(h)}},[x,I,v]),tt(()=>{c(v,x)}),r.useImperativeHandle(m,(g=s.reduce((e,o)=>(e[o]=e=>{(0,v[t.methods[o]])(0,e)},e),{}),()=>g)),(0,n.jsx)(d.Provider,{value:v,children:void 0!==o?(0,n.jsx)(o,{...function(e,t){let o={},n={},r=0,i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...i,...l,...a],x),children:p}):p})}),useEmitter:(e,t)=>{let o=r.useContext(d)[e];tt(()=>o(1,t),[t,o])},useEmitterValue:parseInt(r.version)>=18?e=>{let t=r.useContext(d)[e],o=r.useCallback(e=>t(1,e),[t]);return r.useSyncExternalStore(o,()=>m(t),()=>m(t))}:e=>{let t=r.useContext(d)[e],[o,n]=r.useState(()=>m(t));return tt(()=>t(1,e=>{e!==o&&n(()=>e)}),[t,o]),o},usePublisher:e=>{let t=r.useContext(d);return r.useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let tn=r.createContext(void 0),tr=r.createContext(void 0),ti="-webkit-sticky",tl="sticky",ts=e6(()=>{if(typeof document>"u")return tl;let e=document.createElement("div");return e.style.position=ti,e.style.position===ti?ti:tl}),ta="u">typeof document?r.useLayoutEffect:r.useEffect;function tu(e){return"self"in e}function td(e,t,o,n=u,l,s){let a=r.useRef(null),d=r.useRef(null),c=r.useRef(null),h=r.useCallback(o=>{let n,r,l,a=o.target;if("body"in a||tu(a)){let e=tu(a)?a:a.defaultView;l=!0===s?e.scrollX:e.scrollY,n=!0===s?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,r=!0===s?e.innerWidth:e.innerHeight}else l=!0===s?a.scrollLeft:a.scrollTop,n=!0===s?a.scrollWidth:a.scrollHeight,r=!0===s?a.offsetWidth:a.offsetHeight;let u=()=>{e({scrollHeight:n,scrollTop:Math.max(l,0),viewportHeight:r})};!0===o.suppressFlushSync?u():i.flushSync(u),null!==d.current&&(l===d.current||l<=0||l===n-r)&&(d.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,s]);return r.useEffect(()=>{let e=l||a.current;return n(l||a.current),h({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",h,{passive:!0}),()=>{n(null),e.removeEventListener("scroll",h)}},[a,h,o,n,l]),{scrollByCallback:function(e){!0===s&&(e={...void 0!==e.behavior?{behavior:e.behavior}:{},...void 0!==e.top?{left:e.top}:{}}),a.current.scrollBy(e)},scrollerRef:a,scrollToCallback:function(o){let n,r,i,l=a.current;if(!l||(!0===s?"offsetWidth"in l&&0===l.offsetWidth:"offsetHeight"in l&&0===l.offsetHeight))return;let u="smooth"===o.behavior;tu(l)?(r=Math.max(eu(l.document.documentElement,!0===s?"width":"height"),!0===s?l.document.documentElement.scrollWidth:l.document.documentElement.scrollHeight),n=!0===s?l.innerWidth:l.innerHeight,i=!0===s?window.scrollX:window.scrollY):(r=l[!0===s?"scrollWidth":"scrollHeight"],n=eu(l,!0===s?"width":"height"),i=l[!0===s?"scrollLeft":"scrollTop"]);let h=r-n;if(o.top=Math.ceil(Math.max(Math.min(h,o.top),0)),eB(n,r)||o.top===i){e({scrollHeight:r,scrollTop:i,viewportHeight:n}),u&&t(!0);return}u?(d.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,d.current=null,t(!0)},1e3)):d.current=null,!0===s&&(o={...void 0!==o.behavior?{behavior:o.behavior}:{},left:o.top}),l.scrollTo(o)}}}function tc(e){return e}let th=B(()=>{let e=b(e=>`Item ${e}`),t=b(e=>`Group ${e}`),o=b({}),n=b(tc),r=b("div"),i=b(u),l=(e,t=null)=>R(S(o,T(t=>t[e]),v()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:r,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}),tm=B(([e,t])=>({...e,...t}),c(te,th)),tf=({height:e})=>(0,n.jsx)("div",{style:{height:e}}),tg={overflowAnchor:"none",position:ts(),zIndex:1},tp={overflowAnchor:"none"},tx={...tp,display:"inline-block",height:"100%"},tv=r.memo(function({showTopList:e=!1}){let t=tO("listState"),o=tj("sizeRanges"),i=tO("useWindowScroll"),l=tO("customScrollParent"),s=tj("windowScrollContainerState"),a=tj("scrollContainerState"),d=tO("itemContent"),c=tO("context"),h=tO("groupContent"),m=tO("trackItemSizes"),f=tO("itemSize"),g=tO("log"),p=tj("gap"),x=tO("horizontalDirection"),{callbackRef:v}=D(o,f,m,e?u:l||i?s:a,g,p,l,x,tO("skipAnimationFrameInResizeObserver")),[I,T]=r.useState(0);tF("deviation",e=>{I!==e&&T(e)});let C=tO("EmptyPlaceholder"),S=tO("ScrollSeekPlaceholder")??tf,w=tO("ListComponent"),H=tO("ItemComponent"),y=tO("GroupComponent"),z=tO("computeItemKey"),b=tO("isSeeking"),R=tO("groupIndices").length>0,k=tO("alignToBottom"),E=tO("initialItemFinalLocationReached"),B=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==I?I:k?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:k?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...E?{}:{visibility:"hidden"}};return e||0!==t.totalCount||null==C?(0,n.jsx)(w,{...tw(w,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:B,children:(e?t.topItems:t.items).map(e=>{let o=e.originalIndex,n=z(o+t.firstItemIndex,e.data,c);return b?(0,r.createElement)(S,{...tw(S,c),height:e.size,index:e.index,key:n,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,r.createElement)(y,{...tw(y,c),"data-index":o,"data-item-index":e.index,"data-known-size":e.size,key:n,style:tg},h(e.index,c)):(0,r.createElement)(H,{...tw(H,c),...tH(H,e.data),"data-index":o,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:n,style:x?tx:tp},R?d(e.index,e.groupIndex,e.data,c):d(e.index,e.data,c))})}):(0,n.jsx)(C,{...tw(C,c)})}),tI={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tT={outline:"none",overflowX:"auto",position:"relative"},tC=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),tS={position:ts(),top:0,width:"100%",zIndex:1};function tw(e,t){if("string"!=typeof e)return{context:t}}function tH(e,t){return{item:"string"==typeof e?void 0:t}}let ty=r.memo(function(){let e=tO("HeaderComponent"),t=tj("headerHeight"),o=tO("HeaderFooterTag"),i=A(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,tO("skipAnimationFrameInResizeObserver")),l=tO("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tw(e,l)})}):null}),tz=r.memo(function(){let e=tO("FooterComponent"),t=tj("footerHeight"),o=tO("HeaderFooterTag"),i=A(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,tO("skipAnimationFrameInResizeObserver")),l=tO("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tw(e,l)})}):null});function tb({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:r,style:i,context:l,...s}){let a=o("scrollContainerState"),u=t("ScrollerComponent"),d=o("smoothScrollTargetReached"),c=t("scrollerRef"),h=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:f,scrollToCallback:g}=td(a,d,u,c,void 0,h);return e("scrollTo",g),e("scrollBy",m),(0,n.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:f,style:{...h?tT:tI,...i},tabIndex:0,...s,...tw(u,l),children:r})})}function tR({useEmitter:e,useEmitterValue:t,usePublisher:o}){return r.memo(function({children:i,style:l,context:s,...a}){let u=o("windowScrollContainerState"),d=t("ScrollerComponent"),c=o("smoothScrollTargetReached"),h=t("totalListHeight"),m=t("deviation"),f=t("customScrollParent"),g=r.useRef(null),{scrollByCallback:p,scrollerRef:x,scrollToCallback:v}=td(u,c,d,t("scrollerRef"),f);return ta(()=>(x.current=f||g.current?.ownerDocument.defaultView,()=>{x.current=null}),[x,f]),e("windowScrollTo",v),e("scrollBy",p),(0,n.jsx)(d,{ref:g,"data-virtuoso-scroller":!0,style:{position:"relative",...l,...0!==h?{height:h+m}:void 0},...a,...tw(d,s),children:i})})}let tk=({children:e})=>{let t=r.useContext(tn),o=tj("viewportHeight"),i=tj("fixedItemHeight"),l=tO("alignToBottom"),a=tO("horizontalDirection"),u=A(r.useMemo(()=>s(o,e=>eu(e,a?"width":"height")),[o,a]),!0,tO("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:u,style:tC(l),children:e})},tE=({children:e})=>{let t=r.useContext(tn),o=tj("windowViewportRect"),i=tj("fixedItemHeight"),l=_(o,tO("customScrollParent"),tO("skipAnimationFrameInResizeObserver")),s=tO("alignToBottom");return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:l,style:tC(s),children:e})},tB=({children:e})=>{let t=tO("TopItemListComponent")??"div",o=tO("headerHeight"),r={...tS,marginTop:`${o}px`},i=tO("context");return(0,n.jsx)(t,{style:r,...tw(t,i),children:e})},{Component:tL,useEmitter:tF,useEmitterValue:tO,usePublisher:tj}=to(tm,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo(function(e){let t=tO("useWindowScroll"),o=tO("topItemsIndexes").length>0,r=tO("customScrollParent"),i=tO("context");return(0,n.jsxs)(r||t?tP:tM,{...e,context:i,children:[o&&(0,n.jsx)(tB,{children:(0,n.jsx)(tv,{showTopList:!0})}),(0,n.jsxs)(r||t?tE:tk,{children:[(0,n.jsx)(ty,{}),(0,n.jsx)(tv,{}),(0,n.jsx)(tz,{})]})]})})),tM=tb({useEmitter:tF,useEmitterValue:tO,usePublisher:tj}),tP=tR({useEmitter:tF,useEmitterValue:tO,usePublisher:tj}),tW=tL,tA=B(()=>{let e=b(e=>(0,n.jsxs)("td",{children:["Item $",e]})),t=b(null),o=b(e=>(0,n.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=b(null),i=b(null),l=b({}),s=b(tc),a=b(u),d=(e,t=null)=>R(S(l,T(t=>t[e]),v()),t);return{components:l,computeItemKey:s,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:o,ScrollerComponent:d("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}),tV=B(([e,t])=>({...e,...t}),c(te,tA)),tD=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{height:e}})}),tG=({height:e})=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:{border:0,height:e,padding:0}})}),t_={overflowAnchor:"none"},tN={position:ts(),zIndex:2,overflowAnchor:"none"},tK=r.memo(function({showTopList:e=!1}){let t=tX("listState"),o=tX("computeItemKey"),n=tX("firstItemIndex"),i=tX("context"),l=tX("isSeeking"),s=tX("fixedHeaderHeight"),a=tX("groupIndices").length>0,u=tX("itemContent"),d=tX("groupContent"),c=tX("ScrollSeekPlaceholder")??tD,h=tX("GroupComponent"),m=tX("TableRowComponent"),f=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let g=t.originalIndex,p=o(g+n,t.data,i),x=e?0===g?0:f[g-1]:0;return l?(0,r.createElement)(c,{...tw(c,i),height:t.size,index:t.index,key:p,type:t.type||"item"}):"group"===t.type?(0,r.createElement)(h,{...tw(h,i),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,key:p,style:{...tN,top:s}},d(t.index,i)):(0,r.createElement)(m,{...tw(m,i),...tH(m,t.data),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:p,style:e?{...tN,top:s+x}:t_},a?u(t.index,t.groupIndex,t.data,i):u(t.index,t.data,i))})}),tq=r.memo(function(){let e=tX("listState"),t=tX("topItemsIndexes").length>0,o=tZ("sizeRanges"),i=tX("useWindowScroll"),l=tX("customScrollParent"),s=tZ("windowScrollContainerState"),a=tZ("scrollContainerState"),u=tX("trackItemSizes"),{callbackRef:d,ref:c}=D(o,tX("itemSize"),u,l||i?s:a,tX("log"),void 0,l,!1,tX("skipAnimationFrameInResizeObserver")),[h,m]=r.useState(0);tY("deviation",e=>{h!==e&&(c.current.style.marginTop=`${e}px`,m(e))});let f=tX("EmptyPlaceholder"),g=tX("FillerRow")??tG,p=tX("TableBodyComponent"),x=tX("paddingTopAddition"),v=tX("statefulTotalCount"),I=tX("context");if(0===v&&null!=f)return(0,n.jsx)(f,{...tw(f,I)});let T=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),C=e.offsetTop+x+h-T,S=e.offsetBottom,w=C>0?(0,n.jsx)(g,{context:I,height:C},"padding-top"):null,H=S>0?(0,n.jsx)(g,{context:I,height:S},"padding-bottom"):null;return(0,n.jsxs)(p,{"data-testid":"virtuoso-item-list",ref:d,...tw(p,I),children:[w,t&&(0,n.jsx)(tK,{showTopList:!0}),(0,n.jsx)(tK,{}),H]})}),t$=({children:e})=>{let t=r.useContext(tn),o=tZ("viewportHeight"),i=tZ("fixedItemHeight"),l=A(r.useMemo(()=>s(o,e=>eu(e,"height")),[o]),!0,tX("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(o(t.viewportHeight),i(t.itemHeight))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"element",ref:l,style:tC(!1),children:e})},tU=({children:e})=>{let t=r.useContext(tn),o=tZ("windowViewportRect"),i=tZ("fixedItemHeight"),l=_(o,tX("customScrollParent"),tX("skipAnimationFrameInResizeObserver"));return r.useEffect(()=>{t&&(i(t.itemHeight),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,i]),(0,n.jsx)("div",{"data-viewport-type":"window",ref:l,style:tC(!1),children:e})},{useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}=to(tV,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo(function(e){let t=tX("useWindowScroll"),o=tX("customScrollParent"),i=tZ("fixedHeaderHeight"),l=tZ("fixedFooterHeight"),a=tX("fixedHeaderContent"),u=tX("fixedFooterContent"),d=tX("context"),c=A(r.useMemo(()=>s(i,e=>eu(e,"height")),[i]),!0,tX("skipAnimationFrameInResizeObserver")),h=A(r.useMemo(()=>s(l,e=>eu(e,"height")),[l]),!0,tX("skipAnimationFrameInResizeObserver")),m=o||t?tQ:tJ,f=o||t?tU:t$,g=tX("TableComponent"),p=tX("TableHeadComponent"),x=tX("TableFooterComponent"),v=a?(0,n.jsx)(p,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tw(p,d),children:a()},"TableHead"):null,I=u?(0,n.jsx)(x,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...tw(x,d),children:u()},"TableFoot"):null;return(0,n.jsx)(m,{...e,...tw(m,d),children:(0,n.jsx)(f,{children:(0,n.jsxs)(g,{style:{borderSpacing:0,overflowAnchor:"none"},...tw(g,d),children:[v,(0,n.jsx)(tq,{},"TableBody"),I]})})})})),tJ=tb({useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}),tQ=tR({useEmitter:tY,useEmitterValue:tX,usePublisher:tZ}),t0={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},t1={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:t2,floor:t3,max:t4,min:t5,round:t6}=Math;function t8(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function t9(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function t7(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}let oe=B(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},h,m,{didMount:p,propsReady:x},{customScrollParent:w,useWindowScroll:B,windowScrollContainerState:L,windowScrollTo:j,windowViewportRect:M},P])=>{let W=b(0),A=b(0),V=b(t0),D=b({height:0,width:0}),G=b({height:0,width:0}),_=k(),N=k(),K=b(0),q=b(null),$=b({column:0,row:0}),U=k(),Y=k(),X=b(!1),Z=b(0),J=b(!0),Q=b(!1),ee=b(!1);S(p,z(Z),I(([e,t])=>0!==t))(1,()=>{J(0,!1)}),S(F(p,J,G,D,Z,Q),I(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),eR(1,()=>{_(0,e)}),g(S(u),()=>{t(0,[0,0]),J(0,!0)})}),f(S(Y,I(e=>null!=e&&e.scrollTop>0),C(0)),A),S(p,z(Y),I(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),G(0,e.item),$(0,e.gap),e.scrollTop>0&&(X(0,!0),g(S(u,H(1)),e=>{X(0,!1)}),a(0,{top:e.scrollTop})))}),f(S(D,T(({height:e})=>e)),c),f(S(F(O(D,t9),O(G,t9),O($,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),O(u)),T(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),U),f(S(F(O(W),n,O($,t7),O(G,t9),O(D,t9),O(q),O(A),O(X),O(J),O(Z)),I(([,,,,,,,e])=>!e),T(([e,[t,o],n,r,i,l,s,,a,u])=>{let d,c,{column:h,row:m}=n,{height:f,width:g}=r,{width:p}=i;if(0===s&&(0===e||0===p))return t0;if(0===g){var x;let t=ek(u,e),o=t+Math.max(s-1,0);return x=t8(t,o,l),{...t1,items:x}}let v=ot(p,g,h);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=v*t3((t+m)/(f+m)),c=t5(e-1,t4(c=v*t2((o+m)/(f+m))-1,v-1)),d=t5(c,t4(0,d))):(d=0,c=-1);let I=t8(d,c,l),{bottom:T,top:C}=oo(i,n,r,I),S=t2(e/v);return{bottom:T,itemHeight:f,items:I,itemWidth:g,offsetBottom:S*f+(S-1)*m-T,offsetTop:C,top:C}})),V),f(S(q,I(e=>null!==e),T(e=>e.length)),W),f(S(F(D,G,V,$),I(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),T(([e,t,{items:o},n])=>{let{bottom:r,top:i}=oo(e,n,t,o);return[i,r]}),v(el)),t);let et=b(!1);f(S(u,z(et),T(([e,t])=>t||0!==e)),et);let eo=E(S(F(V,W),I(([{items:e}])=>e.length>0),z(et),I(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),T(([[,e]])=>e-1),v())),en=E(S(O(V),I(({items:e})=>e.length>0&&0===e[0].index),C(0),v())),er=E(S(O(V),z(X),I(([{items:e},t])=>e.length>0&&!t),T(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),v(ei),y(0)));f(er,m.scrollSeekRangeChanged),f(S(_,z(D,G,W,$),T(([e,t,o,n,r])=>{let i=ez(e),{align:l,behavior:s,offset:a}=i,u=i.index;"LAST"===u&&(u=n-1);let d=on(t,r,o,u=t4(0,u,t5(n-1,u)));return"end"===l?d=t6(d-t.height+o.height):"center"===l&&(d=t6(d-t.height/2+o.height/2)),void 0!==a&&0!==a&&(d+=a),{behavior:s,top:d}})),a);let es=R(S(V,T(e=>e.offsetBottom+e.bottom)),0);return f(S(M,T(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:w,data:q,deviation:K,footerHeight:r,gap:$,headerHeight:i,increaseViewportBy:e,initialItemCount:A,itemDimensions:G,overscan:o,restoreStateFrom:Y,scrollBy:l,scrollContainerState:s,scrollHeight:N,scrollTo:a,scrollToIndex:_,scrollTop:u,smoothScrollTargetReached:d,totalCount:W,useWindowScroll:B,viewportDimensions:D,windowScrollContainerState:L,windowScrollTo:j,windowViewportRect:M,...m,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:Z,totalListHeight:es,...h,endReached:eo,propsReady:x,rangeChanged:er,startReached:en,stateChanged:U,stateRestoreInProgress:X,...P}},c(eA,N,eO,e1,eH,e2,W));function ot(e,t,o){return t4(1,t3((e+o)/(t3(t)+o)))}function oo(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let i=on(e,t,o,n[0].index);return{bottom:on(e,t,o,n[n.length-1].index)+r,top:i}}function on(e,t,o,n){let r=t3(n/ot(e.width,o.width,t.column)),i=r*o.height+t4(0,r-1)*t.row;return i>0?i+t.row:i}let or=B(()=>{let e=b(e=>`Item ${e}`),t=b({}),o=b(null),n=b("virtuoso-grid-item"),r=b("virtuoso-grid-list"),i=b(tc),l=b("div"),s=b(u),a=(e,o=null)=>R(S(t,T(t=>t[e]),v()),o),d=b(!1),c=b(!1);return f(O(c),d),{components:t,computeItemKey:i,context:o,FooterComponent:a("Footer"),HeaderComponent:a("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:a("Item","div"),itemContent:e,listClassName:r,ListComponent:a("List","div"),readyStateChanged:d,reportReadyState:c,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}}),oi=B(([e,t])=>({...e,...t}),c(oe,or)),ol=r.memo(function(){let e=oh("gridState"),t=oh("listClassName"),o=oh("itemClassName"),i=oh("itemContent"),l=oh("computeItemKey"),s=oh("isSeeking"),a=om("scrollHeight"),u=oh("ItemComponent"),d=oh("ListComponent"),c=oh("ScrollSeekPlaceholder"),h=oh("context"),m=om("itemDimensions"),f=om("gap"),g=oh("log"),p=oh("stateRestoreInProgress"),x=om("reportReadyState"),v=A(r.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(null!==t){let{height:e,width:o}=t.getBoundingClientRect();m({height:e,width:o})}f({column:op("column-gap",getComputedStyle(e).columnGap,g),row:op("row-gap",getComputedStyle(e).rowGap,g)})},[a,m,f,g]),!0,!1);return ta(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),p?null:(0,n.jsx)(d,{className:t,ref:v,...tw(d,h),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=l(t.index,t.data,h);return s?(0,n.jsx)(c,{...tw(c,h),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,r.createElement)(u,{...tw(u,h),className:o,"data-index":t.index,key:a},i(t.index,t.data,h))})})}),os=r.memo(function(){let e=oh("HeaderComponent"),t=om("headerHeight"),o=oh("headerFooterTag"),i=A(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,!1),l=oh("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tw(e,l)})}):null}),oa=r.memo(function(){let e=oh("FooterComponent"),t=om("footerHeight"),o=oh("headerFooterTag"),i=A(r.useMemo(()=>e=>{t(eu(e,"height"))},[t]),!0,!1),l=oh("context");return null!=e?(0,n.jsx)(o,{ref:i,children:(0,n.jsx)(e,{...tw(e,l)})}):null}),ou=({children:e})=>{let t=r.useContext(tr),o=om("itemDimensions"),i=om("viewportDimensions"),l=A(r.useMemo(()=>e=>{i(e.getBoundingClientRect())},[i]),!0,!1);return r.useEffect(()=>{t&&(i({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,i,o]),(0,n.jsx)("div",{ref:l,style:tC(!1),children:e})},od=({children:e})=>{let t=r.useContext(tr),o=om("windowViewportRect"),i=om("itemDimensions"),l=_(o,oh("customScrollParent"),!1);return r.useEffect(()=>{t&&(i({height:t.itemHeight,width:t.itemWidth}),o({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,i]),(0,n.jsx)("div",{ref:l,style:tC(!1),children:e})},{useEmitter:oc,useEmitterValue:oh,usePublisher:om}=to(oi,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},r.memo(function({...e}){let t=oh("useWindowScroll"),o=oh("customScrollParent"),r=o||t?og:of,i=o||t?od:ou,l=oh("context");return(0,n.jsx)(r,{...e,...tw(r,l),children:(0,n.jsxs)(i,{children:[(0,n.jsx)(os,{}),(0,n.jsx)(ol,{}),(0,n.jsx)(oa,{})]})})})),of=tb({useEmitter:oc,useEmitterValue:oh,usePublisher:om}),og=tR({useEmitter:oc,useEmitterValue:oh,usePublisher:om});function op(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}}}]);