pi-roundtable-web 0.30.1 → 0.30.4

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 (192) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/chunk-account-xz99gxg8.js +1 -0
  3. package/dist/{chunk-action-menu-a1vy1se2.js → chunk-action-menu-fsxjfeaq.js} +1 -1
  4. package/dist/{chunk-agent-adfz539q.js → chunk-agent-bq536p6g.js} +1 -1
  5. package/dist/chunk-arranged-rooms-y2q330yg.js +1 -0
  6. package/dist/{chunk-attachments-hbnh1rvq.js → chunk-attachments-s1z9jggf.js} +2 -2
  7. package/dist/chunk-bulk-actions-je4qp745.js +1 -0
  8. package/dist/{chunk-character-creator-26fptwb3.js → chunk-character-creator-x8grfnwr.js} +2 -2
  9. package/dist/{chunk-codeeditor-429q64dw.js → chunk-codeeditor-3vh4q5af.js} +2 -2
  10. package/dist/{chunk-command-menu-qfpnv4xs.js → chunk-command-menu-2etjx0c7.js} +2 -2
  11. package/dist/chunk-confirm-wn14ffh3.js +1 -0
  12. package/dist/{chunk-connectors-04zaaz71.js → chunk-connectors-zxn3tbnv.js} +2 -2
  13. package/dist/{chunk-conversations-q87kx9w8.js → chunk-conversations-2w67mmvv.js} +1 -1
  14. package/dist/{chunk-council-sheet-zt24kn9f.js → chunk-council-sheet-b4b04w9y.js} +2 -2
  15. package/dist/chunk-council-view-wem4vdqc.js +1 -0
  16. package/dist/{chunk-drag-2vacsw42.js → chunk-drag-r9x782vs.js} +1 -1
  17. package/dist/{chunk-entry-71pd652j.js → chunk-entry-bq3j0xby.js} +1 -1
  18. package/dist/chunk-folder-list-bbn6ctsf.js +1 -0
  19. package/dist/chunk-folds-55w643e1.js +1 -0
  20. package/dist/{chunk-gate-2gpw5rte.js → chunk-gate-d8deb600.js} +1 -1
  21. package/dist/chunk-host-icons-knmx5qa0.js +1 -0
  22. package/dist/chunk-host-picture-42n2n9gp.js +1 -0
  23. package/dist/chunk-host-state-az2ka7rs.js +1 -0
  24. package/dist/chunk-host-ui-1s0xyghd.js +1 -0
  25. package/dist/chunk-index-0xq8m6nw.js +2 -0
  26. package/dist/chunk-index-1k6n0hh9.js +2 -0
  27. package/dist/{chunk-index-04ndj4hg.js → chunk-index-1kvnezap.js} +1 -1
  28. package/dist/{chunk-index-fq7hgc2n.js → chunk-index-25ewnkkb.js} +1 -1
  29. package/dist/chunk-index-3c4wvjkj.js +2 -0
  30. package/dist/chunk-index-4fyrpzwf.js +2 -0
  31. package/dist/{chunk-index-8d5r201w.js → chunk-index-50r5h98m.js} +1 -1
  32. package/dist/{chunk-index-0cnvzj8b.js → chunk-index-5j6m33d2.js} +1 -1
  33. package/dist/chunk-index-5x86qy8d.js +2 -0
  34. package/dist/{chunk-index-r1g24er0.js → chunk-index-63qqjbs8.js} +2 -2
  35. package/dist/{chunk-index-g086dss5.js → chunk-index-6btfp80d.js} +3 -3
  36. package/dist/{chunk-index-dqt0s3cq.js → chunk-index-6r61x1d2.js} +2 -2
  37. package/dist/{chunk-index-5rv9r0m6.js → chunk-index-711j3dpr.js} +2 -2
  38. package/dist/{chunk-index-s2ksy9pa.js → chunk-index-7379m5yw.js} +2 -2
  39. package/dist/{chunk-index-xzey5tdw.js → chunk-index-7wksnc48.js} +2 -2
  40. package/dist/{chunk-index-t7csmbpy.css → chunk-index-96bv2xfw.css} +1 -1
  41. package/dist/{chunk-index-ndhwytvz.js → chunk-index-9hb4042t.js} +1 -1
  42. package/dist/{chunk-index-bz4y6vne.js → chunk-index-9smnxvd0.js} +2 -2
  43. package/dist/{chunk-index-mec7bz30.js → chunk-index-ab60h2c5.js} +1 -1
  44. package/dist/{chunk-index-pz6926p5.js → chunk-index-apbknsyg.js} +2 -2
  45. package/dist/{chunk-index-ne8v2rxx.js → chunk-index-b093s676.js} +12 -12
  46. package/dist/chunk-index-b5924bb7.js +2 -0
  47. package/dist/chunk-index-bdf7gs56.js +2 -0
  48. package/dist/chunk-index-d0vznz2x.js +2 -0
  49. package/dist/{chunk-index-6e9nmad3.js → chunk-index-de5x85yn.js} +2 -2
  50. package/dist/chunk-index-e6z5kyz8.js +2 -0
  51. package/dist/chunk-index-evmzrr8e.js +2 -0
  52. package/dist/chunk-index-fdv6mepk.js +2 -0
  53. package/dist/chunk-index-ff8vzfgq.js +2 -0
  54. package/dist/chunk-index-hd7k712z.js +2 -0
  55. package/dist/{chunk-index-1pgm1gy4.js → chunk-index-hrpmm09c.js} +2 -2
  56. package/dist/{chunk-index-st18ee4w.js → chunk-index-htdkpbrd.js} +17 -17
  57. package/dist/{chunk-index-vxn4zws9.js → chunk-index-jsgs2gmq.js} +3 -3
  58. package/dist/{chunk-index-1ysj78e4.js → chunk-index-kjxva289.js} +1 -1
  59. package/dist/{chunk-index-g7w60s9y.js → chunk-index-kkcx4bns.js} +2 -2
  60. package/dist/{chunk-index-pp00qvdb.js → chunk-index-kvvmxbyh.js} +1 -1
  61. package/dist/{chunk-index-c035z7b4.js → chunk-index-mcb21c5a.js} +2 -2
  62. package/dist/chunk-index-n1w5rpxz.js +2 -0
  63. package/dist/{chunk-index-m7er2xt6.js → chunk-index-n7187vns.js} +2 -2
  64. package/dist/{chunk-index-435pq3gd.js → chunk-index-nk38jsgf.js} +1 -1
  65. package/dist/chunk-index-q6txr5q7.js +2 -0
  66. package/dist/{chunk-index-g1t5rfbe.js → chunk-index-r868k92r.js} +3 -3
  67. package/dist/{chunk-index-ry2p6s1f.js → chunk-index-rj8cvc66.js} +1 -1
  68. package/dist/{chunk-index-tn797j5g.js → chunk-index-rny986v2.js} +1 -1
  69. package/dist/{chunk-index-awc03q99.js → chunk-index-s6a9rvgd.js} +2 -2
  70. package/dist/{chunk-index-jzkr4hc2.js → chunk-index-sjt00y5k.js} +2 -2
  71. package/dist/{chunk-index-qzss6deb.js → chunk-index-sp35q2ay.js} +1 -1
  72. package/dist/{chunk-index-pcb3mskd.js → chunk-index-t9an6yb2.js} +2 -2
  73. package/dist/{chunk-index-0kwxrths.js → chunk-index-tc8s2rz3.js} +1 -1
  74. package/dist/chunk-index-tn9qzrj2.js +2 -0
  75. package/dist/{chunk-index-6y114be2.js → chunk-index-vgn794d7.js} +2 -2
  76. package/dist/{chunk-index-6gj4xkf7.js → chunk-index-vvxr0vz8.js} +1 -1
  77. package/dist/{chunk-index-9q2psqsq.js → chunk-index-w0vfwqck.js} +2 -2
  78. package/dist/{chunk-index-6j75embz.js → chunk-index-w1rarv3r.js} +2 -2
  79. package/dist/chunk-index-xfr1byr9.js +1 -0
  80. package/dist/{chunk-index-smvd91qx.js → chunk-index-xj1960qj.js} +2 -2
  81. package/dist/chunk-index-xwnkf825.js +2 -0
  82. package/dist/{chunk-index-cx9f5fae.js → chunk-index-y37ffyvy.js} +3 -3
  83. package/dist/{chunk-index-tqrjr37v.js → chunk-index-yrr5wvja.js} +2 -2
  84. package/dist/{chunk-index-2k2jvegd.js → chunk-index-z1fvb2kq.js} +3 -3
  85. package/dist/chunk-index-zwfdwgnb.js +138 -0
  86. package/dist/chunk-lang-css-nt7ezre4.js +1 -0
  87. package/dist/{chunk-lang-dockerfile-9rc0adjw.js → chunk-lang-dockerfile-4422dqj4.js} +1 -1
  88. package/dist/{chunk-lang-go-t47kg9n0.js → chunk-lang-go-1n73q49t.js} +1 -1
  89. package/dist/chunk-lang-html-p4yg906g.js +1 -0
  90. package/dist/chunk-lang-javascript-yqkd14sv.js +1 -0
  91. package/dist/{chunk-lang-json-y33kawwg.js → chunk-lang-json-zm1ts7s7.js} +1 -1
  92. package/dist/{chunk-lang-markdown-2c2sqc4z.js → chunk-lang-markdown-3cv6a1mc.js} +2 -2
  93. package/dist/{chunk-lang-python-ymasvj52.js → chunk-lang-python-ba7s8q8w.js} +1 -1
  94. package/dist/{chunk-lang-rust-qcg53mkn.js → chunk-lang-rust-gx2hj5cw.js} +1 -1
  95. package/dist/{chunk-lang-shell-996wb0dk.js → chunk-lang-shell-ec7k63jq.js} +1 -1
  96. package/dist/{chunk-lang-sql-60rh2y3y.js → chunk-lang-sql-svdp20tw.js} +1 -1
  97. package/dist/{chunk-lang-toml-q1yzt70y.js → chunk-lang-toml-nj3sefw0.js} +1 -1
  98. package/dist/chunk-lang-typescript-84y9c0f8.js +1 -0
  99. package/dist/{chunk-lang-xml-k2a92cm3.js → chunk-lang-xml-jzdsx03j.js} +1 -1
  100. package/dist/{chunk-lang-yaml-qp3asq06.js → chunk-lang-yaml-deh87m32.js} +1 -1
  101. package/dist/chunk-layout-actions-x0xxb5da.js +1 -0
  102. package/dist/{chunk-mention-menu-ag4gpcrb.js → chunk-mention-menu-b1k1tm6b.js} +1 -1
  103. package/dist/chunk-menu-items-2meta18j.js +1 -0
  104. package/dist/chunk-mode-toggle-7a44994f.js +1 -0
  105. package/dist/{chunk-note-row-wt0e0xgx.js → chunk-note-row-pab6wtf0.js} +3 -3
  106. package/dist/{chunk-notes-jd0ftn0y.js → chunk-notes-m0sjp2ct.js} +1 -1
  107. package/dist/{chunk-notice-bell-b71028rq.js → chunk-notice-bell-s15pgaw3.js} +1 -1
  108. package/dist/chunk-notices-zs8xg8v8.js +1 -0
  109. package/dist/{chunk-onboarding-fzz1x8vk.js → chunk-onboarding-sddzxrw5.js} +1 -1
  110. package/dist/{chunk-overview-whbzyq7x.js → chunk-overview-gkf6vfks.js} +1 -1
  111. package/dist/chunk-palette-m6bkdz1w.js +1 -0
  112. package/dist/chunk-placement-items-cb66mx65.js +1 -0
  113. package/dist/{chunk-profile-t5kyp6dt.js → chunk-profile-mvj96kv6.js} +1 -1
  114. package/dist/{chunk-prompt-history-cpejc2ce.js → chunk-prompt-history-mffm0c56.js} +1 -1
  115. package/dist/{chunk-prompts-am1gv3rx.js → chunk-prompts-26ey03ak.js} +1 -1
  116. package/dist/chunk-room-confirms-1j8qfyj9.js +1 -0
  117. package/dist/{chunk-room-menu-6swnygxx.js → chunk-room-menu-6myvrac1.js} +1 -1
  118. package/dist/chunk-rooms-menu-button-3cnm8wdd.js +1 -0
  119. package/dist/{chunk-schedules-y982gtmy.js → chunk-schedules-gjfm0x30.js} +1 -1
  120. package/dist/{chunk-seat-menu-2zhkhhav.js → chunk-seat-menu-neps7phz.js} +1 -1
  121. package/dist/chunk-section-fold-pgrjf74t.js +1 -0
  122. package/dist/{chunk-settings-p7rnj58y.js → chunk-settings-aa212bna.js} +1 -1
  123. package/dist/{chunk-sheet-hosts-n4y4b923.js → chunk-sheet-hosts-xwtaf228.js} +2 -2
  124. package/dist/{chunk-shortcut-help-nsspdnr8.js → chunk-shortcut-help-aaat3wrh.js} +2 -2
  125. package/dist/{chunk-shortcuts-2jsfcp8d.js → chunk-shortcuts-wt9x6qd6.js} +1 -1
  126. package/dist/{chunk-skill-editor-641sd772.js → chunk-skill-editor-4jkr948n.js} +2 -2
  127. package/dist/{chunk-skills-4h0sg7n3.js → chunk-skills-87rvtwt1.js} +1 -1
  128. package/dist/{chunk-start-over-line-en9pph7r.js → chunk-start-over-line-59zn5ekf.js} +2 -2
  129. package/dist/chunk-switcher-list-43n1vf29.js +1 -0
  130. package/dist/{chunk-tab-dot-jrv4g9we.js → chunk-tab-dot-773bfgn1.js} +1 -1
  131. package/dist/chunk-table-1ghv10s7.js +1 -0
  132. package/dist/{chunk-table2d-k4z439nt.js → chunk-table2d-4k5n9dxy.js} +1 -1
  133. package/dist/{chunk-table3d-9d3rwkwv.js → chunk-table3d-cwmxe12d.js} +21 -21
  134. package/dist/chunk-thread-actions-dd9ah02w.js +1 -0
  135. package/dist/{chunk-thread-cards-6tftqnrw.js → chunk-thread-cards-qs242xk1.js} +1 -1
  136. package/dist/{chunk-thread-list-wzwzbxx5.js → chunk-thread-list-qxymkzs9.js} +2 -2
  137. package/dist/{chunk-transcript-d9sfpsde.js → chunk-transcript-sjra3d3m.js} +1 -1
  138. package/dist/{chunk-waiting-chip-pq7cgh62.js → chunk-waiting-chip-yq3485cq.js} +2 -2
  139. package/dist/chunk-waiting-xmy1cyk1.js +1 -0
  140. package/dist/chunk-where-m6ss9smq.js +1 -0
  141. package/dist/{chunk-workspace-tb29dr0g.js → chunk-workspace-jt68gwza.js} +2 -2
  142. package/dist/index.html +1 -1
  143. package/dist/sw.js +1 -1
  144. package/package.json +2 -2
  145. package/dist/chunk-account-95rkb2fp.js +0 -1
  146. package/dist/chunk-arranged-rooms-xjpg0rtg.js +0 -1
  147. package/dist/chunk-bulk-actions-m38vtkan.js +0 -1
  148. package/dist/chunk-confirm-t08tacqd.js +0 -1
  149. package/dist/chunk-council-view-m3660jv4.js +0 -1
  150. package/dist/chunk-folder-list-rpccjz2c.js +0 -1
  151. package/dist/chunk-folds-qb9a87bf.js +0 -1
  152. package/dist/chunk-host-icons-vhhks1vc.js +0 -1
  153. package/dist/chunk-host-picture-b8wne78x.js +0 -1
  154. package/dist/chunk-host-state-j9d5bfng.js +0 -1
  155. package/dist/chunk-host-ui-zy96k6pv.js +0 -1
  156. package/dist/chunk-index-0pghg70x.js +0 -2
  157. package/dist/chunk-index-20h87yfa.js +0 -2
  158. package/dist/chunk-index-2srjhjvg.js +0 -2
  159. package/dist/chunk-index-2ywap2mg.js +0 -2
  160. package/dist/chunk-index-4e5nhm4v.js +0 -2
  161. package/dist/chunk-index-4ehy2d04.js +0 -2
  162. package/dist/chunk-index-5n8npdch.js +0 -2
  163. package/dist/chunk-index-8k1ccvmx.js +0 -1
  164. package/dist/chunk-index-90f1mkn7.js +0 -138
  165. package/dist/chunk-index-90tq8g68.js +0 -2
  166. package/dist/chunk-index-92p9wmrg.js +0 -2
  167. package/dist/chunk-index-a36h36x0.js +0 -2
  168. package/dist/chunk-index-dafr7y87.js +0 -2
  169. package/dist/chunk-index-fnmtztjx.js +0 -2
  170. package/dist/chunk-index-pmtgrd3x.js +0 -2
  171. package/dist/chunk-index-qjqxs7c3.js +0 -2
  172. package/dist/chunk-index-r9yg1hpr.js +0 -2
  173. package/dist/chunk-index-w51vgeed.js +0 -2
  174. package/dist/chunk-index-wk3w90nq.js +0 -2
  175. package/dist/chunk-lang-css-6t2q4xw4.js +0 -1
  176. package/dist/chunk-lang-html-c6p22v5m.js +0 -1
  177. package/dist/chunk-lang-javascript-m57t19pw.js +0 -1
  178. package/dist/chunk-lang-typescript-7gcbrhbd.js +0 -1
  179. package/dist/chunk-layout-actions-6vm38ver.js +0 -1
  180. package/dist/chunk-menu-items-fk3m74y3.js +0 -1
  181. package/dist/chunk-mode-toggle-zy1wgyc7.js +0 -1
  182. package/dist/chunk-notices-qhghsyh5.js +0 -1
  183. package/dist/chunk-palette-dgf96b8y.js +0 -1
  184. package/dist/chunk-placement-items-e0bfeqj4.js +0 -1
  185. package/dist/chunk-room-confirms-a3m74jfg.js +0 -1
  186. package/dist/chunk-rooms-menu-button-ret11jfe.js +0 -1
  187. package/dist/chunk-section-fold-h1fpkayc.js +0 -1
  188. package/dist/chunk-switcher-list-pr884et3.js +0 -1
  189. package/dist/chunk-table-g56wwdmh.js +0 -1
  190. package/dist/chunk-thread-actions-y30fzpje.js +0 -1
  191. package/dist/chunk-waiting-emww5evj.js +0 -1
  192. package/dist/chunk-where-e7we9q52.js +0 -1
