hermes-web-ui 0.4.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/README.md +1 -0
  2. package/bin/hermes-web-ui.mjs +2 -2
  3. package/dist/client/assets/{Add-C8hZRo4r.js → Add-NBp7zkwe.js} +1 -1
  4. package/dist/client/assets/{Button-Bj8nsuAL.js → Button-BJ3HnUMM.js} +1 -1
  5. package/dist/client/assets/{ChannelsView-COTX8get.js → ChannelsView-B-0f3nH3.js} +1 -1
  6. package/dist/client/assets/ChatView-Co0hFsxG.css +1 -0
  7. package/dist/client/assets/ChatView-DyD_eBjo.js +5 -0
  8. package/dist/client/assets/{Close-DmB_rQUX.js → Close-DiA5GrM6.js} +1 -1
  9. package/dist/client/assets/{Dropdown-CvRTj4E1.js → Dropdown-CMzZdYV2.js} +1 -1
  10. package/dist/client/assets/{Empty-CwjDWT-w.js → Empty-xIQdZMjG.js} +1 -1
  11. package/dist/client/assets/{FilesView-qgNzpVmP.js → FilesView-DDMLKq8y.js} +3 -3
  12. package/dist/client/assets/{FormItem-BkgsBkHs.js → FormItem-q6UvWtxc.js} +1 -1
  13. package/dist/client/assets/{GatewaysView-ClDzyIb8.js → GatewaysView-Bh0XACit.js} +1 -1
  14. package/dist/client/assets/GroupChatView-CWPvt2Rk.js +43 -0
  15. package/dist/client/assets/{Input-D2WbyNa2.js → Input-2gBFym15.js} +1 -1
  16. package/dist/client/assets/{InputNumber-9MJKuf2n.js → InputNumber-_enQEStY.js} +1 -1
  17. package/dist/client/assets/{JobsView-BHQngJCd.js → JobsView-k9MQ-9Ek.js} +2 -2
  18. package/dist/client/assets/{LoginView-DBm1gDr4.js → LoginView-DJb50vGo.js} +1 -1
  19. package/dist/client/assets/{LogsView-DraHCKw1.js → LogsView-BZfMiCny.js} +1 -1
  20. package/dist/client/assets/{MarkdownRenderer-CA0C409H.js → MarkdownRenderer-DxUwWPe4.js} +3 -3
  21. package/dist/client/assets/{MemoryView-67x6Lwwi.js → MemoryView-BwZSbx0s.js} +1 -1
  22. package/dist/client/assets/{Modal-4KVEpNAp.js → Modal-_Mv0_OD6.js} +1 -1
  23. package/dist/client/assets/ModelsView-bqcwdeAZ.js +83 -0
  24. package/dist/client/assets/{ModelsView-ocu_HZQH.css → ModelsView-nT_XHgUE.css} +1 -1
  25. package/dist/client/assets/{Popconfirm-xTR4QKnq.js → Popconfirm-B5f0yyvw.js} +1 -1
  26. package/dist/client/assets/{Popover-B8YiUf_0.js → Popover-Ctici93J.js} +1 -1
  27. package/dist/client/assets/{ProfilesView-hGFDnegp.js → ProfilesView-OWYoaF8u.js} +1 -1
  28. package/dist/client/assets/{Select-xzHVvC6Z.js → Select-CTSlWykV.js} +1 -1
  29. package/dist/client/assets/{SettingRow-EuOLr_YI.js → SettingRow-RBjlgsbB.js} +1 -1
  30. package/dist/client/assets/{SettingsView-BPjnag9N.js → SettingsView-B441ZDnG.js} +1 -1
  31. package/dist/client/assets/{SkillsView-CVXWAszV.js → SkillsView-Be-qNAG_.js} +1 -1
  32. package/dist/client/assets/{Space-8n66xWpp.js → Space-Du4MQqfe.js} +1 -1
  33. package/dist/client/assets/{Spin-DyvsAxKU.js → Spin-CmdboY2D.js} +1 -1
  34. package/dist/client/assets/{Suffix-DZj4ifc6.js → Suffix-CsTOHUZV.js} +1 -1
  35. package/dist/client/assets/{Switch-BJ8kni-Q.js → Switch-xNCZy7xs.js} +1 -1
  36. package/dist/client/assets/{Tag-C3sN25IX.js → Tag-1ZyNDKDi.js} +1 -1
  37. package/dist/client/assets/{TerminalView-DN5HBS9s.js → TerminalView-BOP9Gr11.js} +1 -1
  38. package/dist/client/assets/{Tooltip-pyGenUkm.js → Tooltip-reeEhHZc.js} +1 -1
  39. package/dist/client/assets/{Upload-BIiJ4aW2.js → Upload-DOsQN79F.js} +1 -1
  40. package/dist/client/assets/{UsageView-wje1C97e.css → UsageView-AhDioZJK.css} +1 -1
  41. package/dist/client/assets/UsageView-BK7-4DcO.js +1 -0
  42. package/dist/client/assets/{Warning-TmJR-AQg.js → Warning-Hekjemsg.js} +1 -1
  43. package/dist/client/assets/{_plugin-vue_export-helper-zzZTsdbA.js → _plugin-vue_export-helper-Cnt2qsYI.js} +1 -1
  44. package/dist/client/assets/{app--akxMY9g.js → app-Da8PL5EA.js} +1 -1
  45. package/dist/client/assets/app-DtvjZy2l.js +1 -0
  46. package/dist/client/assets/{arc-DqfZGLOr.js → arc-B_QA72Mr.js} +1 -1
  47. package/dist/client/assets/{architecture-YZFGNWBL-CsNjLfXM.js → architecture-YZFGNWBL-D-52kuRA.js} +1 -1
  48. package/dist/client/assets/{architectureDiagram-Q4EWVU46-Cz1XhUs1.js → architectureDiagram-Q4EWVU46-D6Pan1RT.js} +1 -1
  49. package/dist/client/assets/{auth-JXjZMhaG.js → auth-CxZBcU7_.js} +1 -1
  50. package/dist/client/assets/{blockDiagram-DXYQGD6D-DUO5mYSv.js → blockDiagram-DXYQGD6D-DMW6EZqC.js} +1 -1
  51. package/dist/client/assets/{browser-CgcDgZRQ.js → browser--sIIsc3s.js} +1 -1
  52. package/dist/client/assets/{c4Diagram-AHTNJAMY-eglQN0Q-.js → c4Diagram-AHTNJAMY-B5bvIgOX.js} +1 -1
  53. package/dist/client/assets/channel-hRqh0Rqn.js +1 -0
  54. package/dist/client/assets/chat-CmbySGMw.js +6 -0
  55. package/dist/client/assets/{chunk-336JU56O-kwxU2ZD-.js → chunk-336JU56O-DH9Wr4Ss.js} +2 -2
  56. package/dist/client/assets/chunk-426QAEUC-Dv7zkrDW.js +1 -0
  57. package/dist/client/assets/{chunk-4BX2VUAB-g2BIYonS.js → chunk-4BX2VUAB-DMFmP0Qa.js} +1 -1
  58. package/dist/client/assets/{chunk-4TB4RGXK-2K5I7n0m.js → chunk-4TB4RGXK-B-09yswz.js} +1 -1
  59. package/dist/client/assets/{chunk-55IACEB6-DPcrMvG-.js → chunk-55IACEB6-CUx7_QcI.js} +1 -1
  60. package/dist/client/assets/{chunk-5FUZZQ4R-BIY3ds_h.js → chunk-5FUZZQ4R-D20Mpa_U.js} +1 -1
  61. package/dist/client/assets/{chunk-5PVQY5BW-rGtM9ZTZ.js → chunk-5PVQY5BW-NrwueLw7.js} +1 -1
  62. package/dist/client/assets/{chunk-BSJP7CBP-V7yjqGUN.js → chunk-BSJP7CBP--4-C-Xgb.js} +1 -1
  63. package/dist/client/assets/{chunk-EDXVE4YY-MXaXmsZ0.js → chunk-EDXVE4YY-DmpuOiv_.js} +1 -1
  64. package/dist/client/assets/{chunk-ENJZ2VHE-CRvSVpAS.js → chunk-ENJZ2VHE-CFgxknk-.js} +1 -1
  65. package/dist/client/assets/{chunk-FMBD7UC4-DLFWOx-u.js → chunk-FMBD7UC4-CH_XhKjn.js} +1 -1
  66. package/dist/client/assets/{chunk-ICPOFSXX-CaLMKYec.js → chunk-ICPOFSXX-BblcAFkE.js} +2 -2
  67. package/dist/client/assets/{chunk-OYMX7WX6-DRbZe1J8.js → chunk-OYMX7WX6-Diu2mmFk.js} +1 -1
  68. package/dist/client/assets/chunk-QZHKN3VN-DEXroT1i.js +1 -0
  69. package/dist/client/assets/{chunk-U2HBQHQK-BsJRilA8.js → chunk-U2HBQHQK-Dez3blXb.js} +1 -1
  70. package/dist/client/assets/{chunk-X2U36JSP-DLoRJ4r_.js → chunk-X2U36JSP-Cwrx7qbQ.js} +1 -1
  71. package/dist/client/assets/{chunk-XPW4576I-1lZmXq9e.js → chunk-XPW4576I-BqBbOPuO.js} +1 -1
  72. package/dist/client/assets/{chunk-YZCP3GAM-BN20fYpt.js → chunk-YZCP3GAM-mFEWwdhn.js} +1 -1
  73. package/dist/client/assets/{chunk-ZZ45TVLE-B-1T20-L.js → chunk-ZZ45TVLE-Z6AmsZ3R.js} +1 -1
  74. package/dist/client/assets/classDiagram-6PBFFD2Q-D4suUTWb.js +1 -0
  75. package/dist/client/assets/classDiagram-v2-HSJHXN6E-Cmo30rZj.js +1 -0
  76. package/dist/client/assets/composables-CTKELLKo.js +1 -0
  77. package/dist/client/assets/{cose-bilkent-S5V4N54A-C2KZGTcb.js → cose-bilkent-S5V4N54A-5i312CmE.js} +1 -1
  78. package/dist/client/assets/{cssMode-P_y_y4Da.js → cssMode-CY-yDmJL.js} +1 -1
  79. package/dist/client/assets/{dagre-KV5264BT-k2cDDLRb.js → dagre-KV5264BT-BfndAiBQ.js} +1 -1
  80. package/dist/client/assets/{diagram-5BDNPKRD-Fw_M4Zae.js → diagram-5BDNPKRD-DRgY7ANn.js} +1 -1
  81. package/dist/client/assets/{diagram-G4DWMVQ6-Dm-QgixF.js → diagram-G4DWMVQ6-DtGJFmJS.js} +1 -1
  82. package/dist/client/assets/{diagram-MMDJMWI5-CLmCSDg3.js → diagram-MMDJMWI5-C6cRYSW3.js} +1 -1
  83. package/dist/client/assets/{diagram-TYMM5635-BuqcTa-m.js → diagram-TYMM5635-C3Ij-FSp.js} +1 -1
  84. package/dist/client/assets/{erDiagram-SMLLAGMA-Bu5SJGPj.js → erDiagram-SMLLAGMA-Yv5VZw-8.js} +1 -1
  85. package/dist/client/assets/esm-SBMPj5IJ.js +1 -0
  86. package/dist/client/assets/{fade-in-height-expand.cssr-BaP1-3vX.js → fade-in-height-expand.cssr-Bvuzq2Hq.js} +1 -1
  87. package/dist/client/assets/{fade-in.cssr-H0zbZKHk.js → fade-in.cssr-C8lLVqHV.js} +1 -1
  88. package/dist/client/assets/{flowDiagram-DWJPFMVM-DGwOIrxY.js → flowDiagram-DWJPFMVM-lAEUXerO.js} +1 -1
  89. package/dist/client/assets/{freemarker2-LuzvGPeW.js → freemarker2-CbfgdMk_.js} +1 -1
  90. package/dist/client/assets/{ganttDiagram-T4ZO3ILL-CJs-NRNk.js → ganttDiagram-T4ZO3ILL-BkVAGvqv.js} +1 -1
  91. package/dist/client/assets/{gitGraph-7Q5UKJZL-BIRAWLK8.js → gitGraph-7Q5UKJZL-BoC8zKxM.js} +1 -1
  92. package/dist/client/assets/{gitGraphDiagram-UUTBAWPF-CYxVGXUM.js → gitGraphDiagram-UUTBAWPF-Ds7TfgEH.js} +1 -1
  93. package/dist/client/assets/{handlebars-CrZ0AXGC.js → handlebars-DzEt-fkM.js} +1 -1
  94. package/dist/client/assets/{html-BQK8LM7t.js → html-DQnk5ILb.js} +1 -1
  95. package/dist/client/assets/{htmlMode-BsR9CdZG.js → htmlMode-CI_im7na.js} +1 -1
  96. package/dist/client/assets/index-Bz3pJNFR.css +1 -0
  97. package/dist/client/assets/index-C9KCXSkX.js +284 -0
  98. package/dist/client/assets/{info-OMHHGYJF-CUD1dZiH.js → info-OMHHGYJF-03GEgc5z.js} +1 -1
  99. package/dist/client/assets/{infoDiagram-42DDH7IO-DaNlR9BL.js → infoDiagram-42DDH7IO-BaBTUdo9.js} +1 -1
  100. package/dist/client/assets/{ishikawaDiagram-UXIWVN3A-CrW64xtN.js → ishikawaDiagram-UXIWVN3A-BgA8mzr2.js} +1 -1
  101. package/dist/client/assets/{javascript-CjavWL4d.js → javascript-ChItHuIK.js} +1 -1
  102. package/dist/client/assets/{jobs-h8qi6hxU.js → jobs-B7ItUxJJ.js} +1 -1
  103. package/dist/client/assets/jobs-BkdMASP0.js +1 -0
  104. package/dist/client/assets/{journeyDiagram-VCZTEJTY-oaKvtJM3.js → journeyDiagram-VCZTEJTY-C6gBaR-B.js} +1 -1
  105. package/dist/client/assets/{jsonMode-CSziISIf.js → jsonMode-Cw0THbpv.js} +1 -1
  106. package/dist/client/assets/{kanban-definition-6JOO6SKY-DBV8Kc7p.js → kanban-definition-6JOO6SKY-YI9h2PB3.js} +1 -1
  107. package/dist/client/assets/{light-Dm_hBo8H.js → light-BobLY7UT.js} +1 -1
  108. package/dist/client/assets/{light-CXrOk0Ko.js → light-CKjHul3b.js} +1 -1
  109. package/dist/client/assets/{light-yyXrL1N5.js → light-Cpcmi3R_.js} +1 -1
  110. package/dist/client/assets/{light-DTKgdbNd.js → light-Cr_T-yRY.js} +1 -1
  111. package/dist/client/assets/{light-CEidoi9-.js → light-CtgDyYn0.js} +1 -1
  112. package/dist/client/assets/{light-31kEnnBQ.js → light-DLPNkM26.js} +1 -1
  113. package/dist/client/assets/{light-CVZmY5j62.js → light-WEeVZ3KJ2.js} +1 -1
  114. package/dist/client/assets/{light-Dj4Gku77.js → light-uEv5wn5t.js} +1 -1
  115. package/dist/client/assets/{light-CyzjYrHH.js → light-xtHEVw3a.js} +1 -1
  116. package/dist/client/assets/{line-Dtj9Tk0X.js → line-MlEGvqMD.js} +1 -1
  117. package/dist/client/assets/{linear-DKysIJBa.js → linear-DcHOIufU.js} +1 -1
  118. package/dist/client/assets/{liquid-KsD1bq8r.js → liquid-xYai9Owz.js} +1 -1
  119. package/dist/client/assets/{lspLanguageFeatures-CBoYch9o.js → lspLanguageFeatures-CfHlhHow.js} +1 -1
  120. package/dist/client/assets/{mdx-BTDOzzb5.js → mdx-BGsgThlW.js} +1 -1
  121. package/dist/client/assets/{mermaid-parser.core-BLusGe6a.js → mermaid-parser.core-BmsmnIMg.js} +2 -2
  122. package/dist/client/assets/{mermaid.core-Dl-EXYeZ.js → mermaid.core-DC3ToXZ3.js} +3 -3
  123. package/dist/client/assets/{mindmap-definition-QFDTVHPH-DVtJM00n.js → mindmap-definition-QFDTVHPH-D5xbBsNv.js} +1 -1
  124. package/dist/client/assets/{models-CX7H_9LS.js → models-D0Ao0yf_.js} +1 -1
  125. package/dist/client/assets/{monaco.contribution-C3C_gtrm.js → monaco.contribution-CzMlvpbv.js} +2 -2
  126. package/dist/client/assets/{ordinal-DjCVTcZO.js → ordinal-CClrfpa4.js} +1 -1
  127. package/dist/client/assets/{packet-4T2RLAQJ-CyyaYJgI.js → packet-4T2RLAQJ-BCUi55kT.js} +1 -1
  128. package/dist/client/assets/{pie-ZZUOXDRM-C-sDskhS.js → pie-ZZUOXDRM-OUrE1cUq.js} +1 -1
  129. package/dist/client/assets/{pieDiagram-DEJITSTG-DCMLKtW1.js → pieDiagram-DEJITSTG-CnNqN8mJ.js} +1 -1
  130. package/dist/client/assets/{pinia-81mgPlhX.js → pinia-EkrAWLNP.js} +1 -1
  131. package/dist/client/assets/{profiles-J33FxWil.js → profiles-CJ2fU462.js} +1 -1
  132. package/dist/client/assets/{python-Ck10V9ON.js → python-D6PBIMMB.js} +1 -1
  133. package/dist/client/assets/{quadrantDiagram-34T5L4WZ-zFvTD1EI.js → quadrantDiagram-34T5L4WZ-Bgtawn4B.js} +1 -1
  134. package/dist/client/assets/{radar-PYXPWWZC-BMD-qIuD.js → radar-PYXPWWZC-BGmv7gF2.js} +1 -1
  135. package/dist/client/assets/{razor-B7mQrtk9.js → razor-CcsXdsw-.js} +1 -1
  136. package/dist/client/assets/{requirementDiagram-MS252O5E-CI0xWOqY.js → requirementDiagram-MS252O5E-vHIoU4AY.js} +1 -1
  137. package/dist/client/assets/{router-5cFNHmOU.js → router-BAz5Psee.js} +2 -2
  138. package/dist/client/assets/{sankeyDiagram-XADWPNL6-F4lzKVNU.js → sankeyDiagram-XADWPNL6-GObw6UvO.js} +1 -1
  139. package/dist/client/assets/{sequenceDiagram-FGHM5R23-zhEbbECM.js → sequenceDiagram-FGHM5R23-DeMaRASK.js} +1 -1
  140. package/dist/client/assets/{session-browser-prefs-DtEmg4RO.js → session-browser-prefs-Bl9Dh8nf.js} +1 -1
  141. package/dist/client/assets/{sessions-C3xAbbC1.js → sessions-CDFKn5Js.js} +1 -1
  142. package/dist/client/assets/{settings-jFC4iknu.js → settings-GP8C58vV.js} +1 -1
  143. package/dist/client/assets/{skills-o-vK-nl2.js → skills-BNyPbZ32.js} +1 -1
  144. package/dist/client/assets/{stateDiagram-FHFEXIEX-C5ORRTcX.js → stateDiagram-FHFEXIEX-EuzCaEUr.js} +1 -1
  145. package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-Bn94MzFD.js +1 -0
  146. package/dist/client/assets/{timeline-definition-GMOUNBTQ-hZj7oDH3.js → timeline-definition-GMOUNBTQ-Ch3Km14f.js} +1 -1
  147. package/dist/client/assets/treeView-SZITEDCU-C59jxPUA.js +1 -0
  148. package/dist/client/assets/treemap-W4RFUUIX-CzIBhcZ8.js +1 -0
  149. package/dist/client/assets/{tsMode-CEEMdv5r.js → tsMode-CoEHhUv9.js} +1 -1
  150. package/dist/client/assets/{typescript-BlGfObSb.js → typescript-C80ydomU.js} +1 -1
  151. package/dist/client/assets/{use-message-DONOe4sg.js → use-message-C08DfKEA.js} +1 -1
  152. package/dist/client/assets/{useTheme-EblRt1pk.js → useTheme-D_5BKl7R.js} +1 -1
  153. package/dist/client/assets/{vennDiagram-DHZGUBPP-GzUW5DMz.js → vennDiagram-DHZGUBPP-FY0SgbDK.js} +1 -1
  154. package/dist/client/assets/wardley-RL74JXVD-BkiSGw2z.js +1 -0
  155. package/dist/client/assets/{wardleyDiagram-NUSXRM2D-klp5jAvX.js → wardleyDiagram-NUSXRM2D-FEbnJf0w.js} +1 -1
  156. package/dist/client/assets/{workers-FV5bpWYi.js → workers-DeSTTsJw.js} +1 -1
  157. package/dist/client/assets/{xml-BEp4r-37.js → xml-D2liBTze.js} +1 -1
  158. package/dist/client/assets/{xychartDiagram-5P7HB3ND-Be9c6_1r.js → xychartDiagram-5P7HB3ND-Cd990XEo.js} +1 -1
  159. package/dist/client/assets/{yaml-D2QZsYK0.js → yaml-5U9keYZX.js} +1 -1
  160. package/dist/client/index.html +35 -34
  161. package/dist/server/index.js +472 -203
  162. package/dist/server/index.js.map +4 -4
  163. package/package.json +4 -3
  164. package/dist/client/assets/ChatView-BUAbTb1a.js +0 -5
  165. package/dist/client/assets/ChatView-COA69YqR.css +0 -1
  166. package/dist/client/assets/GroupChatView-Daw9UoTE.js +0 -43
  167. package/dist/client/assets/ModelsView-DpCxoeO9.js +0 -83
  168. package/dist/client/assets/UsageView-DYpL2QXn.js +0 -1
  169. package/dist/client/assets/app-Bg4IqKmg.js +0 -1
  170. package/dist/client/assets/channel-C1rjLaSS.js +0 -1
  171. package/dist/client/assets/chat-DIKRsXyC.js +0 -6
  172. package/dist/client/assets/chunk-426QAEUC-C8A7bMD6.js +0 -1
  173. package/dist/client/assets/chunk-QZHKN3VN-BwOAboxw.js +0 -1
  174. package/dist/client/assets/classDiagram-6PBFFD2Q--nlfFs7y.js +0 -1
  175. package/dist/client/assets/classDiagram-v2-HSJHXN6E-DmKMuTon.js +0 -1
  176. package/dist/client/assets/composables-4rLFPfpy.js +0 -1
  177. package/dist/client/assets/index-ASJVIDQQ.js +0 -284
  178. package/dist/client/assets/index-TD-ctIGy.css +0 -1
  179. package/dist/client/assets/jobs-BZNe_gT7.js +0 -1
  180. package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-D1mWZ0iC.js +0 -1
  181. package/dist/client/assets/treeView-SZITEDCU-BD918bGz.js +0 -1
  182. package/dist/client/assets/treemap-W4RFUUIX-BN1ej5OA.js +0 -1
  183. package/dist/client/assets/wardley-RL74JXVD-C_AMhMaJ.js +0 -1
  184. /package/dist/client/assets/{abap-BGRabyim.js → abap-B_c7yTLX.js} +0 -0
  185. /package/dist/client/assets/{apex-Bk6akTsC.js → apex-Cc5RRYs5.js} +0 -0
  186. /package/dist/client/assets/{array-5BuccHw8.js → array-DK8kTPOe.js} +0 -0
  187. /package/dist/client/assets/{azcli-B2ZVS0op.js → azcli-CUrRJy6k.js} +0 -0
  188. /package/dist/client/assets/{bat-CKlz7WdE.js → bat-aM9bdW0D.js} +0 -0
  189. /package/dist/client/assets/{bicep-D2tG5Sp-.js → bicep-DwlRBebW.js} +0 -0
  190. /package/dist/client/assets/{cameligo-B2rTfNM5.js → cameligo-CM5p91i6.js} +0 -0
  191. /package/dist/client/assets/{chunk-2KRD3SAO-FCDzavuz.js → chunk-2KRD3SAO-D3QcvHij.js} +0 -0
  192. /package/dist/client/assets/{chunk-67CJDMHE-DXqp1_8a.js → chunk-67CJDMHE-o1Q0g0YT.js} +0 -0
  193. /package/dist/client/assets/{chunk-7N4EOEYR-Bot6bgzF.js → chunk-7N4EOEYR-DxkNiqWH.js} +0 -0
  194. /package/dist/client/assets/{chunk-AA7GKIK3-BWlcBckK.js → chunk-AA7GKIK3-qZgC94Ak.js} +0 -0
  195. /package/dist/client/assets/{chunk-CIAEETIT-T_S8sYEA.js → chunk-CIAEETIT-jVF7oSnj.js} +0 -0
  196. /package/dist/client/assets/{chunk-FOC6F5B3-BwKMSJK-.js → chunk-FOC6F5B3-CnBjn521.js} +0 -0
  197. /package/dist/client/assets/{chunk-KGLVRYIC-CfgTq8me.js → chunk-KGLVRYIC-CQWOzusP.js} +0 -0
  198. /package/dist/client/assets/{chunk-LIHQZDEY-Cmoid7xm.js → chunk-LIHQZDEY-D97hysgu.js} +0 -0
  199. /package/dist/client/assets/{chunk-ORNJ4GCN-C5mop_ZM.js → chunk-ORNJ4GCN-DfHckjM9.js} +0 -0
  200. /package/dist/client/assets/{clipboard-BtkZJiSP.js → clipboard-B7DaOnqD.js} +0 -0
  201. /package/dist/client/assets/{clojure-CSiXadl7.js → clojure-CPsol4pz.js} +0 -0
  202. /package/dist/client/assets/{coffee-CvoGuyW5.js → coffee-CABCVm0h.js} +0 -0
  203. /package/dist/client/assets/{cpp-C4cUamQ1.js → cpp-DSTvcSE-.js} +0 -0
  204. /package/dist/client/assets/{csharp-Dtq9QhSR.js → csharp-DIoVxGOM.js} +0 -0
  205. /package/dist/client/assets/{csp-27RBnJqg.js → csp-C1GZXDa5.js} +0 -0
  206. /package/dist/client/assets/{css-DYl0wKZK.js → css-D4z7iGcz.js} +0 -0
  207. /package/dist/client/assets/{cypher-CC5kNZpk.js → cypher-Dix-BwVS.js} +0 -0
  208. /package/dist/client/assets/{cytoscape.esm-BR6J_oFp.js → cytoscape.esm-BcKANg6G.js} +0 -0
  209. /package/dist/client/assets/{dart-Dy7bOwD9.js → dart-DQOuHEtM.js} +0 -0
  210. /package/dist/client/assets/{defaultLocale-D6IUeNSK.js → defaultLocale-CnM3dFy1.js} +0 -0
  211. /package/dist/client/assets/{dist-gpXapVM0.js → dist-6EHE62XZ.js} +0 -0
  212. /package/dist/client/assets/{dockerfile-CJNQ434y.js → dockerfile-Ebju0ZLS.js} +0 -0
  213. /package/dist/client/assets/{ecl-BfxsjIJI.js → ecl-C9wQhrFO.js} +0 -0
  214. /package/dist/client/assets/{editor.api2-C473QTs6.js → editor.api2-Btaoxsaa.js} +0 -0
  215. /package/dist/client/assets/{elixir-C8pG5Gny.js → elixir-yXvnUf81.js} +0 -0
  216. /package/dist/client/assets/{flow9-DA0n_neU.js → flow9-CRuic0zs.js} +0 -0
  217. /package/dist/client/assets/{fsharp-DP4M6uKN.js → fsharp-CLr_9lTG.js} +0 -0
  218. /package/dist/client/assets/{go-Dwps2tcv.js → go-BWPyCSEd.js} +0 -0
  219. /package/dist/client/assets/{graphql-BkhlNFYh.js → graphql-CboAAuP5.js} +0 -0
  220. /package/dist/client/assets/{hcl-DJk8cX85.js → hcl-jfhYE74S.js} +0 -0
  221. /package/dist/client/assets/{ini-DRYQwHjI.js → ini-D78loJDk.js} +0 -0
  222. /package/dist/client/assets/{init-1RE1LJ9M.js → init-DJgONJh8.js} +0 -0
  223. /package/dist/client/assets/{java-DAdlbZd7.js → java-Lsa3iQtT.js} +0 -0
  224. /package/dist/client/assets/{julia-DTJUjshJ.js → julia-viq-P4zg.js} +0 -0
  225. /package/dist/client/assets/{katex-BNORLkLV.js → katex-C53u0osy.js} +0 -0
  226. /package/dist/client/assets/{kotlin-CId8dxC_.js → kotlin-7TPLrUv0.js} +0 -0
  227. /package/dist/client/assets/{less-CgFgrH1Q.js → less-CL7Ukcdr.js} +0 -0
  228. /package/dist/client/assets/{lexon-C00FPQ73.js → lexon-BC-n8O12.js} +0 -0
  229. /package/dist/client/assets/{lua-BXURz_-R.js → lua-BWnsa0zp.js} +0 -0
  230. /package/dist/client/assets/{m3-BaBJBB57.js → m3-D3SbMUfb.js} +0 -0
  231. /package/dist/client/assets/{markdown-BLnr_u4k.js → markdown-Dep18A8p.js} +0 -0
  232. /package/dist/client/assets/{mips-Bff3vSyL.js → mips-Bc80Gf6O.js} +0 -0
  233. /package/dist/client/assets/{msdax-Thp4Y_XQ.js → msdax-CKob17uY.js} +0 -0
  234. /package/dist/client/assets/{mysql-DZUG6Tus.js → mysql-B_55jUPl.js} +0 -0
  235. /package/dist/client/assets/{objective-c-DL1IlSUj.js → objective-c-DUEkK1f4.js} +0 -0
  236. /package/dist/client/assets/{pascal-GejeXC-6.js → pascal-CAOw2B7_.js} +0 -0
  237. /package/dist/client/assets/{pascaligo-DapzwCeB.js → pascaligo-O913bdjr.js} +0 -0
  238. /package/dist/client/assets/{path-C49ifvi1.js → path-D5piQZRe.js} +0 -0
  239. /package/dist/client/assets/{perl-wJPJZCIw.js → perl-B2UvUniM.js} +0 -0
  240. /package/dist/client/assets/{pgsql-lcGqR-9I.js → pgsql-Bb9gga2x.js} +0 -0
  241. /package/dist/client/assets/{php-DrUvYX5p.js → php-BBKuMyLY.js} +0 -0
  242. /package/dist/client/assets/{pla-CDd5dp5E.js → pla-D_6X2rEu.js} +0 -0
  243. /package/dist/client/assets/{postiats-CM4RxVHA.js → postiats-Cxe-lJak.js} +0 -0
  244. /package/dist/client/assets/{powerquery-CeJXys3L.js → powerquery-CIO8qSAB.js} +0 -0
  245. /package/dist/client/assets/{powershell-CirTG0NV.js → powershell-DnZeEC2j.js} +0 -0
  246. /package/dist/client/assets/{protobuf-CvsjyIzV.js → protobuf-CmFpXyeu.js} +0 -0
  247. /package/dist/client/assets/{pug-BZU_UJGT.js → pug-Ca_PVqOL.js} +0 -0
  248. /package/dist/client/assets/{qsharp-D8NrvA9f.js → qsharp-yoQGZKUk.js} +0 -0
  249. /package/dist/client/assets/{r-BmC4OsDR.js → r-DsnMzX_c.js} +0 -0
  250. /package/dist/client/assets/{redis-Ch-2TgPk.js → redis-DC-Bebzi.js} +0 -0
  251. /package/dist/client/assets/{redshift-CrYp6fct.js → redshift-CApEm0-y.js} +0 -0
  252. /package/dist/client/assets/{restructuredtext-BCjtju48.js → restructuredtext-GC_Bs0Zh.js} +0 -0
  253. /package/dist/client/assets/{rough.esm-C_7hXcvI.js → rough.esm-Bd3NVSMT.js} +0 -0
  254. /package/dist/client/assets/{ruby-TlghSnx-.js → ruby-B1d3XOrw.js} +0 -0
  255. /package/dist/client/assets/{rust-GztZRMVO.js → rust-C9ThG4vW.js} +0 -0
  256. /package/dist/client/assets/{sb-KHcyDP8p.js → sb-J2Dp7Wiy.js} +0 -0
  257. /package/dist/client/assets/{scala-DElunBZF.js → scala-22oUfBu2.js} +0 -0
  258. /package/dist/client/assets/{scheme-D5Sjjmer.js → scheme-r3exz9m2.js} +0 -0
  259. /package/dist/client/assets/{scss-J_g8XJgt.js → scss-ajZb9wzU.js} +0 -0
  260. /package/dist/client/assets/{shell-Cqc7zm83.js → shell-DcKb9Zr-.js} +0 -0
  261. /package/dist/client/assets/{solidity-CuXSo5wn.js → solidity-BwuowsVc.js} +0 -0
  262. /package/dist/client/assets/{sophia-BvbiwC-d.js → sophia-D3pDfbxx.js} +0 -0
  263. /package/dist/client/assets/{sparql-DZL4fe9r.js → sparql-DG3ukRuG.js} +0 -0
  264. /package/dist/client/assets/{sql-BVyt8AKx.js → sql-Bxo8uMtV.js} +0 -0
  265. /package/dist/client/assets/{src-DX-RYQm1.js → src-3T3q0CKr.js} +0 -0
  266. /package/dist/client/assets/{st-BdsTj2-m.js → st-36NSAB72.js} +0 -0
  267. /package/dist/client/assets/{swift-CxKmQJtJ.js → swift-FNe8zvg7.js} +0 -0
  268. /package/dist/client/assets/{systemverilog-DSHW05-g.js → systemverilog-BpkntsOw.js} +0 -0
  269. /package/dist/client/assets/{tcl-aQChvkpP.js → tcl-Bqwy3Vr6.js} +0 -0
  270. /package/dist/client/assets/{twig-DvSH6T76.js → twig-DtZfTmT4.js} +0 -0
  271. /package/dist/client/assets/{typespec-CQSB3FOJ.js → typespec-Byv2aSQ3.js} +0 -0
  272. /package/dist/client/assets/{vb--kmQYyGJ.js → vb-7AtlUNak.js} +0 -0
  273. /package/dist/client/assets/{wgsl-CSfFb95u.js → wgsl-0aKAo4lr.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-web-ui",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "description": "Self-hosted AI chat dashboard for Hermes Agent — multi-model (Claude, GPT, Gemini, DeepSeek) web UI with Telegram, Discord, Slack, WhatsApp integration",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,7 @@
51
51
  "dev:server": "nodemon --signal SIGTERM --watch packages/server/src -e ts,tsx --exec TS_NODE_PROJECT=packages/server/tsconfig.json node -r ts-node/register packages/server/src/index.ts",
52
52
  "build": "vue-tsc -b && vite build && tsc --noEmit -p packages/server/tsconfig.json && node scripts/build-server.mjs",
53
53
  "prepare": "[ -d dist ] || npm run build",
54
- "preview": "vite preview",
54
+ "preview": "NODE_ENV=production vite preview",
55
55
  "test": "vitest run",
56
56
  "test:watch": "vitest",
57
57
  "test:coverage": "vitest run --coverage"
@@ -62,15 +62,16 @@
62
62
  ],
