@abtnode/webapp 1.16.29-beta-1fedbcdd → 1.16.29-beta-a3a3b40e

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 (220) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-BHECDESg.js → Add-pKyUqZnX.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-BDtEjKYX.js → ArrowDropDown-DLOk2hQn.js} +1 -1
  5. package/dist/assets/Autocomplete-CQa-Zchq.js +1 -0
  6. package/dist/assets/{Breadcrumbs--tlhx_kY.js → Breadcrumbs-C09hLyvm.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BsGeyHPH.js → ButtonGroup-DvSv45rY.js} +1 -1
  8. package/dist/assets/{CheckCircle-1AjtuJml.js → CheckCircle-Bve-EbH9.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DtF4yZw5.js → ChevronLeft-D5neZMm8.js} +1 -1
  10. package/dist/assets/{ChevronRight-Cg_Yljmq.js → ChevronRight-AF3Oi76r.js} +1 -1
  11. package/dist/assets/{Close-Dh1S6C94.js → Close-iwCCyAvr.js} +1 -1
  12. package/dist/assets/{Delete-DrNN1_NC.js → Delete-BG_3zNXs.js} +1 -1
  13. package/dist/assets/DeleteOutline-B-Jo5P14.js +1 -0
  14. package/dist/assets/{Done-BQoc16v1.js → Done-BrZXmjmM.js} +1 -1
  15. package/dist/assets/{Edit-CJIEc-k0.js → Edit-O84hGgRU.js} +1 -1
  16. package/dist/assets/{EditIcon-BCZEwD1D.js → EditIcon-BG6ATkhr.js} +1 -1
  17. package/dist/assets/{ExpandMore-DBZtVOu2.js → ExpandMore-BVacVg2T.js} +1 -1
  18. package/dist/assets/FilterList-1kvLdh4X.js +26 -0
  19. package/dist/assets/{Google-2ljVxqxA.js → Google-CehXTW1E.js} +3 -3
  20. package/dist/assets/{Https-HIHB_mu-.js → Https-MDLWGRiI.js} +1 -1
  21. package/dist/assets/{InputAdornment-7NSF5tvp.js → InputAdornment-BbPdWxkf.js} +1 -1
  22. package/dist/assets/{InputLabel-BVacxmju.js → InputLabel-SPUYdufd.js} +1 -1
  23. package/dist/assets/{LastPage-TCg78JGB.js → LastPage-DhmYZtKl.js} +1 -1
  24. package/dist/assets/{Launch-B7XdcudY.js → Launch-3iAwD2-o.js} +1 -1
  25. package/dist/assets/{Link-DEY_OBXK.js → Link-kfMD43M4.js} +1 -1
  26. package/dist/assets/LoadingButton-BdU2PA2v.js +1 -0
  27. package/dist/assets/{LockIcon-C9kXDs34.js → LockIcon-COOR_19Z.js} +1 -1
  28. package/dist/assets/{Loop-CU1cNNql.js → Loop-DJNY6Gly.js} +1 -1
  29. package/dist/assets/{MoreVert-Dt18zfj9.js → MoreVert-DqLb0IvW.js} +1 -1
  30. package/dist/assets/{Pagination-BdwJr2l9.js → Pagination-DWwZRsY-.js} +1 -1
  31. package/dist/assets/{Public-xCpRfmFo.js → Public-Cnl0uk6R.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-uz8Zc0eu.js → SchemaReference.es-FI5ZcmKj.js} +1 -1
  33. package/dist/assets/{Search-CDAInWfT.js → Search-zQ1-xKEI.js} +1 -1
  34. package/dist/assets/Select-DznafFqO.js +2 -0
  35. package/dist/assets/{Skeleton-gv5XrTGj.js → Skeleton-C8dMhHy4.js} +3 -3
  36. package/dist/assets/Slider-D4WWBNJB.js +1 -0
  37. package/dist/assets/{Stepper-D4YMSiMG.js → Stepper-W9Yp8FdW.js} +1 -1
  38. package/dist/assets/{TextField-Cb27WYFh.js → TextField-Bhm-pGTt.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-zw2F4d4K.js → ToggleButtonGroup-DeT17l8h.js} +1 -1
  40. package/dist/assets/{ViewList-BN391huQ.js → ViewList-Br9JJqgO.js} +1 -1
  41. package/dist/assets/{actions-CqEyEGdi.js → actions-BXtydwk9.js} +1 -1
  42. package/dist/assets/{actions-Dt2hzsMg.js → actions-DYuHxkf6.js} +1 -1
  43. package/dist/assets/{agreement-8wzPI5A2.js → agreement-Cm12LJFQ.js} +5 -5
  44. package/dist/assets/api-BeaKO2dl.js +1 -0
  45. package/dist/assets/{app-avatar-Ciqu7DzN.js → app-avatar--K_t_Plu.js} +1 -1
  46. package/dist/assets/ar-CEz-3AyV.js +1 -0
  47. package/dist/assets/{audit-logs-DM5qrzhq.js → audit-logs-B4r39ka6.js} +1 -1
  48. package/dist/assets/blocklet-rYMojVwR.js +1 -0
  49. package/dist/assets/{brace-fold.es-CDyoGvqf.js → brace-fold.es-Ba3cjgwk.js} +1 -1
  50. package/dist/assets/{bundle-avatar-DQouFsLp.js → bundle-avatar-DKdThq9s.js} +1 -1
  51. package/dist/assets/{chart-CxTMvY28.js → chart-C-94eWmx.js} +2 -2
  52. package/dist/assets/{click-to-copy-BWS50T1W.js → click-to-copy-C_gleQEN.js} +1 -1
  53. package/dist/assets/{closebrackets.es-C8aDSBEc.js → closebrackets.es-CmCaLuCp.js} +1 -1
  54. package/dist/assets/{codemirror.es-DIkx1wNL.js → codemirror.es-l_8ZY7Lh.js} +1 -1
  55. package/dist/assets/{comment.es-Bj4rfy15.js → comment.es-CRv3OQd6.js} +1 -1
  56. package/dist/assets/{config-navigation-DHVobtoo.js → config-navigation-GH8Li2j-.js} +5 -5
  57. package/dist/assets/de-Di4pToxm.js +1 -0
  58. package/dist/assets/{delete-confirm-COcoVEWd.js → delete-confirm-Ddybjkbg.js} +1 -1
  59. package/dist/assets/{detail-zEMR4hLv.js → detail-HcSHX1RQ.js} +3 -3
  60. package/dist/assets/{dialog.es-5ELfbGGf.js → dialog.es-CnBSXVvi.js} +1 -1
  61. package/dist/assets/{download-CufT6M7y.js → download-Ckh_QSd4.js} +1 -1
  62. package/dist/assets/es-CPDKeKrG.js +1 -0
  63. package/dist/assets/{foldgutter.es-BluK5_B7.js → foldgutter.es-DXX4I493.js} +1 -1
  64. package/dist/assets/fr-9RG8cAa6.js +1 -0
  65. package/dist/assets/getValidReactChildren-1HAiV6lK.js +1 -0
  66. package/dist/assets/hi-DJLNiG5V.js +1 -0
  67. package/dist/assets/{hint.es-_r7Ti8Sm.js → hint.es-BoJiF4Kl.js} +1 -1
  68. package/dist/assets/{hint.es2-0WBsR7fo.js → hint.es2-BxUTUC98.js} +1 -1
  69. package/dist/assets/id-TqWAFNjj.js +1 -0
  70. package/dist/assets/{iframe-D7XRwAcu.js → iframe-9dViXCxz.js} +1 -1
  71. package/dist/assets/{index-CwegGsPe.js → index--TkSjE0u.js} +1 -1
  72. package/dist/assets/{index-WqNucEB5.js → index-B4OMw3wi.js} +9 -9
  73. package/dist/assets/{index-DhMPr-Sf.js → index-BH9T3JXE.js} +1 -1
  74. package/dist/assets/index-BHpKGG76.js +288 -0
  75. package/dist/assets/{index-CkgIO-Ei.js → index-BLi5-33y.js} +4 -4
  76. package/dist/assets/{index-BmZ7fxmH.js → index-BT2YG5dz.js} +1 -1
  77. package/dist/assets/{index-D_4uGOGz.js → index-BUiCzoDM.js} +2 -2
  78. package/dist/assets/index-BcjQGvz3.js +11 -0
  79. package/dist/assets/{index-C8tv-5HO.js → index-BjcxSioZ.js} +1 -1
  80. package/dist/assets/{index-BQHGajKV.js → index-BlhbeeNQ.js} +1 -1
  81. package/dist/assets/{index-B_rtSE94.js → index-BsKfUhVE.js} +10 -10
  82. package/dist/assets/{index-LhVZUpfu.js → index-BwjYNlcZ.js} +1 -1
  83. package/dist/assets/{index-Db3MJtg9.js → index-C4qIP-_F.js} +1 -1
  84. package/dist/assets/{index-D40jtuqJ.js → index-C7-D51wU.js} +1 -1
  85. package/dist/assets/{index-_5qLstzu.js → index-CCGu9TL3.js} +4 -4
  86. package/dist/assets/{index-Bx-0NTkd.js → index-CCOLrY6y.js} +1 -1
  87. package/dist/assets/{index-D4GRkcdU.js → index-CJ30BkZM.js} +1 -1
  88. package/dist/assets/{index-CB-tsmEC.js → index-CPeqPra-.js} +1 -1
  89. package/dist/assets/index-CSDwzowm.js +1 -0
  90. package/dist/assets/{index-Ch7pvL8F.js → index-CjRC70vz.js} +1 -1
  91. package/dist/assets/{index-B8SfR5SO.js → index-Ck4dc4qV.js} +5 -5
  92. package/dist/assets/{index-BMpCIzIn.js → index-Cpb-sFNf.js} +1 -1
  93. package/dist/assets/index-CrLudGXM.js +1 -0
  94. package/dist/assets/{index-CXHazti0.js → index-D-YrhOuw.js} +2 -2
  95. package/dist/assets/{index-Ce_LNkxm.js → index-D-sX61_X.js} +1 -1
  96. package/dist/assets/index-D0ex-q5W.js +150 -0
  97. package/dist/assets/{index-DCPwvqqA.js → index-D3EYYrwn.js} +1 -1
  98. package/dist/assets/{index-BdwqHkId.js → index-DDlocpiQ.js} +2 -2
  99. package/dist/assets/{index-Dczcia8A.js → index-DFzjLfBo.js} +3 -3
  100. package/dist/assets/{index-D52n0VvB.js → index-DSEcsjSl.js} +8 -8
  101. package/dist/assets/{index-Dl7kYtXZ.js → index-DYl7Q_eK.js} +1 -1
  102. package/dist/assets/{index-BmgCwWx8.js → index-D_Mcr8DR.js} +31 -66
  103. package/dist/assets/{index-yTu8ymIr.js → index-Da2vIr8N.js} +24 -24
  104. package/dist/assets/{index-CskaRAHF.js → index-DfXfPJxa.js} +1 -1
  105. package/dist/assets/{index-4cUBvM9c.js → index-Dhvjh1Ja.js} +1 -1
  106. package/dist/assets/index-Dt6QXT-d.js +278 -0
  107. package/dist/assets/{index-sv8YNhSG.js → index-Dw0ah9mI.js} +1 -1
  108. package/dist/assets/{index-BwHAod4o.js → index-Dzog9V8a.js} +1 -1
  109. package/dist/assets/{index-PLNnQedK.js → index-ER8p4lvE.js} +1 -1
  110. package/dist/assets/index-UgBlYd1D.js +21 -0
  111. package/dist/assets/{index-_k8oY6yd.js → index-Yclle18m.js} +1 -1
  112. package/dist/assets/{index-BlbV7Lbg.js → index-gBZtvLTL.js} +161 -161
  113. package/dist/assets/{index-DAHLtXpZ.js → index-lpy1TDTa.js} +3 -3
  114. package/dist/assets/{index-CxOlUKp-.js → index-rFymmF-6.js} +1 -1
  115. package/dist/assets/{index.es-BYddSuDT.js → index.es-C2o5vtyA.js} +1 -1
  116. package/dist/assets/{index.esm-BD4d3uVr.js → index.esm-MEs6trBP.js} +1 -1
  117. package/dist/assets/{info-addon.es-BJJ5pk51.js → info-addon.es-DaBVewRe.js} +1 -1
  118. package/dist/assets/{info.es-BprPoOcs.js → info.es-EnrVX8VT.js} +1 -1
  119. package/dist/assets/install-from-url-BPXWSz02.js +1 -0
  120. package/dist/assets/{invitation-C4QKldyI.js → invitation-D1e4BUC2.js} +7 -7
  121. package/dist/assets/is-path-prefix-equal-Inp_MmbW.js +1 -0
  122. package/dist/assets/{isEqual-D_04lJVB.js → isEqual-096XH0At.js} +1 -1
  123. package/dist/assets/{item-ChafvRb9.js → item-WtkPDlnc.js} +1 -1
  124. package/dist/assets/ja-BSnhR_mh.js +1 -0
  125. package/dist/assets/{javascript.es-tZuBoyo_.js → javascript.es-Db9u92CP.js} +1 -1
  126. package/dist/assets/{jump-to-line.es-DxxXKbig.js → jump-to-line.es-B4DYDCQc.js} +1 -1
  127. package/dist/assets/{jump.es-UWy_0T4j.js → jump.es-D_5OJAvI.js} +1 -1
  128. package/dist/assets/ko-gjYVLUHm.js +1 -0
  129. package/dist/assets/{line-fPz-YMhM.js → line-BBTKuXgG.js} +4 -4
  130. package/dist/assets/{lint.es-Dh2OBAEf.js → lint.es-CPC5HZli.js} +1 -1
  131. package/dist/assets/{lint.es2-_OaBpmrB.js → lint.es2-CJa_1JHn.js} +1 -1
  132. package/dist/assets/{lint.es3-CywO0hV7.js → lint.es3-DtBCdsAP.js} +1 -1
  133. package/dist/assets/{list-header-Dt_lAmlF.js → list-header-CXVLNW82.js} +1 -1
  134. package/dist/assets/{log-KWjsxMN4.js → log-CVqDxZBP.js} +1 -1
  135. package/dist/assets/{lottie-CdVErR-8.js → lottie-D77WzIzs.js} +1 -1
  136. package/dist/assets/{matchbrackets.es-XbamjB0p.js → matchbrackets.es-i92Mlh7M.js} +1 -1
  137. package/dist/assets/{memory-iTIi7m4P.js → memory-D-JwjMVG.js} +1 -1
  138. package/dist/assets/{mode.es-CxfnkJk0.js → mode.es-oco0R2JI.js} +1 -1
  139. package/dist/assets/{mode.es2-Dy3nODPA.js → mode.es2-NsH2h82n.js} +1 -1
  140. package/dist/assets/{mode.es3-p9hzDihk.js → mode.es3-DDDTQTZ_.js} +1 -1
  141. package/dist/assets/{onlineParser.es-CpFSa7g2.js → onlineParser.es-B1xlorlh.js} +1 -1
  142. package/dist/assets/overview-CoxKKoup.js +26 -0
  143. package/dist/assets/pt-B-XCpQDv.js +1 -0
  144. package/dist/assets/react-B_JXDT98.js +56 -0
  145. package/dist/assets/{redux-CrGkFo1C.js → redux-CIvT3eos.js} +1 -1
  146. package/dist/assets/resource-dialog-Daf0mVPu.js +57 -0
  147. package/dist/assets/ru-DSPtM6j0.js +1 -0
  148. package/dist/assets/runtime-COrQwWgs.js +1 -0
  149. package/dist/assets/schema-CAq5igE9.js +28 -0
  150. package/dist/assets/{search.es-DU6gLcL9.js → search.es-DToTAbGB.js} +1 -1
  151. package/dist/assets/{searchcursor.es-DYLQM5hy.js → searchcursor.es-wtv2yXhB.js} +1 -1
  152. package/dist/assets/service-CCCA4hfq.js +1 -0
  153. package/dist/assets/{shorten-label-C8wzxApJ.js → shorten-label-HX5HiA5v.js} +1 -1
  154. package/dist/assets/{show-hint.es-aYSOCw1L.js → show-hint.es-DCzo4BsZ.js} +1 -1
  155. package/dist/assets/{slicedToArray-CTprXHPZ.js → slicedToArray-bAsaJQlT.js} +2 -2
  156. package/dist/assets/{spaces-a8m9RMdh.js → spaces-D2iB47oL.js} +1 -1
  157. package/dist/assets/{sublime.es-DWBRVmfV.js → sublime.es-CzLNyX-C.js} +1 -1
  158. package/dist/assets/{switch-control-DPEcexre.js → switch-control-D2PG983M.js} +1 -1
  159. package/dist/assets/{table-icons-C4o-NnhS.js → table-icons-DKqNQABP.js} +4 -4
  160. package/dist/assets/{tag-Bdou5m1X.js → tag-OD5kAVwU.js} +1 -1
  161. package/dist/assets/{team-DHy_RyhB.js → team-Cx3ujP3D.js} +1 -1
  162. package/dist/assets/th-CxPqMbkk.js +1 -0
  163. package/dist/assets/toUpper-Bd6pptp4.js +1 -0
  164. package/dist/assets/traffic-CfeuJCnk.js +8 -0
  165. package/dist/assets/{url-evaluation-C3ISZkf1.js → url-evaluation-BJnhShOU.js} +2 -2
  166. package/dist/assets/{url-join-DiQ25GxI.js → url-join-R_hoMPFS.js} +1 -1
  167. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-D54Dv1sp.js → use-blocklet-info-for-connect-did-spaces-BQQC5DXS.js} +1 -1
  168. package/dist/assets/{useLocalStorage-DjVTK9Hv.js → useLocalStorage-CV1z5zeH.js} +1 -1
  169. package/dist/assets/useThemeProps-CB62kBuT.js +1 -0
  170. package/dist/assets/{util-Cymy87Bf.js → util-BoYHAMcK.js} +1 -1
  171. package/dist/assets/vi-B8erxshV.js +1 -0
  172. package/dist/assets/{wait-container-D3CNDB0j.js → wait-container-CfXxXZfc.js} +1 -1
  173. package/dist/assets/{withStyles-CeJ3MZXD.js → withStyles-Dp5x5u5h.js} +1 -1
  174. package/dist/assets/wrap-locale-DHLOopMt.js +1 -0
  175. package/dist/assets/{zh-DMGrvlv0.js → zh-XzadN7R3.js} +1 -1
  176. package/dist/assets/zh-tw-BTlMDwjI.js +1 -0
  177. package/dist/index.html +1 -1
  178. package/dist/service-worker.js +1 -1
  179. package/package.json +1 -1
  180. package/dist/assets/Autocomplete-DFC_FbfN.js +0 -1
  181. package/dist/assets/DeleteOutline-BbEJp5Yv.js +0 -1
  182. package/dist/assets/DeleteOutline-DcoGpr4d.js +0 -1
  183. package/dist/assets/FilterList-DFTqCvYV.js +0 -26
  184. package/dist/assets/LoadingButton-DqL1fjxO.js +0 -1
  185. package/dist/assets/Select-DM4jz5L4.js +0 -2
  186. package/dist/assets/Slider--a155kQq.js +0 -1
  187. package/dist/assets/api-BNsi_m3T.js +0 -1
  188. package/dist/assets/ar-DAUz5_Ej.js +0 -1
  189. package/dist/assets/blocklet-B866XgcM.js +0 -1
  190. package/dist/assets/de-JXmbvsP-.js +0 -1
  191. package/dist/assets/es-D_uIRKnu.js +0 -1
  192. package/dist/assets/fr-BocLckhV.js +0 -1
  193. package/dist/assets/getValidReactChildren-C6TVYF1_.js +0 -1
  194. package/dist/assets/hi-Bn38t0nX.js +0 -1
  195. package/dist/assets/id-DuC9mOr4.js +0 -1
  196. package/dist/assets/index-8Whrl_cz.js +0 -1
  197. package/dist/assets/index-BL91wUxY.js +0 -21
  198. package/dist/assets/index-CuAczo7P.js +0 -177
  199. package/dist/assets/index-D3a_ZvXr.js +0 -344
  200. package/dist/assets/index-D4-XA9ZN.js +0 -11
  201. package/dist/assets/index-DmSo_rH-.js +0 -268
  202. package/dist/assets/index-DnntsDmR.js +0 -1
  203. package/dist/assets/index-opQnaV74.js +0 -11
  204. package/dist/assets/install-from-url-ZYnVPJZA.js +0 -1
  205. package/dist/assets/is-path-prefix-equal-BVP7ErMV.js +0 -1
  206. package/dist/assets/ja-B2J7-ZGM.js +0 -1
  207. package/dist/assets/ko-TAMb2jXz.js +0 -1
  208. package/dist/assets/overview-Cn3o0JSR.js +0 -26
  209. package/dist/assets/pt-DAmg1w9n.js +0 -1
  210. package/dist/assets/react-DOpT91Sx.js +0 -379
  211. package/dist/assets/ru-BqJl8PYs.js +0 -1
  212. package/dist/assets/runtime-DH27bqmv.js +0 -1
  213. package/dist/assets/service-BE-W-CQl.js +0 -1
  214. package/dist/assets/th-CGcwcZWK.js +0 -1
  215. package/dist/assets/toUpper-CAcCx7d-.js +0 -1
  216. package/dist/assets/traffic-DB2NxLKJ.js +0 -8
  217. package/dist/assets/ua-parser-BSFgl4aM.js +0 -1
  218. package/dist/assets/vi-lYszmNr_.js +0 -1
  219. package/dist/assets/wrap-locale-OY8SqaYo.js +0 -1
  220. package/dist/assets/zh-tw-BkGc-T4k.js +0 -1