@@ -1,138 +0,0 @@
1
- import{p,T,b,Qe,o,Se,C,jn,a,r,t,c,g,e,n,s,_e,x,X,u,P,Sn,Jn,lt,_,je,pr,kn,Nt,_n,Re,ct,ii,Tn,Oe,ye,ta,Rn,he,zt,et,tt,ia,vr,xr,Sr,En,$e,Be,ze,An,Mr,Rr,ai}from"./chunk-index-st18ee4w.js";import{bt}from"./chunk-index-90tq8g68.js";import{He}from"./chunk-index-4e5nhm4v.js";import{me}from"./chunk-index-1pgm1gy4.js";import{On}from"./chunk-index-r1g24er0.js";import{A}from"./chunk-index-04ndj4hg.js";import{B}from"./chunk-index-fw6kawhw.js";var Ne=(i)=>`roundtable-console:council-mode:${i}`,qe=(i)=>`rt-table-mode:${i}`,We="roundtable-console:table-mode",Ce=new Map,{emit:Pn,use:Dn}=P(),Ee=(i)=>i==="scene"||i==="chat"?i:void 0;function ve(i){try{return globalThis.localStorage?.getItem(i)??void 0}catch{return}}function Te(i,d){try{if(d===void 0)globalThis.localStorage?.removeItem(i);else globalThis.localStorage?.setItem(i,d)}catch{}}function Fn(i){let d=ve(qe(i)),m=d==="1"?"scene":d==="0"?"chat":void 0,f=m??Ee(ve(We))??"scene";if(m!==void 0||Ee(ve(We)))Te(Ne(i),f),Te(qe(i),void 0);return f}function In(i){let d=Ce.get(i);if(d!==void 0)return d;let m=Ee(ve(Ne(i)))??Fn(i);return Ce.set(i,m),m}function Kn(i,d){Ce.set(i,d),Te(Ne(i),d),Pn()}function Ye(i){return[Dn(()=>In(i)),(d)=>Kn(i,d)]}var $n=`
2
- /* The box's fold button says what it does, in words beside its chevron. */
3
- .scene-collapse {
4
- width: auto;
5
- flex: none;
6
- gap: var(--space-1);
7
- padding-inline: var(--space-2);
8
- font-size: var(--text-xs);
9
- }
10
- .scene-collapse span {
11
- white-space: nowrap;
12
- }
13
- /* Folded, the box is one bar: who speaks, the start of their newest line, and the button that opens it. */
14
- .scene-bar {
15
- display: flex;
16
- align-items: center;
17
- gap: var(--space-2);
18
- min-height: var(--touch);
19
- padding: var(--space-1) var(--space-1) var(--space-1) var(--space-2);
20
- cursor: pointer;
21
- }
22
- .scene-bar .scene-chip {
23
- width: 2rem;
24
- height: 2rem;
25
- margin: 0;
26
- border-width: 2px;
27
- flex: none;
28
- }
29
- .scene-bar-name {
30
- flex: 0 1 auto;
31
- min-width: 3ch;
32
- max-width: 35%;
33
- overflow: hidden;
34
- text-overflow: ellipsis;
35
- white-space: nowrap;
36
- }
37
- .scene-bar-preview {
38
- flex: 1 1 0;
39
- min-width: 0;
40
- overflow: hidden;
41
- text-overflow: ellipsis;
42
- white-space: nowrap;
43
- color: var(--muted);
44
- font-size: var(--text-sm);
45
- }
46
- .scene-bar-asking {
47
- flex: none;
48
- padding: 0 var(--space-2);
49
- border-radius: var(--radius-full);
50
- background: color-mix(in srgb, var(--accent) 16%, transparent);
51
- font-size: var(--text-xs);
52
- white-space: nowrap;
53
- }
54
- .scene-composer[hidden] {
55
- display: none;
56
- }
57
-
58
- /* On a phone the tab's tools are narrow, but the fold button keeps its words. */
59
- @media (max-width: 719px) {
60
- .scene-tools .scene-collapse,
61
- .scene-bar .scene-collapse {
62
- width: auto;
63
- min-width: 0;
64
- padding-inline: var(--space-1);
65
- }
66
- }
67
- /* Phones held upright: folded, the box is only its bar and the scene takes the rest. */
68
- @media (max-width: 719px) and (orientation: portrait) {
69
- .table-frame[data-focused][data-folded] {
70
- grid-template-rows: minmax(0, 1fr) auto;
71
- }
72
- }
73
- `,Bn=`
74
- /* The header's tools wrap under the title on a narrow screen rather than overflow it. */
75
- .table-tools {
76
- flex-wrap: wrap;
77
- justify-content: flex-end;
78
- }
79
- /* The switch between the scene and the chat: two short choices, each an icon and its words. */
80
- .table-mode {
81
- flex: none;
82
- margin: 0;
83
- }
84
- .table-mode label {
85
- min-height: 2rem;
86
- padding: 0 var(--space-2);
87
- font-size: var(--text-sm);
88
- white-space: nowrap;
89
- }
90
- /* A council's header is one row: its tools stay as wide as they are, the name gives way and is cut. */
91
- .council-head {
92
- gap: var(--space-2);
93
- }
94
- .council-head .table-tools {
95
- flex: none;
96
- flex-wrap: nowrap;
97
- gap: var(--space-1);
98
- }
99
- .council-head .room-picture {
100
- padding: 0;
101
- }
102
- /* The round table's name is its council picker: a title that opens the sheet. */
103
- .council-head button.council-pick {
104
- font-weight: var(--weight-bold);
105
- }
106
- /* On a narrow or touched screen the switch shows icons only; the words stay for a screen reader and as the tooltip. */
107
- @media (max-width: 719px), (pointer: coarse) {
108
- .table-mode .mode-label {
109
- position: absolute;
110
- width: 1px;
111
- height: 1px;
112
- overflow: hidden;
113
- clip-path: inset(50%);
114
- white-space: nowrap;
115
- }
116
- .table-mode label {
117
- padding: 0 var(--space-2);
118
- }
119
- .council-head {
120
- gap: var(--space-1);
121
- }
122
- }
123
- /* The council's messages as a chat fill the view under its header, like a room's own list. */
124
- .table-chat {
125
- position: relative;
126
- flex: 1;
127
- min-height: 0;
128
- display: flex;
129
- flex-direction: column;
130
- }
131
- `,Ue=()=>B("dialogue-fold",$n),Ji=()=>B("table-page",Bn);function Gn(i){let d=(m,f,l)=>n("label",{"data-checked":i.mode===m,title:f,children:[e("input",{type:"radio",name:"table-mode",value:m,checked:i.mode===m,onChange:()=>i.onMode(m)}),e(s,{name:l,size:16}),e("span",{className:"mode-label",children:f})]});return n("fieldset",{className:"segmented table-mode",children:[e("legend",{className:"visually-hidden",children:t("Show the council as")}),d("scene",t("Animation mode"),"table"),d("chat",t("Chat mode"),"rooms")]})}function Xe(i){let{view:d,name:m,room:f}=i,l=d?.kind==="group"?d.name:void 0,y=d?e($e,{view:d,size:36}):null;return n("header",{className:"room-head council-head",children:[f?e("a",{className:"icon-button room-back",href:x("rooms"),"aria-label":t("Back to rooms"),children:e(s,{name:"back"})}):null,y?e(_n,{open:f?.drawer,children:y}):null,n("div",{className:"room-title",children:[n("h1",{children:[f?l?e("button",{type:"button",className:"room-name","aria-haspopup":"dialog",title:t("Edit group"),onClick:()=>bt({kind:"group",name:l}),children:m}):m:n("button",{type:"button",className:"room-name council-pick","aria-haspopup":"dialog",title:t("Switch council"),onClick:i.onPick,children:[m,e("span",{"aria-hidden":"true",children:" ▾"})]}),d?.muted?e(s,{name:"bell-off",size:14,className:"room-muted",role:"img","aria-hidden":!1,"aria-label":t("Notifications are off")}):null]}),e("span",{className:"room-status","data-working":i.working||void 0,children:d?.readOnly?t("Read-only"):i.working?t("Working…"):t("Group")})]}),n("div",{className:"table-tools",children:[i.onReset?e("button",{type:"button",className:"icon-button","aria-label":t("Reset view"),title:t("Reset view"),onClick:i.onReset,children:e(s,{name:"reset"})}):null,i.mode?e(Gn,{mode:i.mode,onMode:i.onMode}):null]}),e(An,{}),e("button",{ref:i.menuButton,type:"button",className:"icon-button","aria-label":t("Room menu"),"aria-haspopup":"dialog",onClick:i.onMenu,children:e(s,{name:"menu"})})]})}function Ze(i,d,m,f){if(!i)return;let l=i.pending.at(-1);if(l&&!l.failed)return{id:`p${l.id}`,who:"owner",author:d,text:l.text,files:[],live:!1,pending:!0};if(i.typing&&i.progress.text!==""){let h=i.agent??f;return{id:`s${i.messages.at(-1)?.id??0}`,who:"agent",agent:h,author:m(h),text:i.progress.text,files:[],live:!0,pending:!1}}let y=i.live.at(-1);if(y)return{id:`l${y.live??y.id}`,who:"agent",agent:y.agent,author:y.author,text:y.text,files:y.files,live:!0,pending:!1};for(let h=i.messages.length-1;h>=0;h-=1){let v=i.messages[h];if(!v||v.kind==="system")continue;return Je(v)}return}function Je(i){return{id:`m${i.id}`,who:i.kind==="owner"?"owner":"agent",agent:i.agent,author:i.author,text:i.text,files:i.files,live:!1,pending:!1}}var zn=(i,d)=>i.id===d.id||i.who===d.who&&i.agent===d.agent&&i.text!==""&&d.text!==""&&(d.text.startsWith(i.text)||i.text.startsWith(d.text));function en(){let i=[],d,m=(f)=>{let l=i.length-1,y=i[l];if(y&&zn(y,f))i[l]=f;else i.push(f)};return{get line(){return i[0]},get waiting(){return Math.max(0,i.length-1)},feed(f,l){let y=f.at(-1)?.id??0;if(!d){d=y,i=l?[l]:[];return}if(!l){d=Math.max(d,y),i=[];return}for(let h of f)if(h.id>d&&h.kind!=="system")m(Je(h));if(d=Math.max(d,y),l&&!l.id.startsWith("m"))m(l)},advance(){if(i.length<2)return!1;return i=i.slice(1),!0}}}function nn(i,d,m){if(i!==void 0&&m.includes(i))return i;return Yn(d,m)}function tn(i,d,m){return i.cardOrder.map((l)=>({id:l,card:i.cards[l]})).filter((l)=>l.card?.room===d).filter((l)=>l.card.outcome===void 0||m===void 0||l.card.after>=m)}var qn=90;function Wn(i,d,m,f={}){if(f.instant)return d;let l=i+m/1000*(f.cps??qn);return Math.min(d,Math.max(i,l))}function on(){let i,d="",m=0,f=0;return{get shown(){return Math.floor(f)},get done(){return Math.floor(f)>=m},feed(l,y){if(l!==i){let h=d!==""&&(y.startsWith(d)||d.startsWith(y));if(i=l,!h)f=0}if(d=y,m=Array.from(y).length,f>m)f=m},step(l,y){f=Wn(f,m,l,{instant:y})},finish(){f=m}}}function rn(i,d,m){if(i?.who!=="agent")return;if(i.live&&m!==void 0)return m;return d?i.agent:void 0}function sn(i,d=80){let m=i.split(`
132
- `).map((l)=>l.replace(/^\s*(?:#{1,6}\s|>\s?|[-*+]\s|\d+\.\s)+/,"").replace(/[*_`~]/g,"").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\s+/g," ").trim()).find((l)=>l!=="")??"",f=Array.from(m);return f.length>d?`${f.slice(0,d-1).join("")}…`:m}var an=(i,d)=>Array.from(i).slice(0,d).join("");function Yn(i,d){if(!i||i.who!=="agent"||i.agent===void 0)return null;return d.includes(i.agent)?i.agent:null}function cn(i,d,m){return m&&m.lineId===d?m.member:i}var ln="roundtable-console:dialogue-folded",Le=new Map,{emit:Xn,use:Zn}=P();function Qn(i){let d=Le.get(i);if(d!==void 0)return d;try{let m=globalThis.localStorage?.getItem(i)??void 0;if(m!==void 0)Le.set(i,m);return m}catch{return}}function nt(i,d){Le.set(i,d);try{globalThis.localStorage?.setItem(i,d)}catch{}Xn()}var ot=()=>Qn(ln)==="1";function rt(i){nt(ln,i?"1":"0")}function we(){return[Zn(ot),rt]}var xe={},{emit:it,use:st}=P();function Ae(i,d){if(xe[i]===d)return;let m={...xe};if(d===void 0)delete m[i];else m[i]=d;xe=m,it()}var at=()=>xe;function ke(){return st(at)}var dt=24;function un(i,d,m){let f=a(!0);o(()=>{let l=i.current;if(!l)return;let y=()=>{f.current=l.scrollHeight-l.scrollTop-l.clientHeight<=dt};return l.addEventListener("scroll",y,{passive:!0}),()=>l.removeEventListener("scroll",y)},[i]),Se(()=>{let l=i.current;if(!d){f.current=!0;return}if(l&&f.current)l.scrollTop=l.scrollHeight},[i,d,m])}var ut=["①","②","③","④","⑤","⑥","⑦","⑧"];function mn(i){if(!i)return[];return[...i.spoken.map((d)=>({name:d,place:"spoken"})),...i.current===void 0?[]:[{name:i.current,place:"current"}],...i.next.map((d,m)=>({name:d,place:"next",order:m+1}))]}function fn(i){let d={};if(i?.state!=="running")return d;for(let f of i.spoken)d[f]="✓";let m=new Set;if(i.next.forEach((f,l)=>{let y=ut[l];if(y===void 0||m.has(f))return;m.add(f),d[f]=y}),i.current!==void 0)delete d[i.current];return d}var Me=(i)=>i?.state==="running"?i.current:void 0;function pn(i){let d=i.current===void 0?i.replies:i.replies+1;return Math.min(Math.max(d,0),i.limit)}function mt(i){if(i.ended==="limit")return t("Limit reached");if(i.ended==="stopped")return t("Round stopped");if(i.ended==="done")return t("{count} of {limit} replies",{count:i.replies,limit:i.limit});return t("Reply {n} of {limit}",{n:i.n,limit:i.limit})}var Pe=(i)=>mt({...i,n:pn(i)});function gn(i){let d=u((h)=>h.rooms[i.roomKey]?.round),m=u((h)=>{let v={};for(let w of Object.values(h.rooms))if(w.view?.kind==="agent")v[w.view.name]=w.view.displayName;return v}),f=tt();if(!d)return null;let l=mn(d),y=(h)=>m[h]??h;return n("div",{className:"order-strip","data-state":d.state,children:[e("ol",{className:"order-faces","aria-label":t("Speaking order"),children:l.map((h,v)=>n("li",{className:"order-face","data-place":h.place,title:y(h.name),children:[e(he,{spec:f[h.name],name:h.name,size:h.place==="current"?36:26,live:!1}),e("span",{className:"order-badge","aria-hidden":"true",children:h.place==="spoken"?"✓":h.place==="next"?h.order:null}),e("span",{className:"visually-hidden",children:`${y(h.name)}, ${h.place==="spoken"?t("has spoken"):h.place==="current"?t("speaking"):t("next")}`})]},`${h.name}:${v}`))}),e("span",{className:"order-chip","aria-live":"polite",children:Pe(d)}),d.state==="running"&&(d.queued??0)>0?e("span",{className:"order-queued",children:t("Your message waits for the next round")}):null]})}Ue();function ft(i){let d=a(on()),[,m]=jn((h)=>h+1,0),f=_e();d.current.feed(i?.id??"",i?.text??"");let l=i?.text??"",y=i?.id;return o(()=>{let h=d.current;if(f||l===""||y===void 0){h.finish(),m();return}let v=performance.now(),w=0,k=()=>{let E=performance.now();if(h.step(E-v,!1),v=E,m(),!h.done)w=requestAnimationFrame(k)};if(!h.done)w=requestAnimationFrame(k);return()=>cancelAnimationFrame(w)},[f,y,l]),{shown:d.current.shown,done:d.current.done,finish(){d.current.finish(),m()}}}function De(i){let d=u((v)=>v.rooms[i]),m=u((v)=>v.principal?.name)??t("You"),f=u((v)=>{let w={};for(let k of Object.values(v.rooms))if(k.view?.kind==="agent")w[k.view.name]=k.view.displayName;return w}),l=d?.view,y=(v)=>(v===void 0?void 0:f[v])??v??l?.displayName??i,h=Ze(d,m,y,l?.kind==="agent"?l.name:void 0);return{room:d,view:l,line:h,displayOf:y}}function pt(i){let{loaded:d,error:m}=i,f=u((v)=>v.rooms[i.roomKey]),[l,y]=r(!1),h=a(null);return o(()=>{if(i.open&&d)h.current?.scrollTo({top:h.current.scrollHeight})},[i.open,d]),e(A,{open:i.open,title:`${i.name} · ${t("Log")}`,onClose:i.onClose,children:n("div",{className:"scene-log",ref:h,children:[m?e("p",{className:"failure-text",children:m}):null,f?.more?e("button",{type:"button",className:"secondary older",disabled:l,onClick:async()=>{y(!0),await Sr(i.roomKey),y(!1)},children:l?t("Loading…"):t("Load earlier messages")}):null,e(En,{roomKey:i.roomKey,enterAfter:void 0,quotable:!0})]})})}function hn(i){let{roomKey:d}=i,m=ze(),f=_(),l=xr(d),y=i.streams!==!1;o(()=>{if(!y)return;return m.focus(d),()=>m.focus(void 0)},[m,d,y]);let h=u((M)=>M.limits),v=u((M)=>tn(M,d,M.rooms[d]?.messages.at(-1)?.id)),w=tt(),{room:k,view:E,line:V,displayOf:oe}=De(d),re=ai(d,E?.displayName??d,!1),F=a(void 0);if(F.current?.room!==d)F.current={room:d,stage:en()};let{stage:I}=F.current;I.feed(k?.messages??[],V);let{line:N,waiting:G}=I,D=E?.kind==="agent"?E:void 0,q=D?D.name:N?.who==="agent"?N.agent:void 0,U=et(q?w[q]:void 0),Z=D?D.displayName:N?N.author:E?.displayName??d,{shown:ae,done:H,finish:J}=ft(N),[,ue]=jn((M)=>M+1,0);o(()=>{if(H&&G>0&&I.advance())ue()},[H,G,I]);let W=Me(k?.round),le=Boolean(k?.typing&&k.progress.text!==""&&G===0),z=rn(N,!H,le?W??N?.agent:void 0);o(()=>{Ae(d,z)},[d,z]),o(()=>()=>Ae(d,void 0),[d]);let de=a(null);un(de,!H,ae);let[Q,j]=r(!1),[O,ee]=we(),ce=N?.who==="owner"&&!D?{["--agent-accent"]:"var(--accent)"}:U,R=Boolean(k?.typing),S=H&&G===0&&N?.who==="agent"&&W!==void 0&&W!==N.agent,L=R&&(!N||N.who==="owner"||S),K=N?an(N.text,ae):"",Y=D||N?.who==="agent"?e("span",{className:"scene-chip",children:e(he,{spec:q?w[q]:void 0,name:q??Z,size:34,live:!1})}):null,ie=v.some(({card:M})=>M.outcome===void 0),ne=n("button",{type:"button",className:"icon-button scene-collapse","aria-expanded":!O,onClick:(M)=>{M.stopPropagation(),ee(!O)},children:[e(s,{name:"chevron",style:{rotate:O?"-90deg":"90deg"}}),e("span",{children:O?t("Expand dialogue"):t("Collapse dialogue")})]});return n("section",{className:"scene-box","data-open":i.open||void 0,"data-collapsed":O||void 0,"data-who":N?.who,style:ce,"aria-label":t("Log"),children:[O?n("div",{className:"scene-bar",onClick:()=>ee(!1),children:[Y,e("strong",{className:"scene-bar-name",children:Z}),e("span",{className:"scene-bar-preview",children:N?sn(N.text):k?.round?Pe(k.round):""}),ie?e("span",{className:"scene-bar-asking",children:t("Waiting for your answer")}):null,ne]}):n("header",{className:"scene-tab",children:[Y,e("strong",{className:"scene-name",children:Z}),n("span",{className:"scene-tools",children:[i.onBack?e("button",{type:"button",className:"icon-button","aria-label":t("Back to the whole table"),onClick:i.onBack,children:e(s,{name:"back"})}):null,i.onMenu?e("button",{type:"button",className:"icon-button scene-more","aria-label":t("More"),"aria-haspopup":"menu",onClick:(M)=>i.onMenu?.(M.currentTarget),children:e(s,{name:"more"})}):null,n("button",{type:"button",className:"icon-button scene-log-button","aria-label":t("Log"),"aria-haspopup":"dialog",onClick:()=>j(!0),children:[e(s,{name:"conversations"}),e("span",{children:t("Log")})]}),ne]})]}),O?null:i.strip,O?null:n("div",{className:"scene-body",ref:de,children:[e("div",{className:"scene-line","data-live":N?.live||void 0,"aria-live":"polite",...H?{}:{role:"button",tabIndex:0,title:t("Tap to show the whole message"),onClick:J,onKeyDown:(M)=>{if(M.key==="Enter"||M.key===" ")M.preventDefault(),J()}},children:N?n(g,{children:[D&&N.who==="owner"?e("span",{className:"scene-from",children:N.author}):null,e(je,{source:K}),H?e(zt,{files:N.files}):null]}):null}),L&&k?e(Tn,{name:S?oe(W):Z,progress:k.progress}):null,v.map(({id:M,card:se})=>e("div",{className:"scene-card",children:e(vr,{card:se,timeZone:f.timeZone})},M))]}),E?.readOnly?null:e("div",{className:"scene-composer",hidden:O,children:e(Nt,{draftKey:d,...i.mentionable?{mentionable:i.mentionable}:{},name:E?.displayName??d,commands:re,limits:h,stoppable:Boolean(k?.stoppable),blurAfterSend:i.blurAfterSend===!0,...E?.kind==="group"?{stopLabel:t("Stop the round")}:{},onSend:(M,se)=>m.say(d,M,se),onStop:()=>m.send({type:"stop",room:d})},d)}),e(pt,{roomKey:d,open:Q,loaded:l.loaded,error:l.error,name:E?.displayName??d,onClose:()=>j(!1)})]})}var gt=8,ht={views:[],attention:{},loaded:!1},bn=ht,{emit:yt,use:vt}=P(),Un=()=>vt(()=>bn);function vi(){let i=Qe(lt)?.tier;return i!==void 0&&i!=="owner"}function wt(i,d){return{key:i.key,kind:"agent",name:`${d}.${i.id}`,displayName:i.title,home:!1,readOnly:!1,mode:{yolo:!1,longRunning:!1},typing:!1,stoppable:!1}}var St=(i)=>i.attention===!0,xt=(i,d)=>(d.lastAt??"").localeCompare(i.lastAt??"");async function kt(i){let d=await Promise.allSettled(i.map((l)=>He.list(l))),m=[];d.forEach((l,y)=>{let h=i[y];if(l.status!=="fulfilled"||h===void 0)return;for(let v of l.value.rooms)m.push({room:v,kind:h})}),m.sort((l,y)=>xt(l.room,y.room));let f={};for(let{room:l}of m)if(St(l))f[l.key]=!0;return{views:m.map(({room:l,kind:y})=>wt(l,y)),attention:f,loaded:!0}}function ss(i){let d=ze(),m=u((k)=>k.connects),f=me((k)=>k.lists),l=a(0),y=a(0),h=i.join(`
133
- `),{views:v}=Un();o(()=>{l.current+=1;let k=l.current,E=!0;return kt(h===""?[]:h.split(`
134
- `)).then((V)=>{if(!E||k<y.current)return;y.current=k,bn=V,yt()}),()=>{E=!1}},[h,m,f]);let w=v.slice(0,gt).map((k)=>k.key).join(`
135
- `);o(()=>{let k=w===""?[]:w.split(`
136
- `);for(let E of k)d.send({type:"subscribe",room:E});return()=>{for(let E of k)d.send({type:"unsubscribe",room:E})}},[d,w,m])}var Rt=380,Mt="cubic-bezier(0.7, 0, 0.84, 0)",Ct=2.4,yn=0.35,Et=260,Tt="cubic-bezier(0.2, 0.8, 0.2, 1)",Lt=1.06,Ot=700,te;function vn(i){if(te?.host===i&&te.phase==="diving")te.abort()}var At=(i)=>{if(!i||typeof i.animate!=="function")return;i.animate([{transform:`scale(${Lt})`,opacity:yn},{transform:"scale(1)",opacity:1}],{duration:Et,easing:Tt})};function wn(i,d,m,f){if(te)return;let l=i.closest("main.route")??i;if(_e()||typeof l.animate!=="function"){m();return}f?.();let y=l.getBoundingClientRect(),h=`${d.x-y.left}px ${d.y-y.top}px`,v={overflow:l.style.overflow,events:l.style.pointerEvents};l.style.overflow="hidden",l.style.pointerEvents="none";let w=l.animate([{transformOrigin:h,transform:"scale(1)",opacity:1},{transformOrigin:h,transform:`scale(${Ct})`,opacity:yn}],{duration:Rt,easing:Mt,fill:"forwards"}),k=document.documentElement,E,V,oe=()=>{l.style.overflow=v.overflow,l.style.pointerEvents=v.events,w.cancel()},re=()=>{window.removeEventListener("popstate",I),window.removeEventListener("hashchange",I)},F={host:i,phase:"diving",abort:I};function I(){if(te!==F||F.phase!=="diving")return;re(),oe(),te=void 0}let N=(G)=>{if(te!==F)return;if(V?.disconnect(),clearTimeout(E),k.removeAttribute("data-dive"),oe(),te=void 0,G)At(document.querySelector("main.route"))};te=F,window.addEventListener("popstate",I),window.addEventListener("hashchange",I),w.finished.then(()=>{if(te!==F||F.phase!=="diving")return;if(F.phase="committing",re(),k.setAttribute("data-dive",""),m(),!i.isConnected){N(!0);return}V=new MutationObserver(()=>{if(!i.isConnected)N(!0)}),V.observe(l.parentElement??document.body,{childList:!0,subtree:!0}),E=setTimeout(()=>N(!i.isConnected),Ot)},()=>{return})}var Ht=(i)=>i==="sleepy"?"idle":i;function xn(i,d){let m={};for(let[l,y]of Object.entries(i))m[l]=Ht(y);let f=(l)=>l!==void 0&&(l in m)&&m[l]!=="waiting"&&m[l]!=="error";for(let l of d){let y=l.agent;if(l.typing&&f(y)){let h=m[y];if(h!=="thinking"&&h!=="working")m[y]="thinking"}}for(let l of d)if(f(l.voice))m[l.voice]="speaking";return m}function Fe(i,d){if(i==="speaking")return"happy";return(d?.STATE_EXPRESSION??Pt)[i]}var Pt={idle:"neutral",thinking:"thinking",working:"determined",waiting:"curious",done:"proud",error:"apologetic",sleepy:"sleepy"};function Ie(i,d){return`s${i}${d.toLowerCase().replace(/[^a-z0-9]/g,"")}`.slice(0,16)}var Dt={x:-7,y:-3,w:114,h:100},fe=256;function Ve(i,d,m,f,l,y,h){let v=i.composeSvg(d,{bare:!0,look:m,expr:Fe(f,i),...h?{mouth:h}:{},state:"idle",still:!0,size:fe,uid:l,skins:y}),{x:w,y:k,w:E,h:V}=Dt;return v.replace('viewBox="0 0 100 100"',`viewBox="${w} ${k} ${E} ${V}"`).replace(`width="${fe}" height="${fe}"`,`width="${fe}" height="${Math.round(fe*V/E)}"`)}function Ke(i,d,m,f,l,y){if(f!=="speaking")return{avatarSvg:Ve(i,d,m,f,l,y)};return{avatarSvg:Ve(i,d,m,f,l,y,"closed"),talkSvg:Ve(i,d,m,f,l,y,"open")}}function Mn(i){let d=i.delayMs??300,m=i.timers??{set:(h,v)=>setTimeout(h,v),clear:(h)=>clearTimeout(h)},f=new Map,l=new Map,y=(h)=>{let v=l.get(h);if(v===void 0)return;m.clear(v),l.delete(h)};return{seed(h,v){y(h),f.set(h,Fe(v))},update(h,v){let w=Fe(v);if(!f.has(h)){f.set(h,w);return}if(y(h),f.get(h)===w)return;l.set(h,m.set(()=>{l.delete(h),f.set(h,w),i.setAvatar(h,v)},d))},forget(h){y(h),f.delete(h)},dispose(){for(let h of[...l.keys()])y(h);f.clear()}}}var Vt={idle:c("idle"),thinking:c("thinking"),working:c("working"),waiting:c("waiting"),speaking:c("speaking"),done:c("done"),error:c("error")},Ft=()=>({table:t("Round table"),seat:(i,d)=>t("{name} ({state})",{name:i,state:t(Vt[d])})}),It=()=>{Be().catch(()=>{return})};function dn(i){let d=vi(),{views:m}=Un(),f=u((l)=>{let y=l.order.map((v)=>l.rooms[v]?.view).filter((v)=>v!==void 0&&v.kind==="agent"&&!v.helper);return[...i?i.slice(0,On).map((v)=>y.find((w)=>w.name===v)).filter((v)=>v!==void 0):y].sort((v,w)=>Number(w.home)-Number(v.home)).slice(0,On)},i?.join(`
137
- `)??"");return d?m.slice(0,On):f}function xi(){return u((i)=>i.order.map((d)=>i.rooms[d]?.view).filter((d)=>d!==void 0&&d.kind==="agent"&&!d.helper),"agents")}function Kt(i){let d=ke(),m=u((f)=>Object.values(f.rooms).filter((l)=>i?l.key===i:l.view?.kind==="group").map((l)=>{let y=Me(l.round),h=y??l.agent,v=l.typing&&l.progress.text!=="";return{key:l.key,typing:l.typing||y!==void 0,...h===void 0?{}:{agent:h},...v&&h!==void 0?{streamer:h}:{}}}),i??"");return C(()=>m.map(({key:f,streamer:l,...y})=>{let h=d[f]??l;return h===void 0?y:{...y,voice:h}}),[m,d])}function _t(i){return u((d)=>fn(i?d.rooms[i]?.round:void 0),i??"")}function Vn(i){let{variant:d="full",onHandle:m}=i,f=Jn(),l=ct(),y=ii(),h=Rn(),v=tt(),w=dn(i.members),k=ia(w.map((R)=>R.key)),E=Kt(i.groupRoom),V=_t(i.groupRoom),oe=Un().attention,re=vi(),F=a(re);F.current=re;let I=d==="full"&&i.list===!0,N=C(()=>xn(Object.fromEntries(w.map((R)=>{let S=k[R.key]??"idle";return[R.name,oe[R.key]&&(S==="idle"||S==="sleepy")?"waiting":S]})),E),[w,k,E,oe]),G=a(N);G.current=N;let D=C(()=>{if(!f)return[];return w.map((R,S)=>{let L=v[R.name]??R.character??Sn(f,R);return{id:R.name,name:R.displayName,color:f.accentOf(L,y.look),...Ke(f,L,y.look,G.current[R.name]??"idle",Ie(S,R.name),h)}})},[f,w,v,y.look,h]),q=a(D);q.current=D;let U=a(w);U.current=w;let Z=a({look:l,scheme:y.scheme});Z.current={look:l,scheme:y.scheme};let ae=a(null),H=a(void 0),[J,ue]=r(0),W=a(void 0),le=a(()=>{return});le.current=(R)=>{let S=w.find((L)=>L.name===R);if(!f||!S)return;return v[R]??S.character??Sn(f,S)};let z=a(y);z.current=y;let de=a(h);de.current=h;let Q=a(f);Q.current=f;let j=a(m);j.current=m;let O=a(i);O.current=i;let ee=f!==void 0&&D.length>0;o(()=>{let R=ae.current;if(!ee||!R)return;let S=!0,L,K=Mn({setAvatar:(Y,ie)=>{let ne=le.current(Y),M=Q.current,se=U.current.findIndex((be)=>be.name===Y);if(!ne||!M||se<0)return;let{avatarSvg:pe,talkSvg:ge}=Ke(M,ne,z.current.look,ie,Ie(se,Y),de.current);L?.setAvatar(Y,pe,ge)}});return W.current=K,(async()=>{let{mountRoundTable:Y}=await (p("71pd652j"),import("./chunk-entry-71pd652j.js")),ie=q.current.map((M)=>({...M,state:G.current[M.id]??"idle"})),ne=await Y(R,{theme:Z.current.look,scheme:Z.current.scheme,seats:ie,onSeatClick:({id:M,at:se})=>{let pe=O.current.onSeat;if(pe){pe(M);return}let ge=U.current.find((Hn)=>Hn.name===M);if(!ge)return;let be=()=>X("room",ge.key),Ge=ae.current;if(se&&Ge)wn(Ge,se,be,F.current?It:void 0);else be()},...O.current.onSeatMenu?{onSeatMenu:(M)=>O.current.onSeatMenu?.(M)}:{},ownerName:O.current.ownerName??t("You"),focus:O.current.focus??null,onFocus:(M)=>O.current.onFocus?.(M),reducedMotion:"auto",lowPower:"auto",variant:d,listBelow:I,labels:Ft()});if(!S){ne.dispose();return}L=ne,H.current=ne;for(let M of ie)K.seed(M.id,M.state??"idle");j.current?.(ne),ue((M)=>M+1)})(),()=>{S=!1,vn(R),K.dispose(),W.current=void 0,H.current=void 0,j.current?.(void 0),L?.dispose()}},[ee,d,I]);let ce=i.focus??null;if(o(()=>{let R=H.current;if(R&&R.focused()!==ce)R.focus(ce)},[ce,J]),o(()=>{let R=H.current;if(!R||D.length===0)return;let S=G.current;R.setSeats(D.map((L)=>({...L,state:S[L.id]??"idle"})));for(let L of D)W.current?.seed(L.id,S[L.id]??"idle")},[D,J]),o(()=>{let R=H.current;if(!R)return;for(let S of q.current)R.setMark(S.id,V[S.id]??null)},[V,D,J]),o(()=>{let R=H.current;if(R)R.setTheme(l,y.scheme)},[l,y.scheme,J]),o(()=>{let R=H.current;if(!R)return;for(let S of q.current){let L=N[S.id]??"idle";R.setState(S.id,L),W.current?.update(S.id,L)}},[N,J]),w.length===0)return e("p",{className:"table-empty",children:t("No knights are seated yet.")});return e("section",{className:"table-host",ref:ae,"aria-label":t("Round table")})}function Cn(i,d){let{line:m}=De(i),f=ke()[i],[l,y]=r(),h=nn(f,m,d),v=`${m?.id??""}|${h??""}`;return{focus:cn(h,v,l),look:(E)=>y({lineId:v,member:E})}}function Nn(i){let{roomKey:d,members:m}=i,f=dn(m),[l]=we();return n("div",{className:"table-frame room-scene","data-focused":"","data-folded":l||void 0,children:[e(Vn,{members:m,groupRoom:d,variant:"full",focus:i.focus,onFocus:i.onLook,onSeat:(y)=>{i.onLook(y);let h=f.find((v)=>v.name===y);if(h)pr(d,h.displayName)},...i.onHandle?{onHandle:i.onHandle}:{},...i.onSeatMenu?{onSeatMenu:i.onSeatMenu}:{}}),e(hn,{roomKey:d,open:!0,streams:i.streams??!1,blurAfterSend:i.blurAfterSend===!0,mentionable:f,strip:e(gn,{roomKey:d})})]})}Ji();var $t=b(()=>(p("zt24kn9f"),import("./chunk-council-sheet-zt24kn9f.js")).then((i)=>({default:i.CouncilSheet}))),Bt=b(()=>(p("zy1wgyc7"),import("./chunk-mode-toggle-zy1wgyc7.js")).then((i)=>({default:i.ModeToggle}))),Gt=b(()=>(p("6swnygxx"),import("./chunk-room-menu-6swnygxx.js")).then((i)=>({default:i.RoomMenu})));function Ln(i,d,m,f,l){ta(i,d).then((y)=>{if(y)Oe({...y,at:m,via:f,source:l})},()=>{return})}function qt(){let i=Re("(max-width: 719px)"),d=Re("(pointer: coarse)");return i||d}function er(i,d){let[m,f]=r(!1),[l,y]=r(!1),h=()=>{f(!0),y(!0)},v=m?e(T,{fallback:null,children:e($t,{open:l,onClose:()=>y(!1),council:i,...d?{go:d}:{}})}):null;return{ask:h,sheet:v}}function Ur(i){let{roomKey:d}=i,m=ze(),f=u((S)=>S.rooms[d]),l=u((S)=>S.connection==="open"),y=u((S)=>S.limits),h=ct(),v=qt(),w=f?.view,k=w?.members??[],E=dn(k),[V,oe]=Ye(d),[re,F]=r(),{focus:I,look:N}=Cn(d,k),{ask:G,sheet:D}=er(w,i.go),[q,U]=r(!1),[Z,ae]=r(!1),H=a(null),[J,ue]=r(),[W,le]=r(!1);o(()=>(m.focus(d),()=>m.focus(void 0)),[m,d]);let z=w?.displayName??d,de=ai(d,z,!1),Q=f?.mode,j=E.length>0||i.empty===void 0,O=j&&V==="scene",ee=w?.notes===!0,ce=ee&&W,R=ee&&J===d&&!ce;return n(g,{children:[e(Xe,{view:w,name:z,working:f?.typing===!0,room:i.room,onPick:G,onReset:O&&re?.kind==="webgl"?()=>N(null):void 0,mode:j?V:void 0,onMode:oe,menuButton:H,onMenu:()=>{ae(!0),U(!0)}}),h==="camelot"&&j&&!O?e("div",{className:"group-strip",onMouseDown:(S)=>S.preventDefault(),children:e(Vn,{members:k,groupRoom:d,variant:"compact",onSeat:(S)=>{let L=E.find((K)=>K.name===S);if(L)pr(d,L.displayName)},onSeatMenu:(S)=>{let L=E.find((K)=>K.name===S.id);if(L)Ln(L.key,d,S.at,S.via,S.source)}})}):null,!l?n("div",{className:"offline-banner",role:"status",children:[e("span",{className:"spinner","aria-hidden":"true"}),t("Reconnecting… messages wait here until it is back.")]}):null,e(Mr,{room:d,mode:Q&&(Q.yolo||Q.longRunning)?Q:void 0,approved:f?.autoApproved??0}),!j?e("div",{className:"table-frame",children:i.empty}):O?e(Nn,{roomKey:d,members:k,focus:I,onLook:N,blurAfterSend:v,onHandle:F,onSeatMenu:(S)=>{let L=E.find((K)=>K.name===S.id);if(L)Ln(L.key,d,S.at,S.via,S.source)}}):e("div",{className:"table-chat",children:e(Rr,{roomKey:d,name:z,composer:(S)=>w?.readOnly?null:e(Nt,{draftKey:d,mentionable:E,name:z,commands:de,onAddressed:le,...ee?{placeholder:R?t("Write an internal note…"):t("Ask AI…"),above:e(T,{fallback:null,children:e(Bt,{on:!R,label:t("@AI"),...ce?{locked:t("The message starts with @AI, so the knight answers.")}:{},onChange:(L)=>ue(L?void 0:d)})})}:{},limits:y,stoppable:Boolean(f?.stoppable),stopLabel:t("Stop the round"),blurAfterSend:v,onSend:(L,K,Y)=>{if(ee&&Y){let ie=kn(L);m.say(d,ie===""&&K.length===0?L:ie,K,"turn")}else m.say(d,L,K,R?"note":void 0);S(!0)},onStop:()=>m.send({type:"stop",room:d}),...i.incoming&&i.onIncomingTaken?{incoming:i.incoming,onIncomingTaken:i.onIncomingTaken}:{}},d)})}),D,Z?e(T,{fallback:null,children:e(Gt,{open:q,room:d,mode:Q,muted:w?.muted===!0,agent:void 0,group:w?.name,coordinator:w?.coordinator===!0,displayName:z,readOnly:w?.readOnly??!1,parent:void 0,onClose:()=>U(!1),onEditCouncil:G,onAskYolo:()=>{U(!1),ye({kind:"yolo",room:d,name:z,restoreFocus:()=>H.current})},onAskStartOver:()=>{U(!1),ye({kind:"start-over",room:d,name:z,restoreFocus:()=>H.current})}})}):null]})}
138
- export{Ji,Un,vi,ss,dn,xi,Vn,er,Ur};
@@ -1,2 +0,0 @@
1
- import{P}from"./chunk-index-st18ee4w.js";var e,n=0,{emit:t,use:r}=P();function bt(i){n+=1,e={...i,id:n},t()}function Ci(){if(!e)return;e=void 0,t()}var Ms=()=>r(()=>e);
2
- export{bt,Ci,Ms};
@@ -1,2 +0,0 @@
1
- import{_e,X,O,P}from"./chunk-index-st18ee4w.js";var{emit:i,use:s}=P(),o=!1,n;function pn(t){return t.cardOrder.flatMap((e)=>{let r=t.cards[e];return r&&!r.outcome?[{id:e,card:r}]:[]})}function Ra(){let t=pn(O.getState()),[e]=t;if(t.length===1&&e)or(e.id);else if(t.length>1)o=!0,i()}function rr(){if(!o)return;o=!1,i()}var Br=()=>s(()=>o);function or(t){let e=O.getState().cards[t];if(!e)return;o=!1,n=t,i(),X("room",e.room)}var Fr=()=>s(()=>n);function Gr(t){if(n!==t)return;n=void 0,i()}var _i=(t,e)=>[...t?.querySelectorAll("[data-card]")??[]].find((r)=>r.dataset.card===e),c=1600;function sr(t,e){let r=_i(t,e);if(!r)return!1;r.scrollIntoView?.({block:"center",behavior:_e()?"auto":"smooth"});let a=r.querySelector(".prompt")??r;return a.tabIndex=-1,a.focus({preventScroll:!0}),r.dataset.lit="",setTimeout(()=>delete r.dataset.lit,c),!0}
2
- export{pn,Ra,rr,Br,or,Fr,Gr,_i,sr};
@@ -1,2 +0,0 @@
1
- import{e}from"./chunk-index-st18ee4w.js";import{A}from"./chunk-index-04ndj4hg.js";function H(t){return e(A,{open:t.open,title:t.title,onClose:t.onClose,...t.size&&t.size!=="default"?{size:t.size}:{},children:t.children})}
2
- export{H};
@@ -1,2 +0,0 @@
1
- import{p,t}from"./chunk-index-st18ee4w.js";import{Eo}from"./chunk-index-1pgm1gy4.js";import{Zi,aa,la}from"./chunk-index-5rv9r0m6.js";function Qo(e){let n=Eo();if(!e)return n;let r=new Set([...e,...aa(e)]);return Object.fromEntries(Object.entries(n).filter(([s])=>r.has(s)))}var i=()=>(p("m38vtkan"),import("./chunk-bulk-actions-m38vtkan.js"));function Gi(e){let n=[];if(Object.keys(Qo(e)).length>0)n.push({id:"read-all",label:t("Mark all as read"),icon:"check",run:()=>{i().then((r)=>r.markAllRead(e))}});if(Zi(e).size>0)n.push({id:"clear-finished",label:t("Clear all finished threads"),icon:"trash",tone:"danger",run:()=>{i().then((r)=>r.clearAllFinished(e))}});return n.push(...Mo(e)),n}function Mo(e){if(la(e).size===0)return[];return[{id:"clear-helpers",label:t("Clear finished temp knights"),icon:"trash",tone:"danger",run:()=>{i().then((n)=>n.clearFinishedHelpers(e))}}]}
2
- export{Qo,Gi,Mo};
@@ -1,2 +0,0 @@
1
- import{O,h,l,f}from"./chunk-index-st18ee4w.js";import{Io,Xn}from"./chunk-index-20h87yfa.js";import{da}from"./chunk-index-c035z7b4.js";import{nt,ga,Oa,ya,ba,va}from"./chunk-index-xzey5tdw.js";import{Ut}from"./chunk-index-9q2psqsq.js";var n={createFolder:(e)=>h("folders",{method:"POST",body:JSON.stringify({name:e})}),changeFolder:(e,t)=>h(`folders/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}),deleteFolder:(e)=>h(`folders/${encodeURIComponent(e)}`,{method:"DELETE"}),muteFolder:(e,t)=>h(`folders/${encodeURIComponent(e)}/mute`,{method:"PUT",body:JSON.stringify({muted:t})}),placeRoom:(e,t,o)=>h(`rooms/${encodeURIComponent(e)}/folder`,{method:"PUT",body:JSON.stringify({folder:t,before:o})}),pinRoom:(e,t,o)=>h(`rooms/${encodeURIComponent(e)}/pin`,{method:"PUT",body:JSON.stringify({pinned:t,before:o})})};var a=(e)=>f(e,"danger"),d=(e)=>O.dispatch({type:"layout_loaded",pins:e.pins,folders:e.folders});async function i(e,t,o=a){let r=Io();try{d(e(r))}catch{}try{let s=await t();return d(s),s}catch(s){d(r),O.dispatch({type:"changed"}),o(l(s));return}}var ca=(e,t,o=null)=>i((r)=>va(r,e,t,o),()=>n.pinRoom(e,t,o)),ln=(e,t,o=null)=>i((r)=>ba(r,e,t,o),()=>n.placeRoom(e,t,o));function $r(e,t){let o=Ut(Xn(),e);if(o.kind==="rest")return;let r=nt(o.siblings,e,t);if(!r)return;return o.kind==="pinned"?ca(e,!0,r.before):ln(e,o.folder,r.before)}async function Lo(e,t=a){try{let o=await n.createFolder(e);return d(o),o.folders.at(-1)?.id}catch(o){t(l(o));return}}var Xo=(e,t,o)=>i((r)=>ga(r,e,t),()=>n.changeFolder(e,{name:t}),o),Ma=(e,t)=>i((o)=>Oa(o,e,t),()=>n.changeFolder(e,{before:t}));function Da(e,t){let o=nt(Io().folders.map((r)=>r.id),e,t);return o?Ma(e,o.before):void 0}var zo=(e,t)=>i((o)=>ya(o,e),()=>n.deleteFolder(e),t);async function Ua(e,t){try{let o=await n.muteFolder(e,t);for(let r of o.rooms)O.dispatch({type:"room_muted",room:r,muted:o.muted});return!0}catch(o){return a(l(o)),!1}}function Va(e,t){let o=da(Ut(Xn(),e),e,t);if(!o)return;if(o.kind==="pin")return ca(e,!0,o.before);if(o.kind==="folder")return ln(e,o.folder,o.before);return ln(e,null)}
2
- export{ca,ln,$r,Lo,Xo,Ma,Da,zo,Ua,Va};
@@ -1,2 +0,0 @@
1
- import{P}from"./chunk-index-st18ee4w.js";var e,{emit:o,use:n}=P();function Ue(i){e=i,o()}function Ri(){if(!e)return;e=void 0,o()}var Qs=()=>n(()=>e);
2
- export{Ue,Ri,Qs};
@@ -1,2 +0,0 @@
1
- import{t,Oe,sa,qi}from"./chunk-index-st18ee4w.js";import{Ue}from"./chunk-index-pmtgrd3x.js";import{Gi}from"./chunk-index-dafr7y87.js";function bi(e){let r=e.getBoundingClientRect(),o=sa();Oe({title:t("Rooms"),items:[...Gi(),{id:"new-folder",label:t("Add a folder"),icon:"plus",run:()=>Ue({kind:"new"})},{id:"arrange",label:o?t("Done"):t("Arrange"),icon:o?"check":"list",run:()=>qi(!o)}],at:{x:r.left,y:r.bottom},via:"key",source:e})}
2
- export{bi};
@@ -1,2 +0,0 @@
1
- import{P}from"./chunk-index-st18ee4w.js";var o=!1,{emit:e,use:i}=P(),Ni=()=>i(()=>o);function oo(t){if(o===t)return;o=t,e()}
2
- export{Ni,oo};
@@ -1,2 +0,0 @@
1
- import{at,u}from"./chunk-index-st18ee4w.js";import{On}from"./chunk-index-r1g24er0.js";var Yt=On,Wn=2,l="rt-table-council",i,s=!1,f=new Set;function c(){try{return globalThis.localStorage?.getItem(l)??void 0}catch{return}}function g(){if(!s)i=c(),s=!0;return i}function Kr(n){i=n,s=!0;try{globalThis.localStorage?.setItem(l,n)}catch{}for(let e of f)e()}var a=(n)=>(f.add(n),()=>f.delete(n)),xs=()=>at(a,g,()=>{return});function Mi(){return u((n)=>n.order.map((e)=>n.rooms[e]?.view).filter((e)=>e!==void 0&&e.kind==="group"),"councils")}function Ss(n,e,r){let t=(o)=>o===void 0?void 0:n.find((d)=>d.key===o||d.name===o);return t(r)??t(e)??n[0]}function ws(n){return[...n].filter((e)=>e.muted!==!0&&!e.helper).sort((e,r)=>Number(r.home)-Number(e.home)).slice(0,Yt).map((e)=>e.name)}function ks(n,e,r=Yt){if(n.includes(e))return n.filter((t)=>t!==e);return n.length>=r?[...n]:[...n,e]}function _s(n,e){return n.filter(e).slice(0,Yt)}function Ts(n,e,r){if(e!==void 0&&n.includes(e))return e;if(r!==void 0&&n.includes(r))return r;return n[0]??""}function Ps(n,e){let r=n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,28)||"council";if(!e.has(r))return r;for(let t=2;;t+=1){let o=`${r}-${t}`;if(!e.has(o))return o}}
2
- export{Yt,Wn,Kr,xs,Mi,Ss,ws,ks,_s,Ts,Ps};
@@ -1,2 +0,0 @@
1
- import{p}from"./chunk-index-st18ee4w.js";var e=()=>(p("6vm38ver"),import("./chunk-layout-actions-6vm38ver.js")),$i=(r)=>({mode:"room",key:r,item:(o)=>o.closest("[data-drop-item]"),root:(o)=>o.closest("[data-drop-root]"),onDrop:(o)=>{if(o.type==="room")e().then((t)=>t.dropRoom(r,o.drop))},open:(o)=>void (p("qb9a87bf"),import("./chunk-folds-qb9a87bf.js")).then((t)=>t.expandFolder(o))});
2
- export{$i};
@@ -1 +0,0 @@
1
- import"./chunk-index-ne8v2rxx.js";import"./chunk-index-6e9nmad3.js";import{fi}from"./chunk-index-ndhwytvz.js";var r=()=>fi();export{r as language};
@@ -1 +0,0 @@
1
- import"./chunk-index-ne8v2rxx.js";import"./chunk-index-6e9nmad3.js";import{ui}from"./chunk-index-awc03q99.js";import"./chunk-index-ndhwytvz.js";import"./chunk-index-vxn4zws9.js";import"./chunk-index-tqrjr37v.js";var t=()=>ui();export{t as language};
@@ -1 +0,0 @@
1
- import"./chunk-index-ne8v2rxx.js";import"./chunk-index-6e9nmad3.js";import{Vt}from"./chunk-index-vxn4zws9.js";import"./chunk-index-tqrjr37v.js";var t=()=>Vt({jsx:!0});export{t as language};
@@ -1 +0,0 @@
1
- import"./chunk-index-ne8v2rxx.js";import"./chunk-index-6e9nmad3.js";import{Vt}from"./chunk-index-vxn4zws9.js";import"./chunk-index-tqrjr37v.js";var r=()=>Vt({typescript:!0,jsx:!0});export{r as language};
@@ -1 +0,0 @@
1
- import{ca,ln,$r,Lo,Xo,Ma,Da,zo,Ua,Va}from"./chunk-index-fnmtztjx.js";import"./chunk-index-20h87yfa.js";import"./chunk-index-9q2psqsq.js";export{Lo as createFolder,zo as deleteFolder,Va as dropRoom,ln as moveRoom,Ua as muteFolder,Da as nudgeFolder,$r as nudgeRoom,ca as pinRoom,Ma as placeFolderBefore,Xo as renameFolderTo};
@@ -1 +0,0 @@
1
- import{Zn,Ca,Sa,Ea,Aa,$a,Na,wa,La,Xa}from"./chunk-index-g1t5rfbe.js";import"./chunk-index-0pghg70x.js";import"./chunk-index-dqt0s3cq.js";import"./chunk-index-w51vgeed.js";import"./chunk-index-2srjhjvg.js";import"./chunk-index-pmtgrd3x.js";import"./chunk-index-90tq8g68.js";import"./chunk-index-r1g24er0.js";import"./chunk-index-4ehy2d04.js";import"./chunk-index-dafr7y87.js";import"./chunk-index-pp00qvdb.js";import"./chunk-index-5rv9r0m6.js";import"./chunk-index-8d5r201w.js";import"./chunk-index-1pgm1gy4.js";import"./chunk-index-20h87yfa.js";import"./chunk-index-9q2psqsq.js";export{Sa as addMenu,Na as avatarMenu,wa as cardDetails,La as cardMenu,Zn as copyText,Xa as fileMenu,$a as messageMenu,Ea as openAddMenu,Ca as roomMenu,Aa as seatMenu};
@@ -1 +0,0 @@
1
- import{Vr}from"./chunk-index-2k2jvegd.js";export{Vr as ModeToggle};
@@ -1 +0,0 @@
1
- import{o,r,t,e,n,s,l,m,k,Q}from"./chunk-index-st18ee4w.js";import"./chunk-index-0q15ysrb.js";import{wi,cs,us}from"./chunk-index-smvd91qx.js";import"./chunk-index-435pq3gd.js";function g(a,u){let i=Math.max(0,Math.round((u-Date.parse(a))/60000));if(i<1)return t("just now");if(i<60)return t("{count} min ago",{count:i});let c=Math.round(i/60);if(c<24)return t("{count} h ago",{count:c});return t("{count} d ago",{count:Math.round(c/24)})}function f({notice:a}){let[u,i]=r(!1),[c,d]=r();return n("li",{className:"card stack notice","data-urgent":a.urgency==="high"||void 0,children:[n("div",{className:"card-head",children:[e("strong",{children:a.title}),a.urgency==="high"?e(Q,{tone:"warn",children:t("Urgent")}):null]}),a.body?e("p",{children:a.body}):null,e("p",{className:"meta",children:g(a.raisedAt,Date.now())}),c?e(m,{message:c}):null,n("div",{className:"actions",children:[a.open?e("a",{className:"button",href:us(a.open),children:t("Open")}):null,a.ackable?a.acked?n("span",{className:"meta",children:[e(s,{name:"check",size:14})," ",t("Handled")]}):e("button",{type:"button",className:"secondary",disabled:u,onClick:async()=>{i(!0),d(void 0);try{await cs(a.tag)}catch(p){d(l(p))}finally{i(!1)}},children:t("Handled")}):null]})]})}function M(){let{notices:a,known:u}=wi(),[,i]=r(0);return o(()=>{let c=setInterval(()=>i((d)=>d+1),60000);return()=>clearInterval(c)},[]),n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("Notices")})}),a.length===0?e(k,{children:u?t("Nothing needs you."):t("Loading…")}):e("ul",{className:"stack notices",children:a.map((c)=>e(f,{notice:c},c.tag))})]})}export{M as NoticesPage};
@@ -1 +0,0 @@
1
- import{o,C,a,r,t,e,n,s,x,X,u,Ve,he}from"./chunk-index-st18ee4w.js";import{A}from"./chunk-index-04ndj4hg.js";import{Ai}from"./chunk-index-6j75embz.js";function I(m){let[f,v]=r(""),[p,h]=r(0),g=a(null),b=u((l)=>l.order.flatMap((i)=>{let c=l.rooms[i]?.view;return c?[{key:i,name:c.displayName,agent:c.name,character:c.character,kind:c.kind}]:[]})),d=C(()=>[...b.map((i)=>({id:i.key,label:i.name,hint:i.kind==="agent"?t("Knight"):i.kind==="group"?t("Group"):t("Thread"),room:!0,...i.kind==="agent"?{avatar:{name:i.agent,character:i.character}}:{icon:"conversations"},go:()=>X("room",i.key)})),...m.pages.map((i)=>({id:i.pane,label:i.label,hint:t("Page"),icon:i.icon,go:()=>X(i.pane)}))].flatMap((i)=>{let c=Ai(f,i.label);return c===void 0?[]:[{target:i,score:c}]}).sort((i,c)=>c.score-i.score).map((i)=>i.target).slice(0,12),[b,m.pages,f]);o(()=>h(0),[f]),o(()=>{if(m.open)v(""),requestAnimationFrame(()=>g.current?.focus())},[m.open]);let y=(l)=>{if(!l)return;m.onClose(),l.go()};return e(A,{open:m.open,title:t("Find a room"),onClose:m.onClose,variant:"palette",children:n("div",{className:"palette-box",children:[n("div",{className:"palette-input",children:[e(s,{name:"search",size:18}),e("input",{ref:g,value:f,placeholder:t("Find a room or page"),"aria-label":t("Find a room or page"),role:"combobox","aria-expanded":"true","aria-controls":"palette-list","aria-activedescendant":d[p]?`palette-${p}`:void 0,onChange:(l)=>v(l.target.value),onKeyDown:(l)=>{if(Ve(l.nativeEvent))return;if(l.key==="ArrowDown")l.preventDefault(),h((i)=>Math.min(d.length-1,i+1));else if(l.key==="ArrowUp")l.preventDefault(),h((i)=>Math.max(0,i-1));else if(l.key==="Enter")l.preventDefault(),y(d[p])}}),e("kbd",{children:"Esc"})]}),n("ul",{className:"palette-list",children:[d.length===0?e("li",{className:"palette-empty",children:t("Nothing matches.")}):null,d.map((l,i)=>e("li",{"data-active":i===p||void 0,children:n("a",{href:l.room?x("room",l.id):x(l.id),onClick:(c)=>{c.preventDefault(),y(l)},onMouseMove:()=>h(i),"aria-current":i===p?"true":void 0,children:[l.avatar?e(he,{spec:l.avatar.character,name:l.avatar.name,size:28,live:!1}):e("span",{className:"palette-icon",children:e(s,{name:l.icon??"list",size:16})}),e("span",{className:"palette-label",children:l.label}),e("span",{className:"meta",children:l.hint})]})},l.id))]})]})})}export{I as Palette};
@@ -1 +0,0 @@
1
- import{jr,za}from"./chunk-index-dqt0s3cq.js";import"./chunk-index-pmtgrd3x.js";import"./chunk-index-dafr7y87.js";import"./chunk-index-5rv9r0m6.js";import"./chunk-index-8d5r201w.js";import"./chunk-index-1pgm1gy4.js";import"./chunk-index-20h87yfa.js";import"./chunk-index-9q2psqsq.js";export{za as folderMenu,jr as placementItems};
@@ -1 +0,0 @@
1
- import{Dr}from"./chunk-index-6y114be2.js";import"./chunk-index-a36h36x0.js";import"./chunk-index-1ysj78e4.js";import"./chunk-index-04ndj4hg.js";import"./chunk-index-pmtgrd3x.js";import"./chunk-index-pp00qvdb.js";import"./chunk-index-8d5r201w.js";import"./chunk-index-fnmtztjx.js";import"./chunk-index-20h87yfa.js";import"./chunk-index-9q2psqsq.js";export{Dr as RoomConfirmHost};
@@ -1 +0,0 @@
1
- import{t,e,s,u}from"./chunk-index-st18ee4w.js";import"./chunk-index-8d5r201w.js";import"./chunk-index-1pgm1gy4.js";import"./chunk-index-pmtgrd3x.js";import{bi}from"./chunk-index-qjqxs7c3.js";import"./chunk-index-dafr7y87.js";import"./chunk-index-5rv9r0m6.js";function r(){if(!u((o)=>o.listed))return null;return e("button",{type:"button",className:"header-button icon-button","aria-haspopup":"menu","aria-label":t("Folders and order"),onClick:(o)=>bi(o.currentTarget),children:e(s,{name:"more",size:18})})}export{r as default};
@@ -1 +0,0 @@
1
- import{dr,fr}from"./chunk-index-cx9f5fae.js";import"./chunk-index-8d5r201w.js";import"./chunk-index-1pgm1gy4.js";export{dr as FoldToggle,fr as default};
@@ -1 +0,0 @@
1
- import{C,a,r,t,F,g,e,n,s,x,X,Me,Xe,u,Ve,rn,Mn,et,Ae,It,$e,on}from"./chunk-index-st18ee4w.js";import{me}from"./chunk-index-1pgm1gy4.js";import{Ni}from"./chunk-index-r9yg1hpr.js";import"./chunk-index-8d5r201w.js";import{bn,dr}from"./chunk-index-cx9f5fae.js";import{Ai}from"./chunk-index-6j75embz.js";import{$i}from"./chunk-index-wk3w90nq.js";import{Jt}from"./chunk-index-m7er2xt6.js";import{xa}from"./chunk-index-9q2psqsq.js";bn();var L=(o)=>o==="pinned"||o==="rest"?Ae(o):o==="waiting"||o==="home"?void 0:o;function S(){let o=u((f)=>JSON.stringify(xa(f,(l)=>Xe(f,l),(l)=>Me(f,l)>0,!0).map((l)=>({id:l.id,...l.title===void 0?{}:{title:l.title},entries:l.keys.map((w)=>({key:w,name:f.rooms[w]?.view?.displayName??w,waiting:Me(f,w)>0}))})))),d=Ni(),p=a(o);if(!d)p.current=o;let h=p.current;return C(()=>JSON.parse(h),[h])}function K(o){let{key:d,name:p}=o.entry,h=u((c)=>c.rooms[d]),f=u((c)=>Me(c,d)),l=h?.view,w=et(l?.character),b=Jt(()=>rn(d,o.onLeave),o.liftable&&!l?.home?$i(d):void 0);if(!l)return null;return e("li",{...o.liftable&&!l.home?{"data-drop-item":"","data-key":d}:{},children:n("a",{className:"switcher-row",...b,href:x("room",d),"aria-current":d===o.current?"page":void 0,style:w,onClick:(c)=>{if(c.button!==0||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey)return;c.preventDefault(),o.onPick(d)},children:[n("span",{className:"switcher-picture",children:[e($e,{view:l,size:40}),f?e("span",{className:"switcher-dot","aria-hidden":"true"}):null]}),n("span",{className:"switcher-name",children:[e("strong",{children:p}),h?.typing?n("span",{className:"switcher-working",children:[n("span",{className:"typing","aria-hidden":"true",children:[e("i",{}),e("i",{}),e("i",{})]}),t("Working")]}):null]}),e(on,{room:d}),f?e("span",{className:"badge badge-warn",children:F(f,"{count} card waiting","{count} cards waiting")}):null,l.muted?n("span",{className:"switcher-mode","data-mode":"muted",title:t("Notifications are off"),children:[e(s,{name:"bell-off",size:14}),e("span",{className:"visually-hidden",children:t("Notifications are off")})]}):null,h?.mode.yolo?n("span",{className:"switcher-mode","data-mode":"yolo",title:t("Yolo"),children:[e(s,{name:"bolt",size:14}),e("span",{className:"visually-hidden",children:t("Yolo")})]}):null,h?.mode.longRunning?n("span",{className:"switcher-mode","data-mode":"long",title:t("Long-running"),children:[e(s,{name:"timer",size:14}),e("span",{className:"visually-hidden",children:t("Long-running")})]}):null]})})}function _(o){let[d,p]=r(""),h=S(),f=It(),l=me((i)=>i.unread),w=h.map((i)=>({...i,entries:i.entries.filter((m)=>Ai(d,m.name)!==void 0)})).filter((i)=>i.entries.length>0||d===""),b=w.filter((i)=>i.entries.length>0).length>1,c=w.map((i)=>{let m=L(i.id),y=b&&d===""&&m!==void 0&&i.entries.length>0&&f.has(m);return{...i,fold:m,folded:y,total:i.entries.length,entries:y?i.entries.filter((N)=>N.key===o.current||N.waiting||(l[N.key]??0)>0):i.entries}}),k=(i)=>o.close(i===o.current?void 0:()=>X("room",i)),z=h.some((i)=>i.id!=="waiting"&&i.id!=="home"&&i.id!=="rest"&&(i.id!=="pinned"||i.entries.length>0))?t("Ungrouped"):t("Rooms"),v=(i)=>i.id==="home"?t("Home"):i.id==="pinned"?t("Pinned"):i.id==="rest"?z:i.title??t("Rooms");return n(g,{children:[n("div",{className:"switcher-search",children:[e(s,{name:"search",size:16}),e("input",{type:"search",value:d,placeholder:t("Find a room"),"aria-label":t("Find a room"),enterKeyHint:"go",autoComplete:"off",onChange:(i)=>p(i.target.value),onKeyDown:(i)=>{let m=c.flatMap((y)=>y.entries)[0];if(i.key==="Enter"&&m&&!Ve(i.nativeEvent))k(m.key)}}),e("button",{type:"button",className:"icon-button switcher-add","aria-label":t("Add"),"aria-haspopup":"menu",onClick:(i)=>Mn(i.currentTarget,o.close),children:e(s,{name:"plus"})})]}),e("div",{className:"switcher-scroll","data-drop-root":"",children:c.map((i)=>{let m=i.id==="waiting",y=i.id==="pinned"?"pinned":i.id==="rest"?"rest":m||i.id==="home"?void 0:"folder";return n("section",{"aria-label":m?t("Waiting for you"):v(i),...i.total===0?{"data-empty":""}:{},...y?{"data-drop-zone":y,"data-zone-id":i.id,...y==="folder"?{"data-folder":i.id}:{}}:{},children:[m?e("h2",{className:"switcher-heading","data-waiting":"",children:t("Waiting for you")}):b||i.total===0?e("h2",{className:"switcher-heading",children:i.fold&&i.total>0?e(dr,{id:i.fold,name:v(i),open:!i.folded,controls:`switcher-body-${i.id}`,count:i.folded?i.total:void 0}):v(i)}):null,e("ul",{className:"switcher-list",id:`switcher-body-${i.id}`,children:i.entries.map((N)=>e(K,{entry:N,current:o.current,onPick:k,onLeave:o.close,liftable:!m&&i.id!=="home"},N.key))})]},i.id)})})]})}export{_ as SwitcherList};
@@ -1 +0,0 @@
1
- import{Qe,o,r,t,e,n,s,X,u,lt}from"./chunk-index-st18ee4w.js";import{Ji,Un,vi,ss,dn,xi,Vn,er,Ur}from"./chunk-index-90f1mkn7.js";import"./chunk-index-90tq8g68.js";import"./chunk-index-pcb3mskd.js";import"./chunk-index-4e5nhm4v.js";import"./chunk-index-1pgm1gy4.js";import"./chunk-index-r1g24er0.js";import"./chunk-index-04ndj4hg.js";import{xs,Mi,Ss}from"./chunk-index-w51vgeed.js";Ji();function y(){return ss((Qe(lt)?.kinds??[]).map((a)=>a.kind)),null}function v({focus:a}){let[l,p]=r(),m=dn(void 0),i=Un(),b=i.loaded&&m.length===0;return o(()=>{if(a&&i.loaded)X("table",void 0,{replace:!0})},[a,i.loaded]),n("div",{className:"table-page",children:[n("header",{className:"page-head",children:[e("h1",{children:t("Round table")}),n("div",{className:"table-tools",children:[l?.kind==="webgl"?e("button",{type:"button",className:"icon-button","aria-label":t("Reset view"),title:t("Reset view"),onClick:()=>l.focus(null),children:e(s,{name:"reset"})}):null,e("button",{type:"button",className:"secondary",onClick:()=>X("rooms"),children:t("All rooms")})]})]}),n("div",{className:"table-frame",children:[b?n("div",{className:"table-empty-state",children:[e("strong",{children:t("The table is empty")}),e("p",{className:"meta",children:t("There are no rooms to seat yet.")})]}):e(Vn,{onHandle:p,onSeat:(f)=>{let c=m.find((d)=>d.name===f);if(c)X("room",c.key)},onFocus:(f)=>{let c=m.find((d)=>d.name===f);if(c)X("room",c.key)}}),e(y,{})]})]})}function N({named:a}){let l=Mi(),p=xs(),m=u((g)=>g.listed),i=Ss(l,p,a),b=xi(),{ask:f,sheet:c}=er(i),d=a===void 0||l.some(k(a));o(()=>{if(a!==void 0&&m&&!d)X("table",void 0,{replace:!0})},[a,m,d]);let h=n("div",{className:"table-empty-state",children:[e("strong",{children:i?t("The council is empty"):t("No council yet")}),e("p",{className:"meta",children:i?t("Every member of this council is gone. Edit who sits."):t("A council is a group of up to {max} knights who answer in turn.",{max:8})}),b.length>0?e("button",{type:"button",onClick:f,children:i?t("Edit this council"):t("Pick who sits")}):null]});if(i)return n("section",{className:"room council-page",children:[e(Ur,{roomKey:i.key,empty:h}),c]});return n("div",{className:"table-page",children:[e("header",{className:"page-head",children:e("h1",{children:t("Round table")})}),e("div",{className:"table-frame",children:h}),c]})}var k=(a)=>(l)=>l.key===a||l.name===a;function F({focus:a}){return vi()?e(v,{focus:a}):e(N,{named:a})}export{F as TablePage};
@@ -1 +0,0 @@
1
- import{_o,To,Po}from"./chunk-index-jzkr4hc2.js";import"./chunk-index-5rv9r0m6.js";export{To as clearAcross,Po as clearFinished,_o as dismissThread};
@@ -1 +0,0 @@
1
- import{pn,Ra,rr,Br,or,Fr,Gr,_i,sr}from"./chunk-index-92p9wmrg.js";export{_i as cardSlot,rr as closeWaitingList,or as jumpToCard,Ra as openWaiting,sr as showCard,Gr as targetShown,Fr as useTarget,Br as useWaitingList,pn as waitingList};
@@ -1 +0,0 @@
1
- import{qn,qr}from"./chunk-index-pcb3mskd.js";export{qn as currentQuery,qr as followUrl};