63
63
  "dependencies": {
64
64
  "eventsource": "^4.1.0",
65
+ "js-tiktoken": "^1.0.21",
65
66
  "node-pty": "^1.1.0",
66
67
  "socket.io": "^4.8.3",
67
68
  "socket.io-client": "^4.8.3"
68
69
  },
69
70
  "devDependencies": {
70
- "@multiavatar/multiavatar": "^1.0.7",
71
71
  "@koa/bodyparser": "^5.0.0",
72
72
  "@koa/cors": "^5.0.0",
73
73
  "@koa/router": "^15.4.0",
74
+ "@multiavatar/multiavatar": "^1.0.7",
74
75
  "@pinia/testing": "^1.0.3",
75
76
  "@types/eventsource": "^1.1.15",
76
77
  "@types/js-yaml": "^4.0.9",
@@ -1,5 +0,0 @@
1
- import{A as e,B as t,C as n,E as r,H as i,K as a,L as o,O as s,Q as c,S as l,T as u,U as d,W as f,X as p,Y as m,Z as h,a as g,ft as _,g as v,h as y,ht as b,k as x,mt as S,p as C,pt as w,st as T,u as E,v as D,w as O,y as k}from"./router-5cFNHmOU.js";import{r as A,t as j}from"./_plugin-vue_export-helper-zzZTsdbA.js";import{t as M}from"./logo-D12u0f1i.js";import{t as N}from"./Modal-4KVEpNAp.js";import{t as P}from"./Dropdown-CvRTj4E1.js";import{t as F}from"./Button-Bj8nsuAL.js";import{t as ee}from"./Input-D2WbyNa2.js";import{t as I}from"./Tooltip-pyGenUkm.js";import{t as L}from"./use-message-DONOe4sg.js";import{t as R}from"./Popconfirm-xTR4QKnq.js";import{t as z}from"./useTheme-EblRt1pk.js";import{t as B}from"./app--akxMY9g.js";import{t as V}from"./profiles-J33FxWil.js";import{n as te,r as H,t as U}from"./chat-DIKRsXyC.js";import{n as ne,o as re}from"./sessions-C3xAbbC1.js";import{t as ie}from"./settings-jFC4iknu.js";import{t as ae}from"./session-browser-prefs-DtEmg4RO.js";import{t as oe}from"./clipboard-BtkZJiSP.js";import{a as se,i as W,n as ce,r as le,t as ue}from"./MarkdownRenderer-CA0C409H.js";var G={telegram:`Telegram`,api_server:`API Server`,cli:`CLI`,discord:`Discord`,slack:`Slack`,matrix:`Matrix`,whatsapp:`WhatsApp`,signal:`Signal`,email:`Email`,sms:`SMS`,dingtalk:`DingTalk`,feishu:`Feishu`,wecom:`WeCom`,weixin:`WeChat`,bluebubbles:`iMessage`,mattermost:`Mattermost`,cron:`Cron`};function K(e){return e?G[e]||e:``}function q(e){if(!e)return``;let t=new Date(e),n=new Date;return t.toDateString()===n.toDateString()?t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}):t.toLocaleDateString([],{month:`short`,day:`numeric`})}function J(e){return q(e*1e3)}var Y={class:`chat-input-area`},X={class:`input-top-bar`},de={key:1,class:`context-bar`},fe={key:0,class:`attachment-previews`},Z=[`src`,`alt`],Q={key:1,class:`attachment-file`},$={class:`file-name`},pe={class:`file-size`},me=[`onClick`],he=[`placeholder`],ge={class:`input-actions`},_e=2e5,ve=j(e({__name:`ChatInput`,setup(e){let t=U(),{t:o}=A(),d=T(``),p=T(),g=T(),v=T([]),y=T(!1),E=T(0),k=T(!1),j=l(()=>d.value.trim()||v.value.length>0),M=T(2e5);async function N(){try{M.value=await ne(V().activeProfileName||void 0)}catch{M.value=_e}}i(N),m(()=>V().activeProfileName,N),m(()=>B().selectedModel,N);let P=l(()=>(t.activeSession?.inputTokens??0)+(t.activeSession?.outputTokens??0)),ee=l(()=>Math.max(0,M.value-P.value)),L=l(()=>Math.min(P.value/M.value*100,100));function R(e){return e>=1e6?(e/1e6).toFixed(1)+`M`:e>=1e3?(e/1e3).toFixed(1)+`k`:String(e)}function z(e){if(v.value.find(t=>t.name===e.name))return;let t=Date.now().toString(36)+Math.random().toString(36).slice(2,8),n=URL.createObjectURL(e);v.value.push({id:t,name:e.name,type:e.type,size:e.size,url:n,file:e})}function te(){g.value?.click()}function H(e){let t=e.target;if(t.files){for(let e of t.files)z(e);t.value=``}}function re(e){let t=Array.from(e.clipboardData?.items||[]).filter(e=>e.type.startsWith(`image/`));if(t.length){e.preventDefault();for(let e of t){let t=e.getAsFile();if(!t)continue;let n=e.type.split(`/`)[1]||`png`;z(new File([t],`pasted-${Date.now()}.${n}`,{type:e.type}))}}}function ie(e){e.preventDefault()}function ae(e){e.preventDefault(),e.dataTransfer?.types.includes(`Files`)&&(E.value++,y.value=!0)}function oe(){E.value--,E.value<=0&&(E.value=0,y.value=!1)}function se(e){e.preventDefault(),E.value=0,y.value=!1;let t=Array.from(e.dataTransfer?.files||[]);if(t.length){for(let e of t)z(e);p.value?.focus()}}function W(){let e=d.value.trim();!e&&v.value.length===0||(t.sendMessage(e,v.value.length>0?v.value:void 0),d.value=``,v.value=[],p.value&&(p.value.style.height=`auto`))}function ce(){k.value=!0}function le(){requestAnimationFrame(()=>{k.value=!1})}function ue(e){return k.value||e.isComposing||e.keyCode===229}function G(e){e.key!==`Enter`||e.shiftKey||ue(e)||(e.preventDefault(),W())}function K(e){let t=e.target;t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`}function q(e){let t=v.value.findIndex(t=>t.id===e);t!==-1&&(URL.revokeObjectURL(v.value[t].url),v.value.splice(t,1))}function J(e){return e<1024?e+` B`:e<1024*1024?(e/1024).toFixed(1)+` KB`:(e/(1024*1024)).toFixed(1)+` MB`}function ve(e){return e.startsWith(`image/`)}return(e,i)=>(f(),r(`div`,Y,[n(`div`,X,[x(_(I),{trigger:`hover`},{trigger:h(()=>[x(_(F),{quaternary:``,size:`tiny`,onClick:te,circle:``},{icon:h(()=>[...i[2]||=[n(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[n(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})],-1)]]),_:1})]),default:h(()=>[s(` `+b(_(o)(`chat.attachFiles`)),1)]),_:1}),P.value>0?(f(),r(`span`,{key:0,class:w([`context-info`,{"context-warning":L.value>80}])},b(R(P.value))+` / `+b(R(M.value))+` · `+b(_(o)(`chat.contextRemaining`))+` `+b(R(ee.value)),3)):u(``,!0),P.value>0?(f(),r(`div`,de,[n(`div`,{class:w([`context-bar-fill`,{"context-bar-warn":L.value>60&&L.value<=80,"context-bar-danger":L.value>80}]),style:S({width:`${L.value}%`})},null,6)])):u(``,!0)]),v.value.length>0?(f(),r(`div`,fe,[(f(!0),r(D,null,a(v.value,e=>(f(),r(`div`,{key:e.id,class:w([`attachment-preview`,{image:ve(e.type)}])},[ve(e.type)?(f(),r(`img`,{key:0,src:e.url,alt:e.name,class:`attachment-thumb`},null,8,Z)):(f(),r(`div`,Q,[i[3]||=n(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[n(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),n(`polyline`,{points:`14 2 14 8 20 8`})],-1),n(`span`,$,b(e.name),1),n(`span`,pe,b(J(e.size)),1)])),n(`button`,{class:`attachment-remove`,onClick:t=>q(e.id)},[...i[4]||=[n(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),n(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,me)],2))),128))])):u(``,!0),n(`div`,{class:w([`input-wrapper`,{"drag-over":y.value}]),onDragover:ie,onDragenter:ae,onDragleave:oe,onDrop:se},[n(`input`,{ref_key:`fileInputRef`,ref:g,type:`file`,multiple:``,class:`file-input-hidden`,onChange:H},null,544),c(n(`textarea`,{ref_key:`textareaRef`,ref:p,"onUpdate:modelValue":i[0]||=e=>d.value=e,class:`input-textarea`,placeholder:_(o)(`chat.inputPlaceholder`),rows:`1`,onKeydown:G,onCompositionstart:ce,onCompositionend:le,onInput:K,onPaste:re},null,40,he),[[C,d.value]]),n(`div`,ge,[_(t).isStreaming?(f(),O(_(F),{key:0,size:`small`,type:`error`,onClick:i[1]||=e=>_(t).stopStreaming()},{default:h(()=>[s(b(_(o)(`chat.stop`)),1)]),_:1})):u(``,!0),x(_(F),{size:`small`,type:`primary`,disabled:!j.value||_(t).isStreaming,onClick:W},{icon:h(()=>[...i[5]||=[n(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),n(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`})],-1)]]),default:h(()=>[s(` `+b(_(o)(`chat.send`)),1)]),_:1},8,[`disabled`])])],34)]))}}),[[`__scopeId`,`data-v-e8019954`]]);async function ye(e={}){let t=new URLSearchParams;return e.humanOnly===!1&&t.set(`humanOnly`,`false`),e.source&&t.set(`source`,e.source),e.limit!=null&&t.set(`limit`,String(e.limit)),(await g(`/api/hermes/sessions/conversations${t.toString()?`?${t.toString()}`:``}`)).sessions}async function be(e,t={}){let n=new URLSearchParams;t.humanOnly===!1&&n.set(`humanOnly`,`false`),t.source&&n.set(`source`,t.source);let r=n.toString()?`?${n.toString()}`:``;return g(`/api/hermes/sessions/conversations/${encodeURIComponent(e)}/messages${r}`)}var xe={class:`conversation-monitor`},Se={class:`conversation-monitor__sidebar`},Ce={key:0,class:`conversation-monitor__empty`},we={key:1,class:`conversation-monitor__empty`},Te=[`aria-pressed`,`onClick`],Ee={class:`conversation-monitor__session-title-row`},De={class:`conversation-monitor__session-title`},Oe={key:0,class:`conversation-monitor__session-live`},ke={class:`conversation-monitor__session-meta`},Ae={key:0,class:`conversation-monitor__session-preview`},je={class:`conversation-monitor__detail`},Me={key:0,class:`conversation-monitor__detail-header`},Ne={class:`conversation-monitor__detail-title`},Pe={class:`conversation-monitor__detail-meta`},Fe={key:1,class:`conversation-monitor__empty conversation-monitor__empty--error`},Ie={key:2,class:`conversation-monitor__empty`},Le={key:3,class:`conversation-monitor__empty`},Re={key:4,class:`conversation-monitor__messages`},ze={class:`conversation-monitor__message-meta`},Be={class:`conversation-monitor__message-content`},Ve=15e3,He=j(e({__name:`ConversationMonitorPane`,props:{humanOnly:{type:Boolean}},setup(e){let t=e,{t:o}=A(),s=T([]),c=T(null),p=T(null),h=T(!1),g=T(!1),v=T(``),y=null,x=0,S=0,C=l(()=>s.value.find(e=>e.id===c.value)||null);function E(e){return o(e===`user`?`chat.monitorRoleUser`:`chat.monitorRoleAssistant`)}function O(e){return o(`chat.linkedSessions`,{count:e})}function k(){x+=1,S+=1}async function j(e=!1){let n=++x;e||(h.value=!0,v.value=``);try{let e=await ye({humanOnly:t.humanOnly});if(n!==x)return;if(s.value=e,!e.length){c.value=null,p.value=null;return}(!c.value||!e.some(e=>e.id===c.value))&&(c.value=e[0].id)}catch(t){if(n!==x||e)return;v.value=t?.message||String(t),s.value=[],c.value=null,p.value=null}finally{!e&&n===x&&(h.value=!1)}}async function M(e,n=!1){let r=++S;if(!e){p.value=null;return}let i=t.humanOnly;n||(g.value=!0,v.value=``);try{let n=await be(e,{humanOnly:i});if(r!==S||e!==c.value||i!==t.humanOnly)return;p.value=n}catch(e){if(r!==S||n)return;v.value=e?.message||String(e),p.value=null}finally{!n&&r===S&&(g.value=!1)}}return m(c,async e=>{await M(e,!1)}),m(()=>t.humanOnly,async()=>{k(),c.value=null,p.value=null,await j(!1)}),i(async()=>{await j(!1),y=setInterval(async()=>{await j(!0),c.value&&await M(c.value,!0)},Ve)}),d(()=>{k(),y&&clearInterval(y)}),(e,t)=>(f(),r(`div`,xe,[n(`aside`,Se,[h.value&&s.value.length===0?(f(),r(`div`,Ce,b(_(o)(`common.loading`)),1)):s.value.length===0?(f(),r(`div`,we,b(_(o)(`chat.noSessions`)),1)):u(``,!0),(f(!0),r(D,null,a(s.value,e=>(f(),r(`button`,{key:e.id,class:w([`conversation-monitor__session`,{active:e.id===c.value}]),"aria-pressed":e.id===c.value,onClick:t=>c.value=e.id},[n(`div`,Ee,[n(`span`,De,b(e.title||e.preview||e.id),1),e.is_active?(f(),r(`span`,Oe,b(_(o)(`chat.recentBadge`)),1)):u(``,!0)]),n(`div`,ke,b(_(K)(e.source))+` · `+b(_(J)(e.last_active)),1),e.preview?(f(),r(`div`,Ae,b(e.preview),1)):u(``,!0)],10,Te))),128))]),n(`section`,je,[C.value?(f(),r(`header`,Me,[n(`div`,Ne,b(C.value.title||C.value.preview||C.value.id),1),n(`div`,Pe,[n(`span`,null,b(_(K)(C.value.source)),1),t[0]||=n(`span`,null,`·`,-1),n(`span`,null,b(C.value.model),1),t[1]||=n(`span`,null,`·`,-1),n(`span`,null,b(O(C.value.thread_session_count)),1)])])):u(``,!0),v.value?(f(),r(`div`,Fe,b(v.value),1)):g.value&&!p.value?(f(),r(`div`,Ie,b(_(o)(`common.loading`)),1)):!p.value||p.value.messages.length===0?(f(),r(`div`,Le,b(_(o)(`chat.noVisibleMessages`)),1)):(f(),r(`div`,Re,[(f(!0),r(D,null,a(p.value.messages,e=>(f(),r(`article`,{key:`${e.session_id}-${e.id}`,class:w([`conversation-monitor__message`,`role-${e.role}`])},[n(`div`,ze,b(E(e.role))+` · `+b(_(J)(e.timestamp)),1),n(`div`,Be,b(e.content),1)],2))),128))]))])]))}}),[[`__scopeId`,`data-v-be298d0d`]]),Ue=[`id`],We={key:1,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,class:`tool-icon`},Ge={class:`tool-name`},Ke={key:2,class:`tool-preview`},qe={key:3,class:`tool-spinner`},Je={key:4,class:`tool-error-badge`},Ye={key:0,class:`tool-detail-section`,"data-copy-source":`tool-args`},Xe={class:`tool-detail-label`},Ze=[`innerHTML`],Qe={key:1,class:`tool-detail-section`,"data-copy-source":`tool-result`},$e={class:`tool-detail-label`},et=[`innerHTML`],tt={key:1,class:`msg-body`},nt={key:0,src:M,alt:`Hermes`,class:`msg-avatar`},rt={key:0,class:`msg-attachments`},it=[`src`,`alt`,`onClick`],at=[`onClick`,`title`],ot={class:`att-name`},st={class:`att-size`},ct={class:`thinking-label`},lt={key:0,class:`thinking-meta`},ut={class:`thinking-meta`},dt={key:0,class:`thinking-body`},ft={key:3,class:`streaming-dots`},pt={class:`message-time`},mt=[`src`],ht=2e3,gt=j(e({__name:`MessageItem`,props:{message:{},highlight:{type:Boolean}},setup(e){let i=e,{t:o}=A(),s=L(),c=l(()=>i.message.role===`system`),d=T(!1),m=T(null),h=U(),g=ie(),y=l(()=>H(i.message.content||``,{streaming:!!i.message.isStreaming})),S=l(()=>!!(i.message.reasoning&&i.message.reasoning.length>0)),C=l(()=>S.value||y.value.hasThinking),E=l(()=>{let e=[];return i.message.reasoning&&e.push(i.message.reasoning),e.push(...y.value.segments),y.value.pending&&e.push(y.value.pending),e.join(`
2
-
3
- `)}),j=l(()=>{let e=te(y.value);return i.message.reasoning&&(e+=i.message.reasoning.length),e}),M=l(()=>i.message.isStreaming?!!(y.value.pending!==null||S.value&&!i.message.content):!1),N=T(null),P=l(()=>M.value?!0:N.value===null?!!g.display.show_reasoning:N.value);function F(){N.value=!P.value}let ee=T(Date.now()),I=null;function R(){let e=h.getThinkingObservation(i.message.id),t=!!(i.message.isStreaming&&e?.startedAt!==void 0&&e.endedAt===void 0);t&&I===null?I=window.setInterval(()=>{ee.value=Date.now()},1e3):!t&&I!==null&&(window.clearInterval(I),I=null)}p(R),t(()=>{I!==null&&window.clearInterval(I)});let z=l(()=>{let e=h.getThinkingObservation(i.message.id);if(!e?.startedAt)return null;let t=e.endedAt??(i.message.isStreaming?ee.value:e.startedAt);return Math.max(0,t-e.startedAt)});function B(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;return r===0?`${n}m`:`${n}m ${r}s`}let V=l(()=>new Date(i.message.timestamp).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}));function ne(e){return e.startsWith(`image/`)}function re(e){return e<1024?e+` B`:e<1024*1024?(e/1024).toFixed(1)+` KB`:(e/(1024*1024)).toFixed(1)+` MB`}function ae(e){let t=i.message.content||``,n=/\[File:\s*([^\]]+)\]\(([^)]+)\)/g,r;for(;(r=n.exec(t))!==null;)if(r[1].trim()===e.trim())return r[2];return null}function oe(e){let t=ae(e.name);if(t){s.info(o(`download.downloading`)),se(t,e.name).catch(e=>{s.error(e.message||o(`download.downloadFailed`))});return}if(e.url&&e.url.startsWith(`blob:`)){let t=document.createElement(`a`);t.href=e.url,t.download=e.name,document.body.appendChild(t),t.click(),document.body.removeChild(t)}}function G(e){if(!e)return{full:``,display:``};try{let t=JSON.stringify(JSON.parse(e),null,2);return{full:t,display:t.length>ht?t.slice(0,ht)+`
4
- `+o(`chat.truncated`):t,language:`json`}}catch{return{full:e,display:e.length>ht?e.slice(0,ht)+`
5
- `+o(`chat.truncated`):e}}}function K(e,t){return W(e,t,o(`common.copy`),{maxHighlightLength:ht})}async function q(e){let t=e.target;if(!(t instanceof HTMLElement))return;let n=t.closest(`[data-copy-code="true"]`);if(!n)return;e.preventDefault();let r=n.closest(`[data-copy-source]`)?.dataset.copySource;if(r===`tool-args`&&fe.value){await ce(fe.value);return}if(r===`tool-result`&&Q.value){await ce(Q.value);return}await le(e)}let J=l(()=>(i.message.attachments?.length??0)>0),Y=l(()=>!!(i.message.toolArgs||i.message.toolResult)),X=l(()=>G(i.message.toolArgs)),de=l(()=>G(i.message.toolResult)),fe=l(()=>X.value.full),Z=l(()=>X.value.display),Q=l(()=>de.value.full),$=l(()=>de.value.display),pe=l(()=>Z.value?K(Z.value,X.value.language):``),me=l(()=>$.value?K($.value,de.value.language):``);return(t,i)=>(f(),r(D,null,[n(`div`,{class:w([`message`,[e.message.role,{highlight:e.highlight}]]),id:`message-${e.message.id}`},[e.message.role===`tool`?(f(),r(D,{key:0},[n(`div`,{class:w([`tool-line`,{expandable:Y.value}]),onClick:i[0]||=e=>Y.value&&(d.value=!d.value)},[Y.value?(f(),r(`svg`,{key:0,width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:w([`tool-chevron`,{rotated:d.value}])},[...i[3]||=[n(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)):(f(),r(`svg`,We,[...i[4]||=[n(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`},null,-1)]])),n(`span`,Ge,b(e.message.toolName),1),e.message.toolPreview&&!d.value?(f(),r(`span`,Ke,b(e.message.toolPreview),1)):u(``,!0),e.message.toolStatus===`running`?(f(),r(`span`,qe)):u(``,!0),e.message.toolStatus===`error`?(f(),r(`span`,Je,b(_(o)(`chat.error`)),1)):u(``,!0)],2),d.value&&Y.value?(f(),r(`div`,{key:0,class:`tool-details`,onClick:q},[Z.value?(f(),r(`div`,Ye,[n(`div`,Xe,b(_(o)(`chat.arguments`)),1),n(`div`,{class:`tool-detail-code-block`,innerHTML:pe.value},null,8,Ze)])):u(``,!0),$.value?(f(),r(`div`,Qe,[n(`div`,$e,b(_(o)(`chat.result`)),1),n(`div`,{class:`tool-detail-code-block`,innerHTML:me.value},null,8,et)])):u(``,!0)])):u(``,!0)],64)):(f(),r(`div`,tt,[e.message.role===`assistant`?(f(),r(`img`,nt)):u(``,!0),n(`div`,{class:w([`msg-content`,e.message.role])},[n(`div`,{class:w([`message-bubble`,{system:c.value}])},[J.value?(f(),r(`div`,rt,[(f(!0),r(D,null,a(e.message.attachments,e=>(f(),r(`div`,{key:e.id,class:w([`msg-attachment`,{image:ne(e.type)}])},[ne(e.type)&&e.url?(f(),r(`img`,{key:0,src:e.url,alt:e.name,class:`msg-attachment-thumb`,onClick:t=>m.value=e.url},null,8,it)):(f(),r(`div`,{key:1,class:`msg-attachment-file`,onClick:t=>oe(e),style:{cursor:`pointer`},title:_(o)(`download.downloadFile`)},[i[5]||=n(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[n(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),n(`polyline`,{points:`14 2 14 8 20 8`})],-1),n(`span`,ot,b(e.name),1),n(`span`,st,b(re(e.size)),1),i[6]||=n(`svg`,{class:`att-download-icon`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),n(`polyline`,{points:`7 10 12 15 17 10`}),n(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`3`})],-1)],8,at))],2))),128))])):u(``,!0),C.value?(f(),r(`div`,{key:1,class:w([`thinking-block`,{expanded:P.value}])},[n(`div`,{class:`thinking-header`,onClick:F},[(f(),r(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:w([`thinking-chevron`,{rotated:P.value}])},[...i[7]||=[n(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)),i[8]||=n(`span`,{class:`thinking-icon`},`💭`,-1),n(`span`,ct,b(M.value?_(o)(`chat.thinkingInProgress`):_(o)(`chat.thinkingLabel`)),1),z.value!==null&&z.value>0?(f(),r(`span`,lt,` · `+b(_(o)(`chat.thinkingDuration`,{duration:B(z.value)})),1)):u(``,!0),n(`span`,ut,` · `+b(_(o)(`chat.thinkingChars`,{count:j.value})),1)]),P.value?(f(),r(`div`,dt,[x(ue,{content:E.value},null,8,[`content`])])):u(``,!0)],2)):u(``,!0),y.value.body?(f(),O(ue,{key:2,content:y.value.body},null,8,[`content`])):u(``,!0),e.message.isStreaming&&!e.message.content?(f(),r(`span`,ft,[...i[9]||=[n(`span`,null,null,-1),n(`span`,null,null,-1),n(`span`,null,null,-1)]])):u(``,!0)],2),n(`div`,pt,b(V.value),1)],2)]))],10,Ue),(f(),O(k,{to:`body`},[m.value?(f(),r(`div`,{key:0,class:`image-preview-overlay`,onClick:i[2]||=v(e=>m.value=null,[`self`])},[n(`img`,{src:m.value,class:`image-preview-img`,onClick:i[1]||=e=>m.value=null},null,8,mt)])):u(``,!0)]))],64))}}),[[`__scopeId`,`data-v-3dba3cc8`]]),_t=`/assets/thinking-light-BjeGd2gJ.mp4`,vt=`/assets/thinking-dark-yYkYRZLs.mp4`,yt={key:0,class:`empty-state`},bt={key:0,class:`streaming-indicator`},xt=[`src`],St={key:0,class:`tool-calls-panel`},Ct={class:`tool-call-name`},wt={key:0,class:`tool-call-preview`},Tt={key:1,class:`tool-call-spinner`},Et={key:2,class:`tool-call-error`},Dt=j(e({__name:`MessageList`,setup(e){let t=U(),{t:i}=A(),{isDark:s}=z(),c=T(),d=l(()=>t.messages.filter(e=>e.role!==`tool`)),p=l(()=>{let e=t.messages,n=-1;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`){n=t;break}return[...e.filter((e,t)=>e.role===`tool`&&t>n)].reverse()});function g(e=200){let t=c.value;return t?t.scrollHeight-t.scrollTop-t.clientHeight<e:!0}function v(){o(()=>{c.value&&(c.value.scrollTop=c.value.scrollHeight)})}function y(e){o(()=>{let t=document.getElementById(`message-${e}`);t&&t.scrollIntoView({block:`center`})})}return m(()=>t.activeSessionId,e=>{if(e){if(t.focusMessageId){o(()=>y(t.focusMessageId));return}o(()=>v())}},{immediate:!0}),m(()=>t.focusMessageId,e=>{e&&y(e)}),m(()=>t.isRunActive,e=>{e&&v()}),m(()=>t.messages[t.messages.length-1]?.content,()=>{if(t.focusMessageId){y(t.focusMessageId);return}g()&&v()}),m(p,()=>{if(t.focusMessageId){y(t.focusMessageId);return}g()&&v()}),(e,o)=>(f(),r(`div`,{ref_key:`listRef`,ref:c,class:`message-list`},[_(t).messages.length===0?(f(),r(`div`,yt,[o[0]||=n(`img`,{src:`/logo.png`,alt:`Hermes`,class:`empty-logo`},null,-1),n(`p`,null,b(_(i)(`chat.emptyState`)),1)])):u(``,!0),(f(!0),r(D,null,a(d.value,e=>(f(),O(gt,{key:e.id,message:e,highlight:_(t).focusMessageId===e.id},null,8,[`message`,`highlight`]))),128)),x(E,{name:`fade`},{default:h(()=>[_(t).isRunActive?(f(),r(`div`,bt,[n(`video`,{src:_(s)?_(vt):_(_t),autoplay:``,loop:``,muted:``,playsinline:``,class:`thinking-video`},null,8,xt),p.value.length>0?(f(),r(`div`,St,[(f(!0),r(D,null,a(p.value,e=>(f(),r(`div`,{key:e.id,class:`tool-call-item`},[o[1]||=n(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,class:`tool-call-icon`},[n(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})],-1),n(`span`,Ct,b(e.toolName),1),e.toolPreview?(f(),r(`span`,wt,b(e.toolPreview),1)):u(``,!0),e.toolStatus===`running`?(f(),r(`span`,Tt)):u(``,!0),e.toolStatus===`error`?(f(),r(`span`,Et,b(_(i)(`chat.error`)),1)):u(``,!0)]))),128))])):u(``,!0)])):u(``,!0)]),_:1})],512))}}),[[`__scopeId`,`data-v-1bc92f44`]]),Ot=[`aria-current`],kt={class:`session-item-content`},At={class:`session-item-title-row`},jt={key:0,class:`session-item-active-indicator`,"aria-hidden":`true`},Mt={key:1,class:`session-item-pin`,"aria-hidden":`true`},Nt={class:`session-item-title`},Pt={key:2,class:`session-item-live-badge`},Ft={class:`session-item-meta`},It={key:0,class:`session-item-model`},Lt={class:`session-item-time`},Rt=e({__name:`SessionListItem`,props:{session:{},active:{type:Boolean},live:{type:Boolean},pinned:{type:Boolean},canDelete:{type:Boolean}},emits:[`select`,`contextmenu`,`delete`],setup(e,{emit:t}){let i=t,{t:a}=A();return(t,o)=>(f(),r(`button`,{class:w([`session-item`,{active:e.active,live:e.live}]),"aria-current":e.active?`page`:void 0,onClick:o[2]||=e=>i(`select`),onContextmenu:o[3]||=e=>i(`contextmenu`,e)},[n(`div`,kt,[n(`span`,At,[e.live?(f(),r(`span`,jt,[...o[4]||=[n(`svg`,{class:`session-item-active-spinner`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`},[n(`circle`,{cx:`12`,cy:`12`,r:`8`,opacity:`0.2`}),n(`path`,{d:`M20 12a8 8 0 0 0-8-8`})],-1)]])):u(``,!0),e.pinned?(f(),r(`span`,Mt,[...o[5]||=[n(`svg`,{width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[n(`path`,{d:`M12 17v5`}),n(`path`,{d:`M5 8l14 0`}),n(`path`,{d:`M8 3l8 0 0 5 3 5-14 0 3-5z`})],-1)]])):u(``,!0),n(`span`,Nt,b(e.session.title),1),e.live?(f(),r(`span`,Pt,[o[6]||=n(`span`,{class:`live-dot`},null,-1),n(`span`,null,b(_(a)(`chat.liveMode`)),1)])):u(``,!0)]),n(`span`,Ft,[e.session.model?(f(),r(`span`,It,b(e.session.model),1)):u(``,!0),n(`span`,Lt,b(_(q)(e.session.createdAt)),1)])]),e.canDelete?(f(),O(_(R),{key:0,onPositiveClick:o[1]||=e=>i(`delete`)},{trigger:h(()=>[n(`button`,{class:`session-item-delete`,onClick:o[0]||=v(()=>{},[`stop`])},[...o[7]||=[n(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),n(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),default:h(()=>[s(` `+b(_(a)(`chat.deleteSession`)),1)]),_:1})):u(``,!0)],42,Ot))}}),zt={class:`chat-panel`},Bt={class:`session-list-header`},Vt={key:0,class:`session-list-title`},Ht={class:`session-list-actions`},Ut={key:0,class:`session-items`},Wt={key:0,class:`session-loading`},Gt={key:1,class:`session-empty`},Kt={class:`session-group-header session-group-header--static`},qt={class:`session-group-label`},Jt={class:`session-group-count`},Yt=[`onClick`],Xt={class:`session-group-label`},Zt={class:`session-group-count`},Qt={class:`chat-main`},$t={class:`chat-header`},en={class:`header-left`},tn={class:`header-session-title`},nn={key:1,class:`source-badge`},rn={class:`header-actions`},an={class:`chat-mode-toggle`},on=j(e({__name:`ChatPanel`,setup(e){let t=U(),c=ae(),p=L(),{t:g}=A(),v=T(`chat`),S=T(typeof window>`u`||!window.matchMedia(`(max-width: 768px)`).matches),C=T(S.value),E=null,k=T(!1);function j(e){t.switchSession(e),E?.matches&&(S.value=!1)}function M(e){e!==v.value&&(e===`live`?(C.value=S.value,S.value=!1):S.value=E?.matches?!1:C.value,v.value=e)}function R(e){k.value=e.matches,e.matches&&S.value&&(S.value=!1)}i(()=>{E=window.matchMedia(`(max-width: 768px)`),R(E),E.addEventListener(`change`,R)}),d(()=>{E?.removeEventListener(`change`,R)});let z=T(!1),B=T(``),V=T(null),te=T(null),H=T(new Set(JSON.parse(localStorage.getItem(`hermes_collapsed_groups`)||`[]`)));function ne(e){return e===`api_server`?-1:e===`cron`?999:0}function ie(e){return[...e].sort((e,n)=>{let r=t.isSessionLive(e.id);return r===t.isSessionLive(n.id)?(n.updatedAt||0)-(e.updatedAt||0):r?-1:1})}let se=l(()=>ie(t.sessions.filter(e=>c.isPinned(e.id)))),W=l(()=>{let e=new Map;for(let n of t.sessions){if(c.isPinned(n.id))continue;let t=n.source||``;e.has(t)||e.set(t,[]),e.get(t).push(n)}return[...e.keys()].sort((n,r)=>{let i=e.get(n)?.some(e=>t.isSessionLive(e.id))||!1;if(i!==(e.get(r)?.some(e=>t.isSessionLive(e.id))||!1))return i?-1:1;let a=ne(n),o=ne(r);return a===o?n.localeCompare(r):a-o}).map(t=>({source:t,label:t?K(t):g(`chat.other`),sessions:ie(e.get(t))}))});function ce(e){if(!H.value.has(e))H.value=new Set([...H.value,e]);else{H.value=new Set(W.value.map(e=>e.source).filter(t=>t!==e));let n=W.value.find(t=>t.source===e);n?.sessions.length&&t.switchSession(n.sessions[0].id)}localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...H.value]))}m(W,e=>{if(localStorage.getItem(`hermes_collapsed_groups`)!==null){let e=t.activeSession?.source;e&&H.value.has(e)&&(H.value=new Set([...H.value].filter(t=>t!==e)),localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...H.value])));return}H.value=new Set(e.slice(1).map(e=>e.source)),localStorage.setItem(`hermes_collapsed_groups`,JSON.stringify([...H.value]))},{once:!0}),m(()=>[t.sessionsLoaded,...t.sessions.map(e=>e.id)],e=>{let t=e.slice(1);!e[0]||t.length===0||c.pruneMissingSessions(t)},{immediate:!0});let le=l(()=>t.activeSession?.title||g(`chat.newChat`)),ue=l(()=>v.value===`live`?g(`chat.liveSessions`):le.value),G=l(()=>v.value===`chat`&&t.activeSession?.source||``);function q(){t.newChat()}async function J(e){let n=e||t.activeSessionId;n&&(await oe(n)?p.success(g(`common.copied`)):p.error(g(`common.copied`)+` ✗`))}function Y(e){c.removePinned(e),t.deleteSession(e),p.success(g(`chat.sessionDeleted`))}let X=T(null),de=l(()=>X.value?c.isPinned(X.value):!1),fe=l(()=>[{label:g(de.value?`chat.unpin`:`chat.pin`),key:`pin`},{label:g(`chat.rename`),key:`rename`},{label:g(`chat.copySessionId`),key:`copy-id`}]);function Z(e,t){e.preventDefault(),X.value=t,Q.value=!0,$.value=e.clientX,pe.value=e.clientY}let Q=T(!1),$=T(0),pe=T(0);function me(e){if(Q.value=!1,X.value){if(e===`pin`){c.togglePinned(X.value);return}if(e===`copy-id`)J(X.value);else if(e===`rename`){let e=t.sessions.find(e=>e.id===X.value);V.value=X.value,B.value=e?.title||``,z.value=!0,o(()=>{te.value?.focus()})}}}function he(){Q.value=!1}async function ge(){if(!(!V.value||!B.value.trim())){if(await re(V.value,B.value.trim())){let e=t.sessions.find(e=>e.id===V.value);e&&(e.title=B.value.trim()),t.activeSession?.id===V.value&&(t.activeSession.title=B.value.trim()),p.success(g(`chat.renamed`))}else p.error(g(`chat.renameFailed`));z.value=!1}}return(e,i)=>(f(),r(`div`,zt,[v.value===`chat`?(f(),r(`div`,{key:0,class:w([`session-backdrop`,{active:S.value}]),onClick:i[0]||=e=>S.value=!1},null,2)):u(``,!0),v.value===`chat`?(f(),r(`aside`,{key:1,class:w([`session-list`,{collapsed:!S.value}])},[n(`div`,Bt,[S.value?(f(),r(`span`,Vt,b(_(g)(`chat.sessions`)),1)):u(``,!0),n(`div`,Ht,[n(`button`,{class:`session-close-btn`,onClick:i[1]||=e=>S.value=!1},[...i[8]||=[n(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),n(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]]),x(_(F),{quaternary:``,size:`tiny`,onClick:q,circle:``},{icon:h(()=>[...i[9]||=[n(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),n(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),_:1})])]),S.value?(f(),r(`div`,Ut,[_(t).isLoadingSessions&&_(t).sessions.length===0?(f(),r(`div`,Wt,b(_(g)(`common.loading`)),1)):_(t).sessions.length===0?(f(),r(`div`,Gt,b(_(g)(`chat.noSessions`)),1)):u(``,!0),se.value.length>0?(f(),r(D,{key:2},[n(`div`,Kt,[n(`span`,qt,b(_(g)(`chat.pinned`)),1),n(`span`,Jt,b(se.value.length),1)]),(f(!0),r(D,null,a(se.value,e=>(f(),O(Rt,{key:`pinned-${e.id}`,session:e,active:e.id===_(t).activeSessionId,live:_(t).isSessionLive(e.id),pinned:!0,"can-delete":e.id!==_(t).activeSessionId||_(t).sessions.length>1,onSelect:t=>j(e.id),onContextmenu:t=>Z(t,e.id),onDelete:t=>Y(e.id)},null,8,[`session`,`active`,`live`,`can-delete`,`onSelect`,`onContextmenu`,`onDelete`]))),128))],64)):u(``,!0),(f(!0),r(D,null,a(W.value,e=>(f(),r(D,{key:e.source},[n(`div`,{class:`session-group-header`,onClick:t=>ce(e.source)},[(f(),r(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:w([`group-chevron`,{collapsed:H.value.has(e.source)}])},[...i[10]||=[n(`polyline`,{points:`9 18 15 12 9 6`},null,-1)]],2)),n(`span`,Xt,b(e.label),1),n(`span`,Zt,b(e.sessions.length),1)],8,Yt),H.value.has(e.source)?u(``,!0):(f(!0),r(D,{key:0},a(e.sessions,e=>(f(),O(Rt,{key:e.id,session:e,active:e.id===_(t).activeSessionId,live:_(t).isSessionLive(e.id),pinned:!1,"can-delete":e.id!==_(t).activeSessionId||_(t).sessions.length>1,onSelect:t=>j(e.id),onContextmenu:t=>Z(t,e.id),onDelete:t=>Y(e.id)},null,8,[`session`,`active`,`live`,`can-delete`,`onSelect`,`onContextmenu`,`onDelete`]))),128))],64))),128))])):u(``,!0)],2)):u(``,!0),x(_(P),{placement:`bottom-start`,trigger:`manual`,x:$.value,y:pe.value,options:fe.value,show:Q.value,onSelect:me,onClickoutside:he},null,8,[`x`,`y`,`options`,`show`]),x(_(N),{show:z.value,"onUpdate:show":i[3]||=e=>z.value=e,preset:`dialog`,title:_(g)(`chat.renameSession`),"positive-text":_(g)(`common.ok`),"negative-text":_(g)(`common.cancel`),onPositiveClick:ge},{default:h(()=>[x(_(ee),{ref_key:`renameInputRef`,ref:te,value:B.value,"onUpdate:value":i[2]||=e=>B.value=e,placeholder:_(g)(`chat.enterNewTitle`),onKeydown:y(ge,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`show`,`title`,`positive-text`,`negative-text`]),n(`div`,Qt,[n(`header`,$t,[n(`div`,en,[v.value===`chat`?(f(),O(_(F),{key:0,quaternary:``,size:`small`,onClick:i[4]||=e=>S.value=!S.value,circle:``},{icon:h(()=>[...i[11]||=[n(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[n(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`}),n(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`}),n(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`}),n(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`})],-1)]]),_:1})):u(``,!0),n(`span`,tn,b(ue.value),1),G.value?(f(),r(`span`,nn,b(_(K)(G.value)),1)):u(``,!0)]),n(`div`,rn,[n(`div`,an,[x(_(F),{size:`small`,type:v.value===`chat`?`primary`:`default`,"aria-pressed":v.value===`chat`,onClick:i[5]||=e=>M(`chat`)},{default:h(()=>[s(b(_(g)(`chat.chatMode`)),1)]),_:1},8,[`type`,`aria-pressed`]),x(_(F),{size:`small`,type:v.value===`live`?`primary`:`default`,"aria-pressed":v.value===`live`,onClick:i[6]||=e=>M(`live`)},{default:h(()=>[s(b(_(g)(`chat.liveMode`)),1)]),_:1},8,[`type`,`aria-pressed`])]),v.value===`chat`?(f(),r(D,{key:0},[x(_(I),{trigger:`hover`},{trigger:h(()=>[x(_(F),{quaternary:``,size:`small`,onClick:i[7]||=e=>J(),circle:``},{icon:h(()=>[...i[12]||=[n(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[n(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),n(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})],-1)]]),_:1})]),default:h(()=>[s(` `+b(_(g)(`chat.copySessionId`)),1)]),_:1}),x(_(F),{size:`small`,circle:k.value,onClick:q},{icon:h(()=>[...i[13]||=[n(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[n(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),n(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]]),default:h(()=>[k.value?u(``,!0):(f(),r(D,{key:0},[s(b(_(g)(`chat.newChat`)),1)],64))]),_:1},8,[`circle`])],64)):u(``,!0)])]),v.value===`chat`?(f(),r(D,{key:0},[x(Dt),x(ve)],64)):(f(),O(He,{key:1,"human-only":_(c).humanOnly},null,8,[`human-only`]))])]))}}),[[`__scopeId`,`data-v-ed01ae3e`]]),sn={class:`chat-view`},cn=j(e({__name:`ChatView`,setup(e){let t=B(),n=U(),a=V();return i(async()=>{t.loadModels(),await a.fetchProfiles(),n.loadSessions()}),(e,t)=>(f(),r(`div`,sn,[x(on)]))}}),[[`__scopeId`,`data-v-6dae3628`]]);export{cn as default};
@@ -1 +0,0 @@
1
- [data-v-e8019954]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-e8019954]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.chat-input-area[data-v-e8019954]{border-top:1px solid var(--border-color);flex-shrink:0;padding:12px 20px 16px}.input-top-bar[data-v-e8019954]{align-items:center;gap:8px;padding:0 0 6px;display:flex}.context-info[data-v-e8019954]{color:var(--text-muted);font-size:11px}.context-info.context-warning[data-v-e8019954]{color:#e8a735}.context-bar[data-v-e8019954]{background:#80808033;border-radius:2px;width:60px;height:4px;overflow:hidden}.context-bar-fill[data-v-e8019954]{background:linear-gradient(90deg,#8080804d,#80808099);border-radius:2px;height:100%;transition:width .3s}.context-bar-fill.context-bar-warn[data-v-e8019954]{background:linear-gradient(90deg,#c98a1a,#e8a735)}.context-bar-fill.context-bar-danger[data-v-e8019954]{background:linear-gradient(90deg,#c43a2a,#e85d4a)}.attachment-previews[data-v-e8019954]{flex-wrap:wrap;gap:8px;padding:0 0 10px;display:flex}.attachment-preview[data-v-e8019954]{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;position:relative;overflow:hidden}.attachment-preview.image[data-v-e8019954]{width:64px;height:64px}.attachment-thumb[data-v-e8019954]{object-fit:cover;width:100%;height:100%}.attachment-file[data-v-e8019954]{min-width:80px;max-width:140px;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:8px 12px;display:flex}.attachment-file .file-name[data-v-e8019954]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;overflow:hidden}.attachment-file .file-size[data-v-e8019954]{color:var(--text-muted);font-size:10px}.attachment-remove[data-v-e8019954]{width:18px;height:18px;color:var(--text-on-overlay);cursor:pointer;opacity:0;background:#00000080;border:none;border-radius:50%;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:2px;right:2px}.attachment-preview:hover .attachment-remove[data-v-e8019954]{opacity:1}.file-input-hidden[data-v-e8019954]{display:none}.input-wrapper[data-v-e8019954]{background-color:var(--bg-input);border:1px solid var(--border-color);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;transition:border-color .15s,background-color .15s;display:flex}.input-wrapper[data-v-e8019954]:focus-within{border-color:var(--accent-primary)}.dark .input-wrapper[data-v-e8019954]{background-color:#333}.input-textarea[data-v-e8019954]{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;flex:1;min-height:20px;max-height:100px;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;overflow-y:auto}.input-textarea[data-v-e8019954]::placeholder{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.input-actions[data-v-e8019954]{flex-shrink:0;align-items:center;gap:6px;display:flex}.input-wrapper.drag-over[data-v-e8019954]{border-color:var(--accent-info);background-color:rgba(var(--accent-info-rgb), .04);border-style:dashed}[data-v-be298d0d]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-be298d0d]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.conversation-monitor[data-v-be298d0d]{flex:1;min-height:0;display:flex}.conversation-monitor__sidebar[data-v-be298d0d]{border-right:1px solid var(--border-color);scrollbar-gutter:stable;flex-shrink:0;width:260px;overflow-y:auto}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar{width:4px}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar-thumb{background:rgba(var(--text-muted), .3);border-radius:4px}.conversation-monitor__sidebar[data-v-be298d0d]::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-muted), .5)}.conversation-monitor__session[data-v-be298d0d]{border:0;border-bottom:1px solid rgba(var(--border-color), .6);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;padding:12px 14px}.conversation-monitor__session.active[data-v-be298d0d]{background:rgba(var(--accent-primary-rgb), .12);color:var(--text-primary);font-weight:500}.conversation-monitor__session.active .conversation-monitor__session-title[data-v-be298d0d]{color:var(--accent-primary)}.conversation-monitor__session-title-row[data-v-be298d0d],.conversation-monitor__detail-meta[data-v-be298d0d],.conversation-monitor__message-meta[data-v-be298d0d]{align-items:center;gap:6px;display:flex}.conversation-monitor__session-title[data-v-be298d0d],.conversation-monitor__detail-title[data-v-be298d0d]{font-weight:600}.conversation-monitor__session-live[data-v-be298d0d]{color:var(--accent-primary);font-size:11px}.conversation-monitor__session-meta[data-v-be298d0d],.conversation-monitor__session-preview[data-v-be298d0d],.conversation-monitor__detail-meta[data-v-be298d0d],.conversation-monitor__message-meta[data-v-be298d0d]{color:var(--text-muted);font-size:12px}.conversation-monitor__session-preview[data-v-be298d0d],.conversation-monitor__message-content[data-v-be298d0d]{white-space:pre-wrap;margin-top:6px}.conversation-monitor__detail[data-v-be298d0d]{flex-direction:column;flex:1;min-width:0;display:flex}.conversation-monitor__detail-header[data-v-be298d0d]{border-bottom:1px solid var(--border-color);padding:16px 20px}.conversation-monitor__messages[data-v-be298d0d]{flex-direction:column;flex:1;gap:12px;padding:16px 20px;display:flex;overflow-y:auto}.conversation-monitor__message[data-v-be298d0d]{background:rgba(var(--bg-secondary), .8);border-radius:10px;padding:12px 14px}.conversation-monitor__message.role-user[data-v-be298d0d]{border:1px solid rgba(var(--accent-primary), .18)}.conversation-monitor__message.role-assistant[data-v-be298d0d]{border:1px solid rgba(var(--border-color), .9)}.conversation-monitor__empty[data-v-be298d0d]{color:var(--text-muted);padding:24px}.conversation-monitor__empty--error[data-v-be298d0d]{color:var(--error)}@media (width<=768px){.conversation-monitor[data-v-be298d0d]{flex-direction:column}.conversation-monitor__sidebar[data-v-be298d0d]{border-right:0;border-bottom:1px solid var(--border-color);flex-shrink:0;width:100%;max-height:220px}.conversation-monitor__detail[data-v-be298d0d]{min-height:0;overflow:hidden}}[data-v-3dba3cc8]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-3dba3cc8]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.message[data-v-3dba3cc8]{flex-direction:column;display:flex}.message.user[data-v-3dba3cc8]{align-items:flex-end}.message.user .msg-body[data-v-3dba3cc8]{max-width:75%}.message.user .msg-content.user[data-v-3dba3cc8]{align-items:flex-end}.message.user .message-bubble[data-v-3dba3cc8]{background-color:var(--msg-user-bg);border-radius:10px}.message.assistant[data-v-3dba3cc8]{flex-direction:row;align-items:flex-start;gap:8px}.message.assistant .msg-body[data-v-3dba3cc8]{max-width:80%}.message.assistant .msg-avatar[data-v-3dba3cc8]{flex-shrink:0;width:40px;height:40px;margin-top:2px}.message.assistant .message-bubble[data-v-3dba3cc8]{background-color:var(--msg-assistant-bg);border-radius:10px}.message.tool[data-v-3dba3cc8],.message.system[data-v-3dba3cc8]{align-items:flex-start}.message.system .message-bubble.system[data-v-3dba3cc8]{border-left:3px solid var(--warning);background-color:rgba(var(--warning-rgb), .06);border-radius:6px;max-width:80%}.message.highlight .message-bubble[data-v-3dba3cc8]{box-shadow:0 0 0 1px rgba(var(--accent-primary-rgb), .45)}.msg-body[data-v-3dba3cc8]{align-items:flex-start;gap:8px;max-width:85%;display:flex}.msg-content[data-v-3dba3cc8]{flex-direction:column;min-width:0;display:flex}.message-bubble[data-v-3dba3cc8]{word-break:break-word;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.65}.msg-attachments[data-v-3dba3cc8]{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.msg-attachment[data-v-3dba3cc8]{border:1px solid var(--border-light);background-color:#0000000a;border-radius:6px;overflow:hidden}.msg-attachment.image[data-v-3dba3cc8]{max-width:200px}.msg-attachment-thumb[data-v-3dba3cc8]{object-fit:contain;cursor:pointer;max-width:200px;max-height:160px;display:block}.msg-attachment-file[data-v-3dba3cc8]{color:var(--text-secondary);align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:flex}.msg-attachment-file .att-name[data-v-3dba3cc8]{white-space:nowrap;text-overflow:ellipsis;max-width:160px;overflow:hidden}.msg-attachment-file .att-size[data-v-3dba3cc8]{color:var(--text-muted);flex-shrink:0;font-size:11px}.thinking-block[data-v-3dba3cc8]{border-bottom:1px dashed var(--border-light);margin-bottom:8px;padding:4px 0}.thinking-block .thinking-header[data-v-3dba3cc8]{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;align-items:center;gap:6px;padding:2px 4px;font-size:11px;display:flex}.thinking-block .thinking-header[data-v-3dba3cc8]:hover{background:#00000008}.thinking-block .thinking-chevron[data-v-3dba3cc8]{flex-shrink:0;transition:transform .15s}.thinking-block .thinking-chevron.rotated[data-v-3dba3cc8]{transform:rotate(90deg)}.thinking-block .thinking-icon[data-v-3dba3cc8]{flex-shrink:0;font-size:11px}.thinking-block .thinking-label[data-v-3dba3cc8]{flex-shrink:0;font-weight:500}.thinking-block .thinking-meta[data-v-3dba3cc8]{color:var(--text-muted);font-variant-numeric:tabular-nums}.thinking-block .thinking-body[data-v-3dba3cc8]{border-left:2px solid var(--border-light);opacity:.85;margin-top:6px;padding:6px 10px;font-size:13px;font-style:italic}.thinking-block .thinking-body[data-v-3dba3cc8] p{margin:.3em 0}.message-time[data-v-3dba3cc8]{color:var(--text-muted);margin-top:4px;padding:0 4px;font-size:11px}.dark .message-time[data-v-3dba3cc8]{color:#999}.tool-line[data-v-3dba3cc8]{color:var(--text-muted);border-radius:6px;align-items:center;gap:6px;padding:2px 4px;font-size:11px;display:flex}.tool-line.expandable[data-v-3dba3cc8]{cursor:pointer}.tool-line.expandable[data-v-3dba3cc8]:hover{background:#00000008}.tool-line .tool-name[data-v-3dba3cc8]{flex-shrink:0;font-family:JetBrains Mono,Fira Code,Consolas,monospace}.tool-line .tool-preview[data-v-3dba3cc8]{text-overflow:ellipsis;white-space:nowrap;max-width:400px;overflow:hidden}.tool-chevron[data-v-3dba3cc8]{flex-shrink:0;transition:transform .15s}.tool-chevron.rotated[data-v-3dba3cc8]{transform:rotate(90deg)}.tool-spinner[data-v-3dba3cc8]{border:1.5px solid var(--text-muted);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:.6s linear infinite spin-3dba3cc8}.tool-error-badge[data-v-3dba3cc8]{color:var(--error);background:rgba(var(--error-rgb), .08);border-radius:3px;padding:0 4px;font-size:9px;line-height:14px}.tool-details[data-v-3dba3cc8]{border-left:2px solid var(--border-light);margin-top:2px;margin-left:16px;padding-left:10px}.tool-detail-section[data-v-3dba3cc8]{margin-bottom:6px}.tool-detail-label[data-v-3dba3cc8]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px;font-size:10px;font-weight:600}.tool-detail-code-block[data-v-3dba3cc8] .hljs-code-block{margin:0}.tool-detail-code-block[data-v-3dba3cc8] .code-header{background:#00000005}.tool-detail-code-block[data-v-3dba3cc8] code.hljs{white-space:pre-wrap;word-break:break-word;max-height:300px;font-size:11px;overflow-y:auto}@keyframes spin-3dba3cc8{to{transform:rotate(360deg)}}.streaming-cursor[data-v-3dba3cc8]{background-color:var(--text-muted);vertical-align:text-bottom;width:2px;height:1em;margin-left:2px;animation:.8s infinite blink-3dba3cc8;display:inline-block}.streaming-dots[data-v-3dba3cc8]{gap:4px;padding:4px 0;display:flex}.streaming-dots span[data-v-3dba3cc8]{background-color:var(--text-muted);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite pulse-3dba3cc8}.streaming-dots span[data-v-3dba3cc8]:nth-child(2){animation-delay:.2s}.streaming-dots span[data-v-3dba3cc8]:nth-child(3){animation-delay:.4s}@keyframes blink-3dba3cc8{0%,50%{opacity:1}51%,to{opacity:0}}@keyframes pulse-3dba3cc8{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.image-preview-overlay[data-v-3dba3cc8]{z-index:9999;cursor:pointer;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.image-preview-img[data-v-3dba3cc8]{object-fit:contain;border-radius:4px;max-width:90vw;max-height:90vh}@media (width<=768px){.message.user .msg-body[data-v-3dba3cc8],.message.assistant .msg-body[data-v-3dba3cc8],.message.system .msg-body[data-v-3dba3cc8]{max-width:100%}}[data-v-1bc92f44]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-1bc92f44]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.message-list[data-v-1bc92f44]{background-color:var(--bg-card);flex-direction:column;flex:1;gap:16px;padding:20px;display:flex;overflow-y:auto}.dark .message-list[data-v-1bc92f44]{background-color:#333}.empty-state[data-v-1bc92f44]{color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.empty-state .empty-logo[data-v-1bc92f44]{opacity:.25;width:48px;height:48px}.empty-state p[data-v-1bc92f44]{font-size:14px}.fade-enter-active[data-v-1bc92f44],.fade-leave-active[data-v-1bc92f44]{transition:opacity .4s}.fade-enter-from[data-v-1bc92f44],.fade-leave-to[data-v-1bc92f44]{opacity:0}.streaming-indicator[data-v-1bc92f44]{align-items:flex-start;gap:12px;padding:4px;display:flex}.streaming-indicator .thinking-video[data-v-1bc92f44]{object-fit:contain;border-radius:10px;flex-shrink:0;width:120px;height:213px}.tool-calls-panel[data-v-1bc92f44]{scrollbar-width:none;-ms-overflow-style:none;flex-direction:column;gap:4px;max-height:213px;padding-top:4px;display:flex;overflow-y:auto}.tool-calls-panel[data-v-1bc92f44]::-webkit-scrollbar{display:none}.tool-call-item[data-v-1bc92f44]{color:var(--text-secondary);background:#00000008;border-radius:6px;align-items:center;gap:6px;padding:3px 8px;font-size:11px;display:flex}.dark .tool-call-item[data-v-1bc92f44]{background:#ffffff0f}.tool-call-item .tool-call-icon[data-v-1bc92f44]{color:var(--text-muted);flex-shrink:0}.tool-call-item .tool-call-name[data-v-1bc92f44]{flex-shrink:0;font-family:JetBrains Mono,Fira Code,Consolas,monospace}.tool-call-item .tool-call-preview[data-v-1bc92f44]{text-overflow:ellipsis;white-space:nowrap;max-width:300px;color:var(--text-muted);overflow:hidden}.tool-call-spinner[data-v-1bc92f44]{border:1.5px solid var(--text-muted);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:.6s linear infinite spin-1bc92f44}.tool-call-error[data-v-1bc92f44]{color:var(--error);background:rgba(var(--error), .08);border-radius:3px;padding:0 4px;font-size:9px;line-height:14px}@keyframes spin-1bc92f44{to{transform:rotate(360deg)}}[data-v-ed01ae3e]:root{--bg-primary:#fafafa;--bg-secondary:#f0f0f0;--bg-sidebar:#f5f5f5;--bg-card:#fff;--bg-card-hover:#fafafa;--bg-input:#fff;--border-color:#e0e0e0;--border-light:#ebebeb;--accent-primary:#333;--accent-hover:#1a1a1a;--accent-muted:#888;--text-primary:#1a1a1a;--text-secondary:#666;--text-muted:#999;--success:#2e7d32;--error:#c62828;--warning:#f57f17;--msg-user-bg:#f5f5f5;--msg-assistant-bg:#f5f5f5;--msg-system-border:#bdbdbd;--code-bg:#f4f4f4;--text-on-accent:#fff;--text-on-overlay:#fff;--accent-info:#4a90d9;--accent-primary-rgb:51, 51, 51;--accent-hover-rgb:26, 26, 26;--text-primary-rgb:26, 26, 26;--text-muted-rgb:153, 153, 153;--success-rgb:46, 125, 50;--error-rgb:198, 40, 40;--warning-rgb:245, 127, 23;--accent-info-rgb:74, 144, 217}.dark[data-v-ed01ae3e]{--bg-primary:#1a1a1a;--bg-secondary:#252525;--bg-sidebar:#202020;--bg-card:#333;--bg-card-hover:#333;--bg-input:#2a2a2a;--border-color:#3a3a3a;--border-light:#333;--accent-primary:#e0e0e0;--accent-hover:#f5f5f5;--accent-muted:#888;--text-primary:#f0f0f0;--text-secondary:silver;--text-muted:#888;--success:#66bb6a;--error:#ef5350;--warning:#ffb74d;--msg-user-bg:#252525;--msg-assistant-bg:#252525;--msg-system-border:#555;--code-bg:#1e1e1e;--text-on-accent:#1a1a1a;--text-on-overlay:#fff;--accent-info:#6ba3d6;--accent-primary-rgb:240, 240, 240;--accent-hover-rgb:245, 245, 245;--text-primary-rgb:240, 240, 240;--text-muted-rgb:136, 136, 136;--success-rgb:102, 187, 106;--error-rgb:239, 83, 80;--warning-rgb:255, 183, 77;--accent-info-rgb:107, 163, 214}.chat-panel[data-v-ed01ae3e]{height:100%;display:flex;position:relative}.session-list[data-v-ed01ae3e]{border-right:1px solid var(--border-color);flex-direction:column;flex-shrink:0;width:220px;transition:width .25s,opacity .25s;display:flex;overflow:hidden}.session-list.collapsed[data-v-ed01ae3e]{opacity:0;pointer-events:none;border-right:none;width:0}@media (width<=768px){.session-list[data-v-ed01ae3e]{z-index:10;background:var(--bg-card);width:280px;height:100%;position:absolute;top:0;left:0;box-shadow:2px 0 8px #0000001a}.session-list.collapsed[data-v-ed01ae3e]{opacity:0;transform:translate(-100%)}.session-close-btn[data-v-ed01ae3e]{display:flex}.session-backdrop[data-v-ed01ae3e]{z-index:9;opacity:0;pointer-events:none;background:#0006;transition:opacity .15s;position:absolute;inset:0}.session-backdrop.active[data-v-ed01ae3e]{opacity:1;pointer-events:auto}}.session-list-header[data-v-ed01ae3e]{flex-shrink:0;justify-content:space-between;align-items:center;padding:12px;display:flex}.session-list-actions[data-v-ed01ae3e]{align-items:center;gap:4px;display:flex}.session-close-btn[data-v-ed01ae3e]{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;padding:4px;display:none}.session-close-btn[data-v-ed01ae3e]:hover{background:rgba(var(--accent-primary), .06)}.session-list-title[data-v-ed01ae3e]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:12px;font-weight:600}.session-group-header[data-v-ed01ae3e]{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:4px;padding:6px 10px 4px;display:flex}.session-group-header--static[data-v-ed01ae3e]{cursor:default}.group-chevron[data-v-ed01ae3e]{flex-shrink:0;transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed[data-v-ed01ae3e]{transform:rotate(0)}.session-group-label[data-v-ed01ae3e]{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:10px;font-weight:600}.session-group-count[data-v-ed01ae3e]{color:var(--text-muted);font-size:10px;font-weight:400}.session-items[data-v-ed01ae3e]{flex:1;padding:0 6px 12px;overflow-y:auto}.session-loading[data-v-ed01ae3e],.session-empty[data-v-ed01ae3e]{color:var(--text-muted);text-align:center;padding:16px 10px;font-size:12px}[data-v-ed01ae3e] .session-item{cursor:pointer;text-align:left;width:100%;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:2px;padding:8px 10px;transition:all .15s;display:flex}[data-v-ed01ae3e] .session-item:hover{background:rgba(var(--accent-primary), .06);color:var(--text-primary)}[data-v-ed01ae3e] .session-item:hover .session-item-delete{opacity:1}[data-v-ed01ae3e] .session-item.active{background:rgba(var(--accent-primary-rgb), .12);color:var(--text-primary);font-weight:500}[data-v-ed01ae3e] .session-item.active .session-item-title,[data-v-ed01ae3e] .session-item.live .session-item-title{color:var(--accent-primary)}[data-v-ed01ae3e] .session-item-content{flex:1;overflow:hidden}[data-v-ed01ae3e] .session-item-title-row{align-items:center;gap:6px;min-width:0;display:flex}[data-v-ed01ae3e] .session-item-title{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:13px;display:block;overflow:hidden}[data-v-ed01ae3e] .session-item-active-indicator{color:var(--accent-primary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}[data-v-ed01ae3e] .session-item-active-spinner{animation:1.1s linear infinite session-spin-ed01ae3e}[data-v-ed01ae3e] .session-item-live-badge{letter-spacing:.04em;text-transform:uppercase;color:var(--accent-primary);background:rgba(var(--accent-primary-rgb), .1);border-radius:999px;flex-shrink:0;align-items:center;gap:4px;padding:1px 7px;font-size:10px;font-weight:600;line-height:16px;display:inline-flex}[data-v-ed01ae3e] .live-dot{background:var(--accent-primary);border-radius:50%;width:6px;height:6px;animation:2s ease-in-out infinite live-pulse-ed01ae3e}@keyframes live-pulse-ed01ae3e{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}[data-v-ed01ae3e] .session-item-pin{color:var(--accent-primary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}[data-v-ed01ae3e] .session-item-time{color:var(--text-muted);font-size:11px}[data-v-ed01ae3e] .session-item-meta{align-items:center;gap:6px;margin-top:2px;display:flex}[data-v-ed01ae3e] .session-item-model{color:var(--accent-primary);background:rgba(var(--accent-primary), .08);text-overflow:ellipsis;white-space:nowrap;border-radius:3px;flex-shrink:0;max-width:100px;padding:0 5px;font-size:10px;line-height:16px;overflow:hidden}[data-v-ed01ae3e] .session-item-delete{opacity:.5;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:3px;flex-shrink:0;padding:2px;transition:all .15s}[data-v-ed01ae3e] .session-item-delete:hover{color:var(--error);background:rgba(var(--error), .1)}@keyframes session-spin-ed01ae3e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-main[data-v-ed01ae3e]{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.chat-header[data-v-ed01ae3e]{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:21px 20px;display:flex}.header-left[data-v-ed01ae3e]{flex:1;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.header-session-title[data-v-ed01ae3e]{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.source-badge[data-v-ed01ae3e]{color:var(--text-muted);background:rgba(var(--text-muted), .12);white-space:nowrap;border-radius:8px;flex-shrink:0;padding:1px 7px;font-size:10px;line-height:16px}.header-actions[data-v-ed01ae3e]{flex-shrink:0;align-items:center;gap:4px;display:flex}.chat-mode-toggle[data-v-ed01ae3e]{align-items:center;gap:4px;margin-right:4px;display:flex}@media (width<=768px){.chat-header[data-v-ed01ae3e]{padding:16px 12px 16px 52px}}.chat-view[data-v-6dae3628]{height:calc(100 * var(--vh));flex-direction:column;display:flex}
@@ -1,43 +0,0 @@
1
- import{o as e,r as t,t as n}from"./chunk-CFjPhJqf.js";import{A as r,C as i,E as a,G as o,H as s,K as c,L as l,M as u,O as d,P as f,Q as p,S as m,T as h,U as g,W as _,Y as v,Z as y,a as b,ft as x,g as S,h as C,ht as w,k as T,m as E,mt as ee,n as D,p as te,pt as O,st as k,ut as A,v as j,w as M,y as ne}from"./router-5cFNHmOU.js";import{n as N}from"./pinia-81mgPlhX.js";import{r as re,t as P}from"./_plugin-vue_export-helper-zzZTsdbA.js";import{B as F,C as I,H as ie,L as ae,R as L,S as oe,T as se,V as R,b as ce,c as le,d as ue,h as de,j as fe,k as pe,m as me}from"./browser-CgcDgZRQ.js";import{F as he,P as ge,t as _e}from"./Popover-B8YiUf_0.js";import{i as ve}from"./create-DgSD0xTd.js";import{d as ye}from"./Suffix-DZj4ifc6.js";import{r as be}from"./fade-in.cssr-H0zbZKHk.js";import{r as xe,t as Se}from"./Dropdown-CvRTj4E1.js";import{t as Ce}from"./Select-xzHVvC6Z.js";import{a as we,t as z}from"./Button-Bj8nsuAL.js";import{t as B}from"./Input-D2WbyNa2.js";import{t as V}from"./InputNumber-9MJKuf2n.js";import{t as Te}from"./fade-in-height-expand.cssr-BaP1-3vX.js";import{t as Ee}from"./light-DTKgdbNd.js";import{t as De}from"./use-message-DONOe4sg.js";import{t as Oe}from"./Space-8n66xWpp.js";import{t as ke}from"./Popconfirm-xTR4QKnq.js";import{t as Ae}from"./profiles-J33FxWil.js";import{t as je}from"./MarkdownRenderer-CA0C409H.js";var Me=r({name:`ChevronLeft`,render(){return u(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},u(`path`,{d:`M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z`,fill:`currentColor`}))}}),Ne=L(`collapse`,`width: 100%;`,[L(`collapse-item`,`
2
- font-size: var(--n-font-size);
3
- color: var(--n-text-color);
4
- transition:
5
- color .3s var(--n-bezier),
6
- border-color .3s var(--n-bezier);
7
- margin: var(--n-item-margin);
8
- `,[R(`disabled`,[F(`header`,`cursor: not-allowed;`,[F(`header-main`,`
9
- color: var(--n-title-text-color-disabled);
10
- `),L(`collapse-item-arrow`,`
11
- color: var(--n-arrow-color-disabled);
12
- `)])]),L(`collapse-item`,`margin-left: 32px;`),ae(`&:first-child`,`margin-top: 0;`),ae(`&:first-child >`,[F(`header`,`padding-top: 0;`)]),R(`left-arrow-placement`,[F(`header`,[L(`collapse-item-arrow`,`margin-right: 4px;`)])]),R(`right-arrow-placement`,[F(`header`,[L(`collapse-item-arrow`,`margin-left: 4px;`)])]),F(`content-wrapper`,[F(`content-inner`,`padding-top: 16px;`),Te({duration:`0.15s`})]),R(`active`,[F(`header`,[R(`active`,[L(`collapse-item-arrow`,`transform: rotate(90deg);`)])])]),ae(`&:not(:first-child)`,`border-top: 1px solid var(--n-divider-color);`),ie(`disabled`,[R(`trigger-area-main`,[F(`header`,[F(`header-main`,`cursor: pointer;`),L(`collapse-item-arrow`,`cursor: default;`)])]),R(`trigger-area-arrow`,[F(`header`,[L(`collapse-item-arrow`,`cursor: pointer;`)])]),R(`trigger-area-extra`,[F(`header`,[F(`header-extra`,`cursor: pointer;`)])])]),F(`header`,`
13
- font-size: var(--n-title-font-size);
14
- display: flex;
15
- flex-wrap: nowrap;
16
- align-items: center;
17
- transition: color .3s var(--n-bezier);
18
- position: relative;
19
- padding: var(--n-title-padding);
20
- color: var(--n-title-text-color);
21
- `,[F(`header-main`,`
22
- display: flex;
23
- flex-wrap: nowrap;
24
- align-items: center;
25
- font-weight: var(--n-title-font-weight);
26
- transition: color .3s var(--n-bezier);
27
- flex: 1;
28
- color: var(--n-title-text-color);
29
- `),F(`header-extra`,`
30
- display: flex;
31
- align-items: center;
32
- transition: color .3s var(--n-bezier);
33
- color: var(--n-text-color);
34
- `),L(`collapse-item-arrow`,`
35
- display: flex;
36
- transition:
37
- transform .15s var(--n-bezier),
38
- color .3s var(--n-bezier);
39
- font-size: 18px;
40
- color: var(--n-arrow-color);
41
- `)])])]),Pe=Object.assign(Object.assign({},le.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:`left`},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:`if`},triggerAreas:{type:Array,default:()=>[`main`,`extra`,`arrow`]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),Fe=pe(`n-collapse`),Ie=r({name:`Collapse`,props:Pe,slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=de(e),a=k(e.defaultExpandedNames),s=ye(m(()=>e.expandedNames),a),c=le(`Collapse`,`-collapse`,Ne,Ee,e,n);function l(t){let{"onUpdate:expandedNames":n,onUpdateExpandedNames:r,onExpandedNamesChange:i}=e;r&&I(r,t),n&&I(n,t),i&&I(i,t),a.value=t}function u(t){let{onItemHeaderClick:n}=e;n&&I(n,t)}function d(t,n,r){let{accordion:i}=e,{value:a}=s;if(i)t?(l([n]),u({name:n,expanded:!0,event:r})):(l([]),u({name:n,expanded:!1,event:r}));else if(!Array.isArray(a))l([n]),u({name:n,expanded:!0,event:r});else{let e=a.slice(),t=e.findIndex(e=>n===e);~t?(e.splice(t,1),l(e),u({name:n,expanded:!1,event:r})):(e.push(n),l(e),u({name:n,expanded:!0,event:r}))}}o(Fe,{props:e,mergedClsPrefixRef:n,expandedNamesRef:s,slots:t,toggleItem:d});let f=ue(`Collapse`,i,n),p=m(()=>{let{common:{cubicBezierEaseInOut:e},self:{titleFontWeight:t,dividerColor:n,titlePadding:r,titleTextColor:i,titleTextColorDisabled:a,textColor:o,arrowColor:s,fontSize:l,titleFontSize:u,arrowColorDisabled:d,itemMargin:f}}=c.value;return{"--n-font-size":l,"--n-bezier":e,"--n-text-color":o,"--n-divider-color":n,"--n-title-padding":r,"--n-title-font-size":u,"--n-title-text-color":i,"--n-title-text-color-disabled":a,"--n-title-font-weight":t,"--n-arrow-color":s,"--n-arrow-color-disabled":d,"--n-item-margin":f}}),h=r?me(`collapse`,void 0,p,e):void 0;return{rtlEnabled:f,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:p,themeClass:h?.themeClass,onRender:h?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),u(`div`,{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),Le=r({name:`CollapseItemContent`,props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:ge(A(e,`show`))}},render(){return u(we,null,{default:()=>{let{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,i=t===`show`&&n,a=u(`div`,{class:`${r}-collapse-item__content-wrapper`},u(`div`,{class:`${r}-collapse-item__content-inner`},this.$slots));return i?p(a,[[E,e]]):e?a:null}})}}),Re=r({name:`CollapseItem`,props:{title:String,name:[String,Number],disabled:Boolean,displayDirective:String},setup(e){let{mergedRtlRef:t}=de(e),n=he(),r=fe(()=>e.name??n),i=f(Fe);i||se(`collapse-item`,"`n-collapse-item` must be placed inside `n-collapse`.");let{expandedNamesRef:a,props:o,mergedClsPrefixRef:s,slots:c}=i,l=m(()=>{let{value:e}=a;if(Array.isArray(e)){let{value:t}=r;return!~e.findIndex(e=>e===t)}else if(e){let{value:t}=r;return t!==e}return!0});return{rtlEnabled:ue(`Collapse`,t,s),collapseSlots:c,randomName:n,mergedClsPrefix:s,collapsed:l,triggerAreas:A(o,`triggerAreas`),mergedDisplayDirective:m(()=>{let{displayDirective:t}=e;return t||o.displayDirective}),arrowPlacement:m(()=>o.arrowPlacement),handleClick(t){let n=`main`;ve(t,`arrow`)&&(n=`arrow`),ve(t,`extra`)&&(n=`extra`),o.triggerAreas.includes(n)&&i&&!e.disabled&&i.toggleItem(l.value,r.value,t)}}},render(){let{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:i,mergedClsPrefix:a,disabled:o,triggerAreas:s}=this,c=ce(t.header,{collapsed:r},()=>[this.title]),l=t[`header-extra`]||e[`header-extra`],d=t.arrow||e.arrow;return u(`div`,{class:[`${a}-collapse-item`,`${a}-collapse-item--${n}-arrow-placement`,o&&`${a}-collapse-item--disabled`,!r&&`${a}-collapse-item--active`,s.map(e=>`${a}-collapse-item--trigger-area-${e}`)]},u(`div`,{class:[`${a}-collapse-item__header`,!r&&`${a}-collapse-item__header--active`]},u(`div`,{class:`${a}-collapse-item__header-main`,onClick:this.handleClick},n===`right`&&c,u(`div`,{class:`${a}-collapse-item-arrow`,key:+!this.rtlEnabled,"data-arrow":!0},ce(d,{collapsed:r},()=>[u(be,{clsPrefix:a},{default:()=>this.rtlEnabled?u(Me,null):u(xe,null)})])),n===`left`&&c),oe(l,{collapsed:r},e=>u(`div`,{class:`${a}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},e))),u(Le,{clsPrefix:a,displayDirective:i,show:!r},t))}}),ze=e(n(((e,t)=>{function n(e,t,n){e+=``;var r={"00":{A:{env:[`#ff2f2b`],clo:[`#fff`,`#000`],head:[`#fff`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#000`,`none`,`#00FFFF`],top:[`#fff`,`#fff`]},B:{env:[`#ff1ec1`],clo:[`#000`,`#fff`],head:[`#ffc1c1`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#FF2D00`,`#fff`,`none`],top:[`#a21d00`,`#fff`]},C:{env:[`#0079b1`],clo:[`#0e00b1`,`#d1fffe`],head:[`#f5aa77`],mouth:[`#fff`,`#000`,`#000`],eyes:[`#0c00de`,`#fff`,`none`],top:[`#acfffd`,`#acfffd`]}},"01":{A:{env:[`#a50000`],clo:[`#f06`,`#8e0039`],head:[`#85492C`],mouth:[`#000`],eyes:[`#000`,`#ff9809`],top:[`#ff9809`,`#ff9809`,`none`,`none`]},B:{env:[`#40E83B`],clo:[`#00650b`,`#62ce5a`],head:[`#f7c1a6`],mouth:[`#6e1c1c`],eyes:[`#000`,`#ff833b`],top:[`#67FFCC`,`none`,`none`,`#ecff3b`]},C:{env:[`#ff2c2c`],clo:[`#fff`,`#000`],head:[`#ffce8b`],mouth:[`#000`],eyes:[`#000`,`#0072ff`],top:[`#ff9809`,`none`,`#ffc809`,`none`]}},"02":{A:{env:[`#ff7520`],clo:[`#d12823`],head:[`#fee3c5`],mouth:[`#d12823`],eyes:[`#000`,`none`],top:[`#000`,`none`,`none`,`#FFCC00`,`red`]},B:{env:[`#ff9700`],clo:[`#000`],head:[`#d2ad6d`],mouth:[`#000`],eyes:[`#000`,`#00ffdc`],top:[`#fdff00`,`#fdff00`,`none`,`none`,`none`]},C:{env:[`#26a7ff`],clo:[`#d85cd7`],head:[`#542e02`],mouth:[`#f70014`],eyes:[`#000`,`magenta`],top:[`#FFCC00`,`#FFCC00`,`#FFCC00`,`#ff0000`,`yellow`]}},"03":{A:{env:[`#6FC30E`],clo:[`#b4e1fa`,`#5b5d6e`,`#515262`,`#a0d2f0`,`#a0d2f0`],head:[`#fae3b9`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#8eff45`,`#8eff45`,`none`,`none`]},B:{env:[`#00a58c`],clo:[`#000`,`none`,`none`,`none`,`none`],head:[`#FAD2B9`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#FFC600`,`none`,`#FFC600`,`none`]},C:{env:[`#ff501f`],clo:[`#000`,`#ff0000`,`#ff0000`,`#7d7d7d`,`#7d7d7d`],head:[`#fff3dc`],mouth:[`#d2001b`,`none`],eyes:[`#000`],top:[`#D2001B`,`none`,`none`,`#D2001B`]}},"04":{A:{env:[`#fc0`],clo:[`#901e0e`,`#ffbe1e`,`#ffbe1e`,`#c55f54`],head:[`#f8d9ad`],mouth:[`#000`,`none`,`#000`,`none`],eyes:[`#000`],top:[`#583D00`,`#AF892E`,`#462D00`,`#a0a0a0`]},B:{env:[`#386465`],clo:[`#fff`,`#333`,`#333`,`#333`],head:[`#FFD79D`],mouth:[`#000`,`#000`,`#000`,`#000`],eyes:[`#000`],top:[`#27363C`,`#5DCAD4`,`#314652`,`#333`]},C:{env:[`#DFFF00`],clo:[`#304267`,`#aab0b1`,`#aab0b1`,`#aab0b1`],head:[`#e6b876`],mouth:[`#50230a`,`#50230a`,`#50230a`,`#50230a`],eyes:[`#000`],top:[`#333`,`#afafaf`,`#222`,`#6d3a1d`]}},"05":{A:{env:[`#a09300`],clo:[`#c7d4e2`,`#435363`,`#435363`,`#141720`,`#141720`,`#e7ecf2`,`#e7ecf2`],head:[`#f5d4a6`],mouth:[`#000`,`#cf9f76`],eyes:[`#000`,`#000`,`#000`,`#000`,`#000`,`#000`,`#fff`,`#fff`,`#fff`,`#fff`,`#000`,`#000`],top:[`none`,`#fdff00`]},B:{env:[`#b3003e`],clo:[`#000`,`#435363`,`#435363`,`#000`,`none`,`#e7ecf2`,`#e7ecf2`],head:[`#f5d4a6`],mouth:[`#000`,`#af9f94`],eyes:[`#9ff3ff;opacity:0.96`,`#000`,`#9ff3ff;opacity:0.96`,`#000`,`#2f508a`,`#000`,`#000`,`#000`,`none`,`none`,`none`,`none`],top:[`#ff9a00`,`#ff9a00`]},C:{env:[`#884f00`],clo:[`#ff0000`,`#fff`,`#fff`,`#141720`,`#141720`,`#e7ecf2`,`#e7ecf2`],head:[`#c57b14`],mouth:[`#000`,`#cf9f76`],eyes:[`none`,`#000`,`none`,`#000`,`#5a0000`,`#000`,`#000`,`#000`,`none`,`none`,`none`,`none`],top:[`#efefef`,`none`]}},"06":{A:{env:[`#8acf00`],clo:[`#ee2829`,`#ff0`],head:[`#ffce73`],mouth:[`#fff`,`#000`],eyes:[`#000`],top:[`#000`,`#000`,`none`,`#000`,`#ff4e4e`,`#000`]},B:{env:[`#00d2a3`],clo:[`#0D0046`,`#ffce73`],head:[`#ffce73`],mouth:[`#000`,`none`],eyes:[`#000`],top:[`#000`,`#000`,`#000`,`none`,`#ffb358`,`#000`,`none`,`none`]},C:{env:[`#ff184e`],clo:[`#000`,`none`],head:[`#ffce73`],mouth:[`#ff0000`,`none`],eyes:[`#000`],top:[`none`,`none`,`none`,`none`,`none`,`#ffc107`,`none`,`none`]}},"07":{A:{env:[`#00deae`],clo:[`#ff0000`],head:[`#ffce94`],mouth:[`#f73b6c`,`#000`],eyes:[`#e91e63`,`#000`,`#e91e63`,`#000`,`#000`,`#000`],top:[`#dd104f`,`#dd104f`,`#f73b6c`,`#dd104f`]},B:{env:[`#181284`],clo:[`#491f49`,`#ff9809`,`#491f49`],head:[`#f6ba97`],mouth:[`#ff9809`,`#000`],eyes:[`#c4ffe4`,`#000`,`#c4ffe4`,`#000`,`#000`,`#000`],top:[`none`,`none`,`#d6f740`,`#516303`]},C:{env:[`#bcf700`],clo:[`#ff14e4`,`#000`,`#14fffd`],head:[`#7b401e`],mouth:[`#666`,`#000`],eyes:[`#00b5b4`,`#000`,`#00b5b4`,`#000`,`#000`,`#000`],top:[`#14fffd`,`#14fffd`,`#14fffd`,`#0d3a62`]}},"08":{A:{env:[`#0df`],clo:[`#571e57`,`#ff0`],head:[`#f2c280`],eyes:[`#795548`,`#000`],mouth:[`#ff0000`],top:[`#de3b00`,`none`]},B:{env:[`#B400C2`],clo:[`#0D204A`,`#00ffdf`],head:[`#ca8628`],eyes:[`#cbbdaf`,`#000`],mouth:[`#1a1a1a`],top:[`#000`,`#000`]},C:{env:[`#ffe926`],clo:[`#00d6af`,`#000`],head:[`#8c5100`],eyes:[`none`,`#000`],mouth:[`#7d0000`],top:[`#f7f7f7`,`none`]}},"09":{A:{env:[`#4aff0c`],clo:[`#101010`,`#fff`,`#fff`],head:[`#dbbc7f`],mouth:[`#000`],eyes:[`#000`,`none`,`none`],top:[`#531148`,`#531148`,`#531148`,`none`]},B:{env:[`#FFC107`],clo:[`#033c58`,`#fff`,`#fff`],head:[`#dbc97f`],mouth:[`#000`],eyes:[`none`,`#fff`,`#000`],top:[`#FFEB3B`,`#FFEB3B`,`none`,`#FFEB3B`]},C:{env:[`#FF9800`],clo:[`#b40000`,`#fff`,`#fff`],head:[`#E2AF6B`],mouth:[`#000`],eyes:[`none`,`#fff`,`#000`],top:[`#ec0000`,`#ec0000`,`none`,`none`]}},10:{A:{env:[`#104c8c`],clo:[`#354B65`,`#3D8EBB`,`#89D0DA`,`#00FFFD`],head:[`#cc9a5c`],mouth:[`#222`,`#fff`],eyes:[`#000`,`#000`],top:[`#fff`,`#fff`,`none`]},B:{env:[`#0DC15C`],clo:[`#212121`,`#fff`,`#212121`,`#fff`],head:[`#dca45f`],mouth:[`#111`,`#633b1d`],eyes:[`#000`,`#000`],top:[`none`,`#792B74`,`#792B74`]},C:{env:[`#ffe500`],clo:[`#1e5e80`,`#fff`,`#1e5e80`,`#fff`],head:[`#e8bc86`],mouth:[`#111`,`none`],eyes:[`#000`,`#000`],top:[`none`,`none`,`#633b1d`]}},11:{A:{env:[`#4a3f73`],clo:[`#e6e9ee`,`#f1543f`,`#ff7058`,`#fff`,`#fff`],head:[`#b27e5b`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`#000`,`#57FFFD`],top:[`#ffc`,`#ffc`,`#ffc`]},B:{env:[`#00a08d`],clo:[`#FFBA32`,`#484848`,`#4e4e4e`,`#fff`,`#fff`],head:[`#ab5f2c`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`#ff23fa;opacity:0.39`,`#000`],top:[`#ff90f4`,`#ff90f4`,`#ff90f4`]},C:{env:[`#22535d`],clo:[`#000`,`#ff2500`,`#ff2500`,`#fff`,`#fff`],head:[`#a76c44`],mouth:[`#191919`,`#191919`],eyes:[`#000`,`none`,`#000`],top:[`none`,`#00efff`,`none`]}},12:{A:{env:[`#2668DC`],clo:[`#2385c6`,`#b8d0e0`,`#b8d0e0`],head:[`#ad8a60`],mouth:[`#000`,`#4d4d4d`],eyes:[`#7fb5a2`,`#d1eddf`,`#301e19`],top:[`#fff510`,`#fff510`]},B:{env:[`#643869`],clo:[`#D67D1B`,`#b8d0e0`,`#b8d0e0`],head:[`#CC985A`,`none0000`],mouth:[`#000`,`#ececec`],eyes:[`#1f2644`,`#9b97ce`,`#301e19`],top:[`#00eaff`,`none`]},C:{env:[`#F599FF`],clo:[`#2823C6`,`#b8d0e0`,`#b8d0e0`],head:[`#C7873A`],mouth:[`#000`,`#4d4d4d`],eyes:[`#581b1b`,`#FF8B8B`,`#000`],top:[`none`,`#9c0092`]}},13:{A:{env:[`#d10084`],clo:[`#efedee`,`#00a1e0`,`#00a1e0`,`#efedee`,`#ffce1c`],head:[`#b35f49`],mouth:[`#3a484a`,`#000`],eyes:[`#000`],top:[`#000`,`none`,`#000`,`none`]},B:{env:[`#E6C117`],clo:[`#efedee`,`#ec0033`,`#ec0033`,`#efedee`,`#f2ff05`],head:[`#ffc016`],mouth:[`#4a3737`,`#000`],eyes:[`#000`],top:[`#ffe900`,`#ffe900`,`none`,`#ffe900`]},C:{env:[`#1d8c00`],clo:[`#e000cb`,`#fff`,`#fff`,`#e000cb`,`#ffce1c`],head:[`#b96438`],mouth:[`#000`,`#000`],eyes:[`#000`],top:[`#53ffff`,`#53ffff`,`none`,`none`]}},14:{A:{env:[`#fc0065`],clo:[`#708913`,`#fdea14`,`#708913`,`#fdea14`,`#708913`],head:[`#DEA561`],mouth:[`#444`,`#000`],eyes:[`#000`],top:[`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`,`#32393f`]},B:{env:[`#81f72e`],clo:[`#ff0000`,`#ffc107`,`#ff0000`,`#ffc107`,`#ff0000`],head:[`#ef9831`],mouth:[`#6b0000`,`#000`],eyes:[`#000`],top:[`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`#FFFAAD`,`none`,`none`,`none`,`none`]},C:{env:[`#00D872`],clo:[`#590D00`,`#FD1336`,`#590D00`,`#FD1336`,`#590D00`],head:[`#c36c00`],mouth:[`#56442b`,`#000`],eyes:[`#000`],top:[`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`#004E4C`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`]}},15:{A:{env:[`#111`],clo:[`#000`,`#00FFFF`],head:[`#755227`],mouth:[`#fff`,`#000`],eyes:[`black`,`#008;opacity:0.67`,`aqua`],top:[`#fff`,`#fff`,`#fff`,`#fff`,`#fff`]},B:{env:[`#00D0D4`],clo:[`#000`,`#fff`],head:[`#755227`],mouth:[`#fff`,`#000`],eyes:[`black`,`#1df7ff;opacity:0.64`,`#fcff2c`],top:[`#fff539`,`none`,`#fff539`,`none`,`#fff539`]},C:{env:[`#DC75FF`],clo:[`#000`,`#FFBDEC`],head:[`#997549`],mouth:[`#fff`,`#000`],eyes:[`black`,`black`,`aqua`],top:[`#00fffd`,`none`,`none`,`none`,`none`]}}},i=[],a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 231 231">`,o=`</svg>`,s=`<path d="M33.83,33.83a115.5,115.5,0,1,1,0,163.34,115.49,115.49,0,0,1,0-163.34Z" style="fill:#01;"/>`,c=`<path d="m115.5 51.75a63.75 63.75 0 0 0-10.5 126.63v14.09a115.5 115.5 0 0 0-53.729 19.027 115.5 115.5 0 0 0 128.46 0 115.5 115.5 0 0 0-53.729-19.029v-14.084a63.75 63.75 0 0 0 53.25-62.881 63.75 63.75 0 0 0-63.65-63.75 63.75 63.75 0 0 0-0.09961 0z" style="fill:#000;"/>`,l=`stroke-linecap:round;stroke-linejoin:round;stroke-width:`;i[`00`]=[],i[`00`].env=s,i[`00`].clo=`<path d="m141.74 195a114.93 114.93 0 0 1 37.912 16.45l0.07 0.05c-1.17 0.79-2.3601 1.55-3.5601 2.29a115.55 115.55 0 0 1-120.95 0.21q-2.0001-1.23-4.0002-2.54a114.79 114.79 0 0 1 38.002-16.5 116.21 116.21 0 0 1 15.791-2.49v-14.57c1.32 0.22 2.6501 0.39 4.0002 0.51 2.0001 0.19 4.0002 0.28 6.1202 0.29a64.333 64.33 0 0 0 8.8804-0.62c0.67003-0.09 1.3401-0.2 2.0001-0.31v14.69a118 118 0 0 1 15.741 2.54z" style="fill:#fff;"/><path d="m79.292 212a3.4601 3.46 0 0 0 3.8902 5.07 3.3801 3.38 0 0 0 2.1001-1.61 3.4701 3.47 0 0 0-1.2801-4.72 3.4201 3.42 0 0 0-2.6201-0.34 3.5101 3.51 0 0 0-2.0901 1.6zm60.122 0.46a3.4901 3.49 0 0 0 1.21 4.7h0.06a3.4601 3.46 0 0 0 4.7202-1.27l0.07-0.13a3.4601 3.46 0 0 0-1.34-4.6 3.4601 3.46 0 0 0-2.5801-0.32 3.5301 3.53 0 0 0-2.1001 1.61zm9.8004 5.7 5.8602 5.87c-1.39 0.5-2.7901 1-4.2102 1.44l-4.4802-4.47a7.5203 7.52 0 0 1-1.9401 0.81 7.8303 7.83 0 0 1-6.0002-0.79 7.8703 7.87 0 0 1-2.9201-10.69v-0.07a7.8903 7.89 0 0 1 10.77-2.88l0.12 0.07a7.8603 7.86 0 0 1 2.7901 10.62v0.07zm-37.701-2.36-9.5004 9.51v4.9c-1.35-0.16-2.6801-0.33-4.0002-0.54v-6l0.58002-0.58 10.1-10.09a7.8703 7.87 0 1 1 2.8401 2.86zm7.3203-5.91a3.4601 3.46 0 1 0-1.6101 2.1 3.3801 3.38 0 0 0 1.6101-2.1zm-29.741 7.82 3.0901 3.1 0.59002 0.59v7.36c-1.3401-0.26-2.6801-0.55-4.0002-0.87v-4.84l-2.5101-2.51a7.5203 7.52 0 0 1-1.9401 0.81 7.8803 7.88 0 1 1 1.9101-14.43 7.8703 7.87 0 0 1 2.8901 10.75z" style="fill:#1a1a1a;"/>`,i[`00`].head=c,i[`00`].mouth=`<path d="m94.19 136.84h42.632a3.7801 3.78 0 0 1 3.7802 3.78v3.22a15.231 15.23 0 0 1-15.211 15.16h-19.781a15.251 15.25 0 0 1-15.221-15.16v-3.22a3.8002 3.8 0 0 1 3.7802-3.78z" style="fill:#fff;`+l+`3px;stroke:#1a1a1a;"/><path d="m130.96 136.84v21.16m-30.911-21.16v21.16m10.34-21.16v22.16m10.31-22.2v22.2" style="fill:none;`+l+`3px;stroke:#1a1a1a;"/>`,i[`00`].eyes=`<path d="m83.739 83.92h63.533a19.101 19.1 0 0 1 19.051 19 19.111 19.11 0 0 1-19.051 19h-63.533a19.091 19.09 0 0 1-19.001-19 19.091 19.09 0 0 1 19.001-19z" style="fill:#1a1a1a;"/><path d="m140.23 93.54a9.3804 9.38 0 1 0 9.3804 9.38 9.3804 9.38 0 0 0-9.3804-9.38zm-49.402 0a9.3804 9.38 0 1 0 9.3804 9.38 9.3904 9.39 0 0 0-9.3804-9.38z" style="fill:#e6e7e8;"/><rect x="79.795" y="98.627" width="71.471" height="8.5859" ry="4.2929" style="fill:#b3b3b3;"/>`,i[`00`].top=`<path d="m32.902 67.662c-0.36295 1.7227-6.2342 30.695 5.6133 52.596 4.5843 8.4743 9.0081 13.239 12.75 15.893a67.7 67.7 0 0 1-3.4688-21.35 67.7 67.7 0 0 1 2.332-17.658c-4.4914-2.4646-10.868-6.9012-13.834-13.52-4.1626-9.285-3.6155-14.673-3.3926-15.961zm165.19 0c0.22292 1.2882 0.77005 6.6759-3.3926 15.961-2.9664 6.6183-9.3426 11.055-13.834 13.52a67.7 67.7 0 0 1 2.332 17.658 67.7 67.7 0 0 1-3.4688 21.35c3.7419-2.6532 8.1657-7.4183 12.75-15.893 11.847-21.9 5.9762-50.873 5.6133-52.596z" style="fill:#fff;"/><path d="m115.73 13.191c-7.3787-0.13351-13.509 5.7888-13.631 13.168-0.10128 5.8827 3.4508 10.518 8.0566 12.52 1.061 0.46115 2.1869 0.78009 3.3418 0.95703v8.4291c0.66778-0.02035 1.3358-0.03077 2.0039-0.03125 0.66547-9e-5 1.3309 0.0097 1.9961 0.0293v-8.4115c2.6002-0.38406 5.1586-1.5484 7.3086-3.625 4.2322-4.0878 4.9991-9.8755 3.1582-14.549-1.8407-4.6726-6.3502-8.3834-12.232-8.4863z" style="fill:#fff;"/>`,i[`01`]=[],i[`01`].env=s,i[`01`].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5c0 10.76 11.75 19.48 26.25 19.48s26.25-8.72 26.25-19.48z" style="fill:#1a1a1a;"/><path d="m92.502 194.27v0.70391c0 4.3033 2.4373 8.2583 6.3807 11.183 4.2199 3.1204 10.106 5.0508 16.661 5.0508 6.548 0 12.434-1.9303 16.654-5.0508 3.9434-2.9245 6.388-6.8795 6.388-11.183v-0.67489c1.0768 0.21771 2.1463 0.44994 3.2158 0.69666h-7e-3c1.0695 0.24672 2.1318 0.50798 3.1867 0.791-0.27648 6.103-3.6524 11.553-8.9708 15.493-5.2821 3.9114-12.521 6.328-20.466 6.328-7.9449 0-15.184-2.4165-20.474-6.328-5.333-3.9477-8.7089-9.4194-8.9708-15.544 1.055-0.27577 2.1099-0.53702 3.1722-0.78376 1.0695-0.23947 2.1463-0.46443 3.2304-0.68213z" style="fill:#b3b3b3;"/>`,i[`01`].head=c,i[`01`].mouth=`<path d="m100.35 143.85a7.67 7.67 0 0 0 7.58 7.7v0a7.66 7.66 0 0 0 7.57-7.7 7.66 7.66 0 0 0 7.57 7.7v0a7.67 7.67 0 0 0 7.58-7.7" style="fill:none;`+l+`6.3998px;stroke:#333;"/>`,i[`01`].eyes=`<path d="m78.73 111a10.9 10.9 0 0 1 15.19 0m43.16 0a10.9 10.9 0 0 1 15.19 0" style="fill:none;`+l+`6.1999px;stroke:#333;"/><path d="m79.804 123.74h7.07m57.273 0h7.05" style="fill:none;`+l+`5.9998px;stroke:#b8b8b8;"/>`,i[`01`].top=`<path d="m57.534 142.03c-6.9383-31.75-0.57294-52.577 14.174-62.344 22.562-12.283 62.082-12.222 83.484-1.8846 21.348 11.177 22.124 37.396 18.498 63.733 8.1279-14.155 13.164-31.598 14.085-48.902 1.0828-11.795-1.1756-18.866-7.4833-27.972-26.465-37.685-103.45-31.56-129.66-2.8372-7.8504 9.4615-9.6006 17.478-9.275 26.667 1.0024 18.667 6.9688 38.508 16.18 53.54z" style="fill:#b3b3b3;"/><path d="m111.26 3.0423c-6.013 0.1128-12.629 2.6924-15.291 7.9082-1.1676 3.2383-1.6758 6.2069-1.6758 8.8926 0.89228-0.2661 1.8005-0.5164 2.7266-0.7441 3.7502-1.0672 7.4851-1.7135 11.129-1.9981 1.1007-0.086 2.1953-0.1391 3.2773-0.1601h2e-3c5.6969-0.1133 11.09 0.6603 15.904 2.0527 0.0552-3.042-0.70696-5.9824-2.1738-8.5-1.8411-3.1599-4.7033-5.5568-8.4297-6.8262-1.6883-0.4952-3.5163-0.662-5.4688-0.625zm3.0664 17.449c-0.69317-0.01-1.3919-0.01-2.0938 0h-2e-3c-1.1591 0.019-2.3326 0.064-3.5117 0.1386-3.9035 0.246-7.9025 0.8061-11.92 1.7285-15.159 3.0075-26.469 9.9279-22.068 19.682 22.891-8.7773 52.315-10.403 76.023-2.2129 2.1414-9.5529-14.939-19.081-36.428-19.34z" style="fill:#b3b3b3;"/><path d="m165.62 16.981c-0.8575 0-1.9406 0.54389-3.3476 1.3574-7.3382 4.7652-13.452 10.867-19.516 18.363 9.2734 2.1825 17.903 5.6706 25.213 10.604 1.1512-9.1263 1.9137-18.503 0.055-26.996-0.57-2.4184-1.3017-3.3267-2.4043-3.3281zm-104.09 1.6934c-1.1026 0-1.8342 0.91165-2.4043 3.3301-1.8794 8.5869-1.0806 18.078 0.092 27.299 7.0559-4.6638 15.687-8.3667 25.111-10.984-6.043-7.4601-12.139-13.537-19.451-18.285-1.407-0.81353-2.4901-1.3605-3.3477-1.3594z" style="fill:#b3b3b3;"/><path d="m162.45 16.686c-2.3175 2e-3 -4.6276 0.57608-6.8926 1.668-8.4768 6.0155-11.113 13.349-10.133 19.787 10.323 2.7077 19.762 7.0658 27.346 13.279 9.848-4.9363 11.32-17.137 4.6152-25.852-4.7104-6.1222-9.8371-8.8878-14.936-8.8828zm-97.318 4.1387c-2.4569 0.0556-5.1642 0.54474-8.1172 1.5176-13.487 4.4433-19.06 21.215-3.6484 31.84 7.2476-6.0694 16.961-10.896 27.892-14.229 0.2193-3.3241-0.3201-7.0817-1.8691-11.236-2.8049-4.8445-7.2233-7.721-13.221-7.8906-0.3408-0.01-0.6861-0.01-1.0371-2e-3z" style="fill:#b3b3b3;"/>`,i[`02`]=[],i[`02`].env=s,i[`02`].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5c0 10.76 11.75 19.48 26.25 19.48s26.25-8.72 26.25-19.48z" style="fill:#5a5a5a;"/>`,i[`02`].head=c,i[`02`].mouth=`<path d="m115.5 161.71c-8.24 0-14.46-4.15-19.19-11.25 3.37-2.44 6.51-4.57 10-6.79a5.25 5.25 0 0 1 5.48-0.17 28.19 28.19 0 0 1 3.68 2.75 28.19 28.19 0 0 1 3.68-2.75 5.25 5.25 0 0 1 5.48 0.17c3.52 2.22 6.66 4.35 10 6.79-4.74 7.1-11 11.25-19.19 11.25z" style="fill:#5a5a5a;"/>`,i[`02`].eyes=`<path d="m172.7 90.75h-6.54c-0.14-0.1-0.26-0.22-0.4-0.3-4.48-2.76-22.75-2.11-33.71 1.2-1 0.3-1.91 0.61-2.75 0.94-1.8937 0.79244-3.8739 1.3597-5.9 1.69-5.5051 0.79002-10.403 0.79002-15.908 0-2.0261-0.33034-4.0063-0.89756-5.9-1.69-0.84-0.33-1.76-0.64-2.75-0.94-11-3.31-29.23-4-33.71-1.2-0.13832 0.08869-0.2688 0.18906-0.39 0.3h-6.55c-1.1046 0-2 0.89543-2 2v4.66c-0.0013 0.98185 0.49088 1.8986 1.31 2.44l1.9 1.27c0.59238 0.38889 0.93475 1.0622 0.9 1.77-0.14175 5.4854 0.88072 10.939 3 16 3.58 8.38 16 10.9 24.93 10.9 2.6976 0.0771 5.3921-0.2361 8-0.93 4.35-1.43 8.24-7.36 10.45-12.42 1.7607-3.8506 2.7493-8.009 2.91-12.24 7.3e-4 -0.7138 0.38183-1.3731 1-1.73 3.2281-1.951 6.5798-1.951 9.8079 0 0.61817 0.3569 0.99927 1.0162 1 1.73 0.16067 4.231 1.1493 8.3894 2.91 12.24 2.21 5.06 6.1 11 10.45 12.42 2.6079 0.6939 5.3024 1.0071 8 0.93 8.92 0 21.35-2.52 24.93-10.9 2.1193-5.0614 3.1418-10.515 3-16-0.0348-0.70778 0.30762-1.3811 0.9-1.77l1.9-1.27c0.81913-0.54136 1.3113-1.4582 1.31-2.44v-4.6c0.0336-1.1048-0.83521-2.0274-1.94-2.06z" style="fill:#1a1a1a;`+l+`2.5;stroke:#b3b3b3;"/>`,i[`02`].top=`<path d="m124.22 13.61c-19.783 0-36.945 8.0887-39.695 24.106-15.332 0.23539-31.831 2.7712-41.663 15.782-6.0238 7.9604-7.0402 19.901-6.8476 31.724 0.46007 28.503 10.742 64.228-4.3012 89.714 16.584 5.7777 43.086 10.742 73.59 11.662v-8.6558c-1.851-0.35308-3.6592-0.78105-5.4353-1.2732-30.953-8.4632-50.672-36.635-47.259-68.669 1.5514-10.603 4.6221-19.665 10.025-27.69 5.3818-7.9925 13.267-15.717 23.892-21.41 0.40658 0.72757 1.9901 3.5843 2.4074 4.3012 7.5003 12.775 17.986 23.849 33.157 26.866 12.433 2.4609 23.849 3.4666 36.346 1.1555 4.2584-0.78106 10.667-2.3967 14.851-2.4181 14.861 33.404-1.0806 75.035-40.668 87.457-2.2255 0.70616-4.5258 1.316-6.8904 1.8189 0 2.707-0.0428 5.6493-0.0642 8.5274 23.603-0.72757 48.682-4.0444 72.874-11.234-18.521-32.152 0.81315-89.083-10.036-121.46-9.0731-26.973-38.85-40.315-64.282-40.305z" style="fill:#c5c5c5;"/><path d="m33.147 172.32c-2.6535 5.1143-6.088 9.9504-10.1 12.411 7.8427 10.453 17.387 19.516 28.257 26.781 16.038-10.731 35.629-17.055 54-18.606v-9.0089c-30.065-0.94155-56.108-5.8847-72.157-11.577zm164.06 0.55637c-23.731 7.0723-48.361 10.325-71.525 11.042-0.0321 3.1242-0.0535 6.2377-0.0107 9.0517 19.227 1.7226 37.908 7.8534 53.989 18.542 0.0107 0 0.0107 0 0.0214 0.0107 10.731-7.1686 20.179-16.081 27.958-26.374-4.2798-2.3967-7.832-6.9653-10.432-12.272z" style="fill:#c5c5c5;"/><path d="m50.02 46.5c-2.9297 1.9143-6.1313 3.8826-10.154 7.9805-14.091 14.359-16.145 27.701-6.1406 44.018 4.2049 6.8583 6.1414 13.706-0.24609 20.5-7.7143 8.1957-21.559 4.2912-21.537 16.061 0.0214 8.613 15.063 7.9178 22.531 13.984 3.7662 3.0707 5.0836 8.3992 2.0664 12.508-4.2156 5.7456-16.006 7.3715-22.629 8.9336 5.8811 10.843 13.45 20.638 22.355 29.033l0.0039 0.0234 0.0059-0.0137c2e-3 2e-3 0.0038 4e-3 0.0059 6e-3 0.0034-0.0112 0.0063-0.0219 0.0098-0.0332 14.775-12.218 20.268-20.965 49.461-28.434-17.404-10.258-30.68-27.122-24.143-35.34 4.4123-5.5444 5.6612-7.8633 6.4062-12.078 2.3582-13.339-10.208-22.335-9.2363-32.715 1.9432-8.2346 11.379-11.173 16.947-15.115 5.4577-3.9082 9.8014-8.7695 10.799-16.918-13.558-4.8896-17.609-5.8617-36.506-12.4zm140.87 19.357c-3.4404-0.91243-23.311 122.43 4.4121 133.14 8.9661-8.5809 16.552-18.584 22.404-29.658 0-0.31029-25.133-3.9922-25.979-14.018-0.10699-1.1769 0.11822-1.4855 0.86718-2.502 6.6764-9.2122 30.716-11.416 29.646-23.496-0.27818-3.1563-4.1617-5.2334-6.7402-6.4531-12.155-5.767-32.942-9.6494-15.031-24.543 9.2122-7.3505 10.43-8.4323 0.59766-14.691-9.4583-6.0238-9.394-11.993-9.7578-16.326-0.0767-0.93035-0.22089-1.4003-0.41992-1.4531z" style="fill:#c5c5c5;"/><path d="m133.83 39.909c-11.33 1.393-9.5492 16.204-2e-3 16.643-4.5102 10.717 9.0165 16.181 14.441 8.3125 6.562 8.6765 18.596 0.94751 14.457-8.3125 11.718-1.5381 9.2769-16.099 0-16.643 4.503-10.867-9.4883-16.101-14.457-8.3301-6.8832-9.0411-18.509-0.47321-14.439 8.3301z" style="fill:#333;"/><path d="m153.86 48.222c0-3.0528-2.5184-5.5648-5.5791-5.5648-3.0783 0-5.5793 2.512-5.5793 5.5648 0 3.0703 2.501 5.5648 5.5793 5.5648 3.0606 0 5.5791-2.4946 5.5791-5.5648z" style="fill:#f9f9f9;"/>`,i[`03`]=[],i[`03`].env=s,i[`03`].clo=`<path d="m141.75 195c13.563 3.1499 26.439 8.7409 38 16.5-38.873 26.001-89.587 26.001-128.46 0 11.561-7.7591 24.437-13.35 38-16.5 8.4869 8.8011 26.21 25.619 26.21 25.619s17.603-16.972 26.25-25.619z" style="fill:#d6d6d6;"/><path d="m109 230.81 1.6836-14.33h9.6328l1.6836 14.33c-2.16 0.12-4.33 0.19-6.51 0.19s-4.35-0.07-6.51-0.19z" style="fill:#5e5e5e;"/><path d="m124.17 210.6h-17.349v5.53a3.8828 3.29 0 0 0 3.8828 3.29h9.583a3.8828 3.29 0 0 0 3.8828-3.29z" style="fill:#535353;"/><path d="m140.57 190.36-25.066 20.245c5.9686 3.2455 11.597 7.0814 16.8 11.45 1.5989 1.3338 3.9762 1.1189 5.31-0.48 0.21005-0.25749 0.38802-0.53956 0.52999-0.84l10.826-23.805-4-6c-0.90256-1.351-2.7298-1.7137-4.08-0.81-0.11612 0.0786-0.22641 0.16549-0.33 0.26z" style="fill:#c6c6c6;"/><path d="m90.434 190.36 25.066 20.245c-5.9686 3.2455-11.597 7.0814-16.8 11.45-1.5989 1.3338-3.9762 1.1189-5.31-0.48-0.21005-0.25749-0.38802-0.53956-0.52999-0.84l-10.826-23.805 4-6c0.90256-1.351 2.7298-1.7137 4.08-0.81 0.11612 0.0786 0.22641 0.16549 0.33 0.26z" style="fill:#c6c6c6;"/>`,i[`03`].head=c,i[`03`].mouth=`<path d="m136.21 147.09a21.77 21.77 0 0 1-40.13 0z" style="fill:#fff;`+l+`3.4999px;stroke:#000;"/>`,i[`03`].eyes=`<path d="m145.39 104.7-11.52 11.2h17.26m-65.52-11.2 11.52 11.2h-17.26" style="fill:none;`+l+`5.4998px;stroke:#000;"/>`,i[`03`].top=`<path d="m43.891 77.836c-5.1124 28.237 2.1347 61.004 24.792 81.332-6.2362-12.503-9.5362-33.948-9.4887-45.458-0.50203-37.473 41.439-46.335 56.149-17.614 18.8-31.2 52.825-16.872 54.062 13.714 0.56018 13.844-0.43568 25.598-7.0962 48.966 18.372-12.47 28.012-53.959 23.545-80.941-47.486-2.2552-94.831-2.5724-141.96 0z" style="fill:#1a1a1a;"/><path d="m111.26 12.782c-18.508 0.0791-32.594 3.6163-32.594 3.6163 24.513 5.6002 32.807 10.504 31.743 19.835-0.87227 9.702-11.092 10.875-20.811 11.554-5.2548 0.36414-10.949 0.71523-16.391 1.7525-11.862 2.2818-19.946 4.3736-24.447 11.956-1.7012 2.8662-3.7945 10.428-4.8689 16.34h141.96c-5.7242-38.563-32.557-65.073-74.595-65.054z" style="fill:#1a1a1a;"/><path d="m73.292 44.77c-11.788 2.2816-18.923 5.5444-23.394 13.126-2.8484 6.7586-4.8454 13.238-6.0072 19.939h141.96c-1.9772-14.576-6.8677-28.248-19.277-32.098-28.834-6.3308-63.774-6.3553-93.285-0.96761z" style="fill:#1a1a1a;"/><path d="m165.95 35.642c-11.178 21.829-91.89 19.36-103.98 2.3011-9.703 12.267-15.605 25.883-18.079 39.892h141.96c-3.0096-17.158-9.7424-32.688-19.902-42.193z" style="fill:#1a1a1a;"/>`,i[`04`]=[],i[`04`].env=s,i[`04`].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5l15.71 15.75h21z" style="fill:#949494;"/><path d="m115.45 211.34-10.55 10.54a2.51 2.51 0 0 1-3.5599 0 2 2 0 0 1-0.26999-0.30994l-18.48-25.4 5.8901-5.8899a2.52 2.52 0 0 1 3.5199-0.0791l23.49 21.14z" style="fill:#c0c0c0;"/><path d="m115.45 211.34 10.55 10.54a2.51 2.51 0 0 0 3.5599 0 2 2 0 0 0 0.26999-0.30994l18.48-25.4-5.8901-5.8899a2.52 2.52 0 0 0-3.4699-0.089l-23.49 21.14z" style="fill:#c0c0c0;"/><path d="m158.41 199.58-10.11-3.2401v29.93q5.1601-1.5299 10.11-3.51zm-75.82 26.66v-29.9l-10.1 3.2401v23.14c3.2901 1.3199 6.67 2.4999 10.1 3.5199z" style="fill:#7c7c7c;"/>`,i[`04`].head=c,i[`04`].mouth=`<path d="m118.05 148.38c-1.5064 0.59192-2.595 2.0264-2.6191 3.9863-0.0574 1.3977 0.53421 3.5611 3.6758 5.7949 8.0544 4.9446 21.507 3.6862 21.255-7.1658-4.664 4.8219-10.021 5.6377-14.773 0.73907-1.2328-1.1599-2.3694-2.4032-3.9294-3.1408-1.0946-0.50424-2.2257-0.61071-3.6096-0.21337z" style="fill:#333;"/><path d="m133.61 154.93c3.0731-0.48816 5.5702-2.8457 5.4438-4.5059-0.47801-4.8311-5.7317-3.0917-4.3369-0.31405-2.8103-1.4445-1.8343-3.8862 0.50427-4.7324 2.0509-0.79942 5.0937 0.34314 6.2002 2.6376 2.2229 7.3422-3.4376 11.68-10.384 12.561z" style="fill:#333;"/><path d="m112.81 148.38c1.5064 0.59192 2.595 2.0264 2.6191 3.9863 0.0574 1.3977-0.53421 3.5611-3.6758 5.7949-8.0544 4.9446-21.507 3.6862-21.255-7.1658 4.664 4.8219 10.021 5.6377 14.773 0.73907 1.2328-1.1599 2.3694-2.4032 3.9294-3.1408 1.0946-0.50424 2.2257-0.61071 3.6096-0.21337z" style="fill:#333;"/><path d="m97.252 154.93c-3.0731-0.48816-5.5702-2.8457-5.4438-4.5059 0.47801-4.8311 5.7317-3.0917 4.3369-0.31405 2.8103-1.4445 1.8343-3.8862-0.50427-4.7324-2.0509-0.79942-5.0937 0.34314-6.2002 2.6376-2.2229 7.3422 3.4376 11.68 10.384 12.561z" style="fill:#333;"/>`,i[`04`].eyes=`<path d="m131.64 114.09 7.5801-7.5801 7.5801 7.5801m-62.6 0 7.5801-7.5801 7.5799 7.5801" style="fill:none;`+l+`6.4998px;stroke:#000;"/>`,i[`04`].top=`<path d="m137.38 11.148c-12.23 1.9593-18.511 14.606-43.436 9.4915-11.285-3.2054-16.406-3.573-20.389 0.58594-4.1548 4.3384-7.033 12.435-9.8184 21.706-2.1354 7.4136-3.7187 14.381-4.7461 21.646h112.7c-3.4878-24.293-10.822-43.281-25.182-51.061-3.5314-1.623-6.5274-2.2959-9.1289-2.3613z" style="fill:#b3b3b3;"/><path d="m114.37 43.383c-19.445 0.088-38.524 2.0724-52.379 5.6992-1.2766 4.5795-2.4317 10.169-3.2285 16.807h113.11c-0.83731-6.0107-1.9164-11.674-3.3184-16.924-15.229-3.8842-34.873-5.6693-54.18-5.582z" style="fill:#e6e6e6;"/><path d="m115.5 55.773c-58.39 0-105.73 15.476-105.73 34.57h0.0312c0 11.295 16.496 21.319 42.126 27.627-0.10331-7.7704 2.788-21.904 5.2734-31.031 6.0935-1.7168 6.9294-1.8971 13.167-2.9919 14.874-2.8256 29.99-4.2037 45.133-4.1153 15.143-0.0884 30.259 1.2897 45.133 4.1153 6.2372 1.0947 7.2065 1.2751 13.3 2.9919 2.4854 9.1267 5.3768 23.26 5.2734 31.031 25.63-6.3082 41.993-16.332 41.993-27.627h0.0312c0-19.093-47.34-34.57-105.73-34.57z" style="fill:#818181;"/><path d="m72.088 83.533c-6.9765 1.1147-13.357 2.856-18.439 4.3477-1.1861 7.415-2.0038 18.858-1.8926 26.293 4.3278-0.62795 10.155-1.3644 13.295-1.6465-0.40554 0.30198 2.7344-17.827 7.0371-28.994zm86.824 0c4.3028 11.167 7.4426 29.296 7.0371 28.994 3.1396 0.28213 8.9671 1.0185 13.295 1.6465 0.11119-7.4351-0.70652-18.878-1.8926-26.293-5.0822-1.4916-11.463-3.2329-18.439-4.3477z" style="fill:#434343;"/>`,i[`05`]=[],i[`05`].env=s,i[`05`].clo=`<path d="m141.75 194.98a114.79 114.78 0 0 1 38 16.498 115.53 115.52 0 0 1-128.46 0 114.79 114.78 0 0 1 38-16.498l15.71 15.748h21z" style="fill:#d2d2d2;"/><path d="m70 200.88v20.77c-2.22-0.95325-4.3999-1.9698-6.5399-3.0496h-0.10088v-14.621c2.17-1.1 4.39-2.1399 6.64-3.0996z" style="fill:#505050;"/><path d="m161 200.88v20.77c1.9-0.80986 3.7702-1.6798 5.6201-2.5898l0.0989-0.0494 0.82005-0.40997h0.10088v-14.621c-2.17-1.1-4.39-2.1399-6.6402-3.0996z" style="fill:#505050;"/><polygon transform="matrix(1 0 0 .99987 4e-5 -3e-5)" points="97.32 201.93 115.5 223.72 133.68 201.93" style="fill:#171717;"/><path d="m111.2 230.88 1.31-16.908c0.32992 1.2798 5.6399 1.2798 5.9999 0l1.3201 16.938c-1.4301 0.0494-2.8601 0.089-4.3 0.089s-2.87 0-4.3-0.089z" style="fill:#171717;"/><path d="m115.49 201.79v0.0692l-7.55 12.678-7.0001 11.809-19.19-26.487c0.60999-0.42995 1.22-0.89985 1.8001-1.3899a52 51.993 0 0 0 10.07-10.619l21.79 13.878z" style="fill:#ebebeb;"/><path d="m149.24 199.86-19.08 26.517-7.0001-11.809-7.57-12.678-0.0593-0.10086 21.94-13.998a52.21 52.203 0 0 0 10.08 10.699c0.58013 0.47009 1.1502 0.92002 1.7301 1.3399z" style="fill:#ebebeb;"/>`,i[`05`].head=c,i[`05`].mouth=`<path d="m122.83 151.88a10.49 10.489 0 0 1-14.66 0" style="fill:none;`+l+`6.1996px;stroke:#333;"/>`,i[`05`].eyes=`<path d="m70.959 94.985h35.031c2.4086 1e-5 4.3612 1.9523 4.3612 4.3606l-2.5864 17.511c-0.3515 2.3799-1.7218 4.3606-3.8457 4.3606h-30.9c-2.1239-1e-5 -3.8457-1.9523-3.8457-4.3606l-2.5864-17.511c1e-5 -2.4082 1.9526-4.3606 4.3612-4.3606z" style="fill:#1a1a1a;`+l+`3.0045px;stroke:#333;"/><path d="m160.05 94.985h-35.031c-2.4086 1e-5 -4.3612 1.9523-4.3612 4.3606l2.5864 17.511c0.35149 2.3799 1.7218 4.3606 3.8457 4.3606h30.9c2.1239-1e-5 3.8457-1.9523 3.8457-4.3606l2.5864-17.511c-1e-5 -2.4082-1.9526-4.3606-4.3612-4.3606z" style="fill:#1a1a1a;`+l+`3.0045px;stroke:#333;"/><path d="m90.607 102.35a4.6337 4.6332 0 1 0 4.6892 4.6337 4.6337 4.6332 0 0 0-4.6892-4.6337zm49.72 0a4.6337 4.6332 0 1 0 4.6444 4.6337 4.6337 4.6332 0 0 0-4.6444-4.6337z" style="fill:#1a1a1a;"/><path d="m70.66 94.985h-11.775" style="fill:none;`+l+`3.0045px;stroke:#333;"/><path d="m172.13 94.985h-19.484" style="fill:none;`+l+`3.0045px;stroke:#333;"/><path d="m109.32 106.2c4.2045-2.427 9.3036-1.913 12.353-0.0258" style="fill:none;`+l+`3.0045px;stroke:#333;"/><path d="m148.33 109.79-5.7626-8.2324" style="fill:none;`+l+`4;stroke:#fff;"/><path d="m156.27 105-2.403-3.4328" style="fill:none;`+l+`4;stroke:#fff;"/><path d="m82.748 114.34-8.9489-12.784" style="fill:none;`+l+`4;stroke:#fff;"/><path d="m91.408 109.79-5.7626-8.2324" style="fill:none;`+l+`4;stroke:#fff;"/>`,i[`05`].top=`<path d="m41.835 75.131c-2.8674 12.582 1.2304 27.241 6.0238 39.031 0.25861 0.63658 0.51208 1.3075 0.79989 1.9683 0.71726 1.658 2.1184 3.9751 3.0038 3.9266 0.56895-0.0312 0.71637-1.5512 1.0228-3.1562 2.1988-19.097 8.8981-27.915 15.636-38.107 2.8783-4.0645 3.8616-7.2293 1.0644-9.9325-6.3236-3.5596-14.924-2.8574-21.367-0.67406-3.2312 1.4765-5.2427 3.4773-6.1842 6.9439zm125.65-8.5679c7.65-0.70616 19.714-0.1307 21.694 8.5679 1.455 6.4083 0.26915 17.747-1.0542 24.579-1.1961 5.3203-3.8066 14.231-7.8782 19.75-0.5565 0.44544-0.96888 0.13656-1.4159-1.1606-0.90692-3.0353-1.4298-7.8372-2.2556-10.727-3.4822-12.79-8.2195-21.875-14.429-29.94-5.5782-6.8415-4.2152-9.7207 5.3393-11.069z" style="fill:#4d4d4d;"/><path d="m112.27 73.826c-18.585-7.5217-34.987-14.797-48.939 5.018-4.9752 7.083-3.7876 8.8056-4.9217 0.0749-1.637-12.476-4.7505-34.174 1.9259-45.194 7.6822-12.7 19.323-13.128 31.039-5.3818 10.796 7.7784 24.277 14.647 38.015 12.219 12.732-2.2576 15.835-7.7464 15.707-19.912-0.0215-2.6-0.0963-5.2106-0.2033-7.7999 13.631 3.9267 24.609 14.776 26.513 29.049 0.88804 6.6336 0.26749 12.722-1.9259 19.013-5.9702 17.108-30.119 20.896-45.74 16.841-3.9588-1.0378-7.6822-2.4181-11.47-3.9267z" style="fill:#4d4d4d;"/>`,i[`06`]=[],i[`06`].env=s,i[`06`].clo=`<path d="m115.5 231a115 115 0 0 0 64.23-19.5 114.79 114.79 0 0 0-38-16.5l-2.41-9a125.19 125.19 0 0 0-13.32-2.28v8.75q3.52 0.32 7 0.84l-17.5 17.48-17.5-17.48q3.45-0.52 7-0.84v-8.75a125.55 125.55 0 0 0-13.34 2.28l-2.41 9a114.79 114.79 0 0 0-38 16.5 114.94 114.94 0 0 0 64.25 19.5z" style="fill:#646464;"/><path d="m132.98 193.33-36.185 36.155-2.4-0.42 36.108-36.081z" style="fill:#e3e3e3;"/>`,i[`06`].head=c,i[`06`].mouth=`<path d="m127.84 146.73c-2.24 8.93-6.92 15.08-12.34 15.08s-10.1-6.15-12.34-15.08z" style="fill:#fff;`+l+`2.9999px;stroke:#1a1a1a;"/>`,i[`06`].eyes=`<path d="m129.31 114.14 20-5.37m-47.66 5.37-20-5.37" style="fill:none;`+l+`4.9998px;stroke:#1a1a1a;"/>`,i[`06`].top=`<path d="m169.65 90.998c3.137 11.94 4.9371 36.484-3.4118 58.213l5.129 3.1164c10.044-15.199 14.959-39.163 13.943-61.33z" style="fill:#1a1a1a;"/><path d="m45.081 90.989c-0.88085 4.9304-0.87534 14.953-0.15027 21.75 2.1318 19.98 16.671 42.505 16.671 42.505l5.7352-4.4331s-13.244-31.348-6.0571-52.751c0.52108-1.5517 0.95592-2.916 1.3462-4.1835z" style="fill:#1a1a1a;"/><path d="m117 3.4883c-8.2136-0.19887-19.13 7.933-18.494 9.3516 1.6214 3.6186 11.176 22.55 11.889 23.963h10.148c2.6022-6.3102 11.32-26.531 11.32-26.531s-4.1382-4.138-12.416-6.4375c-0.77605-0.21556-1.5976-0.32513-2.4473-0.3457z" style="fill:#1a1a1a;"/><path d="m115.95 4.5428c-3.1563 0-6.3123 0.57462-9.2165 1.715-5.8084 2.2817-10.532 6.808-12.779 12.245v-5e-3c-1.8166 4.397-2.0233 9.3441-0.58058 13.857 0.69352 2.1687 1.7693 4.2296 3.1533 6.0968h38.893c0.71032-0.95769 1.3441-1.9641 1.8787-3.0144 2.6811-5.2673 2.9296-11.542 0.67253-16.975-2.257-5.4337-6.9893-9.9522-12.802-12.224-2.9064-1.1335-6.0633-1.6987-9.2196-1.6956z" style="fill:#1a1a1a;"/><path d="m92.512 28.125c0.13387 1.4318 0.41877 2.8511 0.85962 4.2306 1.4429 4.5127 4.5278 8.5654 8.6411 11.353 4.1135 2.7873 9.2311 4.2913 14.336 4.2165 5.1052-0.0764 10.168-1.7333 14.181-4.6419 2.8754-2.0834 5.2132-4.7932 6.7665-7.8447 1.2005-2.3586 1.9085-4.9188 2.127-7.5156-15.037-2.6407-31.421-3.4671-46.912 0.20253z" style="fill:#b3b3b3;"/><path d="m34.426 90.63c14.714 4.0779 22.683 6.4085 45.254 7.4257 2.5318-18.185 4.6689-28.672 10.023-38.352 3.2025 13.403 3.8346 25.22 2.9106 42.253l11.172-0.23161c1.4706-11.886 3.8989-29.213 2.1636-42.021 10.416 12.631 11.373 23.624 13.077 39.726 30.174-0.76004 59.808-4.5121 77.845-10.128-10.76-38.608-41.475-55.66-80.38-56.104-38.182-0.45134-74.543 22.405-82.065 57.432z" style="fill:#1a1a1a;"/>`,i[`07`]=[],i[`07`].env=s,i[`07`].clo=`<path d="m88.18 194.11c-4.2079 1.021-8.3545 2.2792-12.42 3.7695v26.072a115.5 115.5 0 0 0 79.48 0v-26.072c-4.0858-1.4904-8.2529-2.7486-12.48-3.7695v8.7051c0 9.3888-7.6112 17-17 17h-20.58c-9.3888 0-17-7.6112-17-17v-8.7051z" style="fill:#efefef;"/>`,i[`07`].head=c,i[`07`].mouth=`<polygon points="121.61 160.74 109.39 160.74 115.5 171.31" style="fill:#797979;"/><path d="m132.64 144.06a34.42 34.42 0 0 1-34.24 0" style="fill:none;`+l+`5.9998px;stroke:#000;"/>`,i[`07`].eyes=`<path d="m170.25 100c1.69 9.62-4.79 29.23-22.4 29.23-6.81 0-15-3.66-20.23-10-4.34-5.33-7.56-12.87-6.2-19.45 1.63-7.89 7.07-11.45 14.67-12.92a68.16 68.16 0 0 1 12.52-1c10.77 0 19.78 3.61 21.64 14.22z" style="fill:#565656;stroke-width:3.99px;stroke:#000;"/><path d="m60.75 100c-1.69 9.62 4.79 29.23 22.4 29.23 6.81 0 15-3.66 20.23-10 4.34-5.33 7.56-12.87 6.2-19.45-1.63-7.89-7.07-11.45-14.67-12.92a68.16 68.16 0 0 0-12.52-1c-10.77 0-19.78 3.61-21.64 14.22z" style="fill:#565656;stroke-width:3.99px;stroke:#000;"/><line x1="100.2" x2="130.8" y1="87.92" y2="87.92" style="fill:none;`+l+`3.99px;stroke:#000;"/><path d="m109.87 101.73c0-2.59 2.52-4.69 5.63-4.69s5.63 2.1 5.63 4.69" style="fill:none;stroke-width:3.99px;stroke:#000;"/>`,i[`07`].top=`<path d="m30.622 70.381c2.0971-3.9374 4.6649-7.9604 7.6822-12.037 3.0172-4.0765 6.0987-7.6929 9.2229-10.817l22.897 22.897c-4.4402 4.4403-8.2278 9.5439-11.213 15.14z" style="fill:#999;"/><path d="m160.58 70.423 22.907-22.897c3.1242 3.1242 6.2056 6.7406 9.2229 10.817 3.0065 4.0765 5.5744 8.0994 7.6715 12.037l-28.578 15.182c-2.9851-5.5958-6.7727-10.689-11.224-15.14z" style="fill:#999;"/><path d="m92.411 15.247c3.8197-0.87736 7.6715-1.5407 11.534-1.9794 4.0765-0.46007 7.9282-0.69546 11.555-0.69546 1.53 0 3.1563 0.0428 4.8682 0.1391l1.851 22.255 5.767-21.57c3.1028 0.37449 6.0666 0.86666 8.8912 1.4658l-10.55 49.763c-1.9259-0.41729-3.702-0.70617-5.3176-0.87736-1.423-0.14979-3.2633-0.22468-5.5102-0.22468-2.2362 0-4.237 0.10699-5.981 0.29958-1.9473 0.22469-3.8732 0.55636-5.767 0.99504z" style="fill:#999;"/><path d="m92.411 15.247c1.9152-0.43869 4.023-0.84526 6.3233-1.2304 2.065-0.34238 4.1514-0.62057 6.2698-0.84525l5.1785 50.565c-1.0913 0.10699-2.1827 0.25679-3.2954 0.43868-0.86665 0.14979-1.9152 0.36378-3.1349 0.64196z" style="fill:#4d4d4d;"/>`,i[`08`]=[],i[`08`].env=s,i[`08`].clo=`<path d="m141.89 195a114.79 114.79 0 0 1 38 16.5 115.55 115.55 0 0 1-128.47 0 114.79 114.79 0 0 1 38-16.5l15.75 15.75h21z" style="fill:#353535;"/><path d="m146.4 196.14-17.4 17.44-1.17 1.17h-24.34l-1.18-1.17-17.43-17.44c1.49-0.41 3-0.79 4.51-1.14l4.67-1 12.74 12.74h17.69l12.73-12.74 4.67 1c1.52 0.35 3 0.73 4.51 1.14z" style="fill:#919191;"/>`,i[`08`].head=c,i[`08`].mouth=`<path d="m115.68 160.64c7.08 0 13.11-4.93 15.46-11.84a2.14 2.14 0 0 0-1.51-2.6101 2.3 2.3 0 0 0-0.73995-0.0593h-26.42a2.12 2.12 0 0 0-2.31 1.9099 1.85 1.85 0 0 0 0.0593 0.73995c2.3401 6.9301 8.3802 11.86 15.46 11.86z" style="fill:#2f2f2f;"/>`,i[`08`].eyes=`<path d="m145.38 95.628c-5.1601 2.2597-11.03 2.2597-16.19 0m-47.29 1.75c5.1755-2.2694 11.065-2.2694 16.24 0" style="fill:none;`+l+`5.9998px;stroke:#5e5e5e;"/><path d="m90.016 106.28c-4.4506-0.0105-6.6902 5.3657-3.5508 8.5195 3.1394 3.1539 8.5252 0.93887 8.5352-3.5117 0.0063-2.7522-2.2204-4.9898-4.9727-4.9961l-0.011719-0.01172zm47.281 0c-4.4506-0.0105-6.6902 5.3657-3.5508 8.5195 3.1394 3.1539 8.5252 0.93887 8.5352-3.5117 6e-3 -2.7522-2.2204-4.9898-4.9727-4.9961l-0.01171-0.01172z" style="fill:#1a1a1a;"/>`,i[`08`].top=`<path d="m108.37 22.019c-6.2698-12.829-17.151-13.396-18.949 1.1769-11.448-9.4583-26.021-4.483-20.361 12.422-12.251-7.9282-24.919 1.7761-17.076 20.853-27.08 2.3646-22.715 24.726-10.111 31.435-9.9002 3.3566-10.701 9.4006-8.464 14.497 2.6574 4.7842 9.0126 6.4737 11.545 9.6519-6.624 0.59419-8.4112 5.6011-5.7404 9.5192 1.6896 2.4787 5.2756 4.2218 8.5971 5.5455 1.0485 0.40658 3.702 1.2732 3.9053 2.4181 0.18744 1.2156-6.7884 3.0055-5.7281 5.2612 0.60648 1.4227 1.7764 2.7151 2.6466 3.7156 1.2807 1.6595 10.755 8.0351 9.4583 4.2049-1.0271-3.7234-2.2148-7.4682-3.1456-11.192-1.1662-5.3069-1.7868-10.721-1.102-16.156 1.4223-5.455 5.069-4.4265 7.7837-8.3588 3.5264-5.7505 2.0296-11.614 2.124-13.575 0.107-1.7868 1.5407-1.1876 3.1884-1.4337 4.3868-0.64196 7.0081-2.1185 8.8377-6.2698 0.77035-1.9259 0.62057-9.7578 0.52426-11.78 0.36378-4.6328 4.1835 0 6.548 0.64196 3.2633 0.88805 6.8797 0.21399 9.0731-2.5037 1.7547-2.3753 2.0864-2.8888 4.6114-0.80245 2.6856 2.2148 4.0979 3.1349 7.6929 3.274 5.5637 0.20329 8.7735-6.2698 11.32-5.6386 3.5201 0.87735 3.6057 5.4567 10.261 4.8682 2.386-0.20329 3.8304-0.86665 5.4032-2.6428 0.88805-0.99505 1.958-2.5037 3.4345-2.6214 1.4658-0.1177 2.3218 2.3646 3.0065 3.4452 1.1926 2.6755 4.0295 3.6513 6.2377 3.3168 1.958-0.17119 3.854-1.4115 5.4268-2.4707 0.99679-0.66102 1.8284-0.81128 1.9256 0.2071 0.29592 2.2271 0.0862 7.7025 0.1596 8.4821 0.10556 8.4609 5.37 10.569 13.223 10.333-0.31871 3.7464 0.0583 11.28 5.4353 14.562 3.9481 2.7604 6.6657 1.2732 6.7299 7.8534 7e-3 6.1914-0.43693 13.061-1.2946 18.189-0.69547 4.0444-1.2412 6.4838-2.5251 10.378-0.64196 1.9152-0.81315 1.9687 1.4123 1.0699 7.1472-3.1456 10.539-11.48 8.3562-18.842-0.43869-2.0436 0.84525-1.7226 2.8781-2.6106 9.5248-4.2363 8.1264-11.335-0.75967-14.273 11.988-3.0926 13.886-8.9002 6.6871-15.375 7.3077-5.9168 3.6378-16.177-2.8032-16.991 12.422-7.0937 5.7349-22.062-5.1036-18.499 4.1728-12.037-5.5637-26.203-21.121-16.894 6.9653-11.373 2.065-22.661-12.101-10.785-3.4559-18.382-15.14-16.584-23.902-5.018 0.09435-20.075-16.001-17.42-18.146-2.5892z" style="fill:#1a1a1a;"/><path d="m5.4353 80.502c7.4468 9.1373 15.632 8.8912 15.632 8.8912s-6.0772 3.7983-6.8369 9.8755c-0.75966 6.088 4.5579 9.6295 8.0994 10.646 3.5522 1.0058 7.0937-2.7925 7.0937-2.7925s-5.8312 10.646-1.5193 15.964c4.3012 5.3176 11.908 3.0386 11.908 3.0386s-5.3283 10.132 1.0057 14.187c5.8312 3.7234 18.542 7.6715 20.511 8.2706-6.0666-9.7472-9.576-21.249-9.576-33.575v-0.0428c0-35.201 28.546-63.747 63.747-63.747 35.212 0 63.758 28.546 63.758 63.747 0 12.476-3.5843 24.116-9.7899 33.949h0.53496s13.931-1.0057 16.21-9.3727c2.279-8.3562 0.75967-9.8756 0.75967-9.8756s10.635 2.0329 13.417-7.5966l2.7926-9.6295s10.132 0 10.892-7.083c0.75963-7.0937-7.0295-12.411-7.0295-12.411s11.459 0.82385 14.498-10.453c1.0164-3.7555 0.83456-8.2171 0.1391-12.497-17.665-41.161-58.569-69.995-106.18-69.995-30.632 0-60.034 12.187-81.679 33.831v0.0107c-13.171 13.171-22.833 29.22-28.386 46.66z" style="fill:#1a1a1a;"/>`,i[`09`]=[],i[`09`].env=s,i[`09`].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5l13.85 13.85v-1.2h17.86v3.1h5z" style="fill:#333;"/><polygon points="115.36 207.65 123.37 224.2 148.3 196.86 143.08 189.95" style="fill:#fff;"/><polygon points="115.36 207.65 107.35 224.2 82.42 196.86 87.63 189.95" style="fill:#fff;"/>`,i[`09`].head=c,i[`09`].mouth=`<path d="m126.28 149.82c-6.16 2.43-15.52 2.42-21.56 0" style="fill:none;`+l+`5.9998px;stroke:#1c1c1c;"/>`,i[`09`].eyes=`<path d="m83.527 103.98v10h10v-10h-10zm53.945 0v10h10v-10h-10z" style="fill:#1a1a1a;"/><path d="m56.621 94.906v11.688h5.3418v6.4922h5.3418v6.1055h5.3223v6.2324h26.846v-6.2324h5.3047v-6.1055h5.1445v-6.0039h11.154v6.0039h5.1446v6.1055h5.3066v6.2324h26.846v-6.2324h5.3203v-6.1055h5.3438v-6.4922h5.3418v-11.688z" style="fill:#1a1a1a;"/><path d="m67.387 100.65v5.9394h5.1992v-5.9394zm5.1992 5.9394v6.4922h5.4238v-6.4922zm5.4238 0h5.1992v-5.9394h-5.1992zm5.1992 0v6.4922h5.4258v-6.4922zm5.4258 6.4922v6.1055h5.1426v-6.1055zm-10.625 0v6.1055h5.1445v-6.1055zm48.281-12.432v5.9394h5.1992v-5.9394zm5.1992 5.9394v6.4922h5.4238v-6.4922zm5.4238 0h5.1992v-5.9394h-5.1992zm5.1992 0v6.4922h5.4258v-6.4922zm5.4258 6.4922v6.1055h5.1426v-6.1055zm-10.625 0v6.1055h5.1445v-6.1055z" style="fill:#fff;"/>`,i[`09`].top=`<path d="m157.79 67.5a61.31 61.31 0 0 1-42.79 17.43h-55.7c18.16-37.74 68.27-46.85 98.49-17.43z" style="fill:#4d4d4d;"/><path d="m122.93 7.0078c-10.503-0.15729-21.09 1.6448-29.545 5.4316-17.141 7.8999-32.169 23.297-43.973 38.779-5.1703 6.8631-8.7779 13.46-8.1855 18.395 0.93114 12.312 10.372 26.483 11.068 36.9 15.663-72.081 105.99-70.452 124.91-7.0525l4e-3 0.0156c5.616-10.926 8.0682-20.188 8.352-27.653 0.43654-15.607-7.8088-21.149-21.735-28.249 1.7934-3.7704 1.7273-7.5023 2.0625-10.154-0.79964-7.8568-3.6796-13.51-10.43-17.758-5.9434-3.7404-13.06-6.0867-18.463-7.2266-4.5319-0.87895-9.2901-1.3562-14.064-1.4277z" style="fill:#4d4d4d;"/><path d="m42.426 75.338c0.52158 18.689 10.557 74.338-18.115 101.25 12.38 10.603 28.352 19.061 46.025 24.594 11.032-4.6874 22.88-7.4147 34.817-8.5046l0.0633-14.477c-22.49-4.3813-40.766-18.898-48.862-39.967-8.096-21.07-4.7931-44.72 9.2478-62.393zm124.67 2.7207c7.8997 10.886 11.743 24.64 11.787 37.441-0.36632 30.178-22.389 57.576-53.12 62.708l0.0238 14.471c12.282 1.1216 24.518 3.9888 35.825 8.9128 15.488-5.1448 30.007-13.325 42.396-25.043-13.136-22.051-23.282-63.045-18.694-101.55z" style="fill:#4d4d4d;"/><path d="m143.61 46.383c-11.639 0.12482-20.998 1.8906-20.998 1.8906l-9 3.5059c0.63003-0.0191 1.2603-0.0289 1.8906-0.0293h0.0996c35.169 0.055 60.959 27.235 63.283 63.383 7.4e-4 31.157-22.742 57.213-53.106 63.079l-0.0216 14.498c11.567 1.0563 23.154 3.6067 33.887 8.0463 35.952-15.315 55.082-52.303 36.709-68.279-5.018-7.9035-10.44-15.409-9.5544-23.03 5.0545-50.452 0.39626-63.561-43.189-63.064zm-69.966 21.09c-15.286 3.244-17.096 3.73-31.734 6.6953 3.0304 13.081 3.0583 22.274 1.2085 30.012-3.8004 11.361-8.9712 19.787-12.286 28.764-6.8823 22.459-2.9157 31.982 12.093 46.165 8.6595 8.0693 19.861 16.209 30.939 20.647 2.669-1.0316 5.3729-1.9628 8.106-2.792 7.4979-2.275 15.388-3.6535 23.206-4.3673l0.0433-14.393c-23.933-4.5937-44.283-21.98-50.77-45.817-6.3319-23.265 0.51104-48.752 19.195-64.914z" style="fill:#4d4d4d;"/>`,i[10]=[],i[10].env=s,i[10].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5l15.71 15.75h21z" style="fill:#666;"/><path d="m89.291 195a114.79 114.79 0 0 0-38.002 16.5 115.53 115.53 0 0 0 38.002 16.482zm52.434 0v32.982a115.53 115.53 0 0 0 38-16.482 114.79 114.79 0 0 0-38-16.5z" style="fill:#999;"/><path d="m157.15 199.75c0.2548 7.4501 1.54 14.855 4.9512 21.432a115.53 115.53 0 0 0 17.619-9.6797 114.79 114.79 0 0 0-22.57-11.752zm-83.295 2e-3a114.79 114.79 0 0 0-22.57 11.75 115.53 115.53 0 0 0 17.621 9.6797c3.411-6.5765 4.6944-13.98 4.9492-21.43z" style="fill:#ccc;"/><path d="m99.197 204.97v2e-3l16.302 16.301 16.301-16.301v-2e-3z" style="fill:#fff;"/>`,i[10].head=c,i[10].mouth=`<path d="m100.19 152.09c2.8726 4.0616 9.8095 4.7232 15.119-0.45432 5.0656 4.5134 11.167 5.6898 15.495 0.31458" style="fill:none;`+l+`5.8949;stroke:#333;"/><path d="m109.67 135.53c-0.9758 0.0743-2.05 0.45327-3.1485 0.99414-4.3235 2.1399-7.3862 4.2557-10.639 7.1406-0.6251 0.5715 0.1168 0.77785 1.4238 0.87304 5.6967 0.0536 14.384 0.41404 15.098-0.875 1.9251-2.0788 1.7969-5.3303-0.1816-7.3008-0.701-0.67533-1.5769-0.90632-2.5527-0.83203zm11.656 0c-0.9758-0.0743-1.8517 0.1567-2.5527 0.83203-1.9785 1.9705-2.1067 5.222-0.1817 7.3008 0.7142 1.289 9.401 0.9286 15.098 0.875 1.307-0.0952 2.0489-0.30154 1.4238-0.87304-3.2524-2.8849-6.3151-5.0007-10.639-7.1406-1.0985-0.54087-2.1727-0.91985-3.1485-0.99414z" style="fill:#333;"/>`,i[10].eyes=`<path d="m97.56 107.84a10.63 10.63 0 0 1-15 0.13l-0.13-0.13" style="fill:none;`+l+`6.3px;stroke:#000;"/><path d="m148.59 107.84a10.63 10.63 0 0 1-15 0.13l-0.13-0.13" style="fill:none;`+l+`6.3px;stroke:#000;"/>`,i[10].top=`<path d="m41.668 87.073c-9.2319-0.0231-11.63 6.5104 2.2676 17.66-14.015 1.1231-4.3662 16.457 4.875 24.66 4.0686 3.0199 6.4647 5.4657 5.5078 1.1348-1.2079-4.9178-1.8184-9.9634-1.8184-15.027 3.26e-4 -7.5692 1.2547-15.016 3.7883-22.183 0.57048-1.7876 1.0689-2.0306-0.37721-2.6839-5.5405-2.4478-10.375-3.5511-14.243-3.5608z" style="fill:#ccc;"/><path d="m185.48 89.513c-2.4418-0.11189-5.4618 0.81187-9.5148 3.2121-1.314 0.81729-0.70075 1.995-0.32301 3.2653 3.194 10.982 3.8215 22.462 1.2538 33.628-0.31613 1.688-0.47649 3.569 2.6953 1.3516 7.7016-5.371 19.17-18.734 16.918-26.105-1.4251-3.9177-11.4-0.35546-11.4-0.35546s4.987-4.2755 5.3437-9.6191c0.20048-3.0057-1.5237-5.2189-4.9726-5.377z" style="fill:#ccc;"/><path d="m91.689 36.108c-3.7298-7.3864-9.5859-10.504-17.578-6.7891-9.5194 4.5907-15.629 18.444-13.416 29.232 0 0-8.5511-4.9878-18.17-3.5625-19.623 8.094-1.4102 29.869 10.817 37.342 2.075 1.297 2.5792 1.7432 3.4291-0.37685 2.6746-6.5374 6.1886-12.722 11.297-17.709 4.1039 8.7427 14.629 4.1809 20.006-0.14062 4.4873 9.6838 10.377 6.3535 15.377 3.4785 4.0764 7.8829 10.756 7.25 17.631 0.0625 4.875 4.5625 14.713 4.1867 15.555-3.426 8.4753 2.6244 14.012 10.437 22.962-1.4764 8.8552 6.8221 14.407 16.853 17.122 27.51 0.34 1.554 1.175 0.85565 2.2212 0.44315 10.255-4.286 22.842-15.749 15.705-23.975-3.5623-3.5623-13.539-2.1387-13.539-2.1387s6.77-7.1233 9.2637-18.168c2.4936-11.043-23.514-4.9883-23.514-4.9883s7.4818-5.6993 12.113-13.537c4.6314-7.8378-2.4943-11.756-11.045-11.043-8.5496 0.71204-17.1 7.4805-17.1 7.4805s3.3946-7.8055-3.5625-12.826c-9.5935-6.9234-23.869 6.4121-23.869 6.4121-4.2562-26.835-24.872-6.386-31.707 8.1953z" style="fill:#ccc;"/>`,i[11]=[],i[11].env=s,i[11].clo=`<path d="m116 203.13c-0.12 0-0.25 0.12-0.49 0.12s-0.25-0.12-0.49-0.12zm-27.29-8c0.87-0.25 1.72-0.47 2.56-0.69a32.37 32.37 0 0 0 0.3 8.57 21.5 21.5 0 0 0 7 6.88c6.41-6 16.8-6.64 16.8-6.64s10.5 0.58 17 6.69a21.61 21.61 0 0 0 6.93-6.66 32.34 32.34 0 0 0 0.35-8.84l2.13 0.56a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.64 114.64 0 0 1 37.38-16.37z" style="fill:#e9e9e9;"/><path d="m126.15 206-3.92 7.83h-13.46l-3.92-7.83a36.59 36.59 0 0 1 10.65-2.7 35.66 35.66 0 0 1 10.65 2.7z" style="fill:#818181;"/><path d="m124.54 230.65-2.18-16.74h-13.47l-2.19 16.76c2.9 0.22 5.84 0.33 8.8 0.33s6.06-0.12 9-0.35z" style="fill:#989898;"/><path d="m134.84 186s0.86 9.8-19.34 17.26c0 0 15.79 0.86 20.57 11.76 0.12 0.49 9.3-23.26-1.23-29z" style="fill:#fff;"/><path d="m96.16 186c-10.41 5.76-1.35 29.39-1.1 29 4.65-10.78 20.56-11.76 20.56-11.76-20.32-7.45-19.46-17.24-19.46-17.24z" style="fill:#fff;"/>`,i[11].head=c,i[11].mouth=`<path d="m118.57 165.14a8.66 8.66 0 0 0-2.76-4.23h-0.62a8 8 0 0 0-2.76 4.22c-0.52 1.89 2.07 10.61 2.76 12.53h0.62c0.64-1.76 3.19-10.82 2.76-12.52z" style="fill:#333;"/><path d="m102.81 152.24a2.4921 2.4921 0 1 1 1.19-4.84l0.21 0.06a37.1 37.1 0 0 0 5.43 1.12 44.52 44.52 0 0 0 11.76 0 37.1 37.1 0 0 0 5.43-1.12 2.4903 2.4903 0 0 1 1.59 4.72l-0.21 0.06a43.08 43.08 0 0 1-6.15 1.29 48.55 48.55 0 0 1-13.08 0 42.79 42.79 0 0 1-6.17-1.29z" style="fill:#333;"/>`,i[11].eyes=`<path d="m86.851 100.39a4.94 4.94 0 1 0 4.9297 5 5 5 0 0 0-4.9297-5zm57.221 0a4.94 4.94 0 1 0 4.9394 4.9394 4.94 4.94 0 0 0-4.9394-4.9394z" style="fill:#333;"/><path d="m86.207 89.365c-25.504 0-21.503 6.8561-21.035 19.596 0.80177 18.121 17.763 16.514 21.201 16.639 14.758-0.041 20.518-8.227 22.951-22.932 1.8166-10.731-9.251-13.174-23.117-13.303zm58.598 0c-13.866 0.1284-24.936 2.5717-23.119 13.303 2.4332 14.705 8.1936 22.891 22.951 22.932 3.4383-0.125 20.399 1.4828 21.201-16.639 0-18.965-0.47958-19.596-21.033-19.596z" style="fill:#4d4d4d;"/><path d="m169.87 90.255a0.51 0.51 0 0 0-0.43991-0.52 167.64 167.64 0 0 0-22.6-1.6801c-12 0-27.47 3.7601-30.17 3.7601h-2.4c-1.2499 0-5.29-0.80996-10.45-1.6801a124.35 124.35 0 0 0-19.72-2.08 166.18 166.18 0 0 0-19.31 1.24c-1.56 0.17999-2.69 0.35009-3.2899 0.44009a0.51 0.51 0 0 0-0.44007 0.52l-0.091 6.4501a0.57 0.57 0 0 0 0.33012 0.52l0.73994 0.23992c1.08 0.41992 1.0001 19.85 6.78 24.71 3.4401 2.8599 6.51 4.4899 19.42 4.4899 7.4699 0 12.17-1.9999 16.63-8 3.21-4.32 6.0999-14.55 6.0999-14.55 0.82006-4.07 3.7702-4.52 4.43-4.5801h0.12068c0.11078 0 3.66 0.0593 4.57 4.5801 0 0 2.8599 10.22 6.0699 14.54 4.4601 5.9999 9.1601 8 16.63 8 12.91 0 16-1.63 19.42-4.4901 5.7898-4.86 5.6998-24.29 6.78-24.71l0.73994-0.23993a0.57 0.57 0 0 0 0.32996-0.52l-0.12068-6.4501zm-65 23c-1.9101 4.5-6.8 10.29-13.7 10.64-20.7 0.99985-21.65-4.7401-23-9.3201a31.45 31.45 0 0 1-1.2099-13.18c0.53997-4.5799 1.7-7.2699 3.7801-8.6201a9.3 9.3 0 0 1 4.3499-1.51 85.07 85.07 0 0 1 11.4-0.52 59.23 59.23 0 0 1 9.2099 0.69999c7.37 1.2 12.35 3.7001 12.35 6.1601a46.12 46.12 0 0 1-3.23 15.64zm58 1.3201c-1.34 4.5799-2.29 10.36-23 9.3201-6.91-0.3501-11.81-6.1401-13.71-10.64a46.35 46.35 0 0 1-3.22-15.64c0-3.39 9.43-6.8599 21.56-6.8599 12.13 0 14 0.89996 15.75 1.9999 2.08 1.3502 3.2398 4 3.77 8.6201a31.23 31.23 0 0 1-1.1601 13.17z" style="fill:#333;"/>`,i[11].top=`<path d="m156.1 15.879c-0.38556 5.3015-1.7049 9.4762-3.6602 12.76-0.41226 23.773-9.2343 35.229-15.154 42.797l15.062-4.6641c-0.66253 2.8135-2.4628 7.156-0.34766 12.137 1.6334-2.3144 7.9395-5.807 13-3.3477-0.43442 3.5532-0.95271 7.094-1.4512 10.639l8.9648 0.85937c0.83453 3.8792 0.51719 9.3449-0.59961 11.736l5.5508 2.0098c0.20764 2.7646 0.10001 5.4906-0.74609 8.875 8.4545-1.7225 14.213-4.3896 19.641-13.188 2.8639-4.7524 4.9018-10.483 4.7305-17.242-4.1612 4.916-9.6484 7.2485-15.26 10.109 6.507-11.065 8.8648-22.768 8.1367-30.58-7.3456 10.251-11.649 13.06-19.918 16.9 1.2386-11.4 5.5249-18.582 12.461-27.27-11.392-1.3025-16.301 1.4749-24.891 6.4395 4.5466-14.036 2.2208-26.679-5.5195-38.971zm-117.76 28.682c9.3378 3.6366 19.581 9.0234 21.129 18.549-7.6182 0.0414-14.897-3.5072-20.242-7.1894-0.15967 8.2309 2.8451 12.252 6.7734 19.08-7.2127 1.6129-12.084 4.8315-17.471 9.4805 7.2948-0.15715 12.299-1.0502 16.891 4.2793-6.0512 5.0164-11.99 10.79-11.99 19.24 9.257-6.1688 12.495-5.9486 21.137-2.2012 1.2906-8.0996 2.3978-14.872 2.7869-16.435 2.4719-0.73247 3.5247-0.94807 5.9221-1.2938-2.1556-7.4281 1.0996-9.5176 2.4141-11.6l7.543 1.5059c-3.9093-6.1699 2.6565-12.483 7.1445-15.51-4.4474-7.2082-5.6649-11.558-7.377-16.797-11.198-8.2947-23.895-6.2742-34.66-1.1094z" style="fill:#f9f9f9;"/><path d="m101.9 7.6408c-10.047 6.2416-12.441 28.646-12.131 33.289-6.9249-5.8258-7.8992-13.75-7.7695-19.203-9.6235 6.0158-10.666 14.421-9 23.943 1.1061 5.1411 2.3972 10.461 7.377 16.797 2e-3 -1e-3 4e-3 -3e-3 6e-3 -4e-3 2.7742 2.8742 5.4644 5.5941 8.3477 8.3574 0.41187-6.971 0.45449-13.622 7.1856-15.824 3.9532 2.8169 7.4123 5.9388 11.084 9.1035l10.559-10.25c5.6447 3.961 5.4531 6.5652 6.5215 14.104 2.153-1.7546 8.719-9.0037 15.844-10.139 0.98706 4.1261-0.99388 10.308-2.6387 13.621 0 0 14.32-11.846 15.195-27.971 0.33968-6.2599 0.2237-11.146-0.041-14.826-3.2125 5.5652-8.7118 8.7799-13.789 10.15-4.2715-9.2486-2.4785-21.435-0.48047-29.309-12.21 3.0195-20.932 18.337-22.172 25.07-9.2678-7.397-13.605-16.146-14.098-26.91z" style="fill:#f9f9f9;"/>`,i[12]=[],i[12].env=s,i[12].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5l26.23 13 26.27-13z" style="fill:#131111;"/><polygon points="115.5 208.03 115.5 207.74 82.72 188.91 80.45 198.86 101.46 222.72" style="fill:#cbcbcb;"/><polygon points="115.5 208.03 115.5 207.74 148.28 188.91 150.55 198.86 129.54 222.72" style="fill:#cbcbcb;"/>`,i[12].head=c,i[12].mouth=`<path d="m123.07 154.05a10.61 10.61 0 0 1-15 0.14l-0.14-0.14" style="fill:none;`+l+`6.3px;stroke:#000;"/><path d="m120.1 142.22 0.19-0.11c3-1.87 5.45-2.4 7.3-1.46 2.15 1.1 3.12 3.84 4.84 5.5a5.18 5.18 0 0 0 6.68 0.73m-28.21-4.66-0.19-0.11c-3-1.87-5.45-2.4-7.3-1.46-2.15 1.1-3.12 3.84-4.84 5.5a5.18 5.18 0 0 1-6.68 0.73" style="fill:none;`+l+`5.9998px;stroke:#4d4d4d;"/>`,i[12].eyes=`<path d="m161.73 86.016h-92.51c-3.37 0-6.0001 2.3998-6.0001 5.2999v28.45c0 3.0002 2.74 5.3001 6.0001 5.3001h32.36c7.0901 0 7.44-19.43 13.82-19.43s6.8801 19.44 13.83 19.44h32.36c3.37 0 5.9999-2.4 5.9999-5.3001v-28.46c0.14043-2.9001-2.6-5.2999-5.9-5.2999z" style="fill:#8f8f8f;"/><path d="m161.73 86.016h-92.51c-3.37 0-6.0001 2.3998-6.0001 5.2999v28.45l104.55-28.45c0-2.9001-2.74-5.2999-5.9999-5.2999z" style="fill:#e3e3e3;"/><path d="m161.73 86.016h-92.51c-3.37 0-6.0001 2.3998-6.0001 5.2999v28.45c0 3.0002 2.74 5.3001 6.0001 5.3001h32.36c7.0901 0 7.44-19.43 13.82-19.43s6.8801 19.44 13.83 19.44h32.36c3.37 0 5.9999-2.4 5.9999-5.3001v-28.46c0.14043-2.9001-2.6-5.2999-5.9-5.2999z" style="fill:none;`+l+`4.0026px;stroke:#232323;"/>`,i[12].top=`<path d="m69.834 33.826c-8.2001-0.0626-16.444 2.6753-23.152 7.7038-8.5298 6.9899-12.159 19.61-12.329 32.68-0.2041 15.476 1.6092 34.752 1.7464 51.915 0.10414 13.047 0.53485 25.984-2.9197 33.995-2.4994 5.81-9.0955 9.6006-16.196 12.311 7.9599 2.8301 25.009 2.8094 33.58 1.5393 10.8-1.59 17.238-6.5294 17.159-22.699-0.0911-15.93-1.3894-29.23-1.559-45.83-0.3208-11.983-1.569-24.291 4.9774-33.987 4.2139-6.1265 10.452-10.521 17.116-13.588 3.9292-1.8575 8.0384-3.3083 12.263-4.3297-6.8718-13.574-18.732-19.618-30.687-19.709z" style="fill:#b3b3b3;"/><path d="m90.8 76.246c11.918-17.125 31.996-23.218 49.743-17.488 11.81 3.9496 20.692 13.389 22.313 28.237 0.51051 6.2098 0.63413 12.445 0.37007 18.67-0.23973 11.2-0.72946 23.82-1.0995 34.08-0.82005 22.43 0.0593 35.1 24.589 36.3 8.5635 0.32122 17.137-0.22845 25.59-1.6405h-0.0198c-10.74-3.3799-17.98-15.609-19.3-26.289-1.29-10.41-0.6098-23.43-0.7898-38.091-0.1701-14.96 1.0398-29.819 0.28008-42.089-1.414-22.777-14.947-38.505-34.126-45.152-27.813-7.35-51.083 0.091-61.672 17.343-5.4698 8.9112-7.7413 20.07-5.8788 36.121z" style="fill:#b3b3b3;"/>`,i[13]=[],i[13].env=s,i[13].clo=`<path d="M61.11,205.59l3.49,3.69-6.26,6.6A115.45,115.45,0,0,0,72,222.51v-22a115.19,115.19,0,0,0-10.85,5.1Z" style="fill:#eee;"/><path d="M93.24,228.85V199l-4-4A114.43,114.43,0,0,0,72,200.49v22a114.43,114.43,0,0,0,21.28,6.34Z" style="fill:#787878;"/><path d="m159 222.51v-22a114.63 114.63 0 0 0-17.25-5.51l-4 4v29.86a114.16 114.16 0 0 0 21.25-6.35z" style="fill:#787878;"/><path d="m169.89 205.59-3.49 3.69 6.26 6.6a115.45 115.45 0 0 1-13.66 6.63v-22a115.19 115.19 0 0 1 10.85 5.1z" style="fill:#eee;"/><path d="M115.5,219.62A28.5,28.5,0,0,1,87.25,195c2.93-.74,5.92-1.36,8.94-1.87a19.41,19.41,0,0,0,38.62,0c3,.51,6,1.13,8.94,1.87a28.49,28.49,0,0,1-28.25,24.63Z" style="fill:#c9c9c9;"/>`,i[13].head=c,i[13].mouth=`<path d="m115.5 153.93a14 14 0 0 1-10.5-4.69 3.4209 3.4209 0 0 1 5-4.67l0.08 0.08 0.08 0.09a7.35 7.35 0 0 0 10.39 0.37l0.37-0.37a3.4206 3.4206 0 1 1 5.23 4.41l-0.08 0.09a14 14 0 0 1-10.53 4.69z" /><path d="m115.27 127.32c-7.6627-0.03-15.251 1.4419-20.646 5.1465-7.62 5.33-9.9053 11.512-14.127 18.109-3.4379 5.2447-9.326 10.024-13.467 6.334 25.425 29.755 71.409 29.786 96.875 0.0664-6.8104 3.9305-11.545-2.47-13.508-6.4004-10.697-17.605-14.115-22.656-35.127-23.256zm-0.26758 8.3984c7.457 0.0802 14.986 1.2966 17.146 5.9522 2.5765 11.319-7.5878 17.454-16.681 17.515-6.09-0.05-12.2-2.3802-15.26-7.7402-6.36-11.16 3.6349-15.607 14.795-15.727z" style="fill:#404040;"/>`,i[13].eyes=`<path d="m91.72 97.36v11.4m47.56-11.4v11.4" style="fill:none;`+l+`7.9999px;stroke:#333;"/>`,i[13].top=`<path d="m52.107 57.293c-1.3411 14.839-3.8707 52.771 1.3145 72.715-0.67572-43.829 12.389-70.177 62.078-70.187 49.689 0.010061 62.754 26.359 62.078 70.187 5.1852-19.944 2.6556-57.876 1.3145-72.715h-63.393-63.393z" style="fill:#4d4d4d;"/><path d="m52.339 30.629c-1.3825 24.448-2.1216 45.905-1.4497 66.517 9.4643-48.304 112.77-54.916 129.22 0 0.67191-20.612-0.3798-47.256-1.4928-66.517-32.241 14.296-91.346 18.861-126.28 0z" style="fill:#4d4d4d;"/><path d="m115.5 24.92c-22.25 0-44.5 4.2296-56.72 12.69-3.32 2.3-5.0602 6.4392-5.5903 10.269-0.45275 3.23-0.84043 6.7561-1.1785 10.461h126.98c-0.33704-3.7047-0.72492-7.2306-1.1775-10.461-0.53009-3.8301-2.2697-7.9992-5.5897-10.269-12.22-8.4601-34.47-12.69-56.72-12.69z" style="fill:#4d4d4d;"/><path d="m76.521 39.139c21.233 3.3965 33.116-13.392 37.59-31.72 4.3614 17.158 14.175 34.968 36.577 31.584-33.921 20.594-57.646 11.594-74.167 0.1345z" style="fill:#4d4d4d;"/>`,i[14]=[],i[14].env=s,i[14].clo=`<path d="m91.92 194.41a101.47 101.47 0 0 1 23.58 17.09 101.47 101.47 0 0 1 23.58-17.09c0.89 0.19 1.78 0.38 2.67 0.59a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5c0.88-0.21 1.78-0.4 2.67-0.59z" style="fill:#757575;"/><path d="m73.65 199.82c16.59 8.23 28.72 18.91 34.27 30.93a114.86 114.86 0 0 1-56.65-19.25 115.06 115.06 0 0 1 22.38-11.68z" style="fill:#d8d8d8;"/><path d="m60.63 205.85c12.35 5.94 21.93 13.44 27.59 21.91a114.7 114.7 0 0 1-36.95-16.26q4.53-3 9.36-5.65z" style="fill:#757575;"/><path d="m157.35 199.82c-16.6 8.23-28.72 18.91-34.27 30.93a114.86 114.86 0 0 0 56.65-19.25 115.06 115.06 0 0 0-22.38-11.68z" style="fill:#d8d8d8;"/><path d="m170.37 205.85c-12.35 5.94-21.93 13.44-27.59 21.91a114.7 114.7 0 0 0 36.95-16.26q-4.53-3-9.36-5.65z" style="fill:#757575;"/>`,i[14].head=c,i[14].mouth=`<path d="m115.5 131c-17.71 0.65-27 9.41-29.61 23.69-1 5.62-0.43 7.06 2.76 7.17 22.76 0.76 22.23 18.21 26.85 18.89 4.62-0.68 4.09-18.13 26.85-18.89 3.19-0.11 3.79-1.55 2.76-7.17-2.62-14.28-11.9-23-29.61-23.69zm0 29.31c-10 0-18-5-18-11.17s8.08-11.17 18-11.17 18 5 18 11.17-8.08 11.17-18 11.17z" style="fill:#333;"/><path d="m123.54 148.46a11.53 11.53 0 0 1-16.09 0" style="fill:none;`+l+`6.7998px;stroke:#000;"/>`,i[14].eyes=`<path d="m133 108.17h14.17m-63.26 0h14.09m-20.69-8.93a21.31 21.31 0 0 1 27.29 0m21.8 0a21.31 21.31 0 0 1 27.29 0" style="fill:none;`+l+`4.8243px;stroke:#000;"/>`,i[14].top=`<path d="m115.5 51.75c-38.702 5.3101-54.215 18.038-59.863 35.101" style="fill:none;`+l+`12;stroke:#333;"/><path d="m115.5 51.75c-7.8393 3.6337-5.5974 16.583-14.341 23.452" style="fill:none;`+l+`12;stroke:#333;"/><path d="m111.35 48.614c-22.634-6.9181-42.457-3.1988-55.733 2.5105" style="fill:none;`+l+`12;stroke:#333;"/><path d="m115.47 54.008c0.1965-6.7774-0.1436-26.309 0.05-38.184" style="fill:none;`+l+`12;stroke:#333;"/><path d="m68.874 28.177c34.115-3.382 41.987 13.321 45.17 19.602" style="fill:none;`+l+`12;stroke:#333;"/><path d="m116.49 48.69c2.8876-6.3019 10.358-21.518 43.469-22.326" style="fill:none;`+l+`12;stroke:#333;"/><path d="m116.92 51.766c1.5094 6.3991 3.4988 15.595 10.088 23.058" style="fill:none;`+l+`12;stroke:#333;"/><path d="m113.81 51.532c22.03-7.8674 46.709-7.3614 59.444-2.0465" style="fill:none;`+l+`12;stroke:#333;"/><path d="m114.53 52.278c36.226 4.8583 52.414 17.092 59.373 33.347" style="fill:none;`+l+`12;stroke:#333;"/><path d="m55.637 86.851c-4.1213 12.452-2.9877 27.213-1.777 43.084" style="fill:none;`+l+`12;stroke:#333;"/><path d="m55.614 51.124c-13.422 5.5019-21.908 16.409-24.712 28.774-1.8322 8.4632-1.9809 18.156-1.6096 28.486" style="fill:none;`+l+`12;stroke:#333;"/><path d="m173.26 49.486c24.917 10.399 26.707 36.537 27.209 59.62" style="fill:none;`+l+`12;stroke:#333;"/><path d="m173.9 85.625c5.4042 12.625 5.2413 27.675 4.5745 43.58" style="fill:none;`+l+`12;stroke:#333;"/><path d="m53.86 129.93c1.293 16.951 2.6738 35.169-2.1664 53.193" style="fill:none;`+l+`12;stroke:#333;"/><path d="m29.292 108.38c0.6173 17.177 2.6722 36.119 0.8158 54.108" style="fill:none;`+l+`12;stroke:#333;"/><path d="m200.47 109.11c0.3586 18.529-1.2751 36.94 1.9231 48.985" style="fill:none;`+l+`12;stroke:#333;"/><path d="m178.48 129.2c-0.7279 17.362-2.0563 35.743 2.6011 53.099" style="fill:none;`+l+`12;stroke:#333;"/>`,i[15]=[],i[15].env=s,i[15].clo=`<path d="m141.75 195a114.79 114.79 0 0 1 38 16.5 115.53 115.53 0 0 1-128.46 0 114.79 114.79 0 0 1 38-16.5 115.77 115.77 0 0 1 15.71-2.53v-14.09a63.8 63.8 0 0 0 21 0v14.09a116.6 116.6 0 0 1 15.75 2.53z" style="fill:#1a1a1a;"/><path d="m60.984 205.66 6.2675 2.2051 3.4074-6.819 2.8018-1.1353-3.9911 7.9907 27.222-3.0857 3.2541-11.739 2.1451-0.2692-3.2833 11.819 20.393-1.6011-14.191-15.945v-2.4379l17.606-5.7274 3.3855-0.473v1.47l-19.167 6.2295 14.731 16.542 19.839-7.7432 3.3636 0.8223-21.371 8.34 20.532 13.842 2.6777-21.687 1.9481 0.5604-2.7726 22.378 0.0584 0.0364 8.5075 4.9923-2.4807 0.85145-6.4718-3.7916-1.2987 6.0622-2.1524 0.53125 1.3425-6.2804-17.037 8.8348-5.0271 0.35661 21.59-11.193-20.962-14.133-7.5006 25.457-2.0721-0.0364 7.6392-25.915-21.05 1.652 9.0109 24.052-1.4155-0.0946-0.49615-0.0437-0.073-7e-3 -0.2043-0.0145-8.3688-22.342-10.127 19.242-1.9846-0.52399 10.514-19.962-26.04 2.9547 13.425 16.418-3.4438-1.0625-12.083-14.781-8.1645 5.9675-1.9043-1.077 8.128-5.9385-6.9898-2.4598 2.3348-1.2881zm92.509-7.2556 14.228 20.093-1.8095 0.89514-15.614-22.043z" style="fill:#b2b2b2;"/>`,i[15].head=c,i[15].mouth=`<path d="m97.06 144.59a20.15 20.15 0 0 0 36.88 4.53z" style="fill:#fff;`+l+`2.9999px;stroke:#000;"/>`,i[15].eyes=`<line x1="85.29" x2="85.29" y1="98.73" y2="109.79" style="fill:none;`+l+`8.7999px;stroke:#000;"/><path d="m108.28 72.16h62.18c9.19 0 13.32 1.21 14.71 8.52 3.61 18.95 2.2 33.49-0.44 43.75a65.07 65.07 0 0 1-5.89 14.78 73.52 73.52 0 0 1-7.06 10.26c-1.8 2.27-5.17 1.21-4.19-1.09 0.14-0.47 0.27-1 0.4-1.48a14.29 14.29 0 0 0 0.52-6.62 12.52 12.52 0 0 0-3.88-6.3c-4.17-3.9-12.81-8.71-32.53-13.66-6.4-1.6-10.69-2.24-11.76-2.79a7.08 7.08 0 0 1-3.85-6.31v-9c0-2.39 0.18-4.55-1.56-6.57s-4.16-2.13-6.65-2.14a6 6 0 0 1-6-6v-9.35a6 6 0 0 1 6-6z" style="fill:#1a1a1a;"/><path d="m135.9 98.73v9.27m15.22-9.29v9.29" style="fill:none;`+l+`7.7998px;stroke:#b2b2b2;"/>`,i[15].top=`<path d="m109.99 15.57c-13.46 3.6301-19.789 11.95-24.069 24.08-6.9996-7-8.7307-10.82-7.5606-21.43a41 41 0 0 0-9.2698 24.988c0.0366 7.6776 5.6462 13.939 12.697 15.297-13.315 5.8106-15.258 22.033-14.045 33.524 5.7687-11.861 14.254-20.981 27.258-22.951-0.43017 6.6-2.5099 10.22-7.29 17.66 18.29-2.8601 25.119-7.8199 37.15-18.24 0.46001 0 1.0001 0.089 1.4606 0.12058-0.33023 3.5601-1.0906 6.5598-5.0004 12.46 9.5298-1.32 14.721-5.8006 17.539-11.671 8.8862 0.95314 15.836 6.785 21.26 14.818 1.928-15.211-4.4766-26.6-19.807-34.036 1.4167-2.6974 8.0143-11.925 17.661-15.721-1.424-0.28569-2.8883-0.49486-4.4033-0.61125-5.71-0.41992-13.62-0.99982-24.89 4.1703 2.8501-8.5101 10.21-11 18.05-13.12-15.131-1.2501-28.61-2.5898-40.53 8.1801-1.8997-6.21-0.18055-12.54 3.7889-17.52z" style="fill:#fff;"/><path d="m172.63 69.954c1.2292 14.064 0.93841 29.96 0.34635 45.169 1.7887 6.796 3.0379 13.235 3.8842 18.388l0.13973-0.011c1.0001 6.56 2.3597 13.18 3.2698 19.73 2.0002-6.5699 2.5303-18.25 3.2405-25.43 1.2597-13 1.8296-29.311-0.43017-41.931-0.85041-4.72-2.0007-7.6896-2.0007-8.4796 4.6205 3.5601 8.6606 9.2204 13.001 14.15-0.6751-3.4318-1.347-6.6004-2.0567-9.5273-4.047-5.7183-13.726-12.154-19.393-12.06z" style="fill:#fff;"/><path d="m157.97 34.471c-10.339 2.7579-17.715 13.543-19.132 16.24 15.33 7.4361 20.783 17.96 21.278 33.517 5.9534 8.8179 10.066 20.289 12.857 30.895 0.87636-13.178 1.8186-27.726 0.26566-44.28 2.5698 0.44857 9.1372 1.3934 18.781 11.17-2.1158-8.7321-4.5671-15.31-8.4539-20.283-4.5598-5.8401-10.999-10.431-23.809-13 9.6502-3.34 16.27-0.76993 25.5 2.1301-8.1388-7.4315-16.474-14.219-27.287-16.389z" style="fill:#fff;"/><path d="m61.473 73.354c-7.256-0.77501-13.024 2.3746-16.262 5.3879 0.73789-0.45409 1.3868-0.74208 1.8489-0.74208 0 0-1.5198 10.359-1.6197 11.519-1.56 19.73 0.99957 43.401 6.37 62.471 1.3099 4.6899 1.1895 3.0893 1.8898-0.9107 1.7526-10.061 3.3891-24.703 6.9739-38.864-5.068-17.627-4.2508-32.403 0.79937-38.861z" style="fill:#fff;"/><path d="m69.09 43.21c-0.0253 1.0803-8e-3 2.1612 0.0523 3.2402-3.8402 0-12.46 0.71984-16 2.1598-4.4504 1.8001-8.48 5.4801-11.67 11.83 7.2999-3.94 11.899-3.8502 16.66-1.8102-10.39 3.45-19.52 11.37-20.32 26.9 1.1456-1.5053 4.6079-4.9789 7.1393-6.6285 0.09-0.0587 0.17427-0.10556 0.26167-0.15946 3.7141-2.3211 9.0494-5.1247 15.181-4.9553-5.0501 6.4577-6.6824 20.434 0.28207 38.428 1.7866-7.0567 4.0574-13.994 7.0681-20.184-1e-3 -11.664 2.0764-27.774 15.391-33.585-7.0508-2.1538-12.709-7.991-14.043-15.236z" style="fill:#fff;"/>`;var u=u||function(e,t){var n={},r=n.lib={},i=function(){},a=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty(`init`)||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n==t?4*e.length:n},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i<e;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<e;i+=4)t[r+i>>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++){var i=t[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-r%4*8&255));return n.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),s;if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,i=e.min(4*t,i),t){for(var c=0;c<t;c+=a)this._doProcessBlock(r,c);c=r.splice(0,t),n.sigBytes-=i}return new o.init(c,i)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=n.algo={};return n}(Math);(function(e){for(var t=u,n,r=(n=t.lib).WordArray,i=n.Hasher,n=t.algo,a=[],o=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,l=0;64>l;){var d;a:{d=c;for(var f=e.sqrt(d),p=2;p<=f;p++)if(!(d%p)){d=!1;break a}d=!0}d&&(8>l&&(a[l]=s(e.pow(c,.5))),o[l]=s(e.pow(c,1/3)),l++),c++}var m=[],n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=n[5],u=n[6],d=n[7],f=0;64>f;f++){if(16>f)m[f]=0|e[t+f];else{var p=m[f-15],h=m[f-2];m[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+m[f-7]+((h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10)+m[f-16]}p=d+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&u)+o[f]+m[f],h=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),d=u,u=l,l=c,c=s+p|0,s=a,a=i,i=r,r=p+h|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)})(Math);var d=``;if(e.length==0)return d;d=u.SHA256(e).toString().replace(/\D/g,``).substring(0,12);var f=[];for(var p in f.env=d[0]+``+d[1],f.env=Math.round(.47*f.env)+``,f.clo=d[2]+``+d[3],f.clo=Math.round(.47*f.clo)+``,f.head=d[4]+``+d[5],f.head=Math.round(.47*f.head)+``,f.mouth=d[6]+``+d[7],f.mouth=Math.round(.47*f.mouth)+``,f.eyes=d[8]+``+d[9],f.eyes=Math.round(.47*f.eyes)+``,f.top=d[10]+``+d[11],f.top=Math.round(.47*f.top)+``,f){var m=f[p];m>31?((m=m-32+``).length==1&&(m=`0`+m),f[p]=m+`C`):m>15?((m=m-16+``).length==1&&(m=`0`+m),f[p]=m+`B`):f[p]=(m+``).length==1?`0`+m+`A`:m+`A`}var h=[];for(var p in f){var g=f[p].substring(0,2),_=f[p].substring(2,3);n!==void 0&&(g=n.part,_=n.theme),h[p]=v(p,g,_)}function v(e,t,n){var a=r[t][n][e],o=i[t][e],s=o.match(/#(.*?);/g),c=o;if(s!=null)for(var l=0;l<s.length;l++)c=c.replace(s[l],a[l]+`;`);return c}return t&&(h.env=``),a+h.env+h.head+h.clo+h.top+h.eyes+h.mouth+o}t.exports=n}))()),H=Object.create(null);H.open=`0`,H.close=`1`,H.ping=`2`,H.pong=`3`,H.message=`4`,H.upgrade=`5`,H.noop=`6`;var Be=Object.create(null);Object.keys(H).forEach(e=>{Be[H[e]]=e});var Ve={type:`error`,data:`parser error`},He=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Ue=typeof ArrayBuffer==`function`,We=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ge=({type:e,data:t},n,r)=>He&&t instanceof Blob?n?r(t):Ke(t,r):Ue&&(t instanceof ArrayBuffer||We(t))?n?r(t):Ke(new Blob([t]),r):r(H[e]+(t||``)),Ke=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function qe(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Je;function Ye(e,t){if(He&&e.data instanceof Blob)return e.data.arrayBuffer().then(qe).then(t);if(Ue&&(e.data instanceof ArrayBuffer||We(e.data)))return t(qe(e.data));Ge(e,!1,e=>{Je||=new TextEncoder,t(Je.encode(e))})}var Xe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,U=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)U[Xe.charCodeAt(e)]=e;var Ze=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=U[e.charCodeAt(r)],o=U[e.charCodeAt(r+1)],s=U[e.charCodeAt(r+2)],c=U[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Qe=typeof ArrayBuffer==`function`,$e=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:tt(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:et(e.substring(1),t)}:Be[n]?e.length>1?{type:Be[n],data:e.substring(1)}:{type:Be[n]}:Ve},et=(e,t)=>Qe?tt(Ze(e),t):{base64:!0,data:e},tt=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},nt=``,rt=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Ge(e,!1,e=>{r[a]=e,++i===n&&t(r.join(nt))})})},it=(e,t)=>{let n=e.split(nt),r=[];for(let e=0;e<n.length;e++){let i=$e(n[e],t);if(r.push(i),i.type===`error`)break}return r};function at(){return new TransformStream({transform(e,t){Ye(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var ot;function st(e){return e.reduce((e,t)=>e+t.length,0)}function ct(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function lt(e,t){ot||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(st(n)<1)break;let e=ct(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(st(n)<2)break;let e=ct(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(st(n)<8)break;let e=ct(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Ve);break}i=a*2**32+t.getUint32(4),r=3}else{if(st(n)<i)break;let e=ct(n,i);s.enqueue($e(a?e:ot.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Ve);break}}}})}function W(e){if(e)return ut(e)}function ut(e){for(var t in W.prototype)e[t]=W.prototype[t];return e}W.prototype.on=W.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},W.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},W.prototype.off=W.prototype.removeListener=W.prototype.removeAllListeners=W.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},W.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},W.prototype.emitReserved=W.prototype.emit,W.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},W.prototype.hasListeners=function(e){return!!this.listeners(e).length};var dt=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),G=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),ft=`arraybuffer`;function pt(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var mt=G.setTimeout,ht=G.clearTimeout;function gt(e,t){t.useNativeTimers?(e.setTimeoutFn=mt.bind(G),e.clearTimeoutFn=ht.bind(G)):(e.setTimeoutFn=G.setTimeout.bind(G),e.clearTimeoutFn=G.clearTimeout.bind(G))}var _t=1.33;function vt(e){return typeof e==`string`?yt(e):Math.ceil((e.byteLength||e.size)*_t)}function yt(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function bt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xt(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function St(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var Ct=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},wt=class extends W{constructor(e){super(),this.writable=!1,gt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new Ct(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=$e(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=xt(e);return t.length?`?`+t:``}},Tt=class extends wt{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){it(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,rt(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=bt()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Et=!1;try{Et=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Dt=Et;function Ot(){}var kt=class extends Tt{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},K=class e extends W{constructor(e,t,n){super(),this.createRequest=e,gt(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=pt(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Ot,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(K.requestsCount=0,K.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,At);else if(typeof addEventListener==`function`){let e=`onpagehide`in G?`pagehide`:`unload`;addEventListener(e,At,!1)}}function At(){for(let e in K.requests)K.requests.hasOwnProperty(e)&&K.requests[e].abort()}var jt=(function(){let e=Nt({xdomain:!1});return e&&e.responseType!==null})(),Mt=class extends kt{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=jt&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new K(Nt,this.uri(),e)}};function Nt(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Dt))return new XMLHttpRequest}catch{}if(!t)try{return new G[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Pt=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Ft=class extends wt{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Pt?{}:pt(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Ge(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&dt(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=bt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},It=G.WebSocket||G.MozWebSocket,Lt={websocket:class extends Ft{createSocket(e,t,n){return Pt?new It(e,t,n):t?new It(e,t):new It(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends wt{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=lt(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=at();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&dt(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Mt},Rt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,zt=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Bt(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Rt.exec(e||``),a={},o=14;for(;o--;)a[zt[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Vt(a,a.path),a.queryKey=Ht(a,a.query),a}function Vt(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Ht(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Ut=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Wt=[];Ut&&addEventListener(`offline`,()=>{Wt.forEach(e=>e())},!1);var q=class e extends W{constructor(e,t){if(super(),this.binaryType=ft,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Bt(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Bt(t.host).host);gt(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=St(this.opts.query)),Ut&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Wt.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=vt(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,dt(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),Ut&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Wt.indexOf(this._offlineEventListener);e!==-1&&Wt.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};q.protocol=4;var Gt=class extends q{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;q.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;q.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Kt=class extends Gt{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Lt[e]).filter(e=>!!e)),super(e,n)}};Kt.protocol;function qt(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Bt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Jt=typeof ArrayBuffer==`function`,Yt=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Xt=Object.prototype.toString,Zt=typeof Blob==`function`||typeof Blob<`u`&&Xt.call(Blob)===`[object BlobConstructor]`,Qt=typeof File==`function`||typeof File<`u`&&Xt.call(File)===`[object FileConstructor]`;function $t(e){return Jt&&(e instanceof ArrayBuffer||Yt(e))||Zt&&e instanceof Blob||Qt&&e instanceof File}function en(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(en(e[t]))return!0;return!1}if($t(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return en(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&en(e[t]))return!0;return!1}function tn(e){let t=[],n=e.data,r=e;return r.data=nn(n,t),r.attachments=t.length,{packet:r,buffers:t}}function nn(e,t){if(!e)return e;if($t(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=nn(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=nn(e[r],t));return n}return e}function rn(e,t){return e.data=an(e.data,t),delete e.attachments,e}function an(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=an(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=an(e[n],t));return e}var on=t({Decoder:()=>ln,Encoder:()=>cn,PacketType:()=>J,isPacketValid:()=>gn,protocol:()=>5}),sn=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],J;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(J||={});var cn=class{constructor(e){this.replacer=e}encode(e){return(e.type===J.EVENT||e.type===J.ACK)&&en(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===J.BINARY_EVENT||e.type===J.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=tn(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},ln=class e extends W{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===J.BINARY_EVENT;n||t.type===J.BINARY_ACK?(t.type=n?J.EVENT:J.ACK,this.reconstructor=new un(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if($t(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(J[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===J.BINARY_EVENT||r.type===J.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!fn(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case J.CONNECT:return mn(t);case J.DISCONNECT:return t===void 0;case J.CONNECT_ERROR:return typeof t==`string`||mn(t);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&sn.indexOf(t[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},un=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=rn(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function dn(e){return typeof e==`string`}var fn=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function pn(e){return e===void 0||fn(e)}function mn(e){return Object.prototype.toString.call(e)===`[object Object]`}function hn(e,t){switch(e){case J.CONNECT:return t===void 0||mn(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&sn.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t==`string`||mn(t);default:return!1}}function gn(e){return dn(e.nsp)&&pn(e.id)&&hn(e.type,e.data)}function Y(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var _n=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),vn=class extends W{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Y(e,`open`,this.onopen.bind(this)),Y(e,`packet`,this.onpacket.bind(this)),Y(e,`error`,this.onerror.bind(this)),Y(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(_n.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:J.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case J.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:J.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function X(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}X.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},X.prototype.reset=function(){this.attempts=0},X.prototype.setMin=function(e){this.ms=e},X.prototype.setMax=function(e){this.max=e},X.prototype.setJitter=function(e){this.jitter=e};var yn=class extends W{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,gt(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new X({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||on;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Kt(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=Y(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=Y(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(Y(e,`ping`,this.onping.bind(this)),Y(e,`data`,this.ondata.bind(this)),Y(e,`error`,this.onerror.bind(this)),Y(e,`close`,this.onclose.bind(this)),Y(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){dt(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new vn(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},Z={};function bn(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=qt(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=Z[i]&&a in Z[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new yn(r,t):(Z[i]||(Z[i]=new yn(r,t)),c=Z[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(bn,{Manager:yn,Socket:vn,io:bn,connect:bn});var Q=null;function xn(e){if(Q?.connected)return Q;let t=D(),n=e?.userId||localStorage.getItem(`gc_user_id`)||wn();return localStorage.setItem(`gc_user_id`,n),Q=bn(`/group-chat`,{auth:{token:t||void 0,userId:n,name:e?.userName||localStorage.getItem(`gc_user_name`)||void 0,description:e?.description||localStorage.getItem(`gc_user_description`)||void 0},transports:[`websocket`],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:3e4}),Q}function Sn(){let e=localStorage.getItem(`gc_user_id`);return e||(e=wn(),localStorage.setItem(`gc_user_id`,e)),e}function Cn(){return localStorage.getItem(`gc_user_name`)}function wn(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function Tn(){return Q?.connected?Q:null}function En(){Q&&=(Q.disconnect(),null)}async function Dn(e){return b(`/api/hermes/group-chat/rooms`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})}async function On(){return b(`/api/hermes/group-chat/rooms`)}async function kn(e){return b(`/api/hermes/group-chat/rooms/${e}`)}async function An(e){return b(`/api/hermes/group-chat/rooms/join/${e}`)}async function jn(e,t){return b(`/api/hermes/group-chat/rooms/${e}/agents`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})}async function Mn(e){return b(`/api/hermes/group-chat/rooms/${e}/agents`)}async function Nn(e,t){return b(`/api/hermes/group-chat/rooms/${e}/agents/${t}`,{method:`DELETE`})}async function Pn(e){return b(`/api/hermes/group-chat/rooms/${e}`,{method:`DELETE`})}async function Fn(e,t){return b(`/api/hermes/group-chat/rooms/${e}/config`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})}async function In(e){return b(`/api/hermes/group-chat/rooms/${e}/compress`,{method:`POST`})}var $=N(`groupChat`,()=>{let e=k(!1),t=k(null),n=k([]),r=k([]),i=k([]),a=k([]),o=k(``),s=k(!1),c=k(null),l=k(new Map),u=k(new Map),d=m(()=>{for(let[,e]of u.value)return e;return null}),f=k(Sn()),p=k(Cn()||``),h=m(()=>[...r.value].sort((e,t)=>e.timestamp-t.timestamp)),g=m(()=>i.value.map(e=>e.name)),_=m(()=>Array.from(l.value.values()).map(e=>e.name)),v=m(()=>{let e=_.value;return e.length===0?``:e.length===1?`${e[0]} is typing...`:e.length===2?`${e[0]} and ${e[1]} are typing...`:`${e[0]} and ${e.length-1} others are typing...`});function y(){let a=xn({userId:f.value,userName:p.value||void 0});console.log(`[GroupChat] connecting...`,{userId:f.value,userName:p.value}),a.on(`connect`,()=>{console.log(`[GroupChat] connected, socket id:`,a.id),e.value=!0,c.value=null}),a.on(`disconnect`,t=>{console.log(`[GroupChat] disconnected:`,t),e.value=!1}),a.on(`connect_error`,t=>{console.error(`[GroupChat] connect_error:`,t.message),c.value=t.message,e.value=!1}),a.on(`message`,e=>{e.roomId===t.value&&r.value.push(e)}),a.on(`member_joined`,e=>{e.roomId===t.value&&(i.value=e.members)}),a.on(`member_left`,e=>{e.roomId===t.value&&(i.value=e.members)}),a.on(`typing`,e=>{if(e.roomId===t.value&&!l.value.has(e.userId)){let t=setTimeout(()=>l.value.delete(e.userId),5e3);l.value.set(e.userId,{name:e.userName,timer:t})}}),a.on(`stop_typing`,e=>{if(e.roomId===t.value&&l.value.has(e.userId)){let t=l.value.get(e.userId);clearTimeout(t.timer),l.value.delete(e.userId)}}),a.on(`context_status`,e=>{e.roomId===t.value&&(e.status===`ready`?u.value.delete(e.agentName):u.value.set(e.agentName,{agentName:e.agentName,status:e.status}),u.value=new Map(u.value))}),a.on(`room_updated`,e=>{let t=n.value.find(t=>t.id===e.roomId);t&&(t.totalTokens=e.totalTokens)})}function b(){En(),e.value=!1,t.value=null,r.value=[],i.value=[],a.value=[],o.value=``,l.value.clear(),u.value.clear()}function x(e,t){p.value=e,localStorage.setItem(`gc_user_name`,e),localStorage.setItem(`gc_user_description`,t)}async function S(e){s.value=!0,c.value=null;try{let n=await kn(e);t.value=n.room.id,o.value=n.room.name,r.value=n.messages,a.value=n.agents,i.value=n.members||[]}catch(e){throw c.value=e.message,e}finally{s.value=!1}let n=Tn();n&&await new Promise(t=>{n.emit(`join`,{roomId:e,name:p.value||void 0},e=>{if(!e?.error){if(i.value=e.members||[],e.agents&&(a.value=e.agents),e.typingUsers){for(let t of e.typingUsers)if(!l.value.has(t.userId)){let e=setTimeout(()=>l.value.delete(t.userId),5e3);l.value.set(t.userId,{name:t.userName,timer:e})}}e.contextStatuses&&(u.value=new Map(e.contextStatuses.map(e=>[e.agentName,e])))}t()})})}async function C(e){let n=Tn();if(!(!n||!t.value))return M(),new Promise((r,i)=>{n.emit(`message`,{roomId:t.value,content:e},e=>{if(e.error){i(Error(e.error));return}r()})})}async function w(){try{n.value=(await On()).rooms}catch(e){c.value=e.message}}async function T(e,t,r,i){try{let a=await Dn({name:e,inviteCode:t,agents:r,compression:i||{triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20}});return n.value.push(a.room),a}catch(e){throw c.value=e.message,e}}async function E(e){try{let t=await An(e);return await S(t.room.id),t.room}catch(e){throw c.value=e.message,e}}async function ee(e){try{await Pn(e),n.value=n.value.filter(t=>t.id!==e),t.value===e&&(t.value=null,r.value=[],i.value=[],a.value=[],o.value=``)}catch(e){throw c.value=e.message,e}}async function D(e){try{a.value=(await Mn(e)).agents}catch{}}async function te(e,t){try{let n=await jn(e,t);return a.value.push(n.agent),n.agent}catch(e){throw c.value=e.message,e}}async function O(e,t){try{await Nn(e,t),a.value=a.value.filter(e=>e.id!==t)}catch(e){throw c.value=e.message,e}}let A=null;function j(){let e=Tn();!e||!t.value||(e.emit(`typing`,{roomId:t.value}),A&&clearTimeout(A),A=setTimeout(()=>M(),4e3))}function M(){let e=Tn();!e||!t.value||(e.emit(`stop_typing`,{roomId:t.value}),A&&=(clearTimeout(A),null))}return{connected:e,currentRoomId:t,rooms:n,messages:r,members:i,agents:a,roomName:o,isJoining:s,error:c,contextStatus:d,contextStatuses:u,userId:f,userName:p,sortedMessages:h,memberNames:g,typingNames:_,typingText:v,connect:y,disconnect:b,setUserInfo:x,joinRoom:S,sendMessage:C,loadRooms:w,emitTyping:j,emitStopTyping:M,createNewRoom:T,joinByCode:E,deleteRoom:ee,loadAgents:D,addAgentToRoom:te,removeAgentFromRoom:O}}),Ln={class:`avatar`},Rn=[`innerHTML`],zn={class:`msg-body`},Bn={class:`msg-header`},Vn={class:`sender-name`},Hn={key:0,class:`agent-desc`},Un={class:`msg-time`},Wn=P(r({__name:`GroupMessageItem`,props:{message:{},agents:{},currentUserId:{}},setup(e){let t=e,n=m(()=>t.agents.some(e=>e.agentId===t.message.senderId)),r=m(()=>!!t.currentUserId&&t.message.senderId===t.currentUserId),o=m(()=>t.agents.find(e=>e.agentId===t.message.senderId)),s=m(()=>new Date(t.message.timestamp).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})),c=m(()=>(0,ze.default)(t.message.senderName||t.message.senderId)),l=m(()=>t.agents.map(e=>e.name).filter(Boolean));return(t,u)=>(_(),a(`div`,{class:O([`group-message`,{agent:n.value,self:r.value}])},[i(`div`,Ln,[i(`span`,{innerHTML:c.value},null,8,Rn)]),i(`div`,zn,[i(`div`,Bn,[i(`span`,Vn,w(e.message.senderName),1),n.value&&o.value?.description?(_(),a(`span`,Hn,w(o.value.description),1)):h(``,!0)]),i(`div`,{class:O([`msg-content`,{"agent-content":n.value}])},[T(je,{content:e.message.content,"mention-names":l.value},null,8,[`content`,`mention-names`])],2),i(`span`,Un,w(s.value),1)])],2))}}),[[`__scopeId`,`data-v-0a07afd6`]]),Gn={key:0,class:`empty-state`},Kn=P(r({__name:`GroupMessageList`,setup(e,{expose:t}){let n=$(),r=k(),o=k(!0);function s(){if(!r.value)return;let{scrollTop:e,scrollHeight:t,clientHeight:n}=r.value;o.value=t-e-n<200}function u(){r.value&&(r.value.scrollTop=r.value.scrollHeight)}function d(){s()}return v(()=>n.messages.length,async()=>{await l(),o.value&&u()}),t({scrollToBottom:u}),(e,t)=>(_(),a(`div`,{ref_key:`listRef`,ref:r,class:`message-list`,onScroll:d},[x(n).sortedMessages.length===0?(_(),a(`div`,Gn,[...t[0]||=[i(`svg`,{width:`32`,height:`32`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),i(`p`,null,`No messages yet`,-1)]])):h(``,!0),(_(!0),a(j,null,c(x(n).sortedMessages,e=>(_(),M(Wn,{key:e.id,message:e,agents:x(n).agents,"current-user-id":x(n).userId},null,8,[`message`,`agents`,`current-user-id`]))),128))],544))}}),[[`__scopeId`,`data-v-ca1cb9a3`]]),qn={class:`chat-input-area`},Jn={class:`input-wrapper`},Yn=[`placeholder`],Xn={class:`input-actions`},Zn=P(r({__name:`GroupChatInput`,emits:[`send`],setup(e,{emit:t}){let{t:n}=re(),r=t,o=$(),s=k(``),c=k(),u=k(!1),f=k(!1),h=k(``),g=k(-1),v=k(0),b=k(0),S=k(0),C=m(()=>{let e=h.value.toLowerCase();return o.agents.filter(t=>t.name.toLowerCase().includes(e))}),E=m(()=>C.value.map((e,t)=>({label:`${e.name} (${e.profile})`,key:e.name,index:t}))),ee=m(()=>!!s.value.trim());function D(){let e=c.value;if(!e){f.value=!1;return}let t=s.value,n=e.selectionStart,r=-1;for(let e=n-1;e>=0;e--){if(t[e]===`@`){r=e;break}if(t[e]===` `||t[e]===`
42
- `)break}if(r===-1){f.value=!1;return}if(r>0&&t[r-1]!==` `&&t[r-1]!==`
43
- `){f.value=!1;return}let i=t.slice(r+1,n);if(i.includes(` `)){f.value=!1;return}h.value=i,g.value=r,S.value=0;let a=document.createElement(`span`),o=getComputedStyle(e);[`fontFamily`,`fontSize`,`fontWeight`,`letterSpacing`,`textTransform`,`wordSpacing`,`textIndent`,`border`,`padding`,`boxSizing`,`lineHeight`].forEach(e=>{a.style[e]=o[e]}),a.style.position=`absolute`,a.style.visibility=`hidden`,a.style.whiteSpace=`nowrap`,a.textContent=t.slice(0,r+1);let l=e.getBoundingClientRect();document.body.appendChild(a);let u=a.getBoundingClientRect();document.body.removeChild(a),v.value=l.left+u.width-e.scrollLeft,b.value=l.top-e.scrollTop-8,f.value=C.value.length>0}function O(e){let t=c.value;if(!t||g.value===-1)return;let n=s.value.slice(0,g.value);s.value=`${n}@${e} ${s.value.slice(t.selectionStart)}`,f.value=!1,l(()=>{if(t){let r=n.length+e.length+2;t.setSelectionRange(r,r),t.focus(),t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`}})}function A(e){if(f.value&&C.value.length>0){if(e.key===`ArrowDown`){e.preventDefault(),S.value=(S.value+1)%C.value.length;return}if(e.key===`ArrowUp`){e.preventDefault(),S.value=(S.value-1+C.value.length)%C.value.length;return}if(e.key===`Enter`||e.key===`Tab`){e.preventDefault(),O(C.value[S.value].name);return}if(e.key===`Escape`){e.preventDefault(),f.value=!1;return}}e.key!==`Enter`||e.shiftKey||u.value||e.isComposing||e.keyCode===229||(e.preventDefault(),j())}function j(){let e=s.value.trim();e&&(r(`send`,e),s.value=``,f.value=!1,l(()=>{c.value&&(c.value.style.height=`auto`)}))}function M(e){o.emitTyping();let t=e.target;t.style.height=`auto`,t.style.height=Math.min(t.scrollHeight,100)+`px`,u.value||D()}function ne(e){O(e)}function N(){f.value=!1}function P(){u.value=!0}function F(){requestAnimationFrame(()=>{u.value=!1,D()})}return(e,t)=>(_(),a(`div`,qn,[i(`div`,Jn,[p(i(`textarea`,{ref_key:`textareaRef`,ref:c,"onUpdate:modelValue":t[0]||=e=>s.value=e,class:`input-textarea`,placeholder:x(n)(`groupChat.inputPlaceholder`),rows:`1`,onKeydown:A,onCompositionstart:P,onCompositionend:F,onInput:M},null,40,Yn),[[te,s.value]]),i(`div`,Xn,[T(x(z),{size:`small`,type:`primary`,disabled:!ee.value,onClick:j},{icon:y(()=>[...t[1]||=[i(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[i(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),i(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`})],-1)]]),default:y(()=>[d(` `+w(x(n)(`chat.send`)),1)]),_:1},8,[`disabled`])])]),T(x(Se),{placement:`top-start`,trigger:`manual`,x:v.value,y:b.value,options:E.value,show:f.value,"render-icon":()=>null,onSelect:ne,onClickoutside:N},null,8,[`x`,`y`,`options`,`show`])]))}}),[[`__scopeId`,`data-v-d354da76`]]),Qn={class:`create-form`},$n={class:`form-group`},er={class:`form-label`},tr={class:`form-group`},nr={class:`form-label`},rr={class:`form-group`},ir={class:`form-label`},ar={class:`form-group`},or={class:`form-label`},sr={class:`code-row`},cr={class:`compression-fields`},lr={class:`form-group`},ur={class:`form-label`},dr={class:`form-hint`},fr={class:`form-group`},pr={class:`form-label`},mr={class:`form-hint`},hr={class:`form-group`},gr={class:`form-label`},_r={class:`form-hint`},vr={class:`modal-actions`},yr=P(r({__name:`CreateRoomForm`,emits:[`submit`,`cancel`],setup(e,{emit:t}){let{t:n}=re(),r=t,o=k(``),s=k(``),c=k(``),u=k(``),f=k(null),p=k({triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20});function m(){let e=``;for(let t=0;t<6;t++)e+=`ABCDEFGHJKLMNPQRSTUVWXYZ23456789`[Math.floor(Math.random()*32)];return e}function h(){let e=o.value.trim(),t=s.value.trim()||m(),n=c.value.trim();!e||!n||r(`submit`,e,t,n,u.value.trim(),{...p.value})}function g(){l(()=>f.value?.focus())}return(e,t)=>(_(),a(`div`,Qn,[i(`div`,$n,[i(`label`,er,w(x(n)(`groupChat.yourName`)),1),T(x(B),{value:c.value,"onUpdate:value":t[0]||=e=>c.value=e,placeholder:x(n)(`groupChat.yourNamePlaceholder`),onKeyup:C(g,[`enter`])},null,8,[`value`,`placeholder`])]),i(`div`,tr,[i(`label`,nr,w(x(n)(`groupChat.yourDescription`)),1),T(x(B),{value:u.value,"onUpdate:value":t[1]||=e=>u.value=e,type:`textarea`,rows:2,placeholder:x(n)(`groupChat.yourDescriptionPlaceholder`)},null,8,[`value`,`placeholder`])]),i(`div`,rr,[i(`label`,ir,w(x(n)(`groupChat.roomName`)),1),T(x(B),{ref_key:`roomInput`,ref:f,value:o.value,"onUpdate:value":t[2]||=e=>o.value=e,placeholder:x(n)(`groupChat.roomNamePlaceholder`),onKeyup:C(h,[`enter`])},null,8,[`value`,`placeholder`])]),i(`div`,ar,[i(`label`,or,w(x(n)(`groupChat.inviteCode`)),1),i(`div`,sr,[T(x(B),{value:s.value,"onUpdate:value":t[3]||=e=>s.value=e,placeholder:x(n)(`groupChat.autoGenerate`)},null,8,[`value`,`placeholder`]),T(x(z),{size:`small`,onClick:t[4]||=e=>s.value=m()},{default:y(()=>[...t[9]||=[i(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`polyline`,{points:`23 4 23 10 17 10`}),i(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`})],-1)]]),_:1})])]),T(x(Ie),{class:`compression-collapse`},{default:y(()=>[T(x(Re),{title:x(n)(`groupChat.compressionSettings`),name:`compression`},{default:y(()=>[i(`div`,cr,[i(`div`,lr,[i(`label`,ur,w(x(n)(`groupChat.triggerTokens`)),1),T(x(V),{value:p.value.triggerTokens,"onUpdate:value":t[5]||=e=>p.value.triggerTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),i(`p`,dr,w(x(n)(`groupChat.triggerTokensDesc`)),1)]),i(`div`,fr,[i(`label`,pr,w(x(n)(`groupChat.maxHistoryTokens`)),1),T(x(V),{value:p.value.maxHistoryTokens,"onUpdate:value":t[6]||=e=>p.value.maxHistoryTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),i(`p`,mr,w(x(n)(`groupChat.maxHistoryTokensDesc`)),1)]),i(`div`,hr,[i(`label`,gr,w(x(n)(`groupChat.tailMessageCount`)),1),T(x(V),{value:p.value.tailMessageCount,"onUpdate:value":t[7]||=e=>p.value.tailMessageCount=e,min:1,step:5,style:{width:`100%`}},null,8,[`value`]),i(`p`,_r,w(x(n)(`groupChat.tailMessageCountDesc`)),1)])])]),_:1},8,[`title`])]),_:1}),i(`div`,vr,[T(x(Oe),{justify:`end`},{default:y(()=>[T(x(z),{onClick:t[8]||=e=>r(`cancel`)},{default:y(()=>[d(w(x(n)(`common.cancel`)),1)]),_:1}),T(x(z),{type:`primary`,disabled:!o.value.trim()||!c.value.trim(),onClick:h},{default:y(()=>[d(w(x(n)(`common.create`)),1)]),_:1},8,[`disabled`])]),_:1})])]))}}),[[`__scopeId`,`data-v-f150f087`]]),br={class:`group-chat-panel`},xr={key:0,class:`room-sidebar`},Sr={class:`sidebar-header`},Cr={class:`sidebar-title`},wr={class:`sidebar-actions`},Tr=[`title`],Er={class:`room-list`},Dr=[`onClick`],Or={class:`room-info`},kr={class:`room-name`},Ar={key:0,class:`room-code`},jr={class:`room-tokens`},Mr={key:0,class:`empty-rooms`},Nr={class:`chat-main`},Pr={class:`chat-header`},Fr={class:`room-title-text`},Ir={class:`header-info`},Lr={class:`avatar-stack-inner`},Rr=[`innerHTML`],zr=[`innerHTML`],Br={key:0,class:`avatar-stack-more`},Vr={class:`agent-popover`},Hr={class:`agent-popover-item`,style:{"margin-bottom":`8px`,"padding-bottom":`8px`,"border-bottom":`1px solid var(--n-border-color, #efeff5)`}},Ur=[`innerHTML`],Wr={class:`agent-popover-info`},Gr={class:`agent-popover-name`},Kr={class:`agent-popover-profile`},qr={class:`agent-popover-title`},Jr=[`innerHTML`],Yr={class:`agent-popover-info`},Xr={class:`agent-popover-name`},Zr={class:`agent-popover-profile`},Qr=[`onClick`],$r={key:1,class:`avatar-stack-inner`},ei={class:`avatar-stack-item`},ti=[`innerHTML`],ni=[`title`],ri=[`title`],ii={key:2,class:`member-count`},ai={key:0,class:`status-bar`},oi={key:0,class:`context-status-list`},si={key:0},ci={key:1},li={key:1,class:`typing-indicator`},ui={key:1,class:`no-room`},di={class:`modal`},fi={class:`modal`},pi={class:`form-group`},mi={class:`form-group`},hi={class:`form-label`},gi={class:`form-group`},_i={class:`form-label`},vi={class:`modal-actions`},yi={class:`modal`},bi={class:`form-group`},xi={class:`form-label`},Si={class:`form-hint`},Ci={class:`form-group`},wi={class:`form-label`},Ti={class:`form-hint`},Ei={class:`form-group`},Di={class:`form-label`},Oi={class:`form-hint`},ki={style:{"margin-top":`8px`}},Ai={class:`modal-actions`},ji=P(r({...r({components:{CreateRoomForm:yr}}),__name:`GroupChatPanel`,setup(e){let{t}=re(),n=De(),r=$(),o=Ae(),s=k(!0),u=k(!1),f=k(!1),p=k(!1),g=k({triggerTokens:1e5,maxHistoryTokens:32e3,tailMessageCount:20}),b=k(!1),C=k(null),E=k(``),D=k(``),te=m(()=>o.profiles.map(e=>({label:e.name,value:e.name}))),A=new Map;function N(e){if(A.has(e))return A.get(e);let t=(0,ze.default)(e);return A.set(e,t),t}let P=m(()=>!!r.currentRoomId);function F(e){return e>=1e3?`${(e/1e3).toFixed(1)}k tokens`:`${e} tokens`}function I(){s.value=!s.value}async function ie(e,i,a,o,s){try{r.setUserInfo(a,o);let c=await r.createNewRoom(e,i,void 0,s);u.value=!1,n.success(t(`groupChat.roomCreated`)),await r.joinRoom(c.room.id)}catch{n.error(t(`common.saveFailed`))}}async function ae(e){try{await r.deleteRoom(e),n.success(t(`groupChat.roomDeleted`))}catch{n.error(t(`common.saveFailed`))}}async function L(e){try{await r.joinRoom(e),window.innerWidth<=768&&(s.value=!1)}catch{n.error(t(`groupChat.joinFailed`))}}async function oe(e){try{await r.sendMessage(e)}catch(e){n.error(e.message)}}async function se(){await o.fetchProfiles(),f.value=!0}async function R(){if(!(!C.value||!r.currentRoomId))try{await r.addAgentToRoom(r.currentRoomId,{profile:C.value,name:E.value.trim()||void 0,description:D.value.trim()||void 0}),f.value=!1,C.value=null,E.value=``,D.value=``,n.success(t(`groupChat.agentAdded`))}catch(e){e.message?.includes(`already`)?n.warning(t(`groupChat.agentAlreadyInRoom`)):n.error(t(`common.saveFailed`))}}function ce(){let e=r.rooms.find(e=>e.id===r.currentRoomId);e&&(g.value={triggerTokens:e.triggerTokens??1e5,maxHistoryTokens:e.maxHistoryTokens??32e3,tailMessageCount:e.tailMessageCount??20}),p.value=!0}async function le(){if(r.currentRoomId)try{let e=await Fn(r.currentRoomId,{...g.value}),i=r.rooms.findIndex(e=>e.id===r.currentRoomId);i>=0&&e.room&&(r.rooms[i]=e.room),p.value=!1,n.success(t(`groupChat.compressionSaved`))}catch{n.error(t(`common.saveFailed`))}}async function ue(){if(!(!r.currentRoomId||b.value)){if(r.contextStatuses.size>0){n.warning(t(`groupChat.compressingInProgress`));return}b.value=!0;try{await In(r.currentRoomId),n.success(t(`groupChat.compressionSaved`))}catch{n.error(t(`common.saveFailed`))}finally{b.value=!1}}}async function de(e){if(r.currentRoomId)try{await r.removeAgentFromRoom(r.currentRoomId,e)}catch{n.error(t(`common.deleteFailed`))}}let fe=k();return v(()=>r.sortedMessages.length,async()=>{await l(),fe.value?.scrollToBottom()}),(e,n)=>(_(),a(`div`,br,[i(`div`,{class:O([`sidebar-backdrop`,{active:s.value}]),onClick:n[0]||=e=>s.value=!1},null,2),s.value?(_(),a(`div`,xr,[i(`div`,Sr,[i(`span`,Cr,w(x(t)(`groupChat.title`)),1),i(`div`,wr,[i(`button`,{class:`icon-btn`,title:x(t)(`groupChat.createRoom`),onClick:n[1]||=e=>u.value=!0},[...n[15]||=[i(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),i(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,Tr)])]),i(`div`,Er,[(_(!0),a(j,null,c(x(r).rooms,e=>(_(),a(`div`,{key:e.id,class:O([`room-item`,{active:x(r).currentRoomId===e.id}]),onClick:t=>L(e.id)},[n[17]||=i(`svg`,{class:`room-icon`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})],-1),i(`div`,Or,[i(`span`,kr,w(e.name||e.id),1),e.inviteCode?(_(),a(`span`,Ar,w(e.inviteCode),1)):h(``,!0),i(`span`,jr,w(F(e.totalTokens||0)),1)]),T(x(ke),{onPositiveClick:t=>ae(e.id)},{trigger:y(()=>[i(`button`,{class:`room-delete-btn`,onClick:n[2]||=S(()=>{},[`stop`])},[...n[16]||=[i(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[i(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),i(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])]),default:y(()=>[d(` `+w(x(t)(`groupChat.deleteRoomConfirm`)),1)]),_:1},8,[`onPositiveClick`])],10,Dr))),128)),x(r).rooms.length===0?(_(),a(`div`,Mr,w(x(t)(`groupChat.noRooms`)),1)):h(``,!0)])])):h(``,!0),i(`div`,Nr,[i(`div`,Pr,[i(`button`,{class:`icon-btn`,onClick:I},[...n[18]||=[i(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),i(`line`,{x1:`9`,y1:`3`,x2:`9`,y2:`21`})],-1)]]),i(`span`,Fr,w(x(r).roomName||x(r).currentRoomId||x(t)(`groupChat.title`)),1),i(`div`,Ir,[x(r).agents.length?(_(),M(x(_e),{key:0,trigger:`click`,placement:`bottom-end`,width:220},{trigger:y(()=>[i(`div`,Lr,[i(`span`,{class:`avatar-stack-item`,style:ee({zIndex:x(r).agents.length+1})},[i(`span`,{class:`agent-avatar`,innerHTML:N(x(r).userName||x(r).userId)},null,8,Rr)],4),(_(!0),a(j,null,c(x(r).agents.slice(-4),(e,t)=>(_(),a(`span`,{key:e.id,class:`avatar-stack-item`,style:ee({zIndex:x(r).agents.length-t})},[i(`span`,{class:`agent-avatar`,innerHTML:N(e.name)},null,8,zr)],4))),128)),x(r).agents.length>4?(_(),a(`span`,Br,`+`+w(x(r).agents.length-4),1)):h(``,!0)])]),default:y(()=>[i(`div`,Vr,[i(`div`,Hr,[i(`span`,{class:`agent-avatar`,innerHTML:N(x(r).userName||x(r).userId)},null,8,Ur),i(`div`,Wr,[i(`span`,Gr,w(x(r).userName||`You`),1),i(`span`,Kr,w(x(t)(`groupChat.you`)),1)])]),i(`div`,qr,w(x(t)(`groupChat.agents`))+` (`+w(x(r).agents.length)+`)`,1),(_(!0),a(j,null,c(x(r).agents,e=>(_(),a(`div`,{key:e.id,class:`agent-popover-item`},[i(`span`,{class:`agent-avatar`,innerHTML:N(e.name)},null,8,Jr),i(`div`,Yr,[i(`span`,Xr,w(e.name),1),i(`span`,Zr,w(e.profile),1)]),i(`button`,{class:`agent-popover-remove`,onClick:t=>de(e.id)},[...n[19]||=[i(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[i(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),i(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]],8,Qr)]))),128))])]),_:1})):x(r).userName?(_(),a(`div`,$r,[i(`span`,ei,[i(`span`,{class:`agent-avatar`,innerHTML:N(x(r).userName||x(r).userId)},null,8,ti)])])):h(``,!0),i(`button`,{class:`icon-btn`,title:x(t)(`groupChat.addAgent`),onClick:se},[...n[20]||=[i(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[i(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),i(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})],-1)]],8,ni),i(`button`,{class:`icon-btn`,title:x(t)(`groupChat.compressionConfig`),onClick:ce},[...n[21]||=[i(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[i(`circle`,{cx:`12`,cy:`12`,r:`3`}),i(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 4.6a1.65 1.65 0 0 0 1.51 1V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.51 1z`})],-1)]],8,ri),x(r).members.length?(_(),a(`span`,ii,w(x(r).members.length)+` `+w(x(t)(`groupChat.members`)),1)):h(``,!0),i(`span`,{class:O([`connection-dot`,{connected:x(r).connected,disconnected:!x(r).connected}])},null,2)])]),P.value?(_(),a(j,{key:0},[T(Kn,{ref_key:`messageListRef`,ref:fe},null,512),x(r).contextStatuses.size>0||x(r).typingText&&x(r).contextStatuses.size===0?(_(),a(`div`,ai,[x(r).contextStatuses.size>0?(_(),a(`div`,oi,[(_(!0),a(j,null,c(x(r).contextStatuses,([e,r])=>(_(),a(`div`,{key:e,class:`context-status`},[n[22]||=i(`span`,{class:`typing-dots`},[i(`span`),i(`span`),i(`span`)],-1),r.status===`compressing`?(_(),a(`span`,si,` @`+w(r.agentName)+` `+w(x(t)(`groupChat.agentCompressing`)),1)):(_(),a(`span`,ci,` @`+w(r.agentName)+` `+w(x(t)(`groupChat.agentReplying`)),1))]))),128))])):x(r).typingText?(_(),a(`div`,li,[n[23]||=i(`span`,{class:`typing-dots`},[i(`span`),i(`span`),i(`span`)],-1),d(` `+w(x(r).typingText),1)])):h(``,!0)])):h(``,!0),T(Zn,{onSend:oe})],64)):(_(),a(`div`,ui,[n[24]||=i(`div`,{class:`no-room-icon`},[i(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[i(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})])],-1),i(`p`,null,w(x(t)(`groupChat.selectOrCreate`)),1)]))]),(_(),M(ne,{to:`body`},[u.value?(_(),a(`div`,{key:0,class:`modal-backdrop`,onClick:n[4]||=S(e=>u.value=!1,[`self`])},[i(`div`,di,[i(`h3`,null,w(x(t)(`groupChat.createRoom`)),1),T(yr,{onSubmit:ie,onCancel:n[3]||=e=>u.value=!1})])])):h(``,!0)])),(_(),M(ne,{to:`body`},[f.value?(_(),a(`div`,{key:0,class:`modal-backdrop`,onClick:n[9]||=S(e=>f.value=!1,[`self`])},[i(`div`,fi,[i(`h3`,null,w(x(t)(`groupChat.addAgent`)),1),i(`div`,pi,[T(x(Ce),{value:C.value,"onUpdate:value":n[5]||=e=>C.value=e,options:te.value,placeholder:x(t)(`groupChat.selectProfile`),filterable:``},null,8,[`value`,`options`,`placeholder`])]),i(`div`,mi,[i(`label`,hi,w(x(t)(`groupChat.agentName`)),1),T(x(B),{value:E.value,"onUpdate:value":n[6]||=e=>E.value=e,placeholder:x(t)(`groupChat.agentNamePlaceholder`)},null,8,[`value`,`placeholder`])]),i(`div`,gi,[i(`label`,_i,w(x(t)(`groupChat.agentDesc`)),1),T(x(B),{value:D.value,"onUpdate:value":n[7]||=e=>D.value=e,type:`textarea`,rows:2,placeholder:x(t)(`groupChat.agentDescPlaceholder`)},null,8,[`value`,`placeholder`])]),i(`div`,vi,[T(x(Oe),{justify:`end`},{default:y(()=>[T(x(z),{onClick:n[8]||=e=>f.value=!1},{default:y(()=>[d(w(x(t)(`common.cancel`)),1)]),_:1}),T(x(z),{type:`primary`,disabled:!C.value,onClick:R},{default:y(()=>[d(w(x(t)(`common.add`)),1)]),_:1},8,[`disabled`])]),_:1})])])])):h(``,!0),p.value?(_(),a(`div`,{key:1,class:`modal-backdrop`,onClick:n[14]||=S(e=>p.value=!1,[`self`])},[i(`div`,yi,[i(`h3`,null,w(x(t)(`groupChat.compressionConfig`)),1),i(`div`,bi,[i(`label`,xi,w(x(t)(`groupChat.triggerTokens`)),1),T(x(V),{value:g.value.triggerTokens,"onUpdate:value":n[10]||=e=>g.value.triggerTokens=e,min:1e3,step:1e4,style:{width:`100%`}},null,8,[`value`]),i(`p`,Si,w(x(t)(`groupChat.triggerTokensDesc`)),1)]),i(`div`,Ci,[i(`label`,wi,w(x(t)(`groupChat.maxHistoryTokens`)),1),T(x(V),{value:g.value.maxHistoryTokens,"onUpdate:value":n[11]||=e=>g.value.maxHistoryTokens=e,min:1e3,step:1e3,style:{width:`100%`}},null,8,[`value`]),i(`p`,Ti,w(x(t)(`groupChat.maxHistoryTokensDesc`)),1)]),i(`div`,Ei,[i(`label`,Di,w(x(t)(`groupChat.tailMessageCount`)),1),T(x(V),{value:g.value.tailMessageCount,"onUpdate:value":n[12]||=e=>g.value.tailMessageCount=e,min:1,step:5,style:{width:`100%`}},null,8,[`value`]),i(`p`,Oi,w(x(t)(`groupChat.tailMessageCountDesc`)),1)]),i(`div`,ki,[T(x(z),{block:``,disabled:b.value||x(r).contextStatuses.size>0,loading:b.value,onClick:ue},{default:y(()=>[d(w(b.value?x(t)(`groupChat.compressingInProgress`):x(t)(`groupChat.compressNow`)),1)]),_:1},8,[`disabled`,`loading`])]),i(`div`,Ai,[T(x(Oe),{justify:`end`},{default:y(()=>[T(x(z),{onClick:n[13]||=e=>p.value=!1},{default:y(()=>[d(w(x(t)(`common.cancel`)),1)]),_:1}),T(x(z),{type:`primary`,onClick:le},{default:y(()=>[d(w(x(t)(`common.save`)),1)]),_:1})]),_:1})])])])):h(``,!0)]))]))}}),[[`__scopeId`,`data-v-9cda5948`]]),Mi={class:`group-chat-view`},Ni=P(r({__name:`GroupChatView`,setup(e){let t=$();return s(()=>{t.connect(),t.loadRooms()}),g(()=>{t.disconnect()}),(e,t)=>(_(),a(`div`,Mi,[T(ji)]))}}),[[`__scopeId`,`data-v-6a221d32`]]);export{Ni as default};