agentworkshop 0.7.6 → 0.7.7

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 (517) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +1 -1
  2. package/.output/.AgentWorkShop/prompts/host-tools.json +1 -1
  3. package/.output/nitro.json +1 -1
  4. package/.output/public/_nuxt/{rzGB_ojX.js → 3612gD2V.js} +2 -2
  5. package/.output/public/_nuxt/8eIQAVlb.js +1 -0
  6. package/.output/public/_nuxt/Ah9qOv1m.js +1 -0
  7. package/.output/public/_nuxt/{DdPeifHR.js → B4Fia4FB.js} +1 -1
  8. package/.output/public/_nuxt/B7aqqzkY.js +1 -0
  9. package/.output/public/_nuxt/BJ-fxrSw.js +1 -0
  10. package/.output/public/_nuxt/{DPDqAD1e.js → BSXx2vqR.js} +1 -1
  11. package/.output/public/_nuxt/{CdSgfcYR.js → BVZjSVs2.js} +1 -1
  12. package/.output/public/_nuxt/{DP6bdyIp.js → BVzDoF8t.js} +1 -1
  13. package/.output/public/_nuxt/BYL0Rjqj.js +7 -0
  14. package/.output/public/_nuxt/{CXmkVXS5.js → BjVLsC3M.js} +1 -1
  15. package/.output/public/_nuxt/{7ZABjMRh2.js → BkfchkK62.js} +1 -1
  16. package/.output/public/_nuxt/BnVoQ74r.js +1 -0
  17. package/.output/public/_nuxt/Bnp4vIAf.js +1 -0
  18. package/.output/public/_nuxt/BsMpJf7S.js +70 -0
  19. package/.output/public/_nuxt/{Z8k0uMSI.js → Bt_HDizI.js} +1 -1
  20. package/.output/public/_nuxt/Bu-P92Pe.js +18 -0
  21. package/.output/public/_nuxt/ButLXkjo.js +2 -0
  22. package/.output/public/_nuxt/C-GarxYC.js +1 -0
  23. package/.output/public/_nuxt/{D8DDDzV62.js → C2iWjzEC2.js} +1 -1
  24. package/.output/public/_nuxt/{HWXLx5Hz.js → C8dxXc6K.js} +5 -5
  25. package/.output/public/_nuxt/CGdPdJPP.js +1 -0
  26. package/.output/public/_nuxt/{CyygA0q4.js → CQiKcuoG.js} +4 -4
  27. package/.output/public/_nuxt/{CN7Zh8GQ.js → CRGlf1Gb.js} +1 -1
  28. package/.output/public/_nuxt/{DSBfvCi5.js → CblLEiCZ.js} +7 -7
  29. package/.output/public/_nuxt/Cd15nPnG2.js +1 -0
  30. package/.output/public/_nuxt/{OwJ1LJkF.js → CsCpu2Zh.js} +1 -1
  31. package/.output/public/_nuxt/CvbHIGQY2.js +1 -0
  32. package/.output/public/_nuxt/Cyk3du4K2.js +1 -0
  33. package/.output/public/_nuxt/{DVQAz9WI.js → D4qXvjuV.js} +2 -2
  34. package/.output/public/_nuxt/{CfIXY-ET.js → DCEyMaN-.js} +1 -1
  35. package/.output/public/_nuxt/{BFYNhG9S.js → DCXIGxzT.js} +1 -1
  36. package/.output/public/_nuxt/{B9aPoQvt.js → DM8DS9MA.js} +1 -1
  37. package/.output/public/_nuxt/{ChnfyQHz.js → DNzaswei.js} +1 -1
  38. package/.output/public/_nuxt/{CrFGZYVB2.js → DYZBdSSg2.js} +1 -1
  39. package/.output/public/_nuxt/{dObsRdSQ.js → DZk24ego.js} +1 -1
  40. package/.output/public/_nuxt/DeYsUzhr.js +1 -0
  41. package/.output/public/_nuxt/Dk6pq9JB2.js +1 -0
  42. package/.output/public/_nuxt/{ByGNWgAr.js → Do88WZG2.js} +3 -3
  43. package/.output/public/_nuxt/{R_WxTozV2.js → Du-eSpo2.js} +1 -1
  44. package/.output/public/_nuxt/OmpTerminalPanel.B_Pl5Ynm.css +1 -0
  45. package/.output/public/_nuxt/{Bsc69G4x.js → VnIWJ0ts.js} +3 -3
  46. package/.output/public/_nuxt/_id_.BzKMZnLe.css +1 -0
  47. package/.output/public/_nuxt/_id_.CbpDAWRh.css +1 -0
  48. package/.output/public/_nuxt/{_wsId_.DET_GinP.css → _wsId_.COUzMXpP.css} +1 -1
  49. package/.output/public/_nuxt/agents.BlejnOOC.css +1 -0
  50. package/.output/public/_nuxt/builds/latest.json +1 -1
  51. package/.output/public/_nuxt/builds/meta/14df171d-89cb-43ec-ad6f-9df72d6da7f5.json +1 -0
  52. package/.output/public/_nuxt/daq.zZ8GR433.css +1 -0
  53. package/.output/public/_nuxt/{default.D17kXlD6.css → default.V3_hUJq1.css} +1 -1
  54. package/.output/public/_nuxt/{B4GHHF6d2.js → fQUs58kX2.js} +1 -1
  55. package/.output/public/_nuxt/p7wSGMtc.js +1 -0
  56. package/.output/public/_nuxt/tRBT-plo.js +1 -0
  57. package/.output/server/chunks/_/SearchOutlined.mjs +4 -4
  58. package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
  59. package/.output/server/chunks/_/character-asset.repo.mjs +3 -6
  60. package/.output/server/chunks/_/character-asset.repo.mjs.map +1 -1
  61. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  62. package/.output/server/chunks/_/nitro.mjs +4967 -2035
  63. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  64. package/.output/server/chunks/_/scene-layout.repo.mjs +4 -10
  65. package/.output/server/chunks/_/scene-layout.repo.mjs.map +1 -1
  66. package/.output/server/chunks/build/{Col-D7fjGDF6.mjs → Col-biaNnEPf.mjs} +2 -2
  67. package/.output/server/chunks/build/{Col-D7fjGDF6.mjs.map → Col-biaNnEPf.mjs.map} +1 -1
  68. package/.output/server/chunks/build/{OmpTerminalPanel-B_SYhmgb.mjs → OmpTerminalPanel-COphA1br.mjs} +20 -19
  69. package/.output/server/chunks/build/OmpTerminalPanel-COphA1br.mjs.map +1 -0
  70. package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs → TownView-B5KifIaT.mjs} +4 -4
  71. package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs.map → TownView-B5KifIaT.mjs.map} +1 -1
  72. package/.output/server/chunks/build/{_id_-GnRJPykX.mjs → _id_-C-ewLgfl.mjs} +119 -119
  73. package/.output/server/chunks/build/{_id_-GnRJPykX.mjs.map → _id_-C-ewLgfl.mjs.map} +1 -1
  74. package/.output/server/chunks/build/{_id_-CWLFGZjV.mjs → _id_-Ct4Jhvl1.mjs} +42 -38
  75. package/.output/server/chunks/build/_id_-Ct4Jhvl1.mjs.map +1 -0
  76. package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs → _wsId_-CanI_6Su.mjs} +591 -53
  77. package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs.map → _wsId_-CanI_6Su.mjs.map} +1 -1
  78. package/.output/server/chunks/build/{agents-D4l1icvn.mjs → agents-DSOptxXA.mjs} +146 -91
  79. package/.output/server/chunks/build/agents-DSOptxXA.mjs.map +1 -0
  80. package/.output/server/chunks/build/{alert-gH-s7yIh.mjs → alert-qJnjyRcP.mjs} +3 -3
  81. package/.output/server/chunks/build/{alert-gH-s7yIh.mjs.map → alert-qJnjyRcP.mjs.map} +1 -1
  82. package/.output/server/chunks/build/{button-BhbX5ACI.mjs → button-DEcZFcqN.mjs} +3 -3
  83. package/.output/server/chunks/build/{button-BhbX5ACI.mjs.map → button-DEcZFcqN.mjs.map} +1 -1
  84. package/.output/server/chunks/build/{card-l4BbX67w.mjs → card-Dipvaykh.mjs} +5 -5
  85. package/.output/server/chunks/build/{card-l4BbX67w.mjs.map → card-Dipvaykh.mjs.map} +1 -1
  86. package/.output/server/chunks/build/{channel-templates-DqjtC-R0.mjs → channel-templates-BK0KuPOd.mjs} +13 -12
  87. package/.output/server/chunks/build/channel-templates-BK0KuPOd.mjs.map +1 -0
  88. package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs → checkbox-dzcpU_Cd.mjs} +4 -4
  89. package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs.map → checkbox-dzcpU_Cd.mjs.map} +1 -1
  90. package/.output/server/chunks/build/{daq-BOgpn9sl.mjs → daq-D9RA_uze.mjs} +102 -102
  91. package/.output/server/chunks/build/{daq-BOgpn9sl.mjs.map → daq-D9RA_uze.mjs.map} +1 -1
  92. package/.output/server/chunks/build/dcw-BTM5YU-B.mjs +1 -1
  93. package/.output/server/chunks/build/{default-CKJWhkot.mjs → default-BfWGTlbj.mjs} +81 -23
  94. package/.output/server/chunks/build/{default-CKJWhkot.mjs.map → default-BfWGTlbj.mjs.map} +1 -1
  95. package/.output/server/chunks/build/{drawer-CVValqoh.mjs → drawer-Cmh90erI.mjs} +3 -3
  96. package/.output/server/chunks/build/{drawer-CVValqoh.mjs.map → drawer-Cmh90erI.mjs.map} +1 -1
  97. package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs → dropdown-CGQ0KAzA.mjs} +2 -2
  98. package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs.map → dropdown-CGQ0KAzA.mjs.map} +1 -1
  99. package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs → dropdown-vhn1NPFs.mjs} +4 -4
  100. package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs.map → dropdown-vhn1NPFs.mjs.map} +1 -1
  101. package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs → input-number-Bd55elNN.mjs} +5 -5
  102. package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs.map → input-number-Bd55elNN.mjs.map} +1 -1
  103. package/.output/server/chunks/build/{input--KMeLYqZ.mjs → input-sf_BT6o6.mjs} +3 -3
  104. package/.output/server/chunks/build/{input--KMeLYqZ.mjs.map → input-sf_BT6o6.mjs.map} +1 -1
  105. package/.output/server/chunks/build/logs-Dyk0I2I9.mjs +1 -1
  106. package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs → menu-WCrlpYVh.mjs} +3 -3
  107. package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs.map → menu-WCrlpYVh.mjs.map} +1 -1
  108. package/.output/server/chunks/build/{modal-DrCOcjrl.mjs → modal-yvUquPj5.mjs} +4 -4
  109. package/.output/server/chunks/build/{modal-DrCOcjrl.mjs.map → modal-yvUquPj5.mjs.map} +1 -1
  110. package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs → monitor-MIOvsyLa.mjs} +21 -21
  111. package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs.map → monitor-MIOvsyLa.mjs.map} +1 -1
  112. package/.output/server/chunks/build/pages-DR2bzczM.mjs +1 -1
  113. package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs → plugins-DnOBIWGg.mjs} +7 -7
  114. package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs.map → plugins-DnOBIWGg.mjs.map} +1 -1
  115. package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs → popconfirm-CRaHcz5O.mjs} +4 -4
  116. package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs.map → popconfirm-CRaHcz5O.mjs.map} +1 -1
  117. package/.output/server/chunks/build/{useWorkshopApi-Bh5VUHWu.mjs → segmented-DPe9ZzLO.mjs} +7 -78
  118. package/.output/server/chunks/build/segmented-DPe9ZzLO.mjs.map +1 -0
  119. package/.output/server/chunks/build/{select-D7H2ysgT.mjs → select-D-CeE5vY.mjs} +3 -3
  120. package/.output/server/chunks/build/{select-D7H2ysgT.mjs.map → select-D-CeE5vY.mjs.map} +1 -1
  121. package/.output/server/chunks/build/{settings-Cr06lbRy.mjs → settings-DA8IkGLo.mjs} +11 -11
  122. package/.output/server/chunks/build/{settings-Cr06lbRy.mjs.map → settings-DA8IkGLo.mjs.map} +1 -1
  123. package/.output/server/chunks/build/{space-DCwIlnkI.mjs → space-CCBYAkXt.mjs} +2 -2
  124. package/.output/server/chunks/build/{space-DCwIlnkI.mjs.map → space-CCBYAkXt.mjs.map} +1 -1
  125. package/.output/server/chunks/build/{switch-VC0m9ede.mjs → switch-CelRXpcy.mjs} +3 -3
  126. package/.output/server/chunks/build/{switch-VC0m9ede.mjs.map → switch-CelRXpcy.mjs.map} +1 -1
  127. package/.output/server/chunks/build/{table-BksLg3Q_.mjs → table-Cswq-l2r.mjs} +10 -10
  128. package/.output/server/chunks/build/{table-BksLg3Q_.mjs.map → table-Cswq-l2r.mjs.map} +1 -1
  129. package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs → tabs-BM3tAh_J.mjs} +5 -5
  130. package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs.map → tabs-BM3tAh_J.mjs.map} +1 -1
  131. package/.output/server/chunks/build/{tag-oQI3VtqM.mjs → tag-NO9jEqKy.mjs} +4 -4
  132. package/.output/server/chunks/build/{tag-oQI3VtqM.mjs.map → tag-NO9jEqKy.mjs.map} +1 -1
  133. package/.output/server/chunks/build/{teams-QR3BBF7A.mjs → teams-BhSKBBBM.mjs} +15 -14
  134. package/.output/server/chunks/build/teams-BhSKBBBM.mjs.map +1 -0
  135. package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs → tokens-D_eyxmcv.mjs} +16 -16
  136. package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs.map → tokens-D_eyxmcv.mjs.map} +1 -1
  137. package/.output/server/chunks/build/town-BUqRobze.mjs +1 -1
  138. package/.output/server/chunks/build/{town-_4tEEEVW.mjs → town-DPtOPRRO.mjs} +4 -4
  139. package/.output/server/chunks/build/{town-_4tEEEVW.mjs.map → town-DPtOPRRO.mjs.map} +1 -1
  140. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +42 -0
  141. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs.map +1 -0
  142. package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs +81 -0
  143. package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs.map +1 -0
  144. package/.output/server/chunks/build/useWorkshopWs-B3j5wIAK.mjs +1 -1
  145. package/.output/server/chunks/build/user-Dk-ytEUV.mjs +1 -1
  146. package/.output/server/chunks/build/{users-4FZ0yFUO.mjs → users-CmVvb1oq.mjs} +16 -16
  147. package/.output/server/chunks/build/{users-4FZ0yFUO.mjs.map → users-CmVvb1oq.mjs.map} +1 -1
  148. package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs → workshop-iCzNRifn.mjs} +9 -9
  149. package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs.map → workshop-iCzNRifn.mjs.map} +1 -1
  150. package/.output/server/chunks/build/workspaces-IfORCDJE.mjs +1 -1
  151. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  152. package/.output/server/chunks/routes/api/index.get.mjs +1 -1
  153. package/.output/server/chunks/routes/api/index.post.mjs +1 -1
  154. package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
  155. package/.output/server/chunks/routes/api/metrics.mjs +1 -1
  156. package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +1 -1
  157. package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +1 -1
  158. package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +1 -1
  159. package/.output/server/chunks/routes/api/system/config.get.mjs +1 -1
  160. package/.output/server/chunks/routes/api/system/index.get.mjs +3 -3
  161. package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -1
  162. package/.output/server/chunks/routes/api/system/index.patch.mjs +1 -1
  163. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +1 -1
  164. package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +1 -1
  165. package/.output/server/chunks/routes/api/system/monitor.get.mjs +1 -1
  166. package/.output/server/chunks/routes/api/system/settings/events.get.mjs +1 -1
  167. package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +1 -1
  168. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
  169. package/.output/server/chunks/routes/api/users/_id_.get.mjs +1 -1
  170. package/.output/server/chunks/routes/api/users/_id_.put.mjs +1 -1
  171. package/.output/server/chunks/routes/api/users/index.get.mjs +1 -1
  172. package/.output/server/chunks/routes/api/users/index.post.mjs +1 -1
  173. package/.output/server/chunks/routes/api/users/login.post.mjs +1 -1
  174. package/.output/server/chunks/routes/api/users/logout.post.mjs +1 -1
  175. package/.output/server/chunks/routes/api/users/me.get.mjs +1 -1
  176. package/.output/server/chunks/routes/api/users/register.post.mjs +1 -1
  177. package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +1 -1
  178. package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +1 -1
  179. package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +1 -1
  180. package/.output/server/chunks/routes/api/workshop/_...path_.mjs +1 -1
  181. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +1 -1
  182. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +1 -1
  183. package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +1 -1
  184. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +1 -1
  185. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +1 -1
  186. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +1 -1
  187. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +1 -1
  188. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +1 -1
  190. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +6 -14
  191. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
  192. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +39 -0
  193. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs.map +1 -0
  194. package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
  195. package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
  196. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +1 -1
  197. package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +1 -1
  198. package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +1 -1
  200. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
  201. package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +1 -1
  202. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +2 -2
  203. package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
  204. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +2 -2
  205. package/.output/server/chunks/routes/api/workshop/audit.get.mjs +1 -1
  206. package/.output/server/chunks/routes/api/workshop/caller.mjs +1 -1
  207. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
  208. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +1 -1
  209. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +1 -1
  210. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +1 -1
  211. package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +1 -1
  212. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -2
  213. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +1 -1
  214. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +1 -1
  215. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +1 -1
  216. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +1 -1
  217. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +1 -1
  218. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +1 -1
  219. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +1 -1
  220. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +1 -1
  222. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +1 -1
  223. package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +1 -1
  224. package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +1 -1
  225. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
  226. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +1 -1
  227. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +1 -1
  229. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +1 -1
  230. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
  231. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +1 -1
  232. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +1 -1
  233. package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +1 -1
  234. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -2
  235. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +1 -1
  236. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
  237. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +9 -2
  238. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
  239. package/.output/server/chunks/routes/api/workshop/channels.get.mjs +1 -1
  240. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +2 -2
  241. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +2 -2
  242. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +2 -2
  243. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +2 -2
  244. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +6 -4
  245. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -1
  246. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -2
  247. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -2
  248. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +2 -2
  249. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +2 -2
  250. package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -2
  251. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +2 -2
  252. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -2
  253. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -2
  254. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -2
  255. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -2
  256. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -2
  257. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -2
  258. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +2 -2
  259. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -2
  260. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +2 -2
  261. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +2 -2
  262. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +2 -2
  263. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -2
  264. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -2
  265. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -2
  266. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -2
  267. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +2 -2
  268. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +2 -2
  269. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +2 -2
  270. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -2
  271. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -2
  272. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -2
  273. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -2
  274. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +2 -2
  275. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -2
  276. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +2 -2
  277. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +2 -2
  278. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +2 -2
  279. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -2
  280. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -2
  281. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -2
  282. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -2
  283. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -2
  284. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -2
  285. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -2
  286. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -2
  287. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -2
  288. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -2
  289. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -2
  290. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
  291. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +2 -2
  292. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -2
  293. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +2 -2
  294. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -2
  295. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -2
  296. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -2
  297. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -2
  298. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +1 -1
  299. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
  300. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -2
  301. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -2
  302. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  303. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +247 -0
  304. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs.map +1 -0
  305. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +27 -0
  306. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs.map +1 -0
  307. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  308. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +19 -7
  309. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
  310. package/.output/server/chunks/routes/api/workshop/index.get.mjs +1 -1
  311. package/.output/server/chunks/routes/api/workshop/index.post.mjs +1 -1
  312. package/.output/server/chunks/routes/api/workshop/index10.get.mjs +1 -1
  313. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +1 -1
  314. package/.output/server/chunks/routes/api/workshop/index2.post.mjs +1 -1
  315. package/.output/server/chunks/routes/api/workshop/index3.get.mjs +1 -1
  316. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +2 -2
  317. package/.output/server/chunks/routes/api/workshop/index4.get.mjs +2 -2
  318. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -2
  319. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +2 -2
  320. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -2
  321. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  322. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
  323. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
  324. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
  325. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
  326. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
  327. package/.output/server/chunks/routes/api/workshop/index9.get.mjs +1 -1
  328. package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +1 -1
  329. package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +1 -1
  330. package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +1 -1
  331. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  332. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  333. package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +1 -1
  334. package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +1 -1
  335. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  336. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  337. package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +1 -1
  338. package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +1 -1
  339. package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +1 -1
  340. package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +1 -1
  341. package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +1 -1
  342. package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +1 -1
  343. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
  344. package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +1 -1
  345. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -2
  346. package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +1 -1
  347. package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +1 -1
  348. package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +1 -1
  349. package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +1 -1
  350. package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
  351. package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +1 -1
  352. package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +1 -1
  353. package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +1 -1
  354. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
  355. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +1 -1
  356. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +1 -1
  357. package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +1 -1
  358. package/.output/server/chunks/routes/renderer.mjs +1 -1
  359. package/.output/server/chunks/virtual/entry.mjs +123 -113
  360. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  361. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  362. package/.output/server/index.mjs +1 -1
  363. package/.output/server/package.json +1 -1
  364. package/app/components/AppHeader.vue +56 -2
  365. package/app/components/workshop/ChannelSessionList.vue +703 -593
  366. package/app/components/workshop/terminal/OmpTerminalPanel.vue +2 -1
  367. package/app/composables/workshop/useLocalTime.ts +16 -0
  368. package/app/composables/workshop/useSceneLayouts.ts +2 -1
  369. package/app/composables/workshop/useWorkshopApi.ts +249 -224
  370. package/app/pages/daq/[id].vue +7 -6
  371. package/app/pages/daq/index.vue +2 -2
  372. package/app/pages/dcw/[id].vue +3 -3
  373. package/app/pages/workshop/agents.vue +432 -382
  374. package/bin/aw.mjs +0 -0
  375. package/cli/aw.mjs +8 -1
  376. package/cli/commands/stop.mjs +7 -4
  377. package/cli/commands/tui.mjs +10 -1
  378. package/cli/core/registry.mjs +5 -3
  379. package/config.yml +134 -134
  380. package/docs/tui.md +1 -1
  381. package/i18n/locales/en.ts +5 -0
  382. package/i18n/locales/zh-CN.ts +5 -0
  383. package/package.json +148 -140
  384. package/scripts/_dbg-catalog-smoke.ts +20 -0
  385. package/scripts/_dbg-codex-probe.mjs +58 -0
  386. package/scripts/_dbg-dsh-probe.mjs +31 -0
  387. package/scripts/_dbg-interval-scenario.mjs +126 -0
  388. package/scripts/_dbg-line-spawn.ts +31 -0
  389. package/scripts/_dbg-live-engine-probe.mjs +80 -0
  390. package/scripts/_dbg-mcp-bridge-probe.mjs +147 -0
  391. package/scripts/_dbg-opencode-sse.mjs +101 -0
  392. package/scripts/_dbg-opencode-start.ts +57 -0
  393. package/scripts/_dbg-plugin-matrix.mjs +212 -0
  394. package/scripts/_dbg-protocol-matrix.mjs +425 -0
  395. package/scripts/_dbg-real-scenario-timeline.log +123 -0
  396. package/scripts/_dbg-registry-smoke.ts +14 -0
  397. package/scripts/_dbg-sim-keeper.mjs +100 -0
  398. package/scripts/_dbg-team-drill.mjs +173 -0
  399. package/scripts/dev-guard.mjs +11 -3
  400. package/scripts/dev-protocol-simulators.mjs +28 -1
  401. package/scripts/e2e-multi-harness.ts +374 -0
  402. package/scripts/e2e-multiharness-team.mjs +319 -0
  403. package/scripts/e2e-plc-scenario.mjs +292 -0
  404. package/scripts/e2e-real-scenario.mjs +452 -0
  405. package/scripts/migrate-local-time.mjs +123 -0
  406. package/scripts/start.mjs +30 -2
  407. package/server/api/system/settings/index.get.ts +3 -3
  408. package/server/api/workshop/agent-tools/invoke.post.ts +27 -41
  409. package/server/api/workshop/agent-tools/list.get.ts +25 -0
  410. package/server/api/workshop/channels/[id]/index.patch.ts +38 -30
  411. package/server/api/workshop/daq/[id]/samples.get.ts +6 -3
  412. package/server/api/workshop/harnesses/[id]/providers.get.ts +16 -0
  413. package/server/api/workshop/harnesses.get.ts +12 -0
  414. package/server/api/workshop/hitl/respond.post.ts +87 -67
  415. package/server/api/workshop/ws.ts +13 -0
  416. package/server/data/daqs.json +1366 -16
  417. package/server/data/dcw-lines.json +266 -0
  418. package/server/data/dcw-products.json +203 -0
  419. package/server/data/dcw-recipes.json +784 -0
  420. package/server/data/dcw-rollback.json +1144 -1
  421. package/server/data/dcw-runs.json +983 -791
  422. package/server/data/dcw-writes.json +1080 -0
  423. package/server/data/dcws.json +3278 -203
  424. package/server/data/line-runs.json +52 -2
  425. package/server/harness/aw-mcp-bridge.mjs +153 -0
  426. package/server/plugins/00-local-time.ts +10 -0
  427. package/server/plugins/aw-plugins.ts +3 -0
  428. package/server/plugins/backup.ts +116 -97
  429. package/server/plugins/dev-stability-guard.ts +24 -15
  430. package/server/plugins/retention.ts +1 -0
  431. package/server/plugins/security.ts +24 -3
  432. package/server/plugins/workshop.ts +156 -153
  433. package/server/repositories/user.repository.ts +414 -391
  434. package/server/services/system-config.ts +30 -6
  435. package/server/services/workshop/.mimosa/hook-state/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f.json +1 -0
  436. package/server/services/workshop/.mimosa/hook-status/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f-e6b75bbfe6.json +14 -0
  437. package/server/services/workshop/agents/adapters/line-spawn.ts +108 -0
  438. package/server/services/workshop/agents/adapters/stdio-jsonrpc.ts +316 -0
  439. package/server/services/workshop/agents/agent-interface.ts +17 -0
  440. package/server/services/workshop/agents/codex-agent.ts +822 -0
  441. package/server/services/workshop/agents/dsh-agent.ts +670 -0
  442. package/server/services/workshop/agents/factory.ts +4 -16
  443. package/server/services/workshop/agents/harness-env.ts +54 -0
  444. package/server/services/workshop/agents/harness-models.ts +270 -0
  445. package/server/services/workshop/agents/host-tool-bridge.ts +592 -0
  446. package/server/services/workshop/agents/industrial-tools.ts +5 -1
  447. package/server/services/workshop/agents/node-bindings.repo.ts +4 -5
  448. package/server/services/workshop/agents/omp-agent.ts +1178 -1957
  449. package/server/services/workshop/agents/opencode-agent.ts +987 -0
  450. package/server/services/workshop/agents/prompt-builder.ts +393 -0
  451. package/server/services/workshop/agents/registry.ts +125 -0
  452. package/server/services/workshop/assets/character-asset.repo.ts +3 -5
  453. package/server/services/workshop/assets/device-twin.repo.ts +3 -5
  454. package/server/services/workshop/daq/daq-controller.ts +8 -4
  455. package/server/services/workshop/daq/daq-node.repo.ts +3 -5
  456. package/server/services/workshop/daq/daq-node.ts +2 -2
  457. package/server/services/workshop/daq/daq-templates.ts +3 -5
  458. package/server/services/workshop/daq/drivers.ts +41 -12
  459. package/server/services/workshop/daq/storage/sqlite.adapter.ts +313 -309
  460. package/server/services/workshop/db/backup-registry.ts +33 -0
  461. package/server/services/workshop/db/channel.repo.ts +104 -101
  462. package/server/services/workshop/db/database.ts +956 -949
  463. package/server/services/workshop/dcw/dcw-controller.ts +3 -1
  464. package/server/services/workshop/dcw/dcw-line.repo.ts +4 -11
  465. package/server/services/workshop/dcw/dcw-node.repo.ts +3 -5
  466. package/server/services/workshop/dcw/dcw-node.ts +13 -1
  467. package/server/services/workshop/dcw/dcw-product.repo.ts +3 -4
  468. package/server/services/workshop/dcw/dcw-recipe.repo.ts +3 -19
  469. package/server/services/workshop/dcw/dcw-templates.ts +3 -5
  470. package/server/services/workshop/dcw/drivers.ts +37 -13
  471. package/server/services/workshop/dcw/line-run.ts +3 -5
  472. package/server/services/workshop/dcw/recipe-rollback.repo.ts +4 -10
  473. package/server/services/workshop/json-store.mjs +72 -0
  474. package/server/services/workshop/plugins/host.mjs +2 -1
  475. package/server/services/workshop/runtime/agent-runtime.ts +44 -0
  476. package/server/services/workshop/runtime/manager.ts +2953 -2868
  477. package/server/services/workshop/scene/scene-layout.repo.ts +4 -11
  478. package/server/services/workshop/settings.ts +7 -0
  479. package/shared/config/schema.json +5 -0
  480. package/shared/config/single-instance.mjs +5 -1
  481. package/shared/local-time.mjs +36 -0
  482. package/shared/workshop-protocol.ts +11 -5
  483. package/tui/aw-tui.mjs +28 -10
  484. package/tui/components/hitl-card.mjs +47 -36
  485. package/tui/lib/ws.mjs +2 -1
  486. package/.output/public/_nuxt/9X0fVBD7.js +0 -57
  487. package/.output/public/_nuxt/B6M2WJWm2.js +0 -1
  488. package/.output/public/_nuxt/B9Yie5HN.js +0 -2
  489. package/.output/public/_nuxt/BF9XPEuw.js +0 -1
  490. package/.output/public/_nuxt/BbQornXa.js +0 -1
  491. package/.output/public/_nuxt/Bxgaym6j.js +0 -1
  492. package/.output/public/_nuxt/Bxh5nf8j.js +0 -1
  493. package/.output/public/_nuxt/CXLI50Sq.js +0 -1
  494. package/.output/public/_nuxt/CdfAP_IH2.js +0 -1
  495. package/.output/public/_nuxt/Ce1zyNYu.js +0 -1
  496. package/.output/public/_nuxt/D-Ne4C9a.js +0 -1
  497. package/.output/public/_nuxt/DEHNjlTq2.js +0 -1
  498. package/.output/public/_nuxt/DFnGFEav.js +0 -18
  499. package/.output/public/_nuxt/DYWgGHNo.js +0 -7
  500. package/.output/public/_nuxt/OmpTerminalPanel.Bc9GjNU5.css +0 -1
  501. package/.output/public/_nuxt/W1E3-5ML.js +0 -14
  502. package/.output/public/_nuxt/XVB9_zwP.js +0 -1
  503. package/.output/public/_nuxt/Xaf_HIR3.js +0 -1
  504. package/.output/public/_nuxt/_id_.BeqSLvl_.css +0 -1
  505. package/.output/public/_nuxt/_id_.DN3U6EF9.css +0 -1
  506. package/.output/public/_nuxt/agents.BJwgTLFZ.css +0 -1
  507. package/.output/public/_nuxt/builds/meta/55c10854-ee0e-4be4-924b-a1b0e100fe11.json +0 -1
  508. package/.output/public/_nuxt/daq.BXsnevQv.css +0 -1
  509. package/.output/public/_nuxt/yIKY_V1P.js +0 -1
  510. package/.output/server/chunks/build/OmpTerminalPanel-B_SYhmgb.mjs.map +0 -1
  511. package/.output/server/chunks/build/_id_-CWLFGZjV.mjs.map +0 -1
  512. package/.output/server/chunks/build/agents-D4l1icvn.mjs.map +0 -1
  513. package/.output/server/chunks/build/channel-templates-DqjtC-R0.mjs.map +0 -1
  514. package/.output/server/chunks/build/interval-WlxgjTzO.mjs +0 -9
  515. package/.output/server/chunks/build/interval-WlxgjTzO.mjs.map +0 -1
  516. package/.output/server/chunks/build/teams-QR3BBF7A.mjs.map +0 -1
  517. package/.output/server/chunks/build/useWorkshopApi-Bh5VUHWu.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{C as e,f as t,x as n}from"./BSCpFtzG.js";import{$ as r,At as i,Ct as a,X as o,Z as s,d as c,et as l,h as u,j as d,kt as f,m as p,n as m,t as h,u as g,yt as _}from"./BDUjyaF4.js";import{_ as v,b as y,d as b,et as x,g as S,m as C,o as w,v as T,y as E}from"./rzGB_ojX.js";import{t as D}from"./BfGc7TJp.js";import{G as O,K as k,V as A,n as j,t as M}from"./Z8k0uMSI.js";import{r as N}from"./Bsc69G4x.js";import{i as P}from"./9X0fVBD7.js";import{c as F,o as I,s as L}from"./BFYNhG9S.js";var R=()=>({arrow:l([Boolean,Object]),trigger:{type:[Array,String]},menu:r(),overlay:h.any,visible:o(),open:o(),disabled:o(),danger:o(),autofocus:o(),align:r(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:r(),forceRender:o(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:o(),destroyPopupOnHide:o(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),z=j(),B=()=>f(f({},R()),{type:z.type,size:String,htmlType:z.htmlType,href:String,disabled:o(),prefixCls:String,icon:h.any,title:String,loading:z.loading,onClick:s()}),V=e=>{let{componentCls:t,antCls:n,paddingXS:r,opacityLoading:i}=e;return{[`${t}-button`]:{whiteSpace:`nowrap`,[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:`default`,pointerEvents:`none`,opacity:i},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},U=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,dropdownArrowOffset:a,sizePopupArrow:o,antCls:s,iconCls:c,motionDurationMid:l,dropdownPaddingVertical:d,fontSize:m,dropdownEdgeChildPadding:h,colorTextDisabled:g,fontSizeIcon:_,controlPaddingHorizontal:b,colorBgElevated:w,boxShadowPopoverArrow:D}=e;return[{[t]:f(f({},u(e)),{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:-i+o/2,zIndex:-9999,opacity:1e-4,content:`""`},[`${t}-wrap`]:{position:`relative`,[`${s}-btn > ${c}-down`]:{fontSize:_},[`${c}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:`rotate(180deg)`}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:`none`},[`
1
+ import{C as e,f as t,x as n}from"./BSCpFtzG.js";import{$ as r,At as i,Ct as a,X as o,Z as s,d as c,et as l,h as u,j as d,kt as f,m as p,n as m,t as h,u as g,yt as _}from"./BDUjyaF4.js";import{_ as v,b as y,d as b,et as x,g as S,m as C,o as w,v as T,y as E}from"./3612gD2V.js";import{t as D}from"./BfGc7TJp.js";import{G as O,K as k,V as A,n as j,t as M}from"./Bt_HDizI.js";import{r as N}from"./VnIWJ0ts.js";import{h as P}from"./BsMpJf7S.js";import{c as F,o as I,s as L}from"./DCXIGxzT.js";var R=()=>({arrow:l([Boolean,Object]),trigger:{type:[Array,String]},menu:r(),overlay:h.any,visible:o(),open:o(),disabled:o(),danger:o(),autofocus:o(),align:r(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:r(),forceRender:o(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:o(),destroyPopupOnHide:o(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),z=j(),B=()=>f(f({},R()),{type:z.type,size:String,htmlType:z.htmlType,href:String,disabled:o(),prefixCls:String,icon:h.any,title:String,loading:z.loading,onClick:s()}),V=e=>{let{componentCls:t,antCls:n,paddingXS:r,opacityLoading:i}=e;return{[`${t}-button`]:{whiteSpace:`nowrap`,[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:`default`,pointerEvents:`none`,opacity:i},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},U=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,dropdownArrowOffset:a,sizePopupArrow:o,antCls:s,iconCls:c,motionDurationMid:l,dropdownPaddingVertical:d,fontSize:m,dropdownEdgeChildPadding:h,colorTextDisabled:g,fontSizeIcon:_,controlPaddingHorizontal:b,colorBgElevated:w,boxShadowPopoverArrow:D}=e;return[{[t]:f(f({},u(e)),{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:-i+o/2,zIndex:-9999,opacity:1e-4,content:`""`},[`${t}-wrap`]:{position:`relative`,[`${s}-btn > ${c}-down`]:{fontSize:_},[`${c}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:`rotate(180deg)`}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:`none`},[`
2
2
  &-show-arrow${t}-placement-topLeft,
3
3
  &-show-arrow${t}-placement-top,
4
4
  &-show-arrow${t}-placement-topRight
@@ -0,0 +1 @@
1
+ import{C as e,F as t,O as n,U as r,f as i,mt as a,x as o,z as s}from"./BSCpFtzG.js";import{At as c,Ct as l,d as u,et as d,kt as f,n as p,u as m}from"./BDUjyaF4.js";import{n as h,t as g}from"./D95h62Jn.js";import{r as _}from"./Du-eSpo2.js";var v=Symbol(`rowContextKey`),y=e=>{r(v,e)},b=()=>n(v,{gutter:i(()=>void 0),wrap:i(()=>void 0),supportFlexGap:i(()=>void 0)}),x=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around ":{justifyContent:`space-around`},"&-space-evenly ":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},S=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},C=(e,t)=>{let{componentCls:n,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)e===0?(i[`${n}${t}-${e}`]={display:`none`},i[`${n}-push-${e}`]={insetInlineStart:`auto`},i[`${n}-pull-${e}`]={insetInlineEnd:`auto`},i[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},i[`${n}${t}-offset-${e}`]={marginInlineEnd:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]={display:`block`,flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`},i[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},i[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},i[`${n}${t}-order-${e}`]={order:e});return i},w=(e,t)=>C(e,t),T=(e,t,n)=>({[`@media (min-width: ${t}px)`]:f({},w(e,n))}),E=u(`Grid`,e=>[x(e)]),D=u(`Grid`,e=>{let t=m(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[S(t),w(t,``),w(t,`-xs`),Object.keys(n).map(e=>T(t,n[e],e)).reduce((e,t)=>f(f({},e),t),{})]}),O=e({compatConfig:{MODE:3},name:`ARow`,inheritAttrs:!1,props:{align:d([String,Object]),justify:d([String,Object]),prefixCls:String,gutter:d([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,n){let{slots:r,attrs:u}=n,{prefixCls:d,direction:m}=p(`row`,e),[v,b]=E(d),x,S=h(),C=a({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),w=a({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),T=t=>i(()=>{if(typeof e[t]==`string`)return e[t];if(typeof e[t]!=`object`)return``;for(let n=0;n<g.length;n++){let r=g[n];if(!w.value[r])continue;let i=e[t][r];if(i!==void 0)return i}return``}),D=T(`align`),O=T(`justify`),k=_();s(()=>{x=S.value.subscribe(t=>{w.value=t;let n=e.gutter||0;(!Array.isArray(n)&&typeof n==`object`||Array.isArray(n)&&(typeof n[0]==`object`||typeof n[1]==`object`))&&(C.value=t)})}),t(()=>{S.value.unsubscribe(x)});let A=i(()=>{let t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach((e,n)=>{if(typeof e==`object`)for(let r=0;r<g.length;r++){let i=g[r];if(C.value[i]&&e[i]!==void 0){t[n]=e[i];break}}else t[n]=e}),t});y({gutter:A,supportFlexGap:k,wrap:i(()=>e.wrap)});let j=i(()=>l(d.value,{[`${d.value}-no-wrap`]:e.wrap===!1,[`${d.value}-${O.value}`]:O.value,[`${d.value}-${D.value}`]:D.value,[`${d.value}-rtl`]:m.value===`rtl`},u.class,b.value)),M=i(()=>{let e=A.value,t={},n=e[0]!=null&&e[0]>0?`${e[0]/-2}px`:void 0,r=e[1]!=null&&e[1]>0?`${e[1]/-2}px`:void 0;return n&&(t.marginLeft=n,t.marginRight=n),k.value?t.rowGap=`${e[1]}px`:r&&(t.marginTop=r,t.marginBottom=r),t});return()=>v(o(`div`,c(c({},u),{},{class:j.value,style:f(f({},M.value),u.style)}),[r.default?.call(r)]))}});function k(e){return typeof e==`number`?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var A=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),j=[`xs`,`sm`,`md`,`lg`,`xl`,`xxl`],M=e({compatConfig:{MODE:3},name:`ACol`,inheritAttrs:!1,props:A(),setup(e,t){let{slots:n,attrs:r}=t,{gutter:a,supportFlexGap:s,wrap:u}=b(),{prefixCls:d,direction:m}=p(`col`,e),[h,g]=D(d),_=i(()=>{let{span:t,order:n,offset:i,push:a,pull:o}=e,s=d.value,c={};return j.forEach(t=>{let n={},r=e[t];typeof r==`number`?n.span=r:typeof r==`object`&&(n=r||{}),c=f(f({},c),{[`${s}-${t}-${n.span}`]:n.span!==void 0,[`${s}-${t}-order-${n.order}`]:n.order||n.order===0,[`${s}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${s}-${t}-push-${n.push}`]:n.push||n.push===0,[`${s}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${s}-rtl`]:m.value===`rtl`})}),l(s,{[`${s}-${t}`]:t!==void 0,[`${s}-order-${n}`]:n,[`${s}-offset-${i}`]:i,[`${s}-push-${a}`]:a,[`${s}-pull-${o}`]:o},c,r.class,g.value)}),v=i(()=>{let{flex:t}=e,n=a.value,r={};if(n&&n[0]>0){let e=`${n[0]/2}px`;r.paddingLeft=e,r.paddingRight=e}if(n&&n[1]>0&&!s.value){let e=`${n[1]/2}px`;r.paddingTop=e,r.paddingBottom=e}return t&&(r.flex=k(t),u.value===!1&&!r.minWidth&&(r.minWidth=0)),r});return()=>h(o(`div`,c(c({},r),{},{class:_.value,style:[v.value,r.style]}),[n.default?.call(n)]))}});export{O as n,M as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./eHGLpQSg2.js";function t(){let t=e();return{listChannels:()=>t.get(`/workshop/channels`),createChannel:e=>t.post(`/workshop/channels`,e),deleteChannel:e=>t.delete(`/workshop/channels/${e}`),patchChannel:(e,n)=>t.request({method:`PATCH`,url:`/workshop/channels/${e}`,data:n}),listChannelAgents:e=>t.get(`/workshop/channels/${e}/agents`),addChannelAgent:(e,n)=>t.post(`/workshop/channels/${e}/agents`,n),updateChannelAgent:(e,n,r)=>t.request({method:`PATCH`,url:`/workshop/channels/${e}/agents/${n}`,data:r}),removeChannelAgent:(e,n)=>t.delete(`/workshop/channels/${e}/agents/${n}`),stopChannelAgent:(e,n)=>t.post(`/workshop/channels/${e}/agents/${n}/stop`,{}),listTasks:e=>t.get(`/workshop/channels/${e}/tasks`),submitTask:(e,n)=>t.post(`/workshop/channels/${e}/tasks`,n),injectMessage:(e,n)=>t.post(`/workshop/channels/${e}/messages`,n),listAgentMemories:(e,n)=>t.get(`/workshop/channels/${e}/agents/${n}/memories`),searchMemories:(e,n,r)=>t.post(`/workshop/channels/${e}/agents/${n}/memories/search`,r),saveMemory:(e,n,r)=>t.post(`/workshop/channels/${e}/agents/${n}/memories`,r),listTeamMemories:e=>t.get(`/workshop/channels/${e}/memories`),queueOverview:e=>t.get(`/workshop/channels/${e}/queue`),runtimeStatus:()=>t.get(`/workshop/runtime`),listHarnesses:()=>t.get(`/workshop/harnesses`),listHarnessProviders:e=>t.get(`/workshop/harnesses/${e}/providers`),getTask:e=>t.get(`/workshop/tasks/${e}`),cancelTask:e=>t.post(`/workshop/tasks/${e}/cancel`,{}),retryTask:e=>t.post(`/workshop/tasks/${e}/retry`,{}),respondHitl:e=>t.post(`/workshop/hitl/respond`,e),listTemplates:()=>t.get(`/workshop/agents`),createTemplate:e=>t.post(`/workshop/agents`,e),updateTemplate:(e,n)=>t.request({method:`PATCH`,url:`/workshop/agents/${e}`,data:n}),deleteTemplate:e=>t.delete(`/workshop/agents/${e}`),listTeams:()=>t.get(`/workshop/teams`),createTeam:e=>t.post(`/workshop/teams`,e),updateTeam:(e,n)=>t.request({method:`PATCH`,url:`/workshop/teams/${e}`,data:n}),deleteTeam:e=>t.delete(`/workshop/teams/${e}`),addTeamMember:(e,n)=>t.post(`/workshop/teams/${e}/members`,n),removeTeamMember:(e,n)=>t.delete(`/workshop/teams/${e}/members/${n}`),deployTeam:(e,n)=>t.post(`/workshop/teams/${e}/deploy`,{channelId:n}),listChannelTemplates:()=>t.get(`/workshop/channel-templates`),createChannelTemplate:e=>t.post(`/workshop/channel-templates`,e),captureChannelTemplate:e=>t.post(`/workshop/channel-templates/from-channel`,e),updateChannelTemplate:(e,n)=>t.request({method:`PATCH`,url:`/workshop/channel-templates/${e}`,data:n}),deleteChannelTemplate:e=>t.delete(`/workshop/channel-templates/${e}`),instantiateChannelTemplate:(e,n)=>t.post(`/workshop/channel-templates/${e}/instantiate`,{name:n}),mountChannelTemplate:(e,n,r)=>t.post(`/workshop/workspaces/${e}/channel-templates/${n}`,{name:r}),listChannelTerminals:e=>t.get(`/workshop/channels/${e}/terminals`)}}export{t};
@@ -1,3 +1,3 @@
1
- import{C as e,f as t,gt as n,rt as r,x as i}from"./BSCpFtzG.js";import{R as a,k as o}from"./2LwEn9gX.js";import{At as s,Ct as c,d as l,h as u,it as d,kt as f,n as p,nt as m,t as h,u as g,yt as _}from"./BDUjyaF4.js";import{V as v}from"./Z8k0uMSI.js";import{n as y,t as b,u as x}from"./9X0fVBD7.js";import{a as S,c as C,d as w,l as T,o as E,s as D,u as O}from"./W1E3-5ML.js";var k=(e,t,n,r,i)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),A=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:h,paddingMD:g,paddingContentHorizontalLG:_}=e;return{[t]:f(f({},u(e)),{position:`relative`,display:`flex`,alignItems:`center`,padding:`${m}px ${h}px`,wordWrap:`break-word`,borderRadius:c,[`&${t}-rtl`]:{direction:`rtl`},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:`max-height ${n} ${l}, opacity ${n} ${l},
1
+ import{C as e,f as t,gt as n,rt as r,x as i}from"./BSCpFtzG.js";import{R as a,k as o}from"./2LwEn9gX.js";import{At as s,Ct as c,d as l,h as u,it as d,kt as f,n as p,nt as m,t as h,u as g,yt as _}from"./BDUjyaF4.js";import{V as v}from"./Bt_HDizI.js";import{a as y,c as b,d as x,f as S,l as C,o as w,p as T,s as E,u as D,x as O}from"./BsMpJf7S.js";var k=(e,t,n,r,i)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),A=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:h,paddingMD:g,paddingContentHorizontalLG:_}=e;return{[t]:f(f({},u(e)),{position:`relative`,display:`flex`,alignItems:`center`,padding:`${m}px ${h}px`,wordWrap:`break-word`,borderRadius:c,[`&${t}-rtl`]:{direction:`rtl`},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:`max-height ${n} ${l}, opacity ${n} ${l},
2
2
  padding-top ${n} ${l}, padding-bottom ${n} ${l},
3
- margin-bottom ${n} ${l}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:`flex-start`,paddingInline:_,paddingBlock:g,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:`block`,marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:`block`}},[`${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}},j=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:c,colorErrorBorder:l,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:m}=e;return{[t]:{"&-success":k(i,r,n,e,t),"&-info":k(m,p,d,e,t),"&-warning":k(s,o,a,e,t),"&-error":f(f({},k(u,l,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},M=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:`${a}px`,backgroundColor:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},N=e=>[A(e),j(e),M(e)],P=l(`Alert`,e=>{let{fontSizeHeading3:t}=e;return[N(g(e,{alertIconSizeLG:t,alertPaddingHorizontal:12}))]}),F={success:D,info:S,error:b,warning:E},I={success:w,info:T,error:C,warning:O},L=m(`success`,`info`,`warning`,`error`),R=e({compatConfig:{MODE:3},name:`AAlert`,inheritAttrs:!1,props:{type:h.oneOf(L),closable:{type:Boolean,default:void 0},closeText:h.any,message:h.any,description:h.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:h.any,closeIcon:h.any,onClose:Function},setup(e,l){let{slots:u,emit:d,attrs:f,expose:m}=l,{prefixCls:h,direction:g}=p(`alert`,e),[b,S]=P(h),C=n(!1),w=n(!1),T=n(),E=e=>{e.preventDefault();let t=T.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,C.value=!0,d(`close`,e)},D=()=>{var t;C.value=!1,w.value=!0,(t=e.afterClose)==null||t.call(e)},O=t(()=>{let{type:t}=e;return t===void 0?e.banner?`warning`:`info`:t});m({animationEnd:D});let k=n({});return()=>{let{banner:t,closeIcon:n=u.closeIcon?.call(u)}=e,{closable:l,showIcon:d}=e,p=e.closeText??u.closeText?.call(u),m=e.description??u.description?.call(u),A=e.message??u.message?.call(u),j=e.icon??u.icon?.call(u),M=u.action?.call(u);d=t&&d===void 0?!0:d;let N=(m?I:F)[O.value]||null;p&&(l=!0);let P=h.value,L=c(P,{[`${P}-${O.value}`]:!0,[`${P}-closing`]:C.value,[`${P}-with-description`]:!!m,[`${P}-no-icon`]:!d,[`${P}-banner`]:!!t,[`${P}-closable`]:l,[`${P}-rtl`]:g.value===`rtl`,[S.value]:!0}),R=l?i(`button`,{type:`button`,onClick:E,class:`${P}-close-icon`,tabindex:0},[p?i(`span`,{class:`${P}-close-text`},[p]):n===void 0?i(y,null,null):n]):null,z=j&&(_(j)?v(j,{class:`${P}-icon`}):i(`span`,{class:`${P}-icon`},[j]))||i(N,{class:`${P}-icon`},null),B=x(`${P}-motion`,{appear:!1,css:!0,onAfterLeave:D,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight=`0px`}});return b(w.value?null:i(o,B,{default:()=>[r(i(`div`,s(s({role:`alert`},f),{},{style:[f.style,k.value],class:[f.class,L],"data-show":!C.value,ref:T}),[d?z:null,i(`div`,{class:`${P}-content`},[A?i(`div`,{class:`${P}-message`},[A]):null,m?i(`div`,{class:`${P}-description`},[m]):null]),M?i(`div`,{class:`${P}-action`},[M]):null,R]),[[a,!C.value]])]}))}}}),z=d(R);export{z as t};
3
+ margin-bottom ${n} ${l}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:`flex-start`,paddingInline:_,paddingBlock:g,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:`block`,marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:`block`}},[`${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}},j=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:c,colorErrorBorder:l,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:m}=e;return{[t]:{"&-success":k(i,r,n,e,t),"&-info":k(m,p,d,e,t),"&-warning":k(s,o,a,e,t),"&-error":f(f({},k(u,l,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},M=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:`${a}px`,backgroundColor:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},N=e=>[A(e),j(e),M(e)],P=l(`Alert`,e=>{let{fontSizeHeading3:t}=e;return[N(g(e,{alertIconSizeLG:t,alertPaddingHorizontal:12}))]}),F={success:E,info:y,error:S,warning:w},I={success:x,info:C,error:b,warning:D},L=m(`success`,`info`,`warning`,`error`),R=e({compatConfig:{MODE:3},name:`AAlert`,inheritAttrs:!1,props:{type:h.oneOf(L),closable:{type:Boolean,default:void 0},closeText:h.any,message:h.any,description:h.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:h.any,closeIcon:h.any,onClose:Function},setup(e,l){let{slots:u,emit:d,attrs:f,expose:m}=l,{prefixCls:h,direction:g}=p(`alert`,e),[y,b]=P(h),x=n(!1),S=n(!1),C=n(),w=e=>{e.preventDefault();let t=C.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,x.value=!0,d(`close`,e)},E=()=>{var t;x.value=!1,S.value=!0,(t=e.afterClose)==null||t.call(e)},D=t(()=>{let{type:t}=e;return t===void 0?e.banner?`warning`:`info`:t});m({animationEnd:E});let k=n({});return()=>{let{banner:t,closeIcon:n=u.closeIcon?.call(u)}=e,{closable:l,showIcon:d}=e,p=e.closeText??u.closeText?.call(u),m=e.description??u.description?.call(u),A=e.message??u.message?.call(u),j=e.icon??u.icon?.call(u),M=u.action?.call(u);d=t&&d===void 0?!0:d;let N=(m?I:F)[D.value]||null;p&&(l=!0);let P=h.value,L=c(P,{[`${P}-${D.value}`]:!0,[`${P}-closing`]:x.value,[`${P}-with-description`]:!!m,[`${P}-no-icon`]:!d,[`${P}-banner`]:!!t,[`${P}-closable`]:l,[`${P}-rtl`]:g.value===`rtl`,[b.value]:!0}),R=l?i(`button`,{type:`button`,onClick:w,class:`${P}-close-icon`,tabindex:0},[p?i(`span`,{class:`${P}-close-text`},[p]):n===void 0?i(T,null,null):n]):null,z=j&&(_(j)?v(j,{class:`${P}-icon`}):i(`span`,{class:`${P}-icon`},[j]))||i(N,{class:`${P}-icon`},null),B=O(`${P}-motion`,{appear:!1,css:!0,onAfterLeave:E,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight=`0px`}});return y(S.value?null:i(o,B,{default:()=>[r(i(`div`,s(s({role:`alert`},f),{},{style:[f.style,k.value],class:[f.class,L],"data-show":!x.value,ref:C}),[d?z:null,i(`div`,{class:`${P}-content`},[A?i(`div`,{class:`${P}-message`},[A]):null,m?i(`div`,{class:`${P}-description`},[m]):null]),M?i(`div`,{class:`${P}-action`},[M]):null,R]),[[a,!x.value]])]}))}}}),z=d(R);export{z as t};
@@ -1,4 +1,4 @@
1
- import{B as e,C as t,F as n,M as r,N as i,O as a,U as o,V as s,_t as c,a as l,b as u,d,et as f,f as p,ft as m,gt as h,k as g,l as _,mt as v,rt as y,tt as b,vt as x,w as S,x as C,yt as w,z as T}from"./BSCpFtzG.js";import{R as E,k as D}from"./2LwEn9gX.js";import{$ as O,At as k,Ct as A,D as j,Dt as M,F as N,L as P,O as F,Q as I,R as L,X as R,Y as z,_ as B,at as V,ct as ee,d as H,et as U,f as W,gt as G,h as K,it as q,kt as J,m as te,n as Y,o as X,p as Z,st as ne,t as Q,tt as $,u as re,ut as ie,wt as ae,xt as oe,yt as se,z as ce}from"./BDUjyaF4.js";import{D as le,F as ue,M as de,N as fe,O as pe,i as me,it as he,j as ge,n as _e,nt as ve,p as ye,r as be,rt as xe,t as Se,u as Ce}from"./rzGB_ojX.js";import{t as we}from"./BfGc7TJp.js";import{B as Te,G as Ee,K as De,U as Oe,V as ke,X as Ae,Y as je,g as Me,h as Ne,t as Pe,v as Fe,y as Ie}from"./Z8k0uMSI.js";import{a as Le,n as Re,o as ze,t as Be}from"./Bsc69G4x.js";import{i as Ve,r as He}from"./9X0fVBD7.js";import{T as Ue,d as We,m as Ge,s as Ke,t as qe}from"./ByGNWgAr.js";import{n as Je,o as Ye}from"./DPDqAD1e.js";import{t as Xe}from"./BFYNhG9S.js";import{n as Ze}from"./D95h62Jn.js";import{n as Qe}from"./OwJ1LJkF.js";import{t as $e}from"./dObsRdSQ.js";import{a as et}from"./R_WxTozV2.js";import{n as tt,t as nt}from"./CrFGZYVB2.js";import{t as rt}from"./B6M2WJWm2.js";import{t as it}from"./C9f8QMp12.js";import{t as at}from"./kZl6yT-12.js";var ot=e=>({color:e.colorLink,textDecoration:`none`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function st(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function ct(e){return e!=null&&e===e.window}function lt(e,t){if(typeof window>`u`)return 0;let n=t?`scrollTop`:`scrollLeft`,r=0;return ct(e)?r=e[t?`scrollY`:`scrollX`]:e instanceof Document?r=e.documentElement[n]:(e instanceof HTMLElement||e)&&(r=e[n]),e&&!ct(e)&&typeof r!=`number`&&(r=(e.ownerDocument??e).documentElement?.[n]),r}function ut(e){let{getContainer:t=()=>window,callback:n,duration:r=450}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t(),a=lt(i,!0),o=Date.now(),s=()=>{let t=Date.now()-o,c=st(t>r?r:t,a,e,r);ct(i)?i.scrollTo(window.scrollX,c):i instanceof Document?i.documentElement.scrollTop=c:i.scrollTop=c,t<r?Ae(s):typeof n==`function`&&n()};Ae(s)}function dt(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Ue(r,i[0],i[1])}return r}function ft(){let t=h({}),n=null,r=Ze();return T(()=>{n=r.value.subscribe(e=>{t.value=e})}),e(()=>{r.value.unsubscribe(n)}),t}function pt(e){let t=h();return b(()=>{t.value=e()},{flush:`sync`}),t}var mt=Symbol(`TreeContextKey`),ht=t({compatConfig:{MODE:3},name:`TreeContext`,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return o(mt,p(()=>e.value)),()=>n.default?.call(n)}}),gt=()=>a(mt,p(()=>({}))),_t=Symbol(`KeysStateKey`),vt=e=>{o(_t,e)},yt=()=>a(_t,{expandedKeys:h([]),selectedKeys:h([]),loadedKeys:h([]),loadingKeys:h([]),checkedKeys:h([]),halfCheckedKeys:h([]),expandedKeysSet:p(()=>new Set),selectedKeysSet:p(()=>new Set),loadedKeysSet:p(()=>new Set),loadingKeysSet:p(()=>new Set),checkedKeysSet:p(()=>new Set),halfCheckedKeysSet:p(()=>new Set),flattenNodes:h([])}),bt=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:i}=e,a=`${t}-indent-unit`,o=[];for(let e=0;e<n;e+=1)o.push(C(`span`,{key:e,class:{[a]:!0,[`${a}-start`]:r[e],[`${a}-end`]:i[e]}},null));return C(`span`,{"aria-hidden":`true`,class:`${t}-indent`},[o])},xt={eventKey:[String,Number],prefixCls:String,title:Q.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:Q.any,switcherIcon:Q.any,domRef:{type:Function}},St={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},Ct=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Q.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Q.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Q.any,switcherIcon:Q.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),wt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Tt=`open`,Et=`close`,Dt=`---`,Ot=t({compatConfig:{MODE:3},name:`ATreeNode`,inheritAttrs:!1,props:xt,isTreeNode:1,setup(e,t){let{attrs:n,slots:r,expose:i}=t;`slots`in e.data,`${Object.keys(e.data.slots||{}).map(e=>"`v-slot:"+e+"` ")}`;let a=h(!1),o=gt(),{expandedKeysSet:c,selectedKeysSet:l,loadedKeysSet:u,loadingKeysSet:d,checkedKeysSet:f,halfCheckedKeysSet:g}=yt(),{dragOverNodeKey:_,dropPosition:v,keyEntities:y}=o.value,b=p(()=>Jt(e.eventKey,{expandedKeysSet:c.value,selectedKeysSet:l.value,loadedKeysSet:u.value,loadingKeysSet:d.value,checkedKeysSet:f.value,halfCheckedKeysSet:g.value,dragOverNodeKey:_,dropPosition:v,keyEntities:y})),x=pt(()=>b.value.expanded),w=pt(()=>b.value.selected),E=pt(()=>b.value.checked),D=pt(()=>b.value.loaded),O=pt(()=>b.value.loading),j=pt(()=>b.value.halfChecked),M=pt(()=>b.value.dragOver),N=pt(()=>b.value.dragOverGapTop),P=pt(()=>b.value.dragOverGapBottom),F=pt(()=>b.value.pos),I=h(),L=p(()=>{let{eventKey:t}=e,{keyEntities:n}=o.value,{children:r}=n[t]||{};return!!(r||[]).length}),R=p(()=>{let{isLeaf:t}=e,{loadData:n}=o.value,r=L.value;return t===!1?!1:t||!n&&!r||n&&D.value&&!r}),z=p(()=>R.value?null:x.value?Tt:Et),B=p(()=>{let{disabled:t}=e,{disabled:n}=o.value;return!!(n||t)}),V=p(()=>{let{checkable:t}=e,{checkable:n}=o.value;return!n||t===!1?!1:n}),ee=p(()=>{let{selectable:t}=e,{selectable:n}=o.value;return typeof t==`boolean`?t:n}),H=p(()=>{let{data:t,active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o}=e;return J(J({active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o},t),{dataRef:t,data:t,isLeaf:R.value,checked:E.value,expanded:x.value,loading:O.value,selected:w.value,halfChecked:j.value})}),U=S(),W=p(()=>{let{eventKey:t}=e,{keyEntities:n}=o.value,{parent:r}=n[t]||{};return J(J({},Yt(J({},e,b.value))),{parent:r})}),G=m({eventData:W,eventKey:p(()=>e.eventKey),selectHandle:I,pos:F,key:U.vnode.key});i(G);let K=e=>{let{onNodeDoubleClick:t}=o.value;t(e,W.value)},q=e=>{if(B.value)return;let{onNodeSelect:t}=o.value;e.preventDefault(),t(e,W.value)},te=t=>{if(B.value)return;let{disableCheckbox:n}=e,{onNodeCheck:r}=o.value;if(!V.value||n)return;t.preventDefault();let i=!E.value;r(t,W.value,i)},Y=e=>{let{onNodeClick:t}=o.value;t(e,W.value),ee.value?q(e):te(e)},X=e=>{let{onNodeMouseEnter:t}=o.value;t(e,W.value)},Z=e=>{let{onNodeMouseLeave:t}=o.value;t(e,W.value)},ne=e=>{let{onNodeContextMenu:t}=o.value;t(e,W.value)},Q=e=>{let{onNodeDragStart:t}=o.value;e.stopPropagation(),a.value=!0,t(e,G);try{e.dataTransfer.setData(`text/plain`,``)}catch{}},$=e=>{let{onNodeDragEnter:t}=o.value;e.preventDefault(),e.stopPropagation(),t(e,G)},re=e=>{let{onNodeDragOver:t}=o.value;e.preventDefault(),e.stopPropagation(),t(e,G)},ie=e=>{let{onNodeDragLeave:t}=o.value;e.stopPropagation(),t(e,G)},ae=e=>{let{onNodeDragEnd:t}=o.value;e.stopPropagation(),a.value=!1,t(e,G)},oe=e=>{let{onNodeDrop:t}=o.value;e.preventDefault(),e.stopPropagation(),a.value=!1,t(e,G)},se=e=>{let{onNodeExpand:t}=o.value;O.value||t(e,W.value)},ce=()=>{let{data:t}=e,{draggable:n}=o.value;return!!(n&&(!n.nodeDraggable||n.nodeDraggable(t)))},le=()=>{let{draggable:e,prefixCls:t}=o.value;return e&&e?.icon?C(`span`,{class:`${t}-draggable-icon`},[e.icon]):null},ue=()=>{let{switcherIcon:t=r.switcherIcon||o.value.slots?.[e.data?.slots?.switcherIcon]}=e,{switcherIcon:n}=o.value,i=t||n;return typeof i==`function`?i(H.value):i},de=()=>{let{loadData:e,onNodeLoad:t}=o.value;O.value||e&&x.value&&!R.value&&!L.value&&!D.value&&t(W.value)};T(()=>{de()}),s(()=>{de()});let fe=()=>{let{prefixCls:e}=o.value,t=ue();if(R.value)return t===!1?null:C(`span`,{class:A(`${e}-switcher`,`${e}-switcher-noop`)},[t]);let n=A(`${e}-switcher`,`${e}-switcher_${x.value?Tt:Et}`);return t===!1?null:C(`span`,{onClick:se,class:n},[t])},pe=()=>{var t;let{disableCheckbox:n}=e,{prefixCls:r}=o.value,i=B.value;return V.value?C(`span`,{class:A(`${r}-checkbox`,E.value&&`${r}-checkbox-checked`,!E.value&&j.value&&`${r}-checkbox-indeterminate`,(i||n)&&`${r}-checkbox-disabled`),onClick:te},[(t=o.value).customCheckable?.call(t)]):null},me=()=>{let{prefixCls:e}=o.value;return C(`span`,{class:A(`${e}-iconEle`,`${e}-icon__${z.value||`docu`}`,O.value&&`${e}-icon_loading`)},null)},he=()=>{let{disabled:t,eventKey:n}=e,{draggable:r,dropLevelOffset:i,dropPosition:a,prefixCls:s,indent:c,dropIndicatorRender:l,dragOverNodeKey:u,direction:d}=o.value;return!t&&r!==!1&&u===n?l({dropPosition:a,dropLevelOffset:i,indent:c,prefixCls:s,direction:d}):null},_e=()=>{let{icon:t=r.icon,data:n}=e,i=r.title||o.value.slots?.[e.data?.slots?.title]||o.value.slots?.title||e.title,{prefixCls:s,showIcon:c,icon:l,loadData:u}=o.value,d=B.value,f=`${s}-node-content-wrapper`,p;if(c){let e=t||o.value.slots?.[n?.slots?.icon]||l;p=e?C(`span`,{class:A(`${s}-iconEle`,`${s}-icon__customize`)},[typeof e==`function`?e(H.value):e]):me()}else u&&O.value&&(p=me());let m;m=typeof i==`function`?i(H.value):i,m=m===void 0?Dt:m;let h=C(`span`,{class:`${s}-title`},[m]);return C(`span`,{ref:I,title:typeof i==`string`?i:``,class:A(`${f}`,`${f}-${z.value||`normal`}`,!d&&(w.value||a.value)&&`${s}-node-selected`),onMouseenter:X,onMouseleave:Z,onContextmenu:ne,onClick:Y,onDblclick:K},[p,h,he()])};return()=>{let t=J(J({},e),n),{eventKey:r,isLeaf:i,isStart:a,isEnd:s,domRef:c,active:l,data:u,onMousemove:d,selectable:f}=t,p=wt(t,[`eventKey`,`isLeaf`,`isStart`,`isEnd`,`domRef`,`active`,`data`,`onMousemove`,`selectable`]),{prefixCls:m,filterTreeNode:h,keyEntities:g,dropContainerKey:_,dropTargetKey:v,draggingNodeKey:y}=o.value,b=B.value,S=ge(p,{aria:!0,data:!0}),{level:T}=g[r]||{},D=s[s.length-1],F=ce(),I=!b&&F,L=y===r,R=f===void 0?void 0:{"aria-selected":!!f};return C(`div`,k(k({ref:c,class:A(n.class,`${m}-treenode`,{[`${m}-treenode-disabled`]:b,[`${m}-treenode-switcher-${x.value?`open`:`close`}`]:!i,[`${m}-treenode-checkbox-checked`]:E.value,[`${m}-treenode-checkbox-indeterminate`]:j.value,[`${m}-treenode-selected`]:w.value,[`${m}-treenode-loading`]:O.value,[`${m}-treenode-active`]:l,[`${m}-treenode-leaf-last`]:D,[`${m}-treenode-draggable`]:I,dragging:L,"drop-target":v===r,"drop-container":_===r,"drag-over":!b&&M.value,"drag-over-gap-top":!b&&N.value,"drag-over-gap-bottom":!b&&P.value,"filter-node":h&&h(W.value)}),style:n.style,draggable:I,"aria-grabbed":L,onDragstart:I?Q:void 0,onDragenter:F?$:void 0,onDragover:F?re:void 0,onDragleave:F?ie:void 0,onDrop:F?oe:void 0,onDragend:F?ae:void 0,onMousemove:d},R),S),[C(bt,{prefixCls:m,level:T,isStart:a,isEnd:s},null),le(),fe(),pe(),_e()])}}});function kt(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function At(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function jt(e){return e.split(`-`)}function Mt(e,t){return`${e}-${t}`}function Nt(e){return e&&e.type&&e.type.isTreeNode}function Pt(e,t){let n=[],r=t[e];function i(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(e=>{let{key:t,children:r}=e;n.push(t),i(r)})}return i(r.children),n}function Ft(e){if(e.parent){let t=jt(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function It(e){let t=jt(e.pos);return Number(t[t.length-1])===0}function Lt(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=s[n.eventKey];if(d<f+p/2){let e=o.findIndex(e=>e.key===h.key);h=s[o[e<=0?0:e-1].key]}let g=h.key,_=h,v=h.key,y=0,b=0;if(!c.has(g))for(let e=0;e<m&&Ft(h);e+=1)h=h.parent,b+=1;let x=t.eventData,S=h.node,C=!0;return It(h)&&h.level===0&&d<f+p/2&&a({dragNode:x,dropNode:S,dropPosition:-1})&&h.key===n.eventKey?y=-1:(_.children||[]).length&&c.has(v)?a({dragNode:x,dropNode:S,dropPosition:0})?y=0:C=!1:b===0?m>-1.5?a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:0})?y=0:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1,{dropPosition:y,dropLevelOffset:b,dropTargetKey:h.key,dropTargetPos:h.pos,dragOverNodeKey:v,dropContainerKey:y===0?null:h.parent?.key||null,dropAllowed:C}}function Rt(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function zt(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Bt(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=t[e];if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var Vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ht(e,t){return e??t}function Ut(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function Wt(e){function t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V(e).map(e=>{if(!Nt(e))return null;let n=e.children||{},r=e.key,i={};for(let[t,n]of Object.entries(e.props))i[ae(t)]=n;let{isLeaf:a,checkable:o,selectable:s,disabled:c,disableCheckbox:l}=i,u={isLeaf:a||a===``||void 0,checkable:o||o===``||void 0,selectable:s||s===``||void 0,disabled:c||c===``||void 0,disableCheckbox:l||l===``||void 0},d=J(J({},i),u),{title:f=n.title?.call(n,d),icon:p=n.icon?.call(n,d),switcherIcon:m=n.switcherIcon?.call(n,d)}=i,h=Vt(i,[`title`,`icon`,`switcherIcon`]),g=n.default?.call(n),_=J(J(J({},h),{title:f,icon:p,switcherIcon:m,key:r,isLeaf:a}),u),v=t(g);return v.length&&(_.children=v),_})}return t(e)}function Gt(e,t,n){let{_title:r,key:i,children:a}=Ut(n),o=new Set(t===!0?[]:t),s=[];function c(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.map((l,u)=>{let d=Mt(n?n.pos:`0`,u),f=Ht(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=J(J({},De(l,[...r,i,a])),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),m.children=t===!0||o.has(f)?c(l[a]||[],m):[],m})}return c(e),s}function Kt(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r||={};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=Ut(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>Ht(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?Mt(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function qt(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Kt(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=Ht(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function Jt(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:i,loadingKeysSet:a,checkedKeysSet:o,halfCheckedKeysSet:s,dragOverNodeKey:c,dropPosition:l,keyEntities:u}=t,d=u[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:i.has(e),loading:a.has(e),checked:o.has(e),halfChecked:s.has(e),pos:String(d?d.pos:``),parent:d.parent,dragOver:c===e&&l===0,dragOverGapTop:c===e&&l===-1,dragOverGapBottom:c===e&&l===1}}function Yt(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m=J(J({dataRef:t},t),{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p,key:p});return`props`in m||Object.defineProperty(m,"props",{get(){return e}}),m}function Xt(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Zt(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Qt(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(e=>{let{key:t}=e,n=i.has(t);s&&!n&&(s=!1),!c&&(n||a.has(t))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Xt(a,i))}}function $t(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(e=>{let{key:t}=e,n=a.has(t);r&&!n&&(r=!1),!c&&(n||o.has(t))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Xt(o,a))}}function en(e,t,n,r,i,a){let o=[],s;s=a||Zt;let c=new Set(e.filter(e=>{let t=!!n[e];return t||o.push(e),t}));o.length,`${o.slice(0,100).map(e=>`'${e}'`).join(`, `)}`;let l;return l=t===!0?Qt(c,i,r,s):$t(c,t.halfCheckedKeys,i,r,s),l}function tn(e){let t=v(0),n=h();return b(()=>{let r=new Map,i=0,a=e.value||{};for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let t=a[e],{level:n}=t,o=r.get(n);o||(o=new Set,r.set(n,o)),o.add(t),i=Math.max(i,n)}t.value=i,n.value=r}),{maxLevel:t,levelEntities:n}}var nn={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function rn(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){an(e,t,n[t])})}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e,t){var n=rn({},e,t.attrs);return C(Ve,rn({},n,{icon:nn}),null)};on.displayName=`DoubleLeftOutlined`,on.inheritAttrs=!1;var sn={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function cn(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){ln(e,t,n[t])})}return e}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var un=function(e,t){var n=cn({},e,t.attrs);return C(Ve,cn({},n,{icon:sn}),null)};un.displayName=`DoubleRightOutlined`,un.inheritAttrs=!1;var dn=t({name:`MiniSelect`,compatConfig:{MODE:3},inheritAttrs:!1,props:Re(),Option:Be.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{let t=J(J(J({},e),{size:`small`}),n);return C(Be,t,r)}}}),fn=t({name:`MiddleSelect`,inheritAttrs:!1,props:Re(),Option:Be.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{let t=J(J(J({},e),{size:`middle`}),n);return C(Be,t,r)}}}),pn=t({compatConfig:{MODE:3},name:`Pager`,inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Q.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:[`click`,`keypress`],setup(e,t){let{emit:n,attrs:r}=t,i=()=>{n(`click`,e.page)},a=t=>{n(`keypress`,t,i,e.page)};return()=>{let{showTitle:t,page:n,itemRender:o}=e,{class:s,style:c}=r,l=`${e.rootPrefixCls}-item`,u=A(l,`${l}-${e.page}`,{[`${l}-active`]:e.active,[`${l}-disabled`]:!e.page},s);return C(`li`,{onClick:i,onKeypress:a,title:t?String(n):null,tabindex:`0`,class:u,style:c},[o({page:n,type:`page`,originalElement:C(`a`,{rel:`nofollow`},[n])})])}}}),mn={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},hn=t({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Q.any,current:Number,pageSizeOptions:Q.array.def([`10`,`20`,`50`,`100`]),pageSize:Number,buildOptionText:Function,locale:Q.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Q.any},setup(e){let t=v(``),n=p(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=t=>`${t.value} ${e.locale.items_per_page}`,i=e=>{let{value:n}=e.target;t.value!==n&&(t.value=n)},a=r=>{let{goButton:i,quickGo:a,rootPrefixCls:o}=e;if(!(i||t.value===``)){if(r.relatedTarget&&(r.relatedTarget.className.indexOf(`${o}-item-link`)>=0||r.relatedTarget.className.indexOf(`${o}-item`)>=0)){t.value=``;return}a(n.value),t.value=``}},o=r=>{t.value!==``&&(r.keyCode===mn.ENTER||r.type===`click`)&&(e.quickGo(n.value),t.value=``)},s=p(()=>{let{pageSize:t,pageSizeOptions:n}=e;return n.some(e=>e.toString()===t.toString())?n:n.concat([t.toString()]).sort((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t)))});return()=>{let{rootPrefixCls:n,locale:c,changeSize:l,quickGo:u,goButton:d,selectComponentClass:f,selectPrefixCls:p,pageSize:m,disabled:h}=e,g=`${n}-options`,_=null,v=null,y=null;if(!l&&!u)return null;if(l&&f){let t=e.buildOptionText||r,n=s.value.map((e,n)=>C(f.Option,{key:n,value:e},{default:()=>[t({value:e})]}));_=C(f,{disabled:h,prefixCls:p,showSearch:!1,class:`${g}-size-changer`,optionLabelProp:`children`,value:(m||s.value[0]).toString(),onChange:e=>l(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return u&&(d&&(y=typeof d==`boolean`?C(`button`,{type:`button`,onClick:o,onKeyup:o,disabled:h,class:`${g}-quick-jumper-button`},[c.jump_to_confirm]):C(`span`,{onClick:o,onKeyup:o},[d])),v=C(`div`,{class:`${g}-quick-jumper`},[c.jump_to,C(de,{disabled:h,type:`text`,value:t.value,onInput:i,onChange:i,onKeyup:o,onBlur:a},null),c.page,y])),C(`li`,{class:`${g}`},[_,v])}}}),gn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _n(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e}function vn(e){let{originalElement:t}=e;return t}function yn(e,t,n){let r=e===void 0?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}var bn=t({compatConfig:{MODE:3},name:`Pagination`,mixins:[ue],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Q.string.def(`rc-pagination`),selectPrefixCls:Q.string.def(`rc-select`),current:Number,defaultCurrent:Q.number.def(1),total:Q.number.def(0),pageSize:Number,defaultPageSize:Q.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Q.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Q.oneOfType([Q.looseBool,Q.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Q.arrayOf(Q.oneOfType([Q.number,Q.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Q.object.def(at),itemRender:Q.func.def(vn),prevIcon:Q.any,nextIcon:Q.any,jumpPrevIcon:Q.any,jumpNextIcon:Q.any,totalBoundaryShowSizeChanger:Q.number.def(50)},data(){let e=this.$props,t=Ce([this.current,this.defaultCurrent]),n=Ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,yn(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){let t={},n=this.stateCurrent,r=yn(e,this.$data,this.$props);n=n>r?r:n,G(this,`current`)||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){let e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}})},total(){let e={},t=yn(this.pageSize,this.$data,this.$props);if(G(this,`current`)){let n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=n===0&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(yn(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){let{prefixCls:n}=this.$props;return ie(this,e,this.$props)||C(`button`,{type:`button`,"aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){let t=e.target.value,n=yn(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data,i;return i=t===``?t:isNaN(Number(t))?r:t>=n?n:Number(t),i},isValid(e){return _n(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){let{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===mn.ARROW_UP||e.keyCode===mn.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){let t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===mn.ENTER?this.handleChange(t):e.keyCode===mn.ARROW_UP?this.handleChange(t-1):e.keyCode===mn.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent,n=t,r=yn(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e==`number`&&(G(this,`pageSize`)||this.setState({statePageSize:e}),G(this,`current`)||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit(`update:pageSize`,e),t!==n&&this.__emit(`update:current`,t),this.__emit(`showSizeChange`,t,e),this.__emit(`change`,t,e)},handleChange(e){let{disabled:t}=this.$props,n=e;if(this.isValid(n)&&!t){let e=yn(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),G(this,`current`)||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit(`update:current`,n),this.__emit(`change`,n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<yn(void 0,this.$data,this.$props)},getShowSizeChanger(){let{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return e===void 0?t>n:e},runIfEnter(e,t){(e.key===`Enter`||e.charCode===13)&&(e.preventDefault(),t(...[...arguments].slice(2)))},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===mn.ENTER||e.type===`click`)&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){let{itemRender:t}=this.$props,n=t({page:e,type:`prev`,originalElement:this.getItemIcon(`prevIcon`,`prev page`)}),r=!this.hasPrev();return se(n)?ke(n,r?{disabled:r}:{}):n},renderNext(e){let{itemRender:t}=this.$props,n=t({page:e,type:`next`,originalElement:this.getItemIcon(`nextIcon`,`next page`)}),r=!this.hasNext();return se(n)?ke(n,r?{disabled:r}:{}):n}},render(){let{prefixCls:e,disabled:t,hideOnSinglePage:n,total:r,locale:i,showQuickJumper:a,showLessItems:o,showTitle:s,showTotal:c,simple:l,itemRender:d,showPrevNextJumpers:f,jumpPrevIcon:p,jumpNextIcon:m,selectComponentClass:h,selectPrefixCls:g,pageSizeOptions:_}=this.$props,{stateCurrent:v,statePageSize:y}=this,b=oe(this.$attrs).extraAttrs,{class:x}=b,S=gn(b,[`class`]);if(n===!0&&this.total<=y)return null;let w=yn(void 0,this.$data,this.$props),T=[],E=null,D=null,O=null,j=null,M=null,N=a&&a.goButton,P=o?1:2,F=v-1>0?v-1:0,I=v+1<w?v+1:w,L=this.hasPrev(),R=this.hasNext();if(l)return N&&(M=typeof N==`boolean`?C(`button`,{type:`button`,onClick:this.handleGoTO,onKeyup:this.handleGoTO},[i.jump_to_confirm]):C(`span`,{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[N]),M=C(`li`,{title:s?`${i.jump_to}${v}/${w}`:null,class:`${e}-simple-pager`},[M])),C(`ul`,k({class:A(`${e} ${e}-simple`,{[`${e}-disabled`]:t},x)},S),[C(`li`,{title:s?i.prev_page:null,onClick:this.prev,tabindex:L?0:null,onKeypress:this.runIfEnterPrev,class:A(`${e}-prev`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderPrev(F)]),C(`li`,{title:s?`${v}/${w}`:null,class:`${e}-simple-pager`},[C(de,{type:`text`,value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:`3`},null),C(`span`,{class:`${e}-slash`},[u(`/`)]),w]),C(`li`,{title:s?i.next_page:null,onClick:this.next,tabindex:R?0:null,onKeypress:this.runIfEnterNext,class:A(`${e}-next`,{[`${e}-disabled`]:!R}),"aria-disabled":!R},[this.renderNext(I)]),M]);if(w<=3+P*2){let t={locale:i,rootPrefixCls:e,showTitle:s,itemRender:d,onClick:this.handleChange,onKeypress:this.runIfEnter};w||T.push(C(pn,k(k({},t),{},{key:`noPager`,page:1,class:`${e}-item-disabled`}),null));for(let e=1;e<=w;e+=1){let n=v===e;T.push(C(pn,k(k({},t),{},{key:e,page:e,active:n}),null))}}else{let t=o?i.prev_3:i.prev_5,n=o?i.next_3:i.next_5;f&&(E=C(`li`,{title:this.showTitle?t:null,key:`prev`,onClick:this.jumpPrev,tabindex:`0`,onKeypress:this.runIfEnterJumpPrev,class:A(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!p})},[d({page:this.getJumpPrevPage(),type:`jump-prev`,originalElement:this.getItemIcon(`jumpPrevIcon`,`prev page`)})]),D=C(`li`,{title:this.showTitle?n:null,key:`next`,tabindex:`0`,onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:A(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!m})},[d({page:this.getJumpNextPage(),type:`jump-next`,originalElement:this.getItemIcon(`jumpNextIcon`,`next page`)})])),j=C(pn,{locale:i,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,active:!1,showTitle:s,itemRender:d},null),O=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:s,itemRender:d},null);let r=Math.max(1,v-P),a=Math.min(v+P,w);v-1<=P&&(a=1+P*2),w-v<=P&&(r=w-P*2);for(let t=r;t<=a;t+=1){let n=v===t;T.push(C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:t,page:t,active:n,showTitle:s,itemRender:d},null))}v-1>=P*2&&v!==3&&(T[0]=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:r,page:r,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.unshift(E)),w-v>=P*2&&v!==w-2&&(T[T.length-1]=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:a,page:a,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.push(D)),r!==1&&T.unshift(O),a!==w&&T.push(j)}let z=null;c&&(z=C(`li`,{class:`${e}-total-text`},[c(r,[r===0?0:(v-1)*y+1,v*y>r?r:v*y])]));let B=!L||!w,V=!R||!w,ee=this.buildOptionText||this.$slots.buildOptionText;return C(`ul`,k(k({unselectable:`on`,ref:`paginationNode`},S),{},{class:A({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[z,C(`li`,{title:s?i.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:A(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(F)]),T,C(`li`,{title:s?i.next_page:null,onClick:this.next,tabindex:V?null:0,onKeypress:this.runIfEnterNext,class:A(`${e}-next`,{[`${e}-disabled`]:V}),"aria-disabled":V},[this.renderNext(I)]),C(hn,{disabled:t,locale:i,rootPrefixCls:e,selectComponentClass:h,selectPrefixCls:g,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:y,pageSizeOptions:_,buildOptionText:ee||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:N},null)])}}),xn=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`&${t}-mini`]:{[`
1
+ import{B as e,C as t,F as n,M as r,N as i,O as a,U as o,V as s,_t as c,a as l,b as u,d,et as f,f as p,ft as m,gt as h,k as g,l as _,mt as v,rt as y,tt as b,vt as x,w as S,x as C,yt as w,z as T}from"./BSCpFtzG.js";import{R as E,k as D}from"./2LwEn9gX.js";import{$ as O,At as k,Ct as A,D as j,Dt as M,F as N,L as P,O as F,Q as I,R as L,X as R,Y as z,_ as B,at as V,ct as ee,d as H,et as U,f as W,gt as G,h as K,it as q,kt as J,m as te,n as Y,o as X,p as Z,st as ne,t as Q,tt as $,u as re,ut as ie,wt as ae,xt as oe,yt as se,z as ce}from"./BDUjyaF4.js";import{D as le,F as ue,M as de,N as fe,O as pe,i as me,it as he,j as ge,n as _e,nt as ve,p as ye,r as be,rt as xe,t as Se,u as Ce}from"./3612gD2V.js";import{t as we}from"./BfGc7TJp.js";import{B as Te,G as Ee,K as De,U as Oe,V as ke,X as Ae,Y as je,g as Me,h as Ne,t as Pe,v as Fe,y as Ie}from"./Bt_HDizI.js";import{a as Le,n as Re,o as ze,t as Be}from"./VnIWJ0ts.js";import{h as Ve,m as He}from"./BsMpJf7S.js";import{T as Ue,d as We,m as Ge,s as Ke,t as qe}from"./Do88WZG2.js";import{n as Je,o as Ye}from"./BSXx2vqR.js";import{t as Xe}from"./DCXIGxzT.js";import{n as Ze}from"./D95h62Jn.js";import{n as Qe}from"./CsCpu2Zh.js";import{t as $e}from"./DZk24ego.js";import{a as et}from"./Du-eSpo2.js";import{n as tt,t as nt}from"./DYZBdSSg2.js";import{t as rt}from"./Dk6pq9JB2.js";import{t as it}from"./C9f8QMp12.js";import{t as at}from"./kZl6yT-12.js";var ot=e=>({color:e.colorLink,textDecoration:`none`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function st(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function ct(e){return e!=null&&e===e.window}function lt(e,t){if(typeof window>`u`)return 0;let n=t?`scrollTop`:`scrollLeft`,r=0;return ct(e)?r=e[t?`scrollY`:`scrollX`]:e instanceof Document?r=e.documentElement[n]:(e instanceof HTMLElement||e)&&(r=e[n]),e&&!ct(e)&&typeof r!=`number`&&(r=(e.ownerDocument??e).documentElement?.[n]),r}function ut(e){let{getContainer:t=()=>window,callback:n,duration:r=450}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t(),a=lt(i,!0),o=Date.now(),s=()=>{let t=Date.now()-o,c=st(t>r?r:t,a,e,r);ct(i)?i.scrollTo(window.scrollX,c):i instanceof Document?i.documentElement.scrollTop=c:i.scrollTop=c,t<r?Ae(s):typeof n==`function`&&n()};Ae(s)}function dt(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Ue(r,i[0],i[1])}return r}function ft(){let t=h({}),n=null,r=Ze();return T(()=>{n=r.value.subscribe(e=>{t.value=e})}),e(()=>{r.value.unsubscribe(n)}),t}function pt(e){let t=h();return b(()=>{t.value=e()},{flush:`sync`}),t}var mt=Symbol(`TreeContextKey`),ht=t({compatConfig:{MODE:3},name:`TreeContext`,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return o(mt,p(()=>e.value)),()=>n.default?.call(n)}}),gt=()=>a(mt,p(()=>({}))),_t=Symbol(`KeysStateKey`),vt=e=>{o(_t,e)},yt=()=>a(_t,{expandedKeys:h([]),selectedKeys:h([]),loadedKeys:h([]),loadingKeys:h([]),checkedKeys:h([]),halfCheckedKeys:h([]),expandedKeysSet:p(()=>new Set),selectedKeysSet:p(()=>new Set),loadedKeysSet:p(()=>new Set),loadingKeysSet:p(()=>new Set),checkedKeysSet:p(()=>new Set),halfCheckedKeysSet:p(()=>new Set),flattenNodes:h([])}),bt=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:i}=e,a=`${t}-indent-unit`,o=[];for(let e=0;e<n;e+=1)o.push(C(`span`,{key:e,class:{[a]:!0,[`${a}-start`]:r[e],[`${a}-end`]:i[e]}},null));return C(`span`,{"aria-hidden":`true`,class:`${t}-indent`},[o])},xt={eventKey:[String,Number],prefixCls:String,title:Q.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:Q.any,switcherIcon:Q.any,domRef:{type:Function}},St={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},Ct=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Q.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Q.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Q.any,switcherIcon:Q.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),wt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Tt=`open`,Et=`close`,Dt=`---`,Ot=t({compatConfig:{MODE:3},name:`ATreeNode`,inheritAttrs:!1,props:xt,isTreeNode:1,setup(e,t){let{attrs:n,slots:r,expose:i}=t;`slots`in e.data,`${Object.keys(e.data.slots||{}).map(e=>"`v-slot:"+e+"` ")}`;let a=h(!1),o=gt(),{expandedKeysSet:c,selectedKeysSet:l,loadedKeysSet:u,loadingKeysSet:d,checkedKeysSet:f,halfCheckedKeysSet:g}=yt(),{dragOverNodeKey:_,dropPosition:v,keyEntities:y}=o.value,b=p(()=>Jt(e.eventKey,{expandedKeysSet:c.value,selectedKeysSet:l.value,loadedKeysSet:u.value,loadingKeysSet:d.value,checkedKeysSet:f.value,halfCheckedKeysSet:g.value,dragOverNodeKey:_,dropPosition:v,keyEntities:y})),x=pt(()=>b.value.expanded),w=pt(()=>b.value.selected),E=pt(()=>b.value.checked),D=pt(()=>b.value.loaded),O=pt(()=>b.value.loading),j=pt(()=>b.value.halfChecked),M=pt(()=>b.value.dragOver),N=pt(()=>b.value.dragOverGapTop),P=pt(()=>b.value.dragOverGapBottom),F=pt(()=>b.value.pos),I=h(),L=p(()=>{let{eventKey:t}=e,{keyEntities:n}=o.value,{children:r}=n[t]||{};return!!(r||[]).length}),R=p(()=>{let{isLeaf:t}=e,{loadData:n}=o.value,r=L.value;return t===!1?!1:t||!n&&!r||n&&D.value&&!r}),z=p(()=>R.value?null:x.value?Tt:Et),B=p(()=>{let{disabled:t}=e,{disabled:n}=o.value;return!!(n||t)}),V=p(()=>{let{checkable:t}=e,{checkable:n}=o.value;return!n||t===!1?!1:n}),ee=p(()=>{let{selectable:t}=e,{selectable:n}=o.value;return typeof t==`boolean`?t:n}),H=p(()=>{let{data:t,active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o}=e;return J(J({active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o},t),{dataRef:t,data:t,isLeaf:R.value,checked:E.value,expanded:x.value,loading:O.value,selected:w.value,halfChecked:j.value})}),U=S(),W=p(()=>{let{eventKey:t}=e,{keyEntities:n}=o.value,{parent:r}=n[t]||{};return J(J({},Yt(J({},e,b.value))),{parent:r})}),G=m({eventData:W,eventKey:p(()=>e.eventKey),selectHandle:I,pos:F,key:U.vnode.key});i(G);let K=e=>{let{onNodeDoubleClick:t}=o.value;t(e,W.value)},q=e=>{if(B.value)return;let{onNodeSelect:t}=o.value;e.preventDefault(),t(e,W.value)},te=t=>{if(B.value)return;let{disableCheckbox:n}=e,{onNodeCheck:r}=o.value;if(!V.value||n)return;t.preventDefault();let i=!E.value;r(t,W.value,i)},Y=e=>{let{onNodeClick:t}=o.value;t(e,W.value),ee.value?q(e):te(e)},X=e=>{let{onNodeMouseEnter:t}=o.value;t(e,W.value)},Z=e=>{let{onNodeMouseLeave:t}=o.value;t(e,W.value)},ne=e=>{let{onNodeContextMenu:t}=o.value;t(e,W.value)},Q=e=>{let{onNodeDragStart:t}=o.value;e.stopPropagation(),a.value=!0,t(e,G);try{e.dataTransfer.setData(`text/plain`,``)}catch{}},$=e=>{let{onNodeDragEnter:t}=o.value;e.preventDefault(),e.stopPropagation(),t(e,G)},re=e=>{let{onNodeDragOver:t}=o.value;e.preventDefault(),e.stopPropagation(),t(e,G)},ie=e=>{let{onNodeDragLeave:t}=o.value;e.stopPropagation(),t(e,G)},ae=e=>{let{onNodeDragEnd:t}=o.value;e.stopPropagation(),a.value=!1,t(e,G)},oe=e=>{let{onNodeDrop:t}=o.value;e.preventDefault(),e.stopPropagation(),a.value=!1,t(e,G)},se=e=>{let{onNodeExpand:t}=o.value;O.value||t(e,W.value)},ce=()=>{let{data:t}=e,{draggable:n}=o.value;return!!(n&&(!n.nodeDraggable||n.nodeDraggable(t)))},le=()=>{let{draggable:e,prefixCls:t}=o.value;return e&&e?.icon?C(`span`,{class:`${t}-draggable-icon`},[e.icon]):null},ue=()=>{let{switcherIcon:t=r.switcherIcon||o.value.slots?.[e.data?.slots?.switcherIcon]}=e,{switcherIcon:n}=o.value,i=t||n;return typeof i==`function`?i(H.value):i},de=()=>{let{loadData:e,onNodeLoad:t}=o.value;O.value||e&&x.value&&!R.value&&!L.value&&!D.value&&t(W.value)};T(()=>{de()}),s(()=>{de()});let fe=()=>{let{prefixCls:e}=o.value,t=ue();if(R.value)return t===!1?null:C(`span`,{class:A(`${e}-switcher`,`${e}-switcher-noop`)},[t]);let n=A(`${e}-switcher`,`${e}-switcher_${x.value?Tt:Et}`);return t===!1?null:C(`span`,{onClick:se,class:n},[t])},pe=()=>{var t;let{disableCheckbox:n}=e,{prefixCls:r}=o.value,i=B.value;return V.value?C(`span`,{class:A(`${r}-checkbox`,E.value&&`${r}-checkbox-checked`,!E.value&&j.value&&`${r}-checkbox-indeterminate`,(i||n)&&`${r}-checkbox-disabled`),onClick:te},[(t=o.value).customCheckable?.call(t)]):null},me=()=>{let{prefixCls:e}=o.value;return C(`span`,{class:A(`${e}-iconEle`,`${e}-icon__${z.value||`docu`}`,O.value&&`${e}-icon_loading`)},null)},he=()=>{let{disabled:t,eventKey:n}=e,{draggable:r,dropLevelOffset:i,dropPosition:a,prefixCls:s,indent:c,dropIndicatorRender:l,dragOverNodeKey:u,direction:d}=o.value;return!t&&r!==!1&&u===n?l({dropPosition:a,dropLevelOffset:i,indent:c,prefixCls:s,direction:d}):null},_e=()=>{let{icon:t=r.icon,data:n}=e,i=r.title||o.value.slots?.[e.data?.slots?.title]||o.value.slots?.title||e.title,{prefixCls:s,showIcon:c,icon:l,loadData:u}=o.value,d=B.value,f=`${s}-node-content-wrapper`,p;if(c){let e=t||o.value.slots?.[n?.slots?.icon]||l;p=e?C(`span`,{class:A(`${s}-iconEle`,`${s}-icon__customize`)},[typeof e==`function`?e(H.value):e]):me()}else u&&O.value&&(p=me());let m;m=typeof i==`function`?i(H.value):i,m=m===void 0?Dt:m;let h=C(`span`,{class:`${s}-title`},[m]);return C(`span`,{ref:I,title:typeof i==`string`?i:``,class:A(`${f}`,`${f}-${z.value||`normal`}`,!d&&(w.value||a.value)&&`${s}-node-selected`),onMouseenter:X,onMouseleave:Z,onContextmenu:ne,onClick:Y,onDblclick:K},[p,h,he()])};return()=>{let t=J(J({},e),n),{eventKey:r,isLeaf:i,isStart:a,isEnd:s,domRef:c,active:l,data:u,onMousemove:d,selectable:f}=t,p=wt(t,[`eventKey`,`isLeaf`,`isStart`,`isEnd`,`domRef`,`active`,`data`,`onMousemove`,`selectable`]),{prefixCls:m,filterTreeNode:h,keyEntities:g,dropContainerKey:_,dropTargetKey:v,draggingNodeKey:y}=o.value,b=B.value,S=ge(p,{aria:!0,data:!0}),{level:T}=g[r]||{},D=s[s.length-1],F=ce(),I=!b&&F,L=y===r,R=f===void 0?void 0:{"aria-selected":!!f};return C(`div`,k(k({ref:c,class:A(n.class,`${m}-treenode`,{[`${m}-treenode-disabled`]:b,[`${m}-treenode-switcher-${x.value?`open`:`close`}`]:!i,[`${m}-treenode-checkbox-checked`]:E.value,[`${m}-treenode-checkbox-indeterminate`]:j.value,[`${m}-treenode-selected`]:w.value,[`${m}-treenode-loading`]:O.value,[`${m}-treenode-active`]:l,[`${m}-treenode-leaf-last`]:D,[`${m}-treenode-draggable`]:I,dragging:L,"drop-target":v===r,"drop-container":_===r,"drag-over":!b&&M.value,"drag-over-gap-top":!b&&N.value,"drag-over-gap-bottom":!b&&P.value,"filter-node":h&&h(W.value)}),style:n.style,draggable:I,"aria-grabbed":L,onDragstart:I?Q:void 0,onDragenter:F?$:void 0,onDragover:F?re:void 0,onDragleave:F?ie:void 0,onDrop:F?oe:void 0,onDragend:F?ae:void 0,onMousemove:d},R),S),[C(bt,{prefixCls:m,level:T,isStart:a,isEnd:s},null),le(),fe(),pe(),_e()])}}});function kt(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function At(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function jt(e){return e.split(`-`)}function Mt(e,t){return`${e}-${t}`}function Nt(e){return e&&e.type&&e.type.isTreeNode}function Pt(e,t){let n=[],r=t[e];function i(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(e=>{let{key:t,children:r}=e;n.push(t),i(r)})}return i(r.children),n}function Ft(e){if(e.parent){let t=jt(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function It(e){let t=jt(e.pos);return Number(t[t.length-1])===0}function Lt(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=s[n.eventKey];if(d<f+p/2){let e=o.findIndex(e=>e.key===h.key);h=s[o[e<=0?0:e-1].key]}let g=h.key,_=h,v=h.key,y=0,b=0;if(!c.has(g))for(let e=0;e<m&&Ft(h);e+=1)h=h.parent,b+=1;let x=t.eventData,S=h.node,C=!0;return It(h)&&h.level===0&&d<f+p/2&&a({dragNode:x,dropNode:S,dropPosition:-1})&&h.key===n.eventKey?y=-1:(_.children||[]).length&&c.has(v)?a({dragNode:x,dropNode:S,dropPosition:0})?y=0:C=!1:b===0?m>-1.5?a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:0})?y=0:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1,{dropPosition:y,dropLevelOffset:b,dropTargetKey:h.key,dropTargetPos:h.pos,dragOverNodeKey:v,dropContainerKey:y===0?null:h.parent?.key||null,dropAllowed:C}}function Rt(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function zt(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Bt(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=t[e];if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var Vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ht(e,t){return e??t}function Ut(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function Wt(e){function t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V(e).map(e=>{if(!Nt(e))return null;let n=e.children||{},r=e.key,i={};for(let[t,n]of Object.entries(e.props))i[ae(t)]=n;let{isLeaf:a,checkable:o,selectable:s,disabled:c,disableCheckbox:l}=i,u={isLeaf:a||a===``||void 0,checkable:o||o===``||void 0,selectable:s||s===``||void 0,disabled:c||c===``||void 0,disableCheckbox:l||l===``||void 0},d=J(J({},i),u),{title:f=n.title?.call(n,d),icon:p=n.icon?.call(n,d),switcherIcon:m=n.switcherIcon?.call(n,d)}=i,h=Vt(i,[`title`,`icon`,`switcherIcon`]),g=n.default?.call(n),_=J(J(J({},h),{title:f,icon:p,switcherIcon:m,key:r,isLeaf:a}),u),v=t(g);return v.length&&(_.children=v),_})}return t(e)}function Gt(e,t,n){let{_title:r,key:i,children:a}=Ut(n),o=new Set(t===!0?[]:t),s=[];function c(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.map((l,u)=>{let d=Mt(n?n.pos:`0`,u),f=Ht(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=J(J({},De(l,[...r,i,a])),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),m.children=t===!0||o.has(f)?c(l[a]||[],m):[],m})}return c(e),s}function Kt(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r||={};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=Ut(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>Ht(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?Mt(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function qt(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Kt(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=Ht(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function Jt(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:i,loadingKeysSet:a,checkedKeysSet:o,halfCheckedKeysSet:s,dragOverNodeKey:c,dropPosition:l,keyEntities:u}=t,d=u[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:i.has(e),loading:a.has(e),checked:o.has(e),halfChecked:s.has(e),pos:String(d?d.pos:``),parent:d.parent,dragOver:c===e&&l===0,dragOverGapTop:c===e&&l===-1,dragOverGapBottom:c===e&&l===1}}function Yt(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m=J(J({dataRef:t},t),{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p,key:p});return`props`in m||Object.defineProperty(m,"props",{get(){return e}}),m}function Xt(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Zt(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Qt(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(e=>{let{key:t}=e,n=i.has(t);s&&!n&&(s=!1),!c&&(n||a.has(t))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Xt(a,i))}}function $t(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(e=>{let{key:t}=e,n=a.has(t);r&&!n&&(r=!1),!c&&(n||o.has(t))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Xt(o,a))}}function en(e,t,n,r,i,a){let o=[],s;s=a||Zt;let c=new Set(e.filter(e=>{let t=!!n[e];return t||o.push(e),t}));o.length,`${o.slice(0,100).map(e=>`'${e}'`).join(`, `)}`;let l;return l=t===!0?Qt(c,i,r,s):$t(c,t.halfCheckedKeys,i,r,s),l}function tn(e){let t=v(0),n=h();return b(()=>{let r=new Map,i=0,a=e.value||{};for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let t=a[e],{level:n}=t,o=r.get(n);o||(o=new Set,r.set(n,o)),o.add(t),i=Math.max(i,n)}t.value=i,n.value=r}),{maxLevel:t,levelEntities:n}}var nn={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function rn(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){an(e,t,n[t])})}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e,t){var n=rn({},e,t.attrs);return C(Ve,rn({},n,{icon:nn}),null)};on.displayName=`DoubleLeftOutlined`,on.inheritAttrs=!1;var sn={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function cn(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){ln(e,t,n[t])})}return e}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var un=function(e,t){var n=cn({},e,t.attrs);return C(Ve,cn({},n,{icon:sn}),null)};un.displayName=`DoubleRightOutlined`,un.inheritAttrs=!1;var dn=t({name:`MiniSelect`,compatConfig:{MODE:3},inheritAttrs:!1,props:Re(),Option:Be.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{let t=J(J(J({},e),{size:`small`}),n);return C(Be,t,r)}}}),fn=t({name:`MiddleSelect`,inheritAttrs:!1,props:Re(),Option:Be.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{let t=J(J(J({},e),{size:`middle`}),n);return C(Be,t,r)}}}),pn=t({compatConfig:{MODE:3},name:`Pager`,inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Q.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:[`click`,`keypress`],setup(e,t){let{emit:n,attrs:r}=t,i=()=>{n(`click`,e.page)},a=t=>{n(`keypress`,t,i,e.page)};return()=>{let{showTitle:t,page:n,itemRender:o}=e,{class:s,style:c}=r,l=`${e.rootPrefixCls}-item`,u=A(l,`${l}-${e.page}`,{[`${l}-active`]:e.active,[`${l}-disabled`]:!e.page},s);return C(`li`,{onClick:i,onKeypress:a,title:t?String(n):null,tabindex:`0`,class:u,style:c},[o({page:n,type:`page`,originalElement:C(`a`,{rel:`nofollow`},[n])})])}}}),mn={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},hn=t({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Q.any,current:Number,pageSizeOptions:Q.array.def([`10`,`20`,`50`,`100`]),pageSize:Number,buildOptionText:Function,locale:Q.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Q.any},setup(e){let t=v(``),n=p(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=t=>`${t.value} ${e.locale.items_per_page}`,i=e=>{let{value:n}=e.target;t.value!==n&&(t.value=n)},a=r=>{let{goButton:i,quickGo:a,rootPrefixCls:o}=e;if(!(i||t.value===``)){if(r.relatedTarget&&(r.relatedTarget.className.indexOf(`${o}-item-link`)>=0||r.relatedTarget.className.indexOf(`${o}-item`)>=0)){t.value=``;return}a(n.value),t.value=``}},o=r=>{t.value!==``&&(r.keyCode===mn.ENTER||r.type===`click`)&&(e.quickGo(n.value),t.value=``)},s=p(()=>{let{pageSize:t,pageSizeOptions:n}=e;return n.some(e=>e.toString()===t.toString())?n:n.concat([t.toString()]).sort((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t)))});return()=>{let{rootPrefixCls:n,locale:c,changeSize:l,quickGo:u,goButton:d,selectComponentClass:f,selectPrefixCls:p,pageSize:m,disabled:h}=e,g=`${n}-options`,_=null,v=null,y=null;if(!l&&!u)return null;if(l&&f){let t=e.buildOptionText||r,n=s.value.map((e,n)=>C(f.Option,{key:n,value:e},{default:()=>[t({value:e})]}));_=C(f,{disabled:h,prefixCls:p,showSearch:!1,class:`${g}-size-changer`,optionLabelProp:`children`,value:(m||s.value[0]).toString(),onChange:e=>l(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return u&&(d&&(y=typeof d==`boolean`?C(`button`,{type:`button`,onClick:o,onKeyup:o,disabled:h,class:`${g}-quick-jumper-button`},[c.jump_to_confirm]):C(`span`,{onClick:o,onKeyup:o},[d])),v=C(`div`,{class:`${g}-quick-jumper`},[c.jump_to,C(de,{disabled:h,type:`text`,value:t.value,onInput:i,onChange:i,onKeyup:o,onBlur:a},null),c.page,y])),C(`li`,{class:`${g}`},[_,v])}}}),gn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _n(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e}function vn(e){let{originalElement:t}=e;return t}function yn(e,t,n){let r=e===void 0?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}var bn=t({compatConfig:{MODE:3},name:`Pagination`,mixins:[ue],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Q.string.def(`rc-pagination`),selectPrefixCls:Q.string.def(`rc-select`),current:Number,defaultCurrent:Q.number.def(1),total:Q.number.def(0),pageSize:Number,defaultPageSize:Q.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Q.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Q.oneOfType([Q.looseBool,Q.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Q.arrayOf(Q.oneOfType([Q.number,Q.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Q.object.def(at),itemRender:Q.func.def(vn),prevIcon:Q.any,nextIcon:Q.any,jumpPrevIcon:Q.any,jumpNextIcon:Q.any,totalBoundaryShowSizeChanger:Q.number.def(50)},data(){let e=this.$props,t=Ce([this.current,this.defaultCurrent]),n=Ce([this.pageSize,this.defaultPageSize]);return t=Math.min(t,yn(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){let t={},n=this.stateCurrent,r=yn(e,this.$data,this.$props);n=n>r?r:n,G(this,`current`)||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){let e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}})},total(){let e={},t=yn(this.pageSize,this.$data,this.$props);if(G(this,`current`)){let n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=n===0&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(yn(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){let{prefixCls:n}=this.$props;return ie(this,e,this.$props)||C(`button`,{type:`button`,"aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){let t=e.target.value,n=yn(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data,i;return i=t===``?t:isNaN(Number(t))?r:t>=n?n:Number(t),i},isValid(e){return _n(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){let{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===mn.ARROW_UP||e.keyCode===mn.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){let t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===mn.ENTER?this.handleChange(t):e.keyCode===mn.ARROW_UP?this.handleChange(t-1):e.keyCode===mn.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent,n=t,r=yn(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e==`number`&&(G(this,`pageSize`)||this.setState({statePageSize:e}),G(this,`current`)||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit(`update:pageSize`,e),t!==n&&this.__emit(`update:current`,t),this.__emit(`showSizeChange`,t,e),this.__emit(`change`,t,e)},handleChange(e){let{disabled:t}=this.$props,n=e;if(this.isValid(n)&&!t){let e=yn(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),G(this,`current`)||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit(`update:current`,n),this.__emit(`change`,n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<yn(void 0,this.$data,this.$props)},getShowSizeChanger(){let{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return e===void 0?t>n:e},runIfEnter(e,t){(e.key===`Enter`||e.charCode===13)&&(e.preventDefault(),t(...[...arguments].slice(2)))},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===mn.ENTER||e.type===`click`)&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){let{itemRender:t}=this.$props,n=t({page:e,type:`prev`,originalElement:this.getItemIcon(`prevIcon`,`prev page`)}),r=!this.hasPrev();return se(n)?ke(n,r?{disabled:r}:{}):n},renderNext(e){let{itemRender:t}=this.$props,n=t({page:e,type:`next`,originalElement:this.getItemIcon(`nextIcon`,`next page`)}),r=!this.hasNext();return se(n)?ke(n,r?{disabled:r}:{}):n}},render(){let{prefixCls:e,disabled:t,hideOnSinglePage:n,total:r,locale:i,showQuickJumper:a,showLessItems:o,showTitle:s,showTotal:c,simple:l,itemRender:d,showPrevNextJumpers:f,jumpPrevIcon:p,jumpNextIcon:m,selectComponentClass:h,selectPrefixCls:g,pageSizeOptions:_}=this.$props,{stateCurrent:v,statePageSize:y}=this,b=oe(this.$attrs).extraAttrs,{class:x}=b,S=gn(b,[`class`]);if(n===!0&&this.total<=y)return null;let w=yn(void 0,this.$data,this.$props),T=[],E=null,D=null,O=null,j=null,M=null,N=a&&a.goButton,P=o?1:2,F=v-1>0?v-1:0,I=v+1<w?v+1:w,L=this.hasPrev(),R=this.hasNext();if(l)return N&&(M=typeof N==`boolean`?C(`button`,{type:`button`,onClick:this.handleGoTO,onKeyup:this.handleGoTO},[i.jump_to_confirm]):C(`span`,{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[N]),M=C(`li`,{title:s?`${i.jump_to}${v}/${w}`:null,class:`${e}-simple-pager`},[M])),C(`ul`,k({class:A(`${e} ${e}-simple`,{[`${e}-disabled`]:t},x)},S),[C(`li`,{title:s?i.prev_page:null,onClick:this.prev,tabindex:L?0:null,onKeypress:this.runIfEnterPrev,class:A(`${e}-prev`,{[`${e}-disabled`]:!L}),"aria-disabled":!L},[this.renderPrev(F)]),C(`li`,{title:s?`${v}/${w}`:null,class:`${e}-simple-pager`},[C(de,{type:`text`,value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:`3`},null),C(`span`,{class:`${e}-slash`},[u(`/`)]),w]),C(`li`,{title:s?i.next_page:null,onClick:this.next,tabindex:R?0:null,onKeypress:this.runIfEnterNext,class:A(`${e}-next`,{[`${e}-disabled`]:!R}),"aria-disabled":!R},[this.renderNext(I)]),M]);if(w<=3+P*2){let t={locale:i,rootPrefixCls:e,showTitle:s,itemRender:d,onClick:this.handleChange,onKeypress:this.runIfEnter};w||T.push(C(pn,k(k({},t),{},{key:`noPager`,page:1,class:`${e}-item-disabled`}),null));for(let e=1;e<=w;e+=1){let n=v===e;T.push(C(pn,k(k({},t),{},{key:e,page:e,active:n}),null))}}else{let t=o?i.prev_3:i.prev_5,n=o?i.next_3:i.next_5;f&&(E=C(`li`,{title:this.showTitle?t:null,key:`prev`,onClick:this.jumpPrev,tabindex:`0`,onKeypress:this.runIfEnterJumpPrev,class:A(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!p})},[d({page:this.getJumpPrevPage(),type:`jump-prev`,originalElement:this.getItemIcon(`jumpPrevIcon`,`prev page`)})]),D=C(`li`,{title:this.showTitle?n:null,key:`next`,tabindex:`0`,onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:A(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!m})},[d({page:this.getJumpNextPage(),type:`jump-next`,originalElement:this.getItemIcon(`jumpNextIcon`,`next page`)})])),j=C(pn,{locale:i,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:w,page:w,active:!1,showTitle:s,itemRender:d},null),O=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:s,itemRender:d},null);let r=Math.max(1,v-P),a=Math.min(v+P,w);v-1<=P&&(a=1+P*2),w-v<=P&&(r=w-P*2);for(let t=r;t<=a;t+=1){let n=v===t;T.push(C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:t,page:t,active:n,showTitle:s,itemRender:d},null))}v-1>=P*2&&v!==3&&(T[0]=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:r,page:r,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.unshift(E)),w-v>=P*2&&v!==w-2&&(T[T.length-1]=C(pn,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:a,page:a,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.push(D)),r!==1&&T.unshift(O),a!==w&&T.push(j)}let z=null;c&&(z=C(`li`,{class:`${e}-total-text`},[c(r,[r===0?0:(v-1)*y+1,v*y>r?r:v*y])]));let B=!L||!w,V=!R||!w,ee=this.buildOptionText||this.$slots.buildOptionText;return C(`ul`,k(k({unselectable:`on`,ref:`paginationNode`},S),{},{class:A({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[z,C(`li`,{title:s?i.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:A(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(F)]),T,C(`li`,{title:s?i.next_page:null,onClick:this.next,tabindex:V?null:0,onKeypress:this.runIfEnterNext,class:A(`${e}-next`,{[`${e}-disabled`]:V}),"aria-disabled":V},[this.renderNext(I)]),C(hn,{disabled:t,locale:i,rootPrefixCls:e,selectComponentClass:h,selectPrefixCls:g,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:y,pageSizeOptions:_,buildOptionText:ee||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:N},null)])}}),xn=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`&${t}-mini`]:{[`
2
2
  &:hover ${t}-item:not(${t}-item-active),
3
3
  &:active ${t}-item:not(${t}-item-active),
4
4
  &:hover ${t}-item-link,
@@ -1,4 +1,4 @@
1
- import{C as e,F as t,O as n,St as r,U as i,_t as a,a as o,c as s,et as c,f as l,gt as u,mt as d,rt as f,tt as p,vt as m,w as h,x as g,z as _}from"./BSCpFtzG.js";import{R as v,k as y}from"./2LwEn9gX.js";import{$ as b,At as x,Ct as S,D as C,St as w,_ as T,bt as E,ct as ee,d as D,f as O,g as k,h as A,kt as j,n as M,p as N,pt as P,t as F,u as I,yt as te}from"./BDUjyaF4.js";import{A as ne,C as re,J as ie,K as L,P as R,S as z,Y as B,g as V,i as H,m as ae,p as oe,t as se}from"./rzGB_ojX.js";import{G as ce,V as U,X as W,g as le,x as G}from"./Z8k0uMSI.js";import{i as ue,u as de}from"./9X0fVBD7.js";function fe(){}var pe=G&&1/L(new G([,-0]))[1]==1/0?function(e){return new G(e)}:fe,me=200;function he(e,t,n){var r=-1,i=re,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=z;else if(a>=me){var l=t?null:pe(e);if(l)return L(l);o=!1,i=ie,c=new B}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function K(e){return e&&e.length?he(e):[]}var q={adjustX:1,adjustY:1},J=[0,0],ge={topLeft:{points:[`bl`,`tl`],overflow:q,offset:[0,-4],targetOffset:J},topCenter:{points:[`bc`,`tc`],overflow:q,offset:[0,-4],targetOffset:J},topRight:{points:[`br`,`tr`],overflow:q,offset:[0,-4],targetOffset:J},bottomLeft:{points:[`tl`,`bl`],overflow:q,offset:[0,4],targetOffset:J},bottomCenter:{points:[`tc`,`bc`],overflow:q,offset:[0,4],targetOffset:J},bottomRight:{points:[`tr`,`br`],overflow:q,offset:[0,4],targetOffset:J}},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ve=e({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:F.string.def(`rc-dropdown`),transitionName:String,overlayClassName:F.string.def(``),openClassName:String,animation:F.any,align:F.object,overlayStyle:{type:Object,default:void 0},placement:F.string.def(`bottomLeft`),overlay:F.any,trigger:F.oneOfType([F.string,F.arrayOf(F.string)]).def(`hover`),alignPoint:{type:Boolean,default:void 0},showAction:F.array,hideAction:F.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:F.number.def(.15),mouseLeaveDelay:F.number.def(.1)},emits:[`visibleChange`,`overlayClick`],setup(e,t){let{slots:n,emit:r,expose:i}=t,a=d(!!e.visible);c(()=>e.visible,e=>{e!==void 0&&(a.value=e)});let s=d();i({triggerRef:s});let u=t=>{e.visible===void 0&&(a.value=!1),r(`overlayClick`,t)},f=t=>{e.visible===void 0&&(a.value=t),r(`visibleChange`,t)},p=()=>{let t=n.overlay?.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:u};return g(o,{key:E},[e.arrow&&g(`div`,{class:`${e.prefixCls}-arrow`},null),U(t,r,!1)])},m=l(()=>{let{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),h=()=>{let t=n.default?.call(n);return a.value&&t?U(t[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):t},_=l(()=>!e.hideAction&&e.trigger.indexOf(`contextmenu`)!==-1?[`click`]:e.hideAction);return()=>{let{prefixCls:t,arrow:n,showAction:r,overlayStyle:i,trigger:o,placement:c,align:l,getPopupContainer:u,transitionName:d,animation:v,overlayClassName:y}=e,b=_e(e,[`prefixCls`,`arrow`,`showAction`,`overlayStyle`,`trigger`,`placement`,`align`,`getPopupContainer`,`transitionName`,`animation`,`overlayClassName`]);return g(R,x(x({},b),{},{prefixCls:t,ref:s,popupClassName:S(y,{[`${t}-show-arrow`]:n}),popupStyle:i,builtinPlacements:ge,action:o,showAction:r,hideAction:_.value||[],popupPlacement:c,popupAlign:l,popupTransitionName:d,popupAnimation:v,popupVisible:a.value,stretch:m.value?`minWidth`:``,onPopupVisibleChange:f,getPopupContainer:u}),{popup:p,default:h})}}}),ye={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function be(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){xe(e,t,n[t])})}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Se=function(e,t){var n=be({},e,t.attrs);return g(ue,be({},n,{icon:ye}),null)};Se.displayName=`EllipsisOutlined`,Se.inheritAttrs=!1;var Ce=Symbol(`OverrideContextKey`),we=()=>n(Ce,void 0),Te=e=>{let{prefixCls:t,mode:n,selectable:r,validator:a,onClick:o,expandIcon:s}=we()||{};i(Ce,{prefixCls:l(()=>e.prefixCls?.value??t?.value),mode:l(()=>e.mode?.value??n?.value),selectable:l(()=>e.selectable?.value??r?.value),validator:e.validator??a,onClick:e.onClick??o,expandIcon:e.expandIcon??s?.value})};function Ee(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function De(e,t){return Ee(a(e),a(t))}var Oe=Symbol(`menuContextKey`),ke=e=>{i(Oe,e)},Y=()=>n(Oe),Ae=Symbol(`ForceRenderKey`),je=e=>{i(Ae,e)},Me=()=>n(Ae,!1),Ne=Symbol(`menuFirstLevelContextKey`),Pe=e=>{i(Ne,e)},Fe=()=>n(Ne,!0),Ie=e({compatConfig:{MODE:3},name:`MenuContextProvider`,inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t,r=Y(),i=j({},r);return e.mode!==void 0&&(i.mode=m(e,`mode`)),e.overflowDisabled!==void 0&&(i.overflowDisabled=m(e,`overflowDisabled`)),ke(i),()=>n.default?.call(n)}}),Le=Symbol(`siderCollapsed`),Re=Symbol(`siderHookProvider`),ze=`$$__vc-menu-more__key`,Be=Symbol(`KeyPathContext`),Ve=()=>n(Be,{parentEventKeys:l(()=>[]),parentKeys:l(()=>[]),parentInfo:{}}),He=(e,t,n)=>{let{parentEventKeys:r,parentKeys:a}=Ve(),o=l(()=>[...r.value,e]),s=l(()=>[...a.value,t]);return i(Be,{parentEventKeys:o,parentKeys:s,parentInfo:n}),s},Ue=Symbol(`measure`),We=e({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return i(Ue,!0),()=>n.default?.call(n)}}),Ge=()=>n(Ue,!1);function Ke(e){let{mode:t,rtl:n,inlineIndent:r}=Y();return l(()=>t.value===`inline`?n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`}:null)}var qe=0,X=e({compatConfig:{MODE:3},name:`AMenuItem`,inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:F.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,emit:i,attrs:a}=n,o=h(),s=Ge(),d=typeof o.vnode.key==`symbol`?String(o.vnode.key):o.vnode.key;ce(typeof o.vnode.key!=`symbol`,`MenuItem`,`MenuItem \`:key="${String(d)}"\` not support Symbol type`);let f=`menu_item_${++qe}_$$_${d}`,{parentEventKeys:p,parentKeys:m}=Ve(),{prefixCls:_,activeKeys:v,disabled:y,changeActiveKeys:b,rtl:S,inlineCollapsed:C,siderCollapsed:w,onItemClick:T,selectedKeys:E,registerMenuInfo:D,unRegisterMenuInfo:O}=Y(),k=Fe(),A=u(!1),M=l(()=>[...m.value,d]);D(f,{eventKey:f,key:d,parentEventKeys:p,parentKeys:m,isLeaf:!0}),t(()=>{O(f)}),c(v,()=>{A.value=!!v.value.find(e=>e===d)},{immediate:!0});let N=l(()=>y.value||e.disabled),P=l(()=>E.value.includes(d)),F=l(()=>{let t=`${_.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:A.value,[`${t}-selected`]:P.value,[`${t}-disabled`]:N.value}}),I=t=>({key:d,eventKey:f,keyPath:M.value,eventKeyPath:[...p.value,f],domEvent:t,item:j(j({},e),a)}),re=e=>{if(N.value)return;let t=I(e);i(`click`,e),T(t)},ie=e=>{N.value||(b(M.value),i(`mouseenter`,e))},L=e=>{N.value||(b([]),i(`mouseleave`,e))},R=e=>{if(i(`keydown`,e),e.which===le.ENTER){let t=I(e);i(`click`,e),T(t)}},z=e=>{b(M.value),i(`focus`,e)},B=(e,t)=>{let n=g(`span`,{class:`${_.value}-title-content`},[t]);return(!e||te(t)&&t.type===`span`)&&t&&C.value&&k&&typeof t==`string`?g(`div`,{class:`${_.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},V=Ke(l(()=>M.value.length));return()=>{if(s)return null;let t=e.title??r.title?.call(r),n=ee(r.default?.call(r)),i=n.length,o=t;t===void 0?o=k&&i?n:``:t===!1&&(o=``);let c={title:o};!w.value&&!C.value&&(c.title=null,c.open=!1);let l={};e.role===`option`&&(l[`aria-selected`]=P.value);let u=e.icon??r.icon?.call(r,e);return g(H,x(x({},c),{},{placement:S.value?`left`:`right`,overlayClassName:`${_.value}-inline-collapsed-tooltip`}),{default:()=>[g(ne.Item,x(x(x({component:`li`},a),{},{id:e.id,style:j(j({},a.style||{}),V.value),class:[F.value,{[`${a.class}`]:!!a.class,[`${_.value}-item-only-child`]:(u?i+1:i)===1}],role:e.role||`menuitem`,tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},l),{},{onMouseenter:ie,onMouseleave:L,onClick:re,onKeydown:R,onFocus:z,title:typeof t==`string`?t:void 0}),{default:()=>[U(typeof u==`function`?u(e.originItemValue):u,{class:`${_.value}-item-icon`},!1),B(u,n)]})]})}}}),Z={adjustX:1,adjustY:1},Je={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},leftTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},rightTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Ye={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},rightTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},leftTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Xe={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`},Ze=e({compatConfig:{MODE:3},name:`PopupTrigger`,inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:[`visibleChange`],setup(e,n){let{slots:r,emit:i}=n,a=u(!1),{getPopupContainer:o,rtl:s,subMenuOpenDelay:d,subMenuCloseDelay:f,builtinPlacements:p,triggerSubMenuAction:m,forceSubMenuRender:h,motion:_,defaultMotions:v,rootClassName:y}=Y(),b=Me(),x=l(()=>s.value?j(j({},Ye),p.value):j(j({},Je),p.value)),C=l(()=>Xe[e.mode]),w=u();c(()=>e.visible,e=>{W.cancel(w.value),w.value=W(()=>{a.value=e})},{immediate:!0}),t(()=>{W.cancel(w.value)});let T=e=>{i(`visibleChange`,e)},E=l(()=>{let t=_.value||v.value?.[e.mode]||v.value?.other,n=typeof t==`function`?t():t;return n?de(n.name,{css:!0}):void 0});return()=>{let{prefixCls:t,popupClassName:n,mode:i,popupOffset:c,disabled:l}=e;return g(R,{prefixCls:t,popupClassName:S(`${t}-popup`,{[`${t}-rtl`]:s.value},n,y.value),stretch:i===`horizontal`?`minWidth`:null,getPopupContainer:o.value,builtinPlacements:x.value,popupPlacement:C.value,popupVisible:a.value,popupAlign:c&&{offset:c},action:l?[]:[m.value],mouseEnterDelay:d.value,mouseLeaveDelay:f.value,onPopupVisibleChange:T,forceRender:b||h.value,popupAnimation:E.value},{popup:r.popup,default:r.default})}}}),Qe=(e,t)=>{let{slots:n,attrs:r}=t,{prefixCls:i,mode:a}=Y();return g(`ul`,x(x({},r),{},{class:S(i.value,`${i.value}-sub`,`${i.value}-${a.value===`inline`?`inline`:`vertical`}`),"data-menu-list":!0}),[n.default?.call(n)])};Qe.displayName=`SubMenuList`;var $e=e({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t,r=l(()=>`inline`),{motion:i,mode:a,defaultMotions:o}=Y(),s=l(()=>a.value===r.value),u=d(!s.value),p=l(()=>s.value?e.open:!1);c(a,()=>{s.value&&(u.value=!1)},{flush:`post`});let m=l(()=>{let t=i.value||o.value?.[r.value]||o.value?.other,n=typeof t==`function`?t():t;return j(j({},n),{appear:e.keyPath.length<=1})});return()=>u.value?null:g(Ie,{mode:r.value},{default:()=>[g(y,m.value,{default:()=>[f(g(Qe,{id:e.id},{default:()=>[n.default?.call(n)]}),[[v,p.value]])]})]})}}),et=0,Q=e({compatConfig:{MODE:3},name:`ASubMenu`,inheritAttrs:!1,props:{icon:F.any,title:F.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,attrs:i,emit:a}=n;var s;Pe(!1);let d=Ge(),f=h(),p=typeof f.vnode.key==`symbol`?String(f.vnode.key):f.vnode.key;ce(typeof f.vnode.key!=`symbol`,`SubMenu`,`SubMenu \`:key="${String(p)}"\` not support Symbol type`);let m=w(p)?p:`sub_menu_${++et}_$$_not_set_key`,_=e.eventKey??(w(p)?`sub_menu_${++et}_$$_${p}`:m),{parentEventKeys:v,parentInfo:y,parentKeys:b}=Ve(),C=l(()=>[...b.value,m]),T={eventKey:_,key:m,parentEventKeys:v,childrenEventKeys:u([]),parentKeys:b};(s=y.childrenEventKeys)==null||s.value.push(_),t(()=>{y.childrenEventKeys&&(y.childrenEventKeys.value=y.childrenEventKeys?.value.filter(e=>e!=_))}),He(_,m,T);let{prefixCls:E,activeKeys:ee,disabled:D,changeActiveKeys:O,mode:k,inlineCollapsed:A,openKeys:M,overflowDisabled:N,onOpenChange:F,registerMenuInfo:I,unRegisterMenuInfo:re,selectedSubMenuKeys:ie,expandIcon:L,theme:R}=Y(),z=p!=null,B=!d&&(Me()||!z);je(B),(d&&z||!d&&!z||B)&&(I(_,T),t(()=>{re(_)}));let V=l(()=>`${E.value}-submenu`),H=l(()=>D.value||e.disabled),ae=u(),oe=u(),se=l(()=>M.value.includes(m)),W=l(()=>!N.value&&se.value),le=l(()=>ie.value.includes(m)),G=u(!1);c(ee,()=>{G.value=!!ee.value.find(e=>e===m)},{immediate:!0});let ue=e=>{H.value||(a(`titleClick`,e,m),k.value===`inline`&&F(m,!se.value))},de=e=>{H.value||(O(C.value),a(`mouseenter`,e))},fe=e=>{H.value||(O([]),a(`mouseleave`,e))},pe=Ke(l(()=>C.value.length)),me=e=>{k.value!==`inline`&&F(m,e)},he=()=>{O(C.value)},K=_&&`${_}-popup`,q=l(()=>S(E.value,`${E.value}-${e.theme||R.value}`,e.popupClassName)),J=(t,n)=>{if(!n)return A.value&&!b.value.length&&t&&typeof t==`string`?g(`div`,{class:`${E.value}-inline-collapsed-noicon`},[t.charAt(0)]):g(`span`,{class:`${E.value}-title-content`},[t]);let r=te(t)&&t.type===`span`;return g(o,null,[U(typeof n==`function`?n(e.originItemValue):n,{class:`${E.value}-item-icon`},!1),r?t:g(`span`,{class:`${E.value}-title-content`},[t])])},ge=l(()=>k.value!==`inline`&&C.value.length>1?`vertical`:k.value),_e=l(()=>k.value===`horizontal`?`vertical`:k.value),ve=l(()=>ge.value===`horizontal`?`vertical`:ge.value),ye=()=>{let t=V.value,n=e.icon??r.icon?.call(r,e),i=e.expandIcon||r.expandIcon||L.value,a=J(P(r,e,`title`),n);return g(`div`,{style:pe.value,class:`${t}-title`,tabindex:H.value?null:-1,ref:ae,title:typeof a==`string`?a:null,"data-menu-id":m,"aria-expanded":W.value,"aria-haspopup":!0,"aria-controls":K,"aria-disabled":H.value,onClick:ue,onFocus:he},[a,k.value!==`horizontal`&&i?i(j(j({},e),{isOpen:W.value})):g(`i`,{class:`${t}-arrow`},null)])};return()=>{if(d)return z?r.default?.call(r):null;let t=V.value,n=()=>null;if(!N.value&&k.value!==`inline`){let i=k.value===`horizontal`?[0,8]:[10,0];n=()=>g(Ze,{mode:ge.value,prefixCls:t,visible:!e.internalPopupClose&&W.value,popupClassName:q.value,popupOffset:e.popupOffset||i,disabled:H.value,onVisibleChange:me},{default:()=>[ye()],popup:()=>g(Ie,{mode:ve.value},{default:()=>[g(Qe,{id:K,ref:oe},{default:r.default})]})})}else n=()=>g(Ze,null,{default:ye});return g(Ie,{mode:_e.value},{default:()=>[g(ne.Item,x(x({component:`li`},i),{},{role:`none`,class:S(t,`${t}-${k.value}`,i.class,{[`${t}-open`]:W.value,[`${t}-active`]:G.value,[`${t}-selected`]:le.value,[`${t}-disabled`]:H.value}),onMouseenter:de,onMouseleave:fe,"data-submenu-id":m}),{default:()=>g(o,null,[n(),!N.value&&g($e,{id:K,open:W.value,keyPath:C.value},{default:r.default})])})]})}}}),tt=e({compatConfig:{MODE:3},name:`AMenuItemGroup`,inheritAttrs:!1,props:{title:F.any,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=Y(),a=l(()=>`${i.value}-item-group`),o=Ge();return()=>o?n.default?.call(n):g(`li`,x(x({},r),{},{onClick:e=>e.stopPropagation(),class:a.value}),[g(`div`,{title:typeof e.title==`string`?e.title:void 0,class:`${a.value}-title`},[P(n,e,`title`)]),g(`ul`,{class:`${a.value}-list`},[n.default?.call(n)])])}}),nt=e({compatConfig:{MODE:3},name:`AMenuDivider`,props:{prefixCls:String,dashed:Boolean},setup(e){let{prefixCls:t}=Y(),n=l(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>g(`li`,{class:n.value},null)}}),rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function it(e,t,n){return(e||[]).map((e,r)=>{if(e&&typeof e==`object`){let i=e,{label:a,children:o,key:s,type:c}=i,l=rt(i,[`label`,`children`,`key`,`type`]),u=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],p=[],m={eventKey:u,key:u,parentEventKeys:d(f),parentKeys:d(f),childrenEventKeys:d(p),isLeaf:!1};if(o||c===`group`){if(c===`group`){let r=it(o,t,n);return g(tt,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}t.set(u,m),n&&n.childrenEventKeys.push(u);let r=it(o,t,{childrenEventKeys:p,parentKeys:[].concat(f,u)});return g(Q,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}return c===`divider`?g(nt,x({key:u},l),null):(m.isLeaf=!0,t.set(u,m),g(X,x(x({key:u},l),{},{originItemValue:e}),{default:()=>[a]}))}return null}).filter(e=>e)}function at(e){let t=u([]),n=u(!1),r=u(new Map);return c(()=>e.items,()=>{let i=new Map;n.value=!1,e.items?(n.value=!0,t.value=it(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var ot=e=>{let{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
1
+ import{C as e,F as t,O as n,St as r,U as i,_t as a,a as o,c as s,et as c,f as l,gt as u,mt as d,rt as f,tt as p,vt as m,w as h,x as g,z as _}from"./BSCpFtzG.js";import{R as v,k as y}from"./2LwEn9gX.js";import{$ as b,At as x,Ct as S,D as C,St as w,_ as T,bt as E,ct as ee,d as D,f as O,g as k,h as A,kt as j,n as M,p as N,pt as P,t as F,u as I,yt as te}from"./BDUjyaF4.js";import{A as ne,C as re,J as ie,K as L,P as R,S as z,Y as B,g as V,i as H,m as ae,p as oe,t as se}from"./3612gD2V.js";import{G as ce,V as U,X as W,g as le,x as G}from"./Bt_HDizI.js";import{h as ue,x as de}from"./BsMpJf7S.js";function fe(){}var pe=G&&1/L(new G([,-0]))[1]==1/0?function(e){return new G(e)}:fe,me=200;function he(e,t,n){var r=-1,i=re,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=z;else if(a>=me){var l=t?null:pe(e);if(l)return L(l);o=!1,i=ie,c=new B}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function K(e){return e&&e.length?he(e):[]}var q={adjustX:1,adjustY:1},J=[0,0],ge={topLeft:{points:[`bl`,`tl`],overflow:q,offset:[0,-4],targetOffset:J},topCenter:{points:[`bc`,`tc`],overflow:q,offset:[0,-4],targetOffset:J},topRight:{points:[`br`,`tr`],overflow:q,offset:[0,-4],targetOffset:J},bottomLeft:{points:[`tl`,`bl`],overflow:q,offset:[0,4],targetOffset:J},bottomCenter:{points:[`tc`,`bc`],overflow:q,offset:[0,4],targetOffset:J},bottomRight:{points:[`tr`,`br`],overflow:q,offset:[0,4],targetOffset:J}},_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ve=e({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:F.string.def(`rc-dropdown`),transitionName:String,overlayClassName:F.string.def(``),openClassName:String,animation:F.any,align:F.object,overlayStyle:{type:Object,default:void 0},placement:F.string.def(`bottomLeft`),overlay:F.any,trigger:F.oneOfType([F.string,F.arrayOf(F.string)]).def(`hover`),alignPoint:{type:Boolean,default:void 0},showAction:F.array,hideAction:F.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:F.number.def(.15),mouseLeaveDelay:F.number.def(.1)},emits:[`visibleChange`,`overlayClick`],setup(e,t){let{slots:n,emit:r,expose:i}=t,a=d(!!e.visible);c(()=>e.visible,e=>{e!==void 0&&(a.value=e)});let s=d();i({triggerRef:s});let u=t=>{e.visible===void 0&&(a.value=!1),r(`overlayClick`,t)},f=t=>{e.visible===void 0&&(a.value=t),r(`visibleChange`,t)},p=()=>{let t=n.overlay?.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:u};return g(o,{key:E},[e.arrow&&g(`div`,{class:`${e.prefixCls}-arrow`},null),U(t,r,!1)])},m=l(()=>{let{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),h=()=>{let t=n.default?.call(n);return a.value&&t?U(t[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):t},_=l(()=>!e.hideAction&&e.trigger.indexOf(`contextmenu`)!==-1?[`click`]:e.hideAction);return()=>{let{prefixCls:t,arrow:n,showAction:r,overlayStyle:i,trigger:o,placement:c,align:l,getPopupContainer:u,transitionName:d,animation:v,overlayClassName:y}=e,b=_e(e,[`prefixCls`,`arrow`,`showAction`,`overlayStyle`,`trigger`,`placement`,`align`,`getPopupContainer`,`transitionName`,`animation`,`overlayClassName`]);return g(R,x(x({},b),{},{prefixCls:t,ref:s,popupClassName:S(y,{[`${t}-show-arrow`]:n}),popupStyle:i,builtinPlacements:ge,action:o,showAction:r,hideAction:_.value||[],popupPlacement:c,popupAlign:l,popupTransitionName:d,popupAnimation:v,popupVisible:a.value,stretch:m.value?`minWidth`:``,onPopupVisibleChange:f,getPopupContainer:u}),{popup:p,default:h})}}}),ye={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function be(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){xe(e,t,n[t])})}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Se=function(e,t){var n=be({},e,t.attrs);return g(ue,be({},n,{icon:ye}),null)};Se.displayName=`EllipsisOutlined`,Se.inheritAttrs=!1;var Ce=Symbol(`OverrideContextKey`),we=()=>n(Ce,void 0),Te=e=>{let{prefixCls:t,mode:n,selectable:r,validator:a,onClick:o,expandIcon:s}=we()||{};i(Ce,{prefixCls:l(()=>e.prefixCls?.value??t?.value),mode:l(()=>e.mode?.value??n?.value),selectable:l(()=>e.selectable?.value??r?.value),validator:e.validator??a,onClick:e.onClick??o,expandIcon:e.expandIcon??s?.value})};function Ee(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function De(e,t){return Ee(a(e),a(t))}var Oe=Symbol(`menuContextKey`),ke=e=>{i(Oe,e)},Y=()=>n(Oe),Ae=Symbol(`ForceRenderKey`),je=e=>{i(Ae,e)},Me=()=>n(Ae,!1),Ne=Symbol(`menuFirstLevelContextKey`),Pe=e=>{i(Ne,e)},Fe=()=>n(Ne,!0),Ie=e({compatConfig:{MODE:3},name:`MenuContextProvider`,inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t,r=Y(),i=j({},r);return e.mode!==void 0&&(i.mode=m(e,`mode`)),e.overflowDisabled!==void 0&&(i.overflowDisabled=m(e,`overflowDisabled`)),ke(i),()=>n.default?.call(n)}}),Le=Symbol(`siderCollapsed`),Re=Symbol(`siderHookProvider`),ze=`$$__vc-menu-more__key`,Be=Symbol(`KeyPathContext`),Ve=()=>n(Be,{parentEventKeys:l(()=>[]),parentKeys:l(()=>[]),parentInfo:{}}),He=(e,t,n)=>{let{parentEventKeys:r,parentKeys:a}=Ve(),o=l(()=>[...r.value,e]),s=l(()=>[...a.value,t]);return i(Be,{parentEventKeys:o,parentKeys:s,parentInfo:n}),s},Ue=Symbol(`measure`),We=e({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return i(Ue,!0),()=>n.default?.call(n)}}),Ge=()=>n(Ue,!1);function Ke(e){let{mode:t,rtl:n,inlineIndent:r}=Y();return l(()=>t.value===`inline`?n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`}:null)}var qe=0,X=e({compatConfig:{MODE:3},name:`AMenuItem`,inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:F.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,emit:i,attrs:a}=n,o=h(),s=Ge(),d=typeof o.vnode.key==`symbol`?String(o.vnode.key):o.vnode.key;ce(typeof o.vnode.key!=`symbol`,`MenuItem`,`MenuItem \`:key="${String(d)}"\` not support Symbol type`);let f=`menu_item_${++qe}_$$_${d}`,{parentEventKeys:p,parentKeys:m}=Ve(),{prefixCls:_,activeKeys:v,disabled:y,changeActiveKeys:b,rtl:S,inlineCollapsed:C,siderCollapsed:w,onItemClick:T,selectedKeys:E,registerMenuInfo:D,unRegisterMenuInfo:O}=Y(),k=Fe(),A=u(!1),M=l(()=>[...m.value,d]);D(f,{eventKey:f,key:d,parentEventKeys:p,parentKeys:m,isLeaf:!0}),t(()=>{O(f)}),c(v,()=>{A.value=!!v.value.find(e=>e===d)},{immediate:!0});let N=l(()=>y.value||e.disabled),P=l(()=>E.value.includes(d)),F=l(()=>{let t=`${_.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:A.value,[`${t}-selected`]:P.value,[`${t}-disabled`]:N.value}}),I=t=>({key:d,eventKey:f,keyPath:M.value,eventKeyPath:[...p.value,f],domEvent:t,item:j(j({},e),a)}),re=e=>{if(N.value)return;let t=I(e);i(`click`,e),T(t)},ie=e=>{N.value||(b(M.value),i(`mouseenter`,e))},L=e=>{N.value||(b([]),i(`mouseleave`,e))},R=e=>{if(i(`keydown`,e),e.which===le.ENTER){let t=I(e);i(`click`,e),T(t)}},z=e=>{b(M.value),i(`focus`,e)},B=(e,t)=>{let n=g(`span`,{class:`${_.value}-title-content`},[t]);return(!e||te(t)&&t.type===`span`)&&t&&C.value&&k&&typeof t==`string`?g(`div`,{class:`${_.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},V=Ke(l(()=>M.value.length));return()=>{if(s)return null;let t=e.title??r.title?.call(r),n=ee(r.default?.call(r)),i=n.length,o=t;t===void 0?o=k&&i?n:``:t===!1&&(o=``);let c={title:o};!w.value&&!C.value&&(c.title=null,c.open=!1);let l={};e.role===`option`&&(l[`aria-selected`]=P.value);let u=e.icon??r.icon?.call(r,e);return g(H,x(x({},c),{},{placement:S.value?`left`:`right`,overlayClassName:`${_.value}-inline-collapsed-tooltip`}),{default:()=>[g(ne.Item,x(x(x({component:`li`},a),{},{id:e.id,style:j(j({},a.style||{}),V.value),class:[F.value,{[`${a.class}`]:!!a.class,[`${_.value}-item-only-child`]:(u?i+1:i)===1}],role:e.role||`menuitem`,tabindex:e.disabled?null:-1,"data-menu-id":d,"aria-disabled":e.disabled},l),{},{onMouseenter:ie,onMouseleave:L,onClick:re,onKeydown:R,onFocus:z,title:typeof t==`string`?t:void 0}),{default:()=>[U(typeof u==`function`?u(e.originItemValue):u,{class:`${_.value}-item-icon`},!1),B(u,n)]})]})}}}),Z={adjustX:1,adjustY:1},Je={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},leftTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},rightTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Ye={topLeft:{points:[`bl`,`tl`],overflow:Z,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Z,offset:[0,7]},rightTop:{points:[`tr`,`tl`],overflow:Z,offset:[-4,0]},leftTop:{points:[`tl`,`tr`],overflow:Z,offset:[4,0]}},Xe={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`},Ze=e({compatConfig:{MODE:3},name:`PopupTrigger`,inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:[`visibleChange`],setup(e,n){let{slots:r,emit:i}=n,a=u(!1),{getPopupContainer:o,rtl:s,subMenuOpenDelay:d,subMenuCloseDelay:f,builtinPlacements:p,triggerSubMenuAction:m,forceSubMenuRender:h,motion:_,defaultMotions:v,rootClassName:y}=Y(),b=Me(),x=l(()=>s.value?j(j({},Ye),p.value):j(j({},Je),p.value)),C=l(()=>Xe[e.mode]),w=u();c(()=>e.visible,e=>{W.cancel(w.value),w.value=W(()=>{a.value=e})},{immediate:!0}),t(()=>{W.cancel(w.value)});let T=e=>{i(`visibleChange`,e)},E=l(()=>{let t=_.value||v.value?.[e.mode]||v.value?.other,n=typeof t==`function`?t():t;return n?de(n.name,{css:!0}):void 0});return()=>{let{prefixCls:t,popupClassName:n,mode:i,popupOffset:c,disabled:l}=e;return g(R,{prefixCls:t,popupClassName:S(`${t}-popup`,{[`${t}-rtl`]:s.value},n,y.value),stretch:i===`horizontal`?`minWidth`:null,getPopupContainer:o.value,builtinPlacements:x.value,popupPlacement:C.value,popupVisible:a.value,popupAlign:c&&{offset:c},action:l?[]:[m.value],mouseEnterDelay:d.value,mouseLeaveDelay:f.value,onPopupVisibleChange:T,forceRender:b||h.value,popupAnimation:E.value},{popup:r.popup,default:r.default})}}}),Qe=(e,t)=>{let{slots:n,attrs:r}=t,{prefixCls:i,mode:a}=Y();return g(`ul`,x(x({},r),{},{class:S(i.value,`${i.value}-sub`,`${i.value}-${a.value===`inline`?`inline`:`vertical`}`),"data-menu-list":!0}),[n.default?.call(n)])};Qe.displayName=`SubMenuList`;var $e=e({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t,r=l(()=>`inline`),{motion:i,mode:a,defaultMotions:o}=Y(),s=l(()=>a.value===r.value),u=d(!s.value),p=l(()=>s.value?e.open:!1);c(a,()=>{s.value&&(u.value=!1)},{flush:`post`});let m=l(()=>{let t=i.value||o.value?.[r.value]||o.value?.other,n=typeof t==`function`?t():t;return j(j({},n),{appear:e.keyPath.length<=1})});return()=>u.value?null:g(Ie,{mode:r.value},{default:()=>[g(y,m.value,{default:()=>[f(g(Qe,{id:e.id},{default:()=>[n.default?.call(n)]}),[[v,p.value]])]})]})}}),et=0,Q=e({compatConfig:{MODE:3},name:`ASubMenu`,inheritAttrs:!1,props:{icon:F.any,title:F.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:b()},slots:Object,setup(e,n){let{slots:r,attrs:i,emit:a}=n;var s;Pe(!1);let d=Ge(),f=h(),p=typeof f.vnode.key==`symbol`?String(f.vnode.key):f.vnode.key;ce(typeof f.vnode.key!=`symbol`,`SubMenu`,`SubMenu \`:key="${String(p)}"\` not support Symbol type`);let m=w(p)?p:`sub_menu_${++et}_$$_not_set_key`,_=e.eventKey??(w(p)?`sub_menu_${++et}_$$_${p}`:m),{parentEventKeys:v,parentInfo:y,parentKeys:b}=Ve(),C=l(()=>[...b.value,m]),T={eventKey:_,key:m,parentEventKeys:v,childrenEventKeys:u([]),parentKeys:b};(s=y.childrenEventKeys)==null||s.value.push(_),t(()=>{y.childrenEventKeys&&(y.childrenEventKeys.value=y.childrenEventKeys?.value.filter(e=>e!=_))}),He(_,m,T);let{prefixCls:E,activeKeys:ee,disabled:D,changeActiveKeys:O,mode:k,inlineCollapsed:A,openKeys:M,overflowDisabled:N,onOpenChange:F,registerMenuInfo:I,unRegisterMenuInfo:re,selectedSubMenuKeys:ie,expandIcon:L,theme:R}=Y(),z=p!=null,B=!d&&(Me()||!z);je(B),(d&&z||!d&&!z||B)&&(I(_,T),t(()=>{re(_)}));let V=l(()=>`${E.value}-submenu`),H=l(()=>D.value||e.disabled),ae=u(),oe=u(),se=l(()=>M.value.includes(m)),W=l(()=>!N.value&&se.value),le=l(()=>ie.value.includes(m)),G=u(!1);c(ee,()=>{G.value=!!ee.value.find(e=>e===m)},{immediate:!0});let ue=e=>{H.value||(a(`titleClick`,e,m),k.value===`inline`&&F(m,!se.value))},de=e=>{H.value||(O(C.value),a(`mouseenter`,e))},fe=e=>{H.value||(O([]),a(`mouseleave`,e))},pe=Ke(l(()=>C.value.length)),me=e=>{k.value!==`inline`&&F(m,e)},he=()=>{O(C.value)},K=_&&`${_}-popup`,q=l(()=>S(E.value,`${E.value}-${e.theme||R.value}`,e.popupClassName)),J=(t,n)=>{if(!n)return A.value&&!b.value.length&&t&&typeof t==`string`?g(`div`,{class:`${E.value}-inline-collapsed-noicon`},[t.charAt(0)]):g(`span`,{class:`${E.value}-title-content`},[t]);let r=te(t)&&t.type===`span`;return g(o,null,[U(typeof n==`function`?n(e.originItemValue):n,{class:`${E.value}-item-icon`},!1),r?t:g(`span`,{class:`${E.value}-title-content`},[t])])},ge=l(()=>k.value!==`inline`&&C.value.length>1?`vertical`:k.value),_e=l(()=>k.value===`horizontal`?`vertical`:k.value),ve=l(()=>ge.value===`horizontal`?`vertical`:ge.value),ye=()=>{let t=V.value,n=e.icon??r.icon?.call(r,e),i=e.expandIcon||r.expandIcon||L.value,a=J(P(r,e,`title`),n);return g(`div`,{style:pe.value,class:`${t}-title`,tabindex:H.value?null:-1,ref:ae,title:typeof a==`string`?a:null,"data-menu-id":m,"aria-expanded":W.value,"aria-haspopup":!0,"aria-controls":K,"aria-disabled":H.value,onClick:ue,onFocus:he},[a,k.value!==`horizontal`&&i?i(j(j({},e),{isOpen:W.value})):g(`i`,{class:`${t}-arrow`},null)])};return()=>{if(d)return z?r.default?.call(r):null;let t=V.value,n=()=>null;if(!N.value&&k.value!==`inline`){let i=k.value===`horizontal`?[0,8]:[10,0];n=()=>g(Ze,{mode:ge.value,prefixCls:t,visible:!e.internalPopupClose&&W.value,popupClassName:q.value,popupOffset:e.popupOffset||i,disabled:H.value,onVisibleChange:me},{default:()=>[ye()],popup:()=>g(Ie,{mode:ve.value},{default:()=>[g(Qe,{id:K,ref:oe},{default:r.default})]})})}else n=()=>g(Ze,null,{default:ye});return g(Ie,{mode:_e.value},{default:()=>[g(ne.Item,x(x({component:`li`},i),{},{role:`none`,class:S(t,`${t}-${k.value}`,i.class,{[`${t}-open`]:W.value,[`${t}-active`]:G.value,[`${t}-selected`]:le.value,[`${t}-disabled`]:H.value}),onMouseenter:de,onMouseleave:fe,"data-submenu-id":m}),{default:()=>g(o,null,[n(),!N.value&&g($e,{id:K,open:W.value,keyPath:C.value},{default:r.default})])})]})}}}),tt=e({compatConfig:{MODE:3},name:`AMenuItemGroup`,inheritAttrs:!1,props:{title:F.any,originItemValue:b()},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=Y(),a=l(()=>`${i.value}-item-group`),o=Ge();return()=>o?n.default?.call(n):g(`li`,x(x({},r),{},{onClick:e=>e.stopPropagation(),class:a.value}),[g(`div`,{title:typeof e.title==`string`?e.title:void 0,class:`${a.value}-title`},[P(n,e,`title`)]),g(`ul`,{class:`${a.value}-list`},[n.default?.call(n)])])}}),nt=e({compatConfig:{MODE:3},name:`AMenuDivider`,props:{prefixCls:String,dashed:Boolean},setup(e){let{prefixCls:t}=Y(),n=l(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>g(`li`,{class:n.value},null)}}),rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function it(e,t,n){return(e||[]).map((e,r)=>{if(e&&typeof e==`object`){let i=e,{label:a,children:o,key:s,type:c}=i,l=rt(i,[`label`,`children`,`key`,`type`]),u=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],p=[],m={eventKey:u,key:u,parentEventKeys:d(f),parentKeys:d(f),childrenEventKeys:d(p),isLeaf:!1};if(o||c===`group`){if(c===`group`){let r=it(o,t,n);return g(tt,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}t.set(u,m),n&&n.childrenEventKeys.push(u);let r=it(o,t,{childrenEventKeys:p,parentKeys:[].concat(f,u)});return g(Q,x(x({key:u},l),{},{title:a,originItemValue:e}),{default:()=>[r]})}return c===`divider`?g(nt,x({key:u},l),null):(m.isLeaf=!0,t.set(u,m),g(X,x(x({key:u},l),{},{originItemValue:e}),{default:()=>[a]}))}return null}).filter(e=>e)}function at(e){let t=u([]),n=u(!1),r=u(new Map);return c(()=>e.items,()=>{let i=new Map;n.value=!1,e.items?(n.value=!0,t.value=it(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var ot=e=>{let{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
2
2
  > ${t}-item-active,
3
3
  > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},st=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:`rtl`},[`${t}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${t}-rtl${t}-vertical,
4
4
  ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},ct=e=>j({},N(e)),lt=(e,t)=>{let{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:o,colorSubItemBg:s,colorItemBgSelected:c,colorActiveBarHeight:l,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,menuItemPaddingInline:h,motionDurationMid:g,colorItemTextHover:_,lineType:v,colorSplit:y,colorItemTextDisabled:b,colorDangerItemText:x,colorDangerItemTextHover:S,colorDangerItemTextSelected:C,colorDangerItemBgActive:w,colorDangerItemBgSelected:T,colorItemBgHover:E,menuSubMenuBg:ee,colorItemTextSelectedHorizontal:D,colorItemBgSelectedHorizontal:O}=e;return{[`${n}-${t}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:j({},ct(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${b} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:j({},ct(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:ee},[`&${n}-popup > ${n}`]:{backgroundColor:o},[`&${n}-horizontal`]:j(j({},t===`dark`?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:`absolute`,insetInline:h,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${f} ${p}`,content:`""`},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:l,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:O,"&::after":{borderBottomWidth:l,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(`,`)}}}}}},ut=e=>{let{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=e,c=i+a+o;return{[`${t}-item`]:{position:`relative`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,
@@ -1,4 +1,4 @@
1
- import{C as e,f as t,k as n,x as r}from"./BSCpFtzG.js";import{At as i,Ct as a,O as o,_ as s,_t as c,ct as l,d as u,f as d,h as f,kt as p,n as m,ot as h,pt as g,rt as _,t as v,u as y}from"./BDUjyaF4.js";import{t as b}from"./BfGc7TJp.js";import{G as ee,K as x,U as te}from"./Z8k0uMSI.js";import{g as S}from"./ByGNWgAr.js";import{t as C}from"./DdPeifHR.js";var w=e=>{let{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:i,cardHeadTabsMarginBottom:a}=e;return p(p({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:`transparent`,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},d()),{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":p(p({display:`inline-block`,flex:1},s),{[`
1
+ import{C as e,f as t,k as n,x as r}from"./BSCpFtzG.js";import{At as i,Ct as a,O as o,_ as s,_t as c,ct as l,d as u,f as d,h as f,kt as p,n as m,ot as h,pt as g,rt as _,t as v,u as y}from"./BDUjyaF4.js";import{t as b}from"./BfGc7TJp.js";import{G as ee,K as x,U as te}from"./Bt_HDizI.js";import{g as S}from"./Do88WZG2.js";import{t as C}from"./B4Fia4FB.js";var w=e=>{let{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:i,cardHeadTabsMarginBottom:a}=e;return p(p({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:`transparent`,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},d()),{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":p(p({display:`inline-block`,flex:1},s),{[`
2
2
  > ${n}-typography,
3
3
  > ${n}-typography-edit-content
4
4
  `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},T=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
@@ -1 +1 @@
1
- import{C as e,F as t,H as n,St as r,Wt as i,b as a,et as o,f as s,g as c,m as l,mt as u,p as d,t as f,z as p}from"./BSCpFtzG.js";import{d as m}from"./PQLnLxYe.js";import{t as h}from"./NIM0Wglj2.js";import{t as g}from"./C_gFA2H_2.js";import{n as _,t as v}from"./ZugRk0CM2.js";import{t as y}from"./CNs_Ozdc2.js";import{t as b}from"./B9Yie5HN.js";var x={class:`town-page`},S={key:0,"data-hud":`town-empty`,class:`pane-empty`},C={class:`pe-title`},w={class:`pe-sub`},T={key:2,"data-hud":`town-loading`,class:`pane-loading`},E=f(e({__name:`town`,setup(e){y({layout:`town`,title:`Digital Twin`});let f=h(),E=_(),D=g(),{subscribe:O,unsubscribe:k}=v(),A=u(!1);p(()=>{if(!f.isLoggedIn){m(`/workshop`);return}A.value=!0,D.load()});let j=s(()=>{let e=[];for(let t of D.workspaces)for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e});o(()=>j.value.join(`,`),()=>{for(let e of j.value)O(e)},{immediate:!0}),t(()=>{for(let e of j.value)k(e)});let M=s(()=>{let e=j.value[0];if(e&&E.channels[e])return e;for(let e of D.workspaces)for(let t of e.channelIds??[])if(E.channels[t])return t;return j.value[0]??void 0}),N=s(()=>j.value.length>0);return(e,t)=>{let o=b;return n(),c(`div`,x,[r(A)&&!r(N)?(n(),c(`div`,S,[t[0]||=d(`span`,{class:`pe-icon i-tabler-map-2`},null,-1),d(`div`,C,i(e.$t(`town.k1wm8wtr001`)),1),d(`div`,w,[a(i(e.$t(`town.k47e4s002`))+` `,1),d(`b`,null,`Agent `+i(e.$t(`town.k3n4mae005`)),1),a(` `+i(e.$t(`town.k17rerba003`)),1)])])):r(M)?(n(),l(o,{key:1,"channel-id":r(M),"all-channels":!0},null,8,[`channel-id`])):(n(),c(`div`,T,i(e.$t(`town.k1uc5mup004`)),1))])}}}),[[`__scopeId`,`data-v-ded306d3`]]);export{E as default};
1
+ import{C as e,F as t,H as n,St as r,Wt as i,b as a,et as o,f as s,g as c,m as l,mt as u,p as d,t as f,z as p}from"./BSCpFtzG.js";import{d as m}from"./PQLnLxYe.js";import{t as h}from"./NIM0Wglj2.js";import{t as g}from"./C_gFA2H_2.js";import{n as _,t as v}from"./ZugRk0CM2.js";import{t as y}from"./CNs_Ozdc2.js";import{t as b}from"./ButLXkjo.js";var x={class:`town-page`},S={key:0,"data-hud":`town-empty`,class:`pane-empty`},C={class:`pe-title`},w={class:`pe-sub`},T={key:2,"data-hud":`town-loading`,class:`pane-loading`},E=f(e({__name:`town`,setup(e){y({layout:`town`,title:`Digital Twin`});let f=h(),E=_(),D=g(),{subscribe:O,unsubscribe:k}=v(),A=u(!1);p(()=>{if(!f.isLoggedIn){m(`/workshop`);return}A.value=!0,D.load()});let j=s(()=>{let e=[];for(let t of D.workspaces)for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e});o(()=>j.value.join(`,`),()=>{for(let e of j.value)O(e)},{immediate:!0}),t(()=>{for(let e of j.value)k(e)});let M=s(()=>{let e=j.value[0];if(e&&E.channels[e])return e;for(let e of D.workspaces)for(let t of e.channelIds??[])if(E.channels[t])return t;return j.value[0]??void 0}),N=s(()=>j.value.length>0);return(e,t)=>{let o=b;return n(),c(`div`,x,[r(A)&&!r(N)?(n(),c(`div`,S,[t[0]||=d(`span`,{class:`pe-icon i-tabler-map-2`},null,-1),d(`div`,C,i(e.$t(`town.k1wm8wtr001`)),1),d(`div`,w,[a(i(e.$t(`town.k47e4s002`))+` `,1),d(`b`,null,`Agent `+i(e.$t(`town.k3n4mae005`)),1),a(` `+i(e.$t(`town.k17rerba003`)),1)])])):r(M)?(n(),l(o,{key:1,"channel-id":r(M),"all-channels":!0},null,8,[`channel-id`])):(n(),c(`div`,T,i(e.$t(`town.k1uc5mup004`)),1))])}}}),[[`__scopeId`,`data-v-ded306d3`]]);export{E as default};
@@ -1,4 +1,4 @@
1
- import{C as e,F as t,O as n,U as r,et as i,f as a,mt as o,tt as s,x as c,z as l}from"./BSCpFtzG.js";import{At as u,B as d,Ct as f,O as p,Q as m,X as h,Y as g,ct as _,d as v,h as y,j as b,kt as x,n as S,p as C,t as w,tt as T,u as E}from"./BDUjyaF4.js";import{d as D,p as O}from"./Z8k0uMSI.js";import{a as k}from"./DPDqAD1e.js";var A=new p(`antCheckboxEffect`,{"0%":{transform:`scale(1)`,opacity:.5},"100%":{transform:`scale(1.6)`,opacity:0}}),j=e=>{let{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:x(x({},y(e)),{display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:x(x({},y(e)),{display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:x(x({},y(e)),{position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:x({},C(e))},[`${t}-inner`]:{boxSizing:`border-box`,position:`relative`,top:0,insetInlineStart:0,display:`block`,width:e.checkboxSize,height:e.checkboxSize,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:`border-box`,position:`absolute`,top:`50%`,insetInlineStart:`21.5%`,display:`table`,width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}}}}},{[`${n}:hover ${t}:after`]:{visibility:`visible`},[`
1
+ import{C as e,F as t,O as n,U as r,et as i,f as a,mt as o,tt as s,x as c,z as l}from"./BSCpFtzG.js";import{At as u,B as d,Ct as f,O as p,Q as m,X as h,Y as g,ct as _,d as v,h as y,j as b,kt as x,n as S,p as C,t as w,tt as T,u as E}from"./BDUjyaF4.js";import{d as D,p as O}from"./Bt_HDizI.js";import{a as k}from"./BSXx2vqR.js";var A=new p(`antCheckboxEffect`,{"0%":{transform:`scale(1)`,opacity:.5},"100%":{transform:`scale(1.6)`,opacity:0}}),j=e=>{let{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:x(x({},y(e)),{display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:x(x({},y(e)),{display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:x(x({},y(e)),{position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:x({},C(e))},[`${t}-inner`]:{boxSizing:`border-box`,position:`relative`,top:0,insetInlineStart:0,display:`block`,width:e.checkboxSize,height:e.checkboxSize,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:`border-box`,position:`absolute`,top:`50%`,insetInlineStart:`21.5%`,display:`table`,width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}}}}},{[`${n}:hover ${t}:after`]:{visibility:`visible`},[`
2
2
  ${n}:not(${n}-disabled),
3
3
  ${t}:not(${t}-disabled)
4
4
  `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderRadius:e.borderRadiusSM,visibility:`hidden`,border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:A,animationDuration:e.motionDurationSlow,animationTimingFunction:`ease-in-out`,animationFillMode:`backwards`,content:`""`,transition:`all ${e.motionDurationSlow}`}},[`
@@ -1 +1 @@
1
- import{x as e}from"./BSCpFtzG.js";import{i as t}from"./9X0fVBD7.js";var n={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function r(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){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(i,a){var o=r({},i,a.attrs);return e(t,r({},o,{icon:n}),null)};a.displayName=`LeftOutlined`,a.inheritAttrs=!1;export{a as t};
1
+ import{x as e}from"./BSCpFtzG.js";import{h as t}from"./BsMpJf7S.js";var n={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function r(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){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(i,a){var o=r({},i,a.attrs);return e(t,r({},o,{icon:n}),null)};a.displayName=`LeftOutlined`,a.inheritAttrs=!1;export{a as t};
@@ -0,0 +1 @@
1
+ function e(e,t=!0){if(!e)return``;let n=new Date(e);if(Number.isNaN(n.getTime()))return``;let r=String(n.getHours()).padStart(2,`0`),i=String(n.getMinutes()).padStart(2,`0`);return t?`${r}:${i}:${String(n.getSeconds()).padStart(2,`0`)}`:`${r}:${i}`}function t(){let e=new Date,t=(e,t)=>String(e).padStart(t,`0`),n=-e.getTimezoneOffset(),r=n>=0?`+`:`-`,i=Math.abs(n),a=new Date(e.getTime()+n*6e4);return`${t(a.getUTCFullYear(),4)}-${t(a.getUTCMonth()+1,2)}-${t(a.getUTCDate(),2)}T${t(a.getUTCHours(),2)}:${t(a.getUTCMinutes(),2)}:${t(a.getUTCSeconds(),2)}.${t(e.getMilliseconds(),3)}${r}${t(Math.floor(i/60),2)}:${t(i%60,2)}`}export{t as n,e as t};
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./CsCpu2Zh.js";t.Button=e,t.install=function(n){return n.component(t.name,t),n.component(e.name,e),n};var n=t;export{n as t};