agentworkshop 0.7.39 → 0.7.41

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 (405) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +55 -0
  2. package/.output/.AgentWorkShop/prompts/host-tools.json +55 -0
  3. package/.output/nitro.json +1 -1
  4. package/.output/public/_nuxt/88GOowgO2.js +1 -0
  5. package/.output/public/_nuxt/{BNT8gYU92.js → BC9wjTJK2.js} +2 -2
  6. package/.output/public/_nuxt/{CY9LbPCI.js → BN16aRdQ.js} +1 -1
  7. package/.output/public/_nuxt/BWVhZntO.js +1 -0
  8. package/.output/public/_nuxt/{HBLJ-wei.js → BXxH0UQE.js} +1 -1
  9. package/.output/public/_nuxt/{zIGh7R49.js → BneN7fbu.js} +1 -1
  10. package/.output/public/_nuxt/BsROmY89.js +1 -0
  11. package/.output/public/_nuxt/{DUrecWPx.js → C0ZrS1KL.js} +2 -2
  12. package/.output/public/_nuxt/{C_OLzD09.js → C4oW1HsE.js} +1 -1
  13. package/.output/public/_nuxt/{CUDwzgLV.js → C4s_niy-.js} +9 -9
  14. package/.output/public/_nuxt/CFxtLwjp.js +1 -0
  15. package/.output/public/_nuxt/{Cec0Ua3F.js → CS50LB_l.js} +1 -1
  16. package/.output/public/_nuxt/CssgYAAL2.js +1 -0
  17. package/.output/public/_nuxt/D6mbFA-a.js +1 -0
  18. package/.output/public/_nuxt/D98NH8kG.js +1 -0
  19. package/.output/public/_nuxt/DGIuvyRN2.js +1 -0
  20. package/.output/public/_nuxt/DGbd-UiG.js +1 -0
  21. package/.output/public/_nuxt/{CojCTLKD.js → DGj-WEBg.js} +1 -1
  22. package/.output/public/_nuxt/{DDShH71m.js → DS8qj8EL.js} +1 -1
  23. package/.output/public/_nuxt/DTFCy6h-.js +1 -0
  24. package/.output/public/_nuxt/{DrYV5i68.js → DUjW5Yq5.js} +1 -1
  25. package/.output/public/_nuxt/{45zuyAso.js → D_OTvQza.js} +1 -1
  26. package/.output/public/_nuxt/Dap5PmTL.js +2 -0
  27. package/.output/public/_nuxt/Dqw1lpr-.js +1 -0
  28. package/.output/public/_nuxt/DvLxILQP.js +1 -0
  29. package/.output/public/_nuxt/IREZ1eC2.js +1 -0
  30. package/.output/public/_nuxt/TownView.f-YOdXRs.css +1 -0
  31. package/.output/public/_nuxt/_id_.D9ymtHB5.css +1 -0
  32. package/.output/public/_nuxt/_id_.jf-_8E_c.css +1 -0
  33. package/.output/public/_nuxt/_wsId_.B4WiqkIS.css +1 -0
  34. package/.output/public/_nuxt/agents.ZD0rVdHE.css +1 -0
  35. package/.output/public/_nuxt/aml.BN8ZEW4h.css +1 -0
  36. package/.output/public/_nuxt/builds/latest.json +1 -1
  37. package/.output/public/_nuxt/builds/meta/78a295bb-2072-48a4-8b46-6d545fdae743.json +1 -0
  38. package/.output/public/_nuxt/ca4TJ3Op.js +1 -0
  39. package/.output/public/_nuxt/channel-templates.BOtahzPi.css +1 -0
  40. package/.output/public/_nuxt/daq.DjSgY94l.css +1 -0
  41. package/.output/public/_nuxt/dcw.8Y7FqCVN.css +1 -0
  42. package/.output/public/_nuxt/default.J32SgqFY.css +1 -0
  43. package/.output/public/_nuxt/entry.bdm0tv6M.css +1 -0
  44. package/.output/public/_nuxt/eqq3wWQF.js +18 -0
  45. package/.output/public/_nuxt/logs.BpKzmKsh.css +1 -0
  46. package/.output/public/_nuxt/monitor.D9pe7qN6.css +1 -0
  47. package/.output/public/_nuxt/pages.D7aSDlUI.css +1 -0
  48. package/.output/public/_nuxt/permissions.DwTVlFe6.css +1 -0
  49. package/.output/public/_nuxt/plugins.sb4nDGqr.css +1 -0
  50. package/.output/public/_nuxt/{Cbq-mryP.js → qr6R6Ha1.js} +1 -1
  51. package/.output/public/_nuxt/settings.BTgR-NiE.css +1 -0
  52. package/.output/public/_nuxt/teams.CxnxKVVs.css +1 -0
  53. package/.output/public/_nuxt/tokens.BFY7qv4f.css +1 -0
  54. package/.output/public/_nuxt/{town.DKIAhKnx.css → town.BBXZmeoP.css} +1 -1
  55. package/.output/public/_nuxt/users.DLgZ1D0h.css +1 -0
  56. package/.output/public/_nuxt/workshop.CR_QzeAN.css +1 -0
  57. package/.output/public/_nuxt/{BzHEilTt.js → xh3_vYcu.js} +1 -1
  58. package/.output/public/_nuxt/yF0aYMF1.js +4 -0
  59. package/.output/server/chunks/_/entity.mjs.map +1 -1
  60. package/.output/server/chunks/_/nitro.mjs +2355 -1362
  61. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  62. package/.output/server/chunks/build/{TownView-jVazYOjN.mjs → TownView--otsnr_7.mjs} +290 -208
  63. package/.output/server/chunks/build/TownView--otsnr_7.mjs.map +1 -0
  64. package/.output/server/chunks/build/{_id_-CfVosNg3.mjs → _id_-Brv-JSvr.mjs} +142 -141
  65. package/.output/server/chunks/build/_id_-Brv-JSvr.mjs.map +1 -0
  66. package/.output/server/chunks/build/{_id_-Hwr4rZpr.mjs → _id_-D9pl1OZy.mjs} +38 -36
  67. package/.output/server/chunks/build/_id_-D9pl1OZy.mjs.map +1 -0
  68. package/.output/server/chunks/build/{_wsId_-BVg3bB77.mjs → _wsId_-BASfDf0s.mjs} +295 -261
  69. package/.output/server/chunks/build/{_wsId_-BVg3bB77.mjs.map → _wsId_-BASfDf0s.mjs.map} +1 -1
  70. package/.output/server/chunks/build/{agents-Bvin73QY.mjs → agents-CLQqJF2y.mjs} +21 -27
  71. package/.output/server/chunks/build/agents-CLQqJF2y.mjs.map +1 -0
  72. package/.output/server/chunks/build/{aml-BCSJCdX7.mjs → aml-_7FdFL2p.mjs} +109 -109
  73. package/.output/server/chunks/build/{aml-BCSJCdX7.mjs.map → aml-_7FdFL2p.mjs.map} +1 -1
  74. package/.output/server/chunks/build/api-error-dul30BYQ.mjs.map +1 -1
  75. package/.output/server/chunks/build/{channel-templates-BTq8570n.mjs → channel-templates-p6SZNjlM.mjs} +19 -19
  76. package/.output/server/chunks/build/{channel-templates-BTq8570n.mjs.map → channel-templates-p6SZNjlM.mjs.map} +1 -1
  77. package/.output/server/chunks/build/{daq-C03Uu5UE.mjs → daq-DkMvD8sg.mjs} +193 -126
  78. package/.output/server/chunks/build/daq-DkMvD8sg.mjs.map +1 -0
  79. package/.output/server/chunks/build/{dcw-6vEYVeje.mjs → dcw-C1jgVJkO.mjs} +46 -46
  80. package/.output/server/chunks/build/{dcw-6vEYVeje.mjs.map → dcw-C1jgVJkO.mjs.map} +1 -1
  81. package/.output/server/chunks/build/{default-CZmZFpqH.mjs → default-BE4r0FZN.mjs} +152 -58
  82. package/.output/server/chunks/build/{default-CZmZFpqH.mjs.map → default-BE4r0FZN.mjs.map} +1 -1
  83. package/.output/server/chunks/build/{logs-B-xhuqln.mjs → logs--dByNyhw.mjs} +35 -35
  84. package/.output/server/chunks/build/{logs-B-xhuqln.mjs.map → logs--dByNyhw.mjs.map} +1 -1
  85. package/.output/server/chunks/build/{monitor-CyfDt4nR.mjs → monitor-C0okQaXz.mjs} +33 -33
  86. package/.output/server/chunks/build/{monitor-CyfDt4nR.mjs.map → monitor-C0okQaXz.mjs.map} +1 -1
  87. package/.output/server/chunks/build/{pages-BO7yZsXA.mjs → pages-B0bUWnC6.mjs} +35 -19
  88. package/.output/server/chunks/build/pages-B0bUWnC6.mjs.map +1 -0
  89. package/.output/server/chunks/build/{permissions-B52oOmaO.mjs → permissions-68SsNjex.mjs} +12 -12
  90. package/.output/server/chunks/build/{permissions-B52oOmaO.mjs.map → permissions-68SsNjex.mjs.map} +1 -1
  91. package/.output/server/chunks/build/{plugins-CUWmMdyt.mjs → plugins-lGlUr1lj.mjs} +17 -17
  92. package/.output/server/chunks/build/{plugins-CUWmMdyt.mjs.map → plugins-lGlUr1lj.mjs.map} +1 -1
  93. package/.output/server/chunks/build/{settings-DoQ2Oq3P.mjs → settings-Ddd1qx2Z.mjs} +50 -47
  94. package/.output/server/chunks/build/settings-Ddd1qx2Z.mjs.map +1 -0
  95. package/.output/server/chunks/build/{teams-2kz3CusY.mjs → teams-MEDLZdMn.mjs} +38 -34
  96. package/.output/server/chunks/build/teams-MEDLZdMn.mjs.map +1 -0
  97. package/.output/server/chunks/build/{tokens-BbWLqtVz.mjs → tokens-C7fTM5C2.mjs} +14 -14
  98. package/.output/server/chunks/build/{tokens-BbWLqtVz.mjs.map → tokens-C7fTM5C2.mjs.map} +1 -1
  99. package/.output/server/chunks/build/{town-BOl6hs9B.mjs → town-CoQdblbZ.mjs} +38 -12
  100. package/.output/server/chunks/build/town-CoQdblbZ.mjs.map +1 -0
  101. package/.output/server/chunks/build/{useDaqStream-CIBaiGAl.mjs → useDaqStream-DfCFpb3p.mjs} +9 -3
  102. package/.output/server/chunks/build/useDaqStream-DfCFpb3p.mjs.map +1 -0
  103. package/.output/server/chunks/build/{useDcwStream-CBbiYnWe.mjs → useDcwStream-UPiX-3iO.mjs} +11 -2
  104. package/.output/server/chunks/build/useDcwStream-UPiX-3iO.mjs.map +1 -0
  105. package/.output/server/chunks/build/useResponsive-BKDMGTHs.mjs +49 -0
  106. package/.output/server/chunks/build/useResponsive-BKDMGTHs.mjs.map +1 -0
  107. package/.output/server/chunks/build/{users-fohSmF-J.mjs → users-Cfd5-l2-.mjs} +6 -6
  108. package/.output/server/chunks/build/{users-fohSmF-J.mjs.map → users-Cfd5-l2-.mjs.map} +1 -1
  109. package/.output/server/chunks/build/{workshop-DX5-ldc4.mjs → workshop-BL5bhfs0.mjs} +15 -15
  110. package/.output/server/chunks/build/{workshop-DX5-ldc4.mjs.map → workshop-BL5bhfs0.mjs.map} +1 -1
  111. package/.output/server/chunks/build/{workspaces-BuydxM-3.mjs → workspaces-Bgz5Ekwp.mjs} +18 -3
  112. package/.output/server/chunks/build/workspaces-Bgz5Ekwp.mjs.map +1 -0
  113. package/.output/server/chunks/routes/api/system/config-groups/_id_.patch.mjs.map +1 -1
  114. package/.output/server/chunks/routes/api/system/index.patch.mjs.map +1 -1
  115. package/.output/server/chunks/routes/api/system/index.post.mjs.map +1 -1
  116. package/.output/server/chunks/routes/api/system/settings/events.get.mjs.map +1 -1
  117. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +6 -2
  118. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
  119. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +2 -1
  120. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs.map +1 -1
  121. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +1 -1
  122. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +3 -3
  123. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs.map +1 -1
  124. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs.map +1 -1
  125. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs.map +1 -1
  126. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +3 -2
  127. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs.map +1 -1
  128. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -1
  129. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs.map +1 -1
  130. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +8 -6
  131. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs.map +1 -1
  132. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +5 -5
  133. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs.map +1 -1
  134. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +14 -4
  135. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -1
  136. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +4 -4
  137. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs.map +1 -1
  138. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +4 -3
  139. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +31 -0
  141. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs.map +1 -0
  142. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +28 -0
  143. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs.map +1 -0
  144. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
  145. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
  146. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs.map +1 -1
  147. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +32 -0
  148. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs.map +1 -0
  149. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +34 -0
  150. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs.map +1 -0
  151. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +33 -0
  152. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs.map +1 -0
  153. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +34 -0
  154. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs.map +1 -0
  155. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
  156. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
  157. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
  158. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
  159. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  160. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
  161. package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
  162. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +3 -1
  163. package/.output/server/chunks/routes/api/workshop/index5.get.mjs.map +1 -1
  164. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +5 -1
  165. package/.output/server/chunks/routes/api/workshop/index6.get.mjs.map +1 -1
  166. package/.output/server/chunks/routes/api/workshop/index9.get.mjs +3 -1
  167. package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -1
  168. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  169. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  170. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  171. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  172. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +1 -1
  173. package/.output/server/chunks/routes/renderer.mjs +3 -3
  174. package/.output/server/chunks/virtual/entry.mjs +51 -25
  175. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  176. package/.output/server/package.json +1 -1
  177. package/README-zh.md +203 -39
  178. package/README.md +739 -591
  179. package/app/app.vue +9 -3
  180. package/app/assets/css/main.css +517 -7
  181. package/app/components/AppHeader.vue +98 -7
  182. package/app/components/AppSidebar.vue +117 -11
  183. package/app/components/AwChart.vue +2 -1
  184. package/app/components/workshop/AgentInspectorDrawer.vue +6 -6
  185. package/app/components/workshop/AgentLanesView.vue +52 -1
  186. package/app/components/workshop/AssetLibrary.vue +4 -2
  187. package/app/components/workshop/ChannelSessionList.vue +4 -2
  188. package/app/components/workshop/Composer.vue +96 -0
  189. package/app/components/workshop/DaqNodeRow.vue +19 -0
  190. package/app/components/workshop/DaqTemplateIcon.vue +33 -0
  191. package/app/components/workshop/DeviceTwinPanel.vue +37 -35
  192. package/app/components/workshop/EventBlock.vue +3 -3
  193. package/app/components/workshop/InspectorPanel.vue +47 -11
  194. package/app/components/workshop/LiveAgentBar.vue +34 -0
  195. package/app/components/workshop/TaskBoardView.vue +83 -33
  196. package/app/components/workshop/TranscriptTimeline.vue +56 -0
  197. package/app/components/workshop/blocks/ClusterError.vue +1 -1
  198. package/app/components/workshop/blocks/ClusterRoute.vue +3 -1
  199. package/app/components/workshop/blocks/ClusterStatus.vue +2 -2
  200. package/app/components/workshop/blocks/ClusterStream.vue +8 -2
  201. package/app/components/workshop/town/ModelPreview3D.vue +1 -1
  202. package/app/components/workshop/town/TownView.vue +507 -82
  203. package/app/composables/useResponsive.ts +88 -0
  204. package/app/composables/useRouteMeta.ts +3 -0
  205. package/app/composables/workshop/useDaqStream.ts +7 -4
  206. package/app/composables/workshop/useDcwStream.ts +8 -2
  207. package/app/composables/workshop/useVisibleInterval.ts +2 -2
  208. package/app/composables/workshop/useWorkshopApi.ts +1 -1
  209. package/app/layouts/default.vue +46 -2
  210. package/app/pages/aml/index.vue +712 -616
  211. package/app/pages/daq/[id].vue +12 -7
  212. package/app/pages/daq/index.vue +216 -13
  213. package/app/pages/dcw/[id].vue +117 -32
  214. package/app/pages/dcw/index.vue +83 -23
  215. package/app/pages/index.vue +35 -1
  216. package/app/pages/logs/index.vue +147 -13
  217. package/app/pages/monitor.vue +56 -12
  218. package/app/pages/permissions/index.vue +34 -0
  219. package/app/pages/plugins/index.vue +35 -4
  220. package/app/pages/settings.vue +90 -21
  221. package/app/pages/tokens.vue +23 -0
  222. package/app/pages/town.vue +50 -5
  223. package/app/pages/users.vue +23 -0
  224. package/app/pages/workshop/agents.vue +92 -2
  225. package/app/pages/workshop/channel-templates.vue +53 -0
  226. package/app/pages/workshop/index.vue +14 -0
  227. package/app/pages/workshop/teams.vue +66 -6
  228. package/app/pages/workshop/w/[wsId].vue +202 -14
  229. package/app/plugins/aw-plugins.client.ts +13 -8
  230. package/app/stores/app.ts +33 -1
  231. package/app/stores/workshop/user.ts +1 -1
  232. package/app/stores/workshop/workspaces.ts +18 -2
  233. package/app/utils/api-error.ts +1 -1
  234. package/cli/commands/build.mjs +8 -1
  235. package/docker-compose.yml +6 -0
  236. package/docs/cli.en.md +2 -2
  237. package/docs/cli.md +2 -2
  238. package/docs/plugins.en.md +33 -1
  239. package/docs/plugins.md +29 -1
  240. package/docs/sdk.en.md +1 -1
  241. package/docs/sdk.md +1 -1
  242. package/i18n/locales/en.ts +2 -0
  243. package/i18n/locales/zh-CN.ts +2 -0
  244. package/nuxt.config.ts +31 -0
  245. package/package.json +11 -2
  246. package/scripts/_dbg-param-map-e2e.ts +242 -0
  247. package/scripts/_dbg-param-map-rest-smoke.mjs +73 -0
  248. package/scripts/_dbg-param-real-scenario.mjs +153 -0
  249. package/scripts/_loop-biax-campaign.mjs +124 -0
  250. package/scripts/api-live-e2e.mjs +40 -8
  251. package/scripts/capture-walkthrough.mjs +232 -0
  252. package/scripts/render-walkthrough-figure.mjs +46 -0
  253. package/scripts/seed-walkthrough-fixture.mjs +143 -0
  254. package/scripts/test-plugin-hardening.mjs +8 -0
  255. package/scripts/test-serial-bridge.mjs +418 -0
  256. package/scripts/ui/admin-shots.mjs +46 -0
  257. package/scripts/ui/audit-layout.mjs +301 -0
  258. package/scripts/ui/bump-microfont.mjs +39 -0
  259. package/scripts/ui/e2e-interactive.mjs +328 -0
  260. package/scripts/ui/lib.mjs +198 -0
  261. package/scripts/ui/linkcheck2.mjs +37 -0
  262. package/scripts/ui/live-render-check.mjs +72 -0
  263. package/scripts/ui/md-lint.mjs +80 -0
  264. package/scripts/ui/perf-audit.mjs +132 -0
  265. package/scripts/ui/readme-assets.mjs +30 -0
  266. package/scripts/ui/readme-shots.mjs +42 -0
  267. package/scripts/ui/record.mjs +225 -0
  268. package/scripts/ui/seed-admin.mjs +68 -0
  269. package/scripts/ui/seed-demo.mjs +83 -0
  270. package/scripts/ui/seed-industrial-demo.mjs +171 -0
  271. package/scripts/ui/shot-hero.mjs +25 -0
  272. package/scripts/ui/shots.mjs +75 -0
  273. package/scripts/ui/sim-ui-shot.mjs +16 -0
  274. package/scripts/ui/verify-nav.mjs +51 -0
  275. package/scripts/ui/verify-responsive.mjs +285 -0
  276. package/server/api/system/config-groups/[id].patch.ts +1 -1
  277. package/server/api/system/config-groups/index.post.ts +1 -1
  278. package/server/api/system/settings/events.get.ts +1 -1
  279. package/server/api/system/settings/index.patch.ts +1 -1
  280. package/server/api/workshop/agent-tools/invoke.post.ts +16 -2
  281. package/server/api/workshop/aml/datasets/[id].get.ts +8 -1
  282. package/server/api/workshop/daq/index.get.ts +3 -1
  283. package/server/api/workshop/daq/infra/reconnect.post.ts +1 -1
  284. package/server/api/workshop/daq/templates/[key].delete.ts +1 -0
  285. package/server/api/workshop/daq/templates/[key].patch.ts +1 -0
  286. package/server/api/workshop/daq/templates/index.post.ts +1 -0
  287. package/server/api/workshop/dcw/[id]/write.post.ts +10 -2
  288. package/server/api/workshop/dcw/[id].delete.ts +5 -2
  289. package/server/api/workshop/dcw/index.get.ts +5 -0
  290. package/server/api/workshop/dcw/lines/[id].patch.ts +1 -1
  291. package/server/api/workshop/dcw/params/[id]/read.post.ts +17 -0
  292. package/server/api/workshop/dcw/params/[id]/write.post.ts +21 -0
  293. package/server/api/workshop/dcw/params/[id].delete.ts +19 -0
  294. package/server/api/workshop/dcw/params/[id].patch.ts +23 -0
  295. package/server/api/workshop/dcw/params/index.get.ts +27 -0
  296. package/server/api/workshop/dcw/params/index.post.ts +25 -0
  297. package/server/api/workshop/permissions/index.get.ts +3 -1
  298. package/server/plugins/aw-plugins.ts +23 -10
  299. package/server/plugins/dev-stability-guard.ts +3 -1
  300. package/server/plugins/system-config.ts +6 -1
  301. package/server/plugins-builtin/serial-bridge/client.mjs +210 -0
  302. package/server/plugins-builtin/serial-bridge/drivers.mjs +409 -0
  303. package/server/plugins-builtin/serial-bridge/i18n.json +62 -0
  304. package/server/plugins-builtin/serial-bridge/index.mjs +247 -0
  305. package/server/plugins-builtin/serial-bridge/lib.mjs +208 -0
  306. package/server/plugins-builtin/serial-bridge/rtu.mjs +168 -0
  307. package/server/services/system-config.ts +28 -9
  308. package/server/services/workshop/agents/adapters/one-shot-cli-agent.ts +2 -1
  309. package/server/services/workshop/agents/agent-interface.ts +8 -6
  310. package/server/services/workshop/agents/base-agent.ts +18 -4
  311. package/server/services/workshop/agents/claude-agent.ts +7 -3
  312. package/server/services/workshop/agents/codex-agent.ts +3 -3
  313. package/server/services/workshop/agents/dsh-agent.ts +3 -3
  314. package/server/services/workshop/agents/goose-agent.ts +0 -1
  315. package/server/services/workshop/agents/harness-terminal.ts +14 -1
  316. package/server/services/workshop/agents/hermes-agent.ts +4 -2
  317. package/server/services/workshop/agents/host-tool-bridge.ts +5 -1
  318. package/server/services/workshop/agents/industrial-context.ts +4 -1
  319. package/server/services/workshop/agents/industrial-tools.ts +164 -6
  320. package/server/services/workshop/agents/omp-agent.ts +15 -9
  321. package/server/services/workshop/agents/opencode-agent.ts +47 -21
  322. package/server/services/workshop/agents/qwen-agent.ts +10 -5
  323. package/server/services/workshop/aml/entity.ts +3 -1
  324. package/server/services/workshop/aml/python-runtime.ts +3 -2
  325. package/server/services/workshop/daq/bus/mqtt.adapter.ts +8 -4
  326. package/server/services/workshop/daq/daq-controller.ts +25 -5
  327. package/server/services/workshop/daq/daq-runtime.ts +5 -3
  328. package/server/services/workshop/daq/drivers.ts +141 -11
  329. package/server/services/workshop/daq/host-ports.ts +3 -2
  330. package/server/services/workshop/daq/storage/timescale.adapter.ts +3 -1
  331. package/server/services/workshop/db/channel.repo.ts +4 -0
  332. package/server/services/workshop/db/ops.repo.ts +5 -2
  333. package/server/services/workshop/db/retention.ts +8 -3
  334. package/server/services/workshop/dcw/dcw-controller.ts +147 -16
  335. package/server/services/workshop/dcw/dcw-product.repo.ts +38 -1
  336. package/server/services/workshop/dcw/dcw-runtime.ts +3 -2
  337. package/server/services/workshop/dcw/drivers.ts +90 -4
  338. package/server/services/workshop/dcw/param-conversion.ts +78 -0
  339. package/server/services/workshop/dcw/param-limits.ts +142 -0
  340. package/server/services/workshop/dcw/param-map.repo.ts +305 -0
  341. package/server/services/workshop/dcw/plugin-bridge.ts +45 -0
  342. package/server/services/workshop/dcw/recipe-rollback-manager.ts +13 -7
  343. package/server/services/workshop/plugins/host.mjs +30 -0
  344. package/server/services/workshop/runtime/agent-runtime.ts +4 -0
  345. package/server/services/workshop/runtime/manager.ts +9 -2
  346. package/server/services/workshop/settings.ts +4 -2
  347. package/server/types/pg.d.ts +49 -0
  348. package/server/utils/stability-severity.ts +13 -2
  349. package/shared/config/groups.mjs +22 -1
  350. package/shared/config/home.d.mts +28 -0
  351. package/shared/daq-protocol.ts +15 -0
  352. package/shared/dcw-protocol.ts +136 -0
  353. package/uno.config.ts +12 -1
  354. package/.output/public/_nuxt/8NMOXZOV.js +0 -1
  355. package/.output/public/_nuxt/BFkgkW8u.js +0 -4
  356. package/.output/public/_nuxt/C5gUkRwn.js +0 -1
  357. package/.output/public/_nuxt/CM12FuB42.js +0 -1
  358. package/.output/public/_nuxt/CZiw7sEV.js +0 -1
  359. package/.output/public/_nuxt/Cc_9VzD42.js +0 -1
  360. package/.output/public/_nuxt/CdPzkOMV.js +0 -1
  361. package/.output/public/_nuxt/CmsOtOAA2.js +0 -1
  362. package/.output/public/_nuxt/D1YDxZpZ.js +0 -1
  363. package/.output/public/_nuxt/D20Yamr4.js +0 -1
  364. package/.output/public/_nuxt/DAe0h2MB.js +0 -1
  365. package/.output/public/_nuxt/DmqknNvV.js +0 -18
  366. package/.output/public/_nuxt/DnUuIR83.js +0 -1
  367. package/.output/public/_nuxt/S_fVQwJK.js +0 -1
  368. package/.output/public/_nuxt/TownView.0oLiQgTC.css +0 -1
  369. package/.output/public/_nuxt/_id_.D-SYuyZb.css +0 -1
  370. package/.output/public/_nuxt/_id_.hma_BU6T.css +0 -1
  371. package/.output/public/_nuxt/_wsId_.B12v3PhY.css +0 -1
  372. package/.output/public/_nuxt/agents.BV70ioCv.css +0 -1
  373. package/.output/public/_nuxt/ahgEJu2R.js +0 -1
  374. package/.output/public/_nuxt/aml.COEKNNqK.css +0 -1
  375. package/.output/public/_nuxt/builds/meta/4457d63f-0866-4cea-b320-04a321f24795.json +0 -1
  376. package/.output/public/_nuxt/channel-templates.C-M5nKcC.css +0 -1
  377. package/.output/public/_nuxt/daq.B3265ZDn.css +0 -1
  378. package/.output/public/_nuxt/dcw.DLYZqEhT.css +0 -1
  379. package/.output/public/_nuxt/default.BXI_fZUi.css +0 -1
  380. package/.output/public/_nuxt/entry.BB-Eeh-J.css +0 -1
  381. package/.output/public/_nuxt/logs.CqFyMrJw.css +0 -1
  382. package/.output/public/_nuxt/monitor.B--1dPzs.css +0 -1
  383. package/.output/public/_nuxt/pages.ooEzrMm9.css +0 -1
  384. package/.output/public/_nuxt/permissions.B1pjGChZ.css +0 -1
  385. package/.output/public/_nuxt/plugins.5e5chZ67.css +0 -1
  386. package/.output/public/_nuxt/pz2JDAM7.js +0 -2
  387. package/.output/public/_nuxt/settings.Dm3M0RLy.css +0 -1
  388. package/.output/public/_nuxt/teams.BC75EGnR.css +0 -1
  389. package/.output/public/_nuxt/tokens.xRb1fSPU.css +0 -1
  390. package/.output/public/_nuxt/users.CXnP2E08.css +0 -1
  391. package/.output/public/_nuxt/workshop.Jk5HxWPE.css +0 -1
  392. package/.output/server/chunks/build/TownView-jVazYOjN.mjs.map +0 -1
  393. package/.output/server/chunks/build/_id_-CfVosNg3.mjs.map +0 -1
  394. package/.output/server/chunks/build/_id_-Hwr4rZpr.mjs.map +0 -1
  395. package/.output/server/chunks/build/agents-Bvin73QY.mjs.map +0 -1
  396. package/.output/server/chunks/build/daq-C03Uu5UE.mjs.map +0 -1
  397. package/.output/server/chunks/build/pages-BO7yZsXA.mjs.map +0 -1
  398. package/.output/server/chunks/build/settings-DoQ2Oq3P.mjs.map +0 -1
  399. package/.output/server/chunks/build/teams-2kz3CusY.mjs.map +0 -1
  400. package/.output/server/chunks/build/town-BOl6hs9B.mjs.map +0 -1
  401. package/.output/server/chunks/build/useDaqStream-CIBaiGAl.mjs.map +0 -1
  402. package/.output/server/chunks/build/useDcwStream-CBbiYnWe.mjs.map +0 -1
  403. package/.output/server/chunks/build/workspaces-BuydxM-3.mjs.map +0 -1
  404. /package/.output/public/_nuxt/{36oeS8_R2.js → 36oeS8_R.js} +0 -0
  405. /package/.output/public/_nuxt/{CYWVXZTS.js → CYWVXZTS2.js} +0 -0
