@abtnode/webapp 1.16.32-beta-0b7f1250 → 1.16.32-beta-4d47ae7f

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 (200) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DWpKcN-u.js → Add-dnfsKeWz.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DpRC8bmp.js → ArrowDropDown-D5yKgLtP.js} +1 -1
  5. package/dist/assets/{Autocomplete-BRXMVx1_.js → Autocomplete-BSn-5DMw.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-Jf_U-bpr.js → Breadcrumbs-C1yNv4P4.js} +1 -1
  7. package/dist/assets/{ButtonGroup-CjdeZXiQ.js → ButtonGroup-rj0U42N7.js} +1 -1
  8. package/dist/assets/{CheckCircle-DAJDvaDs.js → CheckCircle-DPohrgKR.js} +1 -1
  9. package/dist/assets/{ChevronLeft-BAD_V2NB.js → ChevronLeft-BklOCwb5.js} +1 -1
  10. package/dist/assets/{ChevronRight-C3N0vcYC.js → ChevronRight-Cy5oOgJM.js} +1 -1
  11. package/dist/assets/{Close-ONBFJtxs.js → Close-8IwpjhC5.js} +1 -1
  12. package/dist/assets/{Delete-DyfYh5Dp.js → Delete-B0fykqSv.js} +1 -1
  13. package/dist/assets/{DeleteOutline-BeNbF0Jm.js → DeleteOutline-DEgVfrUs.js} +1 -1
  14. package/dist/assets/{Done-BwUiAzln.js → Done-BtTm21Vc.js} +1 -1
  15. package/dist/assets/{Edit-DNbPZJcj.js → Edit-DNMwtJ42.js} +1 -1
  16. package/dist/assets/{EditIcon-CQMDFxRX.js → EditIcon-BWg3vQRC.js} +1 -1
  17. package/dist/assets/{ExpandMore-OENv0Zf3.js → ExpandMore-w7mBNAbG.js} +1 -1
  18. package/dist/assets/{FilterList-DOSX0qYn.js → FilterList-DhkfKYuD.js} +1 -1
  19. package/dist/assets/{Google-Clt2u7fs.js → Google-3qO0oUTH.js} +1 -1
  20. package/dist/assets/{Https-C1_btbm6.js → Https-CogpIPjb.js} +1 -1
  21. package/dist/assets/{InputAdornment--p8LCNNy.js → InputAdornment-C4wvo3mY.js} +1 -1
  22. package/dist/assets/{InputLabel-CZjkqwQE.js → InputLabel-Dk0k1wxQ.js} +1 -1
  23. package/dist/assets/{LastPage-BgqTQGsQ.js → LastPage-CK19i1GM.js} +1 -1
  24. package/dist/assets/{Launch-4M4xlVcJ.js → Launch-5hm3IlRc.js} +1 -1
  25. package/dist/assets/{Link-B9IP_-Eb.js → Link-BREsjd_K.js} +1 -1
  26. package/dist/assets/{LoadingButton-D4Eem9Ye.js → LoadingButton-D1zztI8Y.js} +1 -1
  27. package/dist/assets/{LockIcon-DNmOq-UN.js → LockIcon--V5Fr4Qv.js} +1 -1
  28. package/dist/assets/{Loop-BA9fveaw.js → Loop-CCCvJbPZ.js} +1 -1
  29. package/dist/assets/{MoreHoriz-C2jn3juG.js → MoreHoriz-CgE1nQjP.js} +1 -1
  30. package/dist/assets/{MoreVert-s_b5pzH1.js → MoreVert-B2z5RSzn.js} +1 -1
  31. package/dist/assets/{Pagination-C4LxOrMX.js → Pagination-BqebM3WP.js} +1 -1
  32. package/dist/assets/{Public-E1EGIO8u.js → Public-CNSkavrM.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-BLA9DpAj.js → SchemaReference.es-Czd8VjNU.js} +1 -1
  34. package/dist/assets/{Search-DvHspZGZ.js → Search-DiD8rSmP.js} +1 -1
  35. package/dist/assets/{Select-DPQiNjEZ.js → Select-C9dnMaBi.js} +1 -1
  36. package/dist/assets/{Skeleton-DhAVWnjB.js → Skeleton-CgfCVzTR.js} +1 -1
  37. package/dist/assets/{Slider-IM6xBGec.js → Slider-C9ATxrld.js} +1 -1
  38. package/dist/assets/{Stepper-pjsUNGe-.js → Stepper-DbXOEvNn.js} +1 -1
  39. package/dist/assets/{TextField-CK1WkVgK.js → TextField-DVBgajf0.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-CxfQ5hQa.js → ToggleButtonGroup-CIYQdG-6.js} +1 -1
  41. package/dist/assets/{ViewList-CXsz8fEa.js → ViewList-CfaSgmZ_.js} +1 -1
  42. package/dist/assets/{actions-nCvhQAHx.js → actions-CYOtciGG.js} +1 -1
  43. package/dist/assets/{actions-DZdlSYXZ.js → actions-DX1xw5S7.js} +1 -1
  44. package/dist/assets/{agreement-DOGPCXwZ.js → agreement-Dl7_pFXc.js} +1 -1
  45. package/dist/assets/api-DYXwBG9u.js +1 -0
  46. package/dist/assets/{app-avatar-BuBN13SD.js → app-avatar-CgIjV1PQ.js} +1 -1
  47. package/dist/assets/ar-BSACs5SN.js +1 -0
  48. package/dist/assets/{audit-logs-CpNkISiG.js → audit-logs-Cr1uhYQQ.js} +1 -1
  49. package/dist/assets/blocklet-uada39gX.js +1 -0
  50. package/dist/assets/{brace-fold.es-CnVLaaYa.js → brace-fold.es-B-MIKlDJ.js} +1 -1
  51. package/dist/assets/{bundle-avatar-I8HkXJpE.js → bundle-avatar-BBqlxK_u.js} +1 -1
  52. package/dist/assets/{chart-DYC16wN7.js → chart-i8lNbY7K.js} +1 -1
  53. package/dist/assets/{click-to-copy-D1k0ZJxd.js → click-to-copy-DB7iKgQI.js} +1 -1
  54. package/dist/assets/{closebrackets.es-CXrbbB3A.js → closebrackets.es-j1eDGXwE.js} +1 -1
  55. package/dist/assets/{codemirror.es-BoWLOKcl.js → codemirror.es-BOzJFD5o.js} +1 -1
  56. package/dist/assets/{comment.es-Di0JRU_Q.js → comment.es-DtR3S6b9.js} +1 -1
  57. package/dist/assets/{config-navigation-BXaw3SS0.js → config-navigation-CUr1lk5l.js} +1 -1
  58. package/dist/assets/de-9vHBMa7b.js +1 -0
  59. package/dist/assets/{delete-confirm-H8kgJ4fp.js → delete-confirm-BK6NDdtj.js} +1 -1
  60. package/dist/assets/{detail-BGzCRUYj.js → detail-BNXtHfSr.js} +3 -3
  61. package/dist/assets/{dialog.es-BCtBfsF1.js → dialog.es-TaLKdDsD.js} +1 -1
  62. package/dist/assets/{download-DMPUUrms.js → download-DcJQb3qH.js} +1 -1
  63. package/dist/assets/es-Bk9E9Gbf.js +1 -0
  64. package/dist/assets/{foldgutter.es-E4CQ752m.js → foldgutter.es-Dy4azD1D.js} +1 -1
  65. package/dist/assets/fr-C5fh5fdm.js +1 -0
  66. package/dist/assets/getValidReactChildren-CWIs5P8J.js +1 -0
  67. package/dist/assets/hi-HiGtGtUs.js +1 -0
  68. package/dist/assets/{hint.es-C04g9UeS.js → hint.es-u77uAf0G.js} +1 -1
  69. package/dist/assets/{hint.es2-Yrv2ylTe.js → hint.es2-DwJHlvJJ.js} +1 -1
  70. package/dist/assets/id-CirrqXGd.js +1 -0
  71. package/dist/assets/{iframe-BqheM3L9.js → iframe-BQmWj7PI.js} +1 -1
  72. package/dist/assets/{index-ChS_Pc5m.js → index-0MBL3T74.js} +1 -1
  73. package/dist/assets/{index-BqgCbQUh.js → index-8YS3tvqQ.js} +1 -1
  74. package/dist/assets/{index-CqJYYaWO.js → index-AfGDhKem.js} +1 -1
  75. package/dist/assets/{index-CbA7sl2z.js → index-BA8q4T5d.js} +1 -1
  76. package/dist/assets/{index-ChMuqQhO.js → index-BC2YsQtX.js} +1 -1
  77. package/dist/assets/index-BEBt2OVN.js +302 -0
  78. package/dist/assets/{index-Dytzeids.js → index-BEEITpm2.js} +1 -1
  79. package/dist/assets/{index-DBCkW9MN.js → index-BK3y8xZc.js} +1 -1
  80. package/dist/assets/{index-DSe7TL0J.js → index-BN4cj6Ge.js} +3 -3
  81. package/dist/assets/{index-C2t5LWRf.js → index-BR6RAeFJ.js} +1 -1
  82. package/dist/assets/{index-CHZY388_.js → index-BRgfWHhj.js} +1 -1
  83. package/dist/assets/{index-BwSVsn4U.js → index-BSDY11-t.js} +1 -1
  84. package/dist/assets/{index-Bo3kA0GY.js → index-BT6VGB9G.js} +1 -1
  85. package/dist/assets/{index-DWMoLGgj.js → index-BX4iEp1D.js} +1 -1
  86. package/dist/assets/{index-D8cKX9nz.js → index-BfRxX64H.js} +1 -1
  87. package/dist/assets/{index-DfHODGgp.js → index-Bnq8YC_d.js} +1 -1
  88. package/dist/assets/{index-DrA6t9XN.js → index-Bva9O3_u.js} +1 -1
  89. package/dist/assets/{index-59UIPqJD.js → index-BxGkIZkv.js} +1 -1
  90. package/dist/assets/{index-Bgn8IBLJ.js → index-ByWyjM2a.js} +1 -1
  91. package/dist/assets/{index-ChmGkB6N.js → index-CF2SXTd_.js} +1 -1
  92. package/dist/assets/{index-DQDFultN.js → index-CGOUaJ_z.js} +1 -1
  93. package/dist/assets/{index-CX-CBC_8.js → index-CKU0PpEw.js} +9 -9
  94. package/dist/assets/{index-BWXhDqh4.js → index-CLaUBzpx.js} +1 -1
  95. package/dist/assets/{index-cR-wh0v1.js → index-CV3ryoS4.js} +1 -1
  96. package/dist/assets/{index-GxcCCStf.js → index-CVPBRbm1.js} +1 -1
  97. package/dist/assets/{index-CvxaH3or.js → index-Ce7_NM_l.js} +5 -5
  98. package/dist/assets/{index-DSMtyaan.js → index-CoH2bFyE.js} +1 -1
  99. package/dist/assets/{index-D5BI_0Y3.js → index-Cp3qTuzw.js} +1 -1
  100. package/dist/assets/{index-B1Hn6vLR.js → index-Cvvgotet.js} +1 -1
  101. package/dist/assets/{index-DPaVhekN.js → index-DF7t5ulw.js} +1 -1
  102. package/dist/assets/{index-pn9KZg_s.js → index-DGyfdk8f.js} +1 -1
  103. package/dist/assets/{index-wGYPkAW3.js → index-DPcAeqds.js} +1 -1
  104. package/dist/assets/{index-BiC43zns.js → index-DZQS_4gu.js} +1 -1
  105. package/dist/assets/{index-bVh0eo8P.js → index-DZjB4N8F.js} +1 -1
  106. package/dist/assets/{index-CtwmcOKA.js → index-Dg1KeOMS.js} +1 -1
  107. package/dist/assets/{index-CfpEgOA0.js → index-Dg4p7m7g.js} +1 -1
  108. package/dist/assets/{index-CRPL3-Eg.js → index-Dm-4lIW1.js} +1 -1
  109. package/dist/assets/{index-CzOBa7wa.js → index-Dp1i8yMQ.js} +1 -1
  110. package/dist/assets/{index-B-Ld-2Ly.js → index-R9IrSene.js} +3 -3
  111. package/dist/assets/{index-BXLcUio2.js → index-Ro8S3v1v.js} +2 -2
  112. package/dist/assets/{index-Ir1Ynx3j.js → index-_57evWXG.js} +1 -1
  113. package/dist/assets/{index-CSJhz71g.js → index-sx4u53xb.js} +1 -1
  114. package/dist/assets/{index-C7FHl3UZ.js → index-yU18hYDn.js} +1 -1
  115. package/dist/assets/{index.es-DpBhdLHz.js → index.es-CNAugZ9D.js} +1 -1
  116. package/dist/assets/{index.esm-Cm5bDJvK.js → index.esm-CbROOlWk.js} +1 -1
  117. package/dist/assets/{info-addon.es-Bm6N_jGk.js → info-addon.es-BJXbjQmj.js} +1 -1
  118. package/dist/assets/{info.es-C1vDTqje.js → info.es-CnO41P_j.js} +1 -1
  119. package/dist/assets/{install-from-url-C5ZZLYX3.js → install-from-url-CYqL_tS8.js} +1 -1
  120. package/dist/assets/{invitation-BuDjbT3x.js → invitation-Dkr7HTfM.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-MT4O3ono.js → is-path-prefix-equal-dM_7v7sm.js} +1 -1
  122. package/dist/assets/{isEqual-C8jFbxEO.js → isEqual-CWkOkE3q.js} +1 -1
  123. package/dist/assets/{item-DmRpat8A.js → item-Dfdy3fBF.js} +3 -3
  124. package/dist/assets/ja-BOs7uPqI.js +1 -0
  125. package/dist/assets/{javascript.es-CWA0V3mM.js → javascript.es-1zj6tny8.js} +1 -1
  126. package/dist/assets/{jump-to-line.es-BITLwcgJ.js → jump-to-line.es-B52gKugW.js} +1 -1
  127. package/dist/assets/{jump.es-fVm9xBWY.js → jump.es-DEfCvlSx.js} +1 -1
  128. package/dist/assets/ko-D1G4UvNg.js +1 -0
  129. package/dist/assets/{line-vQYPOsJl.js → line-DJF9U3Hn.js} +3 -3
  130. package/dist/assets/{lint.es-BN9f3Hg9.js → lint.es-Cr4lTT47.js} +1 -1
  131. package/dist/assets/{lint.es2-Dt2lwIVK.js → lint.es2-CG8CQOKj.js} +1 -1
  132. package/dist/assets/{lint.es3-sBho7ETd.js → lint.es3-tZUxhQQv.js} +1 -1
  133. package/dist/assets/{list-header-DkOo80YP.js → list-header-D-2TeKGc.js} +1 -1
  134. package/dist/assets/{log-CgFbIbvp.js → log-CCZylFBp.js} +1 -1
  135. package/dist/assets/{lottie-xnBjXQ5H.js → lottie-BYjrbQZi.js} +1 -1
  136. package/dist/assets/{matchbrackets.es-Ci37WRje.js → matchbrackets.es-C5S4hCvt.js} +1 -1
  137. package/dist/assets/{memory-rY7rc2Pr.js → memory-CCJf6Oap.js} +1 -1
  138. package/dist/assets/{mode.es-CIMZsD3l.js → mode.es-Cftfqo0_.js} +1 -1
  139. package/dist/assets/{mode.es2-Buy6Zs7Q.js → mode.es2-23_w6MZe.js} +1 -1
  140. package/dist/assets/{mode.es3-CbjER9bZ.js → mode.es3-DIim34HU.js} +1 -1
  141. package/dist/assets/{onlineParser.es-DClTB48M.js → onlineParser.es-c9pwtp6F.js} +1 -1
  142. package/dist/assets/{overview-GTzk3Rt6.js → overview-DFU3sn32.js} +1 -1
  143. package/dist/assets/pt-CcFeyma6.js +1 -0
  144. package/dist/assets/{react-BX4vljA0.js → react-v4Fmho2P.js} +20 -20
  145. package/dist/assets/{redux-CiOMdG2L.js → redux-Deq08ymq.js} +1 -1
  146. package/dist/assets/{resource-dialog-aFD_HBXU.js → resource-dialog-B_GC7Wxr.js} +1 -1
  147. package/dist/assets/ru-OymXgLUI.js +1 -0
  148. package/dist/assets/{runtime-B3RZCh1x.js → runtime-BU8s3Bm9.js} +1 -1
  149. package/dist/assets/{schema-BzCltIyc.js → schema-9CKP9bpC.js} +1 -1
  150. package/dist/assets/sdk-CmnXPS9s.js +1 -0
  151. package/dist/assets/{search.es-kY0vSJsp.js → search.es-BBUTlD5z.js} +1 -1
  152. package/dist/assets/{searchcursor.es-DdxQrbfv.js → searchcursor.es-B01leWAX.js} +1 -1
  153. package/dist/assets/service-hS_k_yhL.js +1 -0
  154. package/dist/assets/{shorten-label-C-ljprxl.js → shorten-label-CWSupRVi.js} +1 -1
  155. package/dist/assets/{show-hint.es-DiJd2cnC.js → show-hint.es-D5cxnYFx.js} +1 -1
  156. package/dist/assets/{slicedToArray-BRqOgi_5.js → slicedToArray-CZpLbkLy.js} +1 -1
  157. package/dist/assets/{spaces-DcSM3WjO.js → spaces-hi4ftAfe.js} +1 -1
  158. package/dist/assets/{status-DPLxEBYu.js → status-CK93XHvg.js} +1 -1
  159. package/dist/assets/{sublime.es-2rWUK1DK.js → sublime.es-BpQZvmGp.js} +1 -1
  160. package/dist/assets/{switch-control-C2T6recO.js → switch-control-CJEXTYUM.js} +1 -1
  161. package/dist/assets/{table-icons-Cw9lvDU6.js → table-icons-Cx83vwiQ.js} +1 -1
  162. package/dist/assets/{team-CoOZjBzx.js → team-CBAJp8tp.js} +1 -1
  163. package/dist/assets/th-CZbdb5PZ.js +1 -0
  164. package/dist/assets/{toUpper-MM-LMl4h.js → toUpper-ytGltLlY.js} +1 -1
  165. package/dist/assets/{traffic-CSlS8nHX.js → traffic-DufPWisE.js} +1 -1
  166. package/dist/assets/{url-evaluation-C5psqheg.js → url-evaluation-C4OHH0Ug.js} +1 -1
  167. package/dist/assets/{url-join-CN9FagN9.js → url-join-O3PI6xjl.js} +1 -1
  168. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DtrHJjly.js → use-blocklet-info-for-connect-did-spaces-DJY1Mwej.js} +1 -1
  169. package/dist/assets/{useLocalStorage-DoHM0_RD.js → useLocalStorage-B5JaxT-E.js} +1 -1
  170. package/dist/assets/{useThemeProps-DCfy4AlW.js → useThemeProps-AvaZ9peg.js} +1 -1
  171. package/dist/assets/{util-KSqE9V0r.js → util-j-puprzy.js} +1 -1
  172. package/dist/assets/vi-DhjQx2Z1.js +1 -0
  173. package/dist/assets/{wait-container-e8XKZH24.js → wait-container-DALbMZLf.js} +1 -1
  174. package/dist/assets/{withStyles-2CEBfzYU.js → withStyles-EplDP6p4.js} +1 -1
  175. package/dist/assets/wrap-locale-B2waNGO5.js +1 -0
  176. package/dist/assets/{zh-DfGqeTts.js → zh-jGK5FFL0.js} +1 -1
  177. package/dist/assets/zh-tw-DnmwTx49.js +1 -0
  178. package/dist/index.html +1 -1
  179. package/dist/service-worker.js +1 -1
  180. package/package.json +1 -1
  181. package/dist/assets/api-BiytJ2OL.js +0 -1
  182. package/dist/assets/ar-2JePd-i1.js +0 -1
  183. package/dist/assets/blocklet-CP5f1QgL.js +0 -1
  184. package/dist/assets/de-DFRVy5eA.js +0 -1
  185. package/dist/assets/es-D3TLX5Mb.js +0 -1
  186. package/dist/assets/fr-B2p5dLWr.js +0 -1
  187. package/dist/assets/getValidReactChildren-Ckfy1X1A.js +0 -1
  188. package/dist/assets/hi-DmXVnjfE.js +0 -1
  189. package/dist/assets/id-BPCkzz44.js +0 -1
  190. package/dist/assets/index-BIbeG_A4.js +0 -302
  191. package/dist/assets/ja-DdBhyqmR.js +0 -1
  192. package/dist/assets/ko-DagkAgw5.js +0 -1
  193. package/dist/assets/pt-DTmAqAWs.js +0 -1
  194. package/dist/assets/ru-BZQlsXeO.js +0 -1
  195. package/dist/assets/sdk-DmktCVPV.js +0 -1
  196. package/dist/assets/service-YfGgRaf0.js +0 -1
  197. package/dist/assets/th-DSRLorcE.js +0 -1
  198. package/dist/assets/vi-dE7BhTCc.js +0 -1
  199. package/dist/assets/wrap-locale-VUVZgNw_.js +0 -1
  200. package/dist/assets/zh-tw-COZAaB9V.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as We,Y as Ge,n as P,Q as v,Z as Q,j as e,$ as ke,r as x,P as E,t as _,a0 as ue,a1 as be,q as C,a2 as se,a3 as He,E as M,M as K,a4 as qe,m as A,T as Ve,a5 as Ye,B,D as Qe,C as ve,x as Ke,K as Se,a6 as Je,a7 as Ze,a8 as Xe,u as I,f as et,a9 as W,v as te,F as tt,aa as oe,A as je,w as re,ab as st,W as ne,i as J,y as Ce,z as Z,ac as ot,ad as rt,ae as Pe,af as nt,b as D,ag as at,O as it,ah as lt,R as ct,J as Re,ai as dt,aj as pt,ak as Te,al as Ee,am as De,an as Be,ao as Ue,ap as N,aq as Oe,ar as _e,as as Fe,at as ht}from"./index-CX-CBC_8.js";import{P as H,L as mt,A as ut,S as Ae,a as Le}from"./index-CHZY388_.js";import{A as ft,D as ae,u as xt,W as gt,P as wt,L as $e,d as Ne,a as Me}from"./wait-container-e8XKZH24.js";import{_ as fe}from"./useLocalStorage-DoHM0_RD.js";import{d as yt}from"./Launch-4M4xlVcJ.js";import{d as kt}from"./DeleteOutline-BeNbF0Jm.js";import{g as bt,i as vt}from"./spaces-DcSM3WjO.js";import{T as St}from"./TextField-CK1WkVgK.js";import{i as xe}from"./isEqual-C8jFbxEO.js";import{d as jt}from"./MoreVert-s_b5pzH1.js";import{E as Ct}from"./index-bVh0eo8P.js";import"./url-join-CN9FagN9.js";import"./Skeleton-DhAVWnjB.js";import"./Close-ONBFJtxs.js";import"./lottie-xnBjXQ5H.js";import"./api-BiytJ2OL.js";import"./Select-DPQiNjEZ.js";import"./InputLabel-CZjkqwQE.js";var Pt=Ge;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=We(Tt);function ie({children:t,selected:i}){return e.jsxs(Dt,{children:[t,e.jsx(v,{className:`selected-container ${i?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(v)`
1
+ import{g as We,Y as Ge,n as P,Q as v,Z as Q,j as e,$ as ke,r as x,P as E,t as _,a0 as ue,a1 as be,q as C,a2 as se,a3 as He,E as M,M as K,a4 as qe,m as A,T as Ve,a5 as Ye,B,D as Qe,C as ve,x as Ke,K as Se,a6 as Je,a7 as Ze,a8 as Xe,u as I,f as et,a9 as W,v as te,F as tt,aa as oe,A as je,w as re,ab as st,W as ne,i as J,y as Ce,z as Z,ac as ot,ad as rt,ae as Pe,af as nt,b as D,ag as at,O as it,ah as lt,R as ct,J as Re,ai as dt,aj as pt,ak as Te,al as Ee,am as De,an as Be,ao as Ue,ap as N,aq as Oe,ar as _e,as as Fe,at as ht}from"./index-CKU0PpEw.js";import{P as H,L as mt,A as ut,S as Ae,a as Le}from"./index-BRgfWHhj.js";import{A as ft,D as ae,u as xt,W as gt,P as wt,L as $e,d as Ne,a as Me}from"./wait-container-DALbMZLf.js";import{_ as fe}from"./useLocalStorage-B5JaxT-E.js";import{d as yt}from"./Launch-5hm3IlRc.js";import{d as kt}from"./DeleteOutline-DEgVfrUs.js";import{g as bt,i as vt}from"./spaces-hi4ftAfe.js";import{T as St}from"./TextField-DVBgajf0.js";import{i as xe}from"./isEqual-CWkOkE3q.js";import{d as jt}from"./MoreVert-B2z5RSzn.js";import{E as Ct}from"./index-DZjB4N8F.js";import"./url-join-O3PI6xjl.js";import"./Skeleton-CgfCVzTR.js";import"./Close-8IwpjhC5.js";import"./lottie-BYjrbQZi.js";import"./api-DYXwBG9u.js";import"./Select-C9dnMaBi.js";import"./InputLabel-Dk0k1wxQ.js";var Pt=Ge;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=We(Tt);function ie({children:t,selected:i}){return e.jsxs(Dt,{children:[t,e.jsx(v,{className:`selected-container ${i?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(v)`
2
2
  position: relative;
3
3
 
4
4
  .selected-container {
@@ -1,4 +1,4 @@
1
- import{r as H,j as o,fv as fo,ch as Ye,fw as po,fd as dt,Q,as as yr,ax as Ke,m as xe,ez as mo,d0 as zr,fx as ho,t as ke,fy as vr,fz as go,aG as yo,cg as vo,dM as ir,S as jt,dx as Rn,dA as Ct,fA as mt,eU as Ce,fB as bo,fj as Tn,fC as xo,fD as wo,fk as Cn,fE as br,fF as Eo,fG as jo,fH as So,fI as Ao,dw as ar,g as Po,cN as Wr,dD as Oo,N as Io,bl as _e,aO as Dn,U as St,dE as Ro,fJ as xr,at as ht,D as Ze,B as Ae,C as ot,x as wr,K as nt,M as Xe,P as $,fK as To,k as sr,aU as Co,y as Do,z as No,n as Be,fc as _o,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fL as Bo,aK as Nn,aL as _n,b as Je,d4 as Lo,v as Bn,H as Se,q as cr,W as At,cd as ko,fM as Uo,fN as Ln,aQ as qo,aD as Fo,a8 as Ko,cz as Mo,a2 as $o,bp as zo,aZ as Wo,a_ as Vo,R as Ho}from"./index-CX-CBC_8.js";import{c as Go}from"./index-ChS_Pc5m.js";import{d as Pt}from"./Add-DWpKcN-u.js";import{d as Yo}from"./Loop-BA9fveaw.js";import{d as Zo}from"./ViewList-CXsz8fEa.js";import{L as Jo,S as Xo,d as kn}from"./list-header-DkOo80YP.js";import{D as Er,g as Qo}from"./index-C7FHl3UZ.js";import"./index-CfpEgOA0.js";import{c as qt,U as Ft,d as Un}from"./resource-dialog-aFD_HBXU.js";import{T as ei}from"./index-ChmGkB6N.js";import{E as qn}from"./index-bVh0eo8P.js";import"./index-ChMuqQhO.js";import"./index-CqJYYaWO.js";import{l as Fn}from"./index-DWMoLGgj.js";import{o as Kn}from"./index-ZG7jWpak.js";import{W as Mn}from"./url-evaluation-C5psqheg.js";import{a as $e}from"./team-CoOZjBzx.js";import{u as $n}from"./blocklet-CP5f1QgL.js";import{C as Nt}from"./click-to-copy-D1k0ZJxd.js";import{F as lr,S as ur}from"./Select-DPQiNjEZ.js";import{I as fr}from"./InputLabel-CZjkqwQE.js";import{T as zn}from"./TextField-CK1WkVgK.js";import{I as dr}from"./index-wGYPkAW3.js";import{b as ti}from"./sdk-DmktCVPV.js";import{d as ri}from"./Delete-DyfYh5Dp.js";import{A as ni}from"./actions-DZdlSYXZ.js";import{S as oi}from"./shorten-label-C-ljprxl.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;ii(H);var tt=o;function ii(e){return e&&e.__esModule?e:{default:e}}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(n){ai(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ai(e,t,r){return(t=si(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function si(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Hr(Hr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var Et={},li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Vn="%[a-f0-9]{2}",Gr=new RegExp("("+Vn+")|([^%]+?)","gi"),Yr=new RegExp("("+Vn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function ui(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Gr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Gr)||[];return e}}function fi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Yr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ui(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Yr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var di=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return fi(e)}},pi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},mi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=li,r=di,n=pi,s=mi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const B=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=B};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function x(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function w(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=w(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function _(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),x(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=_(I[j],i);else f[b]=_(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),x(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const B=c[j];return B===void 0?"":B===null?E(j,i):Array.isArray(B)?B.reduce(f(j),[]).join("&"):E(j,i)+"="+E(B,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=w(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let B=A(c.url);return c.fragmentIdentifier&&(B=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${B}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=po,hi={parseNumbers:!1,parseBooleans:!1},gi={skipNull:!1,skipEmptyString:!1},yi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},hi),u),x=Object.assign(Object.assign({},gi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),w=fo(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),_=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[_,Ye(c=>{const i=typeof c=="function"?c(_):c;w(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},{replace:s==="replace",state:E.state})})]},vi=yi;let bi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Zr=e=>globalThis.DOMException===void 0?new bi(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Zr("This operation was aborted."):e.reason;return t instanceof Error?t:Zr(t)};async function xi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],x=[],E=new Map;let d=!1,O=!1,w=!1,A=0,S=0;const _=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(Jr(s)),s.addEventListener("abort",()=>{P(Jr(s))}));const c=async()=>{if(O)return;const i=await _.next(),a=S;if(S++,i.done){if(w=!0,A===0&&!O){if(!n&&x.length>0){P(new AggregateError(x));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==Xr&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===Xr&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{x.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(w||d)break}})()})}const Xr=Symbol("skip");async function wi(e,t){return xi(e,r=>r(),t)}function Ei({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(yr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(Q,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(mo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:zr.textBase,borderColor:zr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const ji={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Hn="Reserved IP",Qr="ip-region-cache";async function Si(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ai(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Pi(e){let t="",r={};try{const n=localStorage.getItem(Qr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ai(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Si(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Qr,JSON.stringify(r))}return t}async function Oi(e){return Promise.all(e.map(t=>Pi(t)))}const en=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ii({user:e,showAction:t=!0,showUser:r=!0}){const n=ho(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=vr(),y=Ye((i,a={})=>go(ji,i,s,"en",a)),x=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,B)=>[B,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await Oi(b);for(let j=0;j<I.length;j++){const B=I[j],z=f[j],J=i[z[0]];J.ipRegion=B}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return yo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=vo(x),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),w=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await wi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),_=[];t&&_.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(Q,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ei,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>w({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(Q,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Er,{locale:s,data:d,columns:c,customButtons:_,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=Rn,Ot=Ct,Ie=Fn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const x=s(u,1);return n.sign(x,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=y?s(u,1):u;return n.verify(x,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=y?n.ethHash(u):u;return n.ethRecover(x,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Ri(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Ri;function Ti(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Ti;function Ci(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=Ci;function Di(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Di;function Ni(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=Ni;function _i(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=_i;var Kt={exports:{}},Mt={},tn;function Gn(){if(tn)return Mt;tn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=x();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,w;function A(i,a,f){f||(f=Error);function b(j,B,z){return typeof a=="string"?a:a(j,B,z)}var I=function(j){n(z,j);var B=u(z);function z(J,X,G){var ee;return r(this,z),ee=B.call(this,b(J,X,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function _(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&_(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=mt);var b=w.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,rn;function Bi(){if(rn)return $t;rn=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function x(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),V;if(T){var g=c(this).constructor;V=Reflect.construct(D,arguments,g)}else V=D.apply(this,arguments);return d(this,V)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function w(R){var T=typeof Map=="function"?new Map:void 0;return w=function(D){if(D===null||!_(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,V)}function V(){return A(D,arguments,c(this).constructor)}return V.prototype=Object.create(D.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),P(V,D)},w(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(V,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(V,v),N=new L;return m&&P(N,m.prototype),N},A.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,V){return D.__proto__=V,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Gn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function B(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",J="",X="",G="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",V="",g=0,m="",v=!1,L=de(R),N=L.split(`
1
+ import{r as H,j as o,fv as fo,ch as Ye,fw as po,fd as dt,Q,as as yr,ax as Ke,m as xe,ez as mo,d0 as zr,fx as ho,t as ke,fy as vr,fz as go,aG as yo,cg as vo,dM as ir,S as jt,dx as Rn,dA as Ct,fA as mt,eU as Ce,fB as bo,fj as Tn,fC as xo,fD as wo,fk as Cn,fE as br,fF as Eo,fG as jo,fH as So,fI as Ao,dw as ar,g as Po,cN as Wr,dD as Oo,N as Io,bl as _e,aO as Dn,U as St,dE as Ro,fJ as xr,at as ht,D as Ze,B as Ae,C as ot,x as wr,K as nt,M as Xe,P as $,fK as To,k as sr,aU as Co,y as Do,z as No,n as Be,fc as _o,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fL as Bo,aK as Nn,aL as _n,b as Je,d4 as Lo,v as Bn,H as Se,q as cr,W as At,cd as ko,fM as Uo,fN as Ln,aQ as qo,aD as Fo,a8 as Ko,cz as Mo,a2 as $o,bp as zo,aZ as Wo,a_ as Vo,R as Ho}from"./index-CKU0PpEw.js";import{c as Go}from"./index-0MBL3T74.js";import{d as Pt}from"./Add-dnfsKeWz.js";import{d as Yo}from"./Loop-CCCvJbPZ.js";import{d as Zo}from"./ViewList-CfaSgmZ_.js";import{L as Jo,S as Xo,d as kn}from"./list-header-D-2TeKGc.js";import{D as Er,g as Qo}from"./index-yU18hYDn.js";import"./index-Dg4p7m7g.js";import{c as qt,U as Ft,d as Un}from"./resource-dialog-B_GC7Wxr.js";import{T as ei}from"./index-CF2SXTd_.js";import{E as qn}from"./index-DZjB4N8F.js";import"./index-BC2YsQtX.js";import"./index-AfGDhKem.js";import{l as Fn}from"./index-BX4iEp1D.js";import{o as Kn}from"./index-ZG7jWpak.js";import{W as Mn}from"./url-evaluation-C4OHH0Ug.js";import{a as $e}from"./team-CBAJp8tp.js";import{u as $n}from"./blocklet-uada39gX.js";import{C as Nt}from"./click-to-copy-DB7iKgQI.js";import{F as lr,S as ur}from"./Select-C9dnMaBi.js";import{I as fr}from"./InputLabel-Dk0k1wxQ.js";import{T as zn}from"./TextField-DVBgajf0.js";import{I as dr}from"./index-DPcAeqds.js";import{b as ti}from"./sdk-CmnXPS9s.js";import{d as ri}from"./Delete-B0fykqSv.js";import{A as ni}from"./actions-DX1xw5S7.js";import{S as oi}from"./shorten-label-CWSupRVi.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;ii(H);var tt=o;function ii(e){return e&&e.__esModule?e:{default:e}}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(n){ai(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ai(e,t,r){return(t=si(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function si(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Hr(Hr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var Et={},li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Vn="%[a-f0-9]{2}",Gr=new RegExp("("+Vn+")|([^%]+?)","gi"),Yr=new RegExp("("+Vn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function ui(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Gr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Gr)||[];return e}}function fi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Yr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ui(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Yr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var di=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return fi(e)}},pi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},mi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=li,r=di,n=pi,s=mi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const B=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=B};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function x(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function w(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=w(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function _(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),x(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=_(I[j],i);else f[b]=_(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),x(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const B=c[j];return B===void 0?"":B===null?E(j,i):Array.isArray(B)?B.reduce(f(j),[]).join("&"):E(j,i)+"="+E(B,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=w(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let B=A(c.url);return c.fragmentIdentifier&&(B=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${B}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=po,hi={parseNumbers:!1,parseBooleans:!1},gi={skipNull:!1,skipEmptyString:!1},yi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},hi),u),x=Object.assign(Object.assign({},gi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),w=fo(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),_=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[_,Ye(c=>{const i=typeof c=="function"?c(_):c;w(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},{replace:s==="replace",state:E.state})})]},vi=yi;let bi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Zr=e=>globalThis.DOMException===void 0?new bi(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Zr("This operation was aborted."):e.reason;return t instanceof Error?t:Zr(t)};async function xi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],x=[],E=new Map;let d=!1,O=!1,w=!1,A=0,S=0;const _=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(Jr(s)),s.addEventListener("abort",()=>{P(Jr(s))}));const c=async()=>{if(O)return;const i=await _.next(),a=S;if(S++,i.done){if(w=!0,A===0&&!O){if(!n&&x.length>0){P(new AggregateError(x));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==Xr&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===Xr&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{x.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(w||d)break}})()})}const Xr=Symbol("skip");async function wi(e,t){return xi(e,r=>r(),t)}function Ei({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(yr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(Q,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(mo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:zr.textBase,borderColor:zr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const ji={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Hn="Reserved IP",Qr="ip-region-cache";async function Si(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ai(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Pi(e){let t="",r={};try{const n=localStorage.getItem(Qr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ai(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Si(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Qr,JSON.stringify(r))}return t}async function Oi(e){return Promise.all(e.map(t=>Pi(t)))}const en=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ii({user:e,showAction:t=!0,showUser:r=!0}){const n=ho(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=vr(),y=Ye((i,a={})=>go(ji,i,s,"en",a)),x=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,B)=>[B,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await Oi(b);for(let j=0;j<I.length;j++){const B=I[j],z=f[j],J=i[z[0]];J.ipRegion=B}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return yo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=vo(x),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),w=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await wi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),_=[];t&&_.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(Q,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ei,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>w({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(Q,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Er,{locale:s,data:d,columns:c,customButtons:_,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=Rn,Ot=Ct,Ie=Fn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const x=s(u,1);return n.sign(x,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=y?s(u,1):u;return n.verify(x,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=y?n.ethHash(u):u;return n.ethRecover(x,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Ri(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Ri;function Ti(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Ti;function Ci(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=Ci;function Di(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Di;function Ni(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=Ni;function _i(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=_i;var Kt={exports:{}},Mt={},tn;function Gn(){if(tn)return Mt;tn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=x();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,w;function A(i,a,f){f||(f=Error);function b(j,B,z){return typeof a=="string"?a:a(j,B,z)}var I=function(j){n(z,j);var B=u(z);function z(J,X,G){var ee;return r(this,z),ee=B.call(this,b(J,X,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function _(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&_(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=mt);var b=w.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,rn;function Bi(){if(rn)return $t;rn=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function x(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),V;if(T){var g=c(this).constructor;V=Reflect.construct(D,arguments,g)}else V=D.apply(this,arguments);return d(this,V)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function w(R){var T=typeof Map=="function"?new Map:void 0;return w=function(D){if(D===null||!_(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,V)}function V(){return A(D,arguments,c(this).constructor)}return V.prototype=Object.create(D.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),P(V,D)},w(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(V,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(V,v),N=new L;return m&&P(N,m.prototype),N},A.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,V){return D.__proto__=V,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Gn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function B(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",J="",X="",G="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",V="",g=0,m="",v=!1,L=de(R),N=L.split(`
2
2
  `),U=de(T).split(`
3
3
  `),K=0,oe="";if(F==="strictEqual"&&i(R)==="object"&&i(T)==="object"&&R!==null&&T!==null&&(F="strictEqualObject"),N.length===1&&U.length===1&&N[0]!==U[0]){var ue=N[0].length+U[0].length;if(ue<=we){if((i(R)!=="object"||R===null)&&(i(T)!=="object"||T===null)&&(R!==0||T!==0))return"".concat(ee[F],`
4
4
 
@@ -1 +1 @@
1
- import{r as o,f as n,j as t,n as e}from"./index-CX-CBC_8.js";import{R as r}from"./index-ChMuqQhO.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
1
+ import{r as o,f as n,j as t,n as e}from"./index-CKU0PpEw.js";import{R as r}from"./index-BC2YsQtX.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
@@ -1 +1 @@
1
- import{hf as W,r as L,hg as z,ck as R,f6 as N,hh as x,hi as P,ci as j,hj as S}from"./index-CX-CBC_8.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(u.current+=1),e.current=a,z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var c=x(o),l=c.next();!l.done;l=c.next()){var p=l.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,c=e.exactMatch,l=c===void 0?!1:c,p=e.useCapture,y=p===void 0?!1:p,m=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,l),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
1
+ import{hf as W,r as L,hg as z,ck as R,f6 as N,hh as x,hi as P,ci as j,hj as S}from"./index-CKU0PpEw.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(u.current+=1),e.current=a,z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var c=x(o),l=c.next();!l.done;l=c.next()){var p=l.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,c=e.exactMatch,l=c===void 0?!1:c,p=e.useCapture,y=p===void 0?!1:p,m=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,l),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
@@ -1 +1 @@
1
- import{A as l,bg as m,u as p,j as s,U as u}from"./index-CX-CBC_8.js";import{L as g,D as v}from"./download-DMPUUrms.js";import{F as f,S as x}from"./Select-DPQiNjEZ.js";import"./ButtonGroup-CjdeZXiQ.js";import"./getValidReactChildren-Ckfy1X1A.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
1
+ import{A as l,bg as m,u as p,j as s,U as u}from"./index-CKU0PpEw.js";import{L as g,D as v}from"./download-DcJQb3qH.js";import{F as f,S as x}from"./Select-C9dnMaBi.js";import"./ButtonGroup-rj0U42N7.js";import"./getValidReactChildren-CWIs5P8J.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
@@ -1,4 +1,4 @@
1
- import{j as r,m as i,P as e,d4 as c,d5 as f,s as u}from"./index-CX-CBC_8.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
1
+ import{j as r,m as i,P as e,d4 as c,d5 as f,s as u}from"./index-CKU0PpEw.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{r as u,bh as _,bi as z,aK as J,aL as X,j as e,t as A,c as P,H as b,m as L,U as q,Q as k,B as K,C as w,ac as E,P as j,f as O,D as Y,aZ as ee,a_ as te,n as S,at as I,o as se,u as G,K as ae,M as ne,V as oe,bj as re,A as ce,bg as ie,d as le,bk as me}from"./index-CX-CBC_8.js";import{T as de}from"./index-ChmGkB6N.js";import pe from"./audit-logs-CpNkISiG.js";import{P as ue,M as fe}from"./index-D5BI_0Y3.js";import ye from"./index-59UIPqJD.js";import{T as ge}from"./team-CoOZjBzx.js";import{E as xe}from"./index-bVh0eo8P.js";import{d as he}from"./Add-DWpKcN-u.js";import{T as N}from"./TextField-CK1WkVgK.js";import{F as H,S as V}from"./Select-DPQiNjEZ.js";import{I as Q}from"./InputLabel-CZjkqwQE.js";import{C as W}from"./click-to-copy-D1k0ZJxd.js";import{f as ve}from"./index-BojVbZw0.js";import{d as je}from"./Delete-DyfYh5Dp.js";import{C as Ce}from"./delete-confirm-H8kgJ4fp.js";import{d as ke}from"./Edit-DNbPZJcj.js";import"./index-CbA7sl2z.js";import"./useLocalStorage-DoHM0_RD.js";import"./Pagination-C4LxOrMX.js";import"./LastPage-BgqTQGsQ.js";import"./index-ChS_Pc5m.js";import"./Loop-BA9fveaw.js";import"./ViewList-CXsz8fEa.js";import"./list-header-DkOo80YP.js";import"./Search-DvHspZGZ.js";import"./index-C7FHl3UZ.js";import"./FilterList-DOSX0qYn.js";import"./useThemeProps-DCfy4AlW.js";import"./index-CtwmcOKA.js";import"./redux-CiOMdG2L.js";import"./MoreVert-s_b5pzH1.js";import"./index-CfpEgOA0.js";import"./ExpandMore-OENv0Zf3.js";import"./resource-dialog-aFD_HBXU.js";import"./index-ChMuqQhO.js";import"./index-CqJYYaWO.js";import"./index-DWMoLGgj.js";import"./isEqual-C8jFbxEO.js";import"./index-ZG7jWpak.js";import"./url-evaluation-C5psqheg.js";import"./blocklet-CP5f1QgL.js";import"./index-wGYPkAW3.js";import"./sdk-DmktCVPV.js";import"./actions-DZdlSYXZ.js";import"./MoreHoriz-C2jn3juG.js";import"./shorten-label-C-ljprxl.js";import"./index-GxcCCStf.js";import"./ButtonGroup-CjdeZXiQ.js";import"./getValidReactChildren-Ckfy1X1A.js";import"./EditIcon-CQMDFxRX.js";import"./LockIcon-DNmOq-UN.js";import"./Google-Clt2u7fs.js";import"./index-D8cKX9nz.js";import"./InputAdornment--p8LCNNy.js";import"./ToggleButtonGroup-CxfQ5hQa.js";function be(){var o=u.useRef(!1),s=u.useCallback(function(){return o.current},[]);return u.useEffect(function(){return o.current=!0,function(){o.current=!1}},[]),s}function Ke(o,s,p){s===void 0&&(s=[]),p===void 0&&(p={loading:!1});var r=u.useRef(0),c=be(),t=u.useState(p),n=t[0],l=t[1],m=u.useCallback(function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var y=++r.current;return n.loading||l(function(g){return _(_({},g),{loading:!0})}),o.apply(void 0,a).then(function(g){return c()&&y===r.current&&l({value:g,loading:!1}),g},function(g){return c()&&y===r.current&&l({error:g,loading:!1}),g})},s);return[n,m]}function Se(o,s){s===void 0&&(s=[]);var p=Ke(o,s,{loading:!0}),r=p[0],c=p[1];return u.useEffect(function(){c()},[c]),r}var _e=function(o,s){s===void 0&&(s=[]);var p=u.useState(0),r=p[0],c=p[1],t=Se(o,z(s,[r])),n=t.loading,l=u.useCallback(function(){n||c(function(m){return m+1})},z(s,[n]));return _(_({},t),{retry:l})},R={},Ae=X;Object.defineProperty(R,"__esModule",{value:!0});var Z=R.default=void 0,we=Ae(J()),Ie=e;Z=R.default=(0,we.default)((0,Ie.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");function T(o){const{remark:s,onCreate:p}=o,{t:r}=A(),[c,t]=u.useState(!1),[n,l]=u.useState(null),m=P(),a=b.RBAC_CONFIG.roles.filter(x=>x.passport&&x.name!==b.ROLES.OWNER),f=()=>{t(!1),l(null)},y=async x=>{const{remark:h,passport:d}=x;t(!0);const i=await m.createAccessKey({input:{remark:h.trim(),passport:d}}),{data:C}=i;p(C),l(null),t(!1)},g={title:`${r("common.create")} ${r("common.accessKey")}`,description:(x,h,d)=>e.jsxs(L,{component:"div",children:[e.jsx(N,{label:r("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",inputProps:{"data-cy":"remark-input"},fullWidth:!0,autoFocus:!0,style:{marginBottom:32},margin:"dense",value:x.remark,onChange:i=>{h({...x,remark:i.target.value,__disableConfirm:!x.passport||!i.target.value.trim()}),i.target.value.trim()?d(""):d(r("setting.accessKey.remarkInvalid"))}}),e.jsxs(H,{style:{width:"100%"},variant:"outlined",children:[e.jsx(Q,{children:r("common.passport")}),e.jsx(V,{"data-cy":"create-access-key-select-passport",value:x.passport,onChange:i=>{const C=i.target.value;d(null),h({...x,passport:C,__disableConfirm:!x.remark||!C})},fullWidth:!0,label:r("common.passport"),disabled:c,children:a.map(i=>e.jsx(q,{value:i.name,"data-cy":`create-access-key-passport-option-${i.name}`,children:e.jsxs(k,{children:[e.jsx("span",{children:i.title||i.name}),e.jsx(k,{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify",children:i.description})]})},i.name))})]})]}),confirm:r("common.confirm"),cancel:r("common.cancel"),color:"primary",params:{remark:s,__disableConfirm:!s.trim()},onConfirm:y,onCancel:f};return e.jsxs(e.Fragment,{children:[e.jsxs(K,{edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>l(g),className:"rule-action",children:[c?e.jsx(w,{size:16}):e.jsx(he,{style:{fontSize:16}}),r("common.create")]}),n&&e.jsx(E,{title:n.title,description:n.description,confirm:n.confirm,color:n.color,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}T.propTypes={remark:j.string,onCreate:j.func};T.defaultProps={onCreate:()=>{},remark:""};function $(o){const{onConfirm:s,accessKeyId:p,accessKeySecret:r}=o,{t:c}=u.useContext(O),[t,n]=u.useState(!1),[l,m]=u.useState(!0),a=()=>{m(!l)},f=y=>{n(y.target.checked)};return e.jsxs(Y,{title:c("common.createSuccess"),fullWidth:!0,open:!0,disableEscapeKeyDown:!0,onClose:s,showCloseButton:!1,actions:e.jsx("div",{children:e.jsx(K,{disabled:!t,onClick:s,color:"primary",autoFocus:!0,variant:"contained","data-cy":"submit-confirm-dialog",children:c("common.confirm")})}),"aria-labelledby":"simple-dialog-title",children:[e.jsx("div",{children:e.jsx(Ne,{children:c("setting.accessKey.saveSecretTip")})}),e.jsx("div",{style:{marginTop:"20px"}}),e.jsxs(U,{children:[e.jsx(M,{children:"Access Key"}),e.jsx(W,{children:p})]}),e.jsxs(U,{children:[e.jsx(M,{children:"Access Secret"}),l?e.jsx(K,{"data-cy":"show-secret-btn",color:"primary",onClick:a,children:c("setting.accessKey.showSecret")}):e.jsx(W,{children:r})]}),e.jsx("div",{children:e.jsx(ee,{value:"end",disabled:l,control:e.jsx(te,{checked:t,onChange:f}),label:c("setting.accessKey.iKnow"),labelPlacement:"end"})})]})}$.propTypes={accessKeyId:j.string.isRequired,accessKeySecret:j.string.isRequired,onConfirm:j.func};$.defaultProps={onConfirm:()=>{}};const M=S.div`
1
+ import{r as u,bh as _,bi as z,aK as J,aL as X,j as e,t as A,c as P,H as b,m as L,U as q,Q as k,B as K,C as w,ac as E,P as j,f as O,D as Y,aZ as ee,a_ as te,n as S,at as I,o as se,u as G,K as ae,M as ne,V as oe,bj as re,A as ce,bg as ie,d as le,bk as me}from"./index-CKU0PpEw.js";import{T as de}from"./index-CF2SXTd_.js";import pe from"./audit-logs-Cr1uhYQQ.js";import{P as ue,M as fe}from"./index-Cp3qTuzw.js";import ye from"./index-BxGkIZkv.js";import{T as ge}from"./team-CBAJp8tp.js";import{E as xe}from"./index-DZjB4N8F.js";import{d as he}from"./Add-dnfsKeWz.js";import{T as N}from"./TextField-DVBgajf0.js";import{F as H,S as V}from"./Select-C9dnMaBi.js";import{I as Q}from"./InputLabel-Dk0k1wxQ.js";import{C as W}from"./click-to-copy-DB7iKgQI.js";import{f as ve}from"./index-BojVbZw0.js";import{d as je}from"./Delete-B0fykqSv.js";import{C as Ce}from"./delete-confirm-BK6NDdtj.js";import{d as ke}from"./Edit-DNMwtJ42.js";import"./index-BA8q4T5d.js";import"./useLocalStorage-B5JaxT-E.js";import"./Pagination-BqebM3WP.js";import"./LastPage-CK19i1GM.js";import"./index-0MBL3T74.js";import"./Loop-CCCvJbPZ.js";import"./ViewList-CfaSgmZ_.js";import"./list-header-D-2TeKGc.js";import"./Search-DiD8rSmP.js";import"./index-yU18hYDn.js";import"./FilterList-DhkfKYuD.js";import"./useThemeProps-AvaZ9peg.js";import"./index-Dg1KeOMS.js";import"./redux-Deq08ymq.js";import"./MoreVert-B2z5RSzn.js";import"./index-Dg4p7m7g.js";import"./ExpandMore-w7mBNAbG.js";import"./resource-dialog-B_GC7Wxr.js";import"./index-BC2YsQtX.js";import"./index-AfGDhKem.js";import"./index-BX4iEp1D.js";import"./isEqual-CWkOkE3q.js";import"./index-ZG7jWpak.js";import"./url-evaluation-C4OHH0Ug.js";import"./blocklet-uada39gX.js";import"./index-DPcAeqds.js";import"./sdk-CmnXPS9s.js";import"./actions-DX1xw5S7.js";import"./MoreHoriz-CgE1nQjP.js";import"./shorten-label-CWSupRVi.js";import"./index-CVPBRbm1.js";import"./ButtonGroup-rj0U42N7.js";import"./getValidReactChildren-CWIs5P8J.js";import"./EditIcon-BWg3vQRC.js";import"./LockIcon--V5Fr4Qv.js";import"./Google-3qO0oUTH.js";import"./index-BfRxX64H.js";import"./InputAdornment-C4wvo3mY.js";import"./ToggleButtonGroup-CIYQdG-6.js";function be(){var o=u.useRef(!1),s=u.useCallback(function(){return o.current},[]);return u.useEffect(function(){return o.current=!0,function(){o.current=!1}},[]),s}function Ke(o,s,p){s===void 0&&(s=[]),p===void 0&&(p={loading:!1});var r=u.useRef(0),c=be(),t=u.useState(p),n=t[0],l=t[1],m=u.useCallback(function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var y=++r.current;return n.loading||l(function(g){return _(_({},g),{loading:!0})}),o.apply(void 0,a).then(function(g){return c()&&y===r.current&&l({value:g,loading:!1}),g},function(g){return c()&&y===r.current&&l({error:g,loading:!1}),g})},s);return[n,m]}function Se(o,s){s===void 0&&(s=[]);var p=Ke(o,s,{loading:!0}),r=p[0],c=p[1];return u.useEffect(function(){c()},[c]),r}var _e=function(o,s){s===void 0&&(s=[]);var p=u.useState(0),r=p[0],c=p[1],t=Se(o,z(s,[r])),n=t.loading,l=u.useCallback(function(){n||c(function(m){return m+1})},z(s,[n]));return _(_({},t),{retry:l})},R={},Ae=X;Object.defineProperty(R,"__esModule",{value:!0});var Z=R.default=void 0,we=Ae(J()),Ie=e;Z=R.default=(0,we.default)((0,Ie.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");function T(o){const{remark:s,onCreate:p}=o,{t:r}=A(),[c,t]=u.useState(!1),[n,l]=u.useState(null),m=P(),a=b.RBAC_CONFIG.roles.filter(x=>x.passport&&x.name!==b.ROLES.OWNER),f=()=>{t(!1),l(null)},y=async x=>{const{remark:h,passport:d}=x;t(!0);const i=await m.createAccessKey({input:{remark:h.trim(),passport:d}}),{data:C}=i;p(C),l(null),t(!1)},g={title:`${r("common.create")} ${r("common.accessKey")}`,description:(x,h,d)=>e.jsxs(L,{component:"div",children:[e.jsx(N,{label:r("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",inputProps:{"data-cy":"remark-input"},fullWidth:!0,autoFocus:!0,style:{marginBottom:32},margin:"dense",value:x.remark,onChange:i=>{h({...x,remark:i.target.value,__disableConfirm:!x.passport||!i.target.value.trim()}),i.target.value.trim()?d(""):d(r("setting.accessKey.remarkInvalid"))}}),e.jsxs(H,{style:{width:"100%"},variant:"outlined",children:[e.jsx(Q,{children:r("common.passport")}),e.jsx(V,{"data-cy":"create-access-key-select-passport",value:x.passport,onChange:i=>{const C=i.target.value;d(null),h({...x,passport:C,__disableConfirm:!x.remark||!C})},fullWidth:!0,label:r("common.passport"),disabled:c,children:a.map(i=>e.jsx(q,{value:i.name,"data-cy":`create-access-key-passport-option-${i.name}`,children:e.jsxs(k,{children:[e.jsx("span",{children:i.title||i.name}),e.jsx(k,{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify",children:i.description})]})},i.name))})]})]}),confirm:r("common.confirm"),cancel:r("common.cancel"),color:"primary",params:{remark:s,__disableConfirm:!s.trim()},onConfirm:y,onCancel:f};return e.jsxs(e.Fragment,{children:[e.jsxs(K,{edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>l(g),className:"rule-action",children:[c?e.jsx(w,{size:16}):e.jsx(he,{style:{fontSize:16}}),r("common.create")]}),n&&e.jsx(E,{title:n.title,description:n.description,confirm:n.confirm,color:n.color,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}T.propTypes={remark:j.string,onCreate:j.func};T.defaultProps={onCreate:()=>{},remark:""};function $(o){const{onConfirm:s,accessKeyId:p,accessKeySecret:r}=o,{t:c}=u.useContext(O),[t,n]=u.useState(!1),[l,m]=u.useState(!0),a=()=>{m(!l)},f=y=>{n(y.target.checked)};return e.jsxs(Y,{title:c("common.createSuccess"),fullWidth:!0,open:!0,disableEscapeKeyDown:!0,onClose:s,showCloseButton:!1,actions:e.jsx("div",{children:e.jsx(K,{disabled:!t,onClick:s,color:"primary",autoFocus:!0,variant:"contained","data-cy":"submit-confirm-dialog",children:c("common.confirm")})}),"aria-labelledby":"simple-dialog-title",children:[e.jsx("div",{children:e.jsx(Ne,{children:c("setting.accessKey.saveSecretTip")})}),e.jsx("div",{style:{marginTop:"20px"}}),e.jsxs(U,{children:[e.jsx(M,{children:"Access Key"}),e.jsx(W,{children:p})]}),e.jsxs(U,{children:[e.jsx(M,{children:"Access Secret"}),l?e.jsx(K,{"data-cy":"show-secret-btn",color:"primary",onClick:a,children:c("setting.accessKey.showSecret")}):e.jsx(W,{children:r})]}),e.jsx("div",{children:e.jsx(ee,{value:"end",disabled:l,control:e.jsx(te,{checked:t,onChange:f}),label:c("setting.accessKey.iKnow"),labelPlacement:"end"})})]})}$.propTypes={accessKeyId:j.string.isRequired,accessKeySecret:j.string.isRequired,onConfirm:j.func};$.defaultProps={onConfirm:()=>{}};const M=S.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{r as d,j as o,s as h,Q as p,P as i}from"./index-CX-CBC_8.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",u(u({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
1
+ import{r as d,j as o,s as h,Q as p,P as i}from"./index-CKU0PpEw.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",u(u({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{cN as Ie,g as _a,cL as je,r as D,cU as Er,cI as Ea}from"./index-CX-CBC_8.js";import{c as Pa}from"./redux-CiOMdG2L.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",I="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",nn="[object Float32Array]",an="[object Float64Array]",on="[object Int8Array]",un="[object Int16Array]",sn="[object Int32Array]",cn="[object Uint8Array]",fn="[object Uint8ClampedArray]",ln="[object Uint16Array]",dn="[object Uint32Array]",gn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,pn=/^(?:0|[1-9]\d*)$/,w={};w[nn]=w[an]=w[on]=w[un]=w[sn]=w[cn]=w[fn]=w[ln]=w[dn]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[I]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,vn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||vn||Function("return this")(),wt=t&&!t.nodeType&&t,Ct=wt&&!0&&e&&!e.nodeType&&e,It=Ct&&Ct.exports===wt,Xe=It&&Tt.process,_t=function(){try{return Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function yn(i,u){for(var l=-1,g=i==null?0:i.length,C=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[C++]=E)}return y}function mn(i,u){for(var l=-1,g=u.length,C=i.length;++l<g;)i[C+l]=u[l];return i}function bn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Dn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function Sn(i){return function(u){return i(u)}}function On(i,u){return i.has(u)}function Tn(i,u){return i==null?void 0:i[u]}function wn(i){var u=-1,l=Array(i.size);return i.forEach(function(g,C){l[++u]=[C,g]}),l}function Cn(i,u){return function(l){return i(u(l))}}function In(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var _n=Array.prototype,En=Function.prototype,me=Object.prototype,Ke=W["__core-js_shared__"],Pt=En.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Pn=RegExp("^"+Pt.call(B).replace(gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=It?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,An=_n.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,kn=Rt?Rt.isBuffer:void 0,Rn=Cn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Mn=re(Ye),$n=re(ce),xn=re(Ve),Nn=re(Qe),jn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Ln(){this.__data__=fe?fe(null):{},this.size=0}function Hn(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function Un(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function Fn(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function qn(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=Ln,ee.prototype.delete=Hn,ee.prototype.get=Un,ee.prototype.has=Fn,ee.prototype.set=qn;function X(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Gn(){this.__data__=[],this.size=0}function Bn(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():An.call(u,l,1),--this.size,!0}function zn(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function Wn(i){return Se(this.__data__,i)>-1}function Xn(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}X.prototype.clear=Gn,X.prototype.delete=Bn,X.prototype.get=zn,X.prototype.has=Wn,X.prototype.set=Xn;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Kn(){this.size=0,this.__data__={hash:new ee,map:new(ce||X),string:new ee}}function Yn(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function Vn(i){return Oe(this,i).get(i)}function Qn(i){return Oe(this,i).has(i)}function Jn(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=Kn,te.prototype.delete=Yn,te.prototype.get=Vn,te.prototype.has=Qn,te.prototype.set=Jn;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function Zn(i){return this.__data__.set(i,n),this}function ea(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=Zn,De.prototype.has=ea;function V(i){var u=this.__data__=new X(i);this.size=u.size}function ta(){this.__data__=new X,this.size=0}function ra(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function na(i){return this.__data__.get(i)}function aa(i){return this.__data__.has(i)}function ia(i,u){var l=this.__data__;if(l instanceof X){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ta,V.prototype.delete=ra,V.prototype.get=na,V.prototype.has=aa,V.prototype.set=ia;function oa(i,u){var l=Te(i),g=!l&&Sa(i),C=!l&&!g&&et(i),y=!l&&!g&&!C&&zt(i),E=l||g||C||y,R=E?Dn(i.length,String):[],M=R.length;for(var _ in i)B.call(i,_)&&!(E&&(_=="length"||C&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||va(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function ua(i,u,l){var g=u(i);return Te(i)?g:mn(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?ha(i):Da(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,C){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:sa(i,u,l,g,Lt,C)}function sa(i,u,l,g,C,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,C,y):da(i,u,M,l,g,C,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,K=H?u.value():u;return y||(y=new V),C(J,K,l,g,y)}}return x?(y||(y=new V),ga(i,u,l,g,C,y)):!1}function ca(i){if(!Bt(i)||ma(i))return!1;var u=qt(i)?Pn:hn;return u.test(re(i))}function fa(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function la(i){if(!ba(i))return Rn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,C,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!bn(u,function(K,ne){if(!On(x,ne)&&(L===K||C(L,K,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||C(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function da(i,u,l,g,C,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case I:var R=wn;case $:var M=g&a;if(R||(R=In),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,C,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function ga(i,u,l,g,C,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var K=i[x],ne=u[x];if(g)var Wt=E?g(ne,K,x,u,i,y):g(K,ne,x,i,u,y);if(!(Wt===void 0?K===ne||C(K,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ce=u.constructor;we!=Ce&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ce=="function"&&Ce instanceof Ce)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return ua(i,wa,pa)}function Oe(i,u){var l=i.__data__;return ya(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Tn(i,u);return ca(l)?l:void 0}function ha(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var C=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),C}var pa=xt?function(i){return i==null?[]:(i=Object(i),yn(xt(i),function(u){return $t.call(i,u)}))}:Ca,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=I||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Mn:return ye;case $n:return I;case xn:return T;case Nn:return $;case jn:return se}return u});function va(i,u){return u=u??s,!!u&&(typeof i=="number"||pn.test(i))&&i>-1&&i%1==0&&i<u}function ya(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function ma(i){return!!At&&At in i}function ba(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Da(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var Sa=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function Oa(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=kn||Ia;function Ta(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?Sn(Et):fa;function wa(i){return Oa(i)?oa(i):la(i)}function Ca(){return[]}function Ia(){return!1}e.exports=Ta})(Le,Le.exports);var Aa=Le.exports;const As=_a(Aa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Xt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Ra(e,t){return e.filter(function(r){return r!==t})}function Pr(e){return Pe(e)==="object"}function Ma(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function $a(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var xa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Na(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Xt(s)),ja(r,f,d);var v=Ua(r,f);if(v===null){e.dispatch(xa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");La(c),b=c(v)}e.dispatch(Xt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);Ha(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function ja(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function La(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Ha(e){h(Pr(e),"Item must be an object.")}function Ua(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function Fa(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function qa(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;Ga(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();Ba(o,s,c);var f=s.getItemType();return za(o,c,f),Wa(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function Ga(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function Ba(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function za(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function Wa(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(n){Xa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ka(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();Ya(n);var o=Ja(n);o.forEach(function(s,c){var f=Va(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function Ya(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Va(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return Qa(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function Qa(e){h(typeof e>"u"||Pr(e),"Drop result must either be an object or undefined.")}function Ja(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Za(e){return function(){var r=e.getMonitor(),n=e.getRegistry();ei(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function ei(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function ti(e){return{beginDrag:Na(e),publishDragSource:Fa(e),hover:qa(e),drop:Ka(e),endDrag:Za(e)}}var ri=function(t,r){return t===r};function ni(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ai(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ri;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ii(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return ni(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function ui(e){return{type:pt,payload:{sourceId:e}}}function si(e){return{type:vt,payload:{targetId:e}}}function ci(e){return{type:yt,payload:{sourceId:e}}}function fi(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var di={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function gi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:di,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Ra(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function hi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function pi(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=$a(t,e);return r.length>0}function vi(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ma(n,o),c=s.length>0||!ai(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function yi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){mi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:vi(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:ka(e,"dragOperation.targetIds",[])})}),dragOffset:oi(e.dragOffset,t),refCount:hi(e.refCount,t),dragOperation:gi(e.dragOperation,t),stateId:yi(e.stateId)}}function Di(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ar(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Ar(Di(t,n),r)}function Oi(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Ar(t,r)}function Ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ci(e,t,r){return t&&wi(e.prototype,t),e}var Ii=function(){function e(t,r){Ti(this,e),this.store=t,this.registry=r}return Ci(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!pi(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Si(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Oi(this.store.getState().dragOffset)}}]),e}(),_i=0;function Ei(){return _i++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Pi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Ai(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const rr=typeof je<"u"?je:self,kr=rr.MutationObserver||rr.WebKitMutationObserver;function Rr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function ki(e){let t=1;const r=new kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ri=typeof kr=="function"?ki:Rr;class Mi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ri(this.flush),this.requestErrorThrow=Rr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class $i{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class xi{create(t){const r=this.freeTasks,n=r.length?r.pop():new $i(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Mr=new Mi,Ni=new xi(Mr.registerPendingError);function ji(e){Mr.enqueueTask(Ni.create(e))}function Li(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&Hi(e.prototype,t),e}function Fi(e,t){return zi(e)||Bi(e,t)||Gi(e,t)||qi()}function qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{cN as Ie,g as _a,cL as je,r as D,cU as Er,cI as Ea}from"./index-CKU0PpEw.js";import{c as Pa}from"./redux-Deq08ymq.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",I="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",nn="[object Float32Array]",an="[object Float64Array]",on="[object Int8Array]",un="[object Int16Array]",sn="[object Int32Array]",cn="[object Uint8Array]",fn="[object Uint8ClampedArray]",ln="[object Uint16Array]",dn="[object Uint32Array]",gn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,pn=/^(?:0|[1-9]\d*)$/,w={};w[nn]=w[an]=w[on]=w[un]=w[sn]=w[cn]=w[fn]=w[ln]=w[dn]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[I]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie,vn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||vn||Function("return this")(),wt=t&&!t.nodeType&&t,Ct=wt&&!0&&e&&!e.nodeType&&e,It=Ct&&Ct.exports===wt,Xe=It&&Tt.process,_t=function(){try{return Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function yn(i,u){for(var l=-1,g=i==null?0:i.length,C=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[C++]=E)}return y}function mn(i,u){for(var l=-1,g=u.length,C=i.length;++l<g;)i[C+l]=u[l];return i}function bn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Dn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function Sn(i){return function(u){return i(u)}}function On(i,u){return i.has(u)}function Tn(i,u){return i==null?void 0:i[u]}function wn(i){var u=-1,l=Array(i.size);return i.forEach(function(g,C){l[++u]=[C,g]}),l}function Cn(i,u){return function(l){return i(u(l))}}function In(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var _n=Array.prototype,En=Function.prototype,me=Object.prototype,Ke=W["__core-js_shared__"],Pt=En.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Pn=RegExp("^"+Pt.call(B).replace(gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=It?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,An=_n.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,kn=Rt?Rt.isBuffer:void 0,Rn=Cn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Mn=re(Ye),$n=re(ce),xn=re(Ve),Nn=re(Qe),jn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Ln(){this.__data__=fe?fe(null):{},this.size=0}function Hn(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function Un(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function Fn(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function qn(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=Ln,ee.prototype.delete=Hn,ee.prototype.get=Un,ee.prototype.has=Fn,ee.prototype.set=qn;function X(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Gn(){this.__data__=[],this.size=0}function Bn(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():An.call(u,l,1),--this.size,!0}function zn(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function Wn(i){return Se(this.__data__,i)>-1}function Xn(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}X.prototype.clear=Gn,X.prototype.delete=Bn,X.prototype.get=zn,X.prototype.has=Wn,X.prototype.set=Xn;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function Kn(){this.size=0,this.__data__={hash:new ee,map:new(ce||X),string:new ee}}function Yn(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function Vn(i){return Oe(this,i).get(i)}function Qn(i){return Oe(this,i).has(i)}function Jn(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=Kn,te.prototype.delete=Yn,te.prototype.get=Vn,te.prototype.has=Qn,te.prototype.set=Jn;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function Zn(i){return this.__data__.set(i,n),this}function ea(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=Zn,De.prototype.has=ea;function V(i){var u=this.__data__=new X(i);this.size=u.size}function ta(){this.__data__=new X,this.size=0}function ra(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function na(i){return this.__data__.get(i)}function aa(i){return this.__data__.has(i)}function ia(i,u){var l=this.__data__;if(l instanceof X){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ta,V.prototype.delete=ra,V.prototype.get=na,V.prototype.has=aa,V.prototype.set=ia;function oa(i,u){var l=Te(i),g=!l&&Sa(i),C=!l&&!g&&et(i),y=!l&&!g&&!C&&zt(i),E=l||g||C||y,R=E?Dn(i.length,String):[],M=R.length;for(var _ in i)B.call(i,_)&&!(E&&(_=="length"||C&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||va(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function ua(i,u,l){var g=u(i);return Te(i)?g:mn(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?ha(i):Da(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,C){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:sa(i,u,l,g,Lt,C)}function sa(i,u,l,g,C,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,C,y):da(i,u,M,l,g,C,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,K=H?u.value():u;return y||(y=new V),C(J,K,l,g,y)}}return x?(y||(y=new V),ga(i,u,l,g,C,y)):!1}function ca(i){if(!Bt(i)||ma(i))return!1;var u=qt(i)?Pn:hn;return u.test(re(i))}function fa(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function la(i){if(!ba(i))return Rn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,C,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!bn(u,function(K,ne){if(!On(x,ne)&&(L===K||C(L,K,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||C(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function da(i,u,l,g,C,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case I:var R=wn;case $:var M=g&a;if(R||(R=In),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,C,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function ga(i,u,l,g,C,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var K=i[x],ne=u[x];if(g)var Wt=E?g(ne,K,x,u,i,y):g(K,ne,x,i,u,y);if(!(Wt===void 0?K===ne||C(K,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ce=u.constructor;we!=Ce&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ce=="function"&&Ce instanceof Ce)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return ua(i,wa,pa)}function Oe(i,u){var l=i.__data__;return ya(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Tn(i,u);return ca(l)?l:void 0}function ha(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var C=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),C}var pa=xt?function(i){return i==null?[]:(i=Object(i),yn(xt(i),function(u){return $t.call(i,u)}))}:Ca,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=I||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Mn:return ye;case $n:return I;case xn:return T;case Nn:return $;case jn:return se}return u});function va(i,u){return u=u??s,!!u&&(typeof i=="number"||pn.test(i))&&i>-1&&i%1==0&&i<u}function ya(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function ma(i){return!!At&&At in i}function ba(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Da(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var Sa=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function Oa(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=kn||Ia;function Ta(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?Sn(Et):fa;function wa(i){return Oa(i)?oa(i):la(i)}function Ca(){return[]}function Ia(){return!1}e.exports=Ta})(Le,Le.exports);var Aa=Le.exports;const As=_a(Aa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Xt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Ra(e,t){return e.filter(function(r){return r!==t})}function Pr(e){return Pe(e)==="object"}function Ma(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function $a(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var xa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Na(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Xt(s)),ja(r,f,d);var v=Ua(r,f);if(v===null){e.dispatch(xa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");La(c),b=c(v)}e.dispatch(Xt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);Ha(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function ja(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function La(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Ha(e){h(Pr(e),"Item must be an object.")}function Ua(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function Fa(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function qa(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;Ga(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();Ba(o,s,c);var f=s.getItemType();return za(o,c,f),Wa(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function Ga(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function Ba(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function za(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function Wa(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(n){Xa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ka(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();Ya(n);var o=Ja(n);o.forEach(function(s,c){var f=Va(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function Ya(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Va(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return Qa(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function Qa(e){h(typeof e>"u"||Pr(e),"Drop result must either be an object or undefined.")}function Ja(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Za(e){return function(){var r=e.getMonitor(),n=e.getRegistry();ei(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function ei(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function ti(e){return{beginDrag:Na(e),publishDragSource:Fa(e),hover:qa(e),drop:Ka(e),endDrag:Za(e)}}var ri=function(t,r){return t===r};function ni(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ai(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ri;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ii(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return ni(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function ui(e){return{type:pt,payload:{sourceId:e}}}function si(e){return{type:vt,payload:{targetId:e}}}function ci(e){return{type:yt,payload:{sourceId:e}}}function fi(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function li(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var di={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function gi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:di,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Ra(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function hi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function pi(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=$a(t,e);return r.length>0}function vi(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ma(n,o),c=s.length>0||!ai(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function yi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){mi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:vi(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:ka(e,"dragOperation.targetIds",[])})}),dragOffset:oi(e.dragOffset,t),refCount:hi(e.refCount,t),dragOperation:gi(e.dragOperation,t),stateId:yi(e.stateId)}}function Di(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ar(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Ar(Di(t,n),r)}function Oi(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Ar(t,r)}function Ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ci(e,t,r){return t&&wi(e.prototype,t),e}var Ii=function(){function e(t,r){Ti(this,e),this.store=t,this.registry=r}return Ci(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!pi(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Si(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Oi(this.store.getState().dragOffset)}}]),e}(),_i=0;function Ei(){return _i++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Pi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Ai(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const rr=typeof je<"u"?je:self,kr=rr.MutationObserver||rr.WebKitMutationObserver;function Rr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function ki(e){let t=1;const r=new kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ri=typeof kr=="function"?ki:Rr;class Mi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ri(this.flush),this.requestErrorThrow=Rr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class $i{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class xi{create(t){const r=this.freeTasks,n=r.length?r.pop():new $i(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Mr=new Mi,Ni=new xi(Mr.registerPendingError);function ji(e){Mr.enqueueTask(Ni.create(e))}function Li(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&Hi(e.prototype,t),e}function Fi(e,t){return zi(e)||Bi(e,t)||Gi(e,t)||qi()}function qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gi(e,t){if(e){if(typeof e=="string")return nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nr(e,t)}}function nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bi(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function zi(e){if(Array.isArray(e))return e}function Wi(e){var t=Ei().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function ar(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ir(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=Fi(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var Xi=function(){function e(t){Li(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return Ui(e,[{key:"addSource",value:function(r,n){ut(r),Pi(n);var a=this.addHandler(F.SOURCE,r,n);return this.store.dispatch(ui(a)),a}},{key:"addTarget",value:function(r,n){ut(r,!0),Ai(n);var a=this.addHandler(F.TARGET,r,n);return this.store.dispatch(si(a)),a}},{key:"containsHandler",value:function(r){return ir(this.dragSources,r)||ir(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h(this.isSourceId(r),"Expected a valid source ID.");var a=n&&r===this.pinnedSourceId,o=a?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return h(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=ar(r);return n===F.SOURCE}},{key:"isTargetId",value:function(r){var n=ar(r);return n===F.TARGET}},{key:"removeSource",value:function(r){var n=this;h(this.getSource(r),"Expected an existing source."),this.store.dispatch(ci(r)),ji(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){h(this.getTarget(r),"Expected an existing target."),this.store.dispatch(fi(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);h(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){h(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,a){var o=Wi(r);return this.types.set(o,n),r===F.SOURCE?this.dragSources.set(o,a):r===F.TARGET&&this.dropTargets.set(o,a),o}}]),e}();function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vi(e,t,r){return t&&Yi(e.prototype,t),e}function Qi(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Pa(bi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Ji=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ki(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var a=t.store.getState().refCount>0;t.backend&&(a&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!a&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=Qi(r);this.store=n,this.monitor=new Ii(n,new Xi(n)),n.subscribe(this.handleRefCountChange)}return Vi(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function a(s){return function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=s.apply(r,f);typeof v<"u"&&n(v)}}var o=ti(this);return Object.keys(o).reduce(function(s,c){var f=o[c];return s[c]=a(f),s},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function Zi(e,t,r,n){var a=new Ji(n),o=e(a,t,r);return a.receiveBackend(o),a}var ve=D.createContext({dragDropManager:void 0});function $r(e,t,r,n){return{dragDropManager:Zi(e,t,r,n)}}function eo(e,t){return ao(e)||no(e,t)||ro(e,t)||to()}function to(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(e,t){if(e){if(typeof e=="string")return or(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return or(e,t)}}function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function no(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function ao(e){if(Array.isArray(e))return e}function io(e,t){if(e==null)return{};var r=oo(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oo(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,xr=D.memo(function(e){var t=e.children,r=io(e,["children"]),n=uo(r),a=eo(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Nr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});xr.displayName="DndProvider";function uo(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=so(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function so(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=$r(e,t,r,n)),a[ke]}function Nr(){return typeof je<"u"?je:window}var jr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});jr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function z(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),f=0;f<o.length;f++){var d=o[f];if(!c(d))return!1;var v=e[d],b=t[d];if(a=r?r.call(n,v,b,d):void 0,a===!1||a===void 0&&v!==b)return!1}return!0}function co(e,t){return ho(e)||go(e,t)||lo(e,t)||fo()}function fo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lo(e,t){if(e){if(typeof e=="string")return ur(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ur(e,t)}}function ur(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function go(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function ho(e){if(Array.isArray(e))return e}function Lr(e,t,r){var n=D.useState(function(){return t(e)}),a=co(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);z(o,f)||(s(f),r&&r())},[o,e,r]);return ae(c,[]),[o,c]}function po(e,t){return bo(e)||mo(e,t)||yo(e,t)||vo()}function vo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1,4 +1,4 @@
1
- var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>zt(e,typeof t!="symbol"?t+"":t,n);import{r as S,aP as Ht,fY as Dt,j as d,cd as ce,fM as G,fZ as et,P as u,f_ as Bt,aO as Ut,ch as Qt,a2 as Vt,dQ as Wt,dO as Zt,f$ as Gt,dN as Jt,d0 as A,a6 as Yt,a7 as Xt,g0 as Kt,Q as P,g1 as en,m as tn,g2 as nn,g3 as on,B as rn,g4 as sn,fK as tt,t as te,g5 as cn,g6 as an,cm as ln,g7 as un,s as M,g8 as fn,g9 as nt,c3 as ot,ga as dn,aA as rt,bT as de,ai as pn,cn as st,gb as hn}from"./index-CX-CBC_8.js";import{d as gn}from"./ExpandMore-OENv0Zf3.js";/**
1
+ var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>zt(e,typeof t!="symbol"?t+"":t,n);import{r as S,aP as Ht,fY as Dt,j as d,cd as ce,fM as G,fZ as et,P as u,f_ as Bt,aO as Ut,ch as Qt,a2 as Vt,dQ as Wt,dO as Zt,f$ as Gt,dN as Jt,d0 as A,a6 as Yt,a7 as Xt,g0 as Kt,Q as P,g1 as en,m as tn,g2 as nn,g3 as on,B as rn,g4 as sn,fK as tt,t as te,g5 as cn,g6 as an,cm as ln,g7 as un,s as M,g8 as fn,g9 as nt,c3 as ot,ga as dn,aA as rt,bT as de,ai as pn,cn as st,gb as hn}from"./index-CKU0PpEw.js";import{d as gn}from"./ExpandMore-w7mBNAbG.js";/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -1,4 +1,4 @@
1
- import{q as ge,n as N,P as S,r as D,f as ke,j as e,C as V,i as je,u as me,t as K,v as ye,w as Ce,D as ve,B as z,x as Se,m as E,y as Be,z as we,A as de,E as $,F as De,d as Te,H as Ae,J as Ee,K as se,M as Ie,N as W,O as oe,Q as j,R as Le,S as R,U as Pe,V as Re,X as _e}from"./index-CX-CBC_8.js";import{_ as Fe}from"./useLocalStorage-DoHM0_RD.js";import{g as Ne,D as Ue}from"./index-C7FHl3UZ.js";import{E as Oe}from"./index-bVh0eo8P.js";import{B as ne}from"./status-DPLxEBYu.js";import{D as Me,u as We,B as le}from"./actions-nCvhQAHx.js";import{l as re}from"./index-DWMoLGgj.js";import{u as pe,W as ze}from"./url-evaluation-C5psqheg.js";import{I as $e,B as qe}from"./install-from-url-C5ZZLYX3.js";import{B as ae}from"./app-avatar-BuBN13SD.js";import{d as Ve}from"./Add-DWpKcN-u.js";import{S as A}from"./index-GxcCCStf.js";import{i as Ke,a as Qe}from"./schema-BzCltIyc.js";import{T as ie}from"./TextField-CK1WkVgK.js";import{F as Xe,S as He}from"./Select-DPQiNjEZ.js";import"./FilterList-DOSX0qYn.js";import"./useThemeProps-DCfy4AlW.js";import"./Delete-DyfYh5Dp.js";import"./InputLabel-CZjkqwQE.js";import"./LastPage-BgqTQGsQ.js";import"./index-CtwmcOKA.js";import"./redux-CiOMdG2L.js";import"./Search-DvHspZGZ.js";import"./MoreVert-s_b5pzH1.js";import"./ButtonGroup-CjdeZXiQ.js";import"./getValidReactChildren-Ckfy1X1A.js";import"./isEqual-C8jFbxEO.js";import"./index-wGYPkAW3.js";import"./Stepper-pjsUNGe-.js";import"./ExpandMore-OENv0Zf3.js";import"./index-DBCkW9MN.js";const Je=(p,c)=>{if(!p)return"";const m=new URL(p),l=new URLSearchParams(m.searchParams),b=new URL(ge(m.origin,c));return b.search=l.toString(),b.toString()};function F({blocklet:p,skipAccessibilityCheck:c=!1,...m}){const{t:l}=D.useContext(ke),{urls:b,loading:n,recommendedUrl:u}=pe(p);if(n&&!c)return e.jsx(V,{size:12,...m});const f=c?b[0]:u;return f?e.jsx(Ye,{...m,children:e.jsx(Ge,{children:e.jsx(je,{href:f,target:"_blank",className:"blocklet-interface",underline:"hover",children:l("common.open")})})}):l("blocklet.router.noAccessibleUrl")}const Ge=N.div`
1
+ import{q as ge,n as N,P as S,r as D,f as ke,j as e,C as V,i as je,u as me,t as K,v as ye,w as Ce,D as ve,B as z,x as Se,m as E,y as Be,z as we,A as de,E as $,F as De,d as Te,H as Ae,J as Ee,K as se,M as Ie,N as W,O as oe,Q as j,R as Le,S as R,U as Pe,V as Re,X as _e}from"./index-CKU0PpEw.js";import{_ as Fe}from"./useLocalStorage-B5JaxT-E.js";import{g as Ne,D as Ue}from"./index-yU18hYDn.js";import{E as Oe}from"./index-DZjB4N8F.js";import{B as ne}from"./status-CK93XHvg.js";import{D as Me,u as We,B as le}from"./actions-CYOtciGG.js";import{l as re}from"./index-BX4iEp1D.js";import{u as pe,W as ze}from"./url-evaluation-C4OHH0Ug.js";import{I as $e,B as qe}from"./install-from-url-CYqL_tS8.js";import{B as ae}from"./app-avatar-CgIjV1PQ.js";import{d as Ve}from"./Add-dnfsKeWz.js";import{S as A}from"./index-CVPBRbm1.js";import{i as Ke,a as Qe}from"./schema-9CKP9bpC.js";import{T as ie}from"./TextField-DVBgajf0.js";import{F as Xe,S as He}from"./Select-C9dnMaBi.js";import"./FilterList-DhkfKYuD.js";import"./useThemeProps-AvaZ9peg.js";import"./Delete-B0fykqSv.js";import"./InputLabel-Dk0k1wxQ.js";import"./LastPage-CK19i1GM.js";import"./index-Dg1KeOMS.js";import"./redux-Deq08ymq.js";import"./Search-DiD8rSmP.js";import"./MoreVert-B2z5RSzn.js";import"./ButtonGroup-rj0U42N7.js";import"./getValidReactChildren-CWIs5P8J.js";import"./isEqual-CWkOkE3q.js";import"./index-DPcAeqds.js";import"./Stepper-DbXOEvNn.js";import"./ExpandMore-w7mBNAbG.js";import"./index-BK3y8xZc.js";const Je=(p,c)=>{if(!p)return"";const m=new URL(p),l=new URLSearchParams(m.searchParams),b=new URL(ge(m.origin,c));return b.search=l.toString(),b.toString()};function F({blocklet:p,skipAccessibilityCheck:c=!1,...m}){const{t:l}=D.useContext(ke),{urls:b,loading:n,recommendedUrl:u}=pe(p);if(n&&!c)return e.jsx(V,{size:12,...m});const f=c?b[0]:u;return f?e.jsx(Ye,{...m,children:e.jsx(Ge,{children:e.jsx(je,{href:f,target:"_blank",className:"blocklet-interface",underline:"hover",children:l("common.open")})})}):l("blocklet.router.noAccessibleUrl")}const Ge=N.div`
2
2
  display: flex;
3
3
  margin: 4px 0;
4
4
  `,Ye=N.div`
@@ -1,4 +1,4 @@
1
- import{u as z,j as n,r as d,L as J,P as g,f as H,l as b,Q as m,m as S,d as Y,X as Z,C as ee,t as te,N as y,a as f,H as T,b as x,cT as re,G as v,E as R,p as ne,o as oe,A as se,bg as ie,n as ae}from"./index-CX-CBC_8.js";import{T as me}from"./index-ChmGkB6N.js";import le from"./traffic-CSlS8nHX.js";import{D as ce}from"./index-C7FHl3UZ.js";import{B as ue}from"./app-avatar-BuBN13SD.js";import{B as de}from"./bundle-avatar-I8HkXJpE.js";import{C as pe,M as E}from"./memory-rY7rc2Pr.js";import{I as fe}from"./chart-DYC16wN7.js";import{w as ge}from"./withStyles-2CEBfzYU.js";import{_ as he}from"./useLocalStorage-DoHM0_RD.js";import{T as ye,a as ve}from"./ToggleButtonGroup-CxfQ5hQa.js";import"./Delete-DyfYh5Dp.js";import"./iframe-BqheM3L9.js";import"./ChevronLeft-BAD_V2NB.js";import"./ChevronRight-C3N0vcYC.js";import"./Select-DPQiNjEZ.js";import"./useThemeProps-DCfy4AlW.js";import"./TextField-CK1WkVgK.js";import"./InputLabel-CZjkqwQE.js";import"./InputAdornment--p8LCNNy.js";import"./FilterList-DOSX0qYn.js";import"./LastPage-BgqTQGsQ.js";import"./index-CtwmcOKA.js";import"./redux-CiOMdG2L.js";import"./Search-DvHspZGZ.js";import"./index-bVh0eo8P.js";import"./MoreVert-s_b5pzH1.js";import"./getValidReactChildren-Ckfy1X1A.js";function je(){const{api:e,info:r}=z();return n.jsx(le,{client:e,did:r.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var V=M.default=void 0;xe(d);var C=n;function xe(e){return e&&e.__esModule?e:{default:e}}function L(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?L(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,r,i){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Ie(e){var r=Ne(e,"string");return typeof r=="symbol"?r:r+""}function Ne(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var k=function(r){return(0,C.jsxs)("svg",_(_({},r),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};k.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};k.displayName="server";V=M.default=k;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(J);function A(e){const{value:r}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(S,{variant:"body2",color:"textSecondary",children:`${Math.round(r)}%`})})]})}A.propTypes={value:g.number.isRequired};function O({disk:e}){const{t:r}=d.useContext(H),i=[{id:1,className:"used",title:r("system.used"),metric:b(e.used)},{id:2,className:"free",title:r("system.free"),metric:b(e.free)},{id:3,className:"total",title:r("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${r("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(A,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}O.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};O.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t:r,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),j=d.useMemo(()=>{const t=[];return t.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),t.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{y.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&t.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:l,name:y.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),t},[]),[p,N]=d.useState(j),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,G]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,t=>{t.mem.total=t.mem.total||0,t.mem.used=t.mem.total-(t.mem.available||0),F(t),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...t.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...t.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,t=>{if(!t||!t.length){console.error("incorrect blocklets runtime info format",t);return}N(o=>o.map(s=>{const l=t.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=t=>{N(o=>o.filter(s=>s.groupId!==t.meta.did))},B=async t=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:t.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return y.forEachBlockletSync(o,(c,{id:Q,ancestors:X})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:Q,name:y.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:X})}),l})}catch(o){R.error(o.message)}};f(x.BlockletEvents.removed,w),f(x.BlockletEvents.startFailed,w),f(x.BlockletEvents.statusChange,t=>{if(t.status!=="running"){w(t);return}B(t)}),f(x.BlockletEvents.updated,B),f(x.BlockletEvents.started,B);const W=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(t=>{const o=t.history||[];G({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(t=>{R.error(t.message)})};d.useEffect(()=>{W()},[u]);const q=t=>ne(Number(t||0),{locale:oe(i)}),K=[{label:r("common.group"),name:"groupName",options:{customBodyRenderLite(t){const{type:o,blocklet:s,groupName:l}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{type:o,name:s,component:l,ancestors:c}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(V,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return q(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(S,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:r("analytics.trend")}),n.jsx(ye,{size:"small",exclusive:!0,value:u,onChange:(t,o)=>I(o),children:[1,3,6,12,24].map(t=>n.jsxs(ve,{value:t,children:[t,"H"]},t))})]}),n.jsxs(v,{mb:4,container:!0,spacing:4,children:[n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{...h.mem,history:P.mem})},"memory"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(t=>n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(O,{disk:t})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:r("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:r,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...r];return n.jsx($,{initialBlocklets:a})}function tt(){const e=se(),{t:r}=d.useContext(H),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:r("common.traffic"),value:"traffic"},{label:r("common.runtime"),value:"runtime"}],I={traffic:je,runtime:we},j=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(S,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:r("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(j)?j:n.jsx(j,{})})]})}const Be=ae.main`
1
+ import{u as z,j as n,r as d,L as J,P as g,f as H,l as b,Q as m,m as S,d as Y,X as Z,C as ee,t as te,N as y,a as f,H as T,b as x,cT as re,G as v,E as R,p as ne,o as oe,A as se,bg as ie,n as ae}from"./index-CKU0PpEw.js";import{T as me}from"./index-CF2SXTd_.js";import le from"./traffic-DufPWisE.js";import{D as ce}from"./index-yU18hYDn.js";import{B as ue}from"./app-avatar-CgIjV1PQ.js";import{B as de}from"./bundle-avatar-BBqlxK_u.js";import{C as pe,M as E}from"./memory-CCJf6Oap.js";import{I as fe}from"./chart-i8lNbY7K.js";import{w as ge}from"./withStyles-EplDP6p4.js";import{_ as he}from"./useLocalStorage-B5JaxT-E.js";import{T as ye,a as ve}from"./ToggleButtonGroup-CIYQdG-6.js";import"./Delete-B0fykqSv.js";import"./iframe-BQmWj7PI.js";import"./ChevronLeft-BklOCwb5.js";import"./ChevronRight-Cy5oOgJM.js";import"./Select-C9dnMaBi.js";import"./useThemeProps-AvaZ9peg.js";import"./TextField-DVBgajf0.js";import"./InputLabel-Dk0k1wxQ.js";import"./InputAdornment-C4wvo3mY.js";import"./FilterList-DhkfKYuD.js";import"./LastPage-CK19i1GM.js";import"./index-Dg1KeOMS.js";import"./redux-Deq08ymq.js";import"./Search-DiD8rSmP.js";import"./index-DZjB4N8F.js";import"./MoreVert-B2z5RSzn.js";import"./getValidReactChildren-CWIs5P8J.js";function je(){const{api:e,info:r}=z();return n.jsx(le,{client:e,did:r.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var V=M.default=void 0;xe(d);var C=n;function xe(e){return e&&e.__esModule?e:{default:e}}function L(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?L(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,r,i){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Ie(e){var r=Ne(e,"string");return typeof r=="symbol"?r:r+""}function Ne(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var k=function(r){return(0,C.jsxs)("svg",_(_({},r),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};k.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};k.displayName="server";V=M.default=k;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(J);function A(e){const{value:r}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(S,{variant:"body2",color:"textSecondary",children:`${Math.round(r)}%`})})]})}A.propTypes={value:g.number.isRequired};function O({disk:e}){const{t:r}=d.useContext(H),i=[{id:1,className:"used",title:r("system.used"),metric:b(e.used)},{id:2,className:"free",title:r("system.free"),metric:b(e.free)},{id:3,className:"total",title:r("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${r("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(A,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}O.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};O.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t:r,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),j=d.useMemo(()=>{const t=[];return t.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),t.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{y.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&t.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:l,name:y.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),t},[]),[p,N]=d.useState(j),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,G]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,t=>{t.mem.total=t.mem.total||0,t.mem.used=t.mem.total-(t.mem.available||0),F(t),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...t.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...t.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,t=>{if(!t||!t.length){console.error("incorrect blocklets runtime info format",t);return}N(o=>o.map(s=>{const l=t.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=t=>{N(o=>o.filter(s=>s.groupId!==t.meta.did))},B=async t=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:t.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return y.forEachBlockletSync(o,(c,{id:Q,ancestors:X})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:Q,name:y.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:X})}),l})}catch(o){R.error(o.message)}};f(x.BlockletEvents.removed,w),f(x.BlockletEvents.startFailed,w),f(x.BlockletEvents.statusChange,t=>{if(t.status!=="running"){w(t);return}B(t)}),f(x.BlockletEvents.updated,B),f(x.BlockletEvents.started,B);const W=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(t=>{const o=t.history||[];G({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(t=>{R.error(t.message)})};d.useEffect(()=>{W()},[u]);const q=t=>ne(Number(t||0),{locale:oe(i)}),K=[{label:r("common.group"),name:"groupName",options:{customBodyRenderLite(t){const{type:o,blocklet:s,groupName:l}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{type:o,name:s,component:l,ancestors:c}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(V,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return q(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(S,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:r("analytics.trend")}),n.jsx(ye,{size:"small",exclusive:!0,value:u,onChange:(t,o)=>I(o),children:[1,3,6,12,24].map(t=>n.jsxs(ve,{value:t,children:[t,"H"]},t))})]}),n.jsxs(v,{mb:4,container:!0,spacing:4,children:[n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{...h.mem,history:P.mem})},"memory"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(t=>n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(O,{disk:t})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:r("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:r,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...r];return n.jsx($,{initialBlocklets:a})}function tt(){const e=se(),{t:r}=d.useContext(H),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:r("common.traffic"),value:"traffic"},{label:r("common.runtime"),value:"runtime"}],I={traffic:je,runtime:we},j=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(S,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:r("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(j)?j:n.jsx(j,{})})]})}const Be=ae.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;