@abtnode/webapp 1.16.29-beta-112566d5 → 1.16.29-next-680cf137

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 (178) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-LTC9ZPHh.js → Add-CBlI6OP_.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-B9TabCUQ.js → ArrowDropDown-_NUZMAs3.js} +1 -1
  5. package/dist/assets/{Autocomplete-DA6il_1i.js → Autocomplete-B72ZNhpa.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-Ch6zvYxu.js → Breadcrumbs-D-zIyMgq.js} +1 -1
  7. package/dist/assets/{ButtonGroup-reI4zw37.js → ButtonGroup-By_ymyXi.js} +1 -1
  8. package/dist/assets/{CheckCircle-ColTEZil.js → CheckCircle-DFcLtmlR.js} +1 -1
  9. package/dist/assets/{ChevronLeft-n-Lu674N.js → ChevronLeft-fo4GMv_v.js} +1 -1
  10. package/dist/assets/{ChevronRight-BQAiuHlI.js → ChevronRight-CTMwG0CZ.js} +1 -1
  11. package/dist/assets/{Close-BHCZ0Bw1.js → Close-C7JfjION.js} +1 -1
  12. package/dist/assets/{Delete-CUte0jEQ.js → Delete-DP2Kbw6K.js} +1 -1
  13. package/dist/assets/DeleteOutline-B8oYxNwP.js +1 -0
  14. package/dist/assets/DeleteOutline-DRdvA-Zf.js +1 -0
  15. package/dist/assets/{Done-Z8bUrs-4.js → Done-tC1zTTTI.js} +1 -1
  16. package/dist/assets/{Edit-CAjWk028.js → Edit-BE1ZZ-Tm.js} +1 -1
  17. package/dist/assets/{EditIcon-5cOXjWt1.js → EditIcon-8lCGiLnt.js} +1 -1
  18. package/dist/assets/{ExpandMore-D_XvdPjT.js → ExpandMore-3RzpbVTz.js} +1 -1
  19. package/dist/assets/{FilterList-BY5T-hLB.js → FilterList-Do3l0qfw.js} +1 -1
  20. package/dist/assets/{Google-8ss7z7oB.js → Google-CIgaEutQ.js} +1 -1
  21. package/dist/assets/{Https-CRlx_3vN.js → Https-BE0YR8cf.js} +1 -1
  22. package/dist/assets/{InputAdornment-C1r6p7SP.js → InputAdornment-DwuVDGhs.js} +1 -1
  23. package/dist/assets/{InputLabel-CExB3j6D.js → InputLabel-D6AZ_TXn.js} +1 -1
  24. package/dist/assets/{LastPage-BlukH42P.js → LastPage-DFR_wWVB.js} +1 -1
  25. package/dist/assets/{Launch-yLPtDPJO.js → Launch-CouSgez_.js} +1 -1
  26. package/dist/assets/{Link-CYdb8X6z.js → Link-DyVx2epM.js} +1 -1
  27. package/dist/assets/{LoadingButton-Cgv6BHxA.js → LoadingButton-CXpu1MEX.js} +1 -1
  28. package/dist/assets/{LockIcon-BrZi13Aj.js → LockIcon-DVrS5iFD.js} +1 -1
  29. package/dist/assets/{Loop-BZATCgNU.js → Loop-BALLXtEO.js} +1 -1
  30. package/dist/assets/{MoreVert-NYc6koTI.js → MoreVert-B3whUcSg.js} +1 -1
  31. package/dist/assets/{Pagination-Bpr_MZG3.js → Pagination-DDYKKK02.js} +1 -1
  32. package/dist/assets/{Public-DJVLXFlr.js → Public-CNDJTj5P.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-CjPEyQC-.js → SchemaReference.es-cc9zlDut.js} +1 -1
  34. package/dist/assets/{Search-Dz7VM7PV.js → Search-B8Ey1Xi7.js} +1 -1
  35. package/dist/assets/{Select-Bmr7GD2T.js → Select-BFdUN7Gy.js} +1 -1
  36. package/dist/assets/{Skeleton-OnJKCtYu.js → Skeleton-Bq-LHi-2.js} +1 -1
  37. package/dist/assets/{Slider-CGhiUOe5.js → Slider-DJ5A6VX9.js} +1 -1
  38. package/dist/assets/{Stepper-CpM3LrYF.js → Stepper-piTxdKQU.js} +1 -1
  39. package/dist/assets/{TextField-BtpuNQ33.js → TextField-DMD0bhJ9.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-BoN6aVCj.js → ToggleButtonGroup-6WK6LBLt.js} +1 -1
  41. package/dist/assets/{ViewList-Cw1uswUG.js → ViewList-CJj9MHYa.js} +1 -1
  42. package/dist/assets/{actions-DGOwZ57C.js → actions-B8oxTC01.js} +1 -1
  43. package/dist/assets/{actions-634dtGmR.js → actions-CXBa1BBO.js} +1 -1
  44. package/dist/assets/{agreement-C6HTWVte.js → agreement-831LxBXw.js} +8 -8
  45. package/dist/assets/api-UR4kvn9E.js +1 -0
  46. package/dist/assets/{app-avatar-B_rQHqOY.js → app-avatar-BQQaDhpx.js} +1 -1
  47. package/dist/assets/{audit-logs-BzdTb6u7.js → audit-logs-M6VjO6ZY.js} +1 -1
  48. package/dist/assets/blocklet-ChPmEIKa.js +1 -0
  49. package/dist/assets/{brace-fold.es-D_r4-J2g.js → brace-fold.es-CRJ6R1Jd.js} +1 -1
  50. package/dist/assets/bundle-avatar-CELq2peD.js +1 -0
  51. package/dist/assets/{chart-D7fTlbH5.js → chart-XLU84wBc.js} +1 -1
  52. package/dist/assets/{click-to-copy-BwIQhcuz.js → click-to-copy-Crhp_-Y4.js} +1 -1
  53. package/dist/assets/{closebrackets.es-BpVvbcYW.js → closebrackets.es-CG2CDdUo.js} +1 -1
  54. package/dist/assets/{codemirror.es-BvooWNLt.js → codemirror.es-C8dnT91E.js} +1 -1
  55. package/dist/assets/{comment.es-BiPY7IRp.js → comment.es-jAc-u026.js} +1 -1
  56. package/dist/assets/{config-navigation-eG4f_Oyq.js → config-navigation-DPgP8Sak.js} +5 -5
  57. package/dist/assets/{delete-confirm-I7gjtI2L.js → delete-confirm-lQkwnGTS.js} +1 -1
  58. package/dist/assets/{detail-BF4hjmdI.js → detail-U0KQ2egr.js} +3 -3
  59. package/dist/assets/{dialog.es-B2-FUZME.js → dialog.es-Dclyb7Pn.js} +1 -1
  60. package/dist/assets/{download-rpw9Qgoj.js → download-CQ8vxrab.js} +1 -1
  61. package/dist/assets/{foldgutter.es-8iFRTP0a.js → foldgutter.es-DkUp93ad.js} +1 -1
  62. package/dist/assets/getValidReactChildren-5uFkq4GS.js +1 -0
  63. package/dist/assets/{hint.es-CHvxg9mK.js → hint.es-BsuiAFA7.js} +1 -1
  64. package/dist/assets/{hint.es2-hI3iweAO.js → hint.es2-CkrTTZi4.js} +1 -1
  65. package/dist/assets/{iframe-BqS-rkNh.js → iframe-CVrBSWYD.js} +1 -1
  66. package/dist/assets/{index-iGKrAz05.js → index-5FtPkeAB.js} +3 -3
  67. package/dist/assets/{index-D5Rsk7dq.js → index-5SVf0tFY.js} +1 -1
  68. package/dist/assets/{index-CUmTKs9Z.js → index-B3Zt0_35.js} +10 -10
  69. package/dist/assets/{index-D-L4Ck2v.js → index-B8C4pOOu.js} +1 -1
  70. package/dist/assets/{index-CroucXQb.js → index-B9dsKJcE.js} +1 -1
  71. package/dist/assets/index-BHOFu69h.js +1 -0
  72. package/dist/assets/{index-C3DKd4Ro.js → index-BNjhH_d8.js} +1 -1
  73. package/dist/assets/{index-Binus2lr.js → index-BO1fRvMf.js} +1 -1
  74. package/dist/assets/index-BOuMxb3Q.js +268 -0
  75. package/dist/assets/{index-Dww51D0I.js → index-BPnSwJ1l.js} +1 -1
  76. package/dist/assets/index-BTZWTFSn.js +11 -0
  77. package/dist/assets/{index-Dn-_3zh6.js → index-BXNB-HAQ.js} +1 -1
  78. package/dist/assets/{index--nbglgQ3.js → index-B_IM460j.js} +1 -1
  79. package/dist/assets/{index-B46J_78A.js → index-BcX9aNO0.js} +1 -1
  80. package/dist/assets/{index-DkiVDcrH.js → index-BsBUGa5J.js} +1 -1
  81. package/dist/assets/{index-BqAzzrC8.js → index-Bxr0QU8m.js} +1 -1
  82. package/dist/assets/{index-CblMKkQZ.js → index-C-ESGRv-.js} +1 -1
  83. package/dist/assets/{index-BMAflILV.js → index-C2a0vC_a.js} +1 -1
  84. package/dist/assets/index-C9KBqEgO.js +21 -0
  85. package/dist/assets/{index-C1sxwK1q.js → index-CC1ndwks.js} +167 -167
  86. package/dist/assets/index-CC1qLncJ.js +344 -0
  87. package/dist/assets/{index-BkAFfbQ9.js → index-CF5rsCOW.js} +1 -1
  88. package/dist/assets/{index-CiOtSWYB.js → index-CRb7tyay.js} +1 -1
  89. package/dist/assets/{index-Ca4ojQR0.js → index-CXyn4xMF.js} +5 -5
  90. package/dist/assets/{index-BNcA--Hd.js → index-C_6P8rFc.js} +66 -35
  91. package/dist/assets/{index-BJ5g3x0B.js → index-CgdUe9yu.js} +1 -1
  92. package/dist/assets/index-Cgk3wbOm.js +54 -0
  93. package/dist/assets/{index-CpP8o0B-.js → index-CmhE_K0y.js} +1 -1
  94. package/dist/assets/{index-G-HOuVIA.js → index-CnrdD6WK.js} +1 -1
  95. package/dist/assets/{index-Dp_bcKBe.js → index-Cuo7-0Cq.js} +1 -1
  96. package/dist/assets/{index-BahC2Tvl.js → index-D1iFHNgi.js} +1 -1
  97. package/dist/assets/{index-BIBIrwyW.js → index-DS6F_SJ9.js} +1 -1
  98. package/dist/assets/{index-i7GCH6dr.js → index-DVV4MjHu.js} +1 -1
  99. package/dist/assets/{index-KlCiTQS2.js → index-DVdaomTJ.js} +3 -3
  100. package/dist/assets/{index-CKd5FqHo.js → index-DXsbagZE.js} +1 -1
  101. package/dist/assets/{index-D5dR4ANx.js → index-DYd4EkOT.js} +1 -1
  102. package/dist/assets/{index-DKQUFPxk.js → index-DYnnB-61.js} +1 -1
  103. package/dist/assets/{index-CzSKzhki.js → index-DujqUEqx.js} +2 -2
  104. package/dist/assets/{index-BAQzBJFH.js → index-DwxhJUlf.js} +3 -3
  105. package/dist/assets/{index-C_7vG059.js → index-DzxtBPCC.js} +1 -1
  106. package/dist/assets/{index-BOmHLMq9.js → index-HzScigWU.js} +1 -1
  107. package/dist/assets/{index-C8ojF8vN.js → index-m_K8eAfk.js} +1 -1
  108. package/dist/assets/{index-CD_6QFg_.js → index-xOV9jJH3.js} +1 -1
  109. package/dist/assets/{index-DHoU0zZM.js → index-yKeCR3QS.js} +7 -7
  110. package/dist/assets/{index-B03uYmVa.js → index-yzdWHDuH.js} +1 -1
  111. package/dist/assets/{index.es-DYaTMj-N.js → index.es-Cn8AWkE8.js} +1 -1
  112. package/dist/assets/{index.esm-Bm9YBLeo.js → index.esm-BTj_KCwg.js} +1 -1
  113. package/dist/assets/{info-addon.es-Do7YC0D2.js → info-addon.es-CLwqL8YZ.js} +1 -1
  114. package/dist/assets/{info.es-CFNCQt9o.js → info.es-CnFozSp1.js} +1 -1
  115. package/dist/assets/{install-from-url-BjHwxVqE.js → install-from-url-BARZDCTT.js} +1 -1
  116. package/dist/assets/{invitation-CeRy7vzg.js → invitation-BVEDeXPr.js} +1 -1
  117. package/dist/assets/{is-path-prefix-equal-CQJCYqAH.js → is-path-prefix-equal-Cbnwy2Yf.js} +1 -1
  118. package/dist/assets/{isEqual-BsT1dZPE.js → isEqual-BbNuqCAe.js} +1 -1
  119. package/dist/assets/{item-ERkcgOMO.js → item-BCeOssCF.js} +1 -1
  120. package/dist/assets/{javascript.es-CpC9TJXL.js → javascript.es-z17Y7cic.js} +1 -1
  121. package/dist/assets/{jump-to-line.es-CylECZ7R.js → jump-to-line.es-CG-VsgE6.js} +1 -1
  122. package/dist/assets/{jump.es-DLrluqHg.js → jump.es-CQ4ic2oQ.js} +1 -1
  123. package/dist/assets/{line-C_2Hrpy1.js → line-C1QR7BHZ.js} +3 -3
  124. package/dist/assets/{lint.es-BKML4shq.js → lint.es-D-MQT4TZ.js} +1 -1
  125. package/dist/assets/{lint.es2-BF1HKCYF.js → lint.es2-DXCGvGBZ.js} +1 -1
  126. package/dist/assets/{lint.es3-C2QSNF0z.js → lint.es3-g-aPmIS2.js} +1 -1
  127. package/dist/assets/{list-header-QjKUcFTw.js → list-header-C-NFaGBI.js} +1 -1
  128. package/dist/assets/{log-CJHqgb2_.js → log-T5nWDHZg.js} +1 -1
  129. package/dist/assets/{lottie-D3czc7v1.js → lottie-DR63dhlr.js} +1 -1
  130. package/dist/assets/{matchbrackets.es-e9aBYOv_.js → matchbrackets.es-BHV7ImE9.js} +1 -1
  131. package/dist/assets/{memory-CsXj8UaO.js → memory-C2Ggp1ds.js} +1 -1
  132. package/dist/assets/{mode.es-5cZhDtkZ.js → mode.es-DjMjtDNl.js} +1 -1
  133. package/dist/assets/{mode.es2-CodDnKLI.js → mode.es2-DTrAq6aA.js} +1 -1
  134. package/dist/assets/{mode.es3-BuILqhlX.js → mode.es3-CeaHK4Cx.js} +1 -1
  135. package/dist/assets/{onlineParser.es-C6-JEN2E.js → onlineParser.es-EXxvS9b3.js} +1 -1
  136. package/dist/assets/{overview-DAw_INYh.js → overview-B4FZNinL.js} +2 -2
  137. package/dist/assets/react-DCf5_sK9.js +379 -0
  138. package/dist/assets/{redux-JVkClYgC.js → redux-CBs4zzpF.js} +1 -1
  139. package/dist/assets/{runtime-W4J04CkM.js → runtime-OYXEkxpl.js} +1 -1
  140. package/dist/assets/{search.es-bB_x3JL4.js → search.es-BgquH9xr.js} +1 -1
  141. package/dist/assets/{searchcursor.es-DgL4C9GF.js → searchcursor.es-CQvA3zpZ.js} +1 -1
  142. package/dist/assets/service-C2bAs8-4.js +1 -0
  143. package/dist/assets/{shorten-label-9iEtol8i.js → shorten-label-u7BOpbFf.js} +1 -1
  144. package/dist/assets/{show-hint.es-CTIxfu4n.js → show-hint.es-DS02BUMX.js} +1 -1
  145. package/dist/assets/{slicedToArray-C-KIkXYs.js → slicedToArray-CXKCCuoW.js} +2 -2
  146. package/dist/assets/{spaces-BDlrJxSc.js → spaces-DAIyizkR.js} +1 -1
  147. package/dist/assets/{sublime.es-BIpvOaG_.js → sublime.es-CNkJDB7Y.js} +1 -1
  148. package/dist/assets/{switch-control-BiRMcVKp.js → switch-control-B17GyPSA.js} +1 -1
  149. package/dist/assets/{table-icons-Bx8jlz8p.js → table-icons-C9acqBAz.js} +2 -2
  150. package/dist/assets/{tag-BsLtzNgc.js → tag-CCXE4PlV.js} +1 -1
  151. package/dist/assets/{team-Ct35NqwR.js → team-BSlyvC6c.js} +1 -1
  152. package/dist/assets/{toUpper-DV-JI2EJ.js → toUpper-BVSXWMpU.js} +1 -1
  153. package/dist/assets/{traffic-BEKDCWfv.js → traffic-CQoQSkkE.js} +5 -5
  154. package/dist/assets/ua-parser-CxBhcPmn.js +1 -0
  155. package/dist/assets/{url-evaluation-Ctc4DSd9.js → url-evaluation-l10Af9J1.js} +1 -1
  156. package/dist/assets/{url-join-4YCGlq9R.js → url-join-Byro3u2f.js} +1 -1
  157. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-B1om2dOQ.js → use-blocklet-info-for-connect-did-spaces-1vbzgKN4.js} +1 -1
  158. package/dist/assets/{useLocalStorage-02uWRCTE.js → useLocalStorage-CBI6wbJu.js} +1 -1
  159. package/dist/assets/{util-Bl1tgqEu.js → util-BO7B0GFb.js} +1 -1
  160. package/dist/assets/{wait-container-CUarPEd7.js → wait-container-DNpXoa46.js} +1 -1
  161. package/dist/assets/{withStyles-mwdAF397.js → withStyles-CDKZ5MjH.js} +1 -1
  162. package/dist/assets/{wrap-locale-DDhOh8hH.js → wrap-locale-CjBWx_ua.js} +1 -1
  163. package/dist/index.html +1 -1
  164. package/dist/service-worker.js +1 -1
  165. package/package.json +1 -1
  166. package/dist/assets/DeleteOutline-Aff6fJia.js +0 -1
  167. package/dist/assets/api-Bo8RrpVh.js +0 -1
  168. package/dist/assets/blocklet-CtCpIFeQ.js +0 -1
  169. package/dist/assets/bundle-avatar-Ci6-oNkL.js +0 -1
  170. package/dist/assets/getValidReactChildren-9TX6zfai.js +0 -1
  171. package/dist/assets/index-B3KTzQCX.js +0 -21
  172. package/dist/assets/index-CX7wbZNb.js +0 -288
  173. package/dist/assets/index-CvBzQQ4d.js +0 -278
  174. package/dist/assets/index-Dv4oZdvT.js +0 -54
  175. package/dist/assets/index-PpzEIdrF.js +0 -1
  176. package/dist/assets/react-BzW-kb6J.js +0 -56
  177. package/dist/assets/resource-dialog-D78t25J3.js +0 -57
  178. package/dist/assets/service-UeJj__8r.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as l}from"./index-C1sxwK1q.js";var c={exports:{}};/*!
1
+ import{g as l}from"./index-CC1ndwks.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -0,0 +1 @@
1
+ import{P as s,j as t,B as i,gm as r}from"./index-CC1ndwks.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,4 +1,4 @@
1
- import{r as fe,j as P,q as Be,u as ze,aj as Gt,cs as Ve,M as Fe,n as be,ct as Wr,cu as Hr,cv as Kr,cw as Xr,cx as Yr,cy as me,cz as Zr,F as Wt,b as De,B as Jr,P as Qe,aw as Qr,z as Ht,cA as en,v as tn,cB as rn,ac as nn,av as wt,bn as Et,a1 as Pe,A as et,K as xt,ah as sn,Q as Me,V as qe,C as je,N as Kt,i as an,W as on,x as ln,y as Xt,ag as cn,cC as un,ae as fn,c4 as Yt,cD as Zt,aa as mn,aC as Ye,H as dn,ak as hn,al as pn,am as gn,cE as yn,an as vn,J as bn,ao as _n,ap as Ce,aq as wn,ar as En}from"./index-C1sxwK1q.js";import{L as Ue,P as Jt,A as xn,S as Rn,a as $n}from"./index-BNcA--Hd.js";import{u as jn,A as Sn,W as On,P as kn,D as Rt,L as $t,d as jt,a as St}from"./wait-container-CUarPEd7.js";import{C as Qt,d as In,A as An}from"./agreement-C6HTWVte.js";import{a as Ln}from"./api-Bo8RrpVh.js";import{i as Tn}from"./isEqual-BsT1dZPE.js";import{_ as Nn}from"./useLocalStorage-02uWRCTE.js";import{l as Ge}from"./index-Dp_bcKBe.js";import{p as Cn}from"./index-CD_6QFg_.js";import{s as Dn}from"./logo-BKA11TRi.js";import"./url-join-4YCGlq9R.js";import"./Skeleton-OnJKCtYu.js";import"./Close-BHCZ0Bw1.js";import"./lottie-D3czc7v1.js";import"./index-D-L4Ck2v.js";var st={};Object.defineProperty(st,"__esModule",{value:!0});var er=st.default=void 0;Pn(fe);var ue=P;function Pn(g){return g&&g.__esModule?g:{default:g}}function Ot(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function kt(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?Ot(Object(k),!0).forEach(function(A){Mn(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):Ot(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Mn(g,b,k){return b=Fn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function Fn(g){var b=qn(g,"string");return typeof b=="symbol"?b:String(b)}function qn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var at=function(b){return(0,ue.jsxs)("svg",kt(kt({},b),{},{children:[(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,ue.jsxs)("defs",{children:[(0,ue.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,ue.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};at.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};at.displayName="launcher-logo-notext";er=st.default=at;var it={};Object.defineProperty(it,"__esModule",{value:!0});var tr=it.default=void 0;Un(fe);var oe=P;function Un(g){return g&&g.__esModule?g:{default:g}}function It(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function At(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?It(Object(k),!0).forEach(function(A){Bn(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):It(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Bn(g,b,k){return b=zn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function zn(g){var b=Vn(g,"string");return typeof b=="symbol"?b:String(b)}function Vn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var ot=function(b){return(0,oe.jsxs)("svg",At(At({},b),{},{children:[(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,oe.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,oe.jsxs)("defs",{children:[(0,oe.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,oe.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};ot.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};ot.displayName="launcher-logo";tr=it.default=ot;function Gn(){const{t:g}=Be(),{info:b}=ze(),k=Gt(),A=decodeURIComponent(k.get("accessUrl")||""),{meta:I}=Ve();return P.jsx(Hn,{children:P.jsx("div",{className:"body",children:P.jsx(Ue,{variant:"success",title:Fe.getDisplayName({meta:I},!0),subTitle:g("launchBlocklet.installSuccess",{serverName:b.name}),footer:P.jsx(Wn,{href:A,rel:"noreferrer","data-cy":"open-blocklet",children:g("common.open")})})})})}const Wn=be.a`
1
+ import{r as fe,j as P,q as Be,u as ze,aj as Gt,cs as Ve,M as Fe,n as be,ct as Wr,cu as Hr,cv as Kr,cw as Xr,cx as Yr,cy as me,cz as Zr,F as Wt,b as De,B as Jr,P as Qe,aw as Qr,z as Ht,cA as en,v as tn,cB as rn,ac as nn,av as wt,bn as Et,a1 as Pe,A as et,K as xt,ah as sn,Q as Me,V as qe,C as je,N as Kt,i as an,W as on,x as ln,y as Xt,ag as cn,cC as un,ae as fn,c4 as Yt,cD as Zt,aa as mn,aC as Ye,H as dn,ak as hn,al as pn,am as gn,cE as yn,an as vn,J as bn,ao as _n,ap as Ce,aq as wn,ar as En}from"./index-CC1ndwks.js";import{L as Ue,P as Jt,A as xn,S as Rn,a as $n}from"./index-C_6P8rFc.js";import{u as jn,A as Sn,W as On,P as kn,D as Rt,L as $t,d as jt,a as St}from"./wait-container-DNpXoa46.js";import{C as Qt,d as In,A as An}from"./agreement-831LxBXw.js";import{a as Ln}from"./api-UR4kvn9E.js";import{i as Tn}from"./isEqual-BbNuqCAe.js";import{_ as Nn}from"./useLocalStorage-CBI6wbJu.js";import{l as Ge}from"./index-Cuo7-0Cq.js";import{p as Cn}from"./index-xOV9jJH3.js";import{s as Dn}from"./logo-BKA11TRi.js";import"./url-join-Byro3u2f.js";import"./Skeleton-Bq-LHi-2.js";import"./Close-C7JfjION.js";import"./lottie-DR63dhlr.js";import"./index-B8C4pOOu.js";var st={};Object.defineProperty(st,"__esModule",{value:!0});var er=st.default=void 0;Pn(fe);var ue=P;function Pn(g){return g&&g.__esModule?g:{default:g}}function Ot(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function kt(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?Ot(Object(k),!0).forEach(function(A){Mn(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):Ot(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Mn(g,b,k){return b=Fn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function Fn(g){var b=qn(g,"string");return typeof b=="symbol"?b:String(b)}function qn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var at=function(b){return(0,ue.jsxs)("svg",kt(kt({},b),{},{children:[(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,ue.jsxs)("defs",{children:[(0,ue.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,ue.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};at.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};at.displayName="launcher-logo-notext";er=st.default=at;var it={};Object.defineProperty(it,"__esModule",{value:!0});var tr=it.default=void 0;Un(fe);var oe=P;function Un(g){return g&&g.__esModule?g:{default:g}}function It(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function At(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?It(Object(k),!0).forEach(function(A){Bn(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):It(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Bn(g,b,k){return b=zn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function zn(g){var b=Vn(g,"string");return typeof b=="symbol"?b:String(b)}function Vn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var ot=function(b){return(0,oe.jsxs)("svg",At(At({},b),{},{children:[(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,oe.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,oe.jsxs)("defs",{children:[(0,oe.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,oe.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};ot.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};ot.displayName="launcher-logo";tr=it.default=ot;function Gn(){const{t:g}=Be(),{info:b}=ze(),k=Gt(),A=decodeURIComponent(k.get("accessUrl")||""),{meta:I}=Ve();return P.jsx(Hn,{children:P.jsx("div",{className:"body",children:P.jsx(Ue,{variant:"success",title:Fe.getDisplayName({meta:I},!0),subTitle:g("launchBlocklet.installSuccess",{serverName:b.name}),footer:P.jsx(Wn,{href:A,rel:"noreferrer","data-cy":"open-blocklet",children:g("common.open")})})})})}const Wn=be.a`
2
2
  display: block;
3
3
  height: 36px;
4
4
  color: ${g=>g.theme.palette.primary.main};
@@ -1 +1 @@
1
- import{z as l,bh as m,u as p,j as s,S as u}from"./index-C1sxwK1q.js";import{L as g,D as v}from"./download-rpw9Qgoj.js";import{F as f,S as h}from"./Select-Bmr7GD2T.js";import"./ButtonGroup-reI4zw37.js";import"./getValidReactChildren-9TX6zfai.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(h,{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{z as l,bh as m,u as p,j as s,S as u}from"./index-CC1ndwks.js";import{L as g,D as v}from"./download-CQ8vxrab.js";import{F as f,S as h}from"./Select-BFdUN7Gy.js";import"./ButtonGroup-By_ymyXi.js";import"./getValidReactChildren-5uFkq4GS.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(h,{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};
@@ -0,0 +1,268 @@
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-CC1ndwks.js";import{d as Ae}from"./ExpandMore-3RzpbVTz.js";import{S as Ne}from"./index-BTZWTFSn.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,4 +1,4 @@
1
- import{r,S as u,j as e,dN as p,dO as I,dP as M,dQ as O,P as o,dz as S,s as m,dR as b}from"./index-C1sxwK1q.js";import{d as E}from"./ExpandMore-D_XvdPjT.js";import{B as v}from"./ButtonGroup-reI4zw37.js";function d(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),P=Array.isArray(a)?a.map((n,z)=>r.isValidElement(n)?n:r.createElement(u,{...n,key:z})):a,k=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(E,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(I,{children:e.jsx(M,{onClickAway:B,children:e.jsx(O,{onClick:C,children:P})})})})]})}d.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};d.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:S,menuButtonProps:{}};d.Item=u;const A=m(v)`
1
+ import{r,S as u,j as e,dN as p,dO as I,dP as M,dQ as O,P as o,dz as S,s as m,dR as b}from"./index-CC1ndwks.js";import{d as E}from"./ExpandMore-3RzpbVTz.js";import{B as v}from"./ButtonGroup-By_ymyXi.js";function d(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),P=Array.isArray(a)?a.map((n,z)=>r.isValidElement(n)?n:r.createElement(u,{...n,key:z})):a,k=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(E,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(I,{children:e.jsx(M,{onClickAway:B,children:e.jsx(O,{onClick:C,children:P})})})})]})}d.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};d.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:S,menuButtonProps:{}};d.Item=u;const A=m(v)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -0,0 +1,11 @@
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-CC1ndwks.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};