@abtnode/webapp 1.16.54-beta-20251021-070951-25e3083c → 1.16.54-beta-20251023-041534-36eec6b9

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 (189) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-D4QCnIuj.js → AdapterDayjs-DoDgXHMR.js} +1 -1
  4. package/dist/assets/{Add-oTaGbrkV.js → Add-DfGYpxFm.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BE2KXAeo.js +1 -0
  6. package/dist/assets/{Autocomplete-BUuiK3c9.js → Autocomplete-Dtlywd8D.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-U8R6lbeq.js → Breadcrumbs-3LagNzk1.js} +1 -1
  8. package/dist/assets/{ButtonGroup-tq0Nh3v_.js → ButtonGroup-BzY0m5Bm.js} +1 -1
  9. package/dist/assets/{CSSTransition-BQVtCcwc.js → CSSTransition-Cdv6gm6d.js} +1 -1
  10. package/dist/assets/{CallMerge-nc7JkPt-.js → CallMerge-BfIBFsVo.js} +1 -1
  11. package/dist/assets/{CardContent-BkZ_t1Fl.js → CardContent-CUigBjwz.js} +1 -1
  12. package/dist/assets/{ChevronLeft-D3gv0InM.js → ChevronLeft-7piQtt1v.js} +1 -1
  13. package/dist/assets/{ChevronRight-C0CpxIjv.js → ChevronRight-2BVBXVf0.js} +1 -1
  14. package/dist/assets/{Clear-DkN0yn0u.js → Clear-CP7nsG13.js} +1 -1
  15. package/dist/assets/{DeleteOutline-BeCthgDf.js → DeleteOutline-DlBFn6aS.js} +1 -1
  16. package/dist/assets/{Done-BATa38FZ.js → Done-B-I4pjxK.js} +1 -1
  17. package/dist/assets/{Edit-CzPcXUlF.js → Edit-CNkvRjI_.js} +1 -1
  18. package/dist/assets/{ErrorOutline-DtWu5p92.js → ErrorOutline-CdRKVmEi.js} +1 -1
  19. package/dist/assets/{FilterList-B4eWQJqn.js → FilterList-NKEkk1oT.js} +1 -1
  20. package/dist/assets/{Google-CSkH7ggo.js → Google-D8fiFPG3.js} +1 -1
  21. package/dist/assets/{HelpOutline-Chl_xTWf.js → HelpOutline-CCtz2J76.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-B6FXB8s1.js → KeyboardArrowDown-O9xddtwY.js} +1 -1
  23. package/dist/assets/{Launch-C5rHIILC.js → Launch-CBy4H_ns.js} +1 -1
  24. package/dist/assets/{Link-BK8YXXF_.js → Link-A0zwVhyE.js} +1 -1
  25. package/dist/assets/{ListItemButton-BBMhGYtT.js → ListItemButton-CimFlkXr.js} +1 -1
  26. package/dist/assets/{ListSubheader-DHUtCPFm.js → ListSubheader-4mTsxUqV.js} +1 -1
  27. package/dist/assets/{LoadingButton-9eB2P6Ae.js → LoadingButton-CXBAZmF0.js} +1 -1
  28. package/dist/assets/{MoreVert-YtAOv_qU.js → MoreVert-Tbknuyky.js} +1 -1
  29. package/dist/assets/{OpenInNew-9fXNDjB1.js → OpenInNew-BgsMt30z.js} +1 -1
  30. package/dist/assets/{Refresh-BhIn23eh.js → Refresh-RtawK6HB.js} +1 -1
  31. package/dist/assets/{Search-B9XObekn.js → Search-CkTyydL2.js} +1 -1
  32. package/dist/assets/{Stepper-DJBQoATT.js → Stepper-CGwA1Drf.js} +1 -1
  33. package/dist/assets/{Switch-Z9woRMgA.js → Switch-CHNKBjDP.js} +1 -1
  34. package/dist/assets/{TableSearch-CaXXTSiF.js → TableSearch-DsG-D7tf.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-C69G_-ml.js → ToggleButtonGroup-Y2_jPOB-.js} +1 -1
  36. package/dist/assets/{UnfoldMore-B6RtVFPY.js → UnfoldMore-Bd2nR0lA.js} +1 -1
  37. package/dist/assets/{Verified-CBlk3phN.js → Verified-ho8KghEV.js} +1 -1
  38. package/dist/assets/{VerifiedUser-BNVR_4vC.js → VerifiedUser-DrFRZd1C.js} +1 -1
  39. package/dist/assets/{ViewList-DluRK-ZS.js → ViewList-DbjqIU1O.js} +1 -1
  40. package/dist/assets/{_createAggregator-fs1BCiws.js → _createAggregator-BHCDPpv-.js} +1 -1
  41. package/dist/assets/{actions-h8RyMg_C.js → actions-CsFeGL45.js} +1 -1
  42. package/dist/assets/{actions-58eoeFLs.js → actions-TPa_VwXP.js} +1 -1
  43. package/dist/assets/{agreement-Ci4HozUa.js → agreement-Dlp96kBp.js} +1 -1
  44. package/dist/assets/api-Bq0NcWbx.js +1 -0
  45. package/dist/assets/{appearance-BD1QGImy.js → appearance-DQwf4ian.js} +1 -1
  46. package/dist/assets/{audit-logs-8_e0A3IE.js → audit-logs-BMOOg3g1.js} +1 -1
  47. package/dist/assets/{base-chart-Clhj_sK4.js → base-chart-CqKRTQrG.js} +1 -1
  48. package/dist/assets/{blocklet-Dvyh8Jp4.js → blocklet-DW5VLujk.js} +1 -1
  49. package/dist/assets/chain-kIP7iJkD.js +6 -0
  50. package/dist/assets/{click-to-copy-iYXC5-cD.js → click-to-copy-BwGJ4fhm.js} +1 -1
  51. package/dist/assets/cloneDeep-CvS_U9Wv.js +1 -0
  52. package/dist/assets/{collapse-DulbZhAc.js → collapse-CceVALLf.js} +1 -1
  53. package/dist/assets/{config-navigation-CsntHBE3.js → config-navigation-D-cfDoaB.js} +3 -3
  54. package/dist/assets/{connect-to-wJPAZmlO.js → connect-to-DBj3lX3G.js} +1 -1
  55. package/dist/assets/{cssMode-BVlDGH_I.js → cssMode-BNU330DU.js} +1 -1
  56. package/dist/assets/{delete-confirm-CnyGQRfQ.js → delete-confirm-DMlJeTQr.js} +1 -1
  57. package/dist/assets/{depsEqual-BiEXsNqn.js → depsEqual-uv00espS.js} +1 -1
  58. package/dist/assets/{detail-BigelZ3g.js → detail-BzFT4sBf.js} +3 -3
  59. package/dist/assets/{domains-CTufYYmh.js → domains-ByAcLHdC.js} +2 -2
  60. package/dist/assets/{download-DkusPKGH.js → download-C4q8sxrx.js} +1 -1
  61. package/dist/assets/{edit.svg-hD876CgN.js → edit.svg-wrYlM-MO.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-CM3rWGOI.js +1 -0
  63. package/dist/assets/engine-Cf3wF9WT.js +1 -0
  64. package/dist/assets/{freemarker2-CxTMoB8Q.js → freemarker2-DhDpT_dA.js} +1 -1
  65. package/dist/assets/{get-safe-url-IgmCyB0M.js → get-safe-url-rPMK8qtK.js} +1 -1
  66. package/dist/assets/getValidReactChildren-DYIY0OXY.js +1 -0
  67. package/dist/assets/{graphqlMode-8q4l0bIb.js → graphqlMode-CE3ipMKN.js} +2 -2
  68. package/dist/assets/{handlebars-0wBSr_ad.js → handlebars-B_kt77Bu.js} +1 -1
  69. package/dist/assets/{html-4TvmEV0M.js → html-MFA8VjMO.js} +1 -1
  70. package/dist/assets/{html-title-tKNU_Rtx.js → html-title-Dn6dcUNY.js} +1 -1
  71. package/dist/assets/{htmlMode-B6CaFTU5.js → htmlMode-3INTHamp.js} +1 -1
  72. package/dist/assets/{iframe-BBTvhvam.js → iframe-CP9URr2M.js} +1 -1
  73. package/dist/assets/{index-C7j9pOMM.js → index-0LeCpAut.js} +2 -2
  74. package/dist/assets/{index-DDNKwY4t.js → index-3JZF7x-6.js} +1 -1
  75. package/dist/assets/{index-DPyAwNR3.js → index-7q4yz-Nt.js} +1 -1
  76. package/dist/assets/{index-CufHUwTa.js → index-B7EGRRWe.js} +1 -1
  77. package/dist/assets/{index-CTkuAIiW.js → index-BAwZIZX4.js} +1 -1
  78. package/dist/assets/{index-CIIax0-r.js → index-BFyKBu2e.js} +1 -1
  79. package/dist/assets/{index-sfXJAiE3.js → index-BJg_xWAZ.js} +1 -1
  80. package/dist/assets/{index-RG4mqpGz.js → index-BONaQFEH.js} +1 -1
  81. package/dist/assets/{index-a-ikX8qX.js → index-BP_3yzJi.js} +4 -4
  82. package/dist/assets/{index-BoS4dIYT.js → index-BcYrhF4f.js} +6 -6
  83. package/dist/assets/{index-D6IcRMv4.js → index-BdPhs6R9.js} +1 -1
  84. package/dist/assets/{index-DpoRb2a8.js → index-BhwagQNv.js} +1 -1
  85. package/dist/assets/{index-C7T0ILpD.js → index-Bt-ib3_l.js} +1 -1
  86. package/dist/assets/{index-lV0fy8B1.js → index-BvN66Cbx.js} +2 -2
  87. package/dist/assets/{index-DCqG9foU.js → index-BzODLXHJ.js} +1 -1
  88. package/dist/assets/{index-CE6VLS0y.js → index-C0lI_DPl.js} +1 -1
  89. package/dist/assets/{index-BqByO9CC.js → index-CKGzmYFg.js} +1 -1
  90. package/dist/assets/{index-nCWPxDgy.js → index-CR_y7rX_.js} +1 -1
  91. package/dist/assets/{index-DH8zBpZk.js → index-CRvsFdDf.js} +1 -1
  92. package/dist/assets/index-CUQPTjpq.js +1 -0
  93. package/dist/assets/{index-DfQRgiki.js → index-CUng-9oZ.js} +1 -1
  94. package/dist/assets/{index-DAdo2_rS.js → index-CVPuZV4b.js} +1 -1
  95. package/dist/assets/{index-U9rn9WsE.js → index-Cbh1-5ji.js} +1 -1
  96. package/dist/assets/{index-BInXlR12.js → index-Cky_bh0F.js} +1 -1
  97. package/dist/assets/{index-Cd9nAu70.js → index-CvC8OAM-.js} +3 -3
  98. package/dist/assets/{index-BGERz_iK.js → index-Cz-seQMg.js} +3 -3
  99. package/dist/assets/{index-CQ0SkU_t.js → index-D1rIiJm2.js} +1 -1
  100. package/dist/assets/{index-D7deg2jT.js → index-D3Pr7ccE.js} +1 -1
  101. package/dist/assets/{index-COIC4mfj.js → index-D7zK_I5F.js} +1 -1
  102. package/dist/assets/{index-DiVTtrCb.js → index-DH9hnI-J.js} +1 -1
  103. package/dist/assets/{index-CWPTsxSF.js → index-DM_bbST7.js} +1 -1
  104. package/dist/assets/{index-B-QQBi2O.js → index-DXHjDatx.js} +1 -1
  105. package/dist/assets/{index-BjDvFi9X.js → index-DlQfv-E4.js} +1 -1
  106. package/dist/assets/{index-DHbSUSDr.js → index-DnyoOzp4.js} +1 -1
  107. package/dist/assets/{index-DmcjF6Nx.js → index-DsDyAukI.js} +1 -1
  108. package/dist/assets/{index-CTXI0_ys.js → index-Dt6lwk7a.js} +1 -1
  109. package/dist/assets/{index-CJyE0PHi.js → index-Dxb5jOto.js} +1 -1
  110. package/dist/assets/{index-CA1qwmXl.js → index-IVA7I5Uv.js} +3 -3
  111. package/dist/assets/{index-DA3_QcTQ.js → index-IdWRqVWg.js} +1 -1
  112. package/dist/assets/{index-C0Hpfcis.js → index-OtK6tiSH.js} +1 -1
  113. package/dist/assets/{index-DvieCNmb.js → index-RjEheLcF.js} +1 -1
  114. package/dist/assets/{index-BZcXgg1f.js → index-Slk1_oRp.js} +1 -1
  115. package/dist/assets/{index-s02a35t3.js → index-VCVLAM4n.js} +1 -1
  116. package/dist/assets/{index-AN9pUzEg.js → index-c79u0RAC.js} +1 -1
  117. package/dist/assets/{index-B7f4x3N4.js → index-h0c8XqP-.js} +1 -1
  118. package/dist/assets/{index-DiBieq3O.js → index-jwJtLzrh.js} +1 -1
  119. package/dist/assets/{index-DUBGp7xd.js → index-sTN9A-7M.js} +9 -9
  120. package/dist/assets/{index.esm-C68-NEl-.js → index.esm-nOtJO4v_.js} +1 -1
  121. package/dist/assets/{install-from-url-BdJ2Ss57.js → install-from-url-ChcqK5kr.js} +1 -1
  122. package/dist/assets/{invitation-Bx5fJbWJ.js → invitation-Bu-Z_6a9.js} +1 -1
  123. package/dist/assets/{is-path-prefix-equal-BOPF5jBD.js → is-path-prefix-equal-DO1WqLCe.js} +1 -1
  124. package/dist/assets/{item-C7h8_efZ.js → item-tMdwJYEX.js} +1 -1
  125. package/dist/assets/{javascript-Bys_gMbC.js → javascript-0F8wTjy6.js} +1 -1
  126. package/dist/assets/{jsonMode-TWK13NFx.js → jsonMode-DnOdNinu.js} +1 -1
  127. package/dist/assets/{liquid-BfUcrzzt.js → liquid-DXMTfg26.js} +1 -1
  128. package/dist/assets/{list-header-SRVW6COA.js → list-header-DOB8RJl8.js} +1 -1
  129. package/dist/assets/{lock.svg-JAXJuW8m.js → lock.svg-B-77fsB7.js} +1 -1
  130. package/dist/assets/{log-Dc5jAOFj.js → log-Bv_-WyAZ.js} +1 -1
  131. package/dist/assets/{lottie-react.esm-Da7iACIs.js → lottie-react.esm-Df5SllI5.js} +1 -1
  132. package/dist/assets/{mdx-CBdpRCQl.js → mdx-B0UBtFGS.js} +1 -1
  133. package/dist/assets/{memory-BC8bQEU5.js → memory-_w0_DaHV.js} +1 -1
  134. package/dist/assets/{metric-BjM4KnKv.js → metric-Bmy15s_c.js} +1 -1
  135. package/dist/assets/omit-ChahjCkQ.js +1 -0
  136. package/dist/assets/{overview-BqvbUoW5.js → overview-A9U1SaWc.js} +1 -1
  137. package/dist/assets/{permission-RfVjqk52.js → permission-Daz7Q6e4.js} +1 -1
  138. package/dist/assets/{preference-DjJsrPrW.js → preference-CXc-tWvo.js} +3 -3
  139. package/dist/assets/{python-BF0eVRwz.js → python-CVlniwmc.js} +1 -1
  140. package/dist/assets/{raf-schd.esm-Ptj886XJ.js → raf-schd.esm-BHYKStQM.js} +1 -1
  141. package/dist/assets/{razor-Zdl-UA57.js → razor-BvgtPz28.js} +1 -1
  142. package/dist/assets/{rotate-session-key-CLwZduLH.js → rotate-session-key-95kTDLbh.js} +1 -1
  143. package/dist/assets/{runtime-B6LxwjeF.js → runtime-DCDcfBKj.js} +1 -1
  144. package/dist/assets/schema-Ce2kTZV-.js +1 -0
  145. package/dist/assets/sdk-sMiVo-LP.js +1 -0
  146. package/dist/assets/{service-_k6Howae.js → service-CvvfcHX3.js} +1 -1
  147. package/dist/assets/{shorten-label-lx5QxF6Y.js → shorten-label-DdSdx-kY.js} +1 -1
  148. package/dist/assets/{simple-select-CfPqRV2d.js → simple-select-CBfqJjon.js} +1 -1
  149. package/dist/assets/{spaces-DoPkdMaN.js → spaces-9Mws56ee.js} +1 -1
  150. package/dist/assets/{status-BLTYBN-T.js → status-B_9EbXwu.js} +1 -1
  151. package/dist/assets/{status-B8DVt36w.js → status-CF62mz8d.js} +1 -1
  152. package/dist/assets/{switch-control-BH-qYrQR.js → switch-control-GGFX9bQ4.js} +1 -1
  153. package/dist/assets/{table-icons-IGHlCudU.js → table-icons-D19KeLpP.js} +1 -1
  154. package/dist/assets/{team-B-Cs8lcZ.js → team-DVKyat-2.js} +1 -1
  155. package/dist/assets/{toLower-C4ucU5aY.js → toLower-ATmvd83d.js} +1 -1
  156. package/dist/assets/toUpper-AiL35hdk.js +1 -0
  157. package/dist/assets/{traffic-CaIE-uiD.js → traffic-BJtzqcE6.js} +1 -1
  158. package/dist/assets/{tsMode-C1CvS7zM.js → tsMode-U9gTJfOA.js} +1 -1
  159. package/dist/assets/{typescript-D0zSwpFT.js → typescript-c1TjrCEO.js} +1 -1
  160. package/dist/assets/{url-evaluation-BAHeyVsk.js → url-evaluation-jOAY9l7I.js} +1 -1
  161. package/dist/assets/{url-join-C2Slolwi.js → url-join-DFG6aoVo.js} +1 -1
  162. package/dist/assets/{use-mobile-BjFvqb5i.js → use-mobile-BFMVMqXP.js} +1 -1
  163. package/dist/assets/{use-mobile-Bo1g1SxW.js → use-mobile-C9gI1Rjm.js} +1 -1
  164. package/dist/assets/{useAsync-C37KCo_x.js → useAsync-SD5NK8ik.js} +1 -1
  165. package/dist/assets/{useAsyncRetry-BcsGJECm.js → useAsyncRetry-ByND6eTj.js} +1 -1
  166. package/dist/assets/{useLocalStorage-BZqfD-Zc.js → useLocalStorage-BtMOuUTW.js} +1 -1
  167. package/dist/assets/{useThemeProps-zGNtf5gr.js → useThemeProps-YD2ALDiT.js} +1 -1
  168. package/dist/assets/{util-Cj4tmS79.js → util-2feHGKTM.js} +1 -1
  169. package/dist/assets/{wait-container-BevRGd6W.js → wait-container-DK9LYt7i.js} +1 -1
  170. package/dist/assets/{without-wallet-qR-m0Hnu.js → without-wallet-C5a89W9O.js} +2 -2
  171. package/dist/assets/wrap-locale-BSWFXfCh.js +1 -0
  172. package/dist/assets/{xml-DqMj09tj.js → xml-DMXc991B.js} +1 -1
  173. package/dist/assets/{yaml-BcpQktZM.js → yaml-CDSGSg25.js} +1 -1
  174. package/dist/index.html +1 -1
  175. package/dist/service-worker.js +1 -1
  176. package/package.json +1 -1
  177. package/dist/assets/ArrowDropDown-CcrV0tiH.js +0 -1
  178. package/dist/assets/api-CRk4bs4H.js +0 -1
  179. package/dist/assets/chain-B6To8QFu.js +0 -6
  180. package/dist/assets/cloneDeep-DkPlIKHp.js +0 -1
  181. package/dist/assets/emotion-cache.browser.esm-B6zIYIHc.js +0 -1
  182. package/dist/assets/engine-3MKESjP-.js +0 -1
  183. package/dist/assets/getValidReactChildren-CLYm2ELr.js +0 -1
  184. package/dist/assets/index-8h4vHVX5.js +0 -1
  185. package/dist/assets/omit-Cn3-c14y.js +0 -1
  186. package/dist/assets/schema-DpNd-Zov.js +0 -1
  187. package/dist/assets/sdk-B8yMOC2O.js +0 -1
  188. package/dist/assets/toUpper-B1IhHQhu.js +0 -1
  189. package/dist/assets/wrap-locale-0qkKZCSZ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as I,fI as al,c1 as Oo,fJ as ll,fs as _o,fK as cl,cS as Mo,aF as ur,j as a,fL as ul,fM as fl,cs as Tt,fN as or,ex as Qe,fO as Xs,fP as dl,fQ as pl,fR as ml,fS as hl,fT as gl,fU as Qs,fV as bl,fW as eo,fX as yl,fY as xl,fZ as vl,f_ as wl,ey as to,f$ as Js,ez as Cl,cF as qn,eA as jl,dC as Sl,g0 as Tl,g1 as El,V as Ee,bn as Fe,aP as ut,g2 as ei,H as Me,X as qe,o as b,f as ro,eM as ti,f3 as ri,n as xt,K as q,bU as kl,dJ as Pl,bv as Il,au as ft,g3 as ni,S as Sr,bk as Tr,g4 as oi,a_ as Rl,$ as Je,t as lt,b1 as Dl,dG as $e,aU as Nt,E as no,fc as Al,g5 as Ol,g6 as _l,g7 as Ml,D as Lr,T as ke,bg as oo,a3 as rr,g8 as Ll,U as St,bX as Vt,bY as zt,cg as si,dM as tt,eY as ae,b_ as Nl,b8 as _e,da as Er,d4 as ii,b$ as dt,c0 as Rt,Q as Pt,dI as ai,d7 as Bl,g9 as Nr,ga as li,bz as it,bf as Ue,O as sr,bp as Fl,P as $n,as as ci,dE as ql,gb as kr,gc as $l,at as ir,v as Ve,C as bt,gd as Ul,h as Un,aW as Vl,w as zl,x as Wl,s as Ke,p as fr,ac as dr,bA as Ft,ge as Kl,dD as Hl,dk as Yl,aH as gt,ay as yt,dv as Gl,gf as Zl,eB as Xl,gg as ui,gh as Pr,gi as Ql,dF as ar,b as Et,W as so,dH as Jl,cr as fi,z as ec,br as io,bs as di,bt as ao,dm as hr,aD as tc,fH as pi,N as lr,aS as rc,gj as mi,aE as nc,a8 as oc,gk as sc,cW as hi,gl as ic,bw as Lo,y as ac,gm as lc,bC as cc,R as uc,M as fc}from"./index-a-ikX8qX.js";import{A as qt}from"./Add-oTaGbrkV.js";import{V as dc}from"./ViewList-DluRK-ZS.js";import{c as pc,H as lo,g as mc}from"./index-BZcXgg1f.js";import{v as No}from"./index-RG4mqpGz.js";import{u as He}from"./team-B-Cs8lcZ.js";import{u as gi}from"./blocklet-Dvyh8Jp4.js";import{S as bi}from"./Search-B9XObekn.js";import{y as Br}from"./index-nCWPxDgy.js";import{u as hc,C as Zt}from"./index.esm-C68-NEl-.js";import{S as gc}from"./Google-CSkH7ggo.js";import{A as bc,a as gr}from"./Autocomplete-BUuiK3c9.js";import{U as yc}from"./UnfoldMore-B6RtVFPY.js";import{P as It}from"./permission-RfVjqk52.js";import{C as Fr}from"./click-to-copy-iYXC5-cD.js";import{s as vt,g as xc,S as vc,u as mt,a as yi,b as pr,c as xi,d as qr,e as vi,f as co,P as wi,D as Ci,h as Ir,M as tr,i as ji,j as Bo,k as nr,v as wc,l as Cc,m as Fo,n as jc,o as Sc,p as Tc,q as Ec,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Ic,T as Rc,B as uo,E as Dc,F as Ac,G as Oc,H as _c,I as Mc,J as Lc,K as Nc,L as br,N as Bt,O as Si,Q as Bc,V as Vn,R as Ti,U as Fc,W as Uo,X as qc,Y as $c,Z as Uc,_ as Vc,$ as zc,a0 as Wc}from"./AdapterDayjs-D4QCnIuj.js";import{u as rt}from"./useThemeProps-zGNtf5gr.js";import{a as Vo,b as Kc,t as Hc,T as Yc}from"./html-title-tKNU_Rtx.js";import{v as Ye}from"./index-DDNKwY4t.js";import{V as Gc}from"./Verified-CBlk3phN.js";import{D as Zc}from"./DeleteOutline-BeCthgDf.js";import{E as zo}from"./ErrorOutline-DtWu5p92.js";import{N as Xc}from"./index-CIIax0-r.js";import{R as Ei,a as jr,D as Qc}from"./url-evaluation-BAHeyVsk.js";import{b as zn}from"./sdk-B8yMOC2O.js";import{u as Jc}from"./index-DvieCNmb.js";import{u as ki}from"./use-mobile-Bo1g1SxW.js";import{A as eu}from"./actions-h8RyMg_C.js";import{S as tu}from"./shorten-label-lx5QxF6Y.js";import{U as Yr}from"./ua-parser-DP5omx3I.js";const ru=pc(I.useLayoutEffect);var Wo={},Ko;function nu(){return Ko||(Ko=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,x=e(p);x;)p=x.ownerDocument,x=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=j(d.rootBounds),this.boundingClientRect=j(d.boundingClientRect),this.intersectionRect=j(d.intersectionRect||C()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,x=p.width*p.height,T=this.intersectionRect,w=T.width*T.height;x?this.intersectionRatio=Number((w/x).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var x=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(x.root&&x.root.nodeType!=1&&x.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(x.rootMargin),this.thresholds=this._initThresholds(x.threshold),this.root=x.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=C():o=S(d,p),r.forEach(function(x){x._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(x){return x.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(x,T,w){if(typeof x!="number"||isNaN(x)||x<0||x>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return x!==w[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",x=p.split(/\s+/).map(function(T){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return x[1]=x[1]||x[0],x[2]=x[2]||x[0],x[3]=x[3]||x[1],x},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var x=this._checkForIntersections,T=null,w=null;this.POLL_INTERVAL?T=p.setInterval(x,this.POLL_INTERVAL):(u(p,"resize",x,!0),u(d,"scroll",x,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(w=new p.MutationObserver(x),w.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",x,!0)),f(d,"scroll",x,!0),w&&w.disconnect()});var k=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=k){var E=e(d);E&&this._monitorIntersections(E.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var x=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var D=E.element.ownerDocument;if(D==d)return!0;for(;D&&D!=x;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var w=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),w(),d!=x){var k=e(d);k&&this._unmonitorIntersections(k.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():C();this._observationTargets.forEach(function(x){var T=x.element,w=v(T),k=this._rootContainsTarget(T),E=x.entry,D=d&&k&&this._computeTargetAndRootIntersection(T,w,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=C();var B=x.entry=new c({time:l(),target:T,boundingClientRect:w,rootBounds:N,intersectionRect:D});E?d&&k?this._hasCrossedThreshold(E,B)&&this._queuedEntries.push(B):E&&E.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,x){if(window.getComputedStyle(d).display!="none"){for(var T=p,w=h(d),k=!1;!k&&w;){var E=null,D=w.nodeType==1?window.getComputedStyle(w):{};if(D.display=="none")return null;if(w==this.root||w.nodeType==9)if(k=!0,w==this.root||w==t)n&&!this.root?!o||o.width==0&&o.height==0?(w=null,E=null,T=null):E=o:E=x;else{var N=h(w),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,x);B&&W?(w=N,E=S(B,W)):(w=null,T=null)}else{var oe=w.ownerDocument;w!=oe.body&&w!=oe.documentElement&&D.overflow!="visible"&&(E=v(w))}if(E&&(T=y(E,T)),!T)break;w=w&&h(w)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!m(this.root))d=v(this.root);else{var p=m(this.root)?this.root:t,x=p.documentElement,T=p.body;d={top:0,left:0,right:x.clientWidth||T.clientWidth,width:x.clientWidth||T.clientWidth,bottom:x.clientHeight||T.clientHeight,height:x.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,w){return T.unit=="px"?T.value:T.value*(w%2?d.width:d.height)/100}),x={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return x.width=x.right-x.left,x.height=x.bottom-x.top,x},s.prototype._hasCrossedThreshold=function(d,p){var x=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(x!==T)for(var w=0;w<this.thresholds.length;w++){var k=this.thresholds[w];if(k==x||k==T||k<x!=k<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return g(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function i(d,p){var x=null;return function(){x||(x=setTimeout(function(){d(),x=null},p))}}function u(d,p,x,T){typeof d.addEventListener=="function"?d.addEventListener(p,x,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,x)}function f(d,p,x,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,x,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,x)}function y(d,p){var x=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),w=Math.max(d.left,p.left),k=Math.min(d.right,p.right),E=k-w,D=T-x;return E>=0&&D>=0&&{top:x,bottom:T,left:w,right:k,width:E,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):C()}function C(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function S(d,p){var x=p.top-d.top,T=p.left-d.left;return{top:x,left:T,height:p.height,width:p.width,bottom:x+p.height,right:T+p.width}}function g(d,p){for(var x=p;x;){if(x==d)return!0;x=h(x)}return!1}function h(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function m(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Wo}nu();function ou(e,t){var r={},n=r.callback,o=al(r,["callback"]),c=Oo(I.useState(),2),s=c[0],l=c[1],i=Oo(I.useState(),2),u=i[0],f=i[1];return ll(function(){var y=Array.isArray(e)?e:[e],v=y.map(function(j){return _o(j)}).filter(Boolean);if(v.length){var C=new IntersectionObserver(function(j){var S,g;try{for(var h=cl(j),m=h.next();!m.done;m=h.next()){var d=m.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){S={error:p}}finally{try{m&&!m.done&&(g=h.return)&&g.call(h)}finally{if(S)throw S.error}}},Mo(Mo({},o),{root:_o(void 0)}));return v.forEach(function(j){return C.observe(j)}),function(){C.disconnect()}}},[void 0,void 0,n],e),[s,u]}const su=ur(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),iu=ur(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),$r=ur([a.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),a.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),au=ur(a.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),lu=ur(a.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),I.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ii=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ri=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),cu=e=>I.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("g",{clipPath:"url(#clip0)"},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),I.createElement("defs",null,I.createElement("clipPath",{id:"clip0"},I.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Di=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Gr={},Zr,Ho;function uu(){return Ho||(Ho=1,Zr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Zr}var Xr,Yo;function fu(){if(Yo)return Xr;Yo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var i=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],i=1;i<l.length;i++)s=n(l,i).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{l[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(l[i[0]]=u)}i=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),y=0;y<f.length;y++){var v=f[y];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Xr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Xr}var Qr,Go;function du(){return Go||(Go=1,Qr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),Jr}var Xo;function mu(){return Xo||(Xo=1,function(e){const t=uu(),r=fu(),n=du(),o=pu(),c=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return m=>(d,p)=>{const x=d.length;return p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[",x,"]"].join("")]:[...d,[u(m,h),"[",u(x,h),"]=",u(p,h)].join("")]};case"bracket":return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[]"].join("")]:[...d,[u(m,h),"[]=",u(p,h)].join("")];case"comma":case"separator":return m=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(m,h),"=",u(p,h)].join("")]:[[d,u(p,h)].join(h.arrayFormatSeparator)];default:return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,u(m,h)]:[...d,[u(m,h),"=",u(p,h)].join("")]}}function l(h){let m;switch(h.arrayFormat){case"index":return(d,p,x)=>{if(m=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!m){x[d]=p;return}x[d]===void 0&&(x[d]={}),x[d][m[1]]=p};case"bracket":return(d,p,x)=>{if(m=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!m){x[d]=p;return}if(x[d]===void 0){x[d]=[p];return}x[d]=[].concat(x[d],p)};case"comma":case"separator":return(d,p,x)=>{const T=typeof p=="string"&&p.includes(h.arrayFormatSeparator),w=typeof p=="string"&&!T&&f(p,h).includes(h.arrayFormatSeparator);p=w?f(p,h):p;const k=T||w?p.split(h.arrayFormatSeparator).map(E=>f(E,h)):p===null?p:f(p,h);x[d]=k};default:return(d,p,x)=>{if(x[d]===void 0){x[d]=p;return}x[d]=[].concat(x[d],p)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,m){return m.encode?m.strict?t(h):encodeURIComponent(h):h}function f(h,m){return m.decode?r(h):h}function y(h){return Array.isArray(h)?h.sort():typeof h=="object"?y(Object.keys(h)).sort((m,d)=>Number(m)-Number(d)).map(m=>h[m]):h}function v(h){const m=h.indexOf("#");return m!==-1&&(h=h.slice(0,m)),h}function C(h){let m="";const d=h.indexOf("#");return d!==-1&&(m=h.slice(d)),m}function j(h){h=v(h);const m=h.indexOf("?");return m===-1?"":h.slice(m+1)}function S(h,m){return m.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):m.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function g(h,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),i(m.arrayFormatSeparator);const d=l(m),p=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return p;for(const x of h.split("&")){if(x==="")continue;let[T,w]=n(m.decode?x.replace(/\+/g," "):x,"=");w=w===void 0?null:["comma","separator"].includes(m.arrayFormat)?w:f(w,m),d(f(T,m),w,p)}for(const x of Object.keys(p)){const T=p[x];if(typeof T=="object"&&T!==null)for(const w of Object.keys(T))T[w]=S(T[w],m);else p[x]=S(T,m)}return m.sort===!1?p:(m.sort===!0?Object.keys(p).sort():Object.keys(p).sort(m.sort)).reduce((x,T)=>{const w=p[T];return w&&typeof w=="object"&&!Array.isArray(w)?x[T]=y(w):x[T]=w,x},Object.create(null))}e.extract=j,e.parse=g,e.stringify=(h,m)=>{if(!h)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),i(m.arrayFormatSeparator);const d=w=>m.skipNull&&c(h[w])||m.skipEmptyString&&h[w]==="",p=s(m),x={};for(const w of Object.keys(h))d(w)||(x[w]=h[w]);const T=Object.keys(x);return m.sort!==!1&&T.sort(m.sort),T.map(w=>{const k=h[w];return k===void 0?"":k===null?u(w,m):Array.isArray(k)?k.reduce(p(w),[]).join("&"):u(w,m)+"="+u(k,m)}).filter(w=>w.length>0).join("&")},e.parseUrl=(h,m)=>{m=Object.assign({decode:!0},m);const[d,p]=n(h,"#");return Object.assign({url:d.split("?")[0]||"",query:g(j(h),m)},m&&m.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,m)}:{})},e.stringifyUrl=(h,m)=>{m=Object.assign({encode:!0,strict:!0},m);const d=v(h.url).split("?")[0]||"",p=e.extract(h.url),x=e.parse(p,{sort:!1}),T=Object.assign(x,h.query);let w=e.stringify(T,m);w&&(w=`?${w}`);let k=C(h.url);return h.fragmentIdentifier&&(k=`#${u(h.fragmentIdentifier,m)}`),`${d}${w}${k}`},e.pick=(h,m,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:x,fragmentIdentifier:T}=e.parseUrl(h,d);return e.stringifyUrl({url:p,query:o(x,m),fragmentIdentifier:T},d)},e.exclude=(h,m,d)=>{const p=Array.isArray(m)?x=>!m.includes(x):(x,T)=>!m(x,T);return e.pick(h,p,d)}}(Gr)),Gr}var en=mu();const Xt=ul,hu={parseNumbers:!1,parseBooleans:!1},gu={skipNull:!1,skipEmptyString:!1},bu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},hu),c),i=Object.assign(Object.assign({},gu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),y=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=fl(),C=I.useRef(typeof e=="function"?e():e||{}),j=I.useMemo(()=>en.parse(u.search,l),[u.search]),S=I.useMemo(()=>Object.assign(Object.assign({},C.current),j),[j]);return[S,Tt(h=>{const m=typeof h=="function"?h(S):h;v(),f&&f[o]({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},u.state),y&&y({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},tn={exports:{}},rn={},Qo;function Ai(){if(Qo)return rn;Qo=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(m)}function t(m,d,p){return Object.defineProperty(m,"prototype",{writable:!1}),m}function r(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function n(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),d&&o(m,d)}function o(m,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},o(m,d)}function c(m){var d=i();return function(){var x=u(m),T;if(d){var w=u(this).constructor;T=Reflect.construct(x,arguments,w)}else T=x.apply(this,arguments);return s(this,T)}}function s(m,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(m)}function l(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(m)}var f={},y,v;function C(m,d,p){p||(p=Error);function x(w,k,E){return typeof d=="string"?d:d(w,k,E)}var T=function(w){n(E,w);var k=c(E);function E(D,N,B){var W;return r(this,E),W=k.call(this,x(D,N,B)),W.code=m,W}return t(E)}(p);f[m]=T}function j(m,d){if(Array.isArray(m)){var p=m.length;return m=m.map(function(x){return String(x)}),p>2?"one of ".concat(d," ").concat(m.slice(0,p-1).join(", "),", or ")+m[p-1]:p===2?"one of ".concat(d," ").concat(m[0]," or ").concat(m[1]):"of ".concat(d," ").concat(m[0])}else return"of ".concat(d," ").concat(String(m))}function S(m,d,p){return m.substr(0,d.length)===d}function g(m,d,p){return(p===void 0||p>m.length)&&(p=m.length),m.substring(p-d.length,p)===d}function h(m,d,p){return typeof p!="number"&&(p=0),p+d.length>m.length?!1:m.indexOf(d,p)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(m,d,p){y===void 0&&(y=Wn()),y(typeof m=="string","'name' must be a string");var x;typeof d=="string"&&S(d,"not ")?(x="must not be",d=d.replace(/^not /,"")):x="must be";var T;if(g(m," argument"))T="The ".concat(m," ").concat(x," ").concat(j(d,"type"));else{var w=h(m,".")?"property":"argument";T='The "'.concat(m,'" ').concat(w," ").concat(x," ").concat(j(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),C("ERR_INVALID_ARG_VALUE",function(m,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var x=v.inspect(d);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(p,". Received ").concat(x)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(m,d,p){var x;return p&&p.constructor&&p.constructor.name?x="instance of ".concat(p.constructor.name):x="type ".concat(e(p)),"Expected ".concat(m,' to be returned from the "').concat(d,'"')+" function but got ".concat(x,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var m=arguments.length,d=new Array(m),p=0;p<m;p++)d[p]=arguments[p];y===void 0&&(y=Wn()),y(d.length>0,"At least one arg needs to be specified");var x="The ",T=d.length;switch(d=d.map(function(w){return'"'.concat(w,'"')}),T){case 1:x+="".concat(d[0]," argument");break;case 2:x+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:x+=d.slice(0,T-1).join(", "),x+=", and ".concat(d[T-1]," arguments");break}return"".concat(x," must be specified")},TypeError),rn.codes=f,rn}var nn,Jo;function yu(){if(Jo)return nn;Jo=1;function e(A,F){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);F&&(H=H.filter(function(X){return Object.getOwnPropertyDescriptor(A,X).enumerable})),G.push.apply(G,H)}return G}function t(A){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(A,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(A,H,Object.getOwnPropertyDescriptor(G,H))})}return A}function r(A,F,G){return F=s(F),F in A?Object.defineProperty(A,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[F]=G,A}function n(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function o(A,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(A,s(H.key),H)}}function c(A,F,G){return F&&o(A.prototype,F),Object.defineProperty(A,"prototype",{writable:!1}),A}function s(A){var F=l(A,"string");return m(F)==="symbol"?F:String(F)}function l(A,F){if(m(A)!=="object"||A===null)return A;var G=A[Symbol.toPrimitive];if(G!==void 0){var H=G.call(A,F);if(m(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function i(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&g(A,F)}function u(A){var F=j();return function(){var H=h(A),X;if(F){var _=h(this).constructor;X=Reflect.construct(H,arguments,_)}else X=H.apply(this,arguments);return f(this,X)}}function f(A,F){if(F&&(m(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(A)}function y(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function v(A){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!S(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,X)}function X(){return C(H,arguments,h(this).constructor)}return X.prototype=Object.create(H.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),g(X,H)},v(A)}function C(A,F,G){return j()?C=Reflect.construct.bind():C=function(X,_,R){var M=[null];M.push.apply(M,_);var z=Function.bind.apply(X,M),L=new z;return R&&g(L,R.prototype),L},C.apply(null,arguments)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,X){return H.__proto__=X,H},g(A,F)}function h(A){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(A)}function m(A){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},m(A)}var d=or(),p=d.inspect,x=Ai(),T=x.codes.ERR_INVALID_ARG_TYPE;function w(A,F,G){return(G===void 0||G>A.length)&&(G=A.length),A.substring(G-F.length,G)===F}function k(A,F){if(F=Math.floor(F),A.length==0||F==0)return"";var G=A.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)A+=A,F--;return A+=A.substring(0,G-A.length),A}var E="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},oe=10;function te(A){var F=Object.keys(A),G=Object.create(Object.getPrototypeOf(A));return F.forEach(function(H){G[H]=A[H]}),Object.defineProperty(G,"message",{value:A.message}),G}function ge(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function je(A,F,G){var H="",X="",_=0,R="",M=!1,z=ge(A),L=z.split(`
1
+ import{r as I,fI as al,c1 as Oo,fJ as ll,fs as _o,fK as cl,cS as Mo,aF as ur,j as a,fL as ul,fM as fl,cs as Tt,fN as or,ex as Qe,fO as Xs,fP as dl,fQ as pl,fR as ml,fS as hl,fT as gl,fU as Qs,fV as bl,fW as eo,fX as yl,fY as xl,fZ as vl,f_ as wl,ey as to,f$ as Js,ez as Cl,cF as qn,eA as jl,dC as Sl,g0 as Tl,g1 as El,V as Ee,bn as Fe,aP as ut,g2 as ei,H as Me,X as qe,o as b,f as ro,eM as ti,f3 as ri,n as xt,K as q,bU as kl,dJ as Pl,bv as Il,au as ft,g3 as ni,S as Sr,bk as Tr,g4 as oi,a_ as Rl,$ as Je,t as lt,b1 as Dl,dG as $e,aU as Nt,E as no,fc as Al,g5 as Ol,g6 as _l,g7 as Ml,D as Lr,T as ke,bg as oo,a3 as rr,g8 as Ll,U as St,bX as Vt,bY as zt,cg as si,dM as tt,eY as ae,b_ as Nl,b8 as _e,da as Er,d4 as ii,b$ as dt,c0 as Rt,Q as Pt,dI as ai,d7 as Bl,g9 as Nr,ga as li,bz as it,bf as Ue,O as sr,bp as Fl,P as $n,as as ci,dE as ql,gb as kr,gc as $l,at as ir,v as Ve,C as bt,gd as Ul,h as Un,aW as Vl,w as zl,x as Wl,s as Ke,p as fr,ac as dr,bA as Ft,ge as Kl,dD as Hl,dk as Yl,aH as gt,ay as yt,dv as Gl,gf as Zl,eB as Xl,gg as ui,gh as Pr,gi as Ql,dF as ar,b as Et,W as so,dH as Jl,cr as fi,z as ec,br as io,bs as di,bt as ao,dm as hr,aD as tc,fH as pi,N as lr,aS as rc,gj as mi,aE as nc,a8 as oc,gk as sc,cW as hi,gl as ic,bw as Lo,y as ac,gm as lc,bC as cc,R as uc,M as fc}from"./index-BP_3yzJi.js";import{A as qt}from"./Add-DfGYpxFm.js";import{V as dc}from"./ViewList-DbjqIU1O.js";import{c as pc,H as lo,g as mc}from"./index-Slk1_oRp.js";import{v as No}from"./index-BONaQFEH.js";import{u as He}from"./team-DVKyat-2.js";import{u as gi}from"./blocklet-DW5VLujk.js";import{S as bi}from"./Search-CkTyydL2.js";import{y as Br}from"./index-CR_y7rX_.js";import{u as hc,C as Zt}from"./index.esm-nOtJO4v_.js";import{S as gc}from"./Google-D8fiFPG3.js";import{A as bc,a as gr}from"./Autocomplete-Dtlywd8D.js";import{U as yc}from"./UnfoldMore-Bd2nR0lA.js";import{P as It}from"./permission-Daz7Q6e4.js";import{C as Fr}from"./click-to-copy-BwGJ4fhm.js";import{s as vt,g as xc,S as vc,u as mt,a as yi,b as pr,c as xi,d as qr,e as vi,f as co,P as wi,D as Ci,h as Ir,M as tr,i as ji,j as Bo,k as nr,v as wc,l as Cc,m as Fo,n as jc,o as Sc,p as Tc,q as Ec,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Ic,T as Rc,B as uo,E as Dc,F as Ac,G as Oc,H as _c,I as Mc,J as Lc,K as Nc,L as br,N as Bt,O as Si,Q as Bc,V as Vn,R as Ti,U as Fc,W as Uo,X as qc,Y as $c,Z as Uc,_ as Vc,$ as zc,a0 as Wc}from"./AdapterDayjs-DoDgXHMR.js";import{u as rt}from"./useThemeProps-YD2ALDiT.js";import{a as Vo,b as Kc,t as Hc,T as Yc}from"./html-title-Dn6dcUNY.js";import{v as Ye}from"./index-3JZF7x-6.js";import{V as Gc}from"./Verified-ho8KghEV.js";import{D as Zc}from"./DeleteOutline-DlBFn6aS.js";import{E as zo}from"./ErrorOutline-CdRKVmEi.js";import{N as Xc}from"./index-BFyKBu2e.js";import{R as Ei,a as jr,D as Qc}from"./url-evaluation-jOAY9l7I.js";import{b as zn}from"./sdk-sMiVo-LP.js";import{u as Jc}from"./index-RjEheLcF.js";import{u as ki}from"./use-mobile-C9gI1Rjm.js";import{A as eu}from"./actions-CsFeGL45.js";import{S as tu}from"./shorten-label-DdSdx-kY.js";import{U as Yr}from"./ua-parser-DP5omx3I.js";const ru=pc(I.useLayoutEffect);var Wo={},Ko;function nu(){return Ko||(Ko=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,x=e(p);x;)p=x.ownerDocument,x=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=j(d.rootBounds),this.boundingClientRect=j(d.boundingClientRect),this.intersectionRect=j(d.intersectionRect||C()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,x=p.width*p.height,T=this.intersectionRect,w=T.width*T.height;x?this.intersectionRatio=Number((w/x).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var x=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(x.root&&x.root.nodeType!=1&&x.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(x.rootMargin),this.thresholds=this._initThresholds(x.threshold),this.root=x.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=C():o=S(d,p),r.forEach(function(x){x._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(x){return x.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(x,T,w){if(typeof x!="number"||isNaN(x)||x<0||x>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return x!==w[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",x=p.split(/\s+/).map(function(T){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return x[1]=x[1]||x[0],x[2]=x[2]||x[0],x[3]=x[3]||x[1],x},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var x=this._checkForIntersections,T=null,w=null;this.POLL_INTERVAL?T=p.setInterval(x,this.POLL_INTERVAL):(u(p,"resize",x,!0),u(d,"scroll",x,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(w=new p.MutationObserver(x),w.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",x,!0)),f(d,"scroll",x,!0),w&&w.disconnect()});var k=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=k){var E=e(d);E&&this._monitorIntersections(E.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var x=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var D=E.element.ownerDocument;if(D==d)return!0;for(;D&&D!=x;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var w=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),w(),d!=x){var k=e(d);k&&this._unmonitorIntersections(k.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():C();this._observationTargets.forEach(function(x){var T=x.element,w=v(T),k=this._rootContainsTarget(T),E=x.entry,D=d&&k&&this._computeTargetAndRootIntersection(T,w,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=C();var B=x.entry=new c({time:l(),target:T,boundingClientRect:w,rootBounds:N,intersectionRect:D});E?d&&k?this._hasCrossedThreshold(E,B)&&this._queuedEntries.push(B):E&&E.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,x){if(window.getComputedStyle(d).display!="none"){for(var T=p,w=h(d),k=!1;!k&&w;){var E=null,D=w.nodeType==1?window.getComputedStyle(w):{};if(D.display=="none")return null;if(w==this.root||w.nodeType==9)if(k=!0,w==this.root||w==t)n&&!this.root?!o||o.width==0&&o.height==0?(w=null,E=null,T=null):E=o:E=x;else{var N=h(w),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,x);B&&W?(w=N,E=S(B,W)):(w=null,T=null)}else{var oe=w.ownerDocument;w!=oe.body&&w!=oe.documentElement&&D.overflow!="visible"&&(E=v(w))}if(E&&(T=y(E,T)),!T)break;w=w&&h(w)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!m(this.root))d=v(this.root);else{var p=m(this.root)?this.root:t,x=p.documentElement,T=p.body;d={top:0,left:0,right:x.clientWidth||T.clientWidth,width:x.clientWidth||T.clientWidth,bottom:x.clientHeight||T.clientHeight,height:x.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,w){return T.unit=="px"?T.value:T.value*(w%2?d.width:d.height)/100}),x={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return x.width=x.right-x.left,x.height=x.bottom-x.top,x},s.prototype._hasCrossedThreshold=function(d,p){var x=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(x!==T)for(var w=0;w<this.thresholds.length;w++){var k=this.thresholds[w];if(k==x||k==T||k<x!=k<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return g(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function i(d,p){var x=null;return function(){x||(x=setTimeout(function(){d(),x=null},p))}}function u(d,p,x,T){typeof d.addEventListener=="function"?d.addEventListener(p,x,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,x)}function f(d,p,x,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,x,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,x)}function y(d,p){var x=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),w=Math.max(d.left,p.left),k=Math.min(d.right,p.right),E=k-w,D=T-x;return E>=0&&D>=0&&{top:x,bottom:T,left:w,right:k,width:E,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):C()}function C(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function S(d,p){var x=p.top-d.top,T=p.left-d.left;return{top:x,left:T,height:p.height,width:p.width,bottom:x+p.height,right:T+p.width}}function g(d,p){for(var x=p;x;){if(x==d)return!0;x=h(x)}return!1}function h(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function m(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Wo}nu();function ou(e,t){var r={},n=r.callback,o=al(r,["callback"]),c=Oo(I.useState(),2),s=c[0],l=c[1],i=Oo(I.useState(),2),u=i[0],f=i[1];return ll(function(){var y=Array.isArray(e)?e:[e],v=y.map(function(j){return _o(j)}).filter(Boolean);if(v.length){var C=new IntersectionObserver(function(j){var S,g;try{for(var h=cl(j),m=h.next();!m.done;m=h.next()){var d=m.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){S={error:p}}finally{try{m&&!m.done&&(g=h.return)&&g.call(h)}finally{if(S)throw S.error}}},Mo(Mo({},o),{root:_o(void 0)}));return v.forEach(function(j){return C.observe(j)}),function(){C.disconnect()}}},[void 0,void 0,n],e),[s,u]}const su=ur(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),iu=ur(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),$r=ur([a.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),a.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),au=ur(a.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),lu=ur(a.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),I.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ii=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ri=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),cu=e=>I.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("g",{clipPath:"url(#clip0)"},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),I.createElement("defs",null,I.createElement("clipPath",{id:"clip0"},I.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Di=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Gr={},Zr,Ho;function uu(){return Ho||(Ho=1,Zr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Zr}var Xr,Yo;function fu(){if(Yo)return Xr;Yo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var i=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],i=1;i<l.length;i++)s=n(l,i).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{l[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(l[i[0]]=u)}i=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),y=0;y<f.length;y++){var v=f[y];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Xr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Xr}var Qr,Go;function du(){return Go||(Go=1,Qr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),Jr}var Xo;function mu(){return Xo||(Xo=1,function(e){const t=uu(),r=fu(),n=du(),o=pu(),c=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return m=>(d,p)=>{const x=d.length;return p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[",x,"]"].join("")]:[...d,[u(m,h),"[",u(x,h),"]=",u(p,h)].join("")]};case"bracket":return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[]"].join("")]:[...d,[u(m,h),"[]=",u(p,h)].join("")];case"comma":case"separator":return m=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(m,h),"=",u(p,h)].join("")]:[[d,u(p,h)].join(h.arrayFormatSeparator)];default:return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,u(m,h)]:[...d,[u(m,h),"=",u(p,h)].join("")]}}function l(h){let m;switch(h.arrayFormat){case"index":return(d,p,x)=>{if(m=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!m){x[d]=p;return}x[d]===void 0&&(x[d]={}),x[d][m[1]]=p};case"bracket":return(d,p,x)=>{if(m=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!m){x[d]=p;return}if(x[d]===void 0){x[d]=[p];return}x[d]=[].concat(x[d],p)};case"comma":case"separator":return(d,p,x)=>{const T=typeof p=="string"&&p.includes(h.arrayFormatSeparator),w=typeof p=="string"&&!T&&f(p,h).includes(h.arrayFormatSeparator);p=w?f(p,h):p;const k=T||w?p.split(h.arrayFormatSeparator).map(E=>f(E,h)):p===null?p:f(p,h);x[d]=k};default:return(d,p,x)=>{if(x[d]===void 0){x[d]=p;return}x[d]=[].concat(x[d],p)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,m){return m.encode?m.strict?t(h):encodeURIComponent(h):h}function f(h,m){return m.decode?r(h):h}function y(h){return Array.isArray(h)?h.sort():typeof h=="object"?y(Object.keys(h)).sort((m,d)=>Number(m)-Number(d)).map(m=>h[m]):h}function v(h){const m=h.indexOf("#");return m!==-1&&(h=h.slice(0,m)),h}function C(h){let m="";const d=h.indexOf("#");return d!==-1&&(m=h.slice(d)),m}function j(h){h=v(h);const m=h.indexOf("?");return m===-1?"":h.slice(m+1)}function S(h,m){return m.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):m.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function g(h,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),i(m.arrayFormatSeparator);const d=l(m),p=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return p;for(const x of h.split("&")){if(x==="")continue;let[T,w]=n(m.decode?x.replace(/\+/g," "):x,"=");w=w===void 0?null:["comma","separator"].includes(m.arrayFormat)?w:f(w,m),d(f(T,m),w,p)}for(const x of Object.keys(p)){const T=p[x];if(typeof T=="object"&&T!==null)for(const w of Object.keys(T))T[w]=S(T[w],m);else p[x]=S(T,m)}return m.sort===!1?p:(m.sort===!0?Object.keys(p).sort():Object.keys(p).sort(m.sort)).reduce((x,T)=>{const w=p[T];return w&&typeof w=="object"&&!Array.isArray(w)?x[T]=y(w):x[T]=w,x},Object.create(null))}e.extract=j,e.parse=g,e.stringify=(h,m)=>{if(!h)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),i(m.arrayFormatSeparator);const d=w=>m.skipNull&&c(h[w])||m.skipEmptyString&&h[w]==="",p=s(m),x={};for(const w of Object.keys(h))d(w)||(x[w]=h[w]);const T=Object.keys(x);return m.sort!==!1&&T.sort(m.sort),T.map(w=>{const k=h[w];return k===void 0?"":k===null?u(w,m):Array.isArray(k)?k.reduce(p(w),[]).join("&"):u(w,m)+"="+u(k,m)}).filter(w=>w.length>0).join("&")},e.parseUrl=(h,m)=>{m=Object.assign({decode:!0},m);const[d,p]=n(h,"#");return Object.assign({url:d.split("?")[0]||"",query:g(j(h),m)},m&&m.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,m)}:{})},e.stringifyUrl=(h,m)=>{m=Object.assign({encode:!0,strict:!0},m);const d=v(h.url).split("?")[0]||"",p=e.extract(h.url),x=e.parse(p,{sort:!1}),T=Object.assign(x,h.query);let w=e.stringify(T,m);w&&(w=`?${w}`);let k=C(h.url);return h.fragmentIdentifier&&(k=`#${u(h.fragmentIdentifier,m)}`),`${d}${w}${k}`},e.pick=(h,m,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:x,fragmentIdentifier:T}=e.parseUrl(h,d);return e.stringifyUrl({url:p,query:o(x,m),fragmentIdentifier:T},d)},e.exclude=(h,m,d)=>{const p=Array.isArray(m)?x=>!m.includes(x):(x,T)=>!m(x,T);return e.pick(h,p,d)}}(Gr)),Gr}var en=mu();const Xt=ul,hu={parseNumbers:!1,parseBooleans:!1},gu={skipNull:!1,skipEmptyString:!1},bu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},hu),c),i=Object.assign(Object.assign({},gu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),y=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=fl(),C=I.useRef(typeof e=="function"?e():e||{}),j=I.useMemo(()=>en.parse(u.search,l),[u.search]),S=I.useMemo(()=>Object.assign(Object.assign({},C.current),j),[j]);return[S,Tt(h=>{const m=typeof h=="function"?h(S):h;v(),f&&f[o]({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},u.state),y&&y({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},tn={exports:{}},rn={},Qo;function Ai(){if(Qo)return rn;Qo=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(m)}function t(m,d,p){return Object.defineProperty(m,"prototype",{writable:!1}),m}function r(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function n(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),d&&o(m,d)}function o(m,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},o(m,d)}function c(m){var d=i();return function(){var x=u(m),T;if(d){var w=u(this).constructor;T=Reflect.construct(x,arguments,w)}else T=x.apply(this,arguments);return s(this,T)}}function s(m,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(m)}function l(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(m)}var f={},y,v;function C(m,d,p){p||(p=Error);function x(w,k,E){return typeof d=="string"?d:d(w,k,E)}var T=function(w){n(E,w);var k=c(E);function E(D,N,B){var W;return r(this,E),W=k.call(this,x(D,N,B)),W.code=m,W}return t(E)}(p);f[m]=T}function j(m,d){if(Array.isArray(m)){var p=m.length;return m=m.map(function(x){return String(x)}),p>2?"one of ".concat(d," ").concat(m.slice(0,p-1).join(", "),", or ")+m[p-1]:p===2?"one of ".concat(d," ").concat(m[0]," or ").concat(m[1]):"of ".concat(d," ").concat(m[0])}else return"of ".concat(d," ").concat(String(m))}function S(m,d,p){return m.substr(0,d.length)===d}function g(m,d,p){return(p===void 0||p>m.length)&&(p=m.length),m.substring(p-d.length,p)===d}function h(m,d,p){return typeof p!="number"&&(p=0),p+d.length>m.length?!1:m.indexOf(d,p)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(m,d,p){y===void 0&&(y=Wn()),y(typeof m=="string","'name' must be a string");var x;typeof d=="string"&&S(d,"not ")?(x="must not be",d=d.replace(/^not /,"")):x="must be";var T;if(g(m," argument"))T="The ".concat(m," ").concat(x," ").concat(j(d,"type"));else{var w=h(m,".")?"property":"argument";T='The "'.concat(m,'" ').concat(w," ").concat(x," ").concat(j(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),C("ERR_INVALID_ARG_VALUE",function(m,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var x=v.inspect(d);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(p,". Received ").concat(x)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(m,d,p){var x;return p&&p.constructor&&p.constructor.name?x="instance of ".concat(p.constructor.name):x="type ".concat(e(p)),"Expected ".concat(m,' to be returned from the "').concat(d,'"')+" function but got ".concat(x,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var m=arguments.length,d=new Array(m),p=0;p<m;p++)d[p]=arguments[p];y===void 0&&(y=Wn()),y(d.length>0,"At least one arg needs to be specified");var x="The ",T=d.length;switch(d=d.map(function(w){return'"'.concat(w,'"')}),T){case 1:x+="".concat(d[0]," argument");break;case 2:x+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:x+=d.slice(0,T-1).join(", "),x+=", and ".concat(d[T-1]," arguments");break}return"".concat(x," must be specified")},TypeError),rn.codes=f,rn}var nn,Jo;function yu(){if(Jo)return nn;Jo=1;function e(A,F){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);F&&(H=H.filter(function(X){return Object.getOwnPropertyDescriptor(A,X).enumerable})),G.push.apply(G,H)}return G}function t(A){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(A,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(A,H,Object.getOwnPropertyDescriptor(G,H))})}return A}function r(A,F,G){return F=s(F),F in A?Object.defineProperty(A,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[F]=G,A}function n(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function o(A,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(A,s(H.key),H)}}function c(A,F,G){return F&&o(A.prototype,F),Object.defineProperty(A,"prototype",{writable:!1}),A}function s(A){var F=l(A,"string");return m(F)==="symbol"?F:String(F)}function l(A,F){if(m(A)!=="object"||A===null)return A;var G=A[Symbol.toPrimitive];if(G!==void 0){var H=G.call(A,F);if(m(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function i(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&g(A,F)}function u(A){var F=j();return function(){var H=h(A),X;if(F){var _=h(this).constructor;X=Reflect.construct(H,arguments,_)}else X=H.apply(this,arguments);return f(this,X)}}function f(A,F){if(F&&(m(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(A)}function y(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function v(A){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!S(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,X)}function X(){return C(H,arguments,h(this).constructor)}return X.prototype=Object.create(H.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),g(X,H)},v(A)}function C(A,F,G){return j()?C=Reflect.construct.bind():C=function(X,_,R){var M=[null];M.push.apply(M,_);var z=Function.bind.apply(X,M),L=new z;return R&&g(L,R.prototype),L},C.apply(null,arguments)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,X){return H.__proto__=X,H},g(A,F)}function h(A){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(A)}function m(A){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},m(A)}var d=or(),p=d.inspect,x=Ai(),T=x.codes.ERR_INVALID_ARG_TYPE;function w(A,F,G){return(G===void 0||G>A.length)&&(G=A.length),A.substring(G-F.length,G)===F}function k(A,F){if(F=Math.floor(F),A.length==0||F==0)return"";var G=A.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)A+=A,F--;return A+=A.substring(0,G-A.length),A}var E="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},oe=10;function te(A){var F=Object.keys(A),G=Object.create(Object.getPrototypeOf(A));return F.forEach(function(H){G[H]=A[H]}),Object.defineProperty(G,"message",{value:A.message}),G}function ge(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function je(A,F,G){var H="",X="",_=0,R="",M=!1,z=ge(A),L=z.split(`
2
2
  `),$=ge(F).split(`
3
3
  `),Z=0,se="";if(G==="strictEqual"&&m(A)==="object"&&m(F)==="object"&&A!==null&&F!==null&&(G="strictEqualObject"),L.length===1&&$.length===1&&L[0]!==$[0]){var fe=L[0].length+$[0].length;if(fe<=oe){if((m(A)!=="object"||A===null)&&(m(F)!=="object"||F===null)&&(A!==0||F!==0))return"".concat(W[G],`
4
4
 
@@ -186,7 +186,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
186
186
  }
187
187
  }
188
188
  }
189
- `,vm=Gl(Zl);var Bn,Vs;function wm(){if(Vs)return Bn;Vs=1;const e=vm,{ROLES:t,PASSPORT_STATUS:r}=Xl();return Bn={hasActiveOwnerPassport:c=>(c?.passports||[]).some(s=>s.role===t.OWNER&&s.status===r.VALID),getActivePassports:(c,s=[])=>{const l=i=>i.status!==r.VALID||!s.includes(i.issuer.id)?!1:!(i.expirationDate&&Date.now()>new Date(i.expirationDate).getTime());return e((c.passports||[]).filter(i=>!i.display).filter(l),"name").concat(e((c.passports||[]).filter(i=>i.display).filter(l),"display.content"))}},Bn}var $a=wm();function ko({user:e={},onCancel:t=()=>{},onSuccess:r=()=>{},onError:n=()=>{},children:o=null}){const{api:c,info:s,inService:l}=Fe(),{session:i}=xt(),{teamDid:u,refresh:f}=He(),{t:y}=Ee(),[v,C]=I.useState(!1),[j,S]=I.useState(!1),g=()=>S(!0),h=async p=>{const{did:x,approved:T}=p;if(!v){C(!0);try{await c.updateUserApproval({input:{teamDid:u,user:{did:x,approved:!T}}}),S(!1),r(),f()}catch(w){Me.error(qe(w)),n()}finally{C(!1)}}},m={title:e.approved?y("team.member.blockAccess"):y("team.member.allowAccess"),description:e.approved?y("team.member.blockAccessDescription"):y("team.member.allowAccessDescription"),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:()=>{h(e)},onCancel:()=>{C(!1),S(!1),t()},color:e.approved?"error":"primary"};let d;return $a.hasActiveOwnerPassport(e)?d=!1:l?d=!Pr(i.user,e.did):d=s.nodeOwner&&!ui(s,e.did)&&!Pr(i.user,e.did),d?a.jsxs(a.Fragment,{children:[typeof o=="function"?o({can:d,open:g}):o,j?a.jsx(dr,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel,color:m.color}):null]}):null}ko.propTypes={user:b.object,onSuccess:b.func,onCancel:b.func,onError:b.func,children:b.oneOfType([b.object,b.func])};function Ua({user:e={},onCancel:t=()=>{},onSuccess:r=()=>{},onError:n=()=>{},children:o=null}){const{api:c,info:s,inService:l}=Fe(),{session:i}=xt(),{teamDid:u}=He(),{t:f}=Ee(),[y,v]=I.useState(!1),[C,j]=I.useState(!1),S=()=>j(!0),g=async d=>{const{did:p}=d;if(!y){v(!0);try{await c.removeUser({input:{teamDid:u,user:{did:p}}}),j(!1),r(),Me.success(f("team.member.removeUserSuccess")),setTimeout(()=>{window.location.reload()},1e3)}catch(x){Me.error(qe(x)),n()}finally{v(!1)}}},h={title:f("team.member.removeUser"),description:f("team.member.removeUserDescription",{did:e.did}),confirm:f("common.confirm"),cancel:f("common.cancel"),onConfirm:()=>{g(e)},onCancel:()=>{v(!1),j(!1),t()},color:"error"};let m;return $a.hasActiveOwnerPassport(e)?m=!1:l?m=!Pr(i.user,e.did):m=s.nodeOwner&&!ui(s,e.did)&&!Pr(i.user,e.did),m?a.jsxs(a.Fragment,{children:[typeof o=="function"?o({can:m,open:S}):o,C?a.jsx(dr,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel,color:h.color}):null]}):null}Ua.propTypes={user:b.object,onSuccess:b.func,onCancel:b.func,onError:b.func,children:b.oneOfType([b.object,b.func])};function Va({hasPasskey:e=!1}){const{isNodeTeam:t}=He();return t?a.jsx(Ql,{behavior:"only-new",action:"connect",createMode:"connect",createButtonText:e?"Add New Passkey":"Add Passkey",onSuccess:ar,onError:ar,dense:!0}):null}Va.propTypes={hasPasskey:b.bool};function za({user:e,onChangeUser:t=()=>{}}){const r=e.connectedAccounts||[],{t:n}=Ee(),{session:o}=xt(),{disconnectPasskey:c}=o.usePasskey(),s=r.some(l=>l.provider===Et.LOGIN_PROVIDER.PASSKEY&&l.did);return a.jsxs("div",{children:[r.map(l=>a.jsxs("div",{children:[a.jsx(Ye,{style:{alignItems:"flex-start",cursor:"pointer"},valueComponent:"div",nameWidth:120,name:l.provider,onClick:()=>{const i=document.getElementById(`account-details-${l.did}`);i&&(i.style.display=i.style.display==="none"?"block":"none")},children:a.jsx(so,{did:l.did,showQrcode:!0})},l.did),a.jsxs(Jl,{id:`account-details-${l.did}`,sx:{display:"none",mt:-1,mb:1,pt:1,pl:1,pr:1,boxShadow:"none",border:"1px solid #e0e0e0"},children:[l.did&&a.jsx(Ye,{nameWidth:120,name:"DID",children:l.did}),l.pk&&a.jsx(Ye,{nameWidth:120,name:"PublicKey",children:l.pk}),l.id&&a.jsx(Ye,{nameWidth:120,name:"ID",children:l.id}),l.sub&&a.jsx(Ye,{nameWidth:120,name:"Sub",children:l.sub}),l.lastLoginAt&&a.jsx(Ye,{nameWidth:120,name:"Last Login",children:l.lastLoginAt}),l.counter&&a.jsx(Ye,{nameWidth:120,name:"Counter",children:l.counter}),l.userInfo&&a.jsx(Ye,{nameWidth:120,name:"User Info",children:a.jsx("pre",{style:{margin:0,fontSize:12},children:JSON.stringify(l.userInfo,null,2)})}),l.extra&&a.jsx(Ye,{nameWidth:120,name:"Extra",children:a.jsx("pre",{style:{margin:0,fontSize:12},children:JSON.stringify(l.extra,null,2)})}),l.provider===Et.LOGIN_PROVIDER.PASSKEY&&a.jsx($e,{size:"small",variant:"contained",color:"error",sx:{mb:1},onClick:async()=>{await c({session:o,connectedAccount:l}),await t(e)},children:n("common.disconnect")})]})]},l.did)),a.jsx(Va,{hasPasskey:s})]})}za.propTypes={user:b.object.isRequired,onChangeUser:b.func};const zs=20,Po={currentTab:b.string.isRequired},Io={user:b.object.isRequired,column:b.number};function Cm(){return a.jsxs(q,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:[a.jsxs(q,{sx:{display:"flex",alignItems:"center",gap:2,mb:1},children:[a.jsx(hr,{variant:"circular",width:48,height:48}),a.jsxs(q,{sx:{flex:1},children:[a.jsx(hr,{variant:"text",width:"60%",height:20}),a.jsx(hr,{variant:"text",width:"80%",height:16})]})]}),a.jsx(hr,{variant:"text",width:"40%",height:14})]})}function Wa({currentTab:e,errorMsg:t=""}){const{t:r}=Ee(),n=I.useMemo(()=>({following:r("team.userFollowers.emptyFollowing"),followers:r("team.userFollowers.emptyFollowers"),invitees:r("team.userFollowers.emptyInvitees")})[e],[e,r]);return a.jsx(Br,{children:t||n})}Wa.propTypes={...Po,errorMsg:b.string};function Ka({user:e,teamDid:t,currentTab:r,column:n=2,refresh:o=()=>{},followed:c=!1,showSocialActions:s=!0}){const{t:l,locale:i}=Ee(),{api:u}=Fe(),{session:f}=xt(),y=I.useRef(null),[v]=ou(y),C=ki({key:"md"}),j={following:u.getUserFollowing,followers:u.getUserFollowers,invitees:u.getUserInvites},{data:S,loading:g,loadMore:h,loadingMore:m,reload:d,error:p}=Jc(async D=>{if(!e?.did)return{list:[],total:0};const N=D?Math.ceil(D.list.length/zs)+1:1,B=j[r];if(!B)return{list:[],total:0};const W=await B({input:{teamDid:t,userDid:e.did,type:r,paging:{page:N,pageSize:zs}}});return{list:(r==="invitees"?W?.users:W?.data)||[],total:W?.paging?.total||0}},{reloadDeps:[r,e?.did,c],isNoMore:D=>D?.list.length?D.list.length>=D?.total:!0,onError(D){Me.error(qe(D))}}),x=()=>{try{r!=="invitees"&&d(),o()}catch(D){console.error(D)}},{list:T=[],total:w=0}=S||{},k=T.length<w,E=Tt(D=>{if(!D?.did)return;const N=ec(gt.WELLKNOWN_BLOCKLET_USER_PATH,{did:D.did,locale:i});window.open(N,"_blank")});return I.useEffect(()=>{v&&h()},[v,h]),g?a.jsx(q,{sx:{py:2,display:"grid",gridTemplateColumns:{xs:"1fr",sm:`repeat(${n}, 1fr)`},gap:2},children:Array.from({length:6},(D,N)=>`skeleton-${r}-${N}`).map(D=>a.jsx(Cm,{},D))}):T.length===0?a.jsx(Wa,{currentTab:r,errorMsg:p?qe(p):""}):a.jsxs(q,{children:[a.jsx(q,{className:"user-list",sx:{px:C?0:1,py:2,display:"grid",gridTemplateColumns:{md:"1fr",lg:`repeat(${n}, 1fr)`},gap:2},children:T.map(D=>{const N=r==="invitees"?D:D.user;if(!N)return null;let B=r==="following"?D.userDid:D.followerDid;return r==="invitees"&&(B=N.did),a.jsx(q,{className:"user-item",children:a.jsx(io,{user:N,showDid:!0,cardType:ao.CARD,infoType:di.INFO,session:f,showSocialActions:s,onAvatarClick:E,onFollowClick:x})},B)})}),k?a.jsx(q,{sx:{display:"flex",justifyContent:"center",mt:2},children:a.jsx($e,{variant:"text",color:"primary",onClick:h,ref:y,children:l(m?"common.loading":"webhookEndpoint.loadMore")})}):null]})}Ka.propTypes={...Po,...Io,followed:b.bool};function Ha({data:e,currentTab:t,onTabChange:r,showInvitees:n=!0}){const{t:o}=Ee(),c=[{label:o("team.userFollowers.following"),value:"following",count:e?.following||0},{label:o("team.userFollowers.followers"),value:"followers",count:e?.followers||0},...n?[{label:o("team.userFollowers.invitees"),value:"invitees",count:e?.invitees||0}]:[]];return a.jsx(q,{children:c.map(s=>a.jsxs(jm,{className:t===s.value?"active":"",onClick:()=>r(s.value),children:[s.label,s.count>0&&a.jsxs("span",{className:"count",style:{marginLeft:4},children:["(",s.count>99?"99+":s.count,")"]})]},s.value))})}Ha.propTypes={...Po,...Io,onTabChange:b.func.isRequired};function Ya({user:e,teamDid:t,column:r=2,followed:n=!1,showSocialActions:o=!0,showInvitees:c=!0}){const[s,l]=I.useState("following"),{api:i}=Fe(),u=I.useMemo(()=>{const{settings:C={}}=window?.blocklet||{},{invite:j}=C;return j&&j.enabled},[]),{data:f,refresh:y}=fi(async()=>e?.did?(await i.getUserFollowStats({input:{teamDid:t,userDids:[e.did],options:{includeInvitees:c&&u}}}))?.data?.[e.did]||{following:0,followers:0,invitees:0}:{following:0,followers:0},{refreshDeps:[e?.did,n]}),v=C=>{l(C)};return a.jsxs(q,{children:[a.jsx(Ha,{data:f,user:e,currentTab:s,onTabChange:v,showInvitees:c&&u}),a.jsx(Ka,{column:r,user:e,currentTab:s,teamDid:t,followed:n,refresh:y,showSocialActions:o},s)]})}Ya.propTypes={...Io,teamDid:b.string.isRequired,followed:b.bool,showInvitees:b.bool};const jm=_e($e)`
189
+ `,vm=Gl(Zl);var Bn,Vs;function wm(){if(Vs)return Bn;Vs=1;const e=vm,{ROLES:t,PASSPORT_STATUS:r}=Xl();return Bn={hasActiveOwnerPassport:c=>(c?.passports||[]).some(s=>s.role===t.OWNER&&s.status===r.VALID),getActivePassports:(c,s=[])=>{const l=i=>i.status!==r.VALID||!s.includes(i.issuer.id)?!1:!(i.expirationDate&&Date.now()>new Date(i.expirationDate).getTime());return e((c.passports||[]).filter(i=>!i.display).filter(l),"name").concat(e((c.passports||[]).filter(i=>i.display).filter(l),"display.content"))}},Bn}var $a=wm();function ko({user:e={},onCancel:t=()=>{},onSuccess:r=()=>{},onError:n=()=>{},children:o=null}){const{api:c,info:s,inService:l}=Fe(),{session:i}=xt(),{teamDid:u,refresh:f}=He(),{t:y}=Ee(),[v,C]=I.useState(!1),[j,S]=I.useState(!1),g=()=>S(!0),h=async p=>{const{did:x,approved:T}=p;if(!v){C(!0);try{await c.updateUserApproval({input:{teamDid:u,user:{did:x,approved:!T},options:{includeFederated:!0}}}),S(!1),r(),f()}catch(w){Me.error(qe(w)),n()}finally{C(!1)}}},m={title:e.approved?y("team.member.blockAccess"):y("team.member.allowAccess"),description:e.approved?y("team.member.blockAccessDescription"):y("team.member.allowAccessDescription"),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:()=>{h(e)},onCancel:()=>{C(!1),S(!1),t()},color:e.approved?"error":"primary"};let d;return $a.hasActiveOwnerPassport(e)?d=!1:l?d=!Pr(i.user,e.did):d=s.nodeOwner&&!ui(s,e.did)&&!Pr(i.user,e.did),d?a.jsxs(a.Fragment,{children:[typeof o=="function"?o({can:d,open:g}):o,j?a.jsx(dr,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel,color:m.color}):null]}):null}ko.propTypes={user:b.object,onSuccess:b.func,onCancel:b.func,onError:b.func,children:b.oneOfType([b.object,b.func])};function Ua({user:e={},onCancel:t=()=>{},onSuccess:r=()=>{},onError:n=()=>{},children:o=null}){const{api:c,info:s,inService:l}=Fe(),{session:i}=xt(),{teamDid:u}=He(),{t:f}=Ee(),[y,v]=I.useState(!1),[C,j]=I.useState(!1),S=()=>j(!0),g=async d=>{const{did:p}=d;if(!y){v(!0);try{await c.removeUser({input:{teamDid:u,user:{did:p}}}),j(!1),r(),Me.success(f("team.member.removeUserSuccess")),setTimeout(()=>{window.location.reload()},1e3)}catch(x){Me.error(qe(x)),n()}finally{v(!1)}}},h={title:f("team.member.removeUser"),description:f("team.member.removeUserDescription",{did:e.did}),confirm:f("common.confirm"),cancel:f("common.cancel"),onConfirm:()=>{g(e)},onCancel:()=>{v(!1),j(!1),t()},color:"error"};let m;return $a.hasActiveOwnerPassport(e)?m=!1:l?m=!Pr(i.user,e.did):m=s.nodeOwner&&!ui(s,e.did)&&!Pr(i.user,e.did),m?a.jsxs(a.Fragment,{children:[typeof o=="function"?o({can:m,open:S}):o,C?a.jsx(dr,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel,color:h.color}):null]}):null}Ua.propTypes={user:b.object,onSuccess:b.func,onCancel:b.func,onError:b.func,children:b.oneOfType([b.object,b.func])};function Va({hasPasskey:e=!1}){const{isNodeTeam:t}=He();return t?a.jsx(Ql,{behavior:"only-new",action:"connect",createMode:"connect",createButtonText:e?"Add New Passkey":"Add Passkey",onSuccess:ar,onError:ar,dense:!0}):null}Va.propTypes={hasPasskey:b.bool};function za({user:e,onChangeUser:t=()=>{}}){const r=e.connectedAccounts||[],{t:n}=Ee(),{session:o}=xt(),{disconnectPasskey:c}=o.usePasskey(),s=r.some(l=>l.provider===Et.LOGIN_PROVIDER.PASSKEY&&l.did);return a.jsxs("div",{children:[r.map(l=>a.jsxs("div",{children:[a.jsx(Ye,{style:{alignItems:"flex-start",cursor:"pointer"},valueComponent:"div",nameWidth:120,name:l.provider,onClick:()=>{const i=document.getElementById(`account-details-${l.did}`);i&&(i.style.display=i.style.display==="none"?"block":"none")},children:a.jsx(so,{did:l.did,showQrcode:!0})},l.did),a.jsxs(Jl,{id:`account-details-${l.did}`,sx:{display:"none",mt:-1,mb:1,pt:1,pl:1,pr:1,boxShadow:"none",border:"1px solid #e0e0e0"},children:[l.did&&a.jsx(Ye,{nameWidth:120,name:"DID",children:l.did}),l.pk&&a.jsx(Ye,{nameWidth:120,name:"PublicKey",children:l.pk}),l.id&&a.jsx(Ye,{nameWidth:120,name:"ID",children:l.id}),l.sub&&a.jsx(Ye,{nameWidth:120,name:"Sub",children:l.sub}),l.lastLoginAt&&a.jsx(Ye,{nameWidth:120,name:"Last Login",children:l.lastLoginAt}),l.counter&&a.jsx(Ye,{nameWidth:120,name:"Counter",children:l.counter}),l.userInfo&&a.jsx(Ye,{nameWidth:120,name:"User Info",children:a.jsx("pre",{style:{margin:0,fontSize:12},children:JSON.stringify(l.userInfo,null,2)})}),l.extra&&a.jsx(Ye,{nameWidth:120,name:"Extra",children:a.jsx("pre",{style:{margin:0,fontSize:12},children:JSON.stringify(l.extra,null,2)})}),l.provider===Et.LOGIN_PROVIDER.PASSKEY&&a.jsx($e,{size:"small",variant:"contained",color:"error",sx:{mb:1},onClick:async()=>{await c({session:o,connectedAccount:l}),await t(e)},children:n("common.disconnect")})]})]},l.did)),a.jsx(Va,{hasPasskey:s})]})}za.propTypes={user:b.object.isRequired,onChangeUser:b.func};const zs=20,Po={currentTab:b.string.isRequired},Io={user:b.object.isRequired,column:b.number};function Cm(){return a.jsxs(q,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1,p:2},children:[a.jsxs(q,{sx:{display:"flex",alignItems:"center",gap:2,mb:1},children:[a.jsx(hr,{variant:"circular",width:48,height:48}),a.jsxs(q,{sx:{flex:1},children:[a.jsx(hr,{variant:"text",width:"60%",height:20}),a.jsx(hr,{variant:"text",width:"80%",height:16})]})]}),a.jsx(hr,{variant:"text",width:"40%",height:14})]})}function Wa({currentTab:e,errorMsg:t=""}){const{t:r}=Ee(),n=I.useMemo(()=>({following:r("team.userFollowers.emptyFollowing"),followers:r("team.userFollowers.emptyFollowers"),invitees:r("team.userFollowers.emptyInvitees")})[e],[e,r]);return a.jsx(Br,{children:t||n})}Wa.propTypes={...Po,errorMsg:b.string};function Ka({user:e,teamDid:t,currentTab:r,column:n=2,refresh:o=()=>{},followed:c=!1,showSocialActions:s=!0}){const{t:l,locale:i}=Ee(),{api:u}=Fe(),{session:f}=xt(),y=I.useRef(null),[v]=ou(y),C=ki({key:"md"}),j={following:u.getUserFollowing,followers:u.getUserFollowers,invitees:u.getUserInvites},{data:S,loading:g,loadMore:h,loadingMore:m,reload:d,error:p}=Jc(async D=>{if(!e?.did)return{list:[],total:0};const N=D?Math.ceil(D.list.length/zs)+1:1,B=j[r];if(!B)return{list:[],total:0};const W=await B({input:{teamDid:t,userDid:e.did,type:r,paging:{page:N,pageSize:zs}}});return{list:(r==="invitees"?W?.users:W?.data)||[],total:W?.paging?.total||0}},{reloadDeps:[r,e?.did,c],isNoMore:D=>D?.list.length?D.list.length>=D?.total:!0,onError(D){Me.error(qe(D))}}),x=()=>{try{r!=="invitees"&&d(),o()}catch(D){console.error(D)}},{list:T=[],total:w=0}=S||{},k=T.length<w,E=Tt(D=>{if(!D?.did)return;const N=ec(gt.WELLKNOWN_BLOCKLET_USER_PATH,{did:D.did,locale:i});window.open(N,"_blank")});return I.useEffect(()=>{v&&h()},[v,h]),g?a.jsx(q,{sx:{py:2,display:"grid",gridTemplateColumns:{xs:"1fr",sm:`repeat(${n}, 1fr)`},gap:2},children:Array.from({length:6},(D,N)=>`skeleton-${r}-${N}`).map(D=>a.jsx(Cm,{},D))}):T.length===0?a.jsx(Wa,{currentTab:r,errorMsg:p?qe(p):""}):a.jsxs(q,{children:[a.jsx(q,{className:"user-list",sx:{px:C?0:1,py:2,display:"grid",gridTemplateColumns:{md:"1fr",lg:`repeat(${n}, 1fr)`},gap:2},children:T.map(D=>{const N=r==="invitees"?D:D.user;if(!N)return null;let B=r==="following"?D.userDid:D.followerDid;return r==="invitees"&&(B=N.did),a.jsx(q,{className:"user-item",children:a.jsx(io,{user:N,showDid:!0,cardType:ao.CARD,infoType:di.INFO,session:f,showSocialActions:s,onAvatarClick:E,onFollowClick:x})},B)})}),k?a.jsx(q,{sx:{display:"flex",justifyContent:"center",mt:2},children:a.jsx($e,{variant:"text",color:"primary",onClick:h,ref:y,children:l(m?"common.loading":"webhookEndpoint.loadMore")})}):null]})}Ka.propTypes={...Po,...Io,followed:b.bool};function Ha({data:e,currentTab:t,onTabChange:r,showInvitees:n=!0}){const{t:o}=Ee(),c=[{label:o("team.userFollowers.following"),value:"following",count:e?.following||0},{label:o("team.userFollowers.followers"),value:"followers",count:e?.followers||0},...n?[{label:o("team.userFollowers.invitees"),value:"invitees",count:e?.invitees||0}]:[]];return a.jsx(q,{children:c.map(s=>a.jsxs(jm,{className:t===s.value?"active":"",onClick:()=>r(s.value),children:[s.label,s.count>0&&a.jsxs("span",{className:"count",style:{marginLeft:4},children:["(",s.count>99?"99+":s.count,")"]})]},s.value))})}Ha.propTypes={...Po,...Io,onTabChange:b.func.isRequired};function Ya({user:e,teamDid:t,column:r=2,followed:n=!1,showSocialActions:o=!0,showInvitees:c=!0}){const[s,l]=I.useState("following"),{api:i}=Fe(),u=I.useMemo(()=>{const{settings:C={}}=window?.blocklet||{},{invite:j}=C;return j&&j.enabled},[]),{data:f,refresh:y}=fi(async()=>e?.did?(await i.getUserFollowStats({input:{teamDid:t,userDids:[e.did],options:{includeInvitees:c&&u}}}))?.data?.[e.did]||{following:0,followers:0,invitees:0}:{following:0,followers:0},{refreshDeps:[e?.did,n]}),v=C=>{l(C)};return a.jsxs(q,{children:[a.jsx(Ha,{data:f,user:e,currentTab:s,onTabChange:v,showInvitees:c&&u}),a.jsx(Ka,{column:r,user:e,currentTab:s,teamDid:t,followed:n,refresh:y,showSocialActions:o},s)]})}Ya.propTypes={...Io,teamDid:b.string.isRequired,followed:b.bool,showInvitees:b.bool};const jm=_e($e)`
190
190
  &.MuiButtonBase-root {
191
191
  border-radius: 9999px;
192
192
  margin-right: 2px;
@@ -1,4 +1,4 @@
1
- import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-a-ikX8qX.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-DDNKwY4t.js";import{M as V}from"./metric-BjM4KnKv.js";import{C as M}from"./click-to-copy-iYXC5-cD.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
1
+ import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-BP_3yzJi.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-3JZF7x-6.js";import{M as V}from"./metric-Bmy15s_c.js";import{C as M}from"./click-to-copy-BwGJ4fhm.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{r as p,p as ye,j as e,C as H,L as Ce,s as W,o as T,u as ce,V as Q,n as ve,q as we,$ as Be,D as Se,T as P,t as Z,v as q,w as Te,x as Le,y as Ae,z as Ie,A as me,H as M,B as De,d as Ee,f as Fe,E as Pe,F as Re,i as D,I as ee,J as te,K as S,M as Ne,N as _,O as se,P as _e,S as oe,Q as le,R as Ue,U as ne,X as Me,Y as We}from"./index-a-ikX8qX.js";import{u as $e}from"./useLocalStorage-BZqfD-Zc.js";import{g as Oe,H as ze}from"./index-BZcXgg1f.js";import{y as qe}from"./index-nCWPxDgy.js";import{W as Ve,B as E}from"./status-B8DVt36w.js";import{D as He,u as Qe,B as re}from"./actions-58eoeFLs.js";import{I as Ke,B as Xe}from"./install-from-url-BdJ2Ss57.js";import{u as de}from"./url-evaluation-BAHeyVsk.js";import{L as Je}from"./Launch-C5rHIILC.js";import{A as Ye}from"./Add-oTaGbrkV.js";import{v as F}from"./index-RG4mqpGz.js";import{s as ae}from"./schema-DpNd-Zov.js";import{P as Ge}from"./permission-RfVjqk52.js";import"./FilterList-B4eWQJqn.js";import"./CSSTransition-BQVtCcwc.js";import"./emotion-cache.browser.esm-B6zIYIHc.js";import"./index-AN9pUzEg.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BiEXsNqn.js";import"./TableSearch-CaXXTSiF.js";import"./Search-B9XObekn.js";import"./Clear-DkN0yn0u.js";import"./MoreVert-YtAOv_qU.js";import"./get-safe-url-IgmCyB0M.js";import"./ButtonGroup-tq0Nh3v_.js";import"./getValidReactChildren-CLYm2ELr.js";import"./without-wallet-qR-m0Hnu.js";import"./index-DPyAwNR3.js";import"./cloneDeep-DkPlIKHp.js";import"./index-DDNKwY4t.js";import"./Autocomplete-BUuiK3c9.js";import"./ListSubheader-DHUtCPFm.js";import"./ListItemButton-BBMhGYtT.js";import"./Stepper-DJBQoATT.js";function V({blocklet:j,skipAccessibilityCheck:f=!1,...c}){const{t:r}=p.useContext(ye),{urls:C,loading:n,recommendedUrl:h}=de(j);if(n&&!f)return e.jsx(H,{size:12,...c});const k=f?C[0]:h;return k?e.jsx(et,{...c,children:e.jsx(Ze,{children:e.jsxs(Ce,{href:k,target:"_blank",className:"blocklet-interface",underline:"hover",children:[r("common.visit"),e.jsx(Je,{fontSize:"12",sx:{marginLeft:.5}})]})})}):r("blocklet.router.noAccessibleUrl")}const Ze=W.div`
1
+ import{r as p,p as ye,j as e,C as H,L as Ce,s as W,o as T,u as ce,V as Q,n as ve,q as we,$ as Be,D as Se,T as P,t as Z,v as q,w as Te,x as Le,y as Ae,z as Ie,A as me,H as M,B as De,d as Ee,f as Fe,E as Pe,F as Re,i as D,I as ee,J as te,K as S,M as Ne,N as _,O as se,P as _e,S as oe,Q as le,R as Ue,U as ne,X as Me,Y as We}from"./index-BP_3yzJi.js";import{u as $e}from"./useLocalStorage-BtMOuUTW.js";import{g as Oe,H as ze}from"./index-Slk1_oRp.js";import{y as qe}from"./index-CR_y7rX_.js";import{W as Ve,B as E}from"./status-CF62mz8d.js";import{D as He,u as Qe,B as re}from"./actions-TPa_VwXP.js";import{I as Ke,B as Xe}from"./install-from-url-ChcqK5kr.js";import{u as de}from"./url-evaluation-jOAY9l7I.js";import{L as Je}from"./Launch-CBy4H_ns.js";import{A as Ye}from"./Add-DfGYpxFm.js";import{v as F}from"./index-BONaQFEH.js";import{s as ae}from"./schema-Ce2kTZV-.js";import{P as Ge}from"./permission-Daz7Q6e4.js";import"./FilterList-NKEkk1oT.js";import"./CSSTransition-Cdv6gm6d.js";import"./emotion-cache.browser.esm-CM3rWGOI.js";import"./index-c79u0RAC.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-uv00espS.js";import"./TableSearch-DsG-D7tf.js";import"./Search-CkTyydL2.js";import"./Clear-CP7nsG13.js";import"./MoreVert-Tbknuyky.js";import"./get-safe-url-rPMK8qtK.js";import"./ButtonGroup-BzY0m5Bm.js";import"./getValidReactChildren-DYIY0OXY.js";import"./without-wallet-C5a89W9O.js";import"./index-7q4yz-Nt.js";import"./cloneDeep-CvS_U9Wv.js";import"./index-3JZF7x-6.js";import"./Autocomplete-Dtlywd8D.js";import"./ListSubheader-4mTsxUqV.js";import"./ListItemButton-CimFlkXr.js";import"./Stepper-CGwA1Drf.js";function V({blocklet:j,skipAccessibilityCheck:f=!1,...c}){const{t:r}=p.useContext(ye),{urls:C,loading:n,recommendedUrl:h}=de(j);if(n&&!f)return e.jsx(H,{size:12,...c});const k=f?C[0]:h;return k?e.jsx(et,{...c,children:e.jsx(Ze,{children:e.jsxs(Ce,{href:k,target:"_blank",className:"blocklet-interface",underline:"hover",children:[r("common.visit"),e.jsx(Je,{fontSize:"12",sx:{marginLeft:.5}})]})})}):r("blocklet.router.noAccessibleUrl")}const Ze=W.div`
2
2
  display: flex;
3
3
  margin: 4px 0;
4
4
  `,et=W.div`
@@ -1,4 +1,4 @@
1
- import{cF as $m,bd as jL,g$ as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-a-ikX8qX.js";/*! *****************************************************************************
1
+ import{cF as $m,bd as jL,g_ as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-BP_3yzJi.js";/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,4 +1,4 @@
1
- import{r as i,j as t,K as o,dc as c,o as n}from"./index-a-ikX8qX.js";const h=e=>i.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})),a=c(o)`
1
+ import{r as i,j as t,K as o,dc as c,o as n}from"./index-BP_3yzJi.js";const h=e=>i.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})),a=c(o)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{aF as createSvgIcon,j as jsxRuntimeExports,r as reactExports$1,o,bd as getDefaultExportFromCjs,E as useMediaQuery,s as styled,dm as Skeleton,cQ as M$1,Z as CheckIcon,ay as Tooltip,dG as Button,T as Typography,K as Box,C as CircularProgress,f as useTheme,dA as isObject,e_ as mergeThemeOptions,e$ as StyledEngineProvider,f0 as ThemeProvider,f1 as ThemeProvider$1,f2 as s,Y as o$1,b8 as styled$1,f3 as CloseIcon,cF as Buffer,be as U,bF as __vitePreload,dF as noop,dc as l$2}from"./index-a-ikX8qX.js";import{j as joinUrl}from"./url-join-C2Slolwi.js";const l$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"})),d$2=createSvgIcon([jsxRuntimeExports.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),jsxRuntimeExports.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),k$2=reactExports$1.createContext(),{Provider:w$3}=k$2,d$1=(C,F,V=window.location.pathname.replace(/\/$/,"/"))=>C?F?C===V:new RegExp(C).test(V):!1;function P({children:C,steps:F,mode:V="history"}){const[D,B]=reactExports$1.useState("");!D&&F.length&&B(F[0].key);const O=F.map(X=>X.children?[{key:X.key,hasChild:!0},X.children.map(at=>({parentKey:X.key,key:at.key}))]:{key:X.key}).flat(1/0),j=O.filter(X=>!X.hasChild),H=X=>{let at;const rt=O.findIndex(ft=>ft.key===D?(at=ft.parentKey,!0):!1);if(at===X)return"current";const tt=O.findIndex(ft=>ft.key===X);if(tt!==-1){if(tt===rt)return"current";if(tt<rt)return"before"}return"after"};function G(X){B(X)}function K(X){if(typeof X=="function"){const at=X(j.findIndex(rt=>rt.key===D));B(j[at].key)}else B(j[X].key)}const it=j.findIndex(X=>X.key===D);reactExports$1.useEffect(()=>{if(V==="history"){let X="";F.some(at=>at.children&&at.children.length?at.children.some(rt=>d$1(rt.path,rt.exact)?(X=rt.key,!0):!1):d$1(at.path,at.exact)?(X=at.key,!0):!1),X&&B(X)}return()=>{}},[F,V]);const ot={steps:F,totalStepsCount:j.length,getStepStatus:H,setActiveStepByKey:G,setActiveStepByIndex:K,activeStep:it,canBackToStep:X=>V==="memory"&&it!==0&&X<it};return jsxRuntimeExports.jsx(w$3,{value:ot,children:C})}function T$1(){return reactExports$1.use(k$2)}P.propTypes={children:o.any.isRequired,steps:o.array.isRequired,mode:o.string};var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=Object.prototype.hasOwnProperty,F=Object.prototype.toString;function V(D){if(D==null)return!0;if(typeof D=="boolean")return!1;if(typeof D=="number")return D===0;if(typeof D=="string"||typeof D=="function"||Array.isArray(D))return D.length===0;if(D instanceof Error)return D.message==="";if(D.toString==F)switch(D.toString()){case"[object File]":case"[object Map]":case"[object Set]":return D.size===0;case"[object Object]":{for(var B in D)if(C.call(D,B))return!1;return!0}}return!1}return lib=V,lib}var libExports=requireLib();const k$1=getDefaultExportFromCjs(libExports),S=""+new URL("blocklet-default-logo-Bspnu_ws.png",import.meta.url).href,t$1={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},a$1=C=>t$1[C]?t$1[C]:t$1.en,i=C=>C==="zh"?"启动":"Launching",g$2=C=>C?.title||C?.name||"";function T({blockletMeta:C={},subTitle:F="",logoUrl:V="",locale:D="",navLogo:B="",loading:O=!1}){const j=useMediaQuery(ot=>ot.breakpoints.down("md")),H=j?18:48,G=reactExports$1.useRef(null),[K,it]=reactExports$1.useState("");return reactExports$1.useEffect(()=>{G.current&&G.current.offsetHeight>34&&(K===""?it("middle"):K==="middle"&&it("small"))},[K]),jsxRuntimeExports.jsxs(R,{className:K==="small"?"center-mode":"",children:[j?jsxRuntimeExports.jsx("div",{className:"app-icon",children:B}):jsxRuntimeExports.jsxs("div",{className:"app-icon",children:[O&&jsxRuntimeExports.jsx(I,{blockletSize:H,isMobile:j}),!O&&jsxRuntimeExports.jsx(u$1,{blockletSize:H,logoUrl:V})]}),jsxRuntimeExports.jsxs("div",{className:"header-title",children:[j&&F&&jsxRuntimeExports.jsx("div",{className:"header-title-sub",children:F}),jsxRuntimeExports.jsxs("div",{className:"app-name-content",children:[!j&&jsxRuntimeExports.jsx("div",{className:"launching-context",children:F||i(D)}),jsxRuntimeExports.jsx("div",{className:`header-title-name ${K==="middle"||K==="small"?"middle-size":""}`,ref:G,children:jsxRuntimeExports.jsx(w$2,{logoUrl:V,isMobile:j,blockletMeta:C,blockletSize:H,loading:O})})]})]})]})}T.propTypes={blockletMeta:o.object,subTitle:o.any,logoUrl:o.string,locale:o.string,navLogo:o.any,loading:o.bool};function I({blockletSize:C,isMobile:F}){return F?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:C,height:C})}function u$1({logoUrl:C,blockletSize:F}){return jsxRuntimeExports.jsx(M$1,{width:F,height:F,src:C,alt:"blocklet icon",fallback:S,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${C}`)}function w$2({isMobile:C,logoUrl:F,blockletMeta:V={},blockletSize:D,loading:B}){const O=g$2(V);return B?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):k$1(V)?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):C?jsxRuntimeExports.jsxs(L$1,{children:[jsxRuntimeExports.jsx(u$1,{blockletSize:D,logoUrl:F}),jsxRuntimeExports.jsx("span",{className:"ellipsis-title",children:g$2(V)})]}):jsxRuntimeExports.jsx(E,{className:"app-link",target:"_blank",href:joinUrl(V?.registryUrl||"",`/blocklets/${V?.did}`),title:O,children:O})}const L$1=styled.div`
1
+ import{aF as createSvgIcon,j as jsxRuntimeExports,r as reactExports$1,o,bd as getDefaultExportFromCjs,E as useMediaQuery,s as styled,dm as Skeleton,cQ as M$1,Z as CheckIcon,ay as Tooltip,dG as Button,T as Typography,K as Box,C as CircularProgress,f as useTheme,dA as isObject,e_ as mergeThemeOptions,e$ as StyledEngineProvider,f0 as ThemeProvider,f1 as ThemeProvider$1,f2 as s,Y as o$1,b8 as styled$1,f3 as CloseIcon,cF as Buffer,be as U,bF as __vitePreload,dF as noop,dc as l$2}from"./index-BP_3yzJi.js";import{j as joinUrl}from"./url-join-DFG6aoVo.js";const l$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"})),d$2=createSvgIcon([jsxRuntimeExports.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),jsxRuntimeExports.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),k$2=reactExports$1.createContext(),{Provider:w$3}=k$2,d$1=(C,F,V=window.location.pathname.replace(/\/$/,"/"))=>C?F?C===V:new RegExp(C).test(V):!1;function P({children:C,steps:F,mode:V="history"}){const[D,B]=reactExports$1.useState("");!D&&F.length&&B(F[0].key);const O=F.map(X=>X.children?[{key:X.key,hasChild:!0},X.children.map(at=>({parentKey:X.key,key:at.key}))]:{key:X.key}).flat(1/0),j=O.filter(X=>!X.hasChild),H=X=>{let at;const rt=O.findIndex(ft=>ft.key===D?(at=ft.parentKey,!0):!1);if(at===X)return"current";const tt=O.findIndex(ft=>ft.key===X);if(tt!==-1){if(tt===rt)return"current";if(tt<rt)return"before"}return"after"};function G(X){B(X)}function K(X){if(typeof X=="function"){const at=X(j.findIndex(rt=>rt.key===D));B(j[at].key)}else B(j[X].key)}const it=j.findIndex(X=>X.key===D);reactExports$1.useEffect(()=>{if(V==="history"){let X="";F.some(at=>at.children&&at.children.length?at.children.some(rt=>d$1(rt.path,rt.exact)?(X=rt.key,!0):!1):d$1(at.path,at.exact)?(X=at.key,!0):!1),X&&B(X)}return()=>{}},[F,V]);const ot={steps:F,totalStepsCount:j.length,getStepStatus:H,setActiveStepByKey:G,setActiveStepByIndex:K,activeStep:it,canBackToStep:X=>V==="memory"&&it!==0&&X<it};return jsxRuntimeExports.jsx(w$3,{value:ot,children:C})}function T$1(){return reactExports$1.use(k$2)}P.propTypes={children:o.any.isRequired,steps:o.array.isRequired,mode:o.string};var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=Object.prototype.hasOwnProperty,F=Object.prototype.toString;function V(D){if(D==null)return!0;if(typeof D=="boolean")return!1;if(typeof D=="number")return D===0;if(typeof D=="string"||typeof D=="function"||Array.isArray(D))return D.length===0;if(D instanceof Error)return D.message==="";if(D.toString==F)switch(D.toString()){case"[object File]":case"[object Map]":case"[object Set]":return D.size===0;case"[object Object]":{for(var B in D)if(C.call(D,B))return!1;return!0}}return!1}return lib=V,lib}var libExports=requireLib();const k$1=getDefaultExportFromCjs(libExports),S=""+new URL("blocklet-default-logo-Bspnu_ws.png",import.meta.url).href,t$1={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},a$1=C=>t$1[C]?t$1[C]:t$1.en,i=C=>C==="zh"?"启动":"Launching",g$2=C=>C?.title||C?.name||"";function T({blockletMeta:C={},subTitle:F="",logoUrl:V="",locale:D="",navLogo:B="",loading:O=!1}){const j=useMediaQuery(ot=>ot.breakpoints.down("md")),H=j?18:48,G=reactExports$1.useRef(null),[K,it]=reactExports$1.useState("");return reactExports$1.useEffect(()=>{G.current&&G.current.offsetHeight>34&&(K===""?it("middle"):K==="middle"&&it("small"))},[K]),jsxRuntimeExports.jsxs(R,{className:K==="small"?"center-mode":"",children:[j?jsxRuntimeExports.jsx("div",{className:"app-icon",children:B}):jsxRuntimeExports.jsxs("div",{className:"app-icon",children:[O&&jsxRuntimeExports.jsx(I,{blockletSize:H,isMobile:j}),!O&&jsxRuntimeExports.jsx(u$1,{blockletSize:H,logoUrl:V})]}),jsxRuntimeExports.jsxs("div",{className:"header-title",children:[j&&F&&jsxRuntimeExports.jsx("div",{className:"header-title-sub",children:F}),jsxRuntimeExports.jsxs("div",{className:"app-name-content",children:[!j&&jsxRuntimeExports.jsx("div",{className:"launching-context",children:F||i(D)}),jsxRuntimeExports.jsx("div",{className:`header-title-name ${K==="middle"||K==="small"?"middle-size":""}`,ref:G,children:jsxRuntimeExports.jsx(w$2,{logoUrl:V,isMobile:j,blockletMeta:C,blockletSize:H,loading:O})})]})]})]})}T.propTypes={blockletMeta:o.object,subTitle:o.any,logoUrl:o.string,locale:o.string,navLogo:o.any,loading:o.bool};function I({blockletSize:C,isMobile:F}){return F?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:C,height:C})}function u$1({logoUrl:C,blockletSize:F}){return jsxRuntimeExports.jsx(M$1,{width:F,height:F,src:C,alt:"blocklet icon",fallback:S,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${C}`)}function w$2({isMobile:C,logoUrl:F,blockletMeta:V={},blockletSize:D,loading:B}){const O=g$2(V);return B?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):k$1(V)?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):C?jsxRuntimeExports.jsxs(L$1,{children:[jsxRuntimeExports.jsx(u$1,{blockletSize:D,logoUrl:F}),jsxRuntimeExports.jsx("span",{className:"ellipsis-title",children:g$2(V)})]}):jsxRuntimeExports.jsx(E,{className:"app-link",target:"_blank",href:joinUrl(V?.registryUrl||"",`/blocklets/${V?.did}`),title:O,children:O})}const L$1=styled.div`
2
2
  .ellipsis-title {
3
3
  flex: 1;
4
4
  position: absolute;
@@ -0,0 +1 @@
1
+ import{c1 as c,r as S,cs as _,h1 as f,cS as r}from"./index-BP_3yzJi.js";var d=function(n){var s=c(S.useState(n),2),u=s[0],o=s[1],i=_(function(t){o(function(e){var a=f(t)?t(e):t;return a?r(r({},e),a):e})});return[u,i]};export{d as u};
@@ -1 +1 @@
1
- import{A as g,bm as v,u as y,j as r,O as f,S as x,Q as h}from"./index-a-ikX8qX.js";import{L as S,D as j}from"./download-DkusPKGH.js";import{u as L}from"./useLocalStorage-BZqfD-Zc.js";import"./ButtonGroup-tq0Nh3v_.js";import"./getValidReactChildren-CLYm2ELr.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{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(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
1
+ import{A as g,bm as v,u as y,j as r,O as f,S as x,Q as h}from"./index-BP_3yzJi.js";import{L as S,D as j}from"./download-C4q8sxrx.js";import{u as L}from"./useLocalStorage-BtMOuUTW.js";import"./ButtonGroup-BzY0m5Bm.js";import"./getValidReactChildren-DYIY0OXY.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{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(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
@@ -1,4 +1,4 @@
1
- import{bd as c}from"./index-a-ikX8qX.js";var n={exports:{}};/*!
1
+ import{bd as c}from"./index-BP_3yzJi.js";var n={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,4 +1,4 @@
1
- import{u as k,j as o,C as N,ax as U,cU as W,A as b,V as E,cJ as _,r,aW as D,h as d,y as x,ak as P,ae as R,w as O,aH as A,x as $,aw as H,bx as K,s as V}from"./index-a-ikX8qX.js";import{I as z}from"./invitation-Bx5fJbWJ.js";import"./index-COIC4mfj.js";import"./index-CIIax0-r.js";import"./emotion-cache.browser.esm-B6zIYIHc.js";import"./sdk-B8yMOC2O.js";import"./wrap-locale-0qkKZCSZ.js";import"./index-CQ0SkU_t.js";function J(h){const{api:i,session:p}=U(),{info:s}=k(),c=W(),v=b(),{t:l,locale:m}=E(),{encryptKey:y,decrypt:C}=_(),[I,g]=r.useState(!1),f=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),a=D(async()=>{if(!f)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:f}}),t=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(t){const u=new URL(window.location.href);u.pathname=x(P(),"/api/did/invite/token"),u.searchParams.set("_ek_",y),u.searchParams.set("inviteId",f);const{data:F}=await i.get(u.href);e=F}return{invitation:n,nextWorkflow:e,needReceiveNFT:t}}),L=r.useCallback(()=>{g(!0)},[]),S=r.useCallback(()=>{if(a.error)throw a.error;return a.value.invitation},[a]),w=r.useCallback(async e=>{e&&(Object.prototype.hasOwnProperty.call(e,"encrypted")&&!e.encrypted?R(e.sessionToken):R(C(e.sessionToken)));const n=new URLSearchParams(c.search);n.delete("inviteId");const t=n.toString();await p.refresh(),v(`/${t&&`?${t}`}`,{replace:!0})},[c,v,p]);if(a.loading)return o.jsx(N,{});const T=()=>{const e=new URL(window.location.href);e.pathname=x(P(),"/api/did/invite/status"),e.searchParams.set("_t_",a.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:t}=await i.get(e.href);t.status==="succeed"&&(clearInterval(n),p.updateConnectedInfo(t),w(t))},2e3)},j=()=>{g(!1)};return o.jsxs(M,{className:"page-invite",children:[d(a,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:I,locale:m,baseUrl:s.launcher.url,checkFn:H.create({baseURL:s.launcher.url}).get,onSuccess:T,onClose:j,checkTimeout:5*60*1e3,webWalletUrl:$(s),extraParams:{nw:d(a,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:`${A.WELLKNOWN_SERVICE_PATH_PREFIX}/api/did`}),o.jsx(z,{...h,getDataFn:S,createPassportSvg:e=>K(e,s),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(a,"value.needReceiveNFT")?L:null})]})}const M=V.div`
1
+ import{u as k,j as o,C as N,ax as U,cU as W,A as b,V as E,cJ as _,r,aW as D,h as d,y as x,ak as P,ae as R,w as O,aH as A,x as $,aw as H,bx as K,s as V}from"./index-BP_3yzJi.js";import{I as z}from"./invitation-Bu-Z_6a9.js";import"./index-D7zK_I5F.js";import"./index-BFyKBu2e.js";import"./emotion-cache.browser.esm-CM3rWGOI.js";import"./sdk-sMiVo-LP.js";import"./wrap-locale-BSWFXfCh.js";import"./index-D1rIiJm2.js";function J(h){const{api:i,session:p}=U(),{info:s}=k(),c=W(),v=b(),{t:l,locale:m}=E(),{encryptKey:y,decrypt:C}=_(),[I,g]=r.useState(!1),f=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),a=D(async()=>{if(!f)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:f}}),t=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(t){const u=new URL(window.location.href);u.pathname=x(P(),"/api/did/invite/token"),u.searchParams.set("_ek_",y),u.searchParams.set("inviteId",f);const{data:F}=await i.get(u.href);e=F}return{invitation:n,nextWorkflow:e,needReceiveNFT:t}}),L=r.useCallback(()=>{g(!0)},[]),S=r.useCallback(()=>{if(a.error)throw a.error;return a.value.invitation},[a]),w=r.useCallback(async e=>{e&&(Object.prototype.hasOwnProperty.call(e,"encrypted")&&!e.encrypted?R(e.sessionToken):R(C(e.sessionToken)));const n=new URLSearchParams(c.search);n.delete("inviteId");const t=n.toString();await p.refresh(),v(`/${t&&`?${t}`}`,{replace:!0})},[c,v,p]);if(a.loading)return o.jsx(N,{});const T=()=>{const e=new URL(window.location.href);e.pathname=x(P(),"/api/did/invite/status"),e.searchParams.set("_t_",a.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:t}=await i.get(e.href);t.status==="succeed"&&(clearInterval(n),p.updateConnectedInfo(t),w(t))},2e3)},j=()=>{g(!1)};return o.jsxs(M,{className:"page-invite",children:[d(a,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:I,locale:m,baseUrl:s.launcher.url,checkFn:H.create({baseURL:s.launcher.url}).get,onSuccess:T,onClose:j,checkTimeout:5*60*1e3,webWalletUrl:$(s),extraParams:{nw:d(a,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:`${A.WELLKNOWN_SERVICE_PATH_PREFIX}/api/did`}),o.jsx(z,{...h,getDataFn:S,createPassportSvg:e=>K(e,s),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(a,"value.needReceiveNFT")?L:null})]})}const M=V.div`
2
2
  width: 100vw;
3
3
  height: 100%;
4
4
  min-height: 100vh;
@@ -1,4 +1,4 @@
1
- import{aF as je,j as e,u as Q,r as h,e as Oe,aG as Ur,aH as k,aI as zr,aJ as an,aK as Gn,aL as sn,aM as et,V as z,ac as le,s as ne,aN as ln,o as p,aO as Br,aP as cn,aQ as Mr,H as re,M as dn,T as A,t as q,ay as fe,aR as _e,C as K,U as be,v as Y,aS as Kn,X as pe,K as W,p as Mt,N as tt,aT as Wr,d as Wt,aU as Ie,aV as me,a9 as qr,aW as Hr,aX as Gr,y as Kr,A as Vn,W as un,g as mn,h as te,aY as qt,a as Et,Q as X,b as ct,aZ as Yn,a_ as Xn,R as Qn,a3 as Pt,a$ as Vr,b0 as Yr,b1 as Xr,b2 as Qr,b3 as nt,i as fn,b4 as Zr,aE as Ge,b5 as Jr,a8 as jt,a5 as wt,b6 as ei,a6 as _t,L as Ht,I as ti,b7 as ni,b8 as Zn,a7 as ri,b9 as Jn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as er,D as At,f as tr,bf as ai,bg as pn,aj as si,bh as li,bi as ee,bj as ci,S as gn,l as hn,m as xn,bk as di,bl as ui,bm as mi}from"./index-a-ikX8qX.js";import{u as fi,T as pi}from"./html-title-tKNU_Rtx.js";import{A as gi}from"./ArrowDropDown-CcrV0tiH.js";import{u as Kt,C as B,a as yn}from"./index.esm-C68-NEl-.js";import{S as ae}from"./switch-control-BH-qYrQR.js";import{P as ie}from"./permission-RfVjqk52.js";import{H as nr,g as hi}from"./index-BZcXgg1f.js";import{A as rr}from"./Link-BK8YXXF_.js";import{D as ve,R as ir,a as It,b as xi}from"./url-evaluation-BAHeyVsk.js";import{D as dt}from"./delete-confirm-CnyGQRfQ.js";import{v as rt}from"./index-DDNKwY4t.js";import{s as yi}from"./logo-BKA11TRi.js";import{u as bi}from"./useLocalStorage-BZqfD-Zc.js";import{R as vi}from"./Refresh-BhIn23eh.js";import{L as ji}from"./LoadingButton-9eB2P6Ae.js";import{C as wi,R as Ci,P as or,S as Si}from"./rotate-session-key-CLwZduLH.js";import{A as Le}from"./Add-oTaGbrkV.js";import{B as ar,D as bn,W as Ke}from"./status-B8DVt36w.js";import{i as Di}from"./is-path-prefix-equal-BOPF5jBD.js";import{N as ki}from"./ChevronRight-C0CpxIjv.js";import{I as Ri}from"./MoreVert-YtAOv_qU.js";import{E as sr}from"./Edit-CzPcXUlF.js";import{A as Ti}from"./CallMerge-nc7JkPt-.js";import{C as Ei}from"./CardContent-BkZ_t1Fl.js";import"./Switch-Z9woRMgA.js";import"./FilterList-B4eWQJqn.js";import"./CSSTransition-BQVtCcwc.js";import"./emotion-cache.browser.esm-B6zIYIHc.js";import"./index-AN9pUzEg.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BiEXsNqn.js";import"./index-nCWPxDgy.js";import"./TableSearch-CaXXTSiF.js";import"./Search-B9XObekn.js";import"./Clear-DkN0yn0u.js";import"./click-to-copy-iYXC5-cD.js";import"./visuallyHidden-Dan1xhjv.js";const Pi=je(e.jsx("path",{d:"m7 14 5-5 5 5z"})),_i=je(e.jsx("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"})),Ai=je(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),lr=je(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Ii=je(e.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),Li=je(e.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),Fi=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",cr=h.createContext({}),{Provider:Oi,Consumer:as}=cr,vn=[ye,k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP],Ni=(t,r)=>{if(t.name===k.DOMAIN_FOR_DEFAULT_SITE)return-1;if(r.name===k.DOMAIN_FOR_DEFAULT_SITE)return 1;const n=vn.includes(t.name),i=vn.includes(r.name);return n&&i?sn(t.name,r.name):n?-1:i?1:sn(t.name,r.name)},$i=({sites:t,nodePort:r})=>{const n=window.location.hostname,a=(t||[]).map(o=>{const{id:s,rules:u=[],corsAllowedOrigins:m=[]}=o;let{domain:d,domainAliases:c}=o;c=c||[],[k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ye,c.find(y=>y.value===n)||c.unshift({protected:!1,value:n}));const w={id:s,name:d,type:"domain",items:[],domainAliases:c,isProtected:o.isProtected,corsAllowedOrigins:m};return(u||[]).forEach(y=>{const{id:C,isProtected:E,from:{pathPrefix:j},to:D}=y;if(D.type===k.ROUTING_RULE_TYPES.BLOCKLET){let S="";Number.parseInt(D.port,10)===Number.parseInt(r,10)?(S="Blocklet Server Dashboard",D.type=k.ROUTING_RULE_TYPES.DAEMON):S=D.did,w.items.push({id:C,name:an(j||"/"),title:S,type:"rule",isProtected:E,pathPrefix:j,to:D})}else w.items.push({id:C,pathPrefix:j,name:an(j||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:E,to:D})}),w.items=Gn(w.items,y=>y.name),w}).sort(Ni),l=a.reduce((o,s)=>{let{name:u}=s;return u.endsWith(k.BLOCKLET_SITE_GROUP_SUFFIX)&&([u]=u.split(".")),o[u]={...s,rules:s.items},o},{});return{sites:a,siteMap:l}},Ui=({did:t,domain:r,mountPoint:n,siteMap:i,params:a}={})=>{if(!i)return null;const l=i[t];if(!l)return null;const o=r||(l.domainAliases||[])[0];if(!o)return null;let s=n;if(!s){const u=l.rules.filter(m=>!m.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];s=u?u.name:"/"}return et(o.value,s,a)},zi=({did:t,mountPoint:r,siteMap:n,params:i}={})=>{if(!n)return[];const a=n[t];if(!a)return[];const l=a.domainAliases||[];if(!l.length)return[];let o=r;if(!o){const s=a.rules.filter(u=>!u.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];o=s?s.name:"/"}return l.map(s=>et(s.value,o,i))},Bi=t=>{const r=t.map(i=>i.domain).filter(i=>![k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE].includes(i));let n=[];return t.forEach(i=>n.push(...i.domainAliases||[])),n=n.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:r,domainsAliases:n}};function jn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Oe(async()=>{const{sites:P}=await r.getRoutingSites({input:{snapshotHash:""}}),v=P||[];await Promise.all(v.map(async g=>(g.domainAliases=await Ur(g.domainAliases,{getIP:zr}),g)));const f=Bi(v);a(v),o(f.domains),u([window.location.hostname,...f.domains,...f.domainsAliases.map(g=>g.value)])},[n]),d=(P,v)=>{a(f=>f.map(g=>g.id===P?v.domain?v:{...v,domain:g.domain}:g))},c=P=>r.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(P)}}),w=async P=>{const v=await r.addRoutingSite({input:P});a(i.concat(v.site))},y=async(P,v)=>{const f=await r.updateRoutingSite({input:{id:P,...v}});if(f.site&&f.site.id){const g=i.findIndex(R=>R.id===f.site.id);g!==-1&&(i.splice(g,1,f.site),a([].concat(i)))}},C=async P=>{await r.deleteRoutingSite({input:{id:P}}),a(i.filter(v=>v.id!==P))},E=async(P,v,f)=>{const g=await r.addDomainAlias({input:{id:P,domainAlias:v,force:f}});d(P,g.site)},j=async(P,v)=>{const f=await r.deleteDomainAlias({input:{id:P,domainAlias:v}});d(P,f.site)},D=async(P,v)=>{const{site:f}=await r.addRoutingRule({input:{id:P,rule:v}});d(P,f)},S=async(P,v)=>{const{site:f}=await r.updateRoutingRule({input:{id:P,rule:v}});d(P,f)},b=async(P,v)=>{const{site:f}=await r.deleteRoutingRule({input:{id:P,ruleId:v}});d(P,f)},x={loading:m.loading,error:m.error,refresh:m.retry,api:r,actions:{addSite:w,updateSite:y,deleteSite:C,addDomainAlias:E,deleteDomainAlias:j,takeSnapshot:c,addRule:D,updateRule:S,deleteRule:b}},{sites:L,siteMap:F}=$i({sites:i,nodePort:n.port});return x.sites=L,x.siteMap=F,x.domains=l,x.allDomains=s,x.getBlockletUrl=({did:P,domain:v,mountPoint:f,params:g})=>Ui({did:P,domain:v,mountPoint:f,siteMap:x.siteMap,params:g}),x.getBlockletUrls=({did:P,mountPoint:v,params:f})=>zi({did:P,mountPoint:v,siteMap:x.siteMap,params:f}),e.jsx(Oi,{value:{routing:x},children:t})}function de(){const{routing:t}=h.useContext(cr);return t}function Vt(t){const r=[k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE,k.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&r.push(window.location.hostname),r.includes(t)}function Mi(){return null}function dr({confirm:t=null}){const[r,n]=h.useState(null),{t:i}=z(),a=()=>{n(null)},l=async s=>{if(s){let u=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";u==="/"?ln.push(`${s.pathname}`):(u.endsWith("/")&&(u=u.substring(0,u.length-1)),ln.push(`${u}${s.pathname}`)),window.location.reload()}},o=(s,...u)=>{let m=typeof t=="function"?t(s,...u):t;return m?(typeof m=="string"&&(m={description:m}),n({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>l(s),onCancel:()=>a(),...m}),!1):!0};return e.jsxs(Wi,{children:[e.jsx(Mi,{message:o}),r&&e.jsx(le,{title:r.title,description:r.description,confirm:r.confirm,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}dr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Wi=ne.div`
1
+ import{aF as je,j as e,u as Q,r as h,e as Oe,aG as Ur,aH as k,aI as zr,aJ as an,aK as Gn,aL as sn,aM as et,V as z,ac as le,s as ne,aN as ln,o as p,aO as Br,aP as cn,aQ as Mr,H as re,M as dn,T as A,t as q,ay as fe,aR as _e,C as K,U as be,v as Y,aS as Kn,X as pe,K as W,p as Mt,N as tt,aT as Wr,d as Wt,aU as Ie,aV as me,a9 as qr,aW as Hr,aX as Gr,y as Kr,A as Vn,W as un,g as mn,h as te,aY as qt,a as Et,Q as X,b as ct,aZ as Yn,a_ as Xn,R as Qn,a3 as Pt,a$ as Vr,b0 as Yr,b1 as Xr,b2 as Qr,b3 as nt,i as fn,b4 as Zr,aE as Ge,b5 as Jr,a8 as jt,a5 as wt,b6 as ei,a6 as _t,L as Ht,I as ti,b7 as ni,b8 as Zn,a7 as ri,b9 as Jn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as er,D as At,f as tr,bf as ai,bg as pn,aj as si,bh as li,bi as ee,bj as ci,S as gn,l as hn,m as xn,bk as di,bl as ui,bm as mi}from"./index-BP_3yzJi.js";import{u as fi,T as pi}from"./html-title-Dn6dcUNY.js";import{A as gi}from"./ArrowDropDown-BE2KXAeo.js";import{u as Kt,C as B,a as yn}from"./index.esm-nOtJO4v_.js";import{S as ae}from"./switch-control-GGFX9bQ4.js";import{P as ie}from"./permission-Daz7Q6e4.js";import{H as nr,g as hi}from"./index-Slk1_oRp.js";import{A as rr}from"./Link-A0zwVhyE.js";import{D as ve,R as ir,a as It,b as xi}from"./url-evaluation-jOAY9l7I.js";import{D as dt}from"./delete-confirm-DMlJeTQr.js";import{v as rt}from"./index-3JZF7x-6.js";import{s as yi}from"./logo-BKA11TRi.js";import{u as bi}from"./useLocalStorage-BtMOuUTW.js";import{R as vi}from"./Refresh-RtawK6HB.js";import{L as ji}from"./LoadingButton-CXBAZmF0.js";import{C as wi,R as Ci,P as or,S as Si}from"./rotate-session-key-95kTDLbh.js";import{A as Le}from"./Add-DfGYpxFm.js";import{B as ar,D as bn,W as Ke}from"./status-CF62mz8d.js";import{i as Di}from"./is-path-prefix-equal-DO1WqLCe.js";import{N as ki}from"./ChevronRight-2BVBXVf0.js";import{I as Ri}from"./MoreVert-Tbknuyky.js";import{E as sr}from"./Edit-CNkvRjI_.js";import{A as Ti}from"./CallMerge-BfIBFsVo.js";import{C as Ei}from"./CardContent-CUigBjwz.js";import"./Switch-CHNKBjDP.js";import"./FilterList-NKEkk1oT.js";import"./CSSTransition-Cdv6gm6d.js";import"./emotion-cache.browser.esm-CM3rWGOI.js";import"./index-c79u0RAC.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-uv00espS.js";import"./index-CR_y7rX_.js";import"./TableSearch-DsG-D7tf.js";import"./Search-CkTyydL2.js";import"./Clear-CP7nsG13.js";import"./click-to-copy-BwGJ4fhm.js";import"./visuallyHidden-Dan1xhjv.js";const Pi=je(e.jsx("path",{d:"m7 14 5-5 5 5z"})),_i=je(e.jsx("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"})),Ai=je(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),lr=je(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Ii=je(e.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),Li=je(e.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),Fi=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",cr=h.createContext({}),{Provider:Oi,Consumer:as}=cr,vn=[ye,k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP],Ni=(t,r)=>{if(t.name===k.DOMAIN_FOR_DEFAULT_SITE)return-1;if(r.name===k.DOMAIN_FOR_DEFAULT_SITE)return 1;const n=vn.includes(t.name),i=vn.includes(r.name);return n&&i?sn(t.name,r.name):n?-1:i?1:sn(t.name,r.name)},$i=({sites:t,nodePort:r})=>{const n=window.location.hostname,a=(t||[]).map(o=>{const{id:s,rules:u=[],corsAllowedOrigins:m=[]}=o;let{domain:d,domainAliases:c}=o;c=c||[],[k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ye,c.find(y=>y.value===n)||c.unshift({protected:!1,value:n}));const w={id:s,name:d,type:"domain",items:[],domainAliases:c,isProtected:o.isProtected,corsAllowedOrigins:m};return(u||[]).forEach(y=>{const{id:C,isProtected:E,from:{pathPrefix:j},to:D}=y;if(D.type===k.ROUTING_RULE_TYPES.BLOCKLET){let S="";Number.parseInt(D.port,10)===Number.parseInt(r,10)?(S="Blocklet Server Dashboard",D.type=k.ROUTING_RULE_TYPES.DAEMON):S=D.did,w.items.push({id:C,name:an(j||"/"),title:S,type:"rule",isProtected:E,pathPrefix:j,to:D})}else w.items.push({id:C,pathPrefix:j,name:an(j||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:E,to:D})}),w.items=Gn(w.items,y=>y.name),w}).sort(Ni),l=a.reduce((o,s)=>{let{name:u}=s;return u.endsWith(k.BLOCKLET_SITE_GROUP_SUFFIX)&&([u]=u.split(".")),o[u]={...s,rules:s.items},o},{});return{sites:a,siteMap:l}},Ui=({did:t,domain:r,mountPoint:n,siteMap:i,params:a}={})=>{if(!i)return null;const l=i[t];if(!l)return null;const o=r||(l.domainAliases||[])[0];if(!o)return null;let s=n;if(!s){const u=l.rules.filter(m=>!m.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];s=u?u.name:"/"}return et(o.value,s,a)},zi=({did:t,mountPoint:r,siteMap:n,params:i}={})=>{if(!n)return[];const a=n[t];if(!a)return[];const l=a.domainAliases||[];if(!l.length)return[];let o=r;if(!o){const s=a.rules.filter(u=>!u.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];o=s?s.name:"/"}return l.map(s=>et(s.value,o,i))},Bi=t=>{const r=t.map(i=>i.domain).filter(i=>![k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE].includes(i));let n=[];return t.forEach(i=>n.push(...i.domainAliases||[])),n=n.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:r,domainsAliases:n}};function jn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Oe(async()=>{const{sites:P}=await r.getRoutingSites({input:{snapshotHash:""}}),v=P||[];await Promise.all(v.map(async g=>(g.domainAliases=await Ur(g.domainAliases,{getIP:zr}),g)));const f=Bi(v);a(v),o(f.domains),u([window.location.hostname,...f.domains,...f.domainsAliases.map(g=>g.value)])},[n]),d=(P,v)=>{a(f=>f.map(g=>g.id===P?v.domain?v:{...v,domain:g.domain}:g))},c=P=>r.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(P)}}),w=async P=>{const v=await r.addRoutingSite({input:P});a(i.concat(v.site))},y=async(P,v)=>{const f=await r.updateRoutingSite({input:{id:P,...v}});if(f.site&&f.site.id){const g=i.findIndex(R=>R.id===f.site.id);g!==-1&&(i.splice(g,1,f.site),a([].concat(i)))}},C=async P=>{await r.deleteRoutingSite({input:{id:P}}),a(i.filter(v=>v.id!==P))},E=async(P,v,f)=>{const g=await r.addDomainAlias({input:{id:P,domainAlias:v,force:f}});d(P,g.site)},j=async(P,v)=>{const f=await r.deleteDomainAlias({input:{id:P,domainAlias:v}});d(P,f.site)},D=async(P,v)=>{const{site:f}=await r.addRoutingRule({input:{id:P,rule:v}});d(P,f)},S=async(P,v)=>{const{site:f}=await r.updateRoutingRule({input:{id:P,rule:v}});d(P,f)},b=async(P,v)=>{const{site:f}=await r.deleteRoutingRule({input:{id:P,ruleId:v}});d(P,f)},x={loading:m.loading,error:m.error,refresh:m.retry,api:r,actions:{addSite:w,updateSite:y,deleteSite:C,addDomainAlias:E,deleteDomainAlias:j,takeSnapshot:c,addRule:D,updateRule:S,deleteRule:b}},{sites:L,siteMap:F}=$i({sites:i,nodePort:n.port});return x.sites=L,x.siteMap=F,x.domains=l,x.allDomains=s,x.getBlockletUrl=({did:P,domain:v,mountPoint:f,params:g})=>Ui({did:P,domain:v,mountPoint:f,siteMap:x.siteMap,params:g}),x.getBlockletUrls=({did:P,mountPoint:v,params:f})=>zi({did:P,mountPoint:v,siteMap:x.siteMap,params:f}),e.jsx(Oi,{value:{routing:x},children:t})}function de(){const{routing:t}=h.useContext(cr);return t}function Vt(t){const r=[k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE,k.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&r.push(window.location.hostname),r.includes(t)}function Mi(){return null}function dr({confirm:t=null}){const[r,n]=h.useState(null),{t:i}=z(),a=()=>{n(null)},l=async s=>{if(s){let u=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";u==="/"?ln.push(`${s.pathname}`):(u.endsWith("/")&&(u=u.substring(0,u.length-1)),ln.push(`${u}${s.pathname}`)),window.location.reload()}},o=(s,...u)=>{let m=typeof t=="function"?t(s,...u):t;return m?(typeof m=="string"&&(m={description:m}),n({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>l(s),onCancel:()=>a(),...m}),!1):!0};return e.jsxs(Wi,{children:[e.jsx(Mi,{message:o}),r&&e.jsx(le,{title:r.title,description:r.description,confirm:r.confirm,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}dr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Wi=ne.div`
2
2
  margin-bottom: 24px;
3
3
  .top-btns-alert {
4
4
  @media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {