@agentshouse/mdruntime 0.1.0-cc5745cd9af96 → 0.1.0-cc7671cc3f267

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 (422) hide show
  1. package/README.md +24 -19
  2. package/dist/acceptance.d.ts +3 -0
  3. package/dist/acceptance.d.ts.map +1 -0
  4. package/dist/acceptance.js +299 -0
  5. package/dist/act-lanes.d.ts +30 -0
  6. package/dist/act-lanes.d.ts.map +1 -0
  7. package/dist/act-lanes.js +225 -0
  8. package/dist/actions.d.ts +26 -0
  9. package/dist/actions.d.ts.map +1 -0
  10. package/dist/actions.js +313 -0
  11. package/dist/adapter.d.ts +215 -123
  12. package/dist/adapter.d.ts.map +1 -1
  13. package/dist/attached-model.d.ts +6 -10
  14. package/dist/attached-model.d.ts.map +1 -1
  15. package/dist/attached-model.js +35 -41
  16. package/dist/authored.d.ts +88 -0
  17. package/dist/authored.d.ts.map +1 -0
  18. package/dist/authored.js +345 -0
  19. package/dist/binary.d.ts +0 -5
  20. package/dist/binary.d.ts.map +1 -1
  21. package/dist/binary.js +1 -1
  22. package/dist/bootstrap.d.ts +30 -11
  23. package/dist/bootstrap.d.ts.map +1 -1
  24. package/dist/bootstrap.js +309 -113
  25. package/dist/cell.d.ts +6 -0
  26. package/dist/cell.d.ts.map +1 -0
  27. package/dist/cell.js +9 -0
  28. package/dist/chain.d.ts +12 -0
  29. package/dist/chain.d.ts.map +1 -0
  30. package/dist/chain.js +64 -0
  31. package/dist/change-set.d.ts +10 -16
  32. package/dist/change-set.d.ts.map +1 -1
  33. package/dist/change-set.js +17 -94
  34. package/dist/change.d.ts +36 -1
  35. package/dist/change.d.ts.map +1 -1
  36. package/dist/change.js +17 -3
  37. package/dist/chat-types.d.ts +3 -0
  38. package/dist/chat-types.d.ts.map +1 -0
  39. package/dist/chat-types.js +11 -0
  40. package/dist/client.d.ts +43 -26
  41. package/dist/client.d.ts.map +1 -1
  42. package/dist/client.js +89 -26
  43. package/dist/collection.d.ts +33 -22
  44. package/dist/collection.d.ts.map +1 -1
  45. package/dist/collection.js +53 -352
  46. package/dist/column.d.ts +5 -0
  47. package/dist/column.d.ts.map +1 -0
  48. package/dist/column.js +9 -0
  49. package/dist/compile.d.ts +18 -0
  50. package/dist/compile.d.ts.map +1 -0
  51. package/dist/compile.js +723 -0
  52. package/dist/connection.d.ts +7 -137
  53. package/dist/connection.d.ts.map +1 -1
  54. package/dist/connection.js +112 -3625
  55. package/dist/context.d.ts +2 -0
  56. package/dist/context.d.ts.map +1 -0
  57. package/dist/{chat/context.js → context.js} +2 -5
  58. package/dist/conversation-live.d.ts +150 -0
  59. package/dist/conversation-live.d.ts.map +1 -0
  60. package/dist/conversation-live.js +259 -0
  61. package/dist/conversation-row.d.ts +40 -0
  62. package/dist/conversation-row.d.ts.map +1 -0
  63. package/dist/conversation-row.js +66 -0
  64. package/dist/conversation.d.ts +73 -50
  65. package/dist/conversation.d.ts.map +1 -1
  66. package/dist/conversation.js +1027 -838
  67. package/dist/declaration.d.ts +10 -0
  68. package/dist/declaration.d.ts.map +1 -0
  69. package/dist/declaration.js +24 -0
  70. package/dist/digest.d.ts +7 -0
  71. package/dist/digest.d.ts.map +1 -0
  72. package/dist/digest.js +113 -0
  73. package/dist/discovery.d.ts +12 -0
  74. package/dist/discovery.d.ts.map +1 -0
  75. package/dist/discovery.js +157 -0
  76. package/dist/download.d.ts +6 -0
  77. package/dist/download.d.ts.map +1 -0
  78. package/dist/download.js +42 -0
  79. package/dist/durability.d.ts +21 -4
  80. package/dist/durability.d.ts.map +1 -1
  81. package/dist/durability.js +12 -0
  82. package/dist/entry.d.ts +10 -2
  83. package/dist/entry.d.ts.map +1 -1
  84. package/dist/entry.js +47 -32
  85. package/dist/expectation.d.ts +26 -13
  86. package/dist/expectation.d.ts.map +1 -1
  87. package/dist/expectation.js +72 -19
  88. package/dist/failure.d.ts +3 -0
  89. package/dist/failure.d.ts.map +1 -1
  90. package/dist/failure.js +8 -0
  91. package/dist/figures.d.ts +49 -0
  92. package/dist/figures.d.ts.map +1 -0
  93. package/dist/figures.js +199 -0
  94. package/dist/file.d.ts +2 -19
  95. package/dist/file.d.ts.map +1 -1
  96. package/dist/file.js +8 -122
  97. package/dist/holdings.d.ts +29 -0
  98. package/dist/holdings.d.ts.map +1 -0
  99. package/dist/holdings.js +95 -0
  100. package/dist/host.d.ts +22 -9
  101. package/dist/host.d.ts.map +1 -1
  102. package/dist/host.js +127 -51
  103. package/dist/house-query.d.ts +21 -0
  104. package/dist/house-query.d.ts.map +1 -0
  105. package/dist/house-query.js +41 -0
  106. package/dist/identity.d.ts +0 -2
  107. package/dist/identity.d.ts.map +1 -1
  108. package/dist/identity.js +0 -6
  109. package/dist/index.d.ts +43 -16
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +20 -4
  112. package/dist/install.d.ts +60 -0
  113. package/dist/install.d.ts.map +1 -0
  114. package/dist/install.js +537 -0
  115. package/dist/lifecycle.d.ts +7 -0
  116. package/dist/lifecycle.d.ts.map +1 -0
  117. package/dist/lifecycle.js +282 -0
  118. package/dist/listing.d.ts +60 -0
  119. package/dist/listing.d.ts.map +1 -0
  120. package/dist/listing.js +168 -0
  121. package/dist/live.d.ts +25 -0
  122. package/dist/live.d.ts.map +1 -0
  123. package/dist/live.js +206 -0
  124. package/dist/loaded.d.ts +5 -0
  125. package/dist/loaded.d.ts.map +1 -0
  126. package/dist/loaded.js +40 -0
  127. package/dist/locks.d.ts +7 -0
  128. package/dist/locks.d.ts.map +1 -0
  129. package/dist/locks.js +32 -0
  130. package/dist/lost.d.ts +5 -0
  131. package/dist/lost.d.ts.map +1 -0
  132. package/dist/lost.js +49 -0
  133. package/dist/media.d.ts +25 -0
  134. package/dist/media.d.ts.map +1 -0
  135. package/dist/media.js +296 -0
  136. package/dist/memory.d.ts +21 -7
  137. package/dist/memory.d.ts.map +1 -1
  138. package/dist/memory.js +312 -118
  139. package/dist/messages.d.ts +58 -0
  140. package/dist/messages.d.ts.map +1 -0
  141. package/dist/messages.js +160 -0
  142. package/dist/modal.d.ts +2 -0
  143. package/dist/modal.d.ts.map +1 -0
  144. package/dist/modal.js +11 -0
  145. package/dist/model.d.ts +12 -13
  146. package/dist/model.d.ts.map +1 -1
  147. package/dist/model.js +11 -22
  148. package/dist/models.d.ts +10 -0
  149. package/dist/models.d.ts.map +1 -0
  150. package/dist/models.js +153 -0
  151. package/dist/name.d.ts +4 -0
  152. package/dist/name.d.ts.map +1 -0
  153. package/dist/name.js +122 -0
  154. package/dist/observation.d.ts +40 -10
  155. package/dist/observation.d.ts.map +1 -1
  156. package/dist/observation.js +265 -44
  157. package/dist/online.d.ts +7 -0
  158. package/dist/online.d.ts.map +1 -0
  159. package/dist/online.js +29 -0
  160. package/dist/opened.d.ts +22 -0
  161. package/dist/opened.d.ts.map +1 -0
  162. package/dist/opened.js +107 -0
  163. package/dist/opening.d.ts +4 -0
  164. package/dist/opening.d.ts.map +1 -0
  165. package/dist/opening.js +53 -0
  166. package/dist/outcome.d.ts +57 -10
  167. package/dist/outcome.d.ts.map +1 -1
  168. package/dist/outcome.js +71 -2
  169. package/dist/overlay.d.ts +8 -6
  170. package/dist/overlay.d.ts.map +1 -1
  171. package/dist/overlay.js +70 -172
  172. package/dist/page-metadata.d.ts +8 -0
  173. package/dist/page-metadata.d.ts.map +1 -0
  174. package/dist/page-metadata.js +19 -0
  175. package/dist/parts.d.ts +4 -0
  176. package/dist/parts.d.ts.map +1 -0
  177. package/dist/parts.js +13 -0
  178. package/dist/paths.d.ts +2 -0
  179. package/dist/paths.d.ts.map +1 -1
  180. package/dist/paths.js +26 -0
  181. package/dist/preparation.d.ts +41 -0
  182. package/dist/preparation.d.ts.map +1 -0
  183. package/dist/preparation.js +314 -0
  184. package/dist/presence.d.ts +58 -0
  185. package/dist/presence.d.ts.map +1 -0
  186. package/dist/presence.js +231 -0
  187. package/dist/queries.d.ts +16 -0
  188. package/dist/queries.d.ts.map +1 -0
  189. package/dist/queries.js +285 -0
  190. package/dist/query.d.ts +21 -207
  191. package/dist/query.d.ts.map +1 -1
  192. package/dist/query.js +3 -493
  193. package/dist/{chat/questions.d.ts → questions.d.ts} +6 -7
  194. package/dist/questions.d.ts.map +1 -0
  195. package/dist/{chat/questions.js → questions.js} +12 -7
  196. package/dist/queue.d.ts +40 -0
  197. package/dist/queue.d.ts.map +1 -0
  198. package/dist/queue.js +480 -0
  199. package/dist/reach.d.ts +31 -11
  200. package/dist/reach.d.ts.map +1 -1
  201. package/dist/reach.js +410 -115
  202. package/dist/react.d.ts +21 -3
  203. package/dist/react.d.ts.map +1 -1
  204. package/dist/react.js +33 -1
  205. package/dist/{chat/read.d.ts → read.d.ts} +2 -0
  206. package/dist/read.d.ts.map +1 -0
  207. package/dist/{chat/read.js → read.js} +4 -0
  208. package/dist/readiness.d.ts +22 -20
  209. package/dist/readiness.d.ts.map +1 -1
  210. package/dist/readiness.js +5 -13
  211. package/dist/reads.d.ts +38 -10
  212. package/dist/reads.d.ts.map +1 -1
  213. package/dist/reads.js +163 -83
  214. package/dist/recovery.d.ts +6 -2
  215. package/dist/recovery.d.ts.map +1 -1
  216. package/dist/recovery.js +67 -9
  217. package/dist/refresh.d.ts +18 -15
  218. package/dist/refresh.d.ts.map +1 -1
  219. package/dist/refresh.js +145 -79
  220. package/dist/refusal.d.ts +5 -0
  221. package/dist/refusal.d.ts.map +1 -0
  222. package/dist/refusal.js +55 -0
  223. package/dist/replica.d.ts +50 -39
  224. package/dist/replica.d.ts.map +1 -1
  225. package/dist/replica.js +321 -210
  226. package/dist/retried.d.ts +30 -0
  227. package/dist/retried.d.ts.map +1 -0
  228. package/dist/retried.js +72 -0
  229. package/dist/room-draft.d.ts +55 -13
  230. package/dist/room-draft.d.ts.map +1 -1
  231. package/dist/room-draft.js +416 -121
  232. package/dist/room-drafts.d.ts +24 -0
  233. package/dist/room-drafts.d.ts.map +1 -0
  234. package/dist/room-drafts.js +220 -0
  235. package/dist/room-list.d.ts +10 -0
  236. package/dist/room-list.d.ts.map +1 -0
  237. package/dist/room-list.js +45 -0
  238. package/dist/rows.d.ts +32 -31
  239. package/dist/rows.d.ts.map +1 -1
  240. package/dist/rows.js +59 -124
  241. package/dist/runtime.d.ts +35 -0
  242. package/dist/runtime.d.ts.map +1 -0
  243. package/dist/runtime.js +1 -0
  244. package/dist/save.d.ts +43 -50
  245. package/dist/save.d.ts.map +1 -1
  246. package/dist/save.js +645 -281
  247. package/dist/saves.d.ts +34 -0
  248. package/dist/saves.d.ts.map +1 -0
  249. package/dist/saves.js +437 -0
  250. package/dist/search.d.ts +12 -95
  251. package/dist/search.d.ts.map +1 -1
  252. package/dist/search.js +10 -266
  253. package/dist/seed.d.ts +11 -2
  254. package/dist/seed.d.ts.map +1 -1
  255. package/dist/seed.js +71 -1
  256. package/dist/shared.d.ts +4 -9
  257. package/dist/shared.d.ts.map +1 -1
  258. package/dist/shared.js +61 -120
  259. package/dist/shown.d.ts +35 -0
  260. package/dist/shown.d.ts.map +1 -0
  261. package/dist/shown.js +313 -0
  262. package/dist/socket/admission.d.ts +7 -0
  263. package/dist/socket/admission.d.ts.map +1 -0
  264. package/dist/socket/admission.js +39 -0
  265. package/dist/socket/answers.d.ts +6 -0
  266. package/dist/socket/answers.d.ts.map +1 -0
  267. package/dist/socket/answers.js +20 -0
  268. package/dist/socket/lanes.d.ts +28 -0
  269. package/dist/socket/lanes.d.ts.map +1 -0
  270. package/dist/socket/lanes.js +103 -0
  271. package/dist/socket/reads.d.ts +10 -0
  272. package/dist/socket/reads.d.ts.map +1 -0
  273. package/dist/socket/reads.js +31 -0
  274. package/dist/socket/session.d.ts +38 -0
  275. package/dist/socket/session.d.ts.map +1 -0
  276. package/dist/socket/session.js +23 -0
  277. package/dist/socket.d.ts +68 -0
  278. package/dist/socket.d.ts.map +1 -0
  279. package/dist/socket.js +165 -0
  280. package/dist/source.d.ts +59 -0
  281. package/dist/source.d.ts.map +1 -0
  282. package/dist/source.js +93 -0
  283. package/dist/status.d.ts +4 -5
  284. package/dist/status.d.ts.map +1 -1
  285. package/dist/status.js +3 -7
  286. package/dist/store/installs.d.ts +30 -0
  287. package/dist/store/installs.d.ts.map +1 -0
  288. package/dist/store/installs.js +40 -0
  289. package/dist/store/readiness.d.ts +11 -0
  290. package/dist/store/readiness.d.ts.map +1 -0
  291. package/dist/store/readiness.js +68 -0
  292. package/dist/store/records.d.ts +224 -0
  293. package/dist/store/records.d.ts.map +1 -0
  294. package/dist/store/records.js +466 -0
  295. package/dist/store/room-held.d.ts +8 -0
  296. package/dist/store/room-held.d.ts.map +1 -0
  297. package/dist/store/room-held.js +17 -0
  298. package/dist/store/rooms-shown.d.ts +8 -0
  299. package/dist/store/rooms-shown.d.ts.map +1 -0
  300. package/dist/store/rooms-shown.js +13 -0
  301. package/dist/store/space.d.ts +11 -0
  302. package/dist/store/space.d.ts.map +1 -0
  303. package/dist/store/space.js +41 -0
  304. package/dist/store/watchers.d.ts +17 -0
  305. package/dist/store/watchers.d.ts.map +1 -0
  306. package/dist/store/watchers.js +56 -0
  307. package/dist/store/writes.d.ts +24 -0
  308. package/dist/store/writes.d.ts.map +1 -0
  309. package/dist/store/writes.js +125 -0
  310. package/dist/store.d.ts +114 -165
  311. package/dist/store.d.ts.map +1 -1
  312. package/dist/store.js +162 -797
  313. package/dist/stored.d.ts +167 -0
  314. package/dist/stored.d.ts.map +1 -0
  315. package/dist/stored.js +700 -0
  316. package/dist/surface.d.ts +94 -0
  317. package/dist/surface.d.ts.map +1 -0
  318. package/dist/surface.js +254 -0
  319. package/dist/sync.d.ts +20 -0
  320. package/dist/sync.d.ts.map +1 -0
  321. package/dist/sync.js +549 -0
  322. package/dist/tables.d.ts +376 -0
  323. package/dist/tables.d.ts.map +1 -0
  324. package/dist/tables.js +499 -0
  325. package/dist/tallies.d.ts +18 -0
  326. package/dist/tallies.d.ts.map +1 -0
  327. package/dist/tallies.js +128 -0
  328. package/dist/transfer.d.ts +0 -5
  329. package/dist/transfer.d.ts.map +1 -1
  330. package/dist/turn.d.ts +1 -1
  331. package/dist/turn.d.ts.map +1 -1
  332. package/dist/turn.js +31 -20
  333. package/dist/validation.d.ts +29 -0
  334. package/dist/validation.d.ts.map +1 -0
  335. package/dist/validation.js +98 -0
  336. package/dist/windows.d.ts +1 -16
  337. package/dist/windows.d.ts.map +1 -1
  338. package/dist/windows.js +2 -79
  339. package/dist/wire.d.ts +92 -9
  340. package/dist/wire.d.ts.map +1 -1
  341. package/dist/wire.js +32 -6
  342. package/package.json +19 -19
  343. package/AGENTS.md +0 -299
  344. package/dist/attempt.d.ts +0 -16
  345. package/dist/attempt.d.ts.map +0 -1
  346. package/dist/attempt.js +0 -70
  347. package/dist/chat/acts.d.ts +0 -33
  348. package/dist/chat/acts.d.ts.map +0 -1
  349. package/dist/chat/acts.js +0 -36
  350. package/dist/chat/context.d.ts +0 -3
  351. package/dist/chat/context.d.ts.map +0 -1
  352. package/dist/chat/earlier.d.ts +0 -10
  353. package/dist/chat/earlier.d.ts.map +0 -1
  354. package/dist/chat/earlier.js +0 -54
  355. package/dist/chat/input.d.ts +0 -9
  356. package/dist/chat/input.d.ts.map +0 -1
  357. package/dist/chat/input.js +0 -99
  358. package/dist/chat/kit.d.ts +0 -61
  359. package/dist/chat/kit.d.ts.map +0 -1
  360. package/dist/chat/kit.js +0 -123
  361. package/dist/chat/lasting.d.ts +0 -6
  362. package/dist/chat/lasting.d.ts.map +0 -1
  363. package/dist/chat/lasting.js +0 -19
  364. package/dist/chat/list.d.ts +0 -28
  365. package/dist/chat/list.d.ts.map +0 -1
  366. package/dist/chat/list.js +0 -103
  367. package/dist/chat/markdown.d.ts +0 -21
  368. package/dist/chat/markdown.d.ts.map +0 -1
  369. package/dist/chat/markdown.js +0 -246
  370. package/dist/chat/message.d.ts +0 -7
  371. package/dist/chat/message.d.ts.map +0 -1
  372. package/dist/chat/message.js +0 -202
  373. package/dist/chat/messages.d.ts +0 -24
  374. package/dist/chat/messages.d.ts.map +0 -1
  375. package/dist/chat/messages.js +0 -187
  376. package/dist/chat/name.d.ts +0 -6
  377. package/dist/chat/name.d.ts.map +0 -1
  378. package/dist/chat/name.js +0 -37
  379. package/dist/chat/opened.d.ts +0 -11
  380. package/dist/chat/opened.d.ts.map +0 -1
  381. package/dist/chat/opened.js +0 -17
  382. package/dist/chat/overlay.d.ts +0 -32
  383. package/dist/chat/overlay.d.ts.map +0 -1
  384. package/dist/chat/overlay.js +0 -107
  385. package/dist/chat/parts.d.ts +0 -57
  386. package/dist/chat/parts.d.ts.map +0 -1
  387. package/dist/chat/parts.js +0 -119
  388. package/dist/chat/pieces.d.ts +0 -62
  389. package/dist/chat/pieces.d.ts.map +0 -1
  390. package/dist/chat/pieces.js +0 -1110
  391. package/dist/chat/process.d.ts +0 -20
  392. package/dist/chat/process.d.ts.map +0 -1
  393. package/dist/chat/process.js +0 -32
  394. package/dist/chat/provider.d.ts +0 -64
  395. package/dist/chat/provider.d.ts.map +0 -1
  396. package/dist/chat/provider.js +0 -638
  397. package/dist/chat/question.d.ts +0 -9
  398. package/dist/chat/question.d.ts.map +0 -1
  399. package/dist/chat/question.js +0 -69
  400. package/dist/chat/questions.d.ts.map +0 -1
  401. package/dist/chat/read.d.ts.map +0 -1
  402. package/dist/chat/ready.d.ts +0 -34
  403. package/dist/chat/ready.d.ts.map +0 -1
  404. package/dist/chat/ready.js +0 -91
  405. package/dist/chat/steady.d.ts +0 -3
  406. package/dist/chat/steady.d.ts.map +0 -1
  407. package/dist/chat/steady.js +0 -26
  408. package/dist/chat/style.d.ts +0 -4
  409. package/dist/chat/style.d.ts.map +0 -1
  410. package/dist/chat/style.js +0 -302
  411. package/dist/chat.d.ts +0 -14
  412. package/dist/chat.d.ts.map +0 -1
  413. package/dist/chat.js +0 -8
  414. package/dist/fence.d.ts +0 -6
  415. package/dist/fence.d.ts.map +0 -1
  416. package/dist/fence.js +0 -10
  417. package/dist/log.d.ts +0 -5
  418. package/dist/log.d.ts.map +0 -1
  419. package/dist/log.js +0 -14
  420. package/dist/read-side.d.ts +0 -27
  421. package/dist/read-side.d.ts.map +0 -1
  422. package/dist/read-side.js +0 -826
@@ -1,246 +0,0 @@
1
- import { createElement, Fragment, useEffect, useMemo, useRef, useState, } from 'react';
2
- import { flushSync } from 'react-dom';
3
- import { drawn, longOf, parseMarkdown, pieceAt, remaining, } from './pieces.js';
4
- function unfiled(options) {
5
- const { definitions, ids, onLink } = options;
6
- return onLink === undefined ? { definitions, ids } : { definitions, ids, onLink };
7
- }
8
- export function slugOf(text) {
9
- return text
10
- .trim()
11
- .toLowerCase()
12
- .replace(/[^\p{L}\p{M}\p{N}\s_-]/gu, '')
13
- .replace(/\s/g, '-');
14
- }
15
- export function anchorOf(fragment) {
16
- return `md-${slugOf(fragment)}`;
17
- }
18
- function headingId(slugs, text) {
19
- const slug = slugOf(text);
20
- const seen = slugs.get(slug) ?? 0;
21
- slugs.set(slug, seen + 1);
22
- return anchorOf(seen === 0 ? slug : `${slug}-${seen}`);
23
- }
24
- function whole(file, text) {
25
- return (file !== undefined &&
26
- ([...text.matchAll(file.pattern)].some((one) => one[0] === text) || file.names?.(text) === true));
27
- }
28
- function referenced(file, text, key) {
29
- const parts = [];
30
- let from = 0;
31
- for (const found of text.matchAll(file.pattern)) {
32
- const at = found.index;
33
- if (at > from)
34
- parts.push(text.slice(from, at));
35
- parts.push(createElement(Fragment, { key: at }, file.draw(found[0], found[0], false)));
36
- from = at + found[0].length;
37
- }
38
- if (from === 0)
39
- return text;
40
- if (from < text.length)
41
- parts.push(text.slice(from));
42
- return createElement(Fragment, { key }, ...parts);
43
- }
44
- function safeHref(url) {
45
- const href = url.replace(/[\t\n\r]/g, '').replace(/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g, '');
46
- if (href === '' || /^[\\/]{2}/.test(href))
47
- return null;
48
- if (/^(?:https?:|mailto:)/i.test(href))
49
- return href;
50
- if (/^[a-z][a-z0-9+.-]*:/i.test(href))
51
- return null;
52
- return href;
53
- }
54
- function external(href) {
55
- return /^(?:https?:|mailto:)/i.test(href);
56
- }
57
- function textOf(node) {
58
- if ('value' in node && typeof node.value === 'string')
59
- return node.value;
60
- if ('children' in node)
61
- return node.children.map(textOf).join('');
62
- return '';
63
- }
64
- function headingIds(nodes, slugs, ids) {
65
- for (const node of nodes) {
66
- if (node.type === 'heading')
67
- ids.set(node, headingId(slugs, textOf(node)));
68
- else if (node.type === 'blockquote' || node.type === 'list' || node.type === 'listItem') {
69
- headingIds(node.children, slugs, ids);
70
- }
71
- }
72
- }
73
- const revealers = new Set();
74
- export function revealed(anchor) {
75
- const heading = document.getElementById(anchor);
76
- if (heading !== null)
77
- return heading;
78
- for (const reveal of revealers)
79
- if (reveal(anchor))
80
- return document.getElementById(anchor);
81
- return null;
82
- }
83
- function fragmentOf(href) {
84
- try {
85
- return decodeURIComponent(href.slice(1));
86
- }
87
- catch {
88
- return href.slice(1);
89
- }
90
- }
91
- function link(url, node, key, options) {
92
- if (whole(options.file, url)) {
93
- return createElement(Fragment, { key }, options.file.draw(url, textOf(node) || url, false));
94
- }
95
- const inside = node.children.map((child, at) => render(child, at, unfiled(options)));
96
- const href = safeHref(url);
97
- if (href === null)
98
- return createElement(Fragment, { key }, ...inside);
99
- const onLink = options.onLink;
100
- if (external(href) || onLink === undefined) {
101
- const onClick = href.startsWith('#') ? () => revealed(fragmentOf(href)) : undefined;
102
- return createElement('a', { key, href, rel: 'noreferrer', onClick }, ...inside);
103
- }
104
- return createElement('a', {
105
- key,
106
- href,
107
- onClick: (event) => {
108
- event.preventDefault();
109
- onLink(href);
110
- },
111
- }, ...inside);
112
- }
113
- function render(node, key, options, header = false) {
114
- const children = () => 'children' in node
115
- ? node.children.map((child, at) => render(child, at, options))
116
- : [];
117
- switch (node.type) {
118
- case 'root':
119
- return createElement(Fragment, { key }, ...children());
120
- case 'paragraph':
121
- return createElement('p', { key }, ...children());
122
- case 'heading':
123
- return createElement(`h${node.depth}`, { key, id: options.ids.get(node) }, ...children());
124
- case 'text':
125
- return options.file === undefined ? node.value : referenced(options.file, node.value, key);
126
- case 'emphasis':
127
- return createElement('em', { key }, ...children());
128
- case 'strong':
129
- return createElement('strong', { key }, ...children());
130
- case 'delete':
131
- return createElement('del', { key }, ...children());
132
- case 'inlineCode':
133
- return createElement('code', { key }, node.value);
134
- case 'code':
135
- return createElement('pre', { key }, createElement('code', null, node.value));
136
- case 'blockquote':
137
- return createElement('blockquote', { key }, ...children());
138
- case 'list':
139
- return node.ordered === true
140
- ? createElement('ol', { key, start: node.start ?? undefined }, ...children())
141
- : createElement('ul', { key }, ...children());
142
- case 'listItem': {
143
- const items = node.children.flatMap((child, at) => child.type === 'paragraph' && node.spread !== true
144
- ? child.children.map((inline, place) => render(inline, at * 1000 + place, options))
145
- : [render(child, at, options)]);
146
- return createElement('li', { key }, node.checked == null
147
- ? null
148
- : createElement('input', { type: 'checkbox', checked: node.checked, disabled: true }), ...items);
149
- }
150
- case 'thematicBreak':
151
- return createElement('hr', { key });
152
- case 'break':
153
- return createElement('br', { key });
154
- case 'link':
155
- return link(node.url, node, key, options);
156
- case 'linkReference':
157
- return link(options.definitions.get(node.identifier) ?? '', node, key, options);
158
- case 'image':
159
- return whole(options.file, node.url)
160
- ? createElement(Fragment, { key }, options.file.draw(node.url, node.alt || node.url, true))
161
- : (node.alt ?? '');
162
- case 'html':
163
- return node.value;
164
- case 'table':
165
- return createElement('table', { key }, createElement('thead', null, ...node.children.slice(0, 1).map((row, at) => render(row, at, options, true))), createElement('tbody', null, ...node.children.slice(1).map((row, at) => render(row, at, options))));
166
- case 'tableRow':
167
- return createElement('tr', { key }, ...node.children.map((cell, at) => createElement(header ? 'th' : 'td', { key: at }, ...cell.children.map((inline, place) => render(inline, place, options)))));
168
- case 'footnoteReference':
169
- return createElement('sup', { key }, node.label ?? node.identifier);
170
- case 'definition':
171
- case 'yaml':
172
- return null;
173
- default:
174
- return textOf(node);
175
- }
176
- }
177
- const INLINE = new Set([
178
- 'paragraph',
179
- 'heading',
180
- 'emphasis',
181
- 'strong',
182
- 'delete',
183
- 'link',
184
- 'linkReference',
185
- 'tableCell',
186
- ]);
187
- function spokenOf(node) {
188
- if (node.type === 'yaml')
189
- return '';
190
- if (node.type === 'image')
191
- return node.alt ?? '';
192
- if ('value' in node && typeof node.value === 'string')
193
- return node.value;
194
- if (!('children' in node))
195
- return node.type === 'break' ? ' ' : '';
196
- return node.children.map(spokenOf).join(INLINE.has(node.type) ? '' : ' ');
197
- }
198
- export function plainText(text) {
199
- return spokenOf(parseMarkdown(text)).replace(/\s+/g, ' ').trim();
200
- }
201
- export function Markdown({ text, className, ...options }) {
202
- const long = useMemo(() => longOf(text), [text]);
203
- const [shown, setShown] = useState(1);
204
- const more = useRef(null);
205
- const nodes = drawn(long, shown);
206
- const showing = Math.min(shown, long.pieces.length);
207
- const rest = remaining(long, showing);
208
- useEffect(() => {
209
- const sentinel = more.current;
210
- if (sentinel === null)
211
- return;
212
- const watcher = new IntersectionObserver((seen) => {
213
- if (seen.some((one) => one.isIntersecting))
214
- setShown(showing + 1);
215
- }, { rootMargin: '0px 0px 100% 0px' });
216
- watcher.observe(sentinel);
217
- return () => watcher.disconnect();
218
- }, [showing, long]);
219
- useEffect(() => {
220
- if (!rest)
221
- return;
222
- const reveal = (anchor) => {
223
- const slugs = new Map();
224
- for (let index = 0;; index += 1) {
225
- const piece = pieceAt(long, index);
226
- if (piece === null)
227
- return false;
228
- const ids = new Map();
229
- headingIds(piece.nodes, slugs, ids);
230
- if ([...ids.values()].includes(anchor)) {
231
- if (index >= showing)
232
- flushSync(() => setShown(index + 1));
233
- return true;
234
- }
235
- }
236
- };
237
- revealers.add(reveal);
238
- return () => {
239
- revealers.delete(reveal);
240
- };
241
- }, [showing, long, rest]);
242
- const ids = new Map();
243
- headingIds(nodes, new Map(), ids);
244
- const rendering = { ...options, definitions: long.urls, ids };
245
- return createElement('div', { className }, ...nodes.map((node, at) => render(node, at, rendering)), rest ? createElement('div', { key: 'more', ref: more }) : null);
246
- }
@@ -1,7 +0,0 @@
1
- import { type ReactElement } from 'react';
2
- export declare const Linked: import("react").Context<((href: string) => void) | null>;
3
- export declare function UserMessage(): ReactElement;
4
- export declare function HouseMessage(): ReactElement;
5
- export declare function Undelivered(): ReactElement;
6
- export declare function AssistantMessage(): ReactElement;
7
- //# sourceMappingURL=message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/chat/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAoCf,eAAO,MAAM,MAAM,kCAAyB,MAAM,KAAK,IAAI,SAAe,CAAC;AA2O3E,wBAAgB,WAAW,IAAI,YAAY,CA+B1C;AAED,wBAAgB,YAAY,IAAI,YAAY,CAM3C;AAmBD,wBAAgB,WAAW,IAAI,YAAY,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,YAAY,CA0F/C"}
@@ -1,202 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { createContext, useContext, } from 'react';
3
- import { ActionBarPrimitive, AuiIf, ErrorPrimitive, MessagePartPrimitive, MessagePrimitive, groupPartByType, useAuiState, } from '@assistant-ui/react';
4
- import { MarkdownTextPrimitive } from '@assistant-ui/react-markdown';
5
- import { Collapsible } from 'radix-ui';
6
- import remarkGfm from 'remark-gfm';
7
- import Bot from 'lucide-react/dist/esm/icons/bot.mjs';
8
- import Brain from 'lucide-react/dist/esm/icons/brain.mjs';
9
- import CalendarClock from 'lucide-react/dist/esm/icons/calendar-clock.mjs';
10
- import Check from 'lucide-react/dist/esm/icons/check.mjs';
11
- import ChevronRight from 'lucide-react/dist/esm/icons/chevron-right.mjs';
12
- import Copy from 'lucide-react/dist/esm/icons/copy.mjs';
13
- import Cpu from 'lucide-react/dist/esm/icons/cpu.mjs';
14
- import ImageGlyph from 'lucide-react/dist/esm/icons/image.mjs';
15
- import Layers from 'lucide-react/dist/esm/icons/layers.mjs';
16
- import ListChecks from 'lucide-react/dist/esm/icons/list-checks.mjs';
17
- import ListTodo from 'lucide-react/dist/esm/icons/list-todo.mjs';
18
- import Paperclip from 'lucide-react/dist/esm/icons/paperclip.mjs';
19
- import RotateCw from 'lucide-react/dist/esm/icons/rotate-cw.mjs';
20
- import Send from 'lucide-react/dist/esm/icons/send.mjs';
21
- import SlidersHorizontal from 'lucide-react/dist/esm/icons/sliders-horizontal.mjs';
22
- import Terminal from 'lucide-react/dist/esm/icons/terminal.mjs';
23
- import { SESSION_STARTED } from '../conversation.js';
24
- import { buttonClass, Name, Working } from './kit.js';
25
- import { StillRunning } from './lasting.js';
26
- import { useChat } from './provider.js';
27
- import { list, record, text } from './read.js';
28
- export const Linked = createContext(null);
29
- const groupBy = groupPartByType({
30
- reasoning: ['group-thought', 'group-reasoning'],
31
- 'tool-call': ['group-thought'],
32
- });
33
- const GFM = [remarkGfm];
34
- const SENT = {
35
- send_routine_request: 'Sent a request',
36
- cancel_routine_request: 'Cancelled a request',
37
- };
38
- const MARKED = {
39
- mode: { title: 'Mode', Icon: SlidersHorizontal },
40
- compaction: { title: 'Context compacted', Icon: Layers },
41
- retry: { title: 'Retrying', Icon: RotateCw },
42
- model: { title: 'Model', Icon: Cpu },
43
- };
44
- const STEP = { completed: '✓', in_progress: '→' };
45
- function counted(count) {
46
- return count === 1 ? '1 command' : `${count} commands`;
47
- }
48
- function jobShown(said) {
49
- const icon = _jsx(CalendarClock, { "aria-hidden": "true" });
50
- const shown = { icon, input: '', output: '' };
51
- const label = said('label');
52
- const state = said('state');
53
- if (said('job') === 'started') {
54
- return { ...shown, title: 'Background job started', detail: label };
55
- }
56
- if (said('job') === 'scheduled') {
57
- const detail = said('next') === '' ? label : `${label} · ${state}`;
58
- return { ...shown, title: 'Schedule set', detail };
59
- }
60
- const detail = state === '' ? label : `${label} · ${state}`;
61
- return { ...shown, title: 'Background job ended', detail };
62
- }
63
- function shownOf({ toolName, args, result }) {
64
- const said = (key) => text(args, key) ?? '';
65
- const plain = { detail: '', input: '', output: '' };
66
- switch (toolName) {
67
- case 'subagent':
68
- return {
69
- icon: _jsx(Bot, { "aria-hidden": "true" }),
70
- title: 'Sub-agent',
71
- detail: said('description'),
72
- input: said('description'),
73
- output: typeof result === 'string' ? result : '',
74
- };
75
- case 'message':
76
- return {
77
- ...plain,
78
- icon: _jsx(Send, { "aria-hidden": "true" }),
79
- title: SENT[said('command')] ?? said('command'),
80
- detail: said('target'),
81
- };
82
- case 'plan': {
83
- const steps = list(args, 'steps').map(record);
84
- return {
85
- ...plain,
86
- icon: _jsx(ListTodo, { "aria-hidden": "true" }),
87
- title: 'Plan',
88
- detail: text(steps.find((one) => one.status === 'in_progress') ?? {}, 'content') ?? '',
89
- input: steps
90
- .map((one) => `${STEP[text(one, 'status') ?? ''] ?? '○'} ${text(one, 'content') ?? ''}`)
91
- .join('\n'),
92
- };
93
- }
94
- case 'marker': {
95
- const marked = MARKED[said('marker')];
96
- if (marked === undefined)
97
- return jobShown(said);
98
- return {
99
- ...plain,
100
- icon: _jsx(marked.Icon, { "aria-hidden": "true" }),
101
- title: marked.title,
102
- detail: said('text'),
103
- };
104
- }
105
- default:
106
- return {
107
- ...plain,
108
- icon: _jsx(Terminal, { "aria-hidden": "true" }),
109
- title: counted(Number(args.count)),
110
- };
111
- }
112
- }
113
- function workedOf(calls) {
114
- const commands = calls.reduce((sum, one) => (one.toolName === 'commands' ? sum + Number(one.args.count) : sum), 0);
115
- return commands === 0 ? 'Worked' : `Worked · ${counted(commands)}`;
116
- }
117
- function Toggle({ icon, label, detail = '', active, children, }) {
118
- return (_jsxs(Collapsible.Root, { children: [_jsxs(Collapsible.Trigger, { className: "ahc-row ahc-toggle", children: [icon, _jsx("span", { className: active ? 'ahc-clipped ahc-shimmer' : 'ahc-clipped', children: label }), detail === '' ? null : _jsx("span", { className: "ahc-clipped", children: detail }), _jsx("span", { className: "ahc-chevron", children: _jsx(ChevronRight, { "aria-hidden": "true" }) })] }), _jsx(Collapsible.Content, { children: children })] }));
119
- }
120
- function ToolCall({ call, active }) {
121
- const shown = shownOf(call);
122
- if (shown.input === '' && shown.output === '') {
123
- return (_jsxs("div", { className: "ahc-toolline ahc-quiet", children: [shown.icon, _jsx("span", { className: active ? 'ahc-shimmer' : undefined, children: shown.title }), shown.detail === '' ? null : _jsx("span", { className: "ahc-clipped", children: shown.detail })] }));
124
- }
125
- return (_jsx(Toggle, { icon: shown.icon, label: shown.title, detail: shown.detail, active: active, children: _jsxs("div", { className: "ahc-quiet ahc-wells", children: [shown.input === '' ? null : _jsx("div", { className: "ahc-well", children: shown.input }), shown.output === '' ? null : _jsx("div", { className: "ahc-well", children: shown.output })] }) }));
126
- }
127
- function Thought({ indices, active, children, }) {
128
- const parts = useAuiState((s) => s.message.parts);
129
- const held = indices.flatMap((at) => parts[at] ?? []);
130
- const calls = held.flatMap((part) => (part.type === 'tool-call' ? [part] : []));
131
- if (calls.length === 0 || held.length === 1)
132
- return _jsx(_Fragment, { children: children });
133
- const last = held.at(-1);
134
- const now = last?.type === 'tool-call'
135
- ? shownOf(last)
136
- : { icon: _jsx(Brain, { "aria-hidden": "true" }), title: 'Thinking', detail: '' };
137
- return (_jsx(Toggle, { icon: active ? now.icon : _jsx(ListChecks, { "aria-hidden": "true" }), label: active ? now.title : workedOf(calls), detail: active ? now.detail : '', active: active, children: children }));
138
- }
139
- const SCHEME = /^[a-z][a-z0-9+.-]*:/i;
140
- function Anchor({ node: _node, href = '', ...rest }) {
141
- const onLink = useContext(Linked);
142
- if (SCHEME.test(href) || onLink === null)
143
- return _jsx("a", { ...rest, href: href, rel: "noreferrer" });
144
- return (_jsx("a", { ...rest, href: href, onClick: (event) => {
145
- event.preventDefault();
146
- onLink(href);
147
- } }));
148
- }
149
- const LINKED = { a: Anchor };
150
- const THOUGHT = { className: 'ahc-thought' };
151
- function Said({ thought = false }) {
152
- return (_jsx(MarkdownTextPrimitive, { className: "ahc-text ahc-markdown", containerProps: thought ? THOUGHT : undefined, remarkPlugins: GFM, components: LINKED, smooth: false }));
153
- }
154
- function UserText() {
155
- return _jsx(MessagePartPrimitive.Text, { className: "ahc-said" });
156
- }
157
- export function UserMessage() {
158
- const said = useAuiState((s) => s.message.parts.some((one) => one.type === 'text' && one.text !== ''));
159
- const attached = useAuiState((s) => (s.message.attachments?.length ?? 0) > 0);
160
- const undelivered = useAuiState((s) => s.message.metadata.custom.undelivered === true);
161
- const unknown = useAuiState((s) => s.message.metadata.custom.unknown === true);
162
- const id = useAuiState((s) => s.message.id);
163
- return (_jsxs(MessagePrimitive.Root, { role: "group", "aria-label": "You", className: "ahc-you", children: [said ? (_jsx("div", { className: "ahc-bubble", children: _jsx(MessagePrimitive.Parts, { components: { Text: UserText } }) })) : null, attached ? (_jsx("div", { className: "ahc-chips", children: _jsx(MessagePrimitive.Attachments, { children: ({ attachment }) => (_jsxs("span", { className: "ahc-chip", children: [_jsx(Paperclip, { "aria-hidden": "true" }), _jsx(Name, { text: attachment.name })] })) }) })) : null, undelivered ? _jsx(Undelivered, {}) : null, unknown ? _jsx(DeliveryUnknown, { message: id }) : null] }));
164
- }
165
- export function HouseMessage() {
166
- return (_jsx(MessagePrimitive.Root, { role: "group", "aria-label": "House", className: "ahc-house", children: _jsx(MessagePrimitive.Parts, { components: { Text: UserText } }) }));
167
- }
168
- function DeliveryUnknown({ message }) {
169
- const chat = useChat();
170
- return (_jsxs("span", { className: "ahc-meta", children: ["Delivery unknown", _jsx("button", { type: "button", className: buttonClass('outline', true, false), disabled: chat.acting.busy, onClick: () => void chat.retry(message), children: "Retry" })] }));
171
- }
172
- export function Undelivered() {
173
- return _jsx("span", { className: "ahc-meta", children: "Telegram didn't receive this" });
174
- }
175
- export function AssistantMessage() {
176
- const running = useAuiState((s) => s.message.status?.type === 'running');
177
- const started = useAuiState((s) => s.message.metadata.isOptimistic !== true);
178
- const said = useAuiState((s) => s.message.parts.some((one) => one.type === 'text'));
179
- const last = useAuiState((s) => s.message.isLast);
180
- const custom = useAuiState((s) => s.message.metadata.custom);
181
- const lasting = Array.isArray(custom.lasting) ? custom.lasting : [];
182
- return (_jsxs(MessagePrimitive.Root, { role: "group", "aria-label": running ? 'Turn, running' : 'Turn', className: "ahc-turn", children: [_jsx(MessagePrimitive.GroupedParts, { groupBy: groupBy, indicator: "empty", children: ({ part, children }) => {
183
- switch (part.type) {
184
- case 'group-thought':
185
- return (_jsx(Thought, { indices: part.indices, active: part.status.type === 'running', children: children }));
186
- case 'group-reasoning':
187
- return (_jsx(Toggle, { icon: _jsx(Brain, { "aria-hidden": "true" }), label: "Thinking", active: part.status.type === 'running', children: children }));
188
- case 'text':
189
- return _jsx(Said, {});
190
- case 'reasoning':
191
- return _jsx(Said, { thought: true });
192
- case 'tool-call':
193
- return _jsx(ToolCall, { call: part, active: part.status.type === 'running' });
194
- case 'file':
195
- return (_jsxs("div", { className: "ahc-toolline ahc-quiet", children: [_jsx(ImageGlyph, { "aria-hidden": "true" }), _jsx("span", { className: "ahc-clipped", children: part.filename })] }));
196
- case 'indicator':
197
- return _jsx(Working, { step: started ? SESSION_STARTED : undefined });
198
- default:
199
- return null;
200
- }
201
- } }), _jsx(MessagePrimitive.Error, { children: _jsxs(ErrorPrimitive.Root, { className: "ahc-failure", children: [_jsx(ErrorPrimitive.Message, {}), _jsx(AuiIf, { condition: (s) => s.thread.capabilities.reload && s.message.metadata.custom.again === true, children: _jsx(ActionBarPrimitive.Reload, { className: buttonClass('outline', true, false), children: "Try again" }) })] }) }), custom.undelivered === true ? _jsx(Undelivered, {}) : null, said ? (_jsx(ActionBarPrimitive.Root, { hideWhenRunning: true, autohide: "not-last", autohideFloat: "always", className: last ? 'ahc-actions' : 'ahc-actions ahc-actions--floating', children: _jsxs(ActionBarPrimitive.Copy, { className: `${buttonClass('quiet', true, true)} ahc-secondary`, "aria-label": "Copy", children: [_jsx(AuiIf, { condition: (s) => s.message.isCopied, children: _jsx(Check, { "aria-hidden": "true" }) }), _jsx(AuiIf, { condition: (s) => !s.message.isCopied, children: _jsx(Copy, { "aria-hidden": "true" }) })] }) })) : null, lasting.length === 0 ? null : _jsx(StillRunning, { lasting: lasting })] }));
202
- }
@@ -1,24 +0,0 @@
1
- import type { ThreadMessageLike } from '@assistant-ui/react';
2
- import type { TurnContext } from '../adapter.js';
3
- import type { ConversationView } from '../conversation.js';
4
- import { type Part } from './parts.js';
5
- type Entry = ConversationView['messages'][number];
6
- export type Said = {
7
- readonly turn: string;
8
- readonly user: boolean;
9
- readonly house: boolean;
10
- readonly waiting: boolean;
11
- readonly text: string;
12
- readonly parts: readonly Part[];
13
- readonly context: TurnContext | null;
14
- readonly failure: string | null;
15
- readonly undelivered: boolean;
16
- readonly files: readonly string[];
17
- };
18
- export declare function saidOf(entry: Entry): Said;
19
- export declare function awaitsTurn(view: ConversationView | null): boolean;
20
- export declare function askedBefore(view: ConversationView | null, id: string | null): string | null;
21
- export declare function chatMessages(view: ConversationView | null): ThreadMessageLike[];
22
- export declare function contextOf(view: ConversationView | null): TurnContext | null;
23
- export {};
24
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/chat/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAA0D,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAO/F,KAAK,KAAK,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,IAAI,GAAG;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC;AAaF,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAkBzC;AAiGD,wBAAgB,UAAU,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,GAAG,OAAO,CAKjE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAO3F;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,EAAE,CA0D/E;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAS3E"}