@@ -1,11 +0,0 @@
1
- var Yt=Object.defineProperty;var te=(t,n,e)=>n in t?Yt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var R=(t,n,e)=>(te(t,typeof n!="symbol"?n+"":n,e),e);import{P as Z,r as ee,aO as ne,ci as oe,j as p,a2 as re,fB as ft,dR as ie,dP as se,fF as ce,dO as ae,d7 as I,a7 as le,a8 as ue,gc as fe,O as de,gd as he,m as pe,ge,fE as me,B as ye,gf as be}from"./index-BlbV7Lbg.js";/**
2
- * (c) Iconify
3
- *
4
- * For the full copyright and license information, please view the license.txt
5
- * files at https://github.com/iconify/iconify
6
- *
7
- * Licensed under MIT.
8
- *
9
- * @license MIT
10
- * @version 1.0.8
11
- */const Pt=Object.freeze({left:0,top:0,width:16,height:16}),B=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),E=Object.freeze({...Pt,...B}),X=Object.freeze({...E,body:"",hidden:!1}),xe=Object.freeze({width:null,height:null}),Mt=Object.freeze({...xe,...B});function we(t,n=0){const e=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(e===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(e!==t){let o=0;switch(e){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-e.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const Ie=/[\s,]+/;function Se(t,n){n.split(Ie).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const qt={...Mt,preserveAspectRatio:""};function dt(t){const n={...qt},e=(r,o)=>t.getAttribute(r)||o;return n.width=e("width",null),n.height=e("height",null),n.rotate=we(e("rotate","")),Se(n,e("flip","")),n.preserveAspectRatio=e("preserveAspectRatio",e("preserveaspectratio","")),n}function ve(t,n){for(const e in qt)if(t[e]!==n[e])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,_=(t,n,e,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),s=o.pop(),l={provider:o.length>0?o[0]:r,prefix:s,name:a};return n&&!N(l)?null:l}const i=o[0],c=i.split("-");if(c.length>1){const a={provider:r,prefix:c.shift(),name:c.join("-")};return n&&!N(a)?null:a}if(e&&r===""){const a={provider:r,prefix:"",name:i};return n&&!N(a,e)?null:a}return null},N=(t,n)=>t?!!((t.provider===""||t.provider.match(k))&&(n&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function Ce(t,n){const e={};!t.hFlip!=!n.hFlip&&(e.hFlip=!0),!t.vFlip!=!n.vFlip&&(e.vFlip=!0);const r=((t.rotate||0)+(n.rotate||0))%4;return r&&(e.rotate=r),e}function ht(t,n){const e=Ce(t,n);for(const r in X)r in B?r in t&&!(r in e)&&(e[r]=B[r]):r in n?e[r]=n[r]:r in t&&(e[r]=t[r]);return e}function Te(t,n){const e=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(c){if(e[c])return o[c]=[];if(!(c in o)){o[c]=null;const a=r[c]&&r[c].parent,s=a&&i(a);s&&(o[c]=[a].concat(s))}return o[c]}return(n||Object.keys(e).concat(Object.keys(r))).forEach(i),o}function Ae(t,n,e){const r=t.icons,o=t.aliases||Object.create(null);let i={};function c(a){i=ht(r[a]||o[a],i)}return c(n),e.forEach(c),ht(t,i)}function Et(t,n){const e=[];if(typeof t!="object"||typeof t.icons!="object")return e;t.not_found instanceof Array&&t.not_found.forEach(o=>{n(o,null),e.push(o)});const r=Te(t);for(const o in r){const i=r[o];i&&(n(o,Ae(t,o,i)),e.push(o))}return e}const ke={provider:"",aliases:{},not_found:{},...Pt};function G(t,n){for(const e in n)if(e in t&&typeof t[e]!=typeof n[e])return!1;return!0}function _t(t){if(typeof t!="object"||t===null)return null;const n=t;if(typeof n.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,ke))return null;const e=n.icons;for(const o in e){const i=e[o];if(!o.match(k)||typeof i.body!="string"||!G(i,X))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],c=i.parent;if(!o.match(k)||typeof c!="string"||!e[c]&&!r[c]||!G(i,X))return null}return n}const z=Object.create(null);function je(t,n){return{provider:t,prefix:n,icons:Object.create(null),missing:new Set}}function S(t,n){const e=z[t]||(z[t]=Object.create(null));return e[n]||(e[n]=je(t,n))}function st(t,n){return _t(n)?Et(n,(e,r)=>{r?t.icons[e]=r:t.missing.add(e)}):[]}function Pe(t,n,e){try{if(typeof e.body=="string")return t.icons[n]={...e},!0}catch{}return!1}function Me(t,n){let e=[];return(typeof t=="string"?[t]:Object.keys(z)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(z[o]||{})).forEach(c=>{const a=S(o,c);e=e.concat(Object.keys(a.icons).map(s=>(o!==""?"@"+o+":":"")+c+":"+s))})}),e}let P=!1;function Ot(t){return typeof t=="boolean"&&(P=t),P}function M(t){const n=typeof t=="string"?_(t,!0,P):t;if(n){const e=S(n.provider,n.prefix),r=n.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}function Lt(t,n){const e=_(t,!0,P);if(!e)return!1;const r=S(e.provider,e.prefix);return Pe(r,e.name,n)}function pt(t,n){if(typeof t!="object")return!1;if(typeof n!="string"&&(n=t.provider||""),P&&!n&&!t.prefix){let o=!1;return _t(t)&&(t.prefix="",Et(t,(i,c)=>{c&&Lt(i,c)&&(o=!0)})),o}const e=t.prefix;if(!N({provider:n,prefix:e,name:"a"}))return!1;const r=S(n,e);return!!st(r,t)}function qe(t){return!!M(t)}function Ee(t){const n=M(t);return n?{...E,...n}:null}function _e(t){const n={loaded:[],missing:[],pending:[]},e=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,c=o.prefix,a=o.name,s=e[i]||(e[i]=Object.create(null)),l=s[c]||(s[c]=S(i,c));let u;a in l.icons?u=n.loaded:c===""||l.missing.has(a)?u=n.missing:u=n.pending;const f={provider:i,prefix:c,name:a};u.push(f)}),n}function Rt(t,n){t.forEach(e=>{const r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter(o=>o.id!==n))})}function Oe(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const n=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!n.length)return;let e=!1;const r=t.provider,o=t.prefix;n.forEach(i=>{const c=i.icons,a=c.pending.length;c.pending=c.pending.filter(s=>{if(s.prefix!==o)return!0;const l=s.name;if(t.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(t.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return e=!0,!0;return!1}),c.pending.length!==a&&(e||Rt([t],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Le=0;function Re(t,n,e){const r=Le++,o=Rt.bind(null,e,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:t,abort:o};return e.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),o}const Y=Object.create(null);function gt(t,n){Y[t]=n}function tt(t){return Y[t]||Y[""]}function Fe(t,n=!0,e=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?_(o,n,e):o;i&&r.push(i)}),r}var Ne={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function He(t,n,e,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let c;if(t.random){let d=t.resources.slice(0);for(c=[];d.length>1;){const w=Math.floor(Math.random()*d.length);c.push(d[w]),d=d.slice(0,w).concat(d.slice(w+1))}c=c.concat(d)}else c=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let s="pending",l=0,u,f=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){f&&(clearTimeout(f),f=null)}function y(){s==="pending"&&(s="aborted"),m(),h.forEach(d=>{d.status==="pending"&&(d.status="aborted")}),h=[]}function V(d,w){w&&(g=[]),typeof d=="function"&&g.push(d)}function O(){return{startTime:a,payload:n,status:s,queriesSent:l,queriesPending:h.length,subscribe:V,abort:y}}function b(){s="failed",g.forEach(d=>{d(void 0,u)})}function x(){h.forEach(d=>{d.status==="pending"&&(d.status="aborted")}),h=[]}function Xt(d,w,T){const L=w!=="success";switch(h=h.filter(v=>v!==d),s){case"pending":break;case"failed":if(L||!t.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=T,b();return}if(L){u=T,h.length||(c.length?U():b());return}if(m(),x(),!t.random){const v=t.resources.indexOf(d.resource);v!==-1&&v!==t.index&&(t.index=v)}s="completed",g.forEach(v=>{v(T)})}function U(){if(s!=="pending")return;m();const d=c.shift();if(d===void 0){if(h.length){f=setTimeout(()=>{m(),s==="pending"&&(x(),b())},t.timeout);return}b();return}const w={status:"pending",resource:d,callback:(T,L)=>{Xt(w,T,L)}};h.push(w),l++,f=setTimeout(U,t.rotate),e(d,n,w.callback)}return setTimeout(U),O}function Ft(t){const n={...Ne,...t};let e=[];function r(){e=e.filter(a=>a().status==="pending")}function o(a,s,l){const u=He(n,a,s,(f,h)=>{r(),l&&l(f,h)});return e.push(u),u}function i(a){return e.find(s=>a(s))||null}return{query:o,find:i,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:r}}function ct(t){let n;if(typeof t.resources=="string")n=[t.resources];else if(n=t.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const D=Object.create(null),A=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;A.length>0;)A.length===1||Math.random()>.5?H.push(A.shift()):H.push(A.pop());D[""]=ct({resources:["https://api.iconify.design"].concat(H)});function mt(t,n){const e=ct(n);return e===null?!1:(D[t]=e,!0)}function Q(t){return D[t]}function Be(){return Object.keys(D)}function yt(){}const J=Object.create(null);function ze(t){if(!J[t]){const n=Q(t);if(!n)return;const e=Ft(n),r={config:n,redundancy:e};J[t]=r}return J[t]}function Nt(t,n,e){let r,o;if(typeof t=="string"){const i=tt(t);if(!i)return e(void 0,424),yt;o=i.send;const c=ze(t);c&&(r=c.redundancy)}else{const i=ct(t);if(i){r=Ft(i);const c=t.resources?t.resources[0]:"",a=tt(c);a&&(o=a.send)}}return!r||!o?(e(void 0,424),yt):r.query(n,o,e)().abort}const bt="iconify2",q="iconify",Ht=q+"-count",xt=q+"-version",Bt=36e5,$e=168;function et(t,n){try{return t.getItem(n)}catch{}}function at(t,n,e){try{return t.setItem(n,e),!0}catch{}}function wt(t,n){try{t.removeItem(n)}catch{}}function nt(t,n){return at(t,Ht,n.toString())}function ot(t){return parseInt(et(t,Ht))||0}const C={local:!0,session:!0},zt={local:new Set,session:new Set};let lt=!1;function De(t){lt=t}let F=typeof window>"u"?{}:window;function $t(t){const n=t+"Storage";try{if(F&&F[n]&&typeof F[n].length=="number")return F[n]}catch{}C[t]=!1}function Dt(t,n){const e=$t(t);if(!e)return;const r=et(e,xt);if(r!==bt){if(r){const a=ot(e);for(let s=0;s<a;s++)wt(e,q+s.toString())}at(e,xt,bt),nt(e,0);return}const o=Math.floor(Date.now()/Bt)-$e,i=a=>{const s=q+a.toString(),l=et(e,s);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}wt(e,s)}};let c=ot(e);for(let a=c-1;a>=0;a--)i(a)||(a===c-1?(c--,nt(e,c)):zt[t].add(a))}function Qt(){if(!lt){De(!0);for(const t in C)Dt(t,n=>{const e=n.data,r=n.provider,o=e.prefix,i=S(r,o);if(!st(i,e).length)return!1;const c=e.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function Qe(t,n){const e=t.lastModifiedCached;if(e&&e>=n)return e===n;if(t.lastModifiedCached=n,e)for(const r in C)Dt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===n});return!0}function Ve(t,n){lt||Qt();function e(r){let o;if(!C[r]||!(o=$t(r)))return;const i=zt[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=ot(o),!nt(o,c+1))return;const a={cached:Math.floor(Date.now()/Bt),provider:t.provider,data:n};return at(o,q+c.toString(),JSON.stringify(a))}n.lastModified&&!Qe(t,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),e("local")||e("session"))}function It(){}function Ue(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Oe(t)}))}function Ze(t,n){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(n).sort():t.iconsToLoad=n,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=tt(e)))return;i.prepare(e,r,o).forEach(a=>{Nt(e,a,s=>{if(typeof s!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=st(t,s);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),Ve(t,s)}catch(l){console.error(l)}Ue(t)})})}))}const ut=(t,n)=>{const e=Fe(t,!0,Ot()),r=_e(e);if(!r.pending.length){let s=!0;return n&&setTimeout(()=>{s&&n(r.loaded,r.missing,r.pending,It)}),()=>{s=!1}}const o=Object.create(null),i=[];let c,a;return r.pending.forEach(s=>{const{provider:l,prefix:u}=s;if(u===a&&l===c)return;c=l,a=u,i.push(S(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(s=>{const{provider:l,prefix:u,name:f}=s,h=S(l,u),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(f)||(g.add(f),o[l][u].push(f))}),i.forEach(s=>{const{provider:l,prefix:u}=s;o[l][u].length&&Ze(s,o[l][u])}),n?Re(n,r,i):It},Ge=t=>new Promise((n,e)=>{const r=typeof t=="string"?_(t,!0):t;if(!r){e(t);return}ut([r||t],o=>{if(o.length&&r){const i=M(r);if(i){n({...E,...i});return}}e(t)})});function Je(t){try{const n=typeof t=="string"?JSON.parse(t):t;if(typeof n.body=="string")return{...n}}catch{}}function Ke(t,n){const e=typeof t=="string"?_(t,!0,!0):null;if(!e){const i=Je(t);return{value:t,data:i}}const r=M(e);if(r!==void 0||!e.prefix)return{value:t,name:e,data:r};const o=ut([e],()=>n(t,e,M(e)));return{value:t,name:e,loading:o}}function K(t){return t.hasAttribute("inline")}let Vt=!1;try{Vt=navigator.vendor.indexOf("Apple")===0}catch{}function We(t,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(Vt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Xe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function rt(t,n,e){if(n===1)return t;if(e=e||100,typeof t=="number")return Math.ceil(t*n*e)/e;if(typeof t!="string")return t;const r=t.split(Xe);if(r===null||!r.length)return t;const o=[];let i=r.shift(),c=Ye.test(i);for(;;){if(c){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*n*e)/e)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");c=!c}}const tn=t=>t==="unset"||t==="undefined"||t==="none";function Ut(t,n){const e={...E,...t},r={...Mt,...n},o={left:e.left,top:e.top,width:e.width,height:e.height};let i=e.body;[e,r].forEach(m=>{const y=[],V=m.hFlip,O=m.vFlip;let b=m.rotate;V?O?b+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):O&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let x;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:x=o.height/2+o.top,y.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,y.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}b%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),y.length&&(i='<g transform="'+y.join(" ")+'">'+i+"</g>")});const c=r.width,a=r.height,s=o.width,l=o.height;let u,f;c===null?(f=a===null?"1em":a==="auto"?l:a,u=rt(f,s/l)):(u=c==="auto"?s:c,f=a===null?rt(u,l/s):a==="auto"?l:a);const h={},g=(m,y)=>{tn(y)||(h[m]=y.toString())};return g("width",u),g("height",f),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+s.toString()+" "+l.toString(),{attributes:h,body:i}}const en=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let $=en();function nn(t){$=t}function on(){return $}function rn(t,n){const e=Q(t);if(!e)return 0;let r;if(!e.maxURL)r=0;else{let o=0;e.resources.forEach(c=>{o=Math.max(o,c.length)});const i=n+".json?icons=";r=e.maxURL-o-e.path.length-i.length}return r}function sn(t){return t===404}const cn=(t,n,e)=>{const r=[],o=rn(t,n),i="icons";let c={type:i,provider:t,prefix:n,icons:[]},a=0;return e.forEach((s,l)=>{a+=s.length+1,a>=o&&l>0&&(r.push(c),c={type:i,provider:t,prefix:n,icons:[]},a=s.length),c.icons.push(s)}),r.push(c),r};function an(t){if(typeof t=="string"){const n=Q(t);if(n)return n.path}return"/"}const ln=(t,n,e)=>{if(!$){e("abort",424);return}let r=an(n.provider);switch(n.type){case"icons":{const i=n.prefix,a=n.icons.join(","),s=new URLSearchParams({icons:a});r+=i+".json?"+s.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:e("abort",400);return}let o=503;$(t+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{e(sn(c)?"abort":"next",c)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?e("abort",i):e("next",o)});return}setTimeout(()=>{e("success",i)})}).catch(()=>{e("next",o)})},un={prepare:cn,send:ln};function St(t,n){switch(t){case"local":case"session":C[t]=n;break;case"all":for(const e in C)C[e]=n;break}}const W="data-style";let Zt="";function fn(t){Zt=t}function vt(t,n){let e=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(W));e||(e=document.createElement("style"),e.setAttribute(W,W),t.appendChild(e)),e.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+Zt}function Gt(){gt("",un),Ot(!0);let t;try{t=window}catch{}if(t){if(Qt(),t.IconifyPreload!==void 0){const e=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!pt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(const r in e){const o="IconifyProviders["+r+"] is invalid.";try{const i=e[r];if(typeof i!="object"||!i||i.resources===void 0)continue;mt(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:e=>St(e,!0),disableCache:e=>St(e,!1),iconExists:qe,getIcon:Ee,listIcons:Me,addIcon:Lt,addCollection:pt,calculateSize:rt,buildIcon:Ut,loadIcons:ut,loadIcon:Ge,addAPIProvider:mt,appendCustomStyle:fn,_api:{getAPIConfig:Q,setAPIModule:gt,sendAPIQuery:Nt,setFetch:nn,getFetch:on,listAPIProviders:Be}}}function Jt(t,n){let e=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)e+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+t+"</svg>"}function dn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function hn(t){return"data:image/svg+xml,"+dn(t)}function pn(t){return'url("'+hn(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},Ct={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Tt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Tt){const n=Tt[t];for(const e in Ct)n[t+"-"+e]=Ct[e]}function At(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function gn(t,n,e){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=t.attributes,c=Jt(o,{...i,width:n.width+"",height:n.height+""}),a=pn(c),s=r.style,l={"--svg":a,width:At(i.width),height:At(i.height),...e?it:Kt};for(const u in l)s.setProperty(u,l[u]);return r}let j;function mn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function yn(t){return j===void 0&&mn(),j?j.createHTML(t):t}function bn(t){const n=document.createElement("span"),e=t.attributes;let r="";e.width||(r="width: inherit;"),e.height||(r+="height: inherit;"),r&&(e.style=r);const o=Jt(t.body,e);return n.innerHTML=yn(o),n.firstChild}function kt(t,n){const e=n.icon.data,r=n.customisations,o=Ut(e,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let c;switch(i){case"svg":c=bn(o);break;default:c=gn(o,{...E,...e},i==="mask")}const a=Array.from(t.childNodes).find(s=>{const l=s.tagName&&s.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?c.tagName==="SPAN"&&a.tagName===c.tagName?a.setAttribute("style",c.getAttribute("style")):t.replaceChild(c,a):t.appendChild(c)}function jt(t,n,e){const r=e&&(e.rendered?e:e.lastRender);return{rendered:!1,inline:n,icon:t,lastRender:r}}function xn(t="iconify-icon"){let n,e;try{n=window.customElements,e=window.HTMLElement}catch{return}if(!n||!e)return;const r=n.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends e{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const s=this._shadowRoot=this.attachShadow({mode:"open"}),l=K(this);vt(s,l),this._state=jt({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const l=K(this),u=this._state;l!==u.inline&&(u.inline=l,vt(this._shadowRoot,l))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return K(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const l=this._shadowRoot;if(s.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}kt(l,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,l=this.getAttribute("icon");if(l!==s.icon.value){this._iconChanged(l);return}if(!s.rendered)return;const u=this.getAttribute("mode"),f=dt(this);(s.attrMode!==u||ve(s.customisations,f))&&this._renderIcon(s.icon,f,u)}_iconChanged(s){const l=Ke(s,(u,f,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const m={value:u,name:f,data:h};m.data?this._gotIconData(m):g.icon=m});l.data?this._gotIconData(l):this._state=jt(l,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,dt(this),this.getAttribute("mode"))}_renderIcon(s,l,u){const f=We(s.data.body,u),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:s,inline:h,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in i.prototype||Object.defineProperty(i.prototype,a,{get:function(){return this.getAttribute(a)},set:function(s){s!==null?this.setAttribute(a,s):this.removeAttribute(a)}})});const c=Gt();for(const a in c)i[a]=i.prototype[a]=c[a];return n.define(t,i),i}xn()||Gt();const wn={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},In={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Wt({session:t,locale:n,size:e}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(s=>s.section==="sessionManager"&&!["/sessionManager"].includes(s.id)).filter(s=>{var l;return!!((s==null?void 0:s.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(s=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>s.component===u.name);return{...s,component:l}}),i=ee.useRef(null),c=ne({open:!1}),a=oe((s=!c.open)=>{c.open=s});return o.length===0||!(t!=null&&t.user)?null:p.jsxs(p.Fragment,{children:[p.jsx(re,{size:"medium",ref:i,onClick:()=>a(),children:p.jsx(ft,{icon:wn,fontSize:e,style:{transform:"scale(1.08)"}})}),p.jsx(ie,{open:c.open,onClose:()=>a(!1),anchorEl:i.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:s})=>p.jsx(se,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:p.jsx(ce,{...s,timeout:350,children:p.jsxs(ae,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:I.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${I.gray6}, 0px 0px 0px 1px ${I.gray6}`},children:[p.jsx(le,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return p.jsx(ue,{disablePadding:!0,children:p.jsxs(fe,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:I.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?p.jsx(de,{component:"img",src:`${he}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):p.jsx(ft,{fontSize:50,icon:l.icon||In,color:I.textSubtitle}),p.jsx(pe,{sx:{fontSize:"12px",color:I.textBase,textAlign:"center",lineHeight:"normal"},children:ge(l.title,n)})]})},l.id)})}),p.jsx(me,{session:t,children:p.jsx(ye,{variant:"outlined",fullWidth:!0,href:be,sx:{mt:1,borderRadius:2,color:I.textBase,borderColor:I.lineBorderStrong,"&:hover":{color:I.primaryBase,borderColor:I.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}Wt.propTypes={session:Z.object.isRequired,locale:Z.string,size:Z.number};Wt.defaultProps={locale:"en",size:24};export{Wt as S};
@@ -1,268 +0,0 @@
1
- import{j as a,ce as z,fB as ge,g3 as X,P as o,g4 as me,r as k,fD as Z,q as I,g5 as xe,g6 as be,cn as ye,g7 as ke,s as N,d7 as K,g8 as ee,g9 as we,c8 as oe,ga as je,aA as ne,O as R,bU as U,bc as ve,co as te,gb as $e}from"./index-BlbV7Lbg.js";import{d as Ae}from"./ExpandMore-DBZtVOu2.js";import{S as Ne}from"./index-D4-XA9ZN.js";const L=(e,n,s="children")=>e.map(r=>Array.isArray(r[s])?n({...r,[s]:L(r[s],n,s)}):n(r)),re=(e,n="children")=>{const s=[];return L(e,r=>s.push(r),n),s},H=(e,n,s="children")=>e.map(r=>({...r})).filter(r=>{const t=r[s];if(Array.isArray(t)){const i=H(t,n,s);r[s]=i!=null&&i.length?i:void 0}const c={filteredChildren:r[s],isLeaf:!(t!=null&&t.length)};return n(r,c)}),se=e=>/^https?:\/\//.test(e),Re=e=>/^[\w-]+:[\w-]+$/.test(e),Le=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const n=t=>t.endsWith("/")?t:`${t}/`,s=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return s.startsWith(r)},ae=(e=[])=>{const n=e.map((r,t)=>({path:r,index:t})).filter(r=>Le(r.path));return n!=null&&n.length?n.slice(1).reduce((r,t)=>r.path.length>=t.path.length?r:t,n[0]).index:-1};function W({icon:e,size:n,sx:s,...r}){const t=[...Array.isArray(s)?s:[s]];if(n&&t.push({width:n,height:n}),r.variant||t.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),se(e))return a.jsx(z,{component:"span",...r,src:e,sx:t});if(Re(e)){const c=n?.6*n+4:0;return a.jsx(z,{component:"span",...r,sx:t,children:a.jsx(ge,{icon:e,height:c||void 0})})}return e&&typeof e=="string"?(t.push({"&.MuiAvatar-root":{display:"inline-flex",...n&&{fontSize:n-2}}}),a.jsx(z,{component:"span",...r,sx:t,children:Array.from(e)[0]})):null}const Te=X();function C({theme:e,children:n}){const s=e?X(e):Te;return a.jsx(me,{theme:s,children:n})}C.propTypes={children:o.any.isRequired,theme:o.object};C.defaultProps={theme:null};var J,Q;const S=((J=window==null?void 0:window.blocklet)==null?void 0:J.groupPrefix)||((Q=window==null?void 0:window.blocklet)==null?void 0:Q.prefix)||"/",Pe=e=>{const n={...e},s=e==null?void 0:e.background;return typeof s=="string"?n.background={header:s,footer:s,default:s}:s&&typeof s=="object"&&(n.background={header:s.header||s.default,footer:s.footer||s.default,default:s.default}),n},T=(e,n="en")=>{if(!(e!=null&&e.length))return e;const s=(t,c)=>typeof t=="string"?t:typeof t=="object"?t[c]||(t==null?void 0:t.en)||(t==null?void 0:t.zh):t,r=(t,c)=>{if(typeof t=="string"){if(se(t)){const d=new URL(t);return d.searchParams.set("locale",c),d.href}const i=new URL(t,window.location.origin);return i.searchParams.set("locale",c),i.pathname+i.search}return typeof t=="object"?t[c]||(t==null?void 0:t.en)||(t==null?void 0:t.zh):t};return L(e,t=>{var c;return{...t,title:s(t.title,n),link:(c=t.items)!=null&&c.length?t.link:r(t.link,n),_rawLink:t.link}},"items")},Se=e=>L(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Me=e=>{if(!(e!=null&&e.length))return null;const n=Se(e),s={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{var t;r.section?Array.isArray(r.section)?r.section.forEach(c=>{var i;(i=s[c])==null||i.push(r)}):typeof r.section=="string"&&((t=s[r.section])==null||t.push(r)):s.header.push(r)}),s},D=e=>{if(!e)return null;const n={...e};return n.theme=Pe(n.theme),n.navigation=Me(Ie(n.navigation)),n},Ie=(e=[])=>H(e,(n,s)=>{var r;return!!n.link||((r=s.filteredChildren)==null?void 0:r.length)},"items"),ie=(e,n)=>H(e,(s,r)=>{var c;const t=!s.role||n&&s.role.includes(n);return r.isLeaf?t:t&&((c=r.filteredChildren)==null?void 0:c.length)},"items"),le=o.shape({appLogo:o.node,appName:o.string,theme:o.shape({background:o.string}),enableConnect:o.bool,enableLocale:o.bool,navigation:o.arrayOf(o.shape({title:o.oneOfType([o.string,o.object]),link:o.oneOfType([o.string,o.object]),icon:o.string,items:o.arrayOf(o.shape({title:o.oneOfType([o.string,o.object]),link:o.oneOfType([o.string,o.object])}))}))}),ce=o.shape({showText:o.bool,showRole:o.bool,switchDid:o.bool,switchProfile:o.bool,switchPassport:o.bool,disableLogout:o.bool,onLogin:o.func,onLogout:o.func,onSwitchDid:o.func,onSwitchProfile:o.func,onSwitchPassport:o.func,menu:o.array,menuRender:o.func,dark:o.bool,size:o.number});function O({formattedBlocklet:e,addons:n,sessionManagerProps:s}){var h,g,m,w;const r=k.useContext(Z),{locale:t}=I()||{},{enableConnect:c=!0,enableLocale:i=!0}=e,d=!!((h=r==null?void 0:r.session)!=null&&h.user);let l=T((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,t)||[];l=ie(l,(w=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:w.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let x=[];if(i&&t&&x.push(a.jsx(xe,{showText:!1},"locale-selector")),c&&r){const y=[];d&&(l?l.slice(0,5):[]).forEach(j=>{y.push({label:j.title,icon:j.icon?a.jsx("iconify-icon",{icon:j.icon,height:24,style:{marginRight:8}}):null,component:"a",href:j.link,key:j.link})}),x.push(a.jsx(Ne,{session:r.session,locale:t},"session-blocklet")),x.push(a.jsx(be,{session:r.session,locale:t,menu:y,showRole:!0,...s},"session-user"))}return typeof n=="function"&&(x=n(x)||[]),x})();return k.createElement(a.Fragment,null,...Array.isArray(u)?u:[u])}O.propTypes={formattedBlocklet:o.object.isRequired,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:ce};O.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const de=()=>{const e=ye();k.useEffect(()=>{e.wallet&&ke.call("arcHideTopBar","{}")},[e])},Ce=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let n=1;const r=L(e,i=>{var p,u;const d=i.icon?a.jsx(W,{icon:i.icon}):null;if(i.items)return{id:`${n++}`,label:i.title,icon:d,children:i.items};let l={};return((p=i.link)!=null&&p.startsWith("http://")||(u=i.link)!=null&&u.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${n++}`,label:a.jsx("a",{href:i.link,...l,children:i.title}),icon:d,link:i.link}},"items"),t=re(r),c=ae(t.map(i=>i.link));return{navItems:r,activeId:c>=0?t[c].id:null}};function Oe({meta:e={},addons:n,sessionManagerProps:s={showRole:!0},homeLink:r=S,theme:t,hideNavMenu:c=!1,...i}){var b,j;de();const{locale:d}=I()||{},l=k.useMemo(()=>{const $=Object.assign({},window.blocklet,e);try{return D($)}catch(v){return console.error("Failed to format blocklet info",v,$),$}},[e]);if(!l.appName)return null;const{appLogo:p,appLogoRect:u,theme:f}=l,h=T((b=l==null?void 0:l.navigation)==null?void 0:b.header,d),g=Ce(h),{navItems:m,activeId:w}=g,x=typeof n=="function"?$=>n($,{navigation:g}):n,y=a.jsx(O,{formattedBlocklet:l,addons:x,sessionManagerProps:s});return a.jsx(C,{theme:t,children:a.jsx(Ee,{homeLink:r,logo:a.jsx("img",{src:u||p,alt:"logo"}),addons:y,...oe(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(j=f==null?void 0:f.background)==null?void 0:j.header,children:c||!(m!=null&&m.length)?null:({isMobile:$})=>a.jsx(je,{mode:$?"inline":"horizontal",activeId:w,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const Ee=N(we)`
2
- ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
3
- font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
4
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
5
- .header-logo {
6
- min-width: 44px;
7
- }
8
- ${({$bordered:e})=>e?`border-bottom: 1px solid ${K.strokeSep};`:""}
9
- ${e=>e.theme.breakpoints.down("md")} {
10
- .header-logo {
11
- min-width: 32px;
12
- }
13
- }
14
- .header-nav {
15
- .navmenu-sub .navmenu-item {
16
- min-width: 80px;
17
- }
18
- }
19
- .header-nav.navmenu--horizontal {
20
- .navmenu-root > .navmenu-sub,
21
- .navmenu-root > .navmenu-item {
22
- padding: 16px 4px;
23
-
24
- .navmenu-sub-container {
25
- padding-top: 0;
26
- }
27
- }
28
- .navmenu-item-icon > .MuiAvatar-root,
29
- .navmenu-sub-icon > .MuiAvatar-root {
30
- width: 20px;
31
- height: 20px;
32
- }
33
- }
34
- `,Je=ee(Oe,{FallbackComponent:ne});function _({name:e,logo:n,description:s,...r}){if(!e&&!n&&!s)return null;const t=k.isValidElement(n)?n:a.jsx("img",{src:n,alt:e});return a.jsxs(Fe,{...r,children:[a.jsxs("div",{children:[n&&a.jsx(R,{component:"a",href:"/",className:"footer-brand-logo",children:t}),e&&a.jsx("div",{className:"footer-brand-name",children:e})]}),s&&a.jsx("div",{className:"footer-brand-desc",children:s})]})}_.propTypes={name:o.node,logo:o.node,description:o.string};_.defaultProps={name:"",logo:"",description:""};const Fe=N("div")`
35
- display: flex;
36
- flex-direction: column;
37
- font-size: 14px;
38
- a {
39
- text-decoration: none;
40
- color: inherit;
41
- }
42
- > div:first-of-type {
43
- display: flex;
44
- align-items: center;
45
- }
46
- .footer-brand-logo {
47
- display: flex;
48
- align-items: center;
49
- margin-right: 16px;
50
- line-height: 1;
51
- img,
52
- svg {
53
- width: auto;
54
- height: 44px;
55
- max-height: 44px;
56
- }
57
- }
58
- .footer-brand-name {
59
- font-size: 16px;
60
- font-weight: bold;
61
- }
62
- .footer-brand-desc {
63
- margin-top: 16px;
64
- }
65
-
66
- ${e=>e.theme.breakpoints.down("sm")} {
67
- width: auto;
68
- }
69
-
70
- ${e=>e.theme.breakpoints.down("md")} {
71
- .footer-brand-logo {
72
- img,
73
- svg {
74
- height: 32px;
75
- max-height: 32px;
76
- }
77
- }
78
- }
79
- `;function M({links:e,flowLayout:n,...s}){const[r,t]=k.useState(-1);if(!(e!=null&&e.length))return null;const c=e.some(d=>{var l;return(l=d.items)==null?void 0:l.length}),i=({label:d,link:l,icon:p,render:u,props:f})=>{let h=d;return u?h=u({label:d,link:l,props:f}):l&&(h=a.jsx("a",{href:l,"aria-label":`Footer link for ${d}`,...f,children:d})),a.jsxs(a.Fragment,{children:[p&&a.jsx(W,{icon:p,size:20,sx:{mr:.5}}),h]})};return a.jsx(ze,{...s,className:U(s.className,{"footer-links--grouped":c,"footer-links--flow":n}),children:a.jsxs("div",{className:"footer-links-inner",children:[n&&e.map((d,l)=>a.jsx("span",{className:"footer-links-item",children:i(d)},l)),!n&&e.map((d,l)=>{const{items:p}=d,u=l===r;return a.jsxs("div",{className:U("footer-links-group",{"footer-links-group--active":u}),onClick:()=>t(r===l?-1:l),children:[a.jsxs("span",{className:"footer-links-item",children:[i(d),!!(p!=null&&p.length)&&a.jsx("span",{className:"footer-links-group-expand-icon",children:a.jsx(Ae,{style:{transform:`rotate(${u?180:0}deg)`}})})]}),!!(p!=null&&p.length)&&a.jsx("div",{className:"footer-links-sub",children:p.map((f,h)=>a.jsx("span",{className:"footer-links-item",children:i(f)},h))})]},l)})]})})}M.propTypes={links:o.arrayOf(o.shape({label:o.string,link:o.string,render:o.func,props:o.object})),flowLayout:o.bool};M.defaultProps={links:[],flowLayout:!1};const ze=N("div")`
80
- overflow: hidden;
81
- color: ${e=>e.theme.palette.grey[600]};
82
- .footer-links-inner {
83
- display: flex;
84
- justify-content: space-between;
85
- margin: 0 -8px;
86
- }
87
- .footer-links-group,
88
- .footer-links-sub {
89
- display: flex;
90
- flex-direction: column;
91
- }
92
- .footer-links-sub .footer-links-item {
93
- color: ${e=>e.theme.palette.grey[900]};
94
- }
95
- .footer-links-group-expand-icon {
96
- display: none;
97
- position: absolute;
98
- right: 16px;
99
- top: 50%;
100
- transform: translate(0, -50%);
101
- line-height: 1;
102
- svg {
103
- width: auto;
104
- height: 0.75em;
105
- }
106
- }
107
- .footer-links-item {
108
- display: inline-flex;
109
- align-items: center;
110
- position: relative;
111
- padding: 4px 8px;
112
- font-size: 14px;
113
- }
114
- &.footer-links--grouped {
115
- .footer-links-group {
116
- > .footer-links-item {
117
- font-weight: bold;
118
- }
119
- .footer-links-sub {
120
- margin-top: 8px;
121
- }
122
- }
123
- }
124
- a {
125
- display: inline-block;
126
- max-width: 150px;
127
- color: inherit;
128
- text-decoration: none;
129
- &:hover {
130
- text-decoration: underline;
131
- }
132
- }
133
-
134
- &.footer-links--flow {
135
- display: inline-flex;
136
- .footer-links-inner {
137
- justify-content: center;
138
- flex-wrap: wrap;
139
- margin: 0 -8px;
140
- .footer-links-item {
141
- padding: 0 8px;
142
- }
143
- .footer-links-item + .footer-links-item::before {
144
- content: '';
145
- position: absolute;
146
- left: 0;
147
- top: 50%;
148
- transform: translate(0, -50%);
149
- height: 1em;
150
- border-left: 1px solid ${e=>e.theme.palette.grey[400]};
151
- }
152
- }
153
- }
154
-
155
- ${e=>e.theme.breakpoints.down("md")} {
156
- .footer-links-inner {
157
- flex-direction: column;
158
- margin: 0;
159
- }
160
- .footer-links-sub {
161
- display: none;
162
- }
163
- .footer-links-group {
164
- position: relative;
165
- padding: 12px 0;
166
- .footer-links-item .footer-links-group-expand-icon {
167
- display: inline-block;
168
- }
169
- }
170
- .footer-links-group + .footer-links-group {
171
- border-top: 1px solid ${e=>e.theme.palette.grey[200]};
172
- }
173
- .footer-links-group--active {
174
- .footer-links-sub {
175
- display: flex;
176
- flex-direction: row;
177
- flex-wrap: wrap;
178
- .footer-links-item {
179
- flex: 0 0 50%;
180
- }
181
- }
182
- }
183
- .footer-links-item {
184
- padding-left: 0;
185
- padding-right: 0;
186
- font-size: 13px;
187
- }
188
- &.footer-links--grouped {
189
- .footer-links-group {
190
- > .footer-links-item {
191
- font-size: 14px;
192
- }
193
- }
194
- }
195
-
196
- &.footer-links--flow {
197
- .footer-links-inner {
198
- flex-direction: row;
199
- }
200
- }
201
- }
202
- `;function q({items:e,...n}){const s=ve();return e!=null&&e.length?a.jsx(Ue,{...n,children:e.map((r,t)=>a.jsx("a",{href:r.link,target:"_blank","aria-label":`Social media icon${r.title?` for ${r.title}`:""}`,rel:"noreferrer",children:a.jsx(W,{icon:r.icon||r.title,sx:{bgcolor:s.palette.grey[600],color:"#fff"},size:24,component:"span"})},t))}):null}q.propTypes={items:o.arrayOf(o.shape({icon:o.string,link:o.string}))};q.defaultProps={items:null};const Ue=N("div")`
203
- display: inline-flex;
204
- flex-wrap: wrap;
205
- align-items: center;
206
- justify-content: center;
207
- gap: 20px;
208
- a {
209
- color: ${e=>e.theme.palette.grey[400]};
210
- text-decoration: none;
211
- &:hover {
212
- color: ${e=>e.theme.palette.primary.light};
213
- }
214
- }
215
- ${e=>e.theme.breakpoints.down("md")} {
216
- gap: 12px;
217
- }
218
- `;function B({owner:e,year:n,...s}){return a.jsxs(He,{...s,children:["Copyright © ",n," ",e]})}B.propTypes={owner:o.string,year:o.string};B.defaultProps={owner:"ArcBlock",year:`${new Date().getFullYear()}`};const He=N("p")`
219
- display: flex;
220
- align-items: center;
221
- margin: 0;
222
- font-size: 13px;
223
- `;function E({children:e,autoCenter:n,...s}){return e?a.jsx(We,{...s,className:U(s.className,{"footer-row-auto-center":n}),children:e}):null}E.propTypes={children:o.any,autoCenter:o.bool};E.defaultProps={children:null,autoCenter:!1};const We=N(R)`
224
- display: flex;
225
- justify-content: space-between;
226
- & + & {
227
- margin-top: 24px;
228
- }
229
- &.footer-row-auto-center > *:only-child {
230
- margin: 0 auto;
231
- }
232
-
233
- ${e=>e.theme.breakpoints.down("md")} {
234
- align-items: stretch;
235
- flex-direction: column;
236
- gap: 16px;
237
- > * {
238
- flex: 1 0 100%;
239
- }
240
- &.footer-row-auto-center > * {
241
- margin: 0 auto;
242
- }
243
- }
244
- `;function pe({elements:e,data:n,...s}){var r;return a.jsx(De,{...s,children:a.jsxs(te,{children:[a.jsxs(R,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[a.jsx(R,{children:e.brand}),a.jsx(R,{lineHeight:1,children:e.socialMedia})]}),!!((r=n.navigation)!=null&&r.length)&&a.jsx(R,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),a.jsxs(E,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}pe.propTypes={elements:o.shape({brand:o.element,navigation:o.element,socialMedia:o.element,copyright:o.element,links:o.element}).isRequired,data:o.object.isRequired};const De=N("div")`
245
- padding: 32px 0 24px 0;
246
- .footer-brand-name,
247
- .footer-brand-desc {
248
- display: none;
249
- }
250
- && .footer-brand-logo {
251
- margin-right: 0;
252
- }
253
- `;function ue({elements:e,data:n,...s}){return a.jsx(_e,{...s,children:a.jsxs(te,{className:"plain-layout-container",children:[!!n.links&&a.jsxs(E,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!n.links&&a.jsxs(a.Fragment,{children:[k.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}ue.propTypes={elements:o.shape({brand:o.element,navigation:o.element,socialMedia:o.element,copyright:o.element,links:o.element}).isRequired,data:o.object.isRequired};const _e=N("div")`
254
- padding: 24px 0;
255
- .plain-layout-container {
256
- display: flex;
257
- justify-content: space-between;
258
- align-items: center;
259
- flex-wrap: wrap;
260
- gap: 8px;
261
- }
262
- `,fe=[{name:"plain",support:(e,n)=>{var s,r;return!((s=n.navigation)!=null&&s.length)&&!((r=n.socialMedia)!=null&&r.length)},component:ue},{name:"standard",support:()=>!0,component:pe}],qe=fe.reduce((e,n)=>({...e,[n.name]:n}),{});function V(e){var w,x;const{brand:n,navigation:s,socialMedia:r,copyright:t,links:c,layout:i,...d}=e,l=()=>n?a.jsx(_,{...n}):null,p=()=>s!=null&&s.length?a.jsx(M,{links:s}):null,u=()=>r!=null&&r.length?a.jsx(q,{items:r}):null,f=()=>{const y=(t==null?void 0:t.owner)||(n==null?void 0:n.name);return y?a.jsx(B,{owner:y,year:(t==null?void 0:t.year)||void 0}):null},h=()=>c!=null&&c.length?a.jsx(M,{flowLayout:!0,links:c}):null,g={brand:l(),navigation:p(),socialMedia:u(),copyright:f(),links:h()};let m=null;if(i==="auto"?m=fe.find(y=>y.support(g,e)).component:m=(w=qe[i])==null?void 0:w.component,!m)throw new Error(`layout ${i} is not supported.`);return a.jsxs(R,{position:"relative",...d,children:[a.jsx(m,{elements:g,data:e}),a.jsx(R,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(x=window==null?void 0:window.blocklet)==null?void 0:x.version})]})}V.propTypes={brand:o.shape({name:o.node,description:o.string,logo:o.node}),navigation:o.arrayOf(o.shape({label:o.node,link:o.string})),socialMedia:o.arrayOf(o.shape({icon:o.node,link:o.string})),copyright:o.shape({owner:o.string,year:o.oneOfType([o.string,o.number])}),links:o.arrayOf(o.shape({label:o.node,link:o.string})),layout:o.oneOf(["auto","standard","plain"])};V.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function G({meta:e,theme:n,...s}){var m,w,x,y;const{locale:r}=I()||{},t=k.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return D(b)}catch(j){return console.error("Failed to format blocklet info",j,b),b}},[e]);if(!t.appName)return null;const{appLogo:c,appLogoRect:i,appName:d,appDescription:l,description:p,theme:u,copyright:f}=t,h={footerNav:T((m=t==null?void 0:t.navigation)==null?void 0:m.footer,r)||[],socialMedia:T((w=t==null?void 0:t.navigation)==null?void 0:w.social,r)||[],links:T((x=t==null?void 0:t.navigation)==null?void 0:x.bottom,r)||[]},g={brand:{name:d,description:l||p,logo:i||c},navigation:L(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:f,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return a.jsx(C,{theme:n,children:a.jsx(Be,{...g,...oe(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(y=u==null?void 0:u.background)==null?void 0:y.footer})})}G.propTypes={meta:le,theme:o.object};G.defaultProps={meta:{},theme:null};const Be=N(V)`
263
- ${({$bordered:e})=>`border-top: 1px solid ${e?K.strokeSep:"#eee"};`}
264
- color: ${e=>e.theme.palette.grey[600]};
265
- ${({$bgcolor:e})=>e&&`background-color: ${e};`}
266
- font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
267
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
268
- `,Qe=ee(G,{FallbackComponent:ne});function he({meta:e,fallbackUrl:n,invalidPathFallback:s,headerAddons:r,sessionManagerProps:t,links:c,...i}){var $;de();const d=k.useContext(Z),l=($=d==null?void 0:d.session)==null?void 0:$.user,p=l==null?void 0:l.role,{locale:u}=I()||{},f=k.useMemo(()=>{const v=Object.assign({},window.blocklet,e);try{return D(v)}catch(P){return console.error("Failed to format blocklet info",P,v),v}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=k.useMemo(()=>{var Y;let v=T((Y=f==null?void 0:f.navigation)==null?void 0:Y.dashboard,u)||[];v=ie(v,p),v=L(v,A=>({title:A.title,url:A.link,icon:A.icon?a.jsx("iconify-icon",{height:"100%",width:"100%",icon:A.icon}):null,external:!0,children:A.items}),"items");const P=re(v).filter(A=>!!A.url),F=ae(P.map(A=>A.url));return F!==-1&&(P[F].active=!0),{localizedNav:v,flattened:P,matchedIndex:F}},[f,u,p]),w=typeof c=="function"?c(h):[...h,...c];if(k.useLayoutEffect(()=>{l&&!(g!=null&&g.length)&&n&&(window.location.href=n)},[n]),k.useLayoutEffect(()=>{l&&(g!=null&&g.length)&&m===-1&&s&&s()},[s,g,m]),!f.appName)return null;const{appLogo:x,appLogoRect:y,appName:b}=f,j=a.jsx(O,{formattedBlocklet:f,addons:r,sessionManagerProps:t});return a.jsx($e,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:w,...i,headerProps:{homeLink:S,logo:a.jsx("img",{src:y||x,alt:"logo"}),addons:j,...i.headerProps}})}he.propTypes={meta:le,fallbackUrl:o.string,invalidPathFallback:o.func,headerAddons:o.oneOfType([o.func,o.node]),sessionManagerProps:ce,links:o.oneOfType([o.array,o.func])};he.defaultProps={meta:{},fallbackUrl:S,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=S}},links:[]};export{he as D,Qe as F,Je as H};
@@ -1 +0,0 @@
1
- import{P as s,j as t,B as i,gm as r}from"./index-BlbV7Lbg.js";function n({children:e,...o}){return t.jsxs(i,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:s.any};n.defaultProps={children:""};export{n as C};
@@ -1,11 +0,0 @@
1
- import{u as z,j as n,r as d,L as X,P as h,f as V,l as b,O as m,m as E,d as Y,V as Z,C as ee,q as te,M as v,a as f,F as R,b as j,c_ as re,G as y,A as L,p as ne,o as oe,z as se,bh as ie,n as ae}from"./index-BlbV7Lbg.js";import{T as me}from"./index-PLNnQedK.js";import le from"./traffic-DB2NxLKJ.js";import{D as ce}from"./index-sv8YNhSG.js";import{B as ue}from"./app-avatar-Ciqu7DzN.js";import{B as de}from"./bundle-avatar-DQouFsLp.js";import{C as pe,M as S}from"./memory-iTIi7m4P.js";import{I as fe}from"./chart-CxTMvY28.js";import{w as he}from"./withStyles-CeJ3MZXD.js";import{_ as ge}from"./useLocalStorage-DjVTK9Hv.js";import{T as ve,a as ye}from"./ToggleButtonGroup-zw2F4d4K.js";import"./Delete-DrNN1_NC.js";import"./iframe-D7XRwAcu.js";import"./ChevronLeft-DtF4yZw5.js";import"./ChevronRight-Cg_Yljmq.js";import"./Select-DM4jz5L4.js";import"./TextField-Cb27WYFh.js";import"./InputLabel-BVacxmju.js";import"./InputAdornment-7NSF5tvp.js";import"./FilterList-DFTqCvYV.js";import"./LastPage-TCg78JGB.js";import"./index-WqNucEB5.js";import"./redux-CrGkFo1C.js";import"./Search-CDAInWfT.js";import"./index-CxOlUKp-.js";import"./MoreVert-Dt18zfj9.js";import"./getValidReactChildren-C6TVYF1_.js";function xe(){const{api:e,info:t}=z();return n.jsx(le,{client:e,did:t.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var A=M.default=void 0;je(d);var C=n;function je(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function k(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?_(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,t,i){return t=Ie(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ie(e){var t=Ne(e,"string");return typeof t=="symbol"?t:String(t)}function Ne(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O=function(t){return(0,C.jsxs)("svg",k(k({},t),{},{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"})]}))};O.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};O.displayName="server";A=M.default=O;const Pe=he(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(X);function H(e){const{value:t}=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(E,{variant:"body2",color:"textSecondary",children:`${Math.round(t)}%`})})]})}H.propTypes={value:h.number.isRequired};function T({disk:e}){const{t}=d.useContext(V),i=[{id:1,className:"used",title:t("system.used"),metric:b(e.used)},{id:2,className:"free",title:t("system.free"),metric:b(e.free)},{id:3,className:"total",title:t("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${t("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(H,{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))})}T.propTypes={disk:h.shape({used:h.number,free:h.number,total:h.number,device:h.string})};T.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,locale:i}=te(),{api:a}=z(),[u,I]=ge("runtime-view-interval",6),x=d.useMemo(()=>{const r=[];return r.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),r.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{v.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&r.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:l,name:v.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),r},[]),[p,N]=d.useState(x),[g,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,q]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(R.EVENTS.NODE_RUNTIME_INFO,r=>{r.mem.total=r.mem.total||0,r.mem.used=r.mem.total-(r.mem.available||0),F(r),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...r.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...r.service}}:s))}),f(R.EVENTS.BLOCKLETS_RUNTIME_INFO,r=>{if(!r||!r.length){console.error("incorrect blocklets runtime info format",r);return}N(o=>o.map(s=>{const l=r.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=r=>{N(o=>o.filter(s=>s.groupId!==r.meta.did))},B=async r=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:r.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return v.forEachBlockletSync(o,(c,{id:J,ancestors:Q})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:J,name:v.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:Q})}),l})}catch(o){L.error(o.message)}};f(j.BlockletEvents.removed,w),f(j.BlockletEvents.startFailed,w),f(j.BlockletEvents.statusChange,r=>{if(r.status!=="running"){w(r);return}B(r)}),f(j.BlockletEvents.updated,B),f(j.BlockletEvents.started,B);const G=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(r=>{const o=r.history||[];q({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(r=>{L.error(r.message)})};d.useEffect(()=>{G()},[u]);const W=r=>ne(Number(r||0),{locale:oe(i)}),K=[{label:t("common.group"),name:"groupName",options:{customBodyRenderLite(r){const{type:o,blocklet:s,groupName:l}=p[r];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:t("common.name"),name:"name",options:{customBodyRenderLite(r){const{type:o,name:s,component:l,ancestors:c}=p[r];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(A,{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:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return W(o.uptime)}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:t("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(E,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:t("analytics.trend")}),n.jsx(ve,{size:"small",exclusive:!0,value:u,onChange:(r,o)=>I(o),children:[1,3,6,12,24].map(r=>n.jsxs(ye,{value:r,children:[r,"H"]},r))})]}),n.jsxs(y,{mb:4,container:!0,spacing:4,children:[n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...g.cpu,history:P.cpu})},"cpu"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{...g.mem,history:P.mem})},"memory"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Daemon)`,used:g.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Service)`,instanceCount:g.service.instanceCount||0,used:g.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),g.disks.map(r=>n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(T,{disk:r})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:t("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:h.array.isRequired};function we(){const{data:e,externalData:t,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...t];return n.jsx($,{initialBlocklets:a})}function et(){const e=se(),{t}=d.useContext(V),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:t("common.traffic"),value:"traffic"},{label:t("common.runtime"),value:"runtime"}],I={traffic:xe,runtime:we},x=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(E,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(x)?x:n.jsx(x,{})})]})}const Be=ae.main`
2
- .page-header {
3
- display: flex;
4
- justify-content: space-between;
5
- align-items: center;
6
- }
7
-
8
- .page-content {
9
- margin-top: 16px;
10
- }
11
- `;export{et as default};
@@ -1 +0,0 @@
1
- import{P as l,j as t,bm as G,t as J,r as s,q as V,M as H,W as Q,dF as X,m as Y,D as Z,B as E,C as I,w as _,J as ee,x as te,bn as ne,K as oe}from"./index-BlbV7Lbg.js";import{W as se}from"./tag-Bdou5m1X.js";import{I as w}from"./index-LhVZUpfu.js";import{T as re}from"./TextField-Cb27WYFh.js";import{S as ae,a as le,b as ie}from"./Stepper-D4YMSiMG.js";function ce({mode:r,...i}){return r==="development"?t.jsx(se,{type:"primary",...i,children:"DEV"}):null}ce.propTypes={mode:l.string.isRequired};function D({defaultUrl:r,onCancel:i,onSuccess:b,onError:F,mode:W,handleText:c}){const{api:B}=G(),{api:L}=J(),[d,m]=s.useState(!1),[y,p]=s.useState(""),{t:n}=V(),j={dist:{}},[u,M]=s.useState(r),[f,h]=s.useState(r?1:0),[o,k]=s.useState(j),[R,x]=s.useState(!1),[S,T]=s.useState({}),P=W==="component",g=P?!0:!r,C=async()=>{k(j),p(null),m(!0);try{const e=decodeURIComponent(u.trim());try{new URL(e)}catch{throw new Error("Invalid URL")}const{meta:v,inStore:$,registryUrl:z}=await B.getBlockletMetaFromUrl({input:{url:e}});k(v),T({inStore:$,registryUrl:z,inputUrl:u.trim()})}catch(e){console.error(e);const v=`Blocklet Install failed: ${oe(e)}`;p(v),F(e)}finally{m(!1)}},q=()=>{if(P){b({meta:o,...S}),i();return}m(!0),x(!0)},A=()=>{m(!1),x(!1),b({meta:o,...S}),i()},K=()=>{m(!1),x(!1)};s.useEffect(()=>{r&&C()},[r]);const N=[{name:n("common.name"),value:H.getDisplayName({meta:o},!0)},{name:n("common.version"),value:o.version},{name:n("common.did"),value:t.jsx(Q,{did:o.did})},{name:n("common.author"),value:X(o.author)},{name:n("blocklet.dist.downloadLink"),value:o.dist.tarball}],O=()=>d?t.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:t.jsx(I,{})}):o.did?t.jsx("div",{style:{paddingLeft:"10%"},children:N.map(e=>e.name===n("common.did")?t.jsx(w,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:()=>n("common.did"),children:e.value},e.name):t.jsx(w,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name))}):null,U=[{label:n("blocklet.fromUrl.step0"),body:t.jsx(Y,{component:"div",children:t.jsx(re,{label:n("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,style:{marginBottom:32},margin:"dense",helperText:n("blocklet.fromUrl.description"),value:u,onChange:e=>{p(null),M(e.target.value)},disabled:d,onKeyPress:e=>{e.key==="Enter"&&(e.preventDefault(),C(),h(1))}})}),cancel:n("common.cancel"),confirm:n("common.next"),onCancel:i,onConfirm:()=>{C(),h(1)}},{label:n("blocklet.fromUrl.step1"),body:O(),cancel:n(g?"common.pre":"common.cancel"),confirm:(c==null?void 0:c.confirm)||n("blocklet.fromUrl.confirm"),onCancel:()=>{g?h(e=>e-1):i()},onConfirm:()=>{q()}}],a=U[f];return t.jsxs(t.Fragment,{children:[t.jsxs(Z,{title:(c==null?void 0:c.title)||n("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>a.onCancel(),showCloseButton:f===0,disableEscapeKeyDown:!0,open:!0,actions:t.jsxs(t.Fragment,{children:[a.cancel&&t.jsx(E,{onClick:e=>{e.stopPropagation(),p(null),a.onCancel()},color:"inherit",children:a.cancel||n("common.cancel")}),t.jsxs(E,{onClick:e=>{e.stopPropagation(),a.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:d||!u||y,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[d&&f===0&&t.jsx(I,{size:16}),a.confirm]})]}),children:[g&&t.jsx(ae,{alternativeLabel:!0,activeStep:f,children:U.map(({label:e})=>t.jsx(le,{children:t.jsx(ie,{children:e})},e))}),t.jsx(_,{component:"div",style:{marginTop:24},children:a.body}),!!y&&t.jsx(ee,{severity:"error",style:{width:"100%",marginTop:8},children:y})]}),o&&R&&t.jsx(te,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:L.get,checkTimeout:5*60*1e3,onSuccess:A,extraParams:{title:o.title,wt:ne(o),blockletMetaUrl:decodeURIComponent(u.trim())},messages:{title:n("setup.keyPair.title"),scan:n("setup.keyPair.scan"),confirm:n("setup.keyPair.confirm"),success:n("setup.keyPair.success")},onClose:K})]})}D.propTypes={defaultUrl:l.string,onCancel:l.func.isRequired,onSuccess:l.func.isRequired,onError:l.func,mode:l.oneOf(["install","component"]),handleText:l.object};D.defaultProps={onError:()=>{},defaultUrl:"",mode:"install",handleText:{}};export{ce as B,D as I};
@@ -1 +0,0 @@
1
- import{aK as i,aL as o,j as s,g as u,fp as f}from"./index-BlbV7Lbg.js";var e={},l=o;Object.defineProperty(e,"__esModule",{value:!0});var n=e.default=void 0,v=l(i()),d=s;n=e.default=(0,v.default)((0,d.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");const a=f;var x=(t,r)=>a(t)===a(r);const p=u(x);export{n as d,p as i};