@@ -1 +1 @@
1
- import{O as e,a as t,c as n,j as r,m as i,p as a}from"./BU83-NnX.js";import{$ as o,P as s,R as c,S as l,Ut as u,V as d,Vt as ee,b as f,ct as p,d as m,f as h,h as g,i as _,m as v,p as y,pt as b,tt as x,xt as S,y as C}from"./CSkxz2NX.js";import{d as w,p as T}from"./BJHKLJJU.js";import{s as E}from"./YnQxK3eG.js";import{n as te}from"./KZQX7xoM.js";import{t as ne}from"./CWoJjWmZ.js";import{d as D,jt as O,n as k,t as A,u as j,wt as M}from"./4sIEbgcl.js";import{t as re}from"./zIGh7R49.js";import{t as ie}from"./BCGafdXT.js";import{t as N}from"./pdk8jLGT.js";import{t as ae}from"./BYhEUx8t.js";import{t as oe}from"./jZsY8yYz.js";import{t as se}from"./CClOy-Hz2.js";import{t as ce}from"./DIaZ2PTo2.js";import{t as P}from"./BDNMzG2s2.js";import{t as le}from"./CNs_Ozdc2.js";import{t as ue}from"./DeJykBFf.js";var F={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`};function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){L(e,t,n[t])})}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e,t){var n=I({},e,t.attrs);return f(r,I({},n,{icon:F}),null)};R.displayName=`WarningFilled`,R.inheritAttrs=!1;var z=()=>f(`svg`,{width:`252`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .387h251.772v251.772H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .012)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66`,fill:`#FFF`},null),f(`path`,{d:`M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175`,fill:`#FFF`},null),f(`path`,{d:`M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932`,fill:`#FFF`},null),f(`path`,{d:`M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382`,fill:`#FFF`},null),f(`path`,{d:`M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39`},null),f(`path`,{d:`M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742`,fill:`#FFF`},null),f(`path`,{d:`M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48`,fill:`#1890FF`},null),f(`path`,{d:`M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894`,fill:`#FFF`},null),f(`path`,{d:`M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88`,fill:`#FFB594`},null),f(`path`,{d:`M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624`,fill:`#FFC6A0`},null),f(`path`,{d:`M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682`,fill:`#FFF`},null),f(`path`,{d:`M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z`,fill:`#2B0849`},null),f(`path`,{d:`M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558`,fill:`#A4AABA`},null),f(`path`,{d:`M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062`,fill:`#2B0849`},null),f(`path`,{d:`M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15`,fill:`#A4AABA`},null),f(`path`,{d:`M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165`,fill:`#7BB2F9`},null),f(`path`,{d:`M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.275 222.1s2.773-1.11 6.102-3.884`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038`,fill:`#192064`},null),f(`path`,{d:`M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81`,fill:`#FFF`},null),f(`path`,{d:`M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642`,fill:`#192064`},null),f(`path`,{d:`M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268`,fill:`#FFC6A0`},null),f(`path`,{d:`M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456`,fill:`#FFC6A0`},null),f(`path`,{d:`M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z`,fill:`#520038`},null),f(`path`,{d:`M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M110.13 74.84l-.896 1.61-.298 4.357h-2.228`},null),f(`path`,{d:`M110.846 74.481s1.79-.716 2.506.537`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.287 72.93s1.83 1.113 4.137.954`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M129.405 122.865s-5.272 7.403-9.422 10.768`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M119.306 107.329s.452 4.366-2.127 32.062`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01`,fill:`#F2D7AD`},null),f(`path`,{d:`M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92`,fill:`#F4D19D`},null),f(`path`,{d:`M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z`,fill:`#F2D7AD`},null),f(`path`,{fill:`#CC9B6E`,d:`M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z`},null),f(`path`,{d:`M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83`,fill:`#F4D19D`},null),f(`path`,{fill:`#CC9B6E`,d:`M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z`},null),f(`path`,{fill:`#CC9B6E`,d:`M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z`},null),f(`path`,{d:`M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238`,fill:`#FFC6A0`},null),f(`path`,{d:`M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647`,fill:`#5BA02E`},null),f(`path`,{d:`M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647`,fill:`#92C110`},null),f(`path`,{d:`M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187`,fill:`#F2D7AD`},null),f(`path`,{d:`M88.979 89.48s7.776 5.384 16.6 2.842`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),B=()=>f(`svg`,{width:`254`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .335h253.49v253.49H0z`},null),f(`path`,{d:`M0 293.665h253.49V.401H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .067)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671`,fill:`#FFF`},null),f(`path`,{d:`M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238`,fill:`#FFF`},null),f(`path`,{d:`M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775`,fill:`#FFF`},null),f(`path`,{d:`M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68`,fill:`#FF603B`},null),f(`path`,{d:`M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733`,fill:`#FFF`},null),f(`path`,{d:`M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487`,fill:`#FFB594`},null),f(`path`,{d:`M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235`,fill:`#FFF`},null),f(`path`,{d:`M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246`,fill:`#FFB594`},null),f(`path`,{d:`M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508`,fill:`#FFC6A0`},null),f(`path`,{d:`M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z`,fill:`#520038`},null),f(`path`,{d:`M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M99.206 73.644l-.9 1.62-.3 4.38h-2.24`},null),f(`path`,{d:`M99.926 73.284s1.8-.72 2.52.54`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68`,stroke:`#DB836E`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.326 71.724s1.84 1.12 4.16.96`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954`,stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044`,stroke:`#E4EBF7`,"stroke-width":`1.136`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583`,fill:`#FFF`},null),f(`path`,{d:`M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75`,fill:`#FFC6A0`},null),f(`path`,{d:`M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713`,fill:`#FFC6A0`},null),f(`path`,{d:`M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16`,fill:`#FFC6A0`},null),f(`path`,{d:`M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575`,fill:`#FFF`},null),f(`path`,{d:`M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47`,fill:`#CBD1D1`},null),f(`path`,{d:`M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z`,fill:`#2B0849`},null),f(`path`,{d:`M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671`,fill:`#A4AABA`},null),f(`path`,{d:`M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z`,fill:`#CBD1D1`},null),f(`path`,{d:`M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162`,fill:`#2B0849`},null),f(`path`,{d:`M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156`,fill:`#A4AABA`},null),f(`path`,{d:`M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69`,fill:`#7BB2F9`},null),f(`path`,{d:`M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M96.973 219.373s2.882-1.153 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.032`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62`,fill:`#192064`},null),f(`path`,{d:`M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843`,fill:`#FFF`},null),f(`path`,{d:`M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668`,fill:`#192064`},null),f(`path`,{d:`M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69`,fill:`#FFC6A0`},null),f(`path`,{d:`M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593`,stroke:`#DB836E`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594`,fill:`#FFC6A0`},null),f(`path`,{d:`M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M109.278 112.533s3.38-3.613 7.575-4.662`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.375 123.006s9.697-2.745 11.445-.88`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955`,stroke:`#BFCDDD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01`,fill:`#A3B4C6`},null),f(`path`,{d:`M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813`,fill:`#A3B4C6`},null),f(`mask`,{fill:`#fff`},null),f(`path`,{fill:`#A3B4C6`,mask:`url(#d)`,d:`M154.098 190.096h70.513v-84.617h-70.513z`},null),f(`path`,{d:`M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751`,stroke:`#7C90A5`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M177.259 207.217v11.52M201.05 207.217v11.52`,stroke:`#A3B4C6`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422`,fill:`#5BA02E`,mask:`url(#d)`},null),f(`path`,{d:`M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423`,fill:`#92C110`,mask:`url(#d)`},null),f(`path`,{d:`M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209`,fill:`#F2D7AD`,mask:`url(#d)`},null)])]),V=()=>f(`svg`,{width:`251`,height:`294`},[f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`path`,{d:`M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023`,fill:`#E4EBF7`},null),f(`path`,{d:`M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65`,fill:`#FFF`},null),f(`path`,{d:`M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126`,fill:`#FFF`},null),f(`path`,{d:`M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873`,fill:`#FFF`},null),f(`path`,{d:`M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375`,fill:`#FFF`},null),f(`path`,{d:`M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668`},null),f(`path`,{d:`M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321`,fill:`#A26EF4`},null),f(`path`,{d:`M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734`,fill:`#FFF`},null),f(`path`,{d:`M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717`,fill:`#FFF`},null),f(`path`,{d:`M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61`,fill:`#5BA02E`},null),f(`path`,{d:`M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611`,fill:`#92C110`},null),f(`path`,{d:`M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17`,fill:`#F2D7AD`},null),f(`path`,{d:`M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085`,fill:`#FFF`},null),f(`path`,{d:`M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233`,fill:`#FFC6A0`},null),f(`path`,{d:`M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367`,fill:`#FFB594`},null),f(`path`,{d:`M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95`,fill:`#FFC6A0`},null),f(`path`,{d:`M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929`,fill:`#FFF`},null),f(`path`,{d:`M78.18 94.656s.911 7.41-4.914 13.078`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437`,stroke:`#E4EBF7`,"stroke-width":`.932`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z`,fill:`#FFC6A0`},null),f(`path`,{d:`M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91`,fill:`#FFB594`},null),f(`path`,{d:`M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103`,fill:`#5C2552`},null),f(`path`,{d:`M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145`,fill:`#FFC6A0`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M100.843 77.099l1.701-.928-1.015-4.324.674-1.406`},null),f(`path`,{d:`M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32`,fill:`#552950`},null),f(`path`,{d:`M91.132 86.786s5.269 4.957 12.679 2.327`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25`,fill:`#DB836E`},null),f(`path`,{d:`M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073`,stroke:`#5C2552`,"stroke-width":`1.526`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M66.508 86.763s-1.598 8.83-6.697 14.078`,stroke:`#E4EBF7`,"stroke-width":`1.114`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M128.31 87.934s3.013 4.121 4.06 11.785`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M64.09 84.816s-6.03 9.912-13.607 9.903`,stroke:`#DB836E`,"stroke-width":`.795`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73`,fill:`#FFC6A0`},null),f(`path`,{d:`M130.532 85.488s4.588 5.757 11.619 6.214`,stroke:`#DB836E`,"stroke-width":`.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M121.708 105.73s-.393 8.564-1.34 13.612`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M115.784 161.512s-3.57-1.488-2.678-7.14`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z`,fill:`#2B0849`},null),f(`path`,{d:`M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62`,fill:`#A4AABA`},null),f(`path`,{d:`M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078`,fill:`#2B0849`},null),f(`path`,{d:`M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15`,fill:`#A4AABA`},null),f(`path`,{d:`M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954`,fill:`#7BB2F9`},null),f(`path`,{d:`M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M108.459 220.905s2.759-1.104 6.07-3.863`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017`,fill:`#192064`},null),f(`path`,{d:`M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806`,fill:`#FFF`},null),f(`path`,{d:`M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64`,fill:`#192064`},null),f(`path`,{d:`M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),H=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${s*2}px ${a}px`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${i*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},U=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},W=e=>[H(e),U(e)],G=e=>W(e),K=D(`Result`,e=>{let{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,a=e.colorInfo,o=e.colorError,s=e.colorSuccess,c=e.colorWarning;return[G(j(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:i,resultInfoIconColor:a,resultErrorIconColor:o,resultSuccessIconColor:s,resultWarningIconColor:c}))]},{imageWidth:250,imageHeight:295}),q={success:i,error:e,info:a,warning:R},J={404:z,500:B,403:V},Y=Object.keys(J),X=()=>({prefixCls:String,icon:A.any,status:{type:[Number,String],default:`info`},title:A.any,subTitle:A.any,extra:A.any}),Z=(e,t)=>{let{status:n,icon:r}=t;if(Y.includes(`${n}`)){let t=J[n];return f(`div`,{class:`${e}-icon ${e}-image`},[f(t,null,null)])}let i=q[n],a=r||f(i,null,null);return f(`div`,{class:`${e}-icon`},[a])},de=(e,t)=>t&&f(`div`,{class:`${e}-extra`},[t]),Q=l({compatConfig:{MODE:3},name:`AResult`,inheritAttrs:!1,props:X(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=k(`result`,e),[o,s]=K(i),c=m(()=>M(i.value,s.value,`${i.value}-${e.status}`,{[`${i.value}-rtl`]:a.value===`rtl`}));return()=>{let t=e.title??n.title?.call(n),a=e.subTitle??n.subTitle?.call(n),s=e.icon??n.icon?.call(n),l=e.extra??n.extra?.call(n),u=i.value;return o(f(`div`,O(O({},r),{},{class:[c.value,r.class]}),[Z(u,{status:e.status,icon:s}),f(`div`,{class:`${u}-title`},[t]),a&&f(`div`,{class:`${u}-subtitle`},[a]),de(u,l),n.default&&f(`div`,{class:`${u}-content`},[n.default()])]))}}});Q.PRESENTED_IMAGE_403=J[403],Q.PRESENTED_IMAGE_404=J[404],Q.PRESENTED_IMAGE_500=J[500],Q.install=function(e){return e.component(Q.name,Q),e};var fe={class:`monitor`},$={class:`aw-page-head`},pe={class:`aw-kicker`},me={class:`head-right`},he={class:`toggle-label`},ge={class:`stat-grid`},_e={class:`stat-label`},ve={class:`stat-value aw-mono`},ye={class:`stat-label`},be={class:`stat-value aw-mono`},xe={class:`stat-label`},Se={class:`stat-value aw-mono`},Ce={key:0,class:`orphan-badge`},we={class:`stat-label`},Te={class:`stat-value aw-mono small`},Ee={class:`stat-updated`},De={class:`aw-mono count-extra`},Oe={key:0,class:`aw-mono`},ke={key:2,class:`aw-mono`},Ae={class:`aw-mono count-extra`},je={key:3,class:`aw-mono`},Me={key:4,class:`aw-mono`},Ne={key:0},Pe={key:1,class:`aw-mono`},Fe={class:`aw-mono count-extra`},Ie={key:0,class:`aw-mono`},Le={key:0,class:`aw-mono agent-sub`},Re={key:0},ze={key:1},Be={key:4,class:`aw-mono small`},Ve={key:5,class:`aw-mono small`},He=P(l({__name:`monitor`,setup(e){le({layout:`default`});let{t:r}=te(),i=T(),a=ce(),l=m(()=>a.isAdmin),D=b(null),O=b(!1),k=b(!0),A=b(``),j=async()=>{if(a.token){O.value=!0;try{let e=await E(`/api/system/monitor`,{headers:{authorization:`Bearer ${a.token}`}});D.value=e.data,A.value=new Date().toLocaleTimeString()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.loadFailed`))}finally{O.value=!1}}},M=null,P=()=>{M&&=(clearInterval(M),null),k.value&&a.token&&(M=ne(()=>void j(),5e3))};o(k,()=>P()),o(()=>a.token,()=>{a.token?j():D.value=null,P()}),c(()=>{a.token&&j().then(()=>H()),P()}),s(()=>{M&&clearInterval(M)});let F=b(!1),I=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{channelId:e.channelId,agentId:e.agentId}});t.success(n.code===0?`${e.name} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},L=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{pid:e.pid}});t.success(n.code===0?`PID ${e.pid} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},R=b(!1),z=b(null),B=b(``),V=(e,t,n)=>{z.value=e,B.value=[t,n].filter(Boolean).join(` · `)||`omp harness`,R.value=!0},H=()=>{let e=i.query.agentId;if(typeof e!=`string`||!e)return;let t=typeof i.query.channelId==`string`?i.query.channelId:``,n=D.value?.processes.find(n=>n.agentId===e&&(!t||n.channelId===t));n?.pid&&(V(n.pid,n.name,n.role),w({path:`/monitor`},{replace:!0}))},U=e=>e&&e.length>8?`${e.slice(0,8)}…`:e??`-`,W={idle:`success`,busy:`processing`,stopped:`error`},G={idle:r(`monitor.stateIdle`),busy:r(`monitor.stateBusy`),stopped:r(`monitor.stateStopped`)},K=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`},q=e=>new Date(e).toLocaleTimeString(),J=m(()=>l.value?[{title:r(`monitor.k1dg9sr8001`),dataIndex:`ownerName`,key:`ownerName`,width:110}]:[]),Y=m(()=>[{title:r(`monitor.chChannel`),dataIndex:`channelId`,key:`channelId`},{title:r(`monitor.members`),dataIndex:`memberCount`,key:`memberCount`,width:100},{title:r(`monitor.wired`),dataIndex:`wiredAgentCount`,key:`wiredAgentCount`,width:90},{title:r(`monitor.scheduler`),dataIndex:`hasScheduler`,key:`hasScheduler`,width:110},{title:r(`monitor.lead`),dataIndex:`leadAgentId`,key:`leadAgentId`},...J.value]),X=m(()=>[{title:r(`monitor.name`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.harness`),dataIndex:`harness`,key:`harness`,width:90},{title:r(`monitor.state`),dataIndex:`state`,key:`state`,width:110},{title:r(`monitor.currentTask`),dataIndex:`currentTaskId`,key:`currentTaskId`},{title:r(`monitor.queue`),dataIndex:`queuedCount`,key:`queuedCount`,width:90},{title:`PID`,dataIndex:`process`,key:`pid`,width:130},{title:r(`monitor.channel`),dataIndex:`channelId`,key:`channelId`,width:130},...J.value,{title:r(`monitor.actions`),key:`actions`,width:190,fixed:`right`}]),Z=m(()=>[{title:`PID`,dataIndex:`pid`,key:`pid`,width:100},{title:r(`monitor.binding`),dataIndex:`bound`,key:`bound`,width:100},{title:r(`monitor.agent`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.command`),dataIndex:`command`,key:`command`},{title:r(`monitor.startedAt`),dataIndex:`startedAt`,key:`startedAt`,width:110},{title:r(`monitor.state`),dataIndex:`alive`,key:`alive`,width:100},...J.value,{title:r(`monitor.actions`),key:`actions`,width:170,fixed:`right`}]);return(e,t)=>{let i=ie,o=se,s=n,c=Q,l=ae,m=re,b=N,T=oe;return d(),g(`div`,fe,[h(`div`,$,[h(`div`,null,[h(`p`,pe,u(S(r)(`menu.system`))+` / runtime ledger `,1),h(`h1`,null,[C(u(S(r)(`monitor.title`))+` `,1),f(i,{color:S(D)?.scope===`admin`?`volcano`:`blue`,class:`scope-tag`},{default:x(()=>[h(`span`,{class:ee(S(D)?.scope===`admin`?`i-tabler-shield-check`:`i-tabler-user`)},null,2),C(` `+u(S(D)?.scope===`admin`?e.$t(`monitor.k16zpmg9002`):e.$t(`monitor.k1dzryry003`)),1)]),_:1},8,[`color`])])]),h(`div`,me,[f(o,{checked:S(k),"onUpdate:checked":t[0]||=e=>p(k)?k.value=e:null,size:`small`},null,8,[`checked`]),h(`span`,he,u(S(r)(`monitor.autoRefresh`)),1),f(s,{size:`small`,loading:S(O),onClick:j},{icon:x(()=>[...t[3]||=[h(`span`,{class:`i-tabler-refresh`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.refresh`)),1)]),_:1},8,[`loading`])])]),S(a).token?(d(),g(_,{key:1},[h(`div`,ge,[f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,_e,u(S(r)(`monitor.channels`)),1),h(`p`,ve,u(S(D)?.counts.channels??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,ye,u(S(r)(`monitor.agents`)),1),h(`p`,be,u(S(D)?.counts.agents??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,xe,u(S(r)(`monitor.aliveProcesses`)),1),h(`p`,Se,[C(u(S(D)?.counts.aliveProcesses??`–`)+` `,1),(S(D)?.counts.orphanProcesses??0)>0?(d(),g(`span`,Ce,` +`+u(S(D)?.counts.orphanProcesses)+` `+u(S(r)(`monitor.orphan`)),1)):v(``,!0)])]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,we,u(S(r)(`monitor.server`)),1),h(`p`,Te,` PID `+u(S(D)?.serverPid??`–`)+` · `+u(S(D)?K(S(D).uptimeMs):``),1),h(`p`,Ee,u(S(A))+` · `+u(S(r)(`monitor.updated`))+` `+u(S(D)?.generatedAt??``),1)]),_:1})]),f(l,{class:`aw-panel`,title:S(r)(`monitor.channelRuntimes`)},{extra:x(()=>[h(`span`,De,u(S(D)?.channels.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(Y),"data-source":S(D)?.channels??[],pagination:!1,loading:S(O),"row-key":`channelId`,size:`small`,scroll:{x:720}},{bodyCell:x(({column:e,record:n})=>[e.key===`channelId`?(d(),g(`span`,Oe,u(U(n.channelId)),1)):e.key===`hasScheduler`?(d(),g(_,{key:1},[n.hasScheduler?(d(),y(i,{key:0,color:`purple`},{default:x(()=>[C(u(S(r)(`monitor.scheduling`)),1)]),_:1})):(d(),y(i,{key:1},{default:x(()=>[...t[4]||=[C(` – `,-1)]]),_:1}))],64)):e.key===`leadAgentId`?(d(),g(`span`,ke,u(U(n.leadAgentId)),1)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.agentRuntimes`)},{extra:x(()=>[h(`span`,Ae,u(S(D)?.agents.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(X),"data-source":S(D)?.agents??[],pagination:!1,loading:S(O),"row-key":`agentId`,size:`small`,scroll:{x:980}},{bodyCell:x(({column:e,record:n})=>[e.key===`role`?(d(),y(i,{key:0,color:n.role===`lead`?`gold`:`blue`},{default:x(()=>[C(u(n.role),1)]),_:2},1032,[`color`])):e.key===`harness`?(d(),y(i,{key:1},{default:x(()=>[C(u(n.harness),1)]),_:2},1024)):e.key===`state`?(d(),y(i,{key:2,color:W[n.state]??`default`},{default:x(()=>[C(u(G[n.state]??n.state),1)]),_:2},1032,[`color`])):e.key===`currentTaskId`?(d(),g(`span`,je,u(U(n.currentTaskId)),1)):e.key===`channelId`?(d(),g(`span`,Me,u(U(n.channelId)),1)):e.key===`pid`?(d(),g(_,{key:5},[n.process?(d(),g(`span`,Ne,[f(i,{color:n.process.alive?`success`:`default`,class:`aw-mono`},{default:x(()=>[C(` PID `+u(n.process.pid),1)]),_:2},1032,[`color`])])):(d(),g(`span`,Pe,`in-proc`))],64)):e.key===`actions`?(d(),y(T,{key:6,size:4},{default:x(()=>[n.process?.alive?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.process.pid,n.name,n.role)},{icon:x(()=>[...t[5]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:`${S(r)(`monitor.terminateConfirm`)}(${n.name})`,"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>I(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)},{icon:x(()=>[...t[6]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:1},8,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.harnessProcesses`)},{extra:x(()=>[h(`span`,Fe,u(S(D)?.processes.length??0)+` spawned · `+u(S(D)?.counts.orphanProcesses??0)+` orphan `,1)]),default:x(()=>[f(m,{columns:S(Z),"data-source":S(D)?.processes??[],pagination:!1,loading:S(O),"row-key":`pid`,size:`small`,scroll:{x:900}},{bodyCell:x(({column:e,record:n})=>[e.key===`pid`?(d(),g(`span`,Ie,u(n.pid),1)):e.key===`bound`?(d(),y(i,{key:1,color:n.bound?`success`:`warning`},{default:x(()=>[C(u(n.bound?S(r)(`monitor.bound`):S(r)(`monitor.orphan`)),1)]),_:2},1032,[`color`])):e.key===`name`?(d(),g(_,{key:2},[h(`span`,null,u(n.name??`–`),1),n.agentId?(d(),g(`span`,Le,u(U(n.agentId)),1)):v(``,!0)],64)):e.key===`role`?(d(),g(_,{key:3},[n.role?(d(),g(`span`,Re,u(n.role),1)):(d(),g(`span`,ze,`–`))],64)):e.key===`command`?(d(),g(`span`,Be,u(n.command),1)):e.key===`startedAt`?(d(),g(`span`,Ve,u(q(n.startedAt)),1)):e.key===`alive`?(d(),y(i,{key:6,color:n.alive?`success`:`error`},{default:x(()=>[C(u(n.alive?S(r)(`monitor.alive`):`${S(r)(`monitor.exited`)} ${n.exitCode??``}`),1)]),_:2},1032,[`color`])):e.key===`actions`?(d(),y(T,{key:7,size:4},{default:x(()=>[n.terminal?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.pid,n.name,n.role)},{icon:x(()=>[...t[7]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:S(r)(`monitor.terminatePidConfirm`),"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>L(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)||!n.alive},{icon:x(()=>[...t[8]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:2},1032,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(ue,{open:S(R),"onUpdate:open":t[2]||=e=>p(R)?R.value=e:null,pid:S(z),subtitle:S(B)},null,8,[`open`,`pid`,`subtitle`])],64)):(d(),y(l,{key:0,class:`aw-panel`},{default:x(()=>[f(c,{title:S(r)(`monitor.needLogin`)},{extra:x(()=>[f(s,{type:`primary`,onClick:t[1]||=t=>(`navigateTo`in e?e.navigateTo:S(w))(`/workshop`)},{default:x(()=>[C(u(S(r)(`monitor.goLogin`)),1)]),_:1})]),_:1},8,[`title`])]),_:1}))])}}}),[[`__scopeId`,`data-v-d899c904`]]);export{He as default};
1
+ import{O as e,a as t,c as n,j as r,m as i,p as a}from"./BU83-NnX.js";import{$ as o,P as s,R as c,S as l,Ut as u,V as d,Vt as ee,b as f,ct as p,d as m,f as h,h as g,i as _,m as v,p as y,pt as b,tt as x,xt as S,y as C}from"./CSkxz2NX.js";import{d as w,p as T}from"./BJHKLJJU.js";import{s as E}from"./YnQxK3eG.js";import{n as te}from"./KZQX7xoM.js";import{t as ne}from"./CWoJjWmZ.js";import{d as D,jt as O,n as k,t as A,u as j,wt as M}from"./4sIEbgcl.js";import{t as re}from"./BneN7fbu.js";import{t as ie}from"./BCGafdXT.js";import{t as N}from"./pdk8jLGT.js";import{t as ae}from"./BYhEUx8t.js";import{t as oe}from"./jZsY8yYz.js";import{t as se}from"./CClOy-Hz2.js";import{t as ce}from"./DIaZ2PTo2.js";import{t as P}from"./BDNMzG2s2.js";import{t as le}from"./CNs_Ozdc2.js";import{t as ue}from"./DeJykBFf.js";var F={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`};function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){L(e,t,n[t])})}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e,t){var n=I({},e,t.attrs);return f(r,I({},n,{icon:F}),null)};R.displayName=`WarningFilled`,R.inheritAttrs=!1;var z=()=>f(`svg`,{width:`252`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .387h251.772v251.772H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .012)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66`,fill:`#FFF`},null),f(`path`,{d:`M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175`,fill:`#FFF`},null),f(`path`,{d:`M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932`,fill:`#FFF`},null),f(`path`,{d:`M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382`,fill:`#FFF`},null),f(`path`,{d:`M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39`},null),f(`path`,{d:`M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742`,fill:`#FFF`},null),f(`path`,{d:`M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48`,fill:`#1890FF`},null),f(`path`,{d:`M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894`,fill:`#FFF`},null),f(`path`,{d:`M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88`,fill:`#FFB594`},null),f(`path`,{d:`M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624`,fill:`#FFC6A0`},null),f(`path`,{d:`M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682`,fill:`#FFF`},null),f(`path`,{d:`M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z`,fill:`#2B0849`},null),f(`path`,{d:`M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558`,fill:`#A4AABA`},null),f(`path`,{d:`M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062`,fill:`#2B0849`},null),f(`path`,{d:`M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15`,fill:`#A4AABA`},null),f(`path`,{d:`M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165`,fill:`#7BB2F9`},null),f(`path`,{d:`M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.275 222.1s2.773-1.11 6.102-3.884`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038`,fill:`#192064`},null),f(`path`,{d:`M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81`,fill:`#FFF`},null),f(`path`,{d:`M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642`,fill:`#192064`},null),f(`path`,{d:`M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268`,fill:`#FFC6A0`},null),f(`path`,{d:`M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456`,fill:`#FFC6A0`},null),f(`path`,{d:`M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z`,fill:`#520038`},null),f(`path`,{d:`M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M110.13 74.84l-.896 1.61-.298 4.357h-2.228`},null),f(`path`,{d:`M110.846 74.481s1.79-.716 2.506.537`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.287 72.93s1.83 1.113 4.137.954`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M129.405 122.865s-5.272 7.403-9.422 10.768`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M119.306 107.329s.452 4.366-2.127 32.062`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01`,fill:`#F2D7AD`},null),f(`path`,{d:`M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92`,fill:`#F4D19D`},null),f(`path`,{d:`M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z`,fill:`#F2D7AD`},null),f(`path`,{fill:`#CC9B6E`,d:`M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z`},null),f(`path`,{d:`M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83`,fill:`#F4D19D`},null),f(`path`,{fill:`#CC9B6E`,d:`M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z`},null),f(`path`,{fill:`#CC9B6E`,d:`M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z`},null),f(`path`,{d:`M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238`,fill:`#FFC6A0`},null),f(`path`,{d:`M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647`,fill:`#5BA02E`},null),f(`path`,{d:`M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647`,fill:`#92C110`},null),f(`path`,{d:`M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187`,fill:`#F2D7AD`},null),f(`path`,{d:`M88.979 89.48s7.776 5.384 16.6 2.842`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),B=()=>f(`svg`,{width:`254`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .335h253.49v253.49H0z`},null),f(`path`,{d:`M0 293.665h253.49V.401H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .067)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671`,fill:`#FFF`},null),f(`path`,{d:`M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238`,fill:`#FFF`},null),f(`path`,{d:`M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775`,fill:`#FFF`},null),f(`path`,{d:`M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68`,fill:`#FF603B`},null),f(`path`,{d:`M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733`,fill:`#FFF`},null),f(`path`,{d:`M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487`,fill:`#FFB594`},null),f(`path`,{d:`M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235`,fill:`#FFF`},null),f(`path`,{d:`M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246`,fill:`#FFB594`},null),f(`path`,{d:`M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508`,fill:`#FFC6A0`},null),f(`path`,{d:`M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z`,fill:`#520038`},null),f(`path`,{d:`M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M99.206 73.644l-.9 1.62-.3 4.38h-2.24`},null),f(`path`,{d:`M99.926 73.284s1.8-.72 2.52.54`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68`,stroke:`#DB836E`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.326 71.724s1.84 1.12 4.16.96`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954`,stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044`,stroke:`#E4EBF7`,"stroke-width":`1.136`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583`,fill:`#FFF`},null),f(`path`,{d:`M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75`,fill:`#FFC6A0`},null),f(`path`,{d:`M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713`,fill:`#FFC6A0`},null),f(`path`,{d:`M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16`,fill:`#FFC6A0`},null),f(`path`,{d:`M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575`,fill:`#FFF`},null),f(`path`,{d:`M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47`,fill:`#CBD1D1`},null),f(`path`,{d:`M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z`,fill:`#2B0849`},null),f(`path`,{d:`M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671`,fill:`#A4AABA`},null),f(`path`,{d:`M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z`,fill:`#CBD1D1`},null),f(`path`,{d:`M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162`,fill:`#2B0849`},null),f(`path`,{d:`M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156`,fill:`#A4AABA`},null),f(`path`,{d:`M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69`,fill:`#7BB2F9`},null),f(`path`,{d:`M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M96.973 219.373s2.882-1.153 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.032`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62`,fill:`#192064`},null),f(`path`,{d:`M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843`,fill:`#FFF`},null),f(`path`,{d:`M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668`,fill:`#192064`},null),f(`path`,{d:`M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69`,fill:`#FFC6A0`},null),f(`path`,{d:`M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593`,stroke:`#DB836E`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594`,fill:`#FFC6A0`},null),f(`path`,{d:`M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M109.278 112.533s3.38-3.613 7.575-4.662`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.375 123.006s9.697-2.745 11.445-.88`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955`,stroke:`#BFCDDD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01`,fill:`#A3B4C6`},null),f(`path`,{d:`M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813`,fill:`#A3B4C6`},null),f(`mask`,{fill:`#fff`},null),f(`path`,{fill:`#A3B4C6`,mask:`url(#d)`,d:`M154.098 190.096h70.513v-84.617h-70.513z`},null),f(`path`,{d:`M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751`,stroke:`#7C90A5`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M177.259 207.217v11.52M201.05 207.217v11.52`,stroke:`#A3B4C6`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422`,fill:`#5BA02E`,mask:`url(#d)`},null),f(`path`,{d:`M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423`,fill:`#92C110`,mask:`url(#d)`},null),f(`path`,{d:`M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209`,fill:`#F2D7AD`,mask:`url(#d)`},null)])]),V=()=>f(`svg`,{width:`251`,height:`294`},[f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`path`,{d:`M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023`,fill:`#E4EBF7`},null),f(`path`,{d:`M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65`,fill:`#FFF`},null),f(`path`,{d:`M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126`,fill:`#FFF`},null),f(`path`,{d:`M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873`,fill:`#FFF`},null),f(`path`,{d:`M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375`,fill:`#FFF`},null),f(`path`,{d:`M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668`},null),f(`path`,{d:`M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321`,fill:`#A26EF4`},null),f(`path`,{d:`M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734`,fill:`#FFF`},null),f(`path`,{d:`M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717`,fill:`#FFF`},null),f(`path`,{d:`M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61`,fill:`#5BA02E`},null),f(`path`,{d:`M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611`,fill:`#92C110`},null),f(`path`,{d:`M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17`,fill:`#F2D7AD`},null),f(`path`,{d:`M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085`,fill:`#FFF`},null),f(`path`,{d:`M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233`,fill:`#FFC6A0`},null),f(`path`,{d:`M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367`,fill:`#FFB594`},null),f(`path`,{d:`M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95`,fill:`#FFC6A0`},null),f(`path`,{d:`M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929`,fill:`#FFF`},null),f(`path`,{d:`M78.18 94.656s.911 7.41-4.914 13.078`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437`,stroke:`#E4EBF7`,"stroke-width":`.932`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z`,fill:`#FFC6A0`},null),f(`path`,{d:`M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91`,fill:`#FFB594`},null),f(`path`,{d:`M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103`,fill:`#5C2552`},null),f(`path`,{d:`M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145`,fill:`#FFC6A0`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M100.843 77.099l1.701-.928-1.015-4.324.674-1.406`},null),f(`path`,{d:`M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32`,fill:`#552950`},null),f(`path`,{d:`M91.132 86.786s5.269 4.957 12.679 2.327`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25`,fill:`#DB836E`},null),f(`path`,{d:`M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073`,stroke:`#5C2552`,"stroke-width":`1.526`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M66.508 86.763s-1.598 8.83-6.697 14.078`,stroke:`#E4EBF7`,"stroke-width":`1.114`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M128.31 87.934s3.013 4.121 4.06 11.785`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M64.09 84.816s-6.03 9.912-13.607 9.903`,stroke:`#DB836E`,"stroke-width":`.795`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73`,fill:`#FFC6A0`},null),f(`path`,{d:`M130.532 85.488s4.588 5.757 11.619 6.214`,stroke:`#DB836E`,"stroke-width":`.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M121.708 105.73s-.393 8.564-1.34 13.612`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M115.784 161.512s-3.57-1.488-2.678-7.14`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z`,fill:`#2B0849`},null),f(`path`,{d:`M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62`,fill:`#A4AABA`},null),f(`path`,{d:`M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078`,fill:`#2B0849`},null),f(`path`,{d:`M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15`,fill:`#A4AABA`},null),f(`path`,{d:`M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954`,fill:`#7BB2F9`},null),f(`path`,{d:`M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M108.459 220.905s2.759-1.104 6.07-3.863`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017`,fill:`#192064`},null),f(`path`,{d:`M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806`,fill:`#FFF`},null),f(`path`,{d:`M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64`,fill:`#192064`},null),f(`path`,{d:`M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),H=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${s*2}px ${a}px`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${i*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},U=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},W=e=>[H(e),U(e)],G=e=>W(e),K=D(`Result`,e=>{let{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,a=e.colorInfo,o=e.colorError,s=e.colorSuccess,c=e.colorWarning;return[G(j(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:i,resultInfoIconColor:a,resultErrorIconColor:o,resultSuccessIconColor:s,resultWarningIconColor:c}))]},{imageWidth:250,imageHeight:295}),q={success:i,error:e,info:a,warning:R},J={404:z,500:B,403:V},Y=Object.keys(J),X=()=>({prefixCls:String,icon:A.any,status:{type:[Number,String],default:`info`},title:A.any,subTitle:A.any,extra:A.any}),Z=(e,t)=>{let{status:n,icon:r}=t;if(Y.includes(`${n}`)){let t=J[n];return f(`div`,{class:`${e}-icon ${e}-image`},[f(t,null,null)])}let i=q[n],a=r||f(i,null,null);return f(`div`,{class:`${e}-icon`},[a])},de=(e,t)=>t&&f(`div`,{class:`${e}-extra`},[t]),Q=l({compatConfig:{MODE:3},name:`AResult`,inheritAttrs:!1,props:X(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=k(`result`,e),[o,s]=K(i),c=m(()=>M(i.value,s.value,`${i.value}-${e.status}`,{[`${i.value}-rtl`]:a.value===`rtl`}));return()=>{let t=e.title??n.title?.call(n),a=e.subTitle??n.subTitle?.call(n),s=e.icon??n.icon?.call(n),l=e.extra??n.extra?.call(n),u=i.value;return o(f(`div`,O(O({},r),{},{class:[c.value,r.class]}),[Z(u,{status:e.status,icon:s}),f(`div`,{class:`${u}-title`},[t]),a&&f(`div`,{class:`${u}-subtitle`},[a]),de(u,l),n.default&&f(`div`,{class:`${u}-content`},[n.default()])]))}}});Q.PRESENTED_IMAGE_403=J[403],Q.PRESENTED_IMAGE_404=J[404],Q.PRESENTED_IMAGE_500=J[500],Q.install=function(e){return e.component(Q.name,Q),e};var fe={class:`monitor`},$={class:`aw-page-head`},pe={class:`aw-kicker`},me={class:`head-right`},he={class:`toggle-label`},ge={class:`stat-grid`},_e={class:`stat-label`},ve={class:`stat-value aw-mono`},ye={class:`stat-label`},be={class:`stat-value aw-mono`},xe={class:`stat-label`},Se={class:`stat-value aw-mono`},Ce={key:0,class:`orphan-badge`},we={class:`stat-label`},Te={class:`stat-value aw-mono small`},Ee={class:`stat-updated`},De={class:`aw-mono count-extra`},Oe={key:0,class:`aw-mono`},ke={key:2,class:`aw-mono`},Ae={class:`aw-mono count-extra`},je={key:3,class:`aw-mono`},Me={key:4,class:`aw-mono`},Ne={key:0},Pe={key:1,class:`aw-mono`},Fe={class:`aw-mono count-extra`},Ie={key:0,class:`aw-mono`},Le={key:0,class:`aw-mono agent-sub`},Re={key:0},ze={key:1},Be={key:4,class:`aw-mono small`},Ve={key:5,class:`aw-mono small`},He=P(l({__name:`monitor`,setup(e){le({layout:`default`});let{t:r}=te(),i=T(),a=ce(),l=m(()=>a.isAdmin),D=b(null),O=b(!1),k=b(!0),A=b(``),j=async()=>{if(a.token){O.value=!0;try{let e=await E(`/api/system/monitor`,{headers:{authorization:`Bearer ${a.token}`}});D.value=e.data,A.value=new Date().toLocaleTimeString()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.loadFailed`))}finally{O.value=!1}}},M=null,P=()=>{M&&=(clearInterval(M),null),k.value&&a.token&&(M=ne(()=>void j(),5e3))};o(k,()=>P()),o(()=>a.token,()=>{a.token?j():D.value=null,P()}),c(()=>{a.token&&j().then(()=>H()),P()}),s(()=>{M&&clearInterval(M)});let F=b(!1),I=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{channelId:e.channelId,agentId:e.agentId}});t.success(n.code===0?`${e.name} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},L=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{pid:e.pid}});t.success(n.code===0?`PID ${e.pid} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},R=b(!1),z=b(null),B=b(``),V=(e,t,n)=>{z.value=e,B.value=[t,n].filter(Boolean).join(` · `)||`omp harness`,R.value=!0},H=()=>{let e=i.query.agentId;if(typeof e!=`string`||!e)return;let t=typeof i.query.channelId==`string`?i.query.channelId:``,n=D.value?.processes.find(n=>n.agentId===e&&(!t||n.channelId===t));n?.pid&&(V(n.pid,n.name,n.role),w({path:`/monitor`},{replace:!0}))},U=e=>e&&e.length>8?`${e.slice(0,8)}…`:e??`-`,W={idle:`success`,busy:`processing`,stopped:`error`},G={idle:r(`monitor.stateIdle`),busy:r(`monitor.stateBusy`),stopped:r(`monitor.stateStopped`)},K=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`},q=e=>new Date(e).toLocaleTimeString(),J=m(()=>l.value?[{title:r(`monitor.k1dg9sr8001`),dataIndex:`ownerName`,key:`ownerName`,width:110}]:[]),Y=m(()=>[{title:r(`monitor.chChannel`),dataIndex:`channelId`,key:`channelId`},{title:r(`monitor.members`),dataIndex:`memberCount`,key:`memberCount`,width:100},{title:r(`monitor.wired`),dataIndex:`wiredAgentCount`,key:`wiredAgentCount`,width:90},{title:r(`monitor.scheduler`),dataIndex:`hasScheduler`,key:`hasScheduler`,width:110},{title:r(`monitor.lead`),dataIndex:`leadAgentId`,key:`leadAgentId`},...J.value]),X=m(()=>[{title:r(`monitor.name`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.harness`),dataIndex:`harness`,key:`harness`,width:90},{title:r(`monitor.state`),dataIndex:`state`,key:`state`,width:110},{title:r(`monitor.currentTask`),dataIndex:`currentTaskId`,key:`currentTaskId`},{title:r(`monitor.queue`),dataIndex:`queuedCount`,key:`queuedCount`,width:90},{title:`PID`,dataIndex:`process`,key:`pid`,width:130},{title:r(`monitor.channel`),dataIndex:`channelId`,key:`channelId`,width:130},...J.value,{title:r(`monitor.actions`),key:`actions`,width:190,fixed:`right`}]),Z=m(()=>[{title:`PID`,dataIndex:`pid`,key:`pid`,width:100},{title:r(`monitor.binding`),dataIndex:`bound`,key:`bound`,width:100},{title:r(`monitor.agent`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.command`),dataIndex:`command`,key:`command`},{title:r(`monitor.startedAt`),dataIndex:`startedAt`,key:`startedAt`,width:110},{title:r(`monitor.state`),dataIndex:`alive`,key:`alive`,width:100},...J.value,{title:r(`monitor.actions`),key:`actions`,width:170,fixed:`right`}]);return(e,t)=>{let i=ie,o=se,s=n,c=Q,l=ae,m=re,b=N,T=oe;return d(),g(`div`,fe,[h(`div`,$,[h(`div`,null,[h(`p`,pe,u(S(r)(`menu.system`))+` / runtime ledger `,1),h(`h1`,null,[C(u(S(r)(`monitor.title`))+` `,1),f(i,{color:S(D)?.scope===`admin`?`volcano`:`blue`,class:`scope-tag`},{default:x(()=>[h(`span`,{class:ee(S(D)?.scope===`admin`?`i-tabler-shield-check`:`i-tabler-user`)},null,2),C(` `+u(S(D)?.scope===`admin`?e.$t(`monitor.k16zpmg9002`):e.$t(`monitor.k1dzryry003`)),1)]),_:1},8,[`color`])])]),h(`div`,me,[f(o,{checked:S(k),"onUpdate:checked":t[0]||=e=>p(k)?k.value=e:null,size:`small`},null,8,[`checked`]),h(`span`,he,u(S(r)(`monitor.autoRefresh`)),1),f(s,{size:`small`,loading:S(O),onClick:j},{icon:x(()=>[...t[3]||=[h(`span`,{class:`i-tabler-refresh`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.refresh`)),1)]),_:1},8,[`loading`])])]),S(a).token?(d(),g(_,{key:1},[h(`div`,ge,[f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,_e,u(S(r)(`monitor.channels`)),1),h(`p`,ve,u(S(D)?.counts.channels??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,ye,u(S(r)(`monitor.agents`)),1),h(`p`,be,u(S(D)?.counts.agents??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,xe,u(S(r)(`monitor.aliveProcesses`)),1),h(`p`,Se,[C(u(S(D)?.counts.aliveProcesses??`–`)+` `,1),(S(D)?.counts.orphanProcesses??0)>0?(d(),g(`span`,Ce,` +`+u(S(D)?.counts.orphanProcesses)+` `+u(S(r)(`monitor.orphan`)),1)):v(``,!0)])]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,we,u(S(r)(`monitor.server`)),1),h(`p`,Te,` PID `+u(S(D)?.serverPid??`–`)+` · `+u(S(D)?K(S(D).uptimeMs):``),1),h(`p`,Ee,u(S(A))+` · `+u(S(r)(`monitor.updated`))+` `+u(S(D)?.generatedAt??``),1)]),_:1})]),f(l,{class:`aw-panel`,title:S(r)(`monitor.channelRuntimes`)},{extra:x(()=>[h(`span`,De,u(S(D)?.channels.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(Y),"data-source":S(D)?.channels??[],pagination:!1,loading:S(O),"row-key":`channelId`,size:`small`,scroll:{x:720}},{bodyCell:x(({column:e,record:n})=>[e.key===`channelId`?(d(),g(`span`,Oe,u(U(n.channelId)),1)):e.key===`hasScheduler`?(d(),g(_,{key:1},[n.hasScheduler?(d(),y(i,{key:0,color:`purple`},{default:x(()=>[C(u(S(r)(`monitor.scheduling`)),1)]),_:1})):(d(),y(i,{key:1},{default:x(()=>[...t[4]||=[C(` – `,-1)]]),_:1}))],64)):e.key===`leadAgentId`?(d(),g(`span`,ke,u(U(n.leadAgentId)),1)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.agentRuntimes`)},{extra:x(()=>[h(`span`,Ae,u(S(D)?.agents.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(X),"data-source":S(D)?.agents??[],pagination:!1,loading:S(O),"row-key":`agentId`,size:`small`,scroll:{x:980}},{bodyCell:x(({column:e,record:n})=>[e.key===`role`?(d(),y(i,{key:0,color:n.role===`lead`?`gold`:`blue`},{default:x(()=>[C(u(n.role),1)]),_:2},1032,[`color`])):e.key===`harness`?(d(),y(i,{key:1},{default:x(()=>[C(u(n.harness),1)]),_:2},1024)):e.key===`state`?(d(),y(i,{key:2,color:W[n.state]??`default`},{default:x(()=>[C(u(G[n.state]??n.state),1)]),_:2},1032,[`color`])):e.key===`currentTaskId`?(d(),g(`span`,je,u(U(n.currentTaskId)),1)):e.key===`channelId`?(d(),g(`span`,Me,u(U(n.channelId)),1)):e.key===`pid`?(d(),g(_,{key:5},[n.process?(d(),g(`span`,Ne,[f(i,{color:n.process.alive?`success`:`default`,class:`aw-mono`},{default:x(()=>[C(` PID `+u(n.process.pid),1)]),_:2},1032,[`color`])])):(d(),g(`span`,Pe,`in-proc`))],64)):e.key===`actions`?(d(),y(T,{key:6,size:4},{default:x(()=>[n.process?.alive?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.process.pid,n.name,n.role)},{icon:x(()=>[...t[5]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:`${S(r)(`monitor.terminateConfirm`)}(${n.name})`,"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>I(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)},{icon:x(()=>[...t[6]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:1},8,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.harnessProcesses`)},{extra:x(()=>[h(`span`,Fe,u(S(D)?.processes.length??0)+` spawned · `+u(S(D)?.counts.orphanProcesses??0)+` orphan `,1)]),default:x(()=>[f(m,{columns:S(Z),"data-source":S(D)?.processes??[],pagination:!1,loading:S(O),"row-key":`pid`,size:`small`,scroll:{x:900}},{bodyCell:x(({column:e,record:n})=>[e.key===`pid`?(d(),g(`span`,Ie,u(n.pid),1)):e.key===`bound`?(d(),y(i,{key:1,color:n.bound?`success`:`warning`},{default:x(()=>[C(u(n.bound?S(r)(`monitor.bound`):S(r)(`monitor.orphan`)),1)]),_:2},1032,[`color`])):e.key===`name`?(d(),g(_,{key:2},[h(`span`,null,u(n.name??`–`),1),n.agentId?(d(),g(`span`,Le,u(U(n.agentId)),1)):v(``,!0)],64)):e.key===`role`?(d(),g(_,{key:3},[n.role?(d(),g(`span`,Re,u(n.role),1)):(d(),g(`span`,ze,`–`))],64)):e.key===`command`?(d(),g(`span`,Be,u(n.command),1)):e.key===`startedAt`?(d(),g(`span`,Ve,u(q(n.startedAt)),1)):e.key===`alive`?(d(),y(i,{key:6,color:n.alive?`success`:`error`},{default:x(()=>[C(u(n.alive?S(r)(`monitor.alive`):`${S(r)(`monitor.exited`)} ${n.exitCode??``}`),1)]),_:2},1032,[`color`])):e.key===`actions`?(d(),y(T,{key:7,size:4},{default:x(()=>[n.terminal?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.pid,n.name,n.role)},{icon:x(()=>[...t[7]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:S(r)(`monitor.terminatePidConfirm`),"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>L(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)||!n.alive},{icon:x(()=>[...t[8]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:2},1032,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(ue,{open:S(R),"onUpdate:open":t[2]||=e=>p(R)?R.value=e:null,pid:S(z),subtitle:S(B)},null,8,[`open`,`pid`,`subtitle`])],64)):(d(),y(l,{key:0,class:`aw-panel`},{default:x(()=>[f(c,{title:S(r)(`monitor.needLogin`)},{extra:x(()=>[f(s,{type:`primary`,onClick:t[1]||=t=>(`navigateTo`in e?e.navigateTo:S(w))(`/workshop`)},{default:x(()=>[C(u(S(r)(`monitor.goLogin`)),1)]),_:1})]),_:1},8,[`title`])]),_:1}))])}}}),[[`__scopeId`,`data-v-b8362ef8`]]);export{He as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B7gZokg82.js","./BBrRELH32.js","./CWKEp1wx2.js","./BFjGV-RV2.js","./RYFtK4qZ2.js","./BGkumHZ32.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,C as t,Ht as n,P as r,R as i,S as a,Ut as o,V as s,Vt as c,W as l,_t as u,at as d,b as f,ct as p,d as m,dt as h,f as g,ft as _,h as v,ht as y,i as b,j as ee,m as x,nt as S,p as te,pt as C,rt as w,tt as ne,ut as T,v as re,xt as E,y as D,yt as O}from"./CSkxz2NX.js";import{c as k,d as ie,f as ae,l as A,t as oe,u as se}from"./D6uzXueg.js";import{t as ce}from"./HclGiUj8.js";import{n as le}from"./KZQX7xoM.js";import{t as j}from"./CWoJjWmZ.js";import{t as ue}from"./36oeS8_R.js";import{t as de}from"./DIaZ2PTo2.js";import{t as fe}from"./aLLjF2K-2.js";import{t as M}from"./BDNMzG2s2.js";import{t as pe}from"./BBrRELH32.js";import{C as me,L as he,N,O as ge,St as _e,_ as ve,b as ye,c as be,dt as xe,et as P,v as Se,y as F,z as Ce}from"./BFjGV-RV2.js";import{t as we}from"./DGIuvyRN2.js";import{t as Te}from"./CssgYAAL2.js";import{t as I}from"./D0ZBQrN_2.js";import{n as Ee,t as De}from"./BC9wjTJK2.js";import{r as Oe,t as ke}from"./D98NH8kG.js";import{t as Ae}from"./ca4TJ3Op.js";import{t as je}from"./C3J6FYKa.js";import{n as Me}from"./DeYsUzhr.js";var Ne=`__characterAssets`;function Pe(e){return{id:e.id,name:e.name,file:e.file,frames:e.sheet?.frames??4,frameWidth:e.sheet?.frameWidth??48,frameHeight:e.sheet?.frameHeight??88,kind:e.kind===`glb`?`glb`:e.kind===`dev`?`dev`:`sheet`,builtin:e.author===`system`,applied:(e.appliedTo?.length??0)>0}}function Fe(){let e=[],t=[{id:`knight`,name:`灰羽骑士`,file:`/assets/game/character/knight.png`,frames:4,frameWidth:48,frameHeight:88,kind:`sheet`,builtin:!0,applied:!1},{id:`mage`,name:`紫晶法师`,file:`/assets/game/character/mage.png`,frames:4,frameWidth:48,frameHeight:88,kind:`sheet`,builtin:!0,applied:!1},{id:`bot`,name:`青枢机械`,file:`/assets/game/character/bot.png`,frames:4,frameWidth:48,frameHeight:88,kind:`sheet`,builtin:!0,applied:!1},{id:`hero-3d`,name:`标准员工模型`,file:`/assets/game/character/hero-3d.glb`,frames:1,frameWidth:0,frameHeight:0,kind:`glb`,builtin:!0,applied:!1,hint:`默认员工 3D 模型`},{id:`yangyang-walk`,name:`杨杨(走路)`,file:`/assets/game/character/yangyang-walk.glb`,frames:1,frameWidth:0,frameHeight:0,kind:`glb`,builtin:!0,applied:!1,hint:`自定义角色:骨骼走路动画(剪辑 WALK;文件较大,建议少量绑定)`},{id:`device-3d`,name:`工业泵设备`,file:`/assets/game/character/device-3d.glb`,frames:1,frameWidth:0,frameHeight:0,kind:`dev`,builtin:!0,applied:!1,hint:`数字孪生实体模型(拖入场景生成设备)`}],n=[];try{let e=Object.assign({});for(let[t,r]of Object.entries(e)){let e=t.split(`/`).pop()??``,i=`dev-folder-`+e.replace(/\.glb$/i,``),a=r.replace(/^\/public\//,`/`);n.push({id:i,name:e.replace(/\.glb$/i,``).replace(/[-_]/g,` `),file:a,frames:1,frameWidth:0,frameHeight:0,kind:`dev`,builtin:!0,applied:!1,hint:`设备实体(拖入场景生成数字孪生)`})}}catch{}let r=(e=!0)=>{let t=typeof document<`u`?document.cookie.match(/(?:^|;\s*)token=([^;]+)/)?.[1]??``:``,n={},r=t||``;return r&&(n.authorization=`Bearer ${decodeURIComponent(r)}`),e&&(n[`content-type`]=`application/json`),n},i=h({models:e,loaded:!1,loading:!1,error:``,async load(){if(!(i.loading||i.loaded)){i.loading=!0;try{let[e,a]=await Promise.allSettled([fetch(`/api/workshop/assets/character`,{headers:r()}),fetch(`/api/workshop/assets/devices`,{headers:r()})]),o=e.status===`fulfilled`?await e.value.json().catch(()=>({})):{},s=a.status===`fulfilled`?await a.value.json().catch(()=>({})):{},c=o?.data?.assets??[],l=(s?.data?.devices??[]).map(e=>({id:e.id,name:e.name,file:e.file,frames:1,frameWidth:0,frameHeight:0,kind:`dev`,builtin:!0,applied:!1,hint:`设备实体(拖入场景生成数字孪生)`,hFactor:typeof e.defaultScale==`number`&&e.defaultScale>0?e.defaultScale:1})),u=new Set(t.map(e=>e.file)),d=(s?.data?.characters??[]).filter(e=>!u.has(e.file)).map(e=>({id:e.id,name:e.name,file:e.file,frames:1,frameWidth:0,frameHeight:0,kind:`glb`,builtin:!0,applied:!1,hint:`角色 3D 模型(在频道成员管理中设置)`})),f=[],p=new Set;for(let e of c)f.push(Pe(e)),p.add(e.id);for(let e of l)p.has(e.id)||(f.push(e),p.add(e.id));for(let e of d)p.has(e.id)||(f.push(e),p.add(e.id));for(let e of t)p.has(e.id)||f.push(e);for(let e of n)p.has(e.id)||f.push(e);i.models.splice(0,i.models.length,...f),i.loaded=!0,i.error=``}catch(e){i.loaded=!1,i.error=I(e)}finally{i.loading=!1}}},byId(t){return e.find(e=>e.id===t)},async upload(e,t){let n=new FormData;n.append(`file`,e),n.append(`name`,t.name??e.name.replace(/\.[^.]+$/,``)),n.append(`workspaceId`,t.workspaceId??``),n.append(`kind`,t.kind??`sheet`),n.append(`frameWidth`,String(t.frameWidth??48)),n.append(`frameHeight`,String(t.frameHeight??88)),n.append(`frames`,String(t.frames??4));let a=await fetch(`/api/workshop/assets/character`,{method:`POST`,headers:r(!1),body:n}),o=await a.json().catch(()=>({}));if(!a.ok||!o?.data?.asset)throw Error(o?.message??`上传失败`);return i.loaded=!1,await i.load(),Pe(o.data.asset)},async remove(e){let t=await fetch(`/api/workshop/assets/character/${e}`,{method:`DELETE`,headers:r()}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n?.message??`删除失败`);return i.loaded=!1,await i.load(),{used:n?.data?.used??0}},async uploadDevice(e,t){let n=new FormData;n.append(`file`,e),t&&n.append(`name`,t);let a=await fetch(`/api/workshop/assets/devices`,{method:`POST`,headers:r(!1),body:n}),o=await a.json().catch(()=>({}));if(!a.ok||!o?.data?.asset)throw Error(o?.message??`设备模型上传失败`);i.loaded=!1,await i.load();let s=o.data.asset;return{id:s.id,name:s.name,file:s.file,frames:1,frameWidth:0,frameHeight:0,kind:`dev`,builtin:!1,applied:!1,hint:`设备实体(拖入场景生成数字孪生)`}},async removeDevice(e){let t=e.replace(/^dev-folder-/,``),n=await fetch(`/api/workshop/assets/devices/${encodeURIComponent(t)}`,{method:`DELETE`,headers:r()}),a=await n.json().catch(()=>({}));if(!n.ok)throw Error(a?.message??`设备模型删除失败`);i.loaded=!1,await i.load()},async bind(e,t,n){let i=await fetch(`/api/workshop/channels/${e}/agents/${t}/model`,{method:`PATCH`,headers:r(),body:JSON.stringify({modelRef:n})}),a=await i.json().catch(()=>({}));if(!i.ok)throw Error(a?.message??`绑定失败`)}});return i}function Ie(){let e=globalThis;e[Ne]||(e[Ne]=Fe());let t=e[Ne];return t.load(),t}var Le={key:0,class:`mp-loading`},L={key:1,class:`mp-failed`},R=Object.assign(M(a({__name:`ModelPreview3D`,props:{file:{default:``},localFile:{default:null},height:{default:64}},setup(t){let a=t,o=C(null),c=C(!1),l=C(!1),u=globalThis,d=``;function f(){if(u.__modelPreviewRig)return u.__modelPreviewRig;let e=new ye({alpha:!0,antialias:!1,powerPreference:`low-power`});e.setPixelRatio(Math.min(window.devicePixelRatio,1.5)),e.toneMapping=4,e.toneMappingExposure=1.15;let t={renderer:e,slots:new Set,raf:0,clock:new ge},n=0,r=()=>{t.raf=requestAnimationFrame(r);let e=t.clock.getDelta();if(n+=e*1e3,n<1e3/30)return;let i=n/1e3;n=0;for(let e of t.slots)!e.canvas.isConnected||!e.visible||(e.group&&(e.group.rotation.y+=i*e.speed),t.renderer.setSize(e.w,e.h,!1),t.renderer.render(e.scene,e.camera),e.ctx.clearRect(0,0,e.w,e.h),e.ctx.drawImage(t.renderer.domElement,0,0,e.w,e.h))};return r(),u.__modelPreviewRig=t,t}function p(){let e=u.__modelPreviewRig;!e||e.slots.size>0||(cancelAnimationFrame(e.raf),e.renderer.dispose(),e.renderer.domElement.remove(),delete u.__modelPreviewRig)}function m(e){try{let t=new F(u.__modelPreviewRig.renderer);e.environment=t.fromScene(new ve,.04).texture,e.environmentIntensity=.55,t.dispose()}catch{}e.add(new Ce(14674431,3813157,1.3));let t=new N(16773855,2.2);t.position.set(3,4,2),e.add(t);let n=new N(4311284,1);n.position.set(-3,1,-2.5),e.add(n)}function h(e){let t=new me().setFromObject(e),n=new _e;t.getSize(n);let r=t.getCenter(new _e),i=2/(Math.max(n.x,Math.max(n.y,n.z))||1);e.scale.setScalar(i),e.position.set(-r.x*i,-r.y*i,-r.z*i)}let _=null;function y(e){if(!o.value||c.value)return;let t=o.value,n=t.clientWidth||120,r=a.height||64,i=f(),s=document.createElement(`canvas`);s.style.width=`100%`,s.style.height=`${r}px`,s.width=Math.max(2,Math.round(n*Math.min(window.devicePixelRatio,1.5))),s.height=Math.max(2,Math.round(r*Math.min(window.devicePixelRatio,1.5)));let u=s.getContext(`2d`);if(!u){c.value=!0;return}t.appendChild(s);let d=new xe;m(d);let p=new P(38,n/r,.1,100);p.position.set(2.4,1.8,3.1),p.lookAt(0,0,0);let g=new he;d.add(g),_={canvas:s,ctx:u,scene:d,camera:p,group:g,w:s.width,h:s.height,speed:.6,visible:!1,io:null},typeof IntersectionObserver<`u`?(_.io=new IntersectionObserver(e=>{for(let t of e)_&&(_.visible=t.isIntersecting)}),_.io.observe(s)):_.visible=!0,i.slots.add(_),l.value=!0,new Se().load(e,e=>{let t=e.scene;_&&(t.traverse(e=>{let t=e;t.isMesh&&(t.castShadow=!1,t.receiveShadow=!1)}),h(t),_.group.add(t),l.value=!1)},void 0,()=>{l.value=!1,c.value=!0})}function b(){if(d&&URL.revokeObjectURL(d),d=``,_){let e=u.__modelPreviewRig;_.io?.disconnect(),e?.slots.delete(_),_.scene.traverse(e=>{let t=e;if(t.isMesh){t.geometry?.dispose();let e=Array.isArray(t.material)?t.material:[t.material];for(let t of e){for(let e of Object.keys(t)){let n=t[e];n&&n.isTexture&&n.dispose()}t?.dispose()}}}),_.canvas.remove(),_=null,p()}}function S(){if(c.value=!1,a.localFile){d=URL.createObjectURL(a.localFile),y(d);return}a.file&&y(a.file)}return i(S),e(()=>[a.file,a.localFile],()=>{b(),(a.localFile??(a.file?a.file:null))&&ee(()=>S())}),r(b),(e,r)=>(s(),v(`div`,{ref_key:`hostRef`,ref:o,class:`model-preview-3d`,style:n({height:`${t.height}px`})},[E(l)?(s(),v(`div`,Le,[...r[0]||=[g(`span`,{class:`mp-spin`},null,-1)]])):E(c)?(s(),v(`div`,L,` PREVIEW NA `)):x(``,!0)],4))}}),[[`__scopeId`,`data-v-ed056b0a`]]),{__name:`WorkshopTownModelPreview3D`}),Re={class:`asset-lib`},ze={class:`lib-head`},z={class:`head-title`},Be={class:`head-hint`},B={class:`upload-row`},Ve={class:`upload-name`},He={key:0,class:`drop-hint`},Ue={key:1,class:`upload-file-tag`},We={class:`upload-actions`},Ge=[`disabled`],Ke=[`disabled`],qe={key:2,class:`mini-err`},Je={key:3,class:`mini-err`},Ye={class:`lib-grid`},Xe=[`data-model-id`,`title`,`onDragstart`],Ze={key:1,class:`model-img glb dev`},Qe={class:`model-name`},V={class:`model-badge`},H={class:`card-actions`},$e=[`disabled`,`onClick`],et={key:0,class:`lib-note`},tt={key:1,class:`lib-note`},nt={key:0,class:`mini-msg`},rt=Object.assign(M(a({__name:`AssetLibrary`,setup(e){let{t}=le(),n=Ie(),r=m(()=>n.models.filter(e=>e.kind===`dev`)),i=e=>/\.(glb|gltf)$/i.test(e);function a(e,t){e.dataTransfer&&(e.dataTransfer.setData(`application/x-aw-model`,t),e.dataTransfer.setData(`text/plain`,t),e.dataTransfer.effectAllowed=`copy`)}let u=C(!1),d=C(``),f=C(null),p=C(!1),h=e=>{let t=e.target;y(t.files?.[0]??null)},_=e=>{p.value=!1,y(e.dataTransfer?.files?.[0]??null)},y=e=>{if(e&&!/\.(glb|gltf|obj|fbx)$/i.test(e.name)){d.value=`仅支持 .glb/.gltf/.obj/.fbx 模型文件`;return}f.value=e,d.value=``},ee=()=>{f.value=null};async function S(){let e=f.value;if(!e){d.value=t(`assetLibrary.kcjqcaw012`);return}u.value=!0,d.value=``;try{let r=await n.uploadDevice(e);f.value=null,d.value=t(`assetLibrary.k8nv3or016`,{p0:r.name})}catch(e){d.value=I(e)}finally{u.value=!1}}let w=C(``),ne=C(``);async function T(e){w.value=e,ne.value=``;try{await n.removeDevice(e),ne.value=t(`assetLibrary.k8n918k013`)}catch(e){ne.value=I(e)}finally{w.value=``}}return(e,t)=>(s(),v(`aside`,Re,[g(`div`,ze,[g(`span`,z,o(e.$t(`assetLibrary.k7la4x5001`)),1),g(`span`,Be,o(e.$t(`assetLibrary.kulif5b002`)),1)]),g(`div`,{class:c([`upload-box`,{drop:E(p)}]),onDragover:t[0]||=ae(e=>p.value=!0,[`prevent`]),onDragleave:t[1]||=e=>p.value=!1,onDrop:ae(_,[`prevent`])},[g(`label`,B,[g(`input`,{type:`file`,accept:`.glb,.gltf,.obj,.fbx`,class:`file-input`,onChange:h},null,32),g(`span`,Ve,[t[2]||=g(`span`,{class:`i-tabler-plus upload-ico`},null,-1),D(` `+o(E(f)?.name||e.$t(`assetLibrary.k1iiort6010`)),1)])]),E(p)?(s(),v(`span`,He,[t[3]||=g(`span`,{class:`i-tabler-download`},null,-1),D(` `+o(e.$t(`assetLibrary.k5hg6jq003`)),1)])):x(``,!0),E(f)?(s(),v(b,{key:1},[i(E(f).name)?(s(),te(R,{key:0,"local-file":E(f),height:92},null,8,[`local-file`])):(s(),v(`span`,Ue,o(E(f).name)+` (`+o(e.$t(`assetLibrary.k1xz5wvk009`)),1)),g(`div`,We,[g(`button`,{class:`upload-btn go`,disabled:E(u),onClick:S},o(E(u)?e.$t(`assetLibrary.k1ar7n8i005`):e.$t(`assetLibrary.k1hhga4h014`)),9,Ge),g(`button`,{class:`upload-btn`,disabled:E(u),onClick:ee},o(e.$t(`assetLibrary.k3xdnn004`)),9,Ke)])],64)):E(u)?(s(),v(`span`,qe,o(e.$t(`assetLibrary.k1ar7n8i005`)),1)):x(``,!0),E(d)&&!E(f)?(s(),v(`span`,Je,o(E(d)),1)):x(``,!0)],34),g(`div`,Ye,[(s(!0),v(b,null,l(E(r),n=>(s(),v(`div`,{key:n.id,class:`model-card`,"data-model-id":n.id,draggable:`true`,title:n.hint||e.$t(`assetLibrary.katn7lo015`,{p0:n.name}),onDragstart:e=>a(e,n.id)},[i(n.file)?(s(),te(R,{key:0,file:n.file,height:76},null,8,[`file`])):(s(),v(`span`,Ze,[...t[4]||=[g(`span`,{class:`i-tabler-cpu glb-cube`,"aria-hidden":`true`},null,-1)]])),g(`span`,Qe,o(n.name),1),g(`span`,V,o(e.$t(`assetLibrary.k1n32zs0006`)),1),g(`div`,H,[n.file.includes(`/assets/game/devices/`)?(s(),v(`button`,{key:0,class:`card-btn danger`,disabled:E(w)===n.id,onClick:e=>T(n.id)},o(E(w)===n.id?`…`:e.$t(`assetLibrary.k498l011`)),9,$e)):x(``,!0)])],40,Xe))),128)),E(n).loaded?E(r).length===0?(s(),v(`div`,tt,o(e.$t(`assetLibrary.k15527e1008`)),1)):x(``,!0):(s(),v(`div`,et,[t[5]||=g(`span`,{class:`loading-dot`},null,-1),D(` `+o(e.$t(`assetLibrary.k1kq2tmi007`)),1)]))]),E(ne)?(s(),v(`span`,nt,o(E(ne)),1)):x(``,!0)]))}}),[[`__scopeId`,`data-v-3d6a30ed`]]),{__name:`WorkshopAssetLibrary`}),it=[`innerHTML`],at=Object.assign(a({__name:`DaqTemplateIcon`,props:{icon:{}},setup(e){let t=e,n={thermo:`<path d="M10 4a2 2 0 0 1 4 0v9a4 4 0 1 1-4 0V4Z"/><circle cx="12" cy="16.5" r="1.6"/>`,pressure:`<circle cx="12" cy="12" r="8"/><path d="m12 12 3.5-3.5"/><circle cx="12" cy="12" r="1.2"/>`,tension:`<circle cx="12" cy="10" r="4"/><path d="M4 18.5h16M8 18.5V14M16 18.5V14"/><path d="M2.5 10H8M16 10h5.5"/>`,encoder:`<circle cx="12" cy="12" r="8"/><circle cx="12" cy="12" r="2"/><path d="M12 4v3M12 17v3M4 12h3M17 12h3"/>`,camera:`<rect x="3" y="7" width="13" height="10" rx="2"/><path d="m16 11 5-3v8l-5-3"/><circle cx="8" cy="12" r="2.5"/>`,gateway:`<rect x="8" y="11" width="8" height="10" rx="1.5"/><circle cx="12" cy="5.5" r="1.5"/><path d="M12 10V7M8.5 8.5a5 5 0 0 1 7 0M6 6a8.5 8.5 0 0 1 12 0"/>`},r=m(()=>n[t.icon]??n.gateway);return(e,t)=>(s(),v(`svg`,{viewBox:`0 0 24 24`,innerHTML:E(r)},null,8,it))}}),{__name:`WorkshopDaqTemplateIcon`}),ot={class:`twin-panel`},st={class:`twin-head`},ct={class:`twin-kicker`},lt={class:`twin-count`},ut={key:0,class:`twin-error`},U={key:1,class:`twin-empty`},W={key:2,class:`twin-empty`},dt={class:`twin-empty-frame`},ft={class:`twin-empty-title`},pt={class:`twin-empty-sub`},mt={key:3,class:`twin-list`},ht=[`onClick`],gt={class:`twin-row`},_t={class:`twin-model-tag`},vt={class:`twin-idbar`},yt={class:`twin-name`},bt={class:`twin-code`},xt=[`disabled`,`title`,`onClick`],St={key:0,class:`twin-tele`},Ct={key:1,class:`twin-daq`},wt={key:2,class:`twin-dcw`},Tt={class:`dcw-head`},Et={key:0,class:`dcw-src`},Dt={class:`dcw-set`},Ot=[`title`],kt={key:0,class:`dcw-act-at`},At={class:`dcw-win`},G=[`title`],jt={class:`dcw-ctrl`},Mt=[`onUpdate:modelValue`,`step`,`min`,`max`,`placeholder`,`onKeydown`],Nt=[`disabled`,`title`,`onClick`],Pt={key:1,class:`dcw-err`},Ft={key:4,class:`twin-err`},It=Object.assign(M(a({__name:`DeviceTwinPanel`,props:{daqLive:{},dcwLive:{}},emits:[`focus-device`],setup(e){let{t}=le(),a=je(),u=Ae(),d=e=>e.kind===`daq`||(e.modelRef??``).startsWith(`daq-`),f=null;i(()=>{a.load(),f=j(()=>void a.load(),2e3)}),r(()=>{f&&clearInterval(f)});let p=C(``),m=C(``),_=C(``),y=null;async function ee(e){if(_.value!==e.id){_.value=e.id,y&&clearTimeout(y),y=setTimeout(()=>{_.value=``},3e3);return}y&&clearTimeout(y),_.value=``,p.value=e.id,m.value=``;try{await a.remove(e.id)}catch(e){m.value=I(e)}finally{p.value=``}}let te={idle:`var(--hud-amber)`,running:`var(--hud-ok)`,alarm:`var(--hud-danger)`,offline:`var(--hud-dim)`},w={idle:`STANDBY`,running:`RUNNING`,alarm:`ALARM`,offline:`OFFLINE`},ne=e=>e.replace(/[^A-Za-z0-9]/g,``).slice(0,4).toUpperCase()||`DEV`,T=e=>e.replace(/^dev-/,``).replace(/[^a-z0-9]/gi,``).slice(-6).toUpperCase(),re=e=>typeof e==`number`?(Math.round(e*100)/100).toString():String(e),O=e=>`${Number.isFinite(e.lo)?e.lo:`-∞`} ~ ${Number.isFinite(e.hi)?e.hi:`+∞`} ${e.unit}`,k=h({}),oe=h({}),se=C(``);function ce(e){let n=k[e.id];if(n==null||n===``)return;let r=Number(n);if(r<e.lo||r>e.hi){oe[e.id]=t(`deviceTwinPanel.kxddket010`,{p0:e.src===`recipe`?t(`deviceTwinPanel.kq2jssk008`):t(`deviceTwinPanel.k1iwj796009`),p1:O(e)});return}oe[e.id]=``,se.value=e.id,u.write(e.id,r).then(t=>{t.ok||(oe[e.id]=t.message)}).catch(t=>{oe[e.id]=I(t)}).finally(()=>{se.value=``})}return(t,r)=>(s(),v(`aside`,ot,[g(`div`,st,[g(`span`,ct,o(t.$t(`deviceTwinPanel.k7k6evr002`)),1),g(`span`,lt,o(E(a).twins.length),1)]),E(a).error?(s(),v(`div`,ut,o(E(a).error),1)):x(``,!0),E(a).loaded?E(a).twins.length===0?(s(),v(`div`,W,[g(`div`,dt,[g(`div`,ft,o(t.$t(`deviceTwinPanel.k13y2qmg004`)),1),g(`div`,pt,o(t.$t(`deviceTwinPanel.kotf23l005`)),1)])])):(s(),v(`div`,mt,[(s(!0),v(b,null,l(E(a).twins,i=>(s(),v(`button`,{key:i.id,class:c([`twin-card`,{daq:d(i)}]),type:`button`,onClick:e=>t.$emit(`focus-device`,i)},[g(`div`,gt,[g(`span`,_t,o(ne(i.modelRef||i.name)),1),g(`div`,vt,[g(`span`,yt,o(i.name),1),g(`span`,bt,o(d(i)?`DAQ`:T(i.id)),1)]),g(`button`,{class:c([`twin-del`,{armed:E(_)===i.id}]),disabled:E(p)===i.id,title:E(_)===i.id?`再次点击确认删除该设备实例`:`删除该设备实例`,onClick:ae(e=>ee(i),[`stop`])},o(E(_)===i.id?t.$t(`deviceTwinPanel.k44653007`):`✕`),11,xt),g(`span`,{class:c([`twin-state`,`s-${i.state}`])},[g(`i`,{class:`twin-state-dot`,style:n({background:te[i.state]||`var(--hud-dim)`})},null,4),D(` `+o(w[i.state]||i.state),1)],2)]),Object.keys(i.telemetry).length?(s(),v(`div`,St,[(s(!0),v(b,null,l(i.telemetry,(e,t)=>(s(),v(`span`,{key:t,class:`tele-item`},[g(`em`,null,o(t),1),g(`b`,null,o(re(e)),1)]))),128))])):x(``,!0),e.daqLive?.[i.id]?.length?(s(),v(`div`,Ct,[(s(!0),v(b,null,l(e.daqLive[i.id],(e,t)=>(s(),v(`span`,{key:`${e.ch}-${t}`,class:c([`daq-item`,{alarm:e.alarm}])},[g(`em`,null,o(e.ch),1),g(`b`,null,[D(o(e.value),1),g(`i`,null,o(e.unit),1)])],2))),128))])):x(``,!0),e.dcwLive?.[i.id]?.length?(s(),v(`div`,wt,[(s(!0),v(b,null,l(e.dcwLive[i.id],e=>(s(),v(`div`,{key:e.id,class:`dcw-item`},[g(`div`,Tt,[g(`em`,null,[D(o(e.ch),1),e.src===`recipe`?(s(),v(`i`,Et,o(t.$t(`deviceTwinPanel.k48grv006`)),1)):x(``,!0)]),g(`b`,Dt,[D(o(e.value==null?`--`:e.value.toFixed(e.decimals)),1),g(`i`,null,o(e.unit),1)])]),e.readValue!=null||e.lastReadAt?(s(),v(`div`,{key:0,class:`dcw-act`,title:t.$t(`deviceTwinPanel.k9r7d4e030`)},[r[0]||=g(`em`,null,`ACT`,-1),g(`b`,null,[D(o(e.readValue==null?`--`:e.readValue.toFixed(e.decimals)),1),g(`i`,null,o(e.unit),1)]),e.lastReadAt?(s(),v(`i`,kt,o(e.lastReadAt.slice(11,19)),1)):x(``,!0)],8,Ot)):x(``,!0),g(`div`,At,[g(`span`,{title:e.src===`recipe`?`当前运行配方工艺窗口`:`节点全局量程`},o(O(e)),9,G)]),g(`div`,jt,[S(g(`input`,{"onUpdate:modelValue":t=>E(k)[e.id]=t,type:`number`,class:`ctrl-input`,step:10**-e.decimals,min:Number.isFinite(e.lo)?e.lo:void 0,max:Number.isFinite(e.hi)?e.hi:void 0,placeholder:`${Number.isFinite(e.lo)?e.lo:``} ~ ${Number.isFinite(e.hi)?e.hi:``}`,onKeydown:ie(t=>ce(e),[`enter`])},null,40,Mt),[[A,E(k)[e.id],void 0,{number:!0}]]),g(`button`,{class:`ctrl-btn dcw-send`,disabled:E(k)[e.id]==null||E(k)[e.id]===``||E(se)===e.id,title:t.$t(`deviceTwinPanel.k1j04u8001`),onClick:ae(t=>ce(e),[`stop`])},o(E(se)===e.id?`···`:`SET`),9,Nt)]),E(oe)[e.id]?(s(),v(`small`,Pt,o(E(oe)[e.id]),1)):x(``,!0)]))),128))])):x(``,!0)],10,ht))),128))])):(s(),v(`div`,U,o(t.$t(`deviceTwinPanel.kkw7sn5003`)),1)),E(m)?(s(),v(`span`,Ft,o(E(m)),1)):x(``,!0)]))}}),[[`__scopeId`,`data-v-37ad3127`]]),{__name:`WorkshopDeviceTwinPanel`}),Lt=`__sceneLayouts`;function Rt(e=!0){let t=typeof document<`u`?document.cookie.match(/(?:^|;\s*)token=([^;]+)/)?.[1]??``:``,n={};return t&&(n.authorization=`Bearer ${decodeURIComponent(t)}`),e&&(n[`content-type`]=`application/json`),n}function zt(){let e=null,t=e=>new Promise(t=>setTimeout(t,e)),n=h({layouts:{},loaded:!1,loading:!1,error:``,rev:0,async load(){return e||=r().finally(()=>{e=null}),e},byChannel(e){return n.layouts[e]},async save(e,r){n.layouts[e]={channelId:e,x:r.x,z:r.z,radiusX:r.radiusX,radiusZ:r.radiusZ,shape:r.shape??`ellipse`,rotationY:r.rotationY??0,updatedAt:Me()},n.rev++;let i=null;for(let a=0;a<3;a++)try{let t=await fetch(`/api/workshop/scene/layouts/${e}`,{method:`PUT`,headers:Rt(),body:JSON.stringify(r)}),i=await t.json().catch(()=>({}));if(!t.ok||!i?.data?.layout)throw Error(i?.message??`保存频道布局失败`);return n.layouts[e]=i.data.layout,i.data.layout}catch(e){i=e instanceof Error?e:Error(String(e)),a<2&&await t(500*(a+1))}throw i??Error(`保存频道布局失败`)},async remove(e){let t=await fetch(`/api/workshop/scene/layouts/${e}`,{method:`DELETE`,headers:Rt()}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r?.message??`移除频道放置失败`);let i=Object.fromEntries(Object.entries(n.layouts).filter(([t])=>t!==e));n.layouts=i,n.rev++}});async function r(){n.loading=!0;let e=``;try{for(let r=0;r<3;r++)try{let e=await fetch(`/api/workshop/scene/layouts`,{headers:Rt()});if(!e.ok)throw Error(`HTTP ${e.status}`);let t=(await e.json().catch(()=>({})))?.data?.layouts??[],r={};for(let e of t)r[e.channelId]=e;n.layouts=r,n.loaded=!0,n.error=``,n.rev++;return}catch(n){e=I(n),r<2&&await t(400*(r+1))}n.loaded=!1,n.error=e}finally{n.loading=!1}}return n}function Bt(){let e=globalThis;e[Lt]||(e[Lt]=zt());let t=e[Lt];return t.load(),t}function Vt(e){return d()?(T(e),!0):!1}var Ht=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ut=Object.prototype.toString,Wt=e=>Ut.call(e)===`[object Object]`,Gt=()=>{};function Kt(...e){if(e.length!==1)return u(...e);let t=e[0];return typeof t==`function`?_(w(()=>({get:t,set:Gt}))):C(t)}function qt(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var Jt=e=>e();function Yt(e=Jt,t={}){let{initialState:n=`active`}=t,r=Kt(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:_(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function Xt(e){return Array.isArray(e)?e:[e]}function Zt(e){return e||t()}function Qt(t,n,r={}){let{eventFilter:i=Jt,...a}=r;return e(t,qt(i,n),a)}function $t(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=Yt(r,{initialState:i});return{stop:Qt(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function en(e,t=!0,n){Zt(n)?i(e,n):t?e():ee(e)}function tn(t,n,r){return e(t,n,{...r,immediate:!0})}var nn=Ht?window:void 0;Ht&&window.document,Ht&&window.navigator,Ht&&window.location;function rn(e){let t=O(e);return t?.$el??t}function an(...e){let t=[],n=()=>{t.forEach(e=>e()),t.length=0},r=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),i=m(()=>{let t=Xt(O(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),a=tn(()=>[i.value?.map(e=>rn(e))??[nn].filter(e=>e!=null),Xt(O(i.value?e[1]:e[0])),Xt(E(i.value?e[2]:e[1])),O(i.value?e[3]:e[2])],([e,i,a,o])=>{if(n(),!e?.length||!i?.length||!a?.length)return;let s=Wt(o)?{...o}:o;t.push(...e.flatMap(e=>i.flatMap(t=>a.map(n=>r(e,t,n,s)))))},{flush:`post`});return Vt(n),()=>{a(),n()}}var K=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},on=`__vueuse_ssr_handlers__`,sn=cn();function cn(){return on in K||(K[on]=K[on]||{}),K[on]}function q(e,t){return sn[e]||t}function ln(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var un={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},dn=`vueuse-storage`;function fn(t,n,r,i={}){let{flush:a=`pre`,deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:d=nn,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:h}=i,g=(u?y:C)(typeof n==`function`?n():n),_=m(()=>O(t));if(!r)try{r=q(`getDefaultStorage`,()=>nn?.localStorage)()}catch(e){p(e)}if(!r)return g;let v=O(n),b=ln(v),x=i.serializer??un[b],{pause:S,resume:te}=$t(g,e=>T(e),{flush:a,deep:o,eventFilter:f});e(_,()=>E(),{flush:a});let w=!1;d&&s&&(r instanceof Storage?an(d,`storage`,e=>{h&&!w||E(e)},{passive:!0}):an(d,dn,e=>{h&&!w||D(e)})),h?en(()=>{w=!0,E()}):E();function ne(e,t){if(d){let n={key:_.value,oldValue:e,newValue:t,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent(`storage`,n):new CustomEvent(dn,{detail:n}))}}function T(e){try{let t=r.getItem(_.value);if(e==null)ne(t,null),r.removeItem(_.value);else{let n=x.write(e);t!==n&&(r.setItem(_.value,n),ne(t,n))}}catch(e){p(e)}}function re(e){let t=e?e.newValue:r.getItem(_.value);if(t==null)return c&&v!=null&&r.setItem(_.value,x.write(v)),v;if(!e&&l){let e=x.read(t);return typeof l==`function`?l(e,v):b===`object`&&!Array.isArray(e)?{...v,...e}:e}return typeof t==`string`?x.read(t):t}function E(e){if(!(e&&e.storageArea!==r)){if(e&&e.key==null){g.value=v;return}if(!(e&&e.key!==_.value)){S();try{let t=x.write(g.value);(e===void 0||e?.newValue!==t)&&(g.value=re(e))}catch(e){p(e)}finally{e?ee(te):te()}}}}function D(e){E(e.detail)}return g}var pn={class:`town-view`},mn={class:`brand`},hn={class:`brand-sub`},gn=[`aria-label`],_n={class:`seg`},vn=[`disabled`,`title`],yn={class:`nav-right`},bn=[`title`],xn={class:`nav-chip mono nav-fps`},Sn=[`title`],Cn={class:`avatar-fallback`},wn=[`aria-expanded`,`title`],Tn={class:`sheet-btn-t`},En=[`aria-expanded`,`title`],Dn={class:`sheet-btn-t`},On={class:`app`},kn={class:`sheet-hd`},An={class:`sheet-hd-t`},jn={class:`panel`},Mn={class:`panel-hd`},Nn={class:`panel-tag`},Pn={class:`panel`},Fn={class:`panel-hd`},In={class:`panel-tag`},Ln={class:`daq-ctrl`},Rn=[`title`],zn=[`title`],Bn=[`value`],Vn={class:`daq-list`},Hn=[`title`,`onClick`,`onKeydown`],Un={class:`daq-ico`},Wn={class:`daq-meta`},Gn={class:`daq-name`},Kn={class:`daq-code`},qn=[`title`,`onClick`],Jn={class:`daq-count`},Yn={key:0,class:`daq-children`},Xn=[`draggable`,`title`,`onDragstart`,`onClick`],Zn={class:`daq-meta`},Qn={class:`daq-name`},$n={class:`daq-node-sub`},er={class:`node-val mono`},tr={class:`node-dev`},nr={key:0,class:`scene-cur`},rr={key:0,class:`daq-empty-hint`},ir={class:`panel`},ar={class:`panel-hd`},or={class:`panel-tag`},sr={class:`daq-list`},cr=[`title`,`onClick`,`onKeydown`],lr={class:`daq-ico`},ur={class:`daq-meta`},dr={class:`daq-name`},fr={class:`daq-code`},pr=[`title`,`onClick`],mr={class:`daq-count`},hr={key:0,class:`daq-children`},gr=[`draggable`,`title`,`onDragstart`,`onClick`],_r={class:`daq-meta`},vr={class:`daq-name`},yr={class:`daq-node-sub`},br={class:`node-val mono`},xr={class:`node-dev`},Sr={key:0,class:`scene-cur`},Cr={key:0,class:`daq-empty-hint`},wr={class:`panel`},Tr={class:`panel-hd`},Er={class:`panel-tag`},Dr={class:`scene-list`},Or=[`draggable`,`data-channel-id`,`title`,`onDragstart`,`onClick`],kr={class:`scene-meta-wrap`},Ar={class:`scene-name`},jr={class:`scene-meta`},Mr={key:0,class:`scene-cur`},Nr={key:1,class:`scene-add`},Pr={key:0,class:`scene-hint`},Fr={class:`stage-col`},Ir={class:`stage-top`},Lr={class:`vp-title`},Rr={class:`vp-id`},zr={class:`vp-tools`},Br=[`title`],Vr=[`title`],Hr=[`title`],Ur=[`title`],Wr={class:`angle-chip`},Gr=[`value`,`aria-label`],Kr={value:`std`},qr={class:`leaders`},Jr=[`d`,`stroke`],Yr=[`cx`,`cy`,`fill`],Xr={class:`callout-layer`},Zr=[`title`,`onClick`],Qr={class:`co-label`},$r={class:`co-val`},ei={class:`co-range`},ti={class:`kpi-strip`},ni={class:`kpi`},ri={class:`kpi-meta`},ii={class:`kpi-label`},ai={class:`kpi-val`},oi={class:`kpi`},si={class:`kpi-meta`},ci={class:`kpi-label`},li={class:`kpi-val`},ui={class:`kpi`},di={class:`kpi-meta`},fi={class:`kpi-label`},pi={class:`kpi-val`},mi={class:`kpi`},hi={class:`kpi-meta`},gi={class:`kpi-label`},_i={class:`kpi-val`},vi={class:`kpi`},yi={class:`kpi-meta`},bi={class:`kpi-label`},xi={class:`kpi-val`},Si={key:1,class:`empty-hint`},Ci=[`title`],wi={class:`bp-name`},Ti={class:`bp-sub`},Ei={class:`bp-tabs`},Di={class:`bp-row`},Oi={class:`bp-label`},ki={class:`bp-seg`},Ai={class:`bp-row`},ji={class:`bp-label`},Mi={class:`bp-val`},Ni={class:`bp-row`},Pi={class:`bp-label`},Fi={class:`bp-val`},Ii={class:`bp-row`},Li={class:`bp-label`},Ri={class:`bp-val`},zi={class:`bp-hint`},Bi={class:`member-list`},Vi={class:`member-info`},Hi={class:`member-name`},Ui=[`value`,`onChange`],Wi=[`value`],Gi={key:0,class:`bp-hint`},Ki={class:`bp-actions`},qi={key:3,class:`drop-chip`},Ji={key:4,class:`error-chip`},Yi={key:5,"data-hud":`town-loading`,class:`loading-mask`},Xi={class:`loading-text`},Zi=[`aria-expanded`],Qi={class:`dock-toggle-t`},$i={class:`dock-toggle-hint mono`},ea={id:`town-dock-controls`,class:`dock-card`},ta={class:`dock-hd`},na={class:`dock-mode`},ra={class:`ctl-sec`},ia={class:`ctl-row`},aa=[`title`],oa={class:`fps-seg`},sa=[`onClick`],ca={class:`ctl-row`},la=[`title`],ua={class:`fps-seg`},da=[`onClick`],fa={class:`ctl-sec`},pa={class:`ctl-row`},ma={class:`ctl-name`},ha=[`value`],ga={class:`ctl-val`},_a={class:`ctl-row`},va={class:`ctl-name`},ya=[`value`],ba={class:`ctl-val`},xa={class:`ctl-row`},Sa={class:`ctl-name`},Ca=[`value`],wa={class:`ctl-val`},Ta={class:`ctl-row`},Ea=[`title`],Da=[`value`],Oa={class:`ctl-val`},ka={class:`ctl-sec`},Aa={class:`ctl-row`},ja={class:`ctl-name`},Ma={class:`ctl-btns`},Na=[`disabled`,`title`],Pa={class:`dock-card`},Fa={class:`dock-hd`},Ia={class:`dock-count mono`},La=[`onClick`],Ra=[`title`],za={class:`trend-wrap`},Ba={key:0,class:`trend-empty`},Va={class:`sheet-hd`},Ha={class:`sheet-hd-t`},Ua={key:0,class:`panel inspector`},Wa={class:`panel-hd`},Ga=[`title`],Ka={class:`ins-chip-row`},qa={class:`ins-chip mono`},Ja={key:0,class:`ins-chip accent`},Ya={key:1,class:`ins-chip accent`},Xa={key:0,class:`daq-info`},Za={class:`daq-info-row`},Qa={class:`cy`},$a={class:`daq-info-row`},eo={class:`daq-info-row`},to={class:`daq-bind-bar`},no=[`step`,`placeholder`],ro=[`disabled`],io={key:0,class:`dcw-err`},ao={key:1,class:`daq-bind-bar`},oo={value:``},so=[`value`],co=[`disabled`],lo={key:1,class:`daq-info`},uo={class:`daq-info-row`},fo={class:`cy`},po={class:`daq-info-row`},mo={class:`daq-info-row`},ho={key:0,class:`daq-bind-bar`},go={value:``},_o=[`value`],vo=[`disabled`],yo={key:1,class:`daq-node-ctl`},bo={class:`daq-info-row`},xo={class:`daq-th-inputs`},So={class:`daq-info-row`},Co={class:`daq-th-inputs`},wo=[`value`],To=[`value`],Eo={class:`daq-info-row`},Do={class:`daq-th-inputs`},Oo=[`value`],ko=[`value`],Ao={class:`daq-info-row`},jo={class:`daq-info-row`},Mo=[`title`],No={key:2,class:`ins-empty`},Po={class:`obj-row`},Fo={class:`obj-label`},Io=[`placeholder`,`disabled`,`title`],Lo={class:`obj-row`},Ro={class:`obj-label`},zo=[`value`,`disabled`],Bo=[`value`],Vo={class:`sect-hd`},Ho={class:`bind-ico`},Uo={class:`bind-meta`},Wo={class:`bind-label`},Go={class:`bind-val`},Ko=[`title`,`onClick`],qo={key:0,class:`ins-empty`},Jo={key:1,class:`bind-add-wrap`},Yo={key:0,class:`bp-group`},Xo={class:`bp-tpl`},Zo=[`data-node-id`,`title`,`onClick`],Qo={key:0,class:`bp-cur`},$o={key:1,class:`bp-cur`},es={key:0,class:`bp-empty`},ts={class:`sect-hd`},ns={class:`dcw-top`},rs={class:`bind-ico`},is={class:`dcw-id`},as={class:`bind-label`},os={key:0,class:`dcw-tag`},ss={class:`dcw-name`},cs={class:`dcw-cur`},ls=[`title`,`onClick`],us={class:`dcw-win-num`},ds={class:`dcw-win-track`},fs={class:`dcw-win-num`},ps={class:`dcw-write`},ms=[`onUpdate:modelValue`,`step`,`placeholder`,`onKeydown`],hs=[`disabled`,`title`,`onClick`],gs={key:0,class:`dcw-err`},_s={key:2,class:`ins-empty`},vs={key:3,class:`bind-add-wrap`},ys={key:0,class:`bp-group`},bs={class:`bp-tpl`},xs=[`data-node-id`,`title`,`onClick`],Ss={key:0,class:`bp-cur`},Cs={key:1,class:`bp-cur`},ws={key:0,class:`bp-empty`},Ts={class:`xz-seg`},Es={class:`scale-row`},Ds=[`value`],Os={class:`scale-val`},ks={class:`ins-foot`},As={key:5,class:`ins-empty`},js={class:`chat-id-row`},Ms={class:`chat-nameplate`},Ns={class:`chat-name`},Ps={class:`chat-meta`},Fs={key:0,class:`chat-harness`},Is={class:`chat-count`},Ls={class:`obj-row`},Rs={class:`obj-label`},zs=[`value`,`disabled`],Bs=[`value`],Vs={class:`obj-row`},Hs={class:`obj-label`},Us={class:`range-status`},Ws=[`title`],Gs={class:`sect-hd`},Ks={class:`bind-meta`},qs={class:`bind-label`},Js=[`value`,`title`,`onChange`],Ys={value:`auto`},Xs={value:`manual`},Zs=[`title`,`onClick`],Qs={key:0,class:`ins-empty`},$s={key:1,class:`daq-bind-bar`,style:{"margin-bottom":`8px`}},ec={value:`dcw`},tc={value:`daq`},nc={value:``},rc=[`value`],ic=[`value`],ac={value:`auto`},oc={value:`manual`},sc=[`disabled`],cc={class:`sect-hd`,style:{color:`var(--hud-amber)`}},lc={class:`approval-detail`},uc=[`onUpdate:modelValue`,`placeholder`],dc={class:`daq-bind-bar`,style:{"margin-top":`5px`}},fc=[`onClick`],pc=[`onClick`],mc={class:`obj-row`},hc={class:`obj-label`},gc={class:`bp-seg`},_c={class:`obj-row`},vc={class:`obj-label`},yc={class:`bp-val`},bc={class:`obj-row`},xc={class:`obj-label`},Sc={class:`bp-val`},Cc={key:4,class:`ins-empty`},wc={class:`sect-hd chat-sect`},Tc=[`title`],Ec={key:0,class:`rpg-note`},Dc={class:`rpg-divider`},Oc={class:`rpg-time`},kc={class:`rpg-bubble`},Ac={class:`rpg-text`},jc={key:2,class:`rpg-divider live`},Mc={class:`rpg-time`},Nc={class:`rpg-bubble`},Pc={class:`rpg-text`},Fc={key:3,class:`rpg-typing`},Ic={class:`ty-label`},Lc={key:4,class:`rpg-note`},Rc={class:`panel`},zc={class:`panel-hd`},Bc={class:`health-body`},Vc={class:`donut-wrap`},Hc={class:`donut-center`},Uc={class:`health-legend`},Wc={class:`hl-row`},Gc={class:`n`},Kc={class:`hl-row`},qc={class:`n`},Jc={class:`hl-row`},Yc={class:`n`},Xc={class:`hl-row`},Zc={class:`n`},Qc={class:`panel`},$c={class:`panel-hd`},el={class:`panel-tag`},tl={class:`panel`},nl={class:`panel-hd`},rl={class:`panel-tag`},il=[`title`],al={class:`alarm-list`},ol={class:`al-body`},sl={class:`al-txt`},cl={class:`al-src`},ll=[`onClick`],ul={key:0,class:`rail-empty`},dl={class:`panel`},fl={class:`panel-hd`},pl={class:`panel-tag`},ml={class:`event-list`},hl={class:`ev-time`},gl=[`title`],_l=[`title`],vl={key:0,class:`rail-empty`},yl={class:`panel`},bl={class:`panel-hd`},xl={class:`mm-body`},Sl=[`title`],Cl={class:`mm-col`},wl=[`title`],Tl=[`title`],El=[`title`],Dl={class:`mm-meta mono`},Ol={class:`statusbar`},kl={class:`sb-stats`},Al={class:`sb-lat mono`},jl={class:`copy`},Ml={key:1,"data-hud":`town-loading`,class:`loading-mask`},Nl={class:`loading-text`},Pl=`aw-town-panel-pos`,Fl=3200,Il=2400,Ll=3e4,Rl=80,zl=120,Bl=104,Vl=8,Hl=1600,Ul=Object.assign(M(a({__name:`TownView`,props:{channelId:{},allChannels:{type:Boolean}},setup(t){let{t:a}=le(),u=t,d=Ee(),_=Te(),{conn:te}=De(),w=ue(),T=Ie(),O=je(),M=Bt(),me=fe(),{isDesktop:he}=we(),N=C(null),ge=C(!1);function _e(e){N.value=N.value===e?null:e}function ve(){N.value=null}function ye(e){e.key===`Escape`&&N.value&&ve()}i(()=>window.addEventListener(`keydown`,ye)),r(()=>window.removeEventListener(`keydown`,ye)),e(he,e=>{e&&(N.value=null,ge.value=!1)});let xe=C(null),P=y(null),Se=y(null),F=y(null),Ce=typeof window<`u`?new URLSearchParams(location.search).get(`render`)!==`2d`:!0,Me=C(!1),Ne=C(0),Pe=C(0),Fe=C(0),Le=C(null),L=C(null),R=C(``),Re=m(()=>te.state===`connecting`),ze=m(()=>d.channels[u.channelId]?.name??``),z=C(`browse`),Be=C(!0),B=C(null),Ve=m(()=>{switch(B.value?.state){case`dirty`:return a(`townView.k3oo50k155`);case`saving`:return a(`townView.k1b38d59156`);case`saved`:return a(`townView.k3n51yk157`);case`error`:return a(`townView.k1b3ayhc158`);default:return``}});function He(){z.value=z.value===`browse`?`edit`:`browse`,F.value?.setMode(z.value),z.value===`browse`&&(Qe(),$e(null)),W.value=!1}let Ue=C(`translate`);function We(e){Ue.value=e,F.value?.setTransformMode(e)}e(()=>[L.value,z.value],([e,t])=>{t===`edit`&&e?.kind===`device`&&F.value?.setTransformMode(Ue.value)});function Ge(e){let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable))return;let n=e.key.toLowerCase();if(e.key===`Escape`){Qe();return}z.value===`edit`&&L.value?.kind===`device`&&(n===`g`?We(`translate`):n===`r`?We(`rotate`):n===`s`?We(`scale`):(e.key===`Delete`||e.key===`Backspace`)&&bt())}function Ke(){Be.value=!Be.value,F.value?.setSnap(Be.value)}function qe(e,t,n,r){let i=t||u.channelId;return i?me.request({method:`PATCH`,url:`/workshop/channels/${i}/agents/${e}/position`,data:{x:n,z:r}}).catch(()=>null):Promise.resolve()}function Je(e,t,n){let r=t||u.channelId;return r?me.request({method:`PATCH`,url:`/workshop/channels/${r}/agents/${e}/range`,data:{range:n}}).catch(()=>null):Promise.resolve()}function Ye(){if(z.value!==`edit`){Ht();return}F.value?.persistAllDevices()}function Xe(e){L.value&&F.value?.setModelScale(L.value.id,e,L.value.kind)}function Ze(e){L.value&&F.value?.persistScale(L.value.kind,L.value.id)}function Qe(){L.value=null}let V=C(null),H=C(null);function $e(e){V.value=e,H.value=e?F.value?.getChannelLayout(e)??null:null}async function et(){if(!V.value||!H.value)return;let e=H.value,t={x:e.x,z:e.z,radiusX:e.radiusX,radiusZ:e.radiusZ,shape:e.shape??`ellipse`,rotationY:e.rotationY??0};try{await M.save(V.value,t),B.value={state:`saved`,at:Date.now()}}catch(e){B.value={state:`error`,at:Date.now()},R.value=I(e)}}async function tt(){if(V.value)try{await M.remove(V.value),F.value?.removeChannel(V.value),$e(null)}catch(e){R.value=I(e)}}function nt(){!V.value||!H.value||(F.value?.updateChannelLayout(V.value,H.value),B.value={state:`dirty`,at:Date.now()})}let it=C(``);function ot(e){let t=F.value;if(t){if(e.placed){t.focusChannel(e.channelId),$e(e.channelId);return}it.value=a(`townView.k7rvbts159`),window.setTimeout(()=>{it.value=``},2600)}}function st(e,t,n){let r=F.value;if(!r)return!1;let i=G().find(t=>t.channelId===e),o=i?.channelName??d.channels[e]?.name??e.slice(0,8),s=i?.agents.length??d.agents[e]?.length??0;return r.getChannelLayout(e)?(it.value=a(`townView.kcyn0191`,{p0:o}),window.setTimeout(()=>{it.value=``},2600),r.focusChannel(e),$e(e),!1):(r.dropChannelOnWorld(t,n,e,o,s),M.save(e,{x:t,z:n,radiusX:Math.max(120,110+s*18),radiusZ:Math.max(80,70+s*14),shape:`ellipse`,rotationY:0}).then(()=>{B.value={state:`saved`,at:Date.now()}}).catch(()=>{B.value={state:`error`,at:Date.now()}}),r.focusChannel(e),!0)}let ct=m(()=>T.models.filter(e=>e.kind===`glb`)),lt=m(()=>T.models.filter(e=>e.kind===`dev`)),ut=C(``),U=C(null),W=C(!1);e(()=>L.value,e=>{if(ut.value=e?.kind===`device`?F.value?.getDeviceName?.(e.id)??``:``,U.value=null,e?.kind===`agent`){let t=F.value?.getAgentRange?.(e.id);U.value=t?{radiusX:t.radiusX,radiusZ:t.radiusZ,shape:t.shape}:null,W.value=F.value?.isRangeDrawing(e.id)??!1}else W.value=!1});let dt=m(()=>{let e=L.value;if(!e||e.kind!==`agent`)return``;let t=F.value?.getAgentRange?.(e.id);return t?`${t.shape===`rect`?a(`townView.k43u0g050`):a(`townView.k414bc049`)} ${Math.round(t.radiusX)} × ${Math.round(t.radiusZ)}`:a(`townView.k1v1icf6160`)});function ft(){let e=L.value;if(!(!e||e.kind!==`agent`)){if(W.value){F.value?.cancelRangeDraw(),W.value=!1;return}F.value?.startRangeDraw(e.id),W.value=!0}}function pt(){!L.value||L.value.kind!==`agent`||!U.value||(F.value?.setAgentRangeScene(L.value.id,U.value),B.value={state:`dirty`,at:Date.now()})}function mt(){!L.value||L.value.kind!==`agent`||F.value?.commitAgentRange(L.value.id)}function ht(){let e=L.value;!e||e.kind!==`agent`||(F.value?.clearAgentRange(e.id),U.value=null,W.value=!1)}function gt(){if(!L.value||L.value.kind!==`device`)return;let e=L.value.id,t=ut.value.trim();t&&(F.value?.renameDevice(e,t),O.update(e,{name:t}).catch(e=>{R.value=I(e)}))}async function _t(e){let t=L.value;if(!t||t.kind!==`agent`)return;let n=t.id,r=d.agents?Object.keys(d.agents).find(e=>(d.agents[e]??[]).some(e=>e.agentId===n)):void 0;if(!r){R.value=a(`townView.kpplr16161`);return}try{await T.bind(r,n,e),F.value?.swapAgentModel(n,e)}catch(e){R.value=I(e)}}async function vt(e){let t=L.value;if(!(!t||t.kind!==`device`)){F.value?.swapDeviceModel(t.id,e);try{await O.update(t.id,{modelRef:e})}catch(e){R.value=I(e)}}}let yt=C(``);function bt(){let e=L.value;if(!(!e||e.kind!==`device`)){if(yt.value!==e.id){yt.value=e.id,window.setTimeout(()=>{yt.value===e.id&&(yt.value=``)},3e3);return}yt.value=``,F.value?.removeDevice(e.id).then(()=>Qe()).catch(e=>{R.value=I(e)})}}let xt=C(`boundary`),St=m(()=>V.value?G().find(e=>e.channelId===V.value)?.agents??[]:[]);async function Ct(e,t){if(V.value)try{await T.bind(V.value,e,t),F.value?.swapAgentModel(e,t)}catch(e){R.value=I(e)}}function wt(e){xt.value=e}let Tt=C(0),Et=m(()=>(Tt.value,Dt().map(e=>({channelId:e,name:d.channels[e]?.name??e.slice(0,8),agentCount:(d.agents[e]??[]).length,placed:F.value?.hasChannel(e)??!1,color:kt(e)}))));function Dt(){let e=[];for(let t of Ot()??[])for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e.includes(u.channelId)||e.push(u.channelId),e}function Ot(){return _.workspaces}function kt(e){return be(e)}function At(e,t){e.dataTransfer&&(e.dataTransfer.setData(`application/x-aw-channel`,t),e.dataTransfer.setData(`text/plain`,t),e.dataTransfer.effectAllowed=`copy`)}function G(){let e=[];for(let[t,n]of Object.entries(d.channels)){let r=(d.agents[t]??[]).map(e=>{let n=e.currentTaskId?(d.tasks[t]??[]).find(t=>t.id===e.currentTaskId):void 0;return{agentId:e.agentId,name:e.name,role:e.role,harness:e.harness,state:e.state,currentTaskId:e.currentTaskId??null,currentTaskTitle:n?.title??null,currentTaskProgress:e.currentTaskProgress??n?.progress??null,modelRef:e.modelRef??null,homeX:e.config?.homeX??null,homeZ:e.config?.homeZ??null,range:e.config?.range??null}});e.push({channelId:t,channelName:n.name,agents:r})}return e}function jt(e){!e||!(`registerModelsFromList`in e)||(`screenToWorld`in e?e.registerModelsFromList(T.models.map(e=>({id:e.id,file:e.file,name:e.name,kind:e.kind,hFactor:e.hFactor??1}))):e.registerModelsFromList(T.models.map(e=>({id:e.id,file:e.file,name:e.name}))))}e(()=>T.models.map(e=>`${e.id}:${e.file}`).join(`|`),()=>jt(P.value));async function Mt(){P.value||!xe.value||(Ce?await Nt():await Pt())}async function Nt(){let e=xe.value;if(!e)return;let[{TownScene3D:t}]=await Promise.all([ce(()=>import(`./B7gZokg82.js`),__vite__mapDeps([0,1,2,3]),import.meta.url)]),n=new t(G(),e);n.resolveTaskAssignee=e=>d.tasks[u.channelId]?.find(t=>t.id===e)?.assigneeId??null,n.devices={async create(e){return{id:(await O.create({name:e.name,modelRef:e.modelRef,kind:e.kind,controls:e.controls,posX:e.posX,posZ:e.posZ,scale:e.scale})).id}},async update(e,t){if(J.nodeById(e)){await J.saveTransform(e,t.posX,t.posZ);return}await O.update(e,t)},async remove(e){if(J.nodeById(e)){await J.removeNode(e);return}await O.remove(e)},async control(e,t,n){return O.control(e,t,n)}},n.agentApi={async updateHome(e,t,n,r){return qe(e,t,n,r)},async updateRange(e,t,n){return Je(e,t,n)}},n.channelApi={async save(e,t){return M.save(e,t)}},P.value=n,jt(n),F.value=n,n.setFpsCap(Number(xf.value)),n.setQualityMode(wf.value),Ft(n),n.on(`select`,e=>{L.value=e}),n.on(`saveState`,e=>{B.value=e}),n.on(`selectChannel`,e=>{$e(e)}),n.on(`channelResized`,e=>{e&&V.value===e.channelId&&(H.value=e.layout)}),n.on(`agentRangeChanged`,e=>{if(e&&L.value?.kind===`agent`&&L.value.id===e.agentId){let t=F.value?.getAgentRange?.(e.agentId);U.value=t?{radiusX:t.radiusX,radiusZ:t.radiusZ,shape:t.shape}:null}}),Me.value=!0,Lt(n),Jf=ru(n),M.load().then(()=>{n.hydrate(G(),Object.values(M.layouts),eu.value),Kt()}).catch(e=>{R.value=a(`townView.k1hmf2ut192`,{p0:I(e)}),window.setTimeout(()=>{M.load()},2500)})}async function Pt(){let e=xe.value;if(!e)return;let[t,{TownScene:n}]=await Promise.all([ce(()=>import(`./BGkumHZ32.js`),[],import.meta.url),ce(()=>import(`./RYFtK4qZ2.js`),__vite__mapDeps([4,5,1,2]),import.meta.url)]),r=new n(G());P.value=r,jt(r),r.resolveTaskAssignee=e=>d.tasks[u.channelId]?.find(t=>t.id===e)?.assigneeId??null;let i=new t.Game({type:t.AUTO,parent:e.id||`town-host`,width:1100,height:700,backgroundColor:`#eceae4`,pixelArt:!0,antialias:!1,roundPixels:!0,powerPreference:`high-performance`,physics:{default:`arcade`,arcade:{gravity:{x:0,y:0},debug:!1}},scale:{mode:t.Scale.FIT,autoCenter:t.Scale.CENTER_BOTH},scene:r});Se.value=i,Ft(r),r.on(`ready`,()=>{Me.value=!0,Lt(r)})}function Ft(e){let t=e;t.on(`fps`,e=>{Ne.value=e}),t.on(`agentCount`,e=>{Pe.value=e}),t.on(`blockCount`,e=>{Fe.value=e,Tt.value++}),t.on(`lastActivity`,e=>{Le.value=e});let n=w.subscribe(t=>{try{if(t.type===`channel.snapshot`){e.rebuild(G()),P.value&&Wt(P.value),u.channelId&&e.focusChannel(u.channelId);return}if(t.type===`device.updated`){O.applyRemote(t.payload),P.value&&Wt(P.value);return}if(t.type===`device.created`){O.load().then(()=>{P.value&&Wt(P.value)});return}if(t.type===`device.deleted`){O.removeRemote(t.payload.id),P.value&&Wt(P.value);return}if(t.type===`scene.layout.saved`||t.type===`scene.layout.removed`){M.load().then(()=>{Gt(P.value),Kt()});return}let n=pe(t)?.bubble;n?.agentId&&Wl(n.agentId,n.kind,n.text,t.at,t.seq),e.handleTownEvent(t)}catch(e){R.value=I(e)}});P._off=n,window.__town={get scene(){return P.value},get game(){return Se.value},buildInput:G,get characterAssets(){return T}}}function Lt(e){if(`screenToWorld`in e){Ut(e);return}zt(e)}let Rt=[];function zt(e){let t=e.game.canvas;if(!t)return;let n=(n,r)=>{let i=e.cameras.main,a=t.getBoundingClientRect(),o=(n-a.left)/a.width,s=(r-a.top)/a.height;return{x:i.worldView.x+o*i.worldView.width,y:i.worldView.y+s*i.worldView.height}},r=!1,i=0,a=0;t.addEventListener(`pointerdown`,e=>{e.button===0&&(r=!0,i=e.clientX,a=e.clientY)});let o=n=>{if(!r)return;let o=e.cameras.main,s=t.getBoundingClientRect(),c=e.game.scale.width/s.width,l=(n.clientX-i)*c/o.zoom,u=(n.clientY-a)*c/o.zoom;o.scrollX-=l,o.scrollY-=u,i=n.clientX,a=n.clientY},s=()=>{r=!1};window.addEventListener(`pointermove`,o),window.addEventListener(`pointerup`,s),Rt.push(()=>window.removeEventListener(`pointermove`,o)),Rt.push(()=>window.removeEventListener(`pointerup`,s)),t.addEventListener(`wheel`,t=>{t.preventDefault();let n=e.cameras.main,r=n.zoom+(t.deltaY<0?.08:-.08);n.setZoom(Math.min(2.4,Math.max(.6,r)))},{passive:!1}),t.addEventListener(`dragover`,e=>{e.preventDefault(),e.dataTransfer.dropEffect=`copy`}),t.addEventListener(`drop`,t=>{t.preventDefault();let r=t.dataTransfer?.getData(`application/x-aw-model`)||t.dataTransfer?.getData(`text/plain`);if(!r)return;let i=n(t.clientX,t.clientY),a=e.dropModelOnWorld(i.x,i.y,r);tn.value=a})}let Vt=null;function Ht(){R.value=a(`townView.kt6xb5p162`),Vt&&clearTimeout(Vt),Vt=setTimeout(()=>{R.value=``},2600)}function Ut(e){let t=e.canvas;if(!t)return;let n=0,r=0,i=0;t.addEventListener(`contextmenu`,e=>e.preventDefault()),t.addEventListener(`mousedown`,e=>{e.button===1&&e.preventDefault()}),t.addEventListener(`pointerdown`,t=>{if(!e.isGizmoBusy?.()){if(t.button===1||t.button===2||t.shiftKey){t.preventDefault(),n=2,r=t.clientX,i=t.clientY;return}t.button===0&&(e.tryStartPointerDrag(t.clientX,t.clientY)||(n=1,r=t.clientX,i=t.clientY))}});let a=t=>{if(e.isGizmoBusy?.())return;if(e.isPointerDragging()){e.movePointerDrag(t.clientX,t.clientY);return}if(!n)return;let a=t.clientX-r,o=t.clientY-i;r=t.clientX,i=t.clientY,n===1?e.orbitBy(a,o):e.panByScreen(a,o)},o=()=>{if(e.isPointerDragging()){e.endPointerDrag();return}n=0};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o),Rt.push(()=>window.removeEventListener(`pointermove`,a)),Rt.push(()=>window.removeEventListener(`pointerup`,o)),t.addEventListener(`wheel`,t=>{t.preventDefault(),e.zoomBy(t.deltaY>0?.12:-.11)},{passive:!1}),t.addEventListener(`dragover`,e=>{e.preventDefault(),e.dataTransfer.dropEffect=`copy`}),t.addEventListener(`drop`,t=>{t.preventDefault();let n=t.dataTransfer;if(!n)return;if(z.value!==`edit`){Ht();return}let r=n.getData(`application/x-aw-channel`)||n.getData(`text/plain`);if(r&&Et.value.some(e=>e.channelId===r)){let n=e.screenToWorld(t.clientX,t.clientY);st(r,n.x,n.z);return}let i=n.getData(`application/x-aw-daq-node`);if(i){let n=J.nodeById(i);if(n){let r=e.screenToWorld(t.clientX,t.clientY);J.patchNode(i,{posX:Math.round(r.x),posZ:Math.round(r.z)}).then(()=>{if(!n.deviceBindingId){let e=Qu(r.x,r.z,95);e&&Xu(i,e.id)}}).catch(e=>{R.value=I(e)})}return}let a=n.getData(`application/x-aw-dcw-node`);if(a){let n=Y.nodes.find(e=>e.id===a);if(n){let r=e.screenToWorld(t.clientX,t.clientY);Y.patchNode(a,{posX:Math.round(r.x),posZ:Math.round(r.z)}).then(()=>{if(!n.deviceBindingId){let e=Qu(r.x,r.z,95);e&&Y.bindNode(a,e.id).catch(e=>{R.value=I(e)})}P.value&&Wt(P.value)}).catch(e=>{R.value=I(e)})}return}let o=n.getData(`application/x-aw-model`)||n.getData(`text/plain`);if(o){let n=e.screenToWorld(t.clientX,t.clientY),r=e.dropModelOnWorld(n.x,n.z,o);tn.value=r}})}function Wt(e){`syncDevices`in e&&e.syncDevices(eu.value)}e(()=>M.rev,e=>{let t=F.value;!t||!M.loaded||e===0||(t.hydrate(G(),Object.values(M.layouts),eu.value),Kt())});function Gt(e){if(!e||!(`applySceneLayouts`in e))return;let t=e;t.applySceneLayouts(Object.values(M.layouts)),t.rebuild(G())}function Kt(){M.load().finally(()=>{})}function qt(e){let t=F.value;t&&(typeof e.posX==`number`&&typeof e.posZ==`number`&&t.focusTo(e.posX,e.posZ),t.setSelected?.({kind:`device`,id:e.id}))}let Jt=h({});function Yt(){if(!(typeof localStorage>`u`))try{let e=JSON.parse(localStorage.getItem(Pl)||`{}`);for(let t of Object.keys(e))e[t]&&Number.isFinite(e[t].x)&&(Jt[t]=e[t])}catch{}}function Xt(){try{localStorage.setItem(Pl,JSON.stringify(Jt))}catch{}}let Zt=null;function Qt(e,t){let n=e.currentTarget,r=n.closest(`.drag-panel`),i=n.closest(`.town-frame`);if(!r||!i)return;e.preventDefault();let a=r.getBoundingClientRect(),o=i.getBoundingClientRect();r.style.left=`${a.left-o.left}px`,r.style.top=`${a.top-o.top}px`,r.style.bottom=`auto`,r.style.transform=`none`,Jt[t]={x:a.left-o.left,y:a.top-o.top},Zt={frame:i,panel:r,offX:e.clientX-a.left,offY:e.clientY-a.top},document.body.style.userSelect=`none`,document.body.style.cursor=`grabbing`;let s=e=>{let n=Zt;if(!n)return;let r=n.frame.getBoundingClientRect(),i=e.clientX-n.offX-r.left,a=e.clientY-n.offY-r.top,o=n.panel.offsetWidth,s=Math.max(-o+90,Math.min(i,r.width-30)),c=Math.max(4,Math.min(a,r.height-34));n.panel.style.left=`${s}px`,n.panel.style.top=`${c}px`,Jt[t]={x:s,y:c}},c=()=>{Zt=null,document.body.style.userSelect=``,document.body.style.cursor=``,window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,c),Xt()};window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,c)}Yt();let $t=y(null),en=e=>`#${e.toString(16).padStart(6,`0`)}`,tn=y(null),nn=m(()=>{let e=tn.value;return e?e.mode===`rebind`?a(`townView.kgz2nej193`,{p0:e.agentId?.slice(0,8)??a(`townView.k479op189`),p1:e.textureKey}):a(`townView.k5e2460194`,{p0:e.textureKey}):``}),rn=m(()=>{let e=L.value;if(!e||e.kind!==`agent`)return[];let t=Ul.get(e.id);if(!t||t.length===0)return[];let n=q.value.length?q.value[q.value.length-1]?.at??0:0;return t.filter(e=>e.at>n)}),an=m(()=>!L.value||L.value.kind!==`agent`?``:F.value?.getAgentName?.(L.value.id)??a(`townView.k3xdvm125`)),K=m(()=>{let e=L.value;if(!e||e.kind!==`agent`)return null;for(let t of Object.values(d.agents)){let n=(t??[]).find(t=>t.agentId===e.id);if(n)return n}return null}),on=m(()=>K.value?.role===`lead`?`Leader`:`Worker`),sn=m(()=>K.value?.role===`lead`?`LEADER`:`WORKER`),cn=m(()=>{let e=K.value?.state;return a(e===`busy`?`townView.k3n4l5f163`:e===`stopped`?`townView.k3n58d1164`:`townView.k3zcvb115`)}),q=C([]),ln=C(!1),un=new Map,dn=C(null),Ul=h(new Map);function Wl(e,t,n,r,i){let a=typeof r==`number`?r:r?Date.parse(String(r)):Date.now();if(!Number.isFinite(a)||a<=0)return;let o=Ul.get(e);o||(o=[],Ul.set(e,o));let s=o[o.length-1];s&&s.text===n&&Math.abs(a-s.at)<1500||(o.push({id:`live-${i??a}-${o.length}`,agentId:e,text:n,kind:t,at:a,live:!0}),o.length>Rl&&o.splice(0,o.length-Rl))}function Gl(){return typeof document>`u`?``:document.cookie.match(/(?:^|;\s*)token=([^;]+)/)?.[1]??``}function Kl(e){for(let t of Object.keys(d.agents))if((d.agents[t]??[]).some(t=>t.agentId===e))return t}async function ql(e,t,n=!1){let r=un.get(e);if(!n&&r&&Date.now()-r.at<Ll){q.value=r.rows;return}ln.value=!0;try{let n=Gl(),r=`/api/workshop/channels/${t}/events?limit=500&excludeTypes=agent.delta`,i=await(await fetch(r,{headers:n?{authorization:`Bearer ${decodeURIComponent(n)}`}:{}})).json().catch(()=>null),a=i?.data?.items??(Array.isArray(i?.data)?i.data:[]),o=[];for(let t of a){let n=pe(t)?.bubble;if(!n||n.agentId!==e)continue;let r=t.at,i=typeof r==`number`?r:r?Date.parse(String(r)):0;o.push({id:`${String(t.seq??o.length)}-${o.length}`,agentId:n.agentId,text:n.text,kind:n.kind,at:i,live:!1})}o.sort((e,t)=>e.at-t.at),un.set(e,{rows:o,at:Date.now()}),q.value=o}catch{q.value=[]}finally{ln.value=!1}}function Jl(){let e=L.value;if(!e||e.kind!==`agent`)return;let t=Kl(e.id);t&&ql(e.id,t,!0)}e(()=>L.value,e=>{if(!e||e.kind!==`agent`){q.value=[];return}let t=Kl(e.id);t?ql(e.id,t):q.value=[]},{immediate:!0});let Yl=m(()=>{let e=L.value;if(!e||e.kind!==`agent`)return`#35e0a0`;let t=Kl(e.id);return t?be(t)??`#35e0a0`:`#35e0a0`});function Xl(e){switch(e){case`artifact`:return a(`townView.k3w9q9165`);case`delta`:return`……`;case`info`:return a(`townView.k44xa7166`);case`error`:return a(`townView.k3zbgf167`);default:return``}}function Zl(e){if(!e||!Number.isFinite(e)||e<=0)return`--:--:--`;let t=new Date(e);return`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`}e(()=>q.value.length+rn.value.length,async()=>{await ee();let e=dn.value;e&&(e.scrollTop=e.scrollHeight)});let Ql=e=>Y.lines.find(t=>t.id===e)?.color,$l=m(()=>Y.nodes.map(e=>({id:e.id,workspaceId:``,name:e.name,modelRef:`dcw-${e.templateRef.startsWith(`dcw-`)?e.templateRef.slice(4):e.templateRef}`,boundAgentId:null,kind:`daq`,telemetry:{value:e.value??0},desired:{},controls:[],state:e.enabled?e.state===`error`?`alarm`:`running`:`offline`,posX:e.posX,posZ:e.posZ,lineId:e.lineId||void 0,lineColor:e.lineId?Ql(e.lineId):void 0,updatedAt:e.lastWriteAt??e.createdAt}))),eu=m(()=>[...O.twins.filter(e=>!bu(e)),...X.value,...$l.value]),tu=e=>eu.value.find(t=>t.id===e),nu=m(()=>Me.value&&Fe.value===0&&!eu.value.some(e=>typeof e.posX==`number`&&typeof e.posZ==`number`));function ru(e){return j(()=>{O.load().then(()=>{if(P.value===e){e.syncDevices(eu.value);for(let t of e.getDeviceNodes()){let n=tu(t.twinId);n&&e.updateDeviceNode(t.twinId,n.state,n.telemetry)}}})},5e3)}let iu=y([]),J=ke(),Y=Ae(),au=h(Y.templates.map(e=>({id:e.key,name:e.name,code:e.code,ch:e.ch,unit:e.unit,min:e.min,max:e.max,decimals:e.decimals,icon:e.icon})));e(()=>Y.templates,e=>{e?.length&&au.splice(0,au.length,...e.map(e=>({id:e.key,name:e.name,code:e.code,ch:e.ch,unit:e.unit,min:e.min,max:e.max,decimals:e.decimals,icon:e.icon})))},{immediate:!0,deep:!0});let ou=fn(`aw.twin.treeOpen`,{});function su(e){ou.value[e]=!ou.value[e]}let cu=m(()=>{let e=new Map;for(let t of J.nodes){let n=t.templateRef.startsWith(`daq-`)?t.templateRef.slice(4):t.templateRef,r=e.get(n)??[];r.push(t),e.set(n,r)}for(let t of e.values())t.sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}));return e}),lu=m(()=>{let e=new Map;for(let t of Y.nodes){let n=t.templateRef.startsWith(`dcw-`)?t.templateRef.slice(4):t.templateRef,r=e.get(n)??[];r.push(t),e.set(n,r)}for(let t of e.values())t.sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}));return e});async function uu(e){try{let t=(cu.value.get(e.id)?.length??0)+1;await J.createFromTemplate(`daq-${e.id}`,{name:`${e.name} ${String(t).padStart(2,`0`)}`}),ou.value[`daq:${e.id}`]=!0}catch(e){R.value=I(e)}}async function du(e){try{await Y.createFromTemplate(`dcw-${e.id}`,{}),ou.value[`dcw:${e.id}`]=!0}catch(e){R.value=I(e)}}function fu(e,t){e.dataTransfer&&(e.dataTransfer.setData(`application/x-aw-daq-node`,t.id),e.dataTransfer.setData(`text/plain`,t.id),e.dataTransfer.effectAllowed=`copy`)}function pu(e,t){e.dataTransfer&&(e.dataTransfer.setData(`application/x-aw-dcw-node`,t.id),e.dataTransfer.setData(`text/plain`,t.id),e.dataTransfer.effectAllowed=`copy`)}function mu(e){return!J.controller.running||!e.enabled||e.state===`offline`?`offline`:e.state===`alarm`?`alarm`:e.state===`warn`?`warn`:`running`}function hu(e){return!e.enabled||e.state===`error`?`offline`:`running`}let gu=h(Oe.map(e=>({id:e.key,name:e.name,code:e.code,ch:e.ch,unit:e.unit,base:e.base,amp:e.amp,min:e.min,max:e.max,decimals:e.decimals,icon:e.icon})));e(()=>J.templates,e=>{e?.length&&gu.splice(0,gu.length,...e.map(e=>({id:e.key,name:e.name,code:e.code,ch:e.ch,unit:e.unit,base:e.base,amp:e.amp,min:e.min,max:e.max,decimals:e.decimals,icon:e.icon})))},{immediate:!0,deep:!0});let _u=e=>{let t=e.startsWith(`daq-`)?e.slice(4):e;return gu.find(e=>e.id===t)},vu=e=>_u(e.templateRef);function yu(e){return!J.controller.running||!e.enabled?`offline`:e.state===`alarm`?`alarm`:`running`}let bu=e=>e.kind===`daq`||(e.modelRef??``).startsWith(`daq-`),X=m(()=>J.nodes.map(e=>({id:e.id,workspaceId:``,name:e.name,modelRef:`daq-${vu(e)?.id??`unknown`}`,boundAgentId:null,kind:`daq`,telemetry:{value:e.value??0},desired:{},controls:[],state:yu(e),posX:e.posX,posZ:e.posZ,lineId:e.lineId||void 0,lineColor:e.lineId?Ql(e.lineId):void 0,updatedAt:e.lastAt??e.createdAt}))),xu=C(0),Su=new Map,Cu=new Map,wu=null,Tu=!1;function Eu(){Tu||(Tu=!0,setTimeout(()=>{Tu=!1,xu.value++},200))}function Du(e){if(!e.nodeId||typeof e.value!=`number`||!Number.isFinite(e.value))return;let t=e.state??`ok`;Su.set(e.nodeId,{value:e.value,state:t,atMs:Date.parse(e.at??``)||Date.now()});let n=Cu.get(e.nodeId);n||(n=[],Cu.set(e.nodeId,n)),n.push(e.value),n.length>zl&&n.shift();let r=Au.get(e.nodeId);r&&r!==t&&ju(e.nodeId,r,t,e.value),r!==t&&Au.set(e.nodeId,t),Eu()}let Ou=m(()=>{xu.value;let e=new Map;for(let t of J.nodes){let n=vu(t);if(!n)continue;let r=Su.get(t.id),i=r&&(!t.lastAt||r.atMs>=Date.parse(t.lastAt)),a=i?r.value:t.value;if(a==null)continue;let o=i?r.state:t.state;e.set(t.id,{value:a,hist:Cu.get(t.id)??t.hist,phase:0,tpl:n,alarm:o===`alarm`})}return e}),ku=e=>e.value.toFixed(e.tpl.decimals),Au=new Map;function ju(e,t,n,r){let i=J.nodeById(e),o=i?vu(i):null,s=i?.deviceIds??(i?.deviceBindingId?[i.deviceBindingId]:[]),c=(s.length?s.map(e=>O.byId(e)?.name??e.slice(0,8)).join(` / `):null)??i?.name??e.slice(0,8),l=`${r?.toFixed(o?.decimals??2)??`--`} ${o?.unit??``}`;n===`alarm`?gf(a(`townView.k113fir9195`,{p0:c,p1:o?.ch??``,p2:l}),`crit`,c):n===`warn`?gf(a(`townView.k1knv89d196`,{p0:c,p1:o?.ch??``,p2:l}),`warn`,c):t!==`ok`&&n===`ok`&&gf(a(`townView.ksjancw197`,{p0:c,p1:o?.ch??``}),`info`,c)}e(()=>J.nodes.map(e=>`${e.id}:${e.state}`).join(`|`),()=>{for(let e of J.nodes){let t=Au.get(e.id);Au.set(e.id,e.state),!(!t||t===e.state)&&ju(e.id,t,e.state,e.value)}});function Mu(e){return Math.max(0,Math.ceil((Date.parse(e.expiresAt)-Date.now())/1e3))}let Nu=()=>{let e=document.cookie.match(/(?:^|;\s*)token=([^;]+)/)?.[1]??``;return{"content-type":`application/json`,authorization:`Bearer ${decodeURIComponent(e)}`}},Pu=C([]),Fu=C(`dcw`),Iu=C(``),Lu=C(`auto`),Ru=C([]),zu=h({}),Bu=null;async function Vu(){let e=L.value?.id;if(!(L.value?.kind!==`agent`||!e))try{let t=await fetch(`/api/workshop/agent-tools/bindings?agentId=${encodeURIComponent(e)}`,{headers:Nu()}).then(e=>e.json());Pu.value=t.data?.bindings??[]}catch{}}async function Hu(){let e=L.value?.id;if(!(L.value?.kind!==`agent`||!e))try{let t=await fetch(`/api/workshop/agent-tools/approvals?agentId=${encodeURIComponent(e)}`,{headers:Nu()}).then(e=>e.json());Ru.value=t.data?.approvals??[]}catch{}}async function Uu(){!L.value?.id||!Iu.value||(await fetch(`/api/workshop/agent-tools/bindings`,{method:`POST`,headers:Nu(),body:JSON.stringify({agentId:L.value.id,nodeId:Iu.value,kind:Fu.value,mode:Lu.value})}),Iu.value=``,await Vu())}async function Wu(e){await fetch(`/api/workshop/agent-tools/bindings/${e}`,{method:`DELETE`,headers:Nu()}),await Vu()}async function Gu(e,t){await fetch(`/api/workshop/agent-tools/bindings/${e}`,{method:`PATCH`,headers:Nu(),body:JSON.stringify({mode:t})}),await Vu()}async function Ku(e,t){await fetch(`/api/workshop/agent-tools/approvals/${e}/decide`,{method:`POST`,headers:Nu(),body:JSON.stringify({approved:t,comment:zu[e]??``})}),Reflect.deleteProperty(zu,e),await Hu()}e(()=>L.value?.id,e=>{Bu&&=(clearInterval(Bu),null),L.value?.kind===`agent`&&e&&(Vu(),Hu(),Bu=j(()=>{Hu()},1e3))},{immediate:!0}),r(()=>{Bu&&clearInterval(Bu)});function qu(e){return e.kind===`dcw`?Y.nodeById(e.nodeId)?.name??e.nodeId:J.nodeById(e.nodeId)?.name??e.nodeId}let Ju=e=>J.nodeById(e)?.deviceIds?.[0]??J.nodeById(e)?.deviceBindingId??null,Yu=e=>e?J.nodes.filter(t=>(t.deviceIds??(t.deviceBindingId?[t.deviceBindingId]:[])).includes(e)).map(e=>e.id):[];function Xu(e,t){J.bindNode(e,t).catch(e=>{R.value=I(e)})}function Zu(e){J.bindNode(e,null).catch(e=>{R.value=I(e)})}function Qu(e,t,n){let r=null,i=n;for(let n of O.twins){if(bu(n)||typeof n.posX!=`number`||typeof n.posZ!=`number`)continue;let a=Math.hypot(n.posX-e,n.posZ-t);a<i&&(i=a,r=n)}return r}let $u=C(!1),ed=C(!1),td=C(420);function nd(e,t){let n=t.currentTarget,r=n?.closest(`.panel`);if(n&&r){let e=n.getBoundingClientRect().top-r.getBoundingClientRect().top-12;td.value=Math.max(160,Math.round(e))}e===`daq`?$u.value=!$u.value:ed.value=!ed.value}let rd=m(()=>{let e=L.value?.kind===`device`?L.value.id:``,t={};if(!e)return t;for(let n of J.nodes){if(n.deviceBindingId===e)continue;let r=vu(n);r&&(t[r.id]??=[]).push({id:n.id,name:n.name,tpl:r,devName:n.deviceBindingId?O.byId(n.deviceBindingId)?.name??null:null,placed:typeof n.posX==`number`})}return t}),id=m(()=>Object.values(rd.value).reduce((e,t)=>e+t.length,0));function ad(e){let t=L.value?.kind===`device`?L.value.id:``;t&&(Xu(e,t),$u.value=!1)}let od=new Map;function sd(e,t){let n=t;n?od.set(e,n):od.delete(e)}function cd(){for(let[e,t]of od){let n=Ou.value.get(e),r=t.getContext(`2d`);if(!n||!r)continue;let i=t.width,a=t.height;r.clearRect(0,0,i,a);let o=n.hist;if(o.length<2)continue;let s=o[0],c=o[0];for(let e of o)e<s&&(s=e),e>c&&(c=e);let l=Math.max(1e-6,c-s);r.strokeStyle=Bf(e),r.lineWidth=1.4,r.beginPath(),o.forEach((e,t)=>{let n=t/(o.length-1)*(i-2)+1,c=a-2-(e-s)/l*(a-4);t?r.lineTo(n,c):r.moveTo(n,c)}),r.stroke()}}e(()=>J.nodes.map(e=>`${e.id}:${e.posX??``}:${e.posZ??``}:${e.enabled}:${e.state}:${e.deviceBindingId??``}`).join(`|`),()=>{P.value&&Wt(P.value)}),e(()=>Y.nodes.map(e=>`${e.id}:${e.posX??``}:${e.posZ??``}:${e.enabled}:${e.deviceBindingId??``}:${e.value??``}`).join(`|`),()=>{P.value&&Wt(P.value)}),e(()=>J.nodes.map(e=>`${e.id}:${e.deviceBindingId??``}`).join(`|`),()=>{let e=F.value;!e||!(`syncDaqLinks`in e)||e.syncDaqLinks(J.nodes.filter(e=>e.deviceBindingId).map(e=>({daqId:e.id,deviceId:e.deviceBindingId})))});let ld=m(()=>L.value?.kind===`device`&&(ud.value?.modelRef||``).startsWith(`daq-`)),ud=m(()=>L.value?.kind===`device`?tu(L.value?.id)??null:null),dd=m(()=>{let e=L.value?.id;return e?Ou.value.get(e)??null:null}),fd=C(``),pd=m(()=>{let e=L.value?.id;return e?Yu(e).map(e=>{let t=tu(e),n=Ou.value.get(e),r=n?.tpl??_u(t?.modelRef??``);return{daqId:e,name:t?.name??e,ch:r?.ch??a(`townView.k1ef3cls168`),icon:r?.icon??`gateway`,value:n?ku(n):`--`,unit:n?.tpl.unit??r?.unit??``,color:Bf(e)}}):[]}),md=m(()=>{let e=L.value?.id;if(!e)return``;let t=Ju(e);return t?O.twins.find(e=>e.id===t)?.name??t.slice(0,8):``}),hd=e=>e?Y.nodes.filter(t=>t.deviceBindingId===e):[];function gd(e){let t=Y.nodeById(e);if(!t||!t.lineId)return null;let n=Y.lineStateOf(t.lineId);if(!n.active||!n.recipeId)return null;let r=Y.recipes.find(e=>e.id===n.recipeId);return r?r.params.find(t=>t.nodeId===e)??null:null}let _d=m(()=>{let e=L.value?.id;return e?hd(e).map(e=>{let t=e.templateRef.startsWith(`dcw-`)?e.templateRef.slice(4):e.templateRef,n=Y.templates.find(e=>e.key===t),r=gd(e.id);return{dcwId:e.id,name:e.name,ch:n?.ch??t,unit:e.unit,icon:n?.icon??`gateway`,value:e.value,state:e.state,decimals:e.decimals,gMin:e.min,gMax:e.max,rMin:r?.min??null,rMax:r?.max??null}}):[]});function vd(e){let t=gd(e.id);return t&&(t.min!=null||t.max!=null)?{lo:t.min??-1/0,hi:t.max??1/0,src:`recipe`}:{lo:e.min,hi:e.max,src:`global`}}function yd(e){let t=e.rMin??e.gMin,n=e.rMax??e.gMax;return!Number.isFinite(t)||!Number.isFinite(n)||n<=t||e.value==null?50:Math.min(100,Math.max(0,(e.value-t)/(n-t)*100))}let bd=h({}),xd=h({});function Sd(e){let t=bd[e.id];if(t==null||t===``)return;let n=vd(e);if(Number(t)<n.lo||Number(t)>n.hi){xd[e.id]=a(`townView.kbuyve5198`,{p0:n.src===`recipe`?a(`townView.kb251ac190`):a(`townView.k1iwj796179`),p1:Number.isFinite(n.lo)?n.lo:`-∞`,p2:Number.isFinite(n.hi)?n.hi:`+∞`});return}xd[e.id]=``,Y.write(e.id,Number(t)).then(t=>{t.ok||(xd[e.id]=t.message)}).catch(t=>{xd[e.id]=I(t)})}let Cd=e=>{let t=e.startsWith(`dcw-`)?e.slice(4):e;return au.find(e=>e.id===t)},wd=m(()=>{let e=L.value?.kind===`device`?L.value.id:``,t={};if(!e)return t;for(let n of Y.nodes){if(n.deviceBindingId===e)continue;let r=Cd(n.templateRef);r&&(t[r.id]??=[]).push({id:n.id,name:n.name,tpl:r,devName:n.deviceBindingId?O.byId(n.deviceBindingId)?.name??null:null,placed:typeof n.posX==`number`})}return t}),Td=m(()=>Object.values(wd.value).reduce((e,t)=>e+t.length,0));function Ed(e){let t=L.value?.kind===`device`?L.value.id:``;t&&(Y.bindNode(e,t).catch(e=>{R.value=I(e)}),ed.value=!1)}function Dd(e){Y.bindNode(e,null).catch(e=>{R.value=I(e)})}let Od=m(()=>L.value?.kind===`device`&&(tu(L.value?.id)?.modelRef??``).startsWith(`dcw-`)),Z=m(()=>{let e=L.value?.id;return e?Y.nodeById(e)??null:null}),kd=m(()=>{let e=Z.value;return e?vd(e):null}),Ad=m(()=>{let e=Z.value;return e?.deviceBindingId?O.twins.find(t=>t.id===e.deviceBindingId)?.name??e.deviceBindingId.slice(0,8):``}),jd=C(``);function Md(){let e=Z.value;!e||!jd.value||(Y.bindNode(e.id,jd.value).catch(e=>{R.value=I(e)}),jd.value=``)}function Nd(){let e=Z.value;e&&Y.bindNode(e.id,null).catch(e=>{R.value=I(e)})}function Pd(){let e=Z.value;e&&Sd(e)}function Fd(e){if(!e)return`--`;let t=vd(e);return`${Number.isFinite(t.lo)?t.lo:`-∞`} ~ ${Number.isFinite(t.hi)?t.hi:`+∞`} ${e.unit}`}function Id(e){if(!e)return``;let t=vd(e);return`${Number.isFinite(t.lo)?t.lo:``} ~ ${Number.isFinite(t.hi)?t.hi:``}`}let Q=m(()=>{let e=L.value?.id;return e?J.nodeById(e)??null:null}),Ld=C(null);e(Q,e=>{Ld.value=e?e.intervalMs??J.controller.defaultIntervalMs:null},{immediate:!0});function Rd(){let e=Q.value;!e||Ld.value==null||J.patchNode(e.id,{intervalMs:Math.max(120,Math.min(6e4,Math.round(Ld.value)))}).catch(e=>{R.value=I(e)})}function zd(e,t){let n=Number(t);Number.isFinite(n)&&J.patchNode(Q.value.id,{[e]:(e.startsWith(`warn`),n)}).catch(e=>{R.value=I(e)})}let Bd=C(!0);function Vd(e){let t=Ju(e)??e,n=tu(t);n&&(L.value={kind:`device`,id:t,scale:L.value?.scale??1,rotation:L.value?.rotation??0},ut.value=n.name)}let Hd=C(!1);function Ud(){Hd.value=!Hd.value,F.value?.setAutoOrbit(Hd.value)}function Wd(){let e=F.value,t=L.value;if(e){if(!t){R.value=a(`townView.k15tn2fh169`);return}if(t.kind===`device`){let n=e.getDeviceNodes().find(e=>e.twinId===t.id);n&&e.focusTo(n.x,n.z)}else{let n=e.getAgent(t.id);n&&e.focusTo(n.root.position.x,n.root.position.z)}}}let Gd=C({}),Kd=fn(`aw.twin.calloutNear`,1150),qd=m(()=>{let e={};for(let t of X.value){let n=Ou.value.get(t.id);if(!n)continue;let r={ch:n.tpl.ch,value:ku(n),unit:n.tpl.unit,alarm:n.alarm??!1};(e[t.id]??=[]).push(r);let i=Ju(t.id);i&&(e[i]??=[]).push(r)}return e}),Jd=m(()=>{let e={};for(let t of Y.nodes){if(!t.deviceBindingId)continue;let n=t.templateRef.startsWith(`dcw-`)?t.templateRef.slice(4):t.templateRef,r=Y.templates.find(e=>e.key===n),i=vd(t);(e[t.deviceBindingId]??=[]).push({id:t.id,ch:r?.ch??n,name:t.name,unit:t.unit,value:t.value,readValue:t.readValue,lastReadAt:t.lastReadAt,decimals:t.decimals,lo:i.lo,hi:i.hi,src:i.src})}return e}),Yd=C({pos:{x:0,y:0,z:0},target:{x:0,z:0},yaw:0,dolly:1}),Xd=m(()=>{if(!Bd.value)return[];let e=F.value;if(!e)return[];let t=e.getDeviceNodes(),n=tf.value?.clientWidth??1600,r=[];for(let e of X.value){let n=Ou.value.get(e.id);if(!n)continue;let i=Ju(e.id),a=i?t.find(e=>e.twinId===i):t.find(t=>t.twinId===e.id);if(!a)continue;let o=Gd.value[e.id];o&&r.push({t:e,st:n,anchor:a,pos:o})}let i=new Map(r.map(e=>[e.anchor.twinId,e.anchor.topY])),a=new Map;for(let e of r){let t=a.get(e.anchor.twinId)??[];t.push(e),a.set(e.anchor.twinId,t)}let o=[];for(let e of a.values()){e.sort((e,t)=>e.t.id<t.t.id?-1:1);let t=e[0],r=Math.hypot(Yd.value.pos.x-t.anchor.x,Yd.value.pos.y-(i.get(t.anchor.twinId)??60),Yd.value.pos.z-t.anchor.z)<Kd.value,a=Math.min(n-96,Math.max(96,t.pos.x));e.forEach((e,n)=>{let{lo:i,hi:s}=Df(e.st.tpl.min,e.st.tpl.max);o.push({id:e.t.id,x:a,y:t.pos.y-n*Bl,label:`${e.st.tpl.ch} · ${e.anchor.name||e.t.name}`,value:ku(e.st),unit:e.st.tpl.unit,lo:i,hi:s,warn:e.st.alarm??!1,near:r,leader:n===0})})}return o}),Zd=null,Qd=m(()=>O.twins.length),$d=m(()=>O.twins.filter(e=>e.state===`running`).length),ef=de(),tf=C(null),nf=C(`std`);function rf(e){nf.value=e.target.value,F.value?.setViewPreset(nf.value)}function af(){document.fullscreenElement?document.exitFullscreen():tf.value?.requestFullscreen?.()}let of=m(()=>O.twins.filter(e=>e.state===`idle`).length),sf=m(()=>O.twins.filter(e=>e.state===`alarm`).length),cf=m(()=>O.twins.filter(e=>e.state===`offline`).length),lf=m(()=>{let e=O.twins.length;if(!e)return 100;let t=$d.value+of.value;return Math.round(t/e*100)}),uf=m(()=>lf.value>=90?`#35e0a0`:lf.value>=60?`#f6c453`:`#ff6b6b`),df=C(null);function ff(){let e=df.value;if(!e)return;let t=e.getContext(`2d`);if(!t)return;let n=O.twins.length||1,r=[{n:$d.value,color:`#35e0a0`},{n:of.value,color:`#f6c453`},{n:sf.value,color:`#ff6b6b`},{n:cf.value,color:`#3a4a63`}];t.clearRect(0,0,118,118),t.lineWidth=12;let i=-Math.PI/2;for(let e of r){if(!e.n)continue;let r=e.n/n*Math.PI*2;t.beginPath(),t.strokeStyle=e.color,t.arc(59,59,48,i,i+r),t.stroke(),i+=r}}e(lf,()=>ff()),e(()=>O.twins.length,()=>ff()),i(()=>ff());let pf=C([]),mf=0,hf=[a(`townView.k3ng94k170`),a(`townView.k3mi2n0171`),a(`townView.k3ncnxl172`)];function gf(e,t=`warn`,n=`SYSTEM`){let r=new Date,i=[r.getHours(),r.getMinutes(),r.getSeconds()].map(e=>String(e).padStart(2,`0`)).join(`:`);pf.value.unshift({id:++mf,txt:e,src:n,time:i,state:0,level:t}),pf.value.length>30&&pf.value.pop()}let _f=m(()=>pf.value.filter(e=>e.state<2).length);function vf(e){let t=pf.value.find(t=>t.id===e);t&&(t.state=Math.min(2,t.state+1))}function yf(){pf.value=pf.value.map(e=>({...e,state:2}))}let bf=C(100),xf=fn(`aw.twin.fpsCap`,`60`),Sf=[{v:`60`,label:`60`},{v:`120`,label:`120`},{v:`0`,label:`∞`}];function Cf(e){xf.value=e,F.value?.setFpsCap(Number(e))}let wf=fn(`aw.twin.quality`,`auto`),Tf=[{v:`auto`,label:`townView.qualityAuto`},{v:`normal`,label:`townView.qualityNormal`},{v:`hd`,label:`townView.qualityHD`},{v:`ultra`,label:`townView.qualityUltra`}];function Ef(e){wf.value=e,F.value?.setQualityMode(e)}function Df(e,t){let n=bf.value/100,r=(e+t)/2;return{lo:r-(r-e)*n,hi:r+(t-r)*n}}let Of=C(!1);function kf(){Of.value=!Of.value,gf(Of.value?a(`townView.kb157zk173`):a(`townView.k1s9qzr9174`),Of.value?`crit`:`info`,`SYSTEM`)}let Af=C(1.12),jf=C(1);function Mf(e,t,n){return`${Math.min(100,Math.max(0,(e-t)/(n-t)*100)).toFixed(1)}%`}function Nf(e){Af.value=Number(e.target.value)/100,F.value?.setExposure(Af.value)}function Pf(e){jf.value=Number(e.target.value)/100,F.value?.setTerritoryOpacity(jf.value)}function Ff(){F.value?.resetView(),Af.value=1.12,jf.value=1,F.value?.setExposure(1.12),F.value?.setTerritoryOpacity(1)}function If(e){Rf.value={...Rf.value,[e]:!Rf.value[e]}}let Lf=C(null),Rf=C({}),zf=[`#35e0a0`,`#41c8f4`,`#f6c453`,`#a78bfa`,`#ff6b6b`,`#4dd0e1`],Bf=e=>zf[Math.abs(e.split(``).reduce((e,t)=>e*31+t.charCodeAt(0),7))%zf.length]??`#35e0a0`;function Vf(e,t){let n=Rf.value[e];return n==null?(t??X.value.findIndex(t=>t.id===e))<Vl:!n}let Hf=C(!1),Uf=m(()=>Math.max(X.value.length-Vl,0)),Wf=m(()=>Hf.value?X.value:X.value.slice(0,Vl));function Gf(){let e=Lf.value;if(!e)return;let t=Math.min(window.devicePixelRatio,2),n=e.clientWidth,r=e.clientHeight;(e.width!==n*t||e.height!==r*t)&&(e.width=n*t,e.height=r*t);let i=e.getContext(`2d`);if(i){i.setTransform(t,0,0,t,0,0),i.clearRect(0,0,n,r),i.strokeStyle=`rgba(29, 42, 66, 0.6)`,i.lineWidth=1;for(let e=1;e<4;e++){let t=r/4*e;i.beginPath(),i.moveTo(0,t),i.lineTo(n,t),i.stroke()}X.value.forEach((e,t)=>{if(!Vf(e.id,t))return;let a=Ou.value.get(e.id);if(!a)return;let o=Cu.get(e.id)??a.hist;if(o.length<2)return;let s=a.tpl.min,c=a.tpl.max;i.strokeStyle=Bf(e.id),i.lineWidth=1.6,i.beginPath(),o.forEach((e,t)=>{let a=t/119*n,o=r-(e-s)/(c-s)*(r-8)-4;t===0?i.moveTo(a,o):i.lineTo(a,o)}),i.stroke()})}}let Kf=null,qf=null,Jf=null,Yf=null,Xf=C(null),Zf=m(()=>Math.min(5,Math.max(.4,Yd.value.dolly))),$=null;function Qf(e){let t=e.clientWidth||220,n=e.clientHeight||148;return{s:t/(Hl*Zf.value),w:t,h:n}}function $f(){let e=Xf.value,t=$t.value,n=F.value;if(!e)return;let r=Math.min(window.devicePixelRatio||1,2),i=Qf(e);(e.width!==Math.round(i.w*r)||e.height!==Math.round(i.h*r))&&(e.width=Math.round(i.w*r),e.height=Math.round(i.h*r));let a=e.getContext(`2d`);if(!a)return;a.setTransform(r,0,0,r,0,0),a.fillStyle=`#060b13`,a.fillRect(0,0,i.w,i.h);let o=n?.getCameraPose(),s=o?o.target.x:Fl/2,c=o?o.target.z:Il/2,l=i.w/2/i.s,u=i.h/2/i.s,d=(e,t)=>({x:i.w/2+(e-s)*i.s,y:i.h/2+(t-c)*i.s}),f=(e,t,n=60)=>e>s-l-n&&e<s+l+n&&t>c-u-n&&t<c+u+n;a.fillStyle=`rgba(65,200,244,.10)`;for(let e=Math.floor((s-l)/250)*250;e<=s+l;e+=250)for(let t=Math.floor((c-u)/250)*250;t<=c+u;t+=250){let n=d(e,t);a.fillRect(n.x-1,n.y-1,1.6,1.6)}let p=d(0,0),m=d(Fl,Il);a.strokeStyle=`rgba(53,224,160,.35)`,a.lineWidth=1,a.strokeRect(p.x,p.y,m.x-p.x,m.y-p.y);for(let e of t?.blocks??[]){let t=e.x*Fl,n=e.y*Il;if(!f(t,n,400))continue;let r=d(t,n),o=Math.max(4,(e.rx??.03)*Fl*i.s),s=Math.max(3,(e.rz??.03)*Il*i.s);a.strokeStyle=en(e.color),a.globalAlpha=.6,a.lineWidth=1,a.beginPath(),a.ellipse(r.x,r.y,o,s,0,0,Math.PI*2),a.stroke(),a.globalAlpha=.08,a.fillStyle=en(e.color),a.fill(),a.globalAlpha=1}a.strokeStyle=`rgba(65,200,244,.28)`;let h=new Set(J.nodes.filter(e=>e.deviceBindingId).map(e=>e.id));for(let[e,n]of J.nodes.filter(e=>e.deviceBindingId).map(e=>[e.id,e.deviceBindingId])){let r=(t?.devices??[]).find(t=>t.twinId===e),i=(t?.devices??[]).find(e=>e.twinId===n);if(!r||!i)continue;let o=d(r.x*Fl,r.y*Il),s=d(i.x*Fl,i.y*Il);a.beginPath(),a.moveTo(o.x,o.y),a.lineTo(s.x,s.y),a.stroke()}let g=e=>e.x>=7&&e.x<=i.w-7&&e.y>=7&&e.y<=i.h-7?{...e,edge:!1}:{x:Math.min(i.w-7,Math.max(7,e.x)),y:Math.min(i.h-7,Math.max(7,e.y)),edge:!0};for(let e of t?.devices??[]){let t=g(d(e.x*Fl,e.y*Il));if(e.daq)a.globalAlpha=t.edge?.4:1,a.fillStyle=`#35e0a0`,a.beginPath(),a.arc(t.x,t.y,t.edge?1.8:2.4,0,7),a.fill(),!t.edge&&e.twinId&&h.has(e.twinId)&&(a.strokeStyle=`rgba(53,224,160,.5)`,a.beginPath(),a.arc(t.x,t.y,4.4,0,7),a.stroke());else{a.globalAlpha=t.edge?.4:1,a.fillStyle=en(e.color);let n=t.edge?3.6:5.2;a.fillRect(t.x-n/2,t.y-n/2,n,n)}a.globalAlpha=1}for(let e of t?.agents??[]){let t=g(d(e.x*Fl,e.y*Il));a.globalAlpha=t.edge?.35:1,a.fillStyle=en(e.color),a.beginPath(),a.arc(t.x,t.y,t.edge?1.6:2.2,0,7),a.fill(),a.globalAlpha=1}if(o){let e=Math.atan2(-Math.cos(o.yaw),-Math.sin(o.yaw)),t=Math.min(i.w,i.h)*.36;a.fillStyle=`rgba(65,200,244,.14)`,a.strokeStyle=`rgba(65,200,244,.5)`,a.lineWidth=1,a.beginPath(),a.moveTo(i.w/2,i.h/2),a.arc(i.w/2,i.h/2,t,e-.4,e+.4),a.closePath(),a.fill(),a.stroke();let n=d(o.pos.x,o.pos.z);n.x>4&&n.x<i.w-4&&n.y>4&&n.y<i.h-4&&(a.fillStyle=`rgba(255,255,255,.85)`,a.beginPath(),a.arc(n.x,n.y,2.4,0,7),a.fill())}a.fillStyle=`#fff`,a.beginPath(),a.arc(i.w/2,i.h/2,3,0,7),a.fill(),a.strokeStyle=`rgba(255,255,255,.4)`,a.beginPath(),a.arc(i.w/2,i.h/2,5.5,0,7),a.stroke()}function ep(e){F.value?.zoomBy(e.deltaY>0?.14:-.12)}function tp(e){$={lx:e.clientX,ly:e.clientY,moved:!1};try{e.target.setPointerCapture?.(e.pointerId)}catch{}}function np(e){let t=Xf.value,n=F.value;if(!$||!t||!n)return;let r=Qf(t),i=e.clientX-$.lx,a=e.clientY-$.ly;Math.abs(i)+Math.abs(a)>3&&($.moved=!0);let o=i/r.s,s=a/r.s;$.lx=e.clientX,$.ly=e.clientY,n.panWorldBy(o,s)}function rp(e){let t=Xf.value,n=F.value;if($&&!$.moved&&t&&n){let r=t.getBoundingClientRect(),i=Qf(t),a=n.getCameraPose(),o=a.target.x+(e.clientX-r.left-r.width/2)/i.s,s=a.target.z+(e.clientY-r.top-r.height/2)/i.s;n.focusTo(o,s)}$=null}function ip(){let e=P.value;e?.getMinimapState&&($t.value=e.getMinimapState()),$f();let t=F.value;if(t&&(Yd.value=t.getCameraPose(),Bd.value)){let e=t.getDeviceNodes(),n=tf.value?.getBoundingClientRect(),r={};for(let i of X.value){let a=Ju(i.id),o=a?e.find(e=>e.twinId===a):e.find(e=>e.twinId===i.id);if(!o)continue;let s=t.worldToScreen(o.x,(o.topY??92)+26,o.z);s&&n&&(r[i.id]={x:s.x-n.left,y:s.y-n.top})}Gd.value=r}}function ap(){if(document.hidden){Kf&&=(clearInterval(Kf),null),Yf&&=(clearInterval(Yf),null),qf&&=(clearInterval(qf),null);return}Kf||=j(ip,150),Yf||=j(()=>{J.nodes.length&&(Gf(),cd())},200),qf||=j(()=>{let e=P.value;e?.getRecentActivity&&(iu.value=e.getRecentActivity())},400)}return i(()=>{window.addEventListener(`keydown`,Ge),document.addEventListener(`visibilitychange`,ap),J.ensureWsFeed(),J.load(),wu=ue().subscribe(e=>{e.type===`daq.reading`&&Du(e.payload)}),Y.ensureWsFeed(),Y.load(),Kf=j(ip,150),Yf=j(()=>{J.nodes.length&&(Gf(),cd())},200),qf=j(()=>{let e=P.value;e?.getRecentActivity&&(iu.value=e.getRecentActivity())},400)}),r(()=>{window.removeEventListener(`keydown`,Ge);for(let e of Rt)try{e()}catch{}Rt.length=0,document.removeEventListener(`visibilitychange`,ap),Kf&&clearInterval(Kf),Yf&&clearInterval(Yf),qf&&clearInterval(qf),Jf&&clearInterval(Jf),Zd&&clearInterval(Zd),Kf=null,Yf=null,qf=null,Jf=null,Zd=null}),i(()=>{Mt();let e=G();e.length>0&&P.value&&P.value.rebuild(e)}),r(()=>{wu?.();let e=P._off;e?.(),F.value?.dispose(),F.value=null,Se.value?.destroy(!0),Se.value=null,P.value=null}),(e,t)=>{let r=rt,i=at,a=It;return s(),v(`div`,pn,[g(`header`,{class:c([`topnav`,{"sheet-on":E(N)}])},[g(`div`,mn,[t[55]||=re(`<svg class="brand-glyph" viewBox="0 0 32 32" fill="none" aria-hidden="true" data-v-3e78e101><path d="M16 2.5 27.5 9v14L16 29.5 4.5 23V9L16 2.5Z" stroke="#35e0a0" stroke-width="1.6" data-v-3e78e101></path><path d="M16 8.2 22.5 12v8L16 23.8 9.5 20v-8L16 8.2Z" stroke="#41c8f4" stroke-width="1.3" opacity=".85" data-v-3e78e101></path><circle cx="16" cy="16" r="2.4" fill="#35e0a0" data-v-3e78e101></circle><circle cx="25.5" cy="7.5" r="1.6" fill="#41c8f4" data-v-3e78e101></circle></svg>`,1),g(`div`,null,[t[54]||=g(`div`,{class:`brand-name`},[D(` DIGITAL `),g(`em`,null,`TWIN`)],-1),g(`div`,hn,` AGENTWORKSHOP · `+o(e.$t(`townView.klyi8yg127`)),1)])]),g(`nav`,{class:`nav-tabs`,"aria-label":e.$t(`townView.k1c9jyta001`)},[g(`div`,_n,[g(`button`,{class:c({on:E(z)===`browse`}),onClick:t[0]||=e=>E(z)===`edit`&&He()},o(e.$t(`townView.k48dwh027`)),3),g(`button`,{class:c({on:E(z)===`edit`}),onClick:t[1]||=e=>E(z)===`browse`&&He()},o(e.$t(`townView.k45eb0028`)),3)]),g(`button`,{class:`nav-action`,disabled:E(z)!==`edit`,title:E(z)===`edit`?`把全部设备的位置/朝向/缩放写入数据库`:`运行模式只读`,onClick:Ye},o(e.$t(`townView.k1b3bk8t029`)),9,vn),E(B)&&E(B).state!==`idle`?(s(),v(`span`,{key:0,class:c([`save-chip`,`s-${E(B).state}`])},o(E(Ve)),3)):x(``,!0)],8,gn),g(`div`,yn,[g(`span`,{class:c([`nav-chip mono`,{"nav-bell-warn":E(_f)>0}]),title:e.$t(`townView.k1fsi3ir002`)},`◉ `+o(E(_f)),11,bn),g(`span`,xn,o(E(Ne))+` FPS`,1),g(`div`,{class:`avatar-chip nav-user`,title:e.$t(`townView.k1demf38003`)},[g(`div`,Cn,o((E(ef).user?.name??`OP`).slice(0,2).toUpperCase()),1),g(`span`,null,o(E(ef).user?.name||e.$t(`townView.k1pub99m139`)),1)],8,Sn),g(`button`,{type:`button`,class:c([`sheet-btn`,{on:E(N)===`left`}]),"aria-controls":`town-rail-left`,"aria-expanded":E(N)===`left`?`true`:`false`,title:e.$t(`townView.k1k75lzy030`),onClick:t[2]||=e=>_e(`left`)},[t[56]||=g(`svg`,{class:`sheet-ico`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[g(`path`,{d:`M4 6h16M4 12h11M4 18h16`})],-1),g(`span`,Tn,o(e.$t(`townView.k1k75lzy030`)),1)],10,wn),g(`button`,{type:`button`,class:c([`sheet-btn`,{on:E(N)===`right`}]),"aria-controls":`town-rail-right`,"aria-expanded":E(N)===`right`?`true`:`false`,title:e.$t(`townView.k17dkhgd112`),onClick:t[3]||=e=>_e(`right`)},[t[57]||=g(`svg`,{class:`sheet-ico`,viewBox:`0 0 24 24`,"aria-hidden":`true`},[g(`path`,{d:`M20 6H4M20 12H9M20 18H4`})],-1),g(`span`,Dn,o(e.$t(`townView.k17dkhgd112`)),1)],10,En)])],2),g(`div`,On,[g(`aside`,{id:`town-rail-left`,class:c([`rail rail-left`,{"sheet-open":E(N)===`left`}])},[g(`div`,kn,[t[58]||=g(`span`,{class:`sheet-grip`,"aria-hidden":`true`},null,-1),g(`span`,An,o(e.$t(`townView.k1k75lzy030`)),1),g(`button`,{type:`button`,class:`sheet-x`,"aria-label":`关闭`,onClick:ve},` ✕ `)]),g(`section`,jn,[g(`div`,Mn,[g(`h3`,null,o(e.$t(`townView.k1k75lzy030`)),1),g(`span`,Nn,o(E(lt).length),1)]),f(r,{class:`lib-embed`})]),g(`section`,Pn,[g(`div`,Fn,[g(`h3`,null,o(e.$t(`townView.k2gwyas031`)),1),g(`span`,In,o(E(X).length),1)]),g(`div`,Ln,[g(`button`,{class:c([`daq-ctl-btn`,{on:E(J).controller.running}]),title:E(J).controller.running?`暂停全部采集:停止所有启用节点的采样(节点级启停独立)`:`恢复全部采集:仅启用节点恢复采集(手动停用的保持停用)`,onClick:t[4]||=e=>E(J).controllerAction(E(J).controller.running?`pause`:`resume`)},o(E(J).controller.running?e.$t(`townView.k3w3j8f140`):e.$t(`townView.k3n93ed175`)),11,Rn),g(`label`,{class:`daq-ctl-cycle mono`,title:e.$t(`townView.khzlyf5004`)},[D(o(e.$t(`townView.k3xg3w032`))+` `,1),g(`input`,{type:`number`,min:`200`,max:`60000`,step:`100`,value:E(J).controller.defaultIntervalMs,onChange:t[5]||=e=>E(J).controllerAction(`config`,Number(e.target.value))},null,40,Bn),t[59]||=D(`ms `,-1)],8,zn)]),g(`div`,Vn,[(s(!0),v(b,null,l(E(gu),n=>(s(),v(`div`,{key:n.id,class:`daq-group`},[g(`div`,{class:c([`daq-card tpl`,{open:!!E(ou)[`daq:${n.id}`]}]),role:`button`,tabindex:`0`,title:e.$t(`townView.k2tplxp0001`,{p0:n.name,p1:n.ch,p2:n.min,p3:n.max,p4:n.unit}),onClick:e=>su(`daq:${n.id}`),onKeydown:ie(ae(e=>su(`daq:${n.id}`),[`prevent`]),[`enter`])},[t[60]||=g(`span`,{class:`daq-caret`},`▶`,-1),g(`span`,Un,[f(i,{class:`daq-svg`,icon:n.icon},null,8,[`icon`])]),g(`div`,Wn,[g(`span`,Gn,o(n.name),1),g(`span`,Kn,o(n.code),1)]),E(z)===`edit`?(s(),v(`button`,{key:0,class:`daq-add`,title:e.$t(`townView.k2tplxp0002`,{p0:n.name}),onClick:ae(e=>uu(n),[`stop`])},` + `,8,qn)):x(``,!0),g(`span`,Jn,`×`+o(E(cu).get(n.id)?.length??0),1)],42,Hn),E(ou)[`daq:${n.id}`]?(s(),v(`div`,Yn,[(s(!0),v(b,null,l(E(cu).get(n.id)??[],t=>(s(),v(`div`,{key:t.id,class:c([`daq-node`,{placed:typeof t.posX==`number`}]),draggable:E(z)===`edit`,title:typeof t.posX==`number`?e.$t(`townView.k2tplxp0005`):e.$t(`townView.k2tplxp0006`),onDragstart:e=>fu(e,t),onClick:e=>typeof t.posX==`number`&&qt({id:t.id,posX:t.posX,posZ:t.posZ})},[g(`span`,{class:c([`node-dot`,mu(t)])},null,2),g(`div`,Zn,[g(`span`,Qn,o(t.name),1),g(`span`,$n,[g(`span`,er,o(t.value==null?`--`:`${t.value.toFixed(n.decimals)} ${n.unit}`),1),g(`span`,tr,o(t.deviceBindingId?E(O).byId(t.deviceBindingId)?.name??e.$t(`townView.k3own4q148`):e.$t(`townView.k3own4q148`)),1)])]),typeof t.posX==`number`?(s(),v(`span`,nr,`✓`)):x(``,!0)],42,Xn))),128)),E(cu).get(n.id)?.length?x(``,!0):(s(),v(`div`,rr,o(e.$t(`townView.k2tplxp0003`)),1))])):x(``,!0)]))),128))])]),g(`section`,ir,[g(`div`,ar,[g(`h3`,null,o(e.$t(`townView.km7ayhi033`)),1),g(`span`,or,o(E(Y).nodes.length),1)]),g(`div`,sr,[(s(!0),v(b,null,l(E(au),n=>(s(),v(`div`,{key:n.id,class:`daq-group`},[g(`div`,{class:c([`daq-card tpl`,{open:!!E(ou)[`dcw:${n.id}`]}]),role:`button`,tabindex:`0`,title:e.$t(`townView.k2tplxp0001`,{p0:n.name,p1:n.ch,p2:n.min,p3:n.max,p4:n.unit}),onClick:e=>su(`dcw:${n.id}`),onKeydown:ie(ae(e=>su(`dcw:${n.id}`),[`prevent`]),[`enter`])},[t[61]||=g(`span`,{class:`daq-caret`},`▶`,-1),g(`span`,lr,[f(i,{class:`daq-svg`,icon:n.icon},null,8,[`icon`])]),g(`div`,ur,[g(`span`,dr,o(n.name),1),g(`span`,fr,o(n.code),1)]),E(z)===`edit`?(s(),v(`button`,{key:0,class:`daq-add`,title:e.$t(`townView.k2tplxp0002`,{p0:n.name}),onClick:ae(e=>du(n),[`stop`])},` + `,8,pr)):x(``,!0),g(`span`,mr,`×`+o(E(lu).get(n.id)?.length??0),1)],42,cr),E(ou)[`dcw:${n.id}`]?(s(),v(`div`,hr,[(s(!0),v(b,null,l(E(lu).get(n.id)??[],t=>(s(),v(`div`,{key:t.id,class:c([`daq-node`,{placed:typeof t.posX==`number`}]),draggable:E(z)===`edit`,title:typeof t.posX==`number`?e.$t(`townView.k2tplxp0005`):e.$t(`townView.k2tplxp0006`),onDragstart:e=>pu(e,t),onClick:e=>typeof t.posX==`number`&&qt({id:t.id,posX:t.posX,posZ:t.posZ})},[g(`span`,{class:c([`node-dot`,hu(t)])},null,2),g(`div`,_r,[g(`span`,vr,o(t.name),1),g(`span`,yr,[g(`span`,br,o(t.value==null?`--`:`${t.value.toFixed(n.decimals)} ${n.unit}`),1),g(`span`,xr,o(t.deviceBindingId?E(O).byId(t.deviceBindingId)?.name??e.$t(`townView.k3own4q148`):e.$t(`townView.k3own4q148`)),1)])]),typeof t.posX==`number`?(s(),v(`span`,Sr,`✓`)):x(``,!0)],42,gr))),128)),E(lu).get(n.id)?.length?x(``,!0):(s(),v(`div`,Cr,o(e.$t(`townView.k2tplxp0003`)),1))])):x(``,!0)]))),128))])]),g(`section`,wr,[g(`div`,Tr,[g(`h3`,null,o(e.$t(`townView.k1c9n911034`)),1),g(`span`,Er,o(E(Et).length),1)]),g(`div`,Dr,[(s(!0),v(b,null,l(E(Et),t=>(s(),v(`div`,{key:t.channelId,class:c([`scene-row`,{active:t.placed}]),draggable:!t.placed&&E(z)===`edit`,"data-channel-id":t.channelId,title:t.placed?`已在场景中,点击定位`:`拖拽到场景放置`,onDragstart:e=>t.placed?void 0:At(e,t.channelId),onClick:e=>ot(t)},[g(`span`,{class:`scene-ico`,style:n({"--ch":t.color})},null,4),g(`div`,kr,[g(`span`,Ar,o(t.name),1),g(`span`,jr,o(t.agentCount)+` `+o(e.$t(`townView.k1brss7t128`))+` `+o(t.placed?e.$t(`townView.k3n94g3141`):e.$t(`townView.k3os7i3176`)),1)]),t.placed?(s(),v(`span`,Mr,`✓`)):(s(),v(`span`,Nr,`+`))],42,Or))),128)),E(it)?(s(),v(`div`,Pr,o(E(it)),1)):x(``,!0)])])],2),g(`main`,Fr,[g(`div`,{ref_key:`stageRef`,ref:tf,class:`stage`},[g(`div`,{id:`town-host`,ref_key:`hostRef`,ref:xe,class:`town-host`},null,512),t[77]||=g(`div`,{class:`stage-vignette`},null,-1),g(`div`,Ir,[g(`div`,Lr,[g(`h2`,null,o(e.$t(`townView.k1b0z4vr035`)),1),g(`span`,Rr,`CH · `+o(E(ze)||e.$t(`townView.k3lkuz3142`)),1)]),g(`div`,zr,[g(`button`,{class:`vp-tool`,title:e.$t(`townView.k18d6wnb005`),onClick:Wd},[...t[62]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`circle`,{cx:`12`,cy:`12`,r:`7`}),g(`path`,{d:`M12 2v4M12 18v4M2 12h4M18 12h4`})],-1)]],8,Br),g(`button`,{class:c([`vp-tool`,{on:E(Hd)}]),title:e.$t(`townView.k1io51dn006`),onClick:Ud},[...t[63]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`circle`,{cx:`12`,cy:`12`,r:`3.2`}),g(`path`,{d:`M20.5 9a10 10 0 0 1 .3 4.5M3.5 15a10 10 0 0 1-.3-4.5`})],-1)]],10,Vr),g(`button`,{class:c([`vp-tool`,{on:E(Bd)}]),title:e.$t(`townView.k1sgjlq8007`),onClick:t[6]||=e=>Bd.value=!E(Bd)},[...t[64]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M4 8h12l4 4-4 4H4z`}),g(`circle`,{cx:`8.5`,cy:`12`,r:`1.4`})],-1)]],10,Hr),g(`button`,{class:`vp-tool`,title:e.$t(`townView.k3wuf0008`),onClick:af},[...t[65]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5`})],-1)]],8,Ur)])]),g(`div`,Wr,[g(`select`,{value:E(nf),"aria-label":e.$t(`townView.k1k4j5i7009`),onChange:t[7]||=e=>rf(e)},[g(`option`,Kr,o(e.$t(`townView.kv72860036`)),1),t[66]||=g(`option`,{value:`top`},` 俯视 · TOP `,-1),t[67]||=g(`option`,{value:`front`},` 前视 · FRONT `,-1),t[68]||=g(`option`,{value:`side`},` 侧视 · SIDE `,-1)],40,Gr)]),E(Bd)?(s(),v(b,{key:0},[(s(),v(`svg`,qr,[(s(!0),v(b,null,l(E(Xd),e=>S((s(),v(`g`,{key:`ld-${e.id}`,class:c({near:e.near})},[g(`path`,{d:`M ${e.x} ${e.y-8} L ${e.x} ${e.y-2}`,stroke:e.warn?`rgba(246,196,83,.8)`:`rgba(65,200,244,.55)`,"stroke-width":`1.3`,fill:`none`},null,8,Jr),g(`circle`,{cx:e.x,cy:e.y,r:`2.6`,fill:e.warn?`#f6c453`:`#41c8f4`},null,8,Yr)],2)),[[se,e.leader]])),128))])),g(`div`,Xr,[(s(!0),v(b,null,l(E(Xd),r=>(s(),v(`div`,{key:r.id,class:c([`callout`,{warn:r.warn,near:r.near}]),style:n({left:r.x+`px`,top:r.y+`px`}),title:e.$t(`townView.k1ejxiwp010`),onClick:e=>Vd(r.id)},[g(`div`,Qr,[t[69]||=g(`span`,{class:`co-dot`},null,-1),D(o(r.label),1)]),g(`div`,$r,[D(o(r.value),1),g(`small`,null,o(r.unit),1)]),g(`div`,ei,o(e.$t(`townView.k1faqmjb073`))+` `+o(r.lo.toFixed(Math.min(2,(String(r.lo).split(`.`)[1]??``).length+1)))+` – `+o(r.hi.toFixed(Math.min(2,(String(r.hi).split(`.`)[1]??``).length+1))),1)],14,Zr))),128))])],64)):x(``,!0),g(`div`,ti,[g(`div`,ni,[t[70]||=g(`span`,{class:`kpi-ico c1`},[g(`svg`,{class:`kpi-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M4 8.5 12 4l8 4.5v7L12 20l-8-4.5v-7Z`}),g(`path`,{d:`M4 8.5l8 4.5 8-4.5M12 13v7`})])],-1),g(`div`,ri,[g(`div`,ii,o(e.$t(`townView.k1k6xemt037`)),1),g(`div`,ai,[D(o(E(Qd)),1),g(`small`,null,o(e.$t(`townView.k49lh038`)),1)])])]),g(`div`,oi,[t[71]||=g(`span`,{class:`kpi-ico c2`},[g(`svg`,{class:`kpi-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})])],-1),g(`div`,si,[g(`div`,ci,o(e.$t(`townView.k1l1a9t2039`)),1),g(`div`,li,[D(o(E($d)),1),g(`small`,null,o(e.$t(`townView.k49lh038`)),1)])])]),g(`div`,ui,[t[72]||=g(`span`,{class:`kpi-ico c3`},[g(`svg`,{class:`kpi-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M12 3 22 20H2L12 3Z`}),g(`path`,{d:`M12 10v4M12 17v.2`})])],-1),g(`div`,di,[g(`div`,fi,o(e.$t(`townView.k1fsi3ir002`)),1),g(`div`,pi,[D(o(E(_f)),1),g(`small`,null,o(e.$t(`townView.k4dfq040`)),1)])])]),g(`div`,mi,[t[73]||=re(`<span class="kpi-ico c4" data-v-3e78e101><svg class="kpi-svg" viewBox="0 0 24 24" data-v-3e78e101><path d="M9.5 14.5 14.5 9.5" data-v-3e78e101></path><path d="M11 6.5 12.8 4.7a4 4 0 0 1 5.6 5.6L16.5 12" data-v-3e78e101></path><path d="m13 17.5-1.8 1.8a4 4 0 0 1-5.6-5.6L7.5 12" data-v-3e78e101></path></svg></span>`,1),g(`div`,hi,[g(`div`,gi,o(e.$t(`townView.k1emsai1041`)),1),g(`div`,_i,[D(o(E(X).length),1),g(`small`,null,o(e.$t(`townView.k4l1w042`)),1)])])]),g(`div`,vi,[t[75]||=re(`<span class="kpi-ico c5" data-v-3e78e101><svg class="kpi-svg" viewBox="0 0 24 24" data-v-3e78e101><path d="M5 19a9 9 0 1 1 14 0" data-v-3e78e101></path><path d="M12 13l3.5-3.5" data-v-3e78e101></path><circle cx="12" cy="13" r="1.4" data-v-3e78e101></circle></svg></span>`,1),g(`div`,yi,[g(`div`,bi,o(e.$t(`townView.kbrxdq1043`)),1),g(`div`,xi,[D(o(E(lf)),1),t[74]||=g(`small`,null,`%`,-1)])])])]),E(nu)?(s(),v(`div`,Si,[g(`b`,null,o(e.$t(`townView.k3rwxjc044`)),1),g(`span`,null,o(e.$t(`townView.k1sa1eaj045`)),1)])):x(``,!0),E(V)&&E(H)?(s(),v(`div`,{key:2,class:`boundary-panel drag-panel`,style:n(E(Jt).boundary?{left:E(Jt).boundary.x+`px`,top:E(Jt).boundary.y+`px`,bottom:`auto`,transform:`none`}:void 0)},[g(`div`,{class:`bp-title drag-grip`,title:e.$t(`townView.k1d0rl5z011`),onPointerdown:t[10]||=e=>Qt(e,`boundary`)},[g(`span`,wi,o(E(d).channels[E(V)]?.name??E(V).slice(0,8)),1),g(`span`,Ti,o(e.$t(`townView.k1mehlxs046`)),1),g(`div`,Ei,[g(`button`,{class:c([`bp-tab`,{on:E(xt)===`boundary`}]),onClick:t[8]||=e=>wt(`boundary`)},o(e.$t(`townView.k489ka047`)),3),g(`button`,{class:c([`bp-tab`,{on:E(xt)===`members`}]),onClick:t[9]||=e=>wt(`members`)},o(e.$t(`townView.k3ztf1129`))+` `+o(E(St).length),3)])],40,Ci),E(xt)===`boundary`?(s(),v(b,{key:0},[g(`div`,Di,[g(`span`,Oi,o(e.$t(`townView.k3zhy5048`)),1),g(`div`,ki,[g(`button`,{class:c([`seg-btn`,{on:E(H).shape===`ellipse`}]),onClick:t[11]||=e=>{E(H).shape=`ellipse`,nt()}},o(e.$t(`townView.k414bc049`)),3),g(`button`,{class:c([`seg-btn`,{on:E(H).shape===`rect`}]),onClick:t[12]||=e=>{E(H).shape=`rect`,nt()}},o(e.$t(`townView.k43u0g050`)),3)])]),g(`div`,Ai,[g(`span`,ji,o(e.$t(`townView.k1fbz4s1051`)),1),S(g(`input`,{"onUpdate:modelValue":t[13]||=e=>E(H).radiusX=e,class:`bp-range`,type:`range`,min:`80`,max:`4000`,step:`8`,style:n({"--fill":Mf(E(H).radiusX,80,4e3)}),onChange:nt},null,36),[[A,E(H).radiusX,void 0,{number:!0}]]),g(`span`,Mi,o(Math.round(E(H).radiusX)),1)]),g(`div`,Ni,[g(`span`,Pi,o(e.$t(`townView.k1ighwgs052`)),1),S(g(`input`,{"onUpdate:modelValue":t[14]||=e=>E(H).radiusZ=e,class:`bp-range`,type:`range`,min:`60`,max:`4000`,step:`8`,style:n({"--fill":Mf(E(H).radiusZ,60,4e3)}),onChange:nt},null,36),[[A,E(H).radiusZ,void 0,{number:!0}]]),g(`span`,Fi,o(Math.round(E(H).radiusZ)),1)]),g(`div`,Ii,[g(`span`,Li,o(e.$t(`townView.k40qab053`)),1),S(g(`input`,{"onUpdate:modelValue":t[15]||=e=>E(H).rotationY=e,class:`bp-range`,type:`range`,min:`0`,max:`360`,step:`5`,style:n({"--fill":Mf(E(H).rotationY??0,0,360)}),onChange:nt},null,36),[[A,E(H).rotationY,void 0,{number:!0}]]),g(`span`,Ri,o(Math.round(E(H).rotationY??0))+`°`,1)])],64)):(s(),v(b,{key:1},[g(`div`,zi,o(e.$t(`townView.kimxls2054`)),1),g(`div`,Bi,[(s(!0),v(b,null,l(E(St),e=>(s(),v(`div`,{key:e.agentId,class:`member-row`},[g(`span`,{class:`member-ava`,style:n({color:kt(E(V))})},o(e.name.charAt(0).toUpperCase()),5),g(`div`,Vi,[g(`span`,Hi,o(e.name),1),g(`span`,{class:c([`member-role`,e.role===`lead`?`r-lead`:`r-worker`])},o(e.role===`lead`?`Leader`:`Worker`),3)]),g(`select`,{class:`member-select`,value:(e.modelRef??``)||`hero-3d`,onChange:t=>Ct(e.agentId,t.target.value)},[(s(!0),v(b,null,l(E(ct),e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,Wi))),128))],40,Ui)]))),128)),E(St).length===0?(s(),v(`div`,Gi,o(e.$t(`townView.k419rbs055`)),1)):x(``,!0)])],64)),g(`div`,Ki,[E(xt)===`boundary`?(s(),v(`button`,{key:0,class:`bp-btn save`,onClick:et},o(e.$t(`townView.k1b3kp8f056`)),1)):x(``,!0),g(`button`,{class:`bp-btn danger`,onClick:tt},o(e.$t(`townView.k1hs45qg057`)),1),g(`button`,{class:`bp-btn`,onClick:t[16]||=e=>$e(null)},o(e.$t(`townView.k3x62t058`)),1)])],4)):x(``,!0),E(nn)?(s(),v(`div`,qi,o(E(nn)),1)):x(``,!0),E(R)?(s(),v(`div`,Ji,o(E(R)),1)):x(``,!0),E(Me)?x(``,!0):(s(),v(`div`,Yi,[t[76]||=g(`div`,{class:`loading-spinner`},null,-1),g(`span`,Xi,o(e.$t(`townView.kvjdqfg059`)),1)]))],512),g(`div`,{class:c([`dock`,{"dock-open":E(ge)}])},[g(`button`,{type:`button`,class:`dock-toggle`,"aria-controls":`town-dock-controls`,"aria-expanded":E(ge)?`true`:`false`,onClick:t[17]||=e=>ge.value=!E(ge)},[g(`span`,Qi,o(e.$t(`townView.k1c9iq23060`)),1),g(`span`,$i,o(E(z)===`edit`?e.$t(`townView.k1iipfcs143`):e.$t(`townView.k1l147w1177`)),1),t[78]||=g(`span`,{class:`dock-caret`,"aria-hidden":`true`},`▾`,-1)],8,Zi),g(`section`,ea,[g(`div`,ta,[g(`h3`,null,o(e.$t(`townView.k1c9iq23060`)),1),g(`span`,na,o(E(z)===`edit`?e.$t(`townView.k1iipfcs143`):e.$t(`townView.k1l147w1177`)),1)]),g(`p`,ra,o(e.$t(`townView.secRender`)),1),g(`div`,ia,[g(`span`,{class:`ctl-name`,title:e.$t(`townView.qualityTip`)},o(e.$t(`townView.qualityLabel`)),9,aa),g(`div`,oa,[(s(),v(b,null,l(Tf,t=>g(`button`,{key:t.v,class:c({on:E(wf)===t.v}),onClick:e=>Ef(t.v)},o(e.$t(t.label)),11,sa)),64))]),t[79]||=g(`span`,{class:`ctl-val`},null,-1)]),g(`div`,ca,[g(`span`,{class:`ctl-name`,title:e.$t(`townView.fpsCapTip`)},o(e.$t(`townView.fpsCapLabel`)),9,la),g(`div`,ua,[(s(),v(b,null,l(Sf,e=>g(`button`,{key:e.v,class:c({on:E(xf)===e.v}),onClick:t=>Cf(e.v)},o(e.label),11,da)),64))]),t[80]||=g(`span`,{class:`ctl-val`},null,-1)]),g(`p`,fa,o(e.$t(`townView.secEnv`)),1),g(`div`,pa,[g(`span`,ma,o(e.$t(`townView.k1gizopz061`)),1),g(`input`,{class:`ctl-range`,type:`range`,min:`30`,max:`220`,value:Math.round(E(Af)*100),style:n({"--fill":Mf(Math.round(E(Af)*100),30,220)}),onInput:t[18]||=e=>Nf(e)},null,44,ha),g(`span`,ga,o(Math.round(E(Af)*100))+`%`,1)]),g(`div`,_a,[g(`span`,va,o(e.$t(`townView.k1bcpqto062`)),1),g(`input`,{class:`ctl-range`,type:`range`,min:`10`,max:`100`,value:Math.round(E(jf)*100),style:n({"--fill":Mf(Math.round(E(jf)*100),10,100)}),onInput:t[19]||=e=>Pf(e)},null,44,ya),g(`span`,ba,o(Math.round(E(jf)*100))+`%`,1)]),g(`div`,xa,[g(`span`,Sa,o(e.$t(`townView.k1bztha1063`)),1),g(`input`,{class:`ctl-range`,type:`range`,min:`60`,max:`120`,value:E(bf),style:n({"--fill":Mf(E(bf),60,120)}),onInput:t[20]||=e=>bf.value=Number(e.target.value)},null,44,Ca),g(`span`,wa,o(E(bf))+`%`,1)]),g(`div`,Ta,[g(`span`,{class:`ctl-name`,title:e.$t(`townView.kz71l1f012`)},o(e.$t(`townView.ka4i1s9064`)),9,Ea),g(`input`,{class:`ctl-range`,type:`range`,min:`0`,max:`3000`,step:`50`,value:E(Kd),style:n({"--fill":Mf(E(Kd),0,3e3)}),onInput:t[21]||=e=>Kd.value=Number(e.target.value)},null,44,Da),g(`span`,Oa,o(E(Kd)===0?e.$t(`townView.k493s144`):`${E(Kd)}`),1)]),g(`p`,ka,o(e.$t(`townView.secOps`)),1),g(`div`,Aa,[g(`span`,ja,o(e.$t(`townView.k1idc6pa065`)),1),g(`button`,{class:c([`snap-toggle`,{on:E(Be)}]),onClick:Ke},o(E(Be)?e.$t(`townView.k4bs5145`):e.$t(`townView.k493s144`)),3),t[81]||=g(`span`,{class:`ctl-val`},null,-1)]),g(`div`,Ma,[g(`button`,{class:`btn btn-primary`,onClick:Ff},o(e.$t(`townView.k1lap9bs024`)),1),g(`button`,{class:`btn btn-ghost`,disabled:E(z)!==`edit`,title:E(z)===`edit`?e.$t(`townView.ksavetip181`):e.$t(`townView.krotip182`),onClick:Ye},o(e.$t(`townView.k1b3bk8t029`)),9,Na),g(`button`,{class:c([`btn btn-danger`,{armed:E(Of)}]),onClick:kf},o(e.$t(`townView.k1i046wf066`)),3)])]),g(`section`,Pa,[g(`div`,Fa,[g(`h3`,null,o(e.$t(`townView.k1kfoef9067`)),1),g(`span`,Ia,o(E(X).length),1),g(`div`,{class:c([`trend-legend`,{expanded:E(Hf)}])},[(s(!0),v(b,null,l(E(Wf),e=>(s(),v(`button`,{key:e.id,class:c([`lg-chip`,{off:!Vf(e.id)}]),onClick:t=>If(e.id)},[g(`span`,{class:`lg-dot`,style:n({background:Bf(e.id)})},null,4),D(o(e.name),1)],10,La))),128)),E(Uf)>0?(s(),v(`button`,{key:0,class:`lg-chip lg-more mono`,title:E(Hf)?e.$t(`townView.trendCollapse`):e.$t(`townView.trendExpandAll`,{p0:E(X).length}),onClick:t[22]||=e=>Hf.value=!E(Hf)},o(E(Hf)?e.$t(`townView.trendCollapse`):`+${E(Uf)}`),9,Ra)):x(``,!0)],2)]),g(`div`,za,[g(`canvas`,{ref_key:`trendCanvas`,ref:Lf,class:`trend-cv`},null,512),E(X).length?x(``,!0):(s(),v(`span`,Ba,o(e.$t(`townView.k1uht2uv068`)),1))])])],2)]),g(`aside`,{id:`town-rail-right`,class:c([`rail rail-right`,{"sheet-open":E(N)===`right`}])},[g(`div`,Va,[t[82]||=g(`span`,{class:`sheet-grip`,"aria-hidden":`true`},null,-1),g(`span`,Ha,o(e.$t(`townView.k17dkhgd112`)),1),g(`button`,{type:`button`,class:`sheet-x`,"aria-label":`关闭`,onClick:ve},` ✕ `)]),f(oe,{name:`ins`},{default:ne(()=>[E(L)?(s(),v(`section`,Ua,[g(`div`,Wa,[g(`h3`,null,o(E(L).kind===`device`?E(Od)?e.$t(`townView.k1ekqxlt146`):E(ld)?e.$t(`townView.k1empnnb178`):e.$t(`townView.k1k6wg8j185`):E(on)),1),g(`button`,{class:`mini-btn`,title:e.$t(`townView.k1bsckft013`),onClick:Qe},` ✕ `,8,Ga)]),g(`div`,Ka,[g(`span`,qa,o(E(L).id.slice(0,8)),1),E(L).kind===`device`&&E(ld)?(s(),v(`span`,Ja,`DAQ`)):E(L).kind===`device`&&E(Od)?(s(),v(`span`,Ya,`DCW`)):x(``,!0)]),E(L).kind===`device`?(s(),v(b,{key:0},[E(Od)?(s(),v(`div`,Xa,[g(`div`,Za,[g(`span`,null,o(e.$t(`townView.k1deqh0d069`)),1),g(`b`,Qa,o(E(Z)?.value==null?`--`:E(Z).value.toFixed(E(Z).decimals))+` `+o(E(Z)?.unit),1)]),g(`div`,$a,[g(`span`,null,o(E(kd)?.src===`recipe`?e.$t(`townView.kq2jssk147`):e.$t(`townView.k1iwj796179`)),1),g(`b`,{class:c({amber:E(kd)?.src===`recipe`})},o(Fd(E(Z))),3)]),g(`div`,eo,[g(`span`,null,o(e.$t(`townView.k1i8rtqt070`)),1),g(`b`,null,o(E(Ad)||e.$t(`townView.k3own4q148`)),1)]),g(`div`,to,[S(g(`input`,{"onUpdate:modelValue":t[23]||=e=>E(bd)[E(L).id]=e,type:`number`,class:`bind-select`,step:10**-(E(Z)?.decimals??2),placeholder:Id(E(Z)),onKeydown:ie(Pd,[`enter`])},null,40,no),[[A,E(bd)[E(L).id],void 0,{number:!0}]]),g(`button`,{class:`bind-add-btn`,disabled:E(bd)[E(L).id]==null||E(bd)[E(L).id]===``,onClick:Pd},o(e.$t(`townView.kwrbtn180`)),9,ro)]),E(xd)[E(L).id]?(s(),v(`p`,io,o(E(xd)[E(L).id]),1)):x(``,!0),E(z)===`edit`?(s(),v(`div`,ao,[S(g(`select`,{"onUpdate:modelValue":t[24]||=e=>p(jd)?jd.value=e:null,class:`bind-select`},[g(`option`,oo,o(e.$t(`townView.kjo6ekr071`)),1),(s(!0),v(b,null,l(E(O).twins.filter(e=>!bu(e)&&e.id!==(E(L)?.id??``)),e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,so))),128))],512),[[k,E(jd)]]),g(`button`,{class:`bind-add-btn`,disabled:!E(Ad)&&!E(jd),onClick:t[25]||=e=>E(Ad)?Nd():Md()},o(E(Ad)?e.$t(`townView.k479eh149`):e.$t(`townView.k452a8102`)),9,co)])):x(``,!0)])):E(ld)?(s(),v(`div`,lo,[g(`div`,uo,[g(`span`,null,o(e.$t(`townView.k3mv305072`)),1),g(`b`,fo,o(E(dd)?ku(E(dd)):`--`)+` `+o(E(dd)?.tpl.unit),1)]),g(`div`,po,[g(`span`,null,o(e.$t(`townView.k1faqmjb073`)),1),g(`b`,null,o(E(dd)?.tpl.min)+` ~ `+o(E(dd)?.tpl.max),1)]),g(`div`,mo,[g(`span`,null,o(e.$t(`townView.k1i8rtqt070`)),1),g(`b`,null,o(E(md)||e.$t(`townView.k3own4q148`)),1)]),E(z)===`edit`?(s(),v(`div`,ho,[S(g(`select`,{"onUpdate:modelValue":t[26]||=e=>p(fd)?fd.value=e:null,class:`bind-select`},[g(`option`,go,o(e.$t(`townView.kjo6ekr071`)),1),(s(!0),v(b,null,l(E(O).twins.filter(e=>!bu(e)&&e.id!==(E(L)?.id??``)),e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,_o))),128))],512),[[k,E(fd)]]),g(`button`,{class:`bind-add-btn`,disabled:!E(md)&&!E(fd),onClick:t[27]||=e=>{E(md)?Zu(E(L).id):Xu(E(L).id,E(fd)),fd.value=``}},o(E(md)?e.$t(`townView.k479eh149`):e.$t(`townView.k452a8102`)),9,vo)])):x(``,!0),E(z)===`edit`&&E(Q)?(s(),v(`div`,yo,[g(`div`,bo,[g(`span`,null,o(e.$t(`townView.k1l6g2ga074`)),1),g(`span`,xo,[S(g(`input`,{"onUpdate:modelValue":t[28]||=e=>p(Ld)?Ld.value=e:null,type:`number`,min:`200`,max:`60000`,step:`100`,class:`daq-num`,onChange:Rd},null,544),[[A,E(Ld),void 0,{number:!0}]]),g(`small`,null,o(e.$t(`townView.k1or92b075`)),1)])]),g(`div`,So,[g(`span`,null,o(e.$t(`townView.k3x5tpx076`)),1),g(`span`,Co,[g(`input`,{value:E(Q).warnLow,type:`number`,step:`any`,class:`daq-num`,onChange:t[29]||=e=>zd(`warnLow`,e.target.value)},null,40,wo),t[83]||=D(` ~ `,-1),g(`input`,{value:E(Q).warnHigh,type:`number`,step:`any`,class:`daq-num`,onChange:t[30]||=e=>zd(`warnHigh`,e.target.value)},null,40,To)])]),g(`div`,Eo,[g(`span`,null,o(e.$t(`townView.k1hjj0jf077`)),1),g(`span`,Do,[g(`input`,{value:E(Q).min,type:`number`,step:`any`,class:`daq-num`,onChange:t[31]||=e=>zd(`min`,e.target.value)},null,40,Oo),t[84]||=D(` ~ `,-1),g(`input`,{value:E(Q).max,type:`number`,step:`any`,class:`daq-num`,onChange:t[32]||=e=>zd(`max`,e.target.value)},null,40,ko)])]),g(`div`,Ao,[g(`span`,null,o(e.$t(`townView.k48tki078`)),1),g(`button`,{class:c([`bind-add-btn`,{warn:E(Q).enabled}]),onClick:t[33]||=e=>E(J).patchNode(E(L).id,{enabled:!E(Q).enabled})},o(E(Q).enabled?e.$t(`townView.k1wv0nyo150`):e.$t(`townView.kh1586b180`)),3)]),g(`div`,jo,[g(`span`,null,o(e.$t(`townView.k3xakp079`)),1),g(`button`,{class:`bind-add-btn danger`,title:e.$t(`townView.kpwutri014`),onClick:t[34]||=e=>bt()},o(e.$t(`townView.k1bpp30k080`)),9,Mo)])])):(s(),v(`div`,No,o(e.$t(`townView.kzk5dfx081`)),1))])):(s(),v(b,{key:2},[g(`div`,Po,[g(`span`,Fo,o(e.$t(`townView.k3xhia082`)),1),S(g(`input`,{"onUpdate:modelValue":t[35]||=e=>p(ut)?ut.value=e:null,class:`obj-input`,placeholder:e.$t(`townView.k1k6vbaf015`),disabled:E(z)!==`edit`,title:E(z)===`edit`?`设备名称`:`运行模式只读`,onChange:gt,onKeydown:ie(gt,[`enter`])},null,40,Io),[[A,E(ut)]])]),g(`div`,Lo,[g(`span`,Ro,o(e.$t(`townView.k41amp083`)),1),g(`select`,{class:`obj-select`,value:E(F)?.getDeviceModelRef?.(E(L).id)??``,disabled:E(z)!==`edit`,onChange:t[36]||=e=>vt(e.target.value)},[(s(!0),v(b,null,l(E(lt),e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,Bo))),128))],40,zo)]),g(`div`,Vo,o(e.$t(`townView.k1vtyk05130`))+` `+o(E(pd).length)+` `+o(e.$t(`townView.k3vfpz5138`)),1),(s(!0),v(b,null,l(E(pd),t=>(s(),v(`div`,{key:t.daqId,class:`bind-row`},[g(`span`,Ho,[f(i,{class:`bind-svg`,icon:t.icon},null,8,[`icon`])]),g(`span`,Uo,[g(`span`,Wo,o(t.ch),1),g(`span`,Go,[g(`b`,null,o(t.value),1),D(` `+o(t.unit)+` · `+o(t.name),1)])]),g(`canvas`,{ref_for:!0,ref:e=>sd(t.daqId,e),class:`bind-spark`,width:`56`,height:`20`},null,512),E(z)===`edit`?(s(),v(`button`,{key:0,class:`bind-x`,title:e.$t(`townView.k1k73omv016`),onClick:e=>Zu(t.daqId)},` ✕ `,8,Ko)):x(``,!0)]))),128)),E(pd).length?x(``,!0):(s(),v(`div`,qo,o(e.$t(`townView.kgpuqhb084`)),1)),E(z)===`edit`?(s(),v(`div`,Jo,[g(`button`,{class:`bind-add`,onClick:t[37]||=e=>nd(`daq`,e)},o(e.$t(`townView.kvm0lin085`)),1),E($u)?(s(),v(`div`,{key:0,class:`bind-pop`,style:n({maxHeight:`${E(td)}px`})},[(s(!0),v(b,null,l(E(gu),t=>(s(),v(b,{key:t.id},[E(rd)[t.id]?.length?(s(),v(`div`,Yo,[g(`span`,Xo,o(t.name)+` · `+o(t.ch),1),(s(!0),v(b,null,l(E(rd)[t.id],t=>(s(),v(`button`,{key:t.id,"data-node-id":t.id,title:t.devName?e.$t(`townView.k2bindr0007`,{p0:t.devName}):e.$t(`townView.k2bindr0008`),onClick:e=>ad(t.id)},[f(i,{class:`bind-svg`,icon:t.tpl.icon},null,8,[`icon`]),g(`span`,null,[D(o(t.name),1),t.devName?(s(),v(`i`,Qo,`→ `+o(t.devName),1)):t.placed?x(``,!0):(s(),v(`i`,$o,o(e.$t(`townView.k2bindr0009`)),1))])],8,Zo))),128))])):x(``,!0)],64))),128)),E(id)?x(``,!0):(s(),v(`div`,es,o(e.$t(`townView.k2bindr0010`)),1))],4)):x(``,!0)])):x(``,!0),g(`div`,ts,o(e.$t(`townView.ktzir2t131`))+` `+o(E(_d).length)+` `+o(e.$t(`townView.k4l1w042`)),1),(s(!0),v(b,null,l(E(_d),t=>(s(),v(`div`,{key:t.dcwId,class:`dcw-row`},[g(`div`,ns,[g(`span`,rs,[f(i,{class:`bind-svg`,icon:t.icon},null,8,[`icon`])]),g(`span`,is,[g(`span`,as,[D(o(t.ch),1),t.rMin!=null||t.rMax!=null?(s(),v(`i`,os,o(e.$t(`townView.k48grv086`)),1)):x(``,!0)]),g(`span`,ss,o(t.name),1)]),g(`span`,cs,[g(`b`,null,o(t.value==null?`--`:t.value.toFixed(t.decimals)),1),g(`i`,null,o(t.unit),1)]),E(z)===`edit`?(s(),v(`button`,{key:0,class:`bind-x`,title:e.$t(`townView.k1k73omv016`),onClick:e=>Dd(t.dcwId)},` ✕ `,8,ls)):x(``,!0)]),g(`div`,{class:c([`dcw-win`,{recipe:t.rMin!=null||t.rMax!=null}])},[g(`em`,null,o(t.rMin!=null||t.rMax!=null?e.$t(`townView.k1l3m0hx151`):e.$t(`townView.k1bc6rqf181`)),1),g(`span`,us,o(t.rMin??`-∞`),1),g(`span`,ds,[g(`i`,{style:n({left:`${yd(t)}%`})},null,4)]),g(`span`,fs,o(t.rMax??`+∞`),1)],2),g(`div`,ps,[S(g(`input`,{"onUpdate:modelValue":e=>E(bd)[t.dcwId]=e,type:`number`,step:10**-t.decimals,placeholder:`${t.rMin??t.gMin} ~ ${t.rMax??t.gMax}`,onKeydown:ie(e=>Sd(E(Y).nodeById(t.dcwId)),[`enter`])},null,40,ms),[[A,E(bd)[t.dcwId],void 0,{number:!0}]]),g(`button`,{class:`dcw-send`,disabled:E(bd)[t.dcwId]==null||E(bd)[t.dcwId]===``,title:e.$t(`townView.k15t7izc017`),onClick:e=>Sd(E(Y).nodeById(t.dcwId))},` write `,8,hs)]),E(xd)[t.dcwId]?(s(),v(`small`,gs,o(E(xd)[t.dcwId]),1)):x(``,!0)]))),128)),E(_d).length?x(``,!0):(s(),v(`div`,_s,o(e.$t(`townView.k10smf24087`)),1)),E(z)===`edit`?(s(),v(`div`,vs,[g(`button`,{class:`bind-add`,onClick:t[38]||=e=>nd(`dcw`,e)},o(e.$t(`townView.kvk1vh5088`)),1),E(ed)?(s(),v(`div`,{key:0,class:`bind-pop`,style:n({maxHeight:`${E(td)}px`})},[(s(!0),v(b,null,l(E(au),t=>(s(),v(b,{key:t.id},[E(wd)[t.id]?.length?(s(),v(`div`,ys,[g(`span`,bs,o(t.name)+` · `+o(t.ch),1),(s(!0),v(b,null,l(E(wd)[t.id],t=>(s(),v(`button`,{key:t.id,"data-node-id":t.id,title:t.devName?e.$t(`townView.k2bindr0007`,{p0:t.devName}):e.$t(`townView.k2bindr0008`),onClick:e=>Ed(t.id)},[f(i,{class:`bind-svg`,icon:t.tpl.icon},null,8,[`icon`]),g(`span`,null,[D(o(t.name),1),t.devName?(s(),v(`i`,Ss,`→ `+o(t.devName),1)):t.placed?x(``,!0):(s(),v(`i`,Cs,o(e.$t(`townView.k2bindr0009`)),1))])],8,xs))),128))])):x(``,!0)],64))),128)),E(Td)?x(``,!0):(s(),v(`div`,ws,o(e.$t(`townView.k2bindr0010`)),1))],4)):x(``,!0)])):x(``,!0),E(z)===`edit`?(s(),v(b,{key:4},[t[87]||=g(`div`,{class:`sect-hd`},` 变换 · BLENDER `,-1),g(`div`,Ts,[g(`button`,{class:c([`seg-btn`,{on:E(Ue)===`translate`}]),onClick:t[39]||=e=>We(`translate`)},o(e.$t(`townView.k1hg3167089`)),3),g(`button`,{class:c([`seg-btn`,{on:E(Ue)===`rotate`}]),onClick:t[40]||=e=>We(`rotate`)},o(e.$t(`townView.k1enlg7i090`)),3),g(`button`,{class:c([`seg-btn`,{on:E(Ue)===`scale`}]),onClick:t[41]||=e=>We(`scale`)},o(e.$t(`townView.k1ibjg3j091`)),3)]),g(`div`,Es,[t[85]||=g(`span`,{class:`scale-min`},`0.2×`,-1),g(`input`,{class:`scale-range`,type:`range`,min:`0.2`,max:`5`,step:`0.05`,value:E(L).scale,onInput:t[42]||=e=>Xe(Number(e.target.value)),onChange:t[43]||=e=>Ze(Number(e.target.value))},null,40,Ds),t[86]||=g(`span`,{class:`scale-max`},`5×`,-1)]),g(`div`,Os,o(Math.round(E(L).scale*100))+`% `,1),g(`div`,ks,[g(`button`,{class:c([`btn btn-danger ins-del`,{armed:E(yt)===E(L).id}]),onClick:bt},o(E(yt)===E(L).id?e.$t(`townView.k1w10xa5152`):e.$t(`townView.k121kfef182`)),3)])],64)):(s(),v(`div`,As,o(e.$t(`townView.kt0i3y2092`)),1))],64))],64)):E(L).kind===`agent`?(s(),v(b,{key:1},[g(`div`,js,[g(`span`,{class:`chat-badge`,style:n({"--p-acc":E(Yl)})},o(E(an).slice(0,1).toUpperCase()),5),g(`div`,Ms,[g(`span`,Ns,o(E(an)),1),g(`span`,Ps,[g(`span`,{class:c([`chat-role`,E(K)?.role===`lead`?`r-lead`:`r-worker`])},o(E(sn)),3),g(`span`,{class:c([`chat-state`,`s-${E(K)?.state??`idle`}`])},o(E(cn)),3),E(K)?.harness?(s(),v(`span`,Fs,o(E(K).harness.toUpperCase()),1)):x(``,!0),g(`span`,Is,o(E(q).length+E(rn).length)+` `+o(e.$t(`townView.k4dfq040`)),1)])])]),g(`div`,Ls,[g(`span`,Rs,o(e.$t(`townView.k41amp083`)),1),g(`select`,{class:`obj-select`,value:(E(F)?.getAgentModel?.(E(L).id)??``)||`hero-3d`,disabled:E(z)!==`edit`,onChange:t[44]||=e=>_t(e.target.value)},[(s(!0),v(b,null,l(E(ct),e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,Bs))),128))],40,zs)]),t[91]||=g(`div`,{class:`obj-sep`},null,-1),g(`div`,Vs,[g(`span`,Hs,o(e.$t(`townView.k1fix3hb093`)),1),g(`span`,Us,o(E(dt)),1),E(z)===`edit`?(s(),v(`button`,{key:0,class:c([`obj-mini`,{on:E(W)}]),title:e.$t(`townView.k13enoy3018`),onClick:ft},o(E(W)?e.$t(`townView.k3slzhc153`):e.$t(`townView.k1f1xmci183`)),11,Ws)):x(``,!0)]),t[92]||=g(`div`,{class:`obj-sep`},null,-1),g(`div`,Gs,o(e.$t(`townView.k1p7nru2094`)),1),(s(!0),v(b,null,l(E(Pu),t=>(s(),v(`div`,{key:t.id,class:`bind-row`},[g(`span`,{class:c([`ins-chip`,t.kind===`dcw`?`accent`:``]),style:{flex:`none`}},o(t.kind===`dcw`?e.$t(`townView.k40ifw097`):e.$t(`townView.k40rjw098`)),3),g(`span`,Ks,[g(`span`,qs,o(qu(t)),1),g(`select`,{class:`bind-select`,style:{"margin-top":`3px`},value:t.mode,title:e.$t(`townView.khqvwix019`),onChange:e=>Gu(t.id,e.target.value)},[g(`option`,Ys,o(e.$t(`townView.k1io1ylm095`)),1),g(`option`,Xs,o(e.$t(`townView.k1duyr8q096`)),1)],40,Js)]),g(`button`,{class:`bind-x`,title:e.$t(`townView.k1k73omv016`),onClick:e=>Wu(t.id)},` ✕ `,8,Zs)]))),128)),E(Pu).length?x(``,!0):(s(),v(`div`,Qs,` 未绑定工业节点 —— 绑定后 Agent 可用 dcw_control / daq_query 工具 `)),E(z)===`edit`?(s(),v(`div`,$s,[S(g(`select`,{"onUpdate:modelValue":t[45]||=e=>p(Fu)?Fu.value=e:null,class:`bind-select`,style:{flex:`none`,width:`62px`}},[g(`option`,ec,o(e.$t(`townView.k40ifw097`)),1),g(`option`,tc,o(e.$t(`townView.k40rjw098`)),1)],512),[[k,E(Fu)]]),S(g(`select`,{"onUpdate:modelValue":t[46]||=e=>p(Iu)?Iu.value=e:null,class:`bind-select`},[g(`option`,nc,o(e.$t(`townView.kurjldk099`)),1),E(Fu)===`dcw`?(s(!0),v(b,{key:0},l(E(Y).nodes,e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,rc))),128)):(s(!0),v(b,{key:1},l(E(J).nodes,e=>(s(),v(`option`,{key:e.id,value:e.id},o(e.name),9,ic))),128))],512),[[k,E(Iu)]]),S(g(`select`,{"onUpdate:modelValue":t[47]||=e=>p(Lu)?Lu.value=e:null,class:`bind-select`,style:{flex:`none`,width:`76px`}},[g(`option`,ac,o(e.$t(`townView.k45kpj100`)),1),g(`option`,oc,o(e.$t(`townView.k3zul4101`)),1)],512),[[k,E(Lu)]]),g(`button`,{class:`bind-add-btn`,disabled:!E(Iu),onClick:Uu},o(e.$t(`townView.k452a8102`)),9,sc)])):x(``,!0),E(Ru).length?(s(),v(b,{key:2},[g(`div`,cc,o(e.$t(`townView.k1gk2jg7132`))+` `+o(E(Ru).length),1),(s(!0),v(b,null,l(E(Ru),t=>(s(),v(`div`,{key:t.id,class:`approval-card`},[g(`div`,lc,o(t.detail),1),g(`div`,{class:c([`approval-ttl`,{urgent:Mu(t)<=30}])},` ⏱ `+o(Mu(t))+`s `+o(e.$t(`townView.hitlAutoReject`)),3),S(g(`input`,{"onUpdate:modelValue":e=>E(zu)[t.id]=e,class:`dcw-write input-inline`,style:{width:`100%`,"margin-top":`5px`},placeholder:e.$t(`townView.keztqrn020`)},null,8,uc),[[A,E(zu)[t.id]]]),g(`div`,dc,[g(`button`,{class:`bind-add-btn`,onClick:e=>Ku(t.id,!0)},o(e.$t(`townView.kslcozu103`)),9,fc),g(`button`,{class:`bind-add-btn danger`,onClick:e=>Ku(t.id,!1)},o(e.$t(`townView.k14gu3rd104`)),9,pc)])]))),128))],64)):x(``,!0),E(U)&&E(z)===`edit`?(s(),v(b,{key:3},[g(`div`,mc,[g(`span`,hc,o(e.$t(`townView.k3zhy5048`)),1),g(`div`,gc,[g(`button`,{class:c([`seg-btn`,{on:E(U).shape===`ellipse`}]),onClick:t[48]||=e=>{E(U).shape=`ellipse`,pt()}},o(e.$t(`townView.k414bc049`)),3),g(`button`,{class:c([`seg-btn`,{on:E(U).shape===`rect`}]),onClick:t[49]||=e=>{E(U).shape=`rect`,pt()}},o(e.$t(`townView.k43u0g050`)),3)])]),g(`div`,_c,[g(`span`,vc,o(e.$t(`townView.k41lwj105`)),1),S(g(`input`,{"onUpdate:modelValue":t[50]||=e=>E(U).radiusX=e,class:`obj-range`,type:`range`,min:`40`,max:`4000`,step:`8`,onInput:pt,onChange:mt},null,544),[[A,E(U).radiusX,void 0,{number:!0}]]),g(`span`,yc,o(Math.round(E(U).radiusX)),1)]),g(`div`,bc,[g(`span`,xc,o(e.$t(`townView.k45bta106`)),1),S(g(`input`,{"onUpdate:modelValue":t[51]||=e=>E(U).radiusZ=e,class:`obj-range`,type:`range`,min:`40`,max:`4000`,step:`8`,onInput:pt,onChange:mt},null,544),[[A,E(U).radiusZ,void 0,{number:!0}]]),g(`span`,Sc,o(Math.round(E(U).radiusZ)),1)]),g(`button`,{class:`obj-mini danger`,onClick:ht},o(e.$t(`townView.k1w45mzc107`)),1)],64)):(s(),v(`div`,Cc,o(e.$t(`townView.k14s8urm108`)),1)),t[93]||=g(`div`,{class:`obj-sep`},null,-1),g(`div`,wc,[D(o(e.$t(`townView.k1ghjbfc133`))+` `+o(E(an))+` `,1),g(`button`,{class:`mini-btn chat-refresh`,title:e.$t(`townView.k15avt7g021`),onClick:Jl},o(E(ln)?`…`:`↻`),9,Tc)]),g(`div`,{ref_key:`chatScroll`,ref:dn,class:`rpg-lines chat-embed`},[E(ln)?(s(),v(`div`,Ec,o(e.$t(`townView.kkhlx5h109`)),1)):x(``,!0),E(q).length?(s(),v(b,{key:1},[g(`div`,Dc,o(e.$t(`townView.k768cnt134`))+` `+o(E(q).length),1),(s(!0),v(b,null,l(E(q),e=>(s(),v(`div`,{key:e.id,class:`rpg-line hist`},[g(`span`,Oc,o(Zl(e.at)),1),g(`div`,kc,[Xl(e.kind)?(s(),v(`span`,{key:0,class:c([`rpg-kind`,`k-${e.kind}`])},o(Xl(e.kind)),3)):x(``,!0),g(`span`,Ac,o(e.text),1)])]))),128))],64)):x(``,!0),E(rn).length?(s(),v(`div`,jc,o(e.$t(`townView.k1cwz73k135`))+` `+o(E(rn).length),1)):x(``,!0),(s(!0),v(b,null,l(E(rn),e=>(s(),v(`div`,{key:e.id,class:`rpg-line live`},[g(`span`,Mc,o(Zl(e.at)),1),g(`div`,Nc,[g(`span`,Pc,o(e.text),1)])]))),128)),E(K)?.state===`busy`?(s(),v(`div`,Fc,[t[88]||=g(`span`,{class:`ty-dot`},null,-1),t[89]||=g(`span`,{class:`ty-dot`},null,-1),t[90]||=g(`span`,{class:`ty-dot`},null,-1),g(`span`,Ic,o(e.$t(`townView.k3o5tz9110`)),1)])):x(``,!0),!E(ln)&&!E(q).length&&!E(rn).length?(s(),v(`div`,Lc,o(e.$t(`townView.k1qkqld7111`)),1)):x(``,!0)],512)],64)):x(``,!0)])):x(``,!0)]),_:1}),g(`section`,Rc,[g(`div`,zc,[g(`h3`,null,o(e.$t(`townView.k17dkhgd112`)),1)]),g(`div`,Bc,[g(`div`,Vc,[g(`canvas`,{ref_key:`donutCanvas`,ref:df,width:`118`,height:`118`},null,512),g(`div`,Hc,[g(`b`,{style:n({color:E(uf)})},o(E(lf))+`%`,5),g(`span`,null,o(e.$t(`townView.k7h1nxo113`)),1)])]),g(`div`,Uc,[g(`div`,Wc,[t[94]||=g(`span`,{class:`hl-dot`,style:{background:`var(--hud-accent)`}},null,-1),D(` `+o(e.$t(`townView.k3vp67i114`))+` `,1),g(`span`,Gc,o(E($d)),1)]),g(`div`,Kc,[t[95]||=g(`span`,{class:`hl-dot`,style:{background:`var(--hud-amber)`}},null,-1),D(` `+o(e.$t(`townView.k3zcvb115`))+` `,1),g(`span`,qc,o(E(of)),1)]),g(`div`,Jc,[t[96]||=g(`span`,{class:`hl-dot`,style:{background:`var(--hud-danger)`}},null,-1),D(` `+o(e.$t(`townView.k3xmid116`))+` `,1),g(`span`,Yc,o(E(sf)),1)]),g(`div`,Xc,[t[97]||=g(`span`,{class:`hl-dot`,style:{background:`#3a4a63`}},null,-1),D(` `+o(e.$t(`townView.statesOffline`))+` `,1),g(`span`,Zc,o(E(cf)),1)])])])]),g(`section`,Qc,[g(`div`,$c,[g(`h3`,null,o(e.$t(`townView.k1q247fn117`)),1),g(`span`,el,o(E(O).twins.length),1)]),f(a,{class:`kd-embed`,"daq-live":E(qd),"dcw-live":E(Jd),onFocusDevice:qt},null,8,[`daq-live`,`dcw-live`])]),g(`section`,tl,[g(`div`,nl,[g(`h3`,null,o(e.$t(`townView.k1cxf749118`)),1),g(`span`,rl,o(E(_f))+` `+o(e.$t(`townView.k4dfq040`)),1),g(`button`,{class:`mini-btn`,title:e.$t(`townView.k1bkswpz022`),onClick:yf},` ✓ `,8,il)]),g(`div`,al,[(s(!0),v(b,null,l(E(pf).slice(0,8),e=>(s(),v(`div`,{key:e.id,class:`al-row`},[g(`span`,{class:c([`al-ico`,e.state===2?`info`:e.state===1?`warn`:`crit`])},[...t[98]||=[g(`svg`,{class:`al-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M12 3 22 20H2L12 3Z`}),g(`path`,{d:`M12 10v4M12 17v.2`})],-1)]],2),g(`div`,ol,[g(`div`,sl,o(e.txt),1),g(`div`,cl,o(e.src)+` · `+o(e.time),1)]),g(`button`,{class:c([`al-state`,`s${e.state}`]),onClick:t=>vf(e.id)},o(hf[e.state]),11,ll)]))),128)),E(pf).length?x(``,!0):(s(),v(`div`,ul,[t[99]||=g(`svg`,{class:`re-ico`,viewBox:`0 0 24 24`},[g(`path`,{d:`M12 3l7 3v5c0 4.6-3 8.2-7 10-4-1.8-7-5.4-7-10V6l7-3Z`}),g(`path`,{d:`m9.2 12.2 2 2 3.6-4`})],-1),g(`span`,null,o(e.$t(`townView.kjz544r119`)),1)]))])]),g(`section`,dl,[g(`div`,fl,[g(`h3`,null,o(e.$t(`townView.k1cxdtq2120`)),1),g(`span`,pl,o(E(iu).length),1)]),g(`div`,ml,[(s(!0),v(b,null,l([...E(iu)].reverse(),(e,t)=>(s(),v(`div`,{key:`${e.at}-${t}`,class:`event-row`},[g(`span`,hl,o(Zl(e.at)),1),g(`span`,{class:`ev-name`,title:e.agentName},o(e.agentName),9,gl),g(`span`,{class:`ev-text`,title:e.text},o(e.text),9,_l)]))),128)),E(iu).length?x(``,!0):(s(),v(`div`,vl,[t[100]||=g(`svg`,{class:`re-ico`,viewBox:`0 0 24 24`},[g(`path`,{d:`M3 12h3l2.5-6 4 12L15 12h6`})],-1),g(`span`,null,o(e.$t(`townView.k2uk6ua121`)),1)]))])]),g(`section`,yl,[g(`div`,bl,[g(`h3`,null,o(e.$t(`townView.kjug2jq122`)),1)]),g(`div`,xl,[g(`div`,{class:`mm-wrap`,title:e.$t(`townView.klfwiqg023`)},[g(`canvas`,{ref_key:`navCanvas`,ref:Xf,class:`nav-cv`,onPointerdown:tp,onPointermove:np,onPointerup:rp,onPointercancel:rp,onWheel:ae(ep,[`prevent`])},null,544)],8,Sl),g(`div`,Cl,[g(`button`,{class:`vp-tool`,title:e.$t(`townView.k1lap9bs024`),onClick:Ff},[...t[101]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`path`,{d:`M3 12a9 9 0 1 0 3-6.7M3 4v5h5`})],-1)]],8,wl),g(`button`,{class:`vp-tool`,title:e.$t(`townView.kav8a8k025`),onClick:t[52]||=e=>E(F)?.zoomBy(.22)},[...t[102]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),g(`path`,{d:`m16 16 4.5 4.5M8.5 11h5`})],-1)]],8,Tl),g(`button`,{class:`vp-tool`,title:e.$t(`townView.k1u7uce9026`),onClick:t[53]||=e=>E(F)?.zoomBy(-.18)},[...t[103]||=[g(`svg`,{class:`vp-svg`,viewBox:`0 0 24 24`},[g(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),g(`path`,{d:`m16 16 4.5 4.5M8.5 11h5M11 8.5v5`})],-1)]],8,El)])]),g(`div`,Dl,o(e.$t(`townView.k1gaaodq136`))+o(E(Zf).toFixed(1))+` · `+o(E($t)?.devices?.length??0)+` `+o(e.$t(`townView.k47e16126`)),1)])],2)]),g(`footer`,Ol,[g(`span`,null,[g(`span`,{class:c([`sb-dot`,{red:E(te).state!==`open`}])},null,2),D(o(e.$t(`townView.k1i4g246123`))+` `,1),g(`b`,null,o(E(te).state===`open`?e.$t(`townView.k41k5c154`):E(Re)?e.$t(`townView.k3lmtk3184`):e.$t(`townView.k44c2n186`)),1)]),g(`span`,kl,[D(o(e.$t(`townView.k4a0jt124`))+` `,1),g(`b`,null,o(E(Fe)),1),t[104]||=g(`i`,null,`·`,-1),D(o(e.$t(`townView.k3xdvm125`))+` `,1),g(`b`,null,o(E(Pe)),1),t[105]||=g(`i`,null,`·`,-1),D(o(e.$t(`townView.k47e16126`))+` `,1),g(`b`,null,o(E(Qd)),1)]),g(`span`,Al,o(E(Ne))+` FPS `,1),g(`span`,jl,` © 2026 ABO · DIGITAL TWIN · `+o(e.$t(`townView.k1h5gxpf137`)),1)]),E(N)?(s(),v(`div`,{key:0,class:`sheet-mask`,onClick:ve})):x(``,!0),E(Me)?x(``,!0):(s(),v(`div`,Ml,[t[106]||=g(`div`,{class:`loading-spinner`},null,-1),g(`span`,Nl,o(e.$t(`townView.kvjdqfg059`)),1)]))])}}}),[[`__scopeId`,`data-v-3e78e101`]]),{__name:`WorkshopTownView`});export{fn as n,Ul as t};