@abtnode/webapp 1.16.29-beta-a3a3b40e → 1.16.29-beta-bc7cae11

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 (176) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-pKyUqZnX.js → Add-DHT1BmpU.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DLOk2hQn.js → ArrowDropDown-CoMTzwBc.js} +1 -1
  5. package/dist/assets/{Autocomplete-CQa-Zchq.js → Autocomplete-A8Z79qxo.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-C09hLyvm.js → Breadcrumbs-CcJID0EV.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DvSv45rY.js → ButtonGroup-p-dtPOIG.js} +1 -1
  8. package/dist/assets/{CheckCircle-Bve-EbH9.js → CheckCircle-BGBDVkHr.js} +1 -1
  9. package/dist/assets/{ChevronLeft-D5neZMm8.js → ChevronLeft-DiFPV2W8.js} +1 -1
  10. package/dist/assets/{ChevronRight-AF3Oi76r.js → ChevronRight-DxJ4IkMu.js} +1 -1
  11. package/dist/assets/{Close-iwCCyAvr.js → Close-BCm-1liL.js} +1 -1
  12. package/dist/assets/{Delete-BG_3zNXs.js → Delete-BtIq7u3G.js} +1 -1
  13. package/dist/assets/{DeleteOutline-B-Jo5P14.js → DeleteOutline-B1gxUgUS.js} +1 -1
  14. package/dist/assets/{Done-BrZXmjmM.js → Done-CR5VsgSe.js} +1 -1
  15. package/dist/assets/{Edit-O84hGgRU.js → Edit-CMhofwBs.js} +1 -1
  16. package/dist/assets/{EditIcon-BG6ATkhr.js → EditIcon-D8g8gBrz.js} +1 -1
  17. package/dist/assets/{ExpandMore-BVacVg2T.js → ExpandMore-Bs-B9jii.js} +1 -1
  18. package/dist/assets/{FilterList-1kvLdh4X.js → FilterList-BNXU5va-.js} +1 -1
  19. package/dist/assets/{Google-CehXTW1E.js → Google-BhsRtrWx.js} +1 -1
  20. package/dist/assets/{Https-MDLWGRiI.js → Https-C-Hv6aEl.js} +1 -1
  21. package/dist/assets/{InputAdornment-BbPdWxkf.js → InputAdornment-BtvTyFWz.js} +1 -1
  22. package/dist/assets/{InputLabel-SPUYdufd.js → InputLabel-DjG6Kr8Z.js} +1 -1
  23. package/dist/assets/{LastPage-DhmYZtKl.js → LastPage-SBfYaqmq.js} +1 -1
  24. package/dist/assets/{Launch-3iAwD2-o.js → Launch-DuMWKMQ-.js} +1 -1
  25. package/dist/assets/{Link-kfMD43M4.js → Link-CekOKh9K.js} +1 -1
  26. package/dist/assets/{LoadingButton-BdU2PA2v.js → LoadingButton-BUafZiib.js} +1 -1
  27. package/dist/assets/{LockIcon-COOR_19Z.js → LockIcon-DmUgwyLN.js} +1 -1
  28. package/dist/assets/{Loop-DJNY6Gly.js → Loop-BSoG3XC7.js} +1 -1
  29. package/dist/assets/{MoreVert-DqLb0IvW.js → MoreVert-EAOb9Otm.js} +1 -1
  30. package/dist/assets/{Pagination-DWwZRsY-.js → Pagination-nwXb0kOk.js} +1 -1
  31. package/dist/assets/{Public-Cnl0uk6R.js → Public-Bjjujhg5.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-FI5ZcmKj.js → SchemaReference.es-DwJgk3Fp.js} +1 -1
  33. package/dist/assets/{Search-zQ1-xKEI.js → Search-BZljlGCA.js} +1 -1
  34. package/dist/assets/{Select-DznafFqO.js → Select--7f2BqZZ.js} +1 -1
  35. package/dist/assets/{Skeleton-C8dMhHy4.js → Skeleton-lV_NV9wn.js} +1 -1
  36. package/dist/assets/{Slider-D4WWBNJB.js → Slider-DnjJDyEG.js} +1 -1
  37. package/dist/assets/{Stepper-W9Yp8FdW.js → Stepper-tz1dBGzu.js} +1 -1
  38. package/dist/assets/{TextField-Bhm-pGTt.js → TextField-DUcd2awI.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-DeT17l8h.js → ToggleButtonGroup-DS6uOwhX.js} +1 -1
  40. package/dist/assets/{ViewList-Br9JJqgO.js → ViewList-BZYBXK5G.js} +1 -1
  41. package/dist/assets/{actions-DYuHxkf6.js → actions-CgLiQCtD.js} +1 -1
  42. package/dist/assets/{actions-BXtydwk9.js → actions-RKP3vo8K.js} +1 -1
  43. package/dist/assets/{agreement-Cm12LJFQ.js → agreement-enH8Rnq3.js} +1 -1
  44. package/dist/assets/api-C4DyYK3U.js +1 -0
  45. package/dist/assets/{app-avatar--K_t_Plu.js → app-avatar-BAnyrYAV.js} +1 -1
  46. package/dist/assets/{audit-logs-B4r39ka6.js → audit-logs-CcXDA-8F.js} +1 -1
  47. package/dist/assets/blocklet-Cotqz0Dc.js +1 -0
  48. package/dist/assets/{brace-fold.es-Ba3cjgwk.js → brace-fold.es-4AFFbYxO.js} +1 -1
  49. package/dist/assets/{bundle-avatar-DKdThq9s.js → bundle-avatar-SqYHu17b.js} +1 -1
  50. package/dist/assets/{chart-C-94eWmx.js → chart-BKX-l_ch.js} +1 -1
  51. package/dist/assets/{click-to-copy-C_gleQEN.js → click-to-copy-CbXPc1br.js} +1 -1
  52. package/dist/assets/{closebrackets.es-CmCaLuCp.js → closebrackets.es-DtGAUriJ.js} +1 -1
  53. package/dist/assets/{codemirror.es-l_8ZY7Lh.js → codemirror.es-Bt6QX30Q.js} +1 -1
  54. package/dist/assets/{comment.es-CRv3OQd6.js → comment.es-CLCnhC5j.js} +1 -1
  55. package/dist/assets/{config-navigation-GH8Li2j-.js → config-navigation-BzFomvhG.js} +1 -1
  56. package/dist/assets/{delete-confirm-Ddybjkbg.js → delete-confirm-SS68CnlI.js} +1 -1
  57. package/dist/assets/{detail-HcSHX1RQ.js → detail-CywShuJ0.js} +3 -3
  58. package/dist/assets/{dialog.es-CnBSXVvi.js → dialog.es-C8SYpL_H.js} +1 -1
  59. package/dist/assets/{download-Ckh_QSd4.js → download-DrItFvoj.js} +1 -1
  60. package/dist/assets/{foldgutter.es-DXX4I493.js → foldgutter.es-BjPs4Fp3.js} +1 -1
  61. package/dist/assets/getValidReactChildren-ubnOlTvO.js +1 -0
  62. package/dist/assets/{hint.es-BoJiF4Kl.js → hint.es-By2wTRJE.js} +1 -1
  63. package/dist/assets/{hint.es2-BxUTUC98.js → hint.es2-PDxX0PHU.js} +1 -1
  64. package/dist/assets/{iframe-9dViXCxz.js → iframe-D9rKVHbn.js} +1 -1
  65. package/dist/assets/{index--TkSjE0u.js → index-71oIveYn.js} +1 -1
  66. package/dist/assets/{index-Dzog9V8a.js → index-B7TguHNO.js} +1 -1
  67. package/dist/assets/{index-DYl7Q_eK.js → index-BAdz0p2F.js} +1 -1
  68. package/dist/assets/{index-lpy1TDTa.js → index-BFALk4FU.js} +1 -1
  69. package/dist/assets/{index-BcjQGvz3.js → index-BK9Xhzk0.js} +1 -1
  70. package/dist/assets/{index-rFymmF-6.js → index-BKJH8Ljf.js} +1 -1
  71. package/dist/assets/{index-BUiCzoDM.js → index-BNxPX61z.js} +1 -1
  72. package/dist/assets/{index-CCGu9TL3.js → index-BQie2wYn.js} +3 -3
  73. package/dist/assets/{index-BLi5-33y.js → index-BWuX7Cd0.js} +1 -1
  74. package/dist/assets/{index-C7-D51wU.js → index-BbULZs4k.js} +1 -1
  75. package/dist/assets/{index-D_Mcr8DR.js → index-Bbff6lFp.js} +2 -2
  76. package/dist/assets/{index-BHpKGG76.js → index-BgcrMQZi.js} +1 -1
  77. package/dist/assets/{index-D-sX61_X.js → index-BmHOHyl4.js} +1 -1
  78. package/dist/assets/{index-CCOLrY6y.js → index-BuW4J_e1.js} +1 -1
  79. package/dist/assets/{index-CrLudGXM.js → index-C7zgzm9Y.js} +1 -1
  80. package/dist/assets/{index-BT2YG5dz.js → index-CORPg19z.js} +1 -1
  81. package/dist/assets/{index-Dw0ah9mI.js → index-CQbXLdsW.js} +1 -1
  82. package/dist/assets/{index-BlhbeeNQ.js → index-CWbkg3_P.js} +1 -1
  83. package/dist/assets/{index-DSEcsjSl.js → index-CaxgTIFs.js} +1 -1
  84. package/dist/assets/{index-DDlocpiQ.js → index-ChFzxy2v.js} +1 -1
  85. package/dist/assets/{index-DFzjLfBo.js → index-CjBFbRvN.js} +3 -3
  86. package/dist/assets/{index-DfXfPJxa.js → index-CjIXPSNR.js} +1 -1
  87. package/dist/assets/index-CjUZOJzS.js +309 -0
  88. package/dist/assets/{index-CjRC70vz.js → index-CtNyDUrh.js} +1 -1
  89. package/dist/assets/{index-Da2vIr8N.js → index-CtzBCp-m.js} +29 -29
  90. package/dist/assets/{index-Dt6QXT-d.js → index-CuQNcCwI.js} +1 -1
  91. package/dist/assets/index-DK-Dv6xa.js +54 -0
  92. package/dist/assets/{index-UgBlYd1D.js → index-DMvhk8qS.js} +1 -1
  93. package/dist/assets/{index-gBZtvLTL.js → index-DUbVlGHL.js} +145 -145
  94. package/dist/assets/{index-CPeqPra-.js → index-D_xUS7z8.js} +1 -1
  95. package/dist/assets/{index-Yclle18m.js → index-DdCkW2Qk.js} +1 -1
  96. package/dist/assets/{index-ER8p4lvE.js → index-DeGfvFby.js} +1 -1
  97. package/dist/assets/{index-CJ30BkZM.js → index-Dg-C9bZ4.js} +1 -1
  98. package/dist/assets/{index-Ck4dc4qV.js → index-DtGOT0Vl.js} +5 -5
  99. package/dist/assets/{index-BwjYNlcZ.js → index-DvQ6gbRN.js} +1 -1
  100. package/dist/assets/{index-C4qIP-_F.js → index-Eu-LChoF.js} +1 -1
  101. package/dist/assets/{index-BH9T3JXE.js → index-L4XkSf1N.js} +1 -1
  102. package/dist/assets/index-LGPWiDyt.js +150 -0
  103. package/dist/assets/{index-Cpb-sFNf.js → index-ODkNjWn8.js} +1 -1
  104. package/dist/assets/{index-BjcxSioZ.js → index-P3UyJBTg.js} +1 -1
  105. package/dist/assets/{index-B4OMw3wi.js → index-QEKOZwSp.js} +1 -1
  106. package/dist/assets/{index-CSDwzowm.js → index-f1IZ9dg8.js} +1 -1
  107. package/dist/assets/{index-D3EYYrwn.js → index-mZX4jzPf.js} +1 -1
  108. package/dist/assets/{index-Dhvjh1Ja.js → index-xDdIJhQh.js} +1 -1
  109. package/dist/assets/{index.es-C2o5vtyA.js → index.es-BFWGn6ah.js} +1 -1
  110. package/dist/assets/{index.esm-MEs6trBP.js → index.esm-P4_nl5r8.js} +1 -1
  111. package/dist/assets/{info-addon.es-DaBVewRe.js → info-addon.es-DqoRilDw.js} +1 -1
  112. package/dist/assets/{info.es-EnrVX8VT.js → info.es-n-camSo_.js} +1 -1
  113. package/dist/assets/{install-from-url-BPXWSz02.js → install-from-url-RFOLtB7y.js} +1 -1
  114. package/dist/assets/{invitation-D1e4BUC2.js → invitation-Bd050wNZ.js} +1 -1
  115. package/dist/assets/{is-path-prefix-equal-Inp_MmbW.js → is-path-prefix-equal-DV5WxQ67.js} +1 -1
  116. package/dist/assets/{isEqual-096XH0At.js → isEqual-Btp6AAX2.js} +1 -1
  117. package/dist/assets/{item-WtkPDlnc.js → item-CSX7m5DP.js} +2 -2
  118. package/dist/assets/{javascript.es-Db9u92CP.js → javascript.es-CPN7NnrL.js} +1 -1
  119. package/dist/assets/{jump-to-line.es-B4DYDCQc.js → jump-to-line.es-Dsriw2fo.js} +1 -1
  120. package/dist/assets/{jump.es-D_5OJAvI.js → jump.es-BPAqTdbd.js} +1 -1
  121. package/dist/assets/{line-BBTKuXgG.js → line-BoiZh8Zk.js} +3 -3
  122. package/dist/assets/{lint.es-CPC5HZli.js → lint.es-XOGZmwaW.js} +1 -1
  123. package/dist/assets/{lint.es2-CJa_1JHn.js → lint.es2-x3hBe6d8.js} +1 -1
  124. package/dist/assets/{lint.es3-DtBCdsAP.js → lint.es3-C3XsTgG3.js} +1 -1
  125. package/dist/assets/{list-header-CXVLNW82.js → list-header-jQFD3ypr.js} +1 -1
  126. package/dist/assets/{log-CVqDxZBP.js → log-Cw8PRoUK.js} +1 -1
  127. package/dist/assets/{lottie-D77WzIzs.js → lottie-BwtPPdqV.js} +1 -1
  128. package/dist/assets/{matchbrackets.es-i92Mlh7M.js → matchbrackets.es-haVpPSNZ.js} +1 -1
  129. package/dist/assets/{memory-D-JwjMVG.js → memory-DLzKRTGh.js} +1 -1
  130. package/dist/assets/{mode.es-oco0R2JI.js → mode.es-BhU6QM3o.js} +1 -1
  131. package/dist/assets/{mode.es2-NsH2h82n.js → mode.es2-Cyoe9PGz.js} +1 -1
  132. package/dist/assets/{mode.es3-DDDTQTZ_.js → mode.es3-D9tPjwGh.js} +1 -1
  133. package/dist/assets/{onlineParser.es-B1xlorlh.js → onlineParser.es-EzEyJw_h.js} +1 -1
  134. package/dist/assets/{overview-CoxKKoup.js → overview-DrfQl03Y.js} +1 -1
  135. package/dist/assets/{react-B_JXDT98.js → react-Dk-uO82m.js} +3 -3
  136. package/dist/assets/{redux-CIvT3eos.js → redux-CJG17ek3.js} +1 -1
  137. package/dist/assets/{resource-dialog-Daf0mVPu.js → resource-dialog-Cndve5Eq.js} +1 -1
  138. package/dist/assets/{runtime-COrQwWgs.js → runtime-Z7VgeNjO.js} +1 -1
  139. package/dist/assets/{schema-CAq5igE9.js → schema-BZSUZ-DH.js} +2 -2
  140. package/dist/assets/{search.es-DToTAbGB.js → search.es-DyLU6b9F.js} +1 -1
  141. package/dist/assets/{searchcursor.es-wtv2yXhB.js → searchcursor.es-Cj96ZA2n.js} +1 -1
  142. package/dist/assets/service-D2du6XMd.js +1 -0
  143. package/dist/assets/{shorten-label-HX5HiA5v.js → shorten-label-Djatj--L.js} +1 -1
  144. package/dist/assets/{show-hint.es-DCzo4BsZ.js → show-hint.es-CpaRd7YV.js} +1 -1
  145. package/dist/assets/{slicedToArray-bAsaJQlT.js → slicedToArray-CztpUNF0.js} +1 -1
  146. package/dist/assets/{spaces-D2iB47oL.js → spaces-D7PTPzFU.js} +1 -1
  147. package/dist/assets/{sublime.es-CzLNyX-C.js → sublime.es-BZp3Og8e.js} +1 -1
  148. package/dist/assets/{switch-control-D2PG983M.js → switch-control-CSckEosr.js} +1 -1
  149. package/dist/assets/{table-icons-DKqNQABP.js → table-icons-CXiahsgW.js} +1 -1
  150. package/dist/assets/{tag-OD5kAVwU.js → tag-CVH29rjj.js} +1 -1
  151. package/dist/assets/{team-Cx3ujP3D.js → team-D5kwTzkR.js} +1 -1
  152. package/dist/assets/{toUpper-Bd6pptp4.js → toUpper-yFUfhruF.js} +1 -1
  153. package/dist/assets/{traffic-CfeuJCnk.js → traffic-BCUvPR0c.js} +1 -1
  154. package/dist/assets/{url-evaluation-BJnhShOU.js → url-evaluation-C_0BVWDA.js} +1 -1
  155. package/dist/assets/{url-join-R_hoMPFS.js → url-join-k_qM7sOz.js} +1 -1
  156. package/dist/assets/use-blocklet-info-for-connect-did-spaces-UUaEt6ym.js +1 -0
  157. package/dist/assets/{useLocalStorage-CV1z5zeH.js → useLocalStorage-NuDObGLY.js} +1 -1
  158. package/dist/assets/{useThemeProps-CB62kBuT.js → useThemeProps-7-_Dz0L7.js} +1 -1
  159. package/dist/assets/{util-BoYHAMcK.js → util-ZpkYuDOO.js} +1 -1
  160. package/dist/assets/{wait-container-CfXxXZfc.js → wait-container-C4j5IMPI.js} +1 -1
  161. package/dist/assets/{withStyles-Dp5x5u5h.js → withStyles-B61iiaOI.js} +1 -1
  162. package/dist/assets/{wrap-locale-DHLOopMt.js → wrap-locale-CEL19P5x.js} +1 -1
  163. package/dist/assets/{zh-XzadN7R3.js → zh-DuJ3QKF9.js} +1 -1
  164. package/dist/assets/zh-tw-L8o5R-ra.js +1 -0
  165. package/dist/index.html +1 -1
  166. package/dist/service-worker.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/assets/api-BeaKO2dl.js +0 -1
  169. package/dist/assets/blocklet-rYMojVwR.js +0 -1
  170. package/dist/assets/getValidReactChildren-1HAiV6lK.js +0 -1
  171. package/dist/assets/index-BsKfUhVE.js +0 -309
  172. package/dist/assets/index-D-YrhOuw.js +0 -54
  173. package/dist/assets/index-D0ex-q5W.js +0 -150
  174. package/dist/assets/service-CCCA4hfq.js +0 -1
  175. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BQQC5DXS.js +0 -1
  176. package/dist/assets/zh-tw-BTlMDwjI.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as p,c as ue,u as J,e as Pe,aE as Tr,j as e,F as T,aF as ln,aG as Mn,aH as Er,aI as cn,aJ as _t,aK as he,aL as xe,P as u,n as V,q as N,ad as ne,aM as dn,aN as Pr,aO as Ar,aP as Ir,A as le,Q as un,m as O,U as te,ax as pe,C as Y,J as ge,B as G,aQ as zn,K as de,O as ee,f as Dt,R as Bn,aR as Lr,aS as Or,aa as kr,aT as Fr,aU as Nr,aV as Ur,z as Wn,W as mn,T as fn,k as Q,aW as Rt,a as xt,S as ie,b as Je,aX as qn,aY as Hn,aZ as Kn,a_ as $r,a2 as Mr,a$ as zr,b0 as Br,b1 as Wr,b2 as qr,b3 as Hr,b4 as ze,a8 as Kr,d as Gn,M as Gr,b5 as Yr,aD as ut,a9 as mt,a6 as ft,b6 as Vr,a7 as yt,i as Yn,N as Xr,b7 as Qr,b8 as we,b9 as _e,ba as Jr,bb as Zr,D as Vn,w as vt,bc as ei,h as ti,at as pn,bd as ni,be as gn,aj as ri,bf as ii,bg as oi,bh as ai}from"./index-gBZtvLTL.js";import{T as si}from"./index-ER8p4lvE.js";import{d as li}from"./ArrowDropDown-DLOk2hQn.js";import{u as Tt,C as re,a as hn}from"./index.esm-MEs6trBP.js";import{S as Ce}from"./switch-control-D2PG983M.js";import{d as Xn,i as ci}from"./is-path-prefix-equal-Inp_MmbW.js";import{T as K,F as di}from"./TextField-Bhm-pGTt.js";import{D as Qn,g as ui}from"./index-Dw0ah9mI.js";import{d as Jn}from"./Link-kfMD43M4.js";import{d as Ae}from"./Delete-BG_3zNXs.js";import{C as Et}from"./delete-confirm-Ddybjkbg.js";import{I as Be}from"./index-BwjYNlcZ.js";import{s as mi}from"./logo-BKA11TRi.js";import{_ as fi}from"./useLocalStorage-CV1z5zeH.js";import{L as pi}from"./LoadingButton-BdU2PA2v.js";import{C as gi,d as Zn}from"./Public-Cnl0uk6R.js";import{d as Pt}from"./Add-pKyUqZnX.js";import{a as hi,B as er,D as xn,R as xi,b as yi}from"./url-evaluation-BJnhShOU.js";import{d as vi}from"./CheckCircle-Bve-EbH9.js";import{d as bi}from"./ExpandMore-BVacVg2T.js";import{d as ji}from"./ChevronRight-AF3Oi76r.js";import{d as Ci}from"./MoreVert-DqLb0IvW.js";import{d as tr}from"./Edit-O84hGgRU.js";import{d as Si,a as nr}from"./Https-MDLWGRiI.js";import{W as $e}from"./tag-OD5kAVwU.js";import{w as wi}from"./withStyles-Dp5x5u5h.js";import{S as _i}from"./Slider-D4WWBNJB.js";import"./index-CSDwzowm.js";import"./Select-DznafFqO.js";import"./InputLabel-SPUYdufd.js";import"./FilterList-1kvLdh4X.js";import"./useThemeProps-CB62kBuT.js";import"./LastPage-DhmYZtKl.js";import"./index-B4OMw3wi.js";import"./redux-CIvT3eos.js";import"./Search-zQ1-xKEI.js";import"./index-rFymmF-6.js";import"./click-to-copy-C_gleQEN.js";import"./shorten-label-HX5HiA5v.js";const fe="Dashboard",rr=p.createContext({}),{Provider:Di,Consumer:ds}=rr,yn=[fe,T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP],Ri=(t,n)=>{if(t.name===T.DOMAIN_FOR_DEFAULT_SITE)return-1;if(n.name===T.DOMAIN_FOR_DEFAULT_SITE)return 1;const r=yn.includes(t.name),i=yn.includes(n.name);return r&&i?cn(t.name,n.name):r?-1:i?1:cn(t.name,n.name)},Ti=({sites:t,nodePort:n})=>{const r=window.location.host,o=(t||[]).map(a=>{const{id:l,rules:c=[],corsAllowedOrigins:h=[]}=a;let{domain:d,domainAliases:m}=a;m=m||[],[T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=fe,m.find(f=>f.value===r)||m.unshift({protected:!1,value:r}));const g={id:l,name:d,type:"domain",items:[],domainAliases:m,isProtected:a.isProtected,corsAllowedOrigins:h};return(c||[]).forEach(f=>{const{id:y,isProtected:b,from:{pathPrefix:v},to:C}=f;if(C.type===T.ROUTING_RULE_TYPES.BLOCKLET){let R="";Number.parseInt(C.port,10)===Number.parseInt(n,10)?(R="Blocklet Server Dashboard",C.type=T.ROUTING_RULE_TYPES.DAEMON):R=C.did,g.items.push({id:y,name:ln(v||"/"),title:R,type:"rule",isProtected:b,pathPrefix:v,to:C})}else g.items.push({id:y,pathPrefix:v,name:ln(v||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:b,to:C})}),g.items=Mn(g.items,f=>f.name),g}).sort(Ri),s=o.reduce((a,l)=>{let{name:c}=l;return c.endsWith(T.BLOCKLET_SITE_GROUP_SUFFIX)&&([c]=c.split(".")),a[c]={...l,rules:l.items},a},{});return{sites:o,siteMap:s}},Ei=({did:t,domain:n,mountPoint:r,siteMap:i,params:o}={})=>{if(!i)return null;const s=i[t];if(!s)return null;const a=n||(s.domainAliases||[])[0];if(!a)return null;let l=r;if(!l){const c=s.rules.filter(h=>!h.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];l=c?c.name:"/"}return _t(a.value,l,o)},Pi=({did:t,mountPoint:n,siteMap:r,params:i}={})=>{if(!r)return[];const o=r[t];if(!o)return[];const s=o.domainAliases||[];if(!s.length)return[];let a=n;if(!a){const l=o.rules.filter(c=>!c.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];a=l?l.name:"/"}return s.map(l=>_t(l.value,a,i))},Ai=t=>{const n=t.map(i=>i.domain).filter(i=>![T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE].includes(i));let r=[];return t.forEach(i=>r.push(...i.domainAliases||[])),r=r.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:n,domainsAliases:r}};function vn({children:t}){const n=ue(),{info:r}=J(),[i,o]=p.useState([]),[s,a]=p.useState([]),[l,c]=p.useState([]),h=Pe(async()=>{const{sites:S}=await n.getRoutingSites({input:{snapshotHash:""}}),E=S||[];await Promise.all(E.map(async w=>(w.domainAliases=await Tr(w.domainAliases,{getIP:Er}),w)));const L=Ai(E);o(E),a(L.domains),c([window.location.hostname,...L.domains,...L.domainsAliases.map(w=>w.value)])},[r]),d=(S,E)=>{o(L=>L.map(w=>w.id===S?E.domain?E:{...E,domain:w.domain}:w))},m=S=>n.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(S)}}),g=async S=>{const E=await n.addRoutingSite({input:S});o(i.concat(E.site))},f=async(S,E)=>{const L=await n.updateRoutingSite({input:{id:S,...E}});if(L.site&&L.site.id){const w=i.findIndex(P=>P.id===L.site.id);w!==-1&&(i.splice(w,1,L.site),o([].concat(i)))}},y=async S=>{await n.deleteRoutingSite({input:{id:S}}),o(i.filter(E=>E.id!==S))},b=async(S,E,L)=>{const w=await n.addDomainAlias({input:{id:S,domainAlias:E,force:L}});d(S,w.site)},v=async(S,E)=>{const L=await n.deleteDomainAlias({input:{id:S,domainAlias:E}});d(S,L.site)},C=async(S,E)=>{const{site:L}=await n.addRoutingRule({input:{id:S,rule:E}});d(S,L)},R=async(S,E)=>{const{site:L}=await n.updateRoutingRule({input:{id:S,rule:E}});d(S,L)},j=async(S,E)=>{const{site:L}=await n.deleteRoutingRule({input:{id:S,ruleId:E}});d(S,L)},x={loading:h.loading,error:h.error,refresh:h.retry,api:n,actions:{addSite:g,updateSite:f,deleteSite:y,addDomainAlias:b,deleteDomainAlias:v,takeSnapshot:m,addRule:C,updateRule:R,deleteRule:j}},{sites:I,siteMap:D}=Ti({sites:i,nodePort:r.port});return x.sites=I,x.siteMap=D,x.domains=s,x.allDomains=l,x.getBlockletUrl=({did:S,domain:E,mountPoint:L,params:w})=>Ei({did:S,domain:E,mountPoint:L,siteMap:x.siteMap,params:w}),x.getBlockletUrls=({did:S,mountPoint:E,params:L})=>Pi({did:S,mountPoint:E,siteMap:x.siteMap,params:L}),e.jsx(Di,{value:{routing:x},children:t})}function ae(){const{routing:t}=p.useContext(rr);return t}function At(t){const n=[T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE,T.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&n.push(window.location.hostname),n.includes(t)}var It={},Ii=xe;Object.defineProperty(It,"__esModule",{value:!0});var ir=It.default=void 0,Li=Ii(he()),Oi=e;ir=It.default=(0,Li.default)((0,Oi.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");function ki(){return null}function Lt({confirm:t}){const[n,r]=p.useState(null),{t:i}=N(),o=()=>{r(null)},s=async l=>{if(l){let c=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";c==="/"?dn.push(`${l.pathname}`):(c.endsWith("/")&&(c=c.substring(0,c.length-1)),dn.push(`${c}${l.pathname}`)),window.location.reload()}},a=(l,...c)=>{let h=typeof t=="function"?t(l,...c):t;return h?(typeof h=="string"&&(h={description:h}),r({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>s(l),onCancel:()=>o(),...h}),!1):!0};return e.jsxs(Fi,{children:[e.jsx(ki,{message:a}),n&&e.jsx(ne,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}Lt.propTypes={confirm:u.oneOfType([u.object,u.string,u.func])};Lt.defaultProps={confirm:null};const Fi=V.div`
1
+ import{r as p,c as ue,u as J,e as Pe,aE as Tr,j as e,F as T,aF as ln,aG as Mn,aH as Er,aI as cn,aJ as _t,aK as he,aL as xe,P as u,n as V,q as N,ad as ne,aM as dn,aN as Pr,aO as Ar,aP as Ir,A as le,Q as un,m as O,U as te,ax as pe,C as Y,J as ge,B as G,aQ as zn,K as de,O as ee,f as Dt,R as Bn,aR as Lr,aS as Or,aa as kr,aT as Fr,aU as Nr,aV as Ur,z as Wn,W as mn,T as fn,k as Q,aW as Rt,a as xt,S as ie,b as Je,aX as qn,aY as Hn,aZ as Kn,a_ as $r,a2 as Mr,a$ as zr,b0 as Br,b1 as Wr,b2 as qr,b3 as Hr,b4 as ze,a8 as Kr,d as Gn,M as Gr,b5 as Yr,aD as ut,a9 as mt,a6 as ft,b6 as Vr,a7 as yt,i as Yn,N as Xr,b7 as Qr,b8 as we,b9 as _e,ba as Jr,bb as Zr,D as Vn,w as vt,bc as ei,h as ti,at as pn,bd as ni,be as gn,aj as ri,bf as ii,bg as oi,bh as ai}from"./index-DUbVlGHL.js";import{T as si}from"./index-DeGfvFby.js";import{d as li}from"./ArrowDropDown-CoMTzwBc.js";import{u as Tt,C as re,a as hn}from"./index.esm-P4_nl5r8.js";import{S as Ce}from"./switch-control-CSckEosr.js";import{d as Xn,i as ci}from"./is-path-prefix-equal-DV5WxQ67.js";import{T as K,F as di}from"./TextField-DUcd2awI.js";import{D as Qn,g as ui}from"./index-CQbXLdsW.js";import{d as Jn}from"./Link-CekOKh9K.js";import{d as Ae}from"./Delete-BtIq7u3G.js";import{C as Et}from"./delete-confirm-SS68CnlI.js";import{I as Be}from"./index-DvQ6gbRN.js";import{s as mi}from"./logo-BKA11TRi.js";import{_ as fi}from"./useLocalStorage-NuDObGLY.js";import{L as pi}from"./LoadingButton-BUafZiib.js";import{C as gi,d as Zn}from"./Public-Bjjujhg5.js";import{d as Pt}from"./Add-DHT1BmpU.js";import{a as hi,B as er,D as xn,R as xi,b as yi}from"./url-evaluation-C_0BVWDA.js";import{d as vi}from"./CheckCircle-BGBDVkHr.js";import{d as bi}from"./ExpandMore-Bs-B9jii.js";import{d as ji}from"./ChevronRight-DxJ4IkMu.js";import{d as Ci}from"./MoreVert-EAOb9Otm.js";import{d as tr}from"./Edit-CMhofwBs.js";import{d as Si,a as nr}from"./Https-C-Hv6aEl.js";import{W as $e}from"./tag-CVH29rjj.js";import{w as wi}from"./withStyles-B61iiaOI.js";import{S as _i}from"./Slider-DnjJDyEG.js";import"./index-f1IZ9dg8.js";import"./Select--7f2BqZZ.js";import"./InputLabel-DjG6Kr8Z.js";import"./FilterList-BNXU5va-.js";import"./useThemeProps-7-_Dz0L7.js";import"./LastPage-SBfYaqmq.js";import"./index-QEKOZwSp.js";import"./redux-CJG17ek3.js";import"./Search-BZljlGCA.js";import"./index-BKJH8Ljf.js";import"./click-to-copy-CbXPc1br.js";import"./shorten-label-Djatj--L.js";const fe="Dashboard",rr=p.createContext({}),{Provider:Di,Consumer:ds}=rr,yn=[fe,T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP],Ri=(t,n)=>{if(t.name===T.DOMAIN_FOR_DEFAULT_SITE)return-1;if(n.name===T.DOMAIN_FOR_DEFAULT_SITE)return 1;const r=yn.includes(t.name),i=yn.includes(n.name);return r&&i?cn(t.name,n.name):r?-1:i?1:cn(t.name,n.name)},Ti=({sites:t,nodePort:n})=>{const r=window.location.host,o=(t||[]).map(a=>{const{id:l,rules:c=[],corsAllowedOrigins:h=[]}=a;let{domain:d,domainAliases:m}=a;m=m||[],[T.DOMAIN_FOR_IP_SITE,T.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=fe,m.find(f=>f.value===r)||m.unshift({protected:!1,value:r}));const g={id:l,name:d,type:"domain",items:[],domainAliases:m,isProtected:a.isProtected,corsAllowedOrigins:h};return(c||[]).forEach(f=>{const{id:y,isProtected:b,from:{pathPrefix:v},to:C}=f;if(C.type===T.ROUTING_RULE_TYPES.BLOCKLET){let R="";Number.parseInt(C.port,10)===Number.parseInt(n,10)?(R="Blocklet Server Dashboard",C.type=T.ROUTING_RULE_TYPES.DAEMON):R=C.did,g.items.push({id:y,name:ln(v||"/"),title:R,type:"rule",isProtected:b,pathPrefix:v,to:C})}else g.items.push({id:y,pathPrefix:v,name:ln(v||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:b,to:C})}),g.items=Mn(g.items,f=>f.name),g}).sort(Ri),s=o.reduce((a,l)=>{let{name:c}=l;return c.endsWith(T.BLOCKLET_SITE_GROUP_SUFFIX)&&([c]=c.split(".")),a[c]={...l,rules:l.items},a},{});return{sites:o,siteMap:s}},Ei=({did:t,domain:n,mountPoint:r,siteMap:i,params:o}={})=>{if(!i)return null;const s=i[t];if(!s)return null;const a=n||(s.domainAliases||[])[0];if(!a)return null;let l=r;if(!l){const c=s.rules.filter(h=>!h.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];l=c?c.name:"/"}return _t(a.value,l,o)},Pi=({did:t,mountPoint:n,siteMap:r,params:i}={})=>{if(!r)return[];const o=r[t];if(!o)return[];const s=o.domainAliases||[];if(!s.length)return[];let a=n;if(!a){const l=o.rules.filter(c=>!c.name.startsWith(T.WELLKNOWN_PATH_PREFIX))[0];a=l?l.name:"/"}return s.map(l=>_t(l.value,a,i))},Ai=t=>{const n=t.map(i=>i.domain).filter(i=>![T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE].includes(i));let r=[];return t.forEach(i=>r.push(...i.domainAliases||[])),r=r.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:n,domainsAliases:r}};function vn({children:t}){const n=ue(),{info:r}=J(),[i,o]=p.useState([]),[s,a]=p.useState([]),[l,c]=p.useState([]),h=Pe(async()=>{const{sites:S}=await n.getRoutingSites({input:{snapshotHash:""}}),E=S||[];await Promise.all(E.map(async w=>(w.domainAliases=await Tr(w.domainAliases,{getIP:Er}),w)));const L=Ai(E);o(E),a(L.domains),c([window.location.hostname,...L.domains,...L.domainsAliases.map(w=>w.value)])},[r]),d=(S,E)=>{o(L=>L.map(w=>w.id===S?E.domain?E:{...E,domain:w.domain}:w))},m=S=>n.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(S)}}),g=async S=>{const E=await n.addRoutingSite({input:S});o(i.concat(E.site))},f=async(S,E)=>{const L=await n.updateRoutingSite({input:{id:S,...E}});if(L.site&&L.site.id){const w=i.findIndex(P=>P.id===L.site.id);w!==-1&&(i.splice(w,1,L.site),o([].concat(i)))}},y=async S=>{await n.deleteRoutingSite({input:{id:S}}),o(i.filter(E=>E.id!==S))},b=async(S,E,L)=>{const w=await n.addDomainAlias({input:{id:S,domainAlias:E,force:L}});d(S,w.site)},v=async(S,E)=>{const L=await n.deleteDomainAlias({input:{id:S,domainAlias:E}});d(S,L.site)},C=async(S,E)=>{const{site:L}=await n.addRoutingRule({input:{id:S,rule:E}});d(S,L)},R=async(S,E)=>{const{site:L}=await n.updateRoutingRule({input:{id:S,rule:E}});d(S,L)},j=async(S,E)=>{const{site:L}=await n.deleteRoutingRule({input:{id:S,ruleId:E}});d(S,L)},x={loading:h.loading,error:h.error,refresh:h.retry,api:n,actions:{addSite:g,updateSite:f,deleteSite:y,addDomainAlias:b,deleteDomainAlias:v,takeSnapshot:m,addRule:C,updateRule:R,deleteRule:j}},{sites:I,siteMap:D}=Ti({sites:i,nodePort:r.port});return x.sites=I,x.siteMap=D,x.domains=s,x.allDomains=l,x.getBlockletUrl=({did:S,domain:E,mountPoint:L,params:w})=>Ei({did:S,domain:E,mountPoint:L,siteMap:x.siteMap,params:w}),x.getBlockletUrls=({did:S,mountPoint:E,params:L})=>Pi({did:S,mountPoint:E,siteMap:x.siteMap,params:L}),e.jsx(Di,{value:{routing:x},children:t})}function ae(){const{routing:t}=p.useContext(rr);return t}function At(t){const n=[T.DOMAIN_FOR_IP_SITE_REGEXP,T.DOMAIN_FOR_DEFAULT_SITE,T.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&n.push(window.location.hostname),n.includes(t)}var It={},Ii=xe;Object.defineProperty(It,"__esModule",{value:!0});var ir=It.default=void 0,Li=Ii(he()),Oi=e;ir=It.default=(0,Li.default)((0,Oi.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");function ki(){return null}function Lt({confirm:t}){const[n,r]=p.useState(null),{t:i}=N(),o=()=>{r(null)},s=async l=>{if(l){let c=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";c==="/"?dn.push(`${l.pathname}`):(c.endsWith("/")&&(c=c.substring(0,c.length-1)),dn.push(`${c}${l.pathname}`)),window.location.reload()}},a=(l,...c)=>{let h=typeof t=="function"?t(l,...c):t;return h?(typeof h=="string"&&(h={description:h}),r({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>s(l),onCancel:()=>o(),...h}),!1):!0};return e.jsxs(Fi,{children:[e.jsx(ki,{message:a}),n&&e.jsx(ne,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,params:n.params,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}Lt.propTypes={confirm:u.oneOfType([u.object,u.string,u.func])};Lt.defaultProps={confirm:null};const Fi=V.div`
2
2
  margin-bottom: 24px;
3
3
  .top-btns-alert {
4
4
  @media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
@@ -1,4 +1,4 @@
1
- import{j as e,F as r,r as n,f as o,m as i,n as a}from"./index-gBZtvLTL.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
1
+ import{j as e,F as r,r as n,f as o,m as i,n as a}from"./index-DUbVlGHL.js";const s=({...t})=>e.jsxs("div",{...t,children:[e.jsx("h3",{children:"End User License Agreement for Blocklet Server"}),e.jsxs("p",{children:["Blocklet Server License Agreement ",r.COPYRIGHT_OWNER," version 2020-08-28"]}),e.jsx("p",{children:"Blocklet Server LICENSE AGREEMENT"}),e.jsxs("p",{children:["PLEASE READ THIS END USER LICENCE AGREEMENT CAREFULLY. This Blocklet Server License Agreement ('Agreement') is a legal agreement between you (the 'End User') and ",r.COPYRIGHT_OWNER," (ARCBLOCK) for the Blocklet Server software (the 'Software') licensed to End User hereunder and supplied to End User. The term Software includes any APIs, software modules, and any associated materials and 'online' or electronic documentation. This Agreement applies to End User's use of the Software but it shall be superseded by any signed agreement between End User and ARCBLOCK concerning the Software."]}),e.jsx("p",{children:"By installing or using the Software, You agree to accept and to be bound by this Agreement at all times. If You do not agree with one of these, please do not install or use the Software."}),e.jsx("h4",{children:"1. Software license"}),e.jsx("p",{children:"Notwithstanding any reference to 'sale' or 'purchase', the Software is licensed, not sold. Subject to the terms and conditions of this Agreement, ARCBLOCK grants End User a non-exclusive, non-transferable right to access and use the Software as part of the services for End User's use ('Authorized Use') in object form in the products, versions, and number of installed instances as purchased from ARCBLOCK."}),e.jsx("h4",{children:"2. Limitations"}),e.jsx("p",{children:"2.1. Restrictions. End User shall not itself, or through any parent, subsidiary, affiliate, agent or other third party: (a) sell, lease, license, distribute, sublicense or otherwise transfer in whole or in part, the Software to a third party; (b) decompile, disassemble, translate, reverse engineer or otherwise attempt to derive source code from the Software except to the limited extent, if any, that applicable law permits such acts notwithstanding any contractual prohibitions, provided, however, before End User exercises any rights that End User believes to be entitled to based on mandatory law, End User shall provide ARCBLOCK with thirty (30) days prior written notice and provide all reasonably requested information to allow ARCBLOCK to assess End User's claim and, at ARCBLOCK sole discretion, to provide alternatives that reduce any adverse impact on ARCBLOCK's intellectual property or other rights; (c) allow access or permit use of the Software by any third party except authorized third party contractors solely to provide services to End User, provided that End User shall be liable for all acts and omissions of such authorized third party contractors; (d) modify or create derivative works based upon the Software; (e) disclose the results of any benchmark test of the Software to any third party; (f) change any proprietary rights notices which appear in the Software; or (g) circumvent the license keys embedded within the Software."}),e.jsx("p",{children:"2.2. Software Transfer. Upon written consent from ARCBLOCK, which will not be unreasonably withheld, End User may permanently transfer all of its rights under this Agreement; provided that the recipient agrees to the terms of this Agreement."}),e.jsx("p",{children:"2.3. High Risk Activities. The Software is not intended for use in hazardous environments requiring fail safe performance (such as, without limitation, the planning, construction, maintenance, control, or direct operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, medical device and life support machines, or weapon systems) in which the failure of the Software could lead to death, personal injury or physical and environmental damage ('High Risk Activities'). Accordingly, this Agreement excludes any High Risk Activities and End User agrees not to use the Software in connection with High Risk Activities."}),e.jsx("h4",{children:"3. Ownership"}),e.jsx("p",{children:"The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. ARCBLOCK owns all rights, title and interest in the copyrights, patents and all other intellectual property rights in and to the Software and any accompanying printed materials, and all derivative works thereof."}),e.jsx("h4",{children:"4. Open source programs"}),e.jsx("p",{children:"The Software may include individual open source software components, each of which has its own copyright and its own applicable license conditions. The open source software components are licensed to End User under the terms of the applicable open source license conditions and/or copyright notices that can be found in the licenses file, the related documentation or other materials accompanying the Software."}),e.jsx("h4",{children:"5. Trademarks"}),e.jsx("p",{children:"The marks 'ARCBLOCK', ‘BLOCKLETS’ and ‘Blocklet Server’ are trademarks of ARCBLOCK. ARCBLOCK's failure to list a trademark in this Section shall not constitute a waiver of any trademark rights. All other trademarks in the Software not owned by ARCBLOCK are the property of their respective owners."}),e.jsx("h4",{children:"6. Disclaimer and Warranty"}),e.jsx("p",{children:"6.1. DISCLAIMER OF WARRANTIES. THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND AND ARCBLOCK EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED OR ARISING OUT OF A COURSE OF CONDUCT OR COURSE OF DEALING, INCLUDING ALL WARRANTIES OF TITLE, PERFORMANCE, USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON INFRINGEMENT AND THE ABSENCE OF LATENT OR OTHER DEFECTS, WHETHER OR NOT DISCOVERABLE. ARCBLOCK MAKES NO WARRANTY REGARDING NON INTERRUPTION OF USE. NO ORAL OR WRITTEN STATEMENT PROVIDED BY ARCBLOCK SHALL CREATE ANY WARRANTY."}),e.jsx("p",{children:"6.2. LIMITATION OF LIABILITY. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY END USER. ARCBLOCK SHALL NOT HAVE ANY LIABILITY TO END USER OR ANY OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUE, PROFIT OR OPPORTUNITY, LOST OR DAMAGED DATA OR OTHER COMMERCIAL OR ECONOMIC LOSS, EVEN IF ARCBLOCK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR THEY ARE FORESEEABLE. ARCBLOCK'S MAXIMUM AGGREGATE LIABILITY RELATING TO THIS AGREEMENT OR THE SOFTWARE SHALL NOT EXCEED THE AMOUNT PAID BY END USER FOR THE SOFTWARE."}),e.jsx("p",{children:"6.3. ALLOCATION. THE PROVISIONS OF THIS SECTION ALLOCATE RISKS UNDER THIS AGREEMENT BETWEEN ARCBLOCK AND END USER. ARCBLOCK'S LICENSING FEES FOR THE SOFTWARE REFLECT THIS ALLOCATION OF RISKS AND LIMITATION OF LIABILITY. THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS ESSENTIAL PURPOSE."}),e.jsx("p",{children:"6.4. Limitation. Because some jurisdictions do not allow certain disclaimers, exclusions or limitations of warranties, damages or liability, the above disclaimers, exclusions or limitations may not apply to End User and, therefore, shall apply only to the maximum extent allowed under applicable law."}),e.jsx("h4",{children:"7. Term"}),e.jsx("p",{children:"This Agreement is effective until terminated. End Users may terminate the Agreement at any time by returning or destroying all copies of the Software and related documentation. End User's rights under this Agreement will terminate automatically if End User fails to comply with the Agreement."}),e.jsx("h4",{children:"8. Miscellaneous"}),e.jsx("p",{children:"8.1. Governing Law. This Agreement shall be governed by the laws of the State of Washington, without reference to the principles of conflicts of law. The provisions of the Uniform Computerized Information Transaction Act and United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement. Any litigation related to this Agreement shall be brought in the state or federal courts located in Washington, and only in those courts and each party irrevocably waives any objections to such venue. Notwithstanding anything to the contrary herein, ARCBLOCK shall be entitled to seek injunctive or other equitable relief, wherever ARCBLOCK deems appropriate in any jurisdiction, in order to preserve or enforce ARCBLOCK's rights for any breach or threatened breach of this Agreement."}),e.jsx("p",{children:"8.2. Severability. Every term, condition or provision of this Agreement is severable from the others. If a court or an arbitrator of competent jurisdiction holds any term, condition or provision of this Agreement to be invalid, unenforceable or illegal in whole or in part for any reason, the validity and enforceability of the remaining terms, conditions or provisions, or portions of them, will not be affected."}),e.jsx("p",{children:"8.3. Confidentiality. Except as expressly allowed by this Agreement, End User will not use or disclose any Software or related technology, idea, algorithm or information ('Confidential Information') except to the extent End User can document that it is generally available for use and disclosure by the public without charge or license. End User shall hold the Confidential Information in trust and confidence and avoid the disclosure or release thereof to any other person or entity by using the same degree of care as it uses to avoid unauthorized use, disclosure, or dissemination of its own Confidential Information of a similar nature, but not less than reasonable care. End User may disclose Confidential Information as required to comply with binding orders of governmental entities that have jurisdiction over it; provided that End User gives ARCBLOCK reasonable written notice to allow ARCBLOCK to seek a protective order or other appropriate remedy, discloses only such Confidential Information as is required by the governmental entity, and uses commercially reasonable efforts to obtain confidential treatment for any Confidential Information disclosed. End User recognizes and agrees that there is no adequate remedy at law for a breach of this Section, that such a breach would irreparably harm ARCBLOCK and that ARCBLOCK is entitled to equitable relief (without need to post a bond) with respect to any such breach or potential breach in addition to any other remedies."}),e.jsx("p",{children:"8.4. Indemnity. End User shall defend, indemnify and hold harmless ARCBLOCK, and its officers, directors, employees and agents (the ARCBLOCK indemnities’), from and against all suits, claims, demands, losses, liabilities, damages and expenses (including reasonable attorneys' fees and costs) that the ARCBLOCK Indemnities may suffer or incur in connection with: (i) any third party claim arising from End User's breach of this Agreement; and (ii) any infringement by End User of ARCBLOCK's intellectual property rights in the Software."}),e.jsx("p",{children:"8.5. Entire Agreement and Waiver. The Agreement is the sole, final and entire agreement between the parties with respect to the subject matter hereof, may only be amended in writing signed by both ARCBLOCK License parties. A failure or delay in enforcing any provisions, exercising any option or requiring performance, be construed to be a waiver by ARCBLOCK."}),e.jsx("p",{children:"8.6. Marketing. ARCBLOCK may use End User's name and company logo on its customer list and web site, and link to End User's web site."}),e.jsx("p",{children:"8.7. Independent Contractor. The relationship of the parties is that of independent contractors. Neither party will be deemed to be the legal representative of the other nor will it have any right to bind the other party to any contract or commitment. This Agreement does not, and will not, be construed to create an employer employee, agency, joint venture or partnership relationship between the parties. Each party agrees to assume complete responsibility for its own employees regarding federal or state laws, including employers' liability and tax withholding, worker's compensation, social security, unemployment insurance, and OSHA requirements."}),e.jsx("p",{children:"8.8. Notices. All notices must be in writing and will be effective three (3) days after the date sent to each party's corporate headquarters."}),e.jsx("p",{children:"8.9. Audit. During the term of this Agreement and for one (1) year following termination or expiration (but no more than once in a calendar year), ARCBLOCK and its auditors may inspect End User's records relating to its reproduction and use of the Software for the purposes of verifying End User's compliance with this Agreement. End User shall cooperate fully with ARCBLOCK and its auditors in conducting audits and provide reasonable assistance. If an underpayment is discovered, End User shall promptly pay such amount and End User shall reimburse ARCBLOCK for the cost of the audit."}),e.jsx("p",{children:`8.10. Government Regulation. End User acknowledges that the Software is subject to export restrictions by the U.S. government and import restrictions by certain foreign governments. End User may not export or re-export the Software except in compliance with the U.S. Export Administration Act and the related rules and regulations and similar non-U.S. government restrictions, if applicable. End User shall not and shall not allow any third party to remove or export from the United States or allow the export or re export of any part of the Software or any direct product thereof: (i) into (or to a national or resident of) any embargoed or terrorist supporting country; (ii) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (iii) to any country to which such export or re export is restricted or prohibited, or as to which the U.S. government or any agency thereof requires an export license or other governmental approval at the time of export or re export without first obtaining such license or approval; or (iv) otherwise in violation of any export or import restrictions, laws or regulations of any United States or foreign agency or authority. End User agrees to the foregoing and warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Software is further restricted from being used for terrorist activity, or for the design or development of nuclear, chemical, or biological weapons or missile technology without the prior permission of the U.S. government. The Software and accompanying documentation are deemed to be "commercial computer software" and "commercial computer software documentation", respectively, pursuant to DFAR Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, reproduction, release, performing, displaying or disclosing of the Software and related documentation by the U.S. Government shall be governed solely by the terms of this Agreement.`})]});function h(){const{t}=n.useContext(o);return e.jsxs(l,{children:[e.jsx(i,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("setup.steps.eula")}),e.jsx(s,{})]})}const l=a.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{bK as vc,j as m,C as Z2,P as S,n as _0,r as _,e_ as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cy as Cc,Z as Pc,e$ as Fc,dw as jc,ea as Yc,eb as Ic,f0 as Uc,f1 as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,f2 as Zc,dz as gz,bb as MA,dv as bA,s as zA}from"./index-gBZtvLTL.js";import{j as pA}from"./url-join-R_hoMPFS.js";import{S as l2}from"./Skeleton-C8dMhHy4.js";import{C as OA}from"./Close-iwCCyAvr.js";import{l as oA}from"./lottie-D77WzIzs.js";const cA=vc([m.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),m.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function rb({value:M,size:z,style:O,...o}){return m.jsxs(AA,{style:{width:z,height:z,...O},...o,children:[m.jsx(Z2,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),m.jsx(Z2,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}rb.propTypes={value:S.number.isRequired,size:S.number,style:S.object};rb.defaultProps={size:10,style:{}};const AA=_0.span`
1
+ import{bK as vc,j as m,C as Z2,P as S,n as _0,r as _,e_ as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cy as Cc,Z as Pc,e$ as Fc,dw as jc,ea as Yc,eb as Ic,f0 as Uc,f1 as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,f2 as Zc,dz as gz,bb as MA,dv as bA,s as zA}from"./index-DUbVlGHL.js";import{j as pA}from"./url-join-k_qM7sOz.js";import{S as l2}from"./Skeleton-lV_NV9wn.js";import{C as OA}from"./Close-BCm-1liL.js";import{l as oA}from"./lottie-BwtPPdqV.js";const cA=vc([m.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),m.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function rb({value:M,size:z,style:O,...o}){return m.jsxs(AA,{style:{width:z,height:z,...O},...o,children:[m.jsx(Z2,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),m.jsx(Z2,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}rb.propTypes={value:S.number.isRequired,size:S.number,style:S.object};rb.defaultProps={size:10,style:{}};const AA=_0.span`
2
2
  display: inline-block;
3
3
  position: relative;
4
4
  > * {
@@ -27,7 +27,7 @@ x.version="2.30.1";aA(c0);x.fn=R;x.min=Je;x.max=$e;x.now=Ze;x.utc=p1;x.unix=B4;x
27
27
  Arguments: `+Array.prototype.slice.call(A).join("")+`
28
28
  `+new Error().stack),c=!1}return p.apply(this,arguments)},p)}var X0={};function S1(b,p){o.deprecationHandler!=null&&o.deprecationHandler(b,p),X0[b]||(K(p),X0[b]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function T0(b){return typeof Function<"u"&&b instanceof Function||Object.prototype.toString.call(b)==="[object Function]"}function D0(b){var p,c;for(c in b)n(b,c)&&(p=b[c],T0(p)?this[c]=p:this["_"+c]=p);this._config=b,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function k1(b,p){var c=V({},b),A;for(A in p)n(p,A)&&(t(b[A])&&t(p[A])?(c[A]={},V(c[A],b[A]),V(c[A],p[A])):p[A]!=null?c[A]=p[A]:delete c[A]);for(A in b)n(b,A)&&!n(p,A)&&t(b[A])&&(c[A]=V({},c[A]));return c}function m0(b){b!=null&&this.set(b)}var $0;Object.keys?$0=Object.keys:$0=function(b){var p,c=[];for(p in b)n(b,p)&&c.push(p);return c};var o2={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function x1(b,p,c){var A=this._calendar[b]||this._calendar.sameElse;return T0(A)?A.call(p,c):A}function x0(b,p,c){var A=""+Math.abs(b),a=p-A.length,q=b>=0;return(q?c?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+A}var L0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z0={},g0={};function T(b,p,c,A){var a=A;typeof A=="string"&&(a=function(){return this[A]()}),b&&(g0[b]=a),p&&(g0[p[0]]=function(){return x0(a.apply(this,arguments),p[1],p[2])}),c&&(g0[c]=function(){return this.localeData().ordinal(a.apply(this,arguments),b)})}function o1(b){return b.match(/\[[\s\S]/)?b.replace(/^\[|\]$/g,""):b.replace(/\\/g,"")}function p0(b){var p=b.match(L0),c,A;for(c=0,A=p.length;c<A;c++)g0[p[c]]?p[c]=g0[p[c]]:p[c]=o1(p[c]);return function(a){var q="",s;for(s=0;s<A;s++)q+=T0(p[s])?p[s].call(a,b):p[s];return q}}function B0(b,p){return b.isValid()?(p=c2(p,b.localeData()),Z0[p]=Z0[p]||p0(p),Z0[p](b)):b.localeData().invalidDate()}function c2(b,p){var c=5;function A(a){return p.longDateFormat(a)||a}for(Y0.lastIndex=0;c>=0&&Y0.test(b);)b=b.replace(Y0,A),Y0.lastIndex=0,c-=1;return b}var N2={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function BM(b){var p=this._longDateFormat[b],c=this._longDateFormat[b.toUpperCase()];return p||!c?p:(this._longDateFormat[b]=c.match(L0).map(function(A){return A==="MMMM"||A==="MM"||A==="DD"||A==="dddd"?A.slice(1):A}).join(""),this._longDateFormat[b])}var D1="Invalid date";function r(){return this._invalidDate}var W="%d",f=/\d{1,2}/;function h(b){return this._ordinal.replace("%d",b)}var g={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Y(b,p,c,A){var a=this._relativeTime[c];return T0(a)?a(b,p,c,A):a.replace(/%d/i,b)}function n0(b,p){var c=this._relativeTime[b>0?"future":"past"];return T0(c)?c(p):c.replace(/%s/i,p)}var Q={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(b){return typeof b=="string"?Q[b]||Q[b.toLowerCase()]:void 0}function y2(b){var p={},c,A;for(A in b)n(b,A)&&(c=F(A),c&&(p[c]=b[A]));return p}var b3={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function z3(b){var p=[],c;for(c in b)n(b,c)&&p.push({unit:c,priority:b3[c]});return p.sort(function(A,a){return A.priority-a.priority}),p}var Yb=/\d/,w0=/\d\d/,Ib=/\d{3}/,NM=/\d{4}/,X2=/[+-]?\d{6}/,O0=/\d\d?/,Ub=/\d\d\d\d?/,Hb=/\d\d\d\d\d\d?/,T2=/\d{1,3}/,yM=/\d{1,4}/,S2=/[+-]?\d{1,6}/,C1=/\d+/,D2=/[+-]?\d+/,p3=/Z|[+-]\d\d:?\d\d/gi,E2=/Z|[+-]\d\d(?::?\d\d)?/gi,O3=/[+-]?\d+(\.\d{1,3})?/,A2=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,P1=/^[1-9]\d?/,XM=/^([1-9]\d|\d)/,g2;g2={};function N(b,p,c){g2[b]=T0(p)?p:function(A,a){return A&&c?c:p}}function o3(b,p){return n(g2,b)?g2[b](p._strict,p._locale):new RegExp(c3(b))}function c3(b){return c1(b.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(p,c,A,a,q){return c||A||a||q}))}function c1(b){return b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V0(b){return b<0?Math.ceil(b)||0:Math.floor(b)}function C(b){var p=+b,c=0;return p!==0&&isFinite(p)&&(c=V0(p)),c}var TM={};function b0(b,p){var c,A=p,a;for(typeof b=="string"&&(b=[b]),L(p)&&(A=function(q,s){s[p]=C(q)}),a=b.length,c=0;c<a;c++)TM[b[c]]=A}function e2(b,p){b0(b,function(c,A,a,q){a._w=a._w||{},p(c,a._w,a,q)})}function A3(b,p,c){p!=null&&n(TM,b)&&TM[b](p,c._a,c,b)}function w2(b){return b%4===0&&b%100!==0||b%400===0}var N0=0,A1=1,M1=2,f0=3,I0=4,e1=5,E1=6,e3=7,a3=8;T("Y",0,0,function(){var b=this.year();return b<=9999?x0(b,4):"+"+b}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),N("Y",D2),N("YY",O0,w0),N("YYYY",yM,NM),N("YYYYY",S2,X2),N("YYYYYY",S2,X2),b0(["YYYYY","YYYYYY"],N0),b0("YYYY",function(b,p){p[N0]=b.length===2?o.parseTwoDigitYear(b):C(b)}),b0("YY",function(b,p){p[N0]=o.parseTwoDigitYear(b)}),b0("Y",function(b,p){p[N0]=parseInt(b,10)});function a2(b){return w2(b)?366:365}o.parseTwoDigitYear=function(b){return C(b)+(C(b)>68?1900:2e3)};var Kb=F1("FullYear",!0);function i3(){return w2(this.year())}function F1(b,p){return function(c){return c!=null?(Qb(this,b,c),o.updateOffset(this,p),this):i2(this,b)}}function i2(b,p){if(!b.isValid())return NaN;var c=b._d,A=b._isUTC;switch(p){case"Milliseconds":return A?c.getUTCMilliseconds():c.getMilliseconds();case"Seconds":return A?c.getUTCSeconds():c.getSeconds();case"Minutes":return A?c.getUTCMinutes():c.getMinutes();case"Hours":return A?c.getUTCHours():c.getHours();case"Date":return A?c.getUTCDate():c.getDate();case"Day":return A?c.getUTCDay():c.getDay();case"Month":return A?c.getUTCMonth():c.getMonth();case"FullYear":return A?c.getUTCFullYear():c.getFullYear();default:return NaN}}function Qb(b,p,c){var A,a,q,s,B;if(!(!b.isValid()||isNaN(c))){switch(A=b._d,a=b._isUTC,p){case"Milliseconds":return void(a?A.setUTCMilliseconds(c):A.setMilliseconds(c));case"Seconds":return void(a?A.setUTCSeconds(c):A.setSeconds(c));case"Minutes":return void(a?A.setUTCMinutes(c):A.setMinutes(c));case"Hours":return void(a?A.setUTCHours(c):A.setHours(c));case"Date":return void(a?A.setUTCDate(c):A.setDate(c));case"FullYear":break;default:return}q=c,s=b.month(),B=b.date(),B=B===29&&s===1&&!w2(q)?28:B,a?A.setUTCFullYear(q,s,B):A.setFullYear(q,s,B)}}function t3(b){return b=F(b),T0(this[b])?this[b]():this}function q3(b,p){if(typeof b=="object"){b=y2(b);var c=z3(b),A,a=c.length;for(A=0;A<a;A++)this[c[A].unit](b[c[A].unit])}else if(b=F(b),T0(this[b]))return this[b](p);return this}function r3(b,p){return(b%p+p)%p}var s0;Array.prototype.indexOf?s0=Array.prototype.indexOf:s0=function(b){var p;for(p=0;p<this.length;++p)if(this[p]===b)return p;return-1};function SM(b,p){if(isNaN(b)||isNaN(p))return NaN;var c=r3(p,12);return b+=(p-c)/12,c===1?w2(b)?29:28:31-c%7%2}T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(b){return this.localeData().monthsShort(this,b)}),T("MMMM",0,0,function(b){return this.localeData().months(this,b)}),N("M",O0,P1),N("MM",O0,w0),N("MMM",function(b,p){return p.monthsShortRegex(b)}),N("MMMM",function(b,p){return p.monthsRegex(b)}),b0(["M","MM"],function(b,p){p[A1]=C(b)-1}),b0(["MMM","MMMM"],function(b,p,c,A){var a=c._locale.monthsParse(b,A,c._strict);a!=null?p[A1]=a:k(c).invalidMonth=b});var n3="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jb="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$b=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,s3=A2,d3=A2;function W3(b,p){return b?i(this._months)?this._months[b.month()]:this._months[(this._months.isFormat||$b).test(p)?"format":"standalone"][b.month()]:i(this._months)?this._months:this._months.standalone}function f3(b,p){return b?i(this._monthsShort)?this._monthsShort[b.month()]:this._monthsShort[$b.test(p)?"format":"standalone"][b.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function l3(b,p,c){var A,a,q,s=b.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],A=0;A<12;++A)q=E([2e3,A]),this._shortMonthsParse[A]=this.monthsShort(q,"").toLocaleLowerCase(),this._longMonthsParse[A]=this.months(q,"").toLocaleLowerCase();return c?p==="MMM"?(a=s0.call(this._shortMonthsParse,s),a!==-1?a:null):(a=s0.call(this._longMonthsParse,s),a!==-1?a:null):p==="MMM"?(a=s0.call(this._shortMonthsParse,s),a!==-1?a:(a=s0.call(this._longMonthsParse,s),a!==-1?a:null)):(a=s0.call(this._longMonthsParse,s),a!==-1?a:(a=s0.call(this._shortMonthsParse,s),a!==-1?a:null))}function u3(b,p,c){var A,a,q;if(this._monthsParseExact)return l3.call(this,b,p,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),A=0;A<12;A++){if(a=E([2e3,A]),c&&!this._longMonthsParse[A]&&(this._longMonthsParse[A]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[A]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!c&&!this._monthsParse[A]&&(q="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[A]=new RegExp(q.replace(".",""),"i")),c&&p==="MMMM"&&this._longMonthsParse[A].test(b))return A;if(c&&p==="MMM"&&this._shortMonthsParse[A].test(b))return A;if(!c&&this._monthsParse[A].test(b))return A}}function Zb(b,p){if(!b.isValid())return b;if(typeof p=="string"){if(/^\d+$/.test(p))p=C(p);else if(p=b.localeData().monthsParse(p),!L(p))return b}var c=p,A=b.date();return A=A<29?A:Math.min(A,SM(b.year(),c)),b._isUTC?b._d.setUTCMonth(c,A):b._d.setMonth(c,A),b}function Mz(b){return b!=null?(Zb(this,b),o.updateOffset(this,!0),this):i2(this,"Month")}function R3(){return SM(this.year(),this.month())}function m3(b){return this._monthsParseExact?(n(this,"_monthsRegex")||bz.call(this),b?this._monthsShortStrictRegex:this._monthsShortRegex):(n(this,"_monthsShortRegex")||(this._monthsShortRegex=s3),this._monthsShortStrictRegex&&b?this._monthsShortStrictRegex:this._monthsShortRegex)}function h3(b){return this._monthsParseExact?(n(this,"_monthsRegex")||bz.call(this),b?this._monthsStrictRegex:this._monthsRegex):(n(this,"_monthsRegex")||(this._monthsRegex=d3),this._monthsStrictRegex&&b?this._monthsStrictRegex:this._monthsRegex)}function bz(){function b(w,j){return j.length-w.length}var p=[],c=[],A=[],a,q,s,B;for(a=0;a<12;a++)q=E([2e3,a]),s=c1(this.monthsShort(q,"")),B=c1(this.months(q,"")),p.push(s),c.push(B),A.push(B),A.push(s);p.sort(b),c.sort(b),A.sort(b),this._monthsRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}function k3(b,p,c,A,a,q,s){var B;return b<100&&b>=0?(B=new Date(b+400,p,c,A,a,q,s),isFinite(B.getFullYear())&&B.setFullYear(b)):B=new Date(b,p,c,A,a,q,s),B}function t2(b){var p,c;return b<100&&b>=0?(c=Array.prototype.slice.call(arguments),c[0]=b+400,p=new Date(Date.UTC.apply(null,c)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(b)):p=new Date(Date.UTC.apply(null,arguments)),p}function _2(b,p,c){var A=7+p-c,a=(7+t2(b,0,A).getUTCDay()-p)%7;return-a+A-1}function zz(b,p,c,A,a){var q=(7+c-A)%7,s=_2(b,A,a),B=1+7*(p-1)+q+s,w,j;return B<=0?(w=b-1,j=a2(w)+B):B>a2(b)?(w=b+1,j=B-a2(b)):(w=b,j=B),{year:w,dayOfYear:j}}function q2(b,p,c){var A=_2(b.year(),p,c),a=Math.floor((b.dayOfYear()-A-1)/7)+1,q,s;return a<1?(s=b.year()-1,q=a+a1(s,p,c)):a>a1(b.year(),p,c)?(q=a-a1(b.year(),p,c),s=b.year()+1):(s=b.year(),q=a),{week:q,year:s}}function a1(b,p,c){var A=_2(b,p,c),a=_2(b+1,p,c);return(a2(b)-A+a)/7}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),N("w",O0,P1),N("ww",O0,w0),N("W",O0,P1),N("WW",O0,w0),e2(["w","ww","W","WW"],function(b,p,c,A){p[A.substr(0,1)]=C(b)});function x3(b){return q2(b,this._week.dow,this._week.doy).week}var L3={dow:0,doy:6};function B3(){return this._week.dow}function N3(){return this._week.doy}function y3(b){var p=this.localeData().week(this);return b==null?p:this.add((b-p)*7,"d")}function X3(b){var p=q2(this,1,4).week;return b==null?p:this.add((b-p)*7,"d")}T("d",0,"do","day"),T("dd",0,0,function(b){return this.localeData().weekdaysMin(this,b)}),T("ddd",0,0,function(b){return this.localeData().weekdaysShort(this,b)}),T("dddd",0,0,function(b){return this.localeData().weekdays(this,b)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),N("d",O0),N("e",O0),N("E",O0),N("dd",function(b,p){return p.weekdaysMinRegex(b)}),N("ddd",function(b,p){return p.weekdaysShortRegex(b)}),N("dddd",function(b,p){return p.weekdaysRegex(b)}),e2(["dd","ddd","dddd"],function(b,p,c,A){var a=c._locale.weekdaysParse(b,A,c._strict);a!=null?p.d=a:k(c).invalidWeekday=b}),e2(["d","e","E"],function(b,p,c,A){p[A]=C(b)});function T3(b,p){return typeof b!="string"?b:isNaN(b)?(b=p.weekdaysParse(b),typeof b=="number"?b:null):parseInt(b,10)}function S3(b,p){return typeof b=="string"?p.weekdaysParse(b)%7||7:isNaN(b)?null:b}function DM(b,p){return b.slice(p,7).concat(b.slice(0,p))}var D3="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pz="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),E3="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),g3=A2,w3=A2,_3=A2;function G3(b,p){var c=i(this._weekdays)?this._weekdays:this._weekdays[b&&b!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return b===!0?DM(c,this._week.dow):b?c[b.day()]:c}function v3(b){return b===!0?DM(this._weekdaysShort,this._week.dow):b?this._weekdaysShort[b.day()]:this._weekdaysShort}function V3(b){return b===!0?DM(this._weekdaysMin,this._week.dow):b?this._weekdaysMin[b.day()]:this._weekdaysMin}function C3(b,p,c){var A,a,q,s=b.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],A=0;A<7;++A)q=E([2e3,1]).day(A),this._minWeekdaysParse[A]=this.weekdaysMin(q,"").toLocaleLowerCase(),this._shortWeekdaysParse[A]=this.weekdaysShort(q,"").toLocaleLowerCase(),this._weekdaysParse[A]=this.weekdays(q,"").toLocaleLowerCase();return c?p==="dddd"?(a=s0.call(this._weekdaysParse,s),a!==-1?a:null):p==="ddd"?(a=s0.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=s0.call(this._minWeekdaysParse,s),a!==-1?a:null):p==="dddd"?(a=s0.call(this._weekdaysParse,s),a!==-1||(a=s0.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=s0.call(this._minWeekdaysParse,s),a!==-1?a:null)):p==="ddd"?(a=s0.call(this._shortWeekdaysParse,s),a!==-1||(a=s0.call(this._weekdaysParse,s),a!==-1)?a:(a=s0.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=s0.call(this._minWeekdaysParse,s),a!==-1||(a=s0.call(this._weekdaysParse,s),a!==-1)?a:(a=s0.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function P3(b,p,c){var A,a,q;if(this._weekdaysParseExact)return C3.call(this,b,p,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),A=0;A<7;A++){if(a=E([2e3,1]).day(A),c&&!this._fullWeekdaysParse[A]&&(this._fullWeekdaysParse[A]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[A]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[A]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[A]||(q="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[A]=new RegExp(q.replace(".",""),"i")),c&&p==="dddd"&&this._fullWeekdaysParse[A].test(b))return A;if(c&&p==="ddd"&&this._shortWeekdaysParse[A].test(b))return A;if(c&&p==="dd"&&this._minWeekdaysParse[A].test(b))return A;if(!c&&this._weekdaysParse[A].test(b))return A}}function F3(b){if(!this.isValid())return b!=null?this:NaN;var p=i2(this,"Day");return b!=null?(b=T3(b,this.localeData()),this.add(b-p,"d")):p}function j3(b){if(!this.isValid())return b!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return b==null?p:this.add(b-p,"d")}function Y3(b){if(!this.isValid())return b!=null?this:NaN;if(b!=null){var p=S3(b,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function I3(b){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||EM.call(this),b?this._weekdaysStrictRegex:this._weekdaysRegex):(n(this,"_weekdaysRegex")||(this._weekdaysRegex=g3),this._weekdaysStrictRegex&&b?this._weekdaysStrictRegex:this._weekdaysRegex)}function U3(b){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||EM.call(this),b?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=w3),this._weekdaysShortStrictRegex&&b?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function H3(b){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||EM.call(this),b?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_3),this._weekdaysMinStrictRegex&&b?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function EM(){function b(S0,n1){return n1.length-S0.length}var p=[],c=[],A=[],a=[],q,s,B,w,j;for(q=0;q<7;q++)s=E([2e3,1]).day(q),B=c1(this.weekdaysMin(s,"")),w=c1(this.weekdaysShort(s,"")),j=c1(this.weekdays(s,"")),p.push(B),c.push(w),A.push(j),a.push(B),a.push(w),a.push(j);p.sort(b),c.sort(b),A.sort(b),a.sort(b),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function gM(){return this.hours()%12||12}function K3(){return this.hours()||24}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,gM),T("k",["kk",2],0,K3),T("hmm",0,0,function(){return""+gM.apply(this)+x0(this.minutes(),2)}),T("hmmss",0,0,function(){return""+gM.apply(this)+x0(this.minutes(),2)+x0(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+x0(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+x0(this.minutes(),2)+x0(this.seconds(),2)});function Oz(b,p){T(b,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}Oz("a",!0),Oz("A",!1);function oz(b,p){return p._meridiemParse}N("a",oz),N("A",oz),N("H",O0,XM),N("h",O0,P1),N("k",O0,P1),N("HH",O0,w0),N("hh",O0,w0),N("kk",O0,w0),N("hmm",Ub),N("hmmss",Hb),N("Hmm",Ub),N("Hmmss",Hb),b0(["H","HH"],f0),b0(["k","kk"],function(b,p,c){var A=C(b);p[f0]=A===24?0:A}),b0(["a","A"],function(b,p,c){c._isPm=c._locale.isPM(b),c._meridiem=b}),b0(["h","hh"],function(b,p,c){p[f0]=C(b),k(c).bigHour=!0}),b0("hmm",function(b,p,c){var A=b.length-2;p[f0]=C(b.substr(0,A)),p[I0]=C(b.substr(A)),k(c).bigHour=!0}),b0("hmmss",function(b,p,c){var A=b.length-4,a=b.length-2;p[f0]=C(b.substr(0,A)),p[I0]=C(b.substr(A,2)),p[e1]=C(b.substr(a)),k(c).bigHour=!0}),b0("Hmm",function(b,p,c){var A=b.length-2;p[f0]=C(b.substr(0,A)),p[I0]=C(b.substr(A))}),b0("Hmmss",function(b,p,c){var A=b.length-4,a=b.length-2;p[f0]=C(b.substr(0,A)),p[I0]=C(b.substr(A,2)),p[e1]=C(b.substr(a))});function Q3(b){return(b+"").toLowerCase().charAt(0)==="p"}var J3=/[ap]\.?m?\.?/i,$3=F1("Hours",!0);function Z3(b,p,c){return b>11?c?"pm":"PM":c?"am":"AM"}var cz={calendar:o2,longDateFormat:N2,invalidDate:D1,ordinal:W,dayOfMonthOrdinalParse:f,relativeTime:g,months:n3,monthsShort:Jb,week:L3,weekdays:D3,weekdaysMin:E3,weekdaysShort:pz,meridiemParse:J3},a0={},r2={},n2;function MO(b,p){var c,A=Math.min(b.length,p.length);for(c=0;c<A;c+=1)if(b[c]!==p[c])return c;return A}function Az(b){return b&&b.toLowerCase().replace("_","-")}function bO(b){for(var p=0,c,A,a,q;p<b.length;){for(q=Az(b[p]).split("-"),c=q.length,A=Az(b[p+1]),A=A?A.split("-"):null;c>0;){if(a=G2(q.slice(0,c).join("-")),a)return a;if(A&&A.length>=c&&MO(q,A)>=c-1)break;c--}p++}return n2}function zO(b){return!!(b&&b.match("^[^/\\\\]*$"))}function G2(b){var p=null,c;if(a0[b]===void 0&&M&&M.exports&&zO(b))try{p=n2._abbr,c=ib,c("./locale/"+b),L1(p)}catch{a0[b]=null}return a0[b]}function L1(b,p){var c;return b&&(d(p)?c=i1(b):c=wM(b,p),c?n2=c:typeof console<"u"&&console.warn&&console.warn("Locale "+b+" not found. Did you forget to load it?")),n2._abbr}function wM(b,p){if(p!==null){var c,A=cz;if(p.abbr=b,a0[b]!=null)S1("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),A=a0[b]._config;else if(p.parentLocale!=null)if(a0[p.parentLocale]!=null)A=a0[p.parentLocale]._config;else if(c=G2(p.parentLocale),c!=null)A=c._config;else return r2[p.parentLocale]||(r2[p.parentLocale]=[]),r2[p.parentLocale].push({name:b,config:p}),null;return a0[b]=new m0(k1(A,p)),r2[b]&&r2[b].forEach(function(a){wM(a.name,a.config)}),L1(b),a0[b]}else return delete a0[b],null}function pO(b,p){if(p!=null){var c,A,a=cz;a0[b]!=null&&a0[b].parentLocale!=null?a0[b].set(k1(a0[b]._config,p)):(A=G2(b),A!=null&&(a=A._config),p=k1(a,p),A==null&&(p.abbr=b),c=new m0(p),c.parentLocale=a0[b],a0[b]=c),L1(b)}else a0[b]!=null&&(a0[b].parentLocale!=null?(a0[b]=a0[b].parentLocale,b===L1()&&L1(b)):a0[b]!=null&&delete a0[b]);return a0[b]}function i1(b){var p;if(b&&b._locale&&b._locale._abbr&&(b=b._locale._abbr),!b)return n2;if(!i(b)){if(p=G2(b),p)return p;b=[b]}return bO(b)}function OO(){return $0(a0)}function _M(b){var p,c=b._a;return c&&k(b).overflow===-2&&(p=c[A1]<0||c[A1]>11?A1:c[M1]<1||c[M1]>SM(c[N0],c[A1])?M1:c[f0]<0||c[f0]>24||c[f0]===24&&(c[I0]!==0||c[e1]!==0||c[E1]!==0)?f0:c[I0]<0||c[I0]>59?I0:c[e1]<0||c[e1]>59?e1:c[E1]<0||c[E1]>999?E1:-1,k(b)._overflowDayOfYear&&(p<N0||p>M1)&&(p=M1),k(b)._overflowWeeks&&p===-1&&(p=e3),k(b)._overflowWeekday&&p===-1&&(p=a3),k(b).overflow=p),b}var oO=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cO=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,AO=/Z|[+-]\d\d(?::?\d\d)?/,v2=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],GM=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],eO=/^\/?Date\((-?\d+)/i,aO=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,iO={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ez(b){var p,c,A=b._i,a=oO.exec(A)||cO.exec(A),q,s,B,w,j=v2.length,S0=GM.length;if(a){for(k(b).iso=!0,p=0,c=j;p<c;p++)if(v2[p][1].exec(a[1])){s=v2[p][0],q=v2[p][2]!==!1;break}if(s==null){b._isValid=!1;return}if(a[3]){for(p=0,c=S0;p<c;p++)if(GM[p][1].exec(a[3])){B=(a[2]||" ")+GM[p][0];break}if(B==null){b._isValid=!1;return}}if(!q&&B!=null){b._isValid=!1;return}if(a[4])if(AO.exec(a[4]))w="Z";else{b._isValid=!1;return}b._f=s+(B||"")+(w||""),VM(b)}else b._isValid=!1}function tO(b,p,c,A,a,q){var s=[qO(b),Jb.indexOf(p),parseInt(c,10),parseInt(A,10),parseInt(a,10)];return q&&s.push(parseInt(q,10)),s}function qO(b){var p=parseInt(b,10);return p<=49?2e3+p:p<=999?1900+p:p}function rO(b){return b.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function nO(b,p,c){if(b){var A=pz.indexOf(b),a=new Date(p[0],p[1],p[2]).getDay();if(A!==a)return k(c).weekdayMismatch=!0,c._isValid=!1,!1}return!0}function sO(b,p,c){if(b)return iO[b];if(p)return 0;var A=parseInt(c,10),a=A%100,q=(A-a)/100;return q*60+a}function az(b){var p=aO.exec(rO(b._i)),c;if(p){if(c=tO(p[4],p[3],p[2],p[5],p[6],p[7]),!nO(p[1],c,b))return;b._a=c,b._tzm=sO(p[8],p[9],p[10]),b._d=t2.apply(null,b._a),b._d.setUTCMinutes(b._d.getUTCMinutes()-b._tzm),k(b).rfc2822=!0}else b._isValid=!1}function dO(b){var p=eO.exec(b._i);if(p!==null){b._d=new Date(+p[1]);return}if(ez(b),b._isValid===!1)delete b._isValid;else return;if(az(b),b._isValid===!1)delete b._isValid;else return;b._strict?b._isValid=!1:o.createFromInputFallback(b)}o.createFromInputFallback=R0("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(b){b._d=new Date(b._i+(b._useUTC?" UTC":""))});function j1(b,p,c){return b??p??c}function WO(b){var p=new Date(o.now());return b._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()]}function vM(b){var p,c,A=[],a,q,s;if(!b._d){for(a=WO(b),b._w&&b._a[M1]==null&&b._a[A1]==null&&fO(b),b._dayOfYear!=null&&(s=j1(b._a[N0],a[N0]),(b._dayOfYear>a2(s)||b._dayOfYear===0)&&(k(b)._overflowDayOfYear=!0),c=t2(s,0,b._dayOfYear),b._a[A1]=c.getUTCMonth(),b._a[M1]=c.getUTCDate()),p=0;p<3&&b._a[p]==null;++p)b._a[p]=A[p]=a[p];for(;p<7;p++)b._a[p]=A[p]=b._a[p]==null?p===2?1:0:b._a[p];b._a[f0]===24&&b._a[I0]===0&&b._a[e1]===0&&b._a[E1]===0&&(b._nextDay=!0,b._a[f0]=0),b._d=(b._useUTC?t2:k3).apply(null,A),q=b._useUTC?b._d.getUTCDay():b._d.getDay(),b._tzm!=null&&b._d.setUTCMinutes(b._d.getUTCMinutes()-b._tzm),b._nextDay&&(b._a[f0]=24),b._w&&typeof b._w.d<"u"&&b._w.d!==q&&(k(b).weekdayMismatch=!0)}}function fO(b){var p,c,A,a,q,s,B,w,j;p=b._w,p.GG!=null||p.W!=null||p.E!=null?(q=1,s=4,c=j1(p.GG,b._a[N0],q2(o0(),1,4).year),A=j1(p.W,1),a=j1(p.E,1),(a<1||a>7)&&(w=!0)):(q=b._locale._week.dow,s=b._locale._week.doy,j=q2(o0(),q,s),c=j1(p.gg,b._a[N0],j.year),A=j1(p.w,j.week),p.d!=null?(a=p.d,(a<0||a>6)&&(w=!0)):p.e!=null?(a=p.e+q,(p.e<0||p.e>6)&&(w=!0)):a=q),A<1||A>a1(c,q,s)?k(b)._overflowWeeks=!0:w!=null?k(b)._overflowWeekday=!0:(B=zz(c,A,a,q,s),b._a[N0]=B.year,b._dayOfYear=B.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function VM(b){if(b._f===o.ISO_8601){ez(b);return}if(b._f===o.RFC_2822){az(b);return}b._a=[],k(b).empty=!0;var p=""+b._i,c,A,a,q,s,B=p.length,w=0,j,S0;for(a=c2(b._f,b._locale).match(L0)||[],S0=a.length,c=0;c<S0;c++)q=a[c],A=(p.match(o3(q,b))||[])[0],A&&(s=p.substr(0,p.indexOf(A)),s.length>0&&k(b).unusedInput.push(s),p=p.slice(p.indexOf(A)+A.length),w+=A.length),g0[q]?(A?k(b).empty=!1:k(b).unusedTokens.push(q),A3(q,A,b)):b._strict&&!A&&k(b).unusedTokens.push(q);k(b).charsLeftOver=B-w,p.length>0&&k(b).unusedInput.push(p),b._a[f0]<=12&&k(b).bigHour===!0&&b._a[f0]>0&&(k(b).bigHour=void 0),k(b).parsedDateParts=b._a.slice(0),k(b).meridiem=b._meridiem,b._a[f0]=lO(b._locale,b._a[f0],b._meridiem),j=k(b).era,j!==null&&(b._a[N0]=b._locale.erasConvertYear(j,b._a[N0])),vM(b),_M(b)}function lO(b,p,c){var A;return c==null?p:b.meridiemHour!=null?b.meridiemHour(p,c):(b.isPM!=null&&(A=b.isPM(c),A&&p<12&&(p+=12),!A&&p===12&&(p=0)),p)}function uO(b){var p,c,A,a,q,s,B=!1,w=b._f.length;if(w===0){k(b).invalidFormat=!0,b._d=new Date(NaN);return}for(a=0;a<w;a++)q=0,s=!1,p=h0({},b),b._useUTC!=null&&(p._useUTC=b._useUTC),p._f=b._f[a],VM(p),q0(p)&&(s=!0),q+=k(p).charsLeftOver,q+=k(p).unusedTokens.length*10,k(p).score=q,B?q<A&&(A=q,c=p):(A==null||q<A||s)&&(A=q,c=p,s&&(B=!0));V(b,c||p)}function RO(b){if(!b._d){var p=y2(b._i),c=p.day===void 0?p.date:p.day;b._a=X([p.year,p.month,c,p.hour,p.minute,p.second,p.millisecond],function(A){return A&&parseInt(A,10)}),vM(b)}}function mO(b){var p=new j0(_M(iz(b)));return p._nextDay&&(p.add(1,"d"),p._nextDay=void 0),p}function iz(b){var p=b._i,c=b._f;return b._locale=b._locale||i1(b._l),p===null||c===void 0&&p===""?H({nullInput:!0}):(typeof p=="string"&&(b._i=p=b._locale.preparse(p)),k0(p)?new j0(_M(p)):(G(p)?b._d=p:i(c)?uO(b):c?VM(b):hO(b),q0(b)||(b._d=null),b))}function hO(b){var p=b._i;d(p)?b._d=new Date(o.now()):G(p)?b._d=new Date(p.valueOf()):typeof p=="string"?dO(b):i(p)?(b._a=X(p.slice(0),function(c){return parseInt(c,10)}),vM(b)):t(p)?RO(b):L(p)?b._d=new Date(p):o.createFromInputFallback(b)}function tz(b,p,c,A,a){var q={};return(p===!0||p===!1)&&(A=p,p=void 0),(c===!0||c===!1)&&(A=c,c=void 0),(t(b)&&l(b)||i(b)&&b.length===0)&&(b=void 0),q._isAMomentObject=!0,q._useUTC=q._isUTC=a,q._l=c,q._i=b,q._f=p,q._strict=A,mO(q)}function o0(b,p,c,A){return tz(b,p,c,A,!1)}var kO=R0("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var b=o0.apply(null,arguments);return this.isValid()&&b.isValid()?b<this?this:b:H()}),xO=R0("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var b=o0.apply(null,arguments);return this.isValid()&&b.isValid()?b>this?this:b:H()});function qz(b,p){var c,A;if(p.length===1&&i(p[0])&&(p=p[0]),!p.length)return o0();for(c=p[0],A=1;A<p.length;++A)(!p[A].isValid()||p[A][b](c))&&(c=p[A]);return c}function LO(){var b=[].slice.call(arguments,0);return qz("isBefore",b)}function BO(){var b=[].slice.call(arguments,0);return qz("isAfter",b)}var NO=function(){return Date.now?Date.now():+new Date},s2=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yO(b){var p,c=!1,A,a=s2.length;for(p in b)if(n(b,p)&&!(s0.call(s2,p)!==-1&&(b[p]==null||!isNaN(b[p]))))return!1;for(A=0;A<a;++A)if(b[s2[A]]){if(c)return!1;parseFloat(b[s2[A]])!==C(b[s2[A]])&&(c=!0)}return!0}function XO(){return this._isValid}function TO(){return U0(NaN)}function V2(b){var p=y2(b),c=p.year||0,A=p.quarter||0,a=p.month||0,q=p.week||p.isoWeek||0,s=p.day||0,B=p.hour||0,w=p.minute||0,j=p.second||0,S0=p.millisecond||0;this._isValid=yO(p),this._milliseconds=+S0+j*1e3+w*6e4+B*1e3*60*60,this._days=+s+q*7,this._months=+a+A*3+c*12,this._data={},this._locale=i1(),this._bubble()}function C2(b){return b instanceof V2}function CM(b){return b<0?Math.round(-1*b)*-1:Math.round(b)}function SO(b,p,c){var A=Math.min(b.length,p.length),a=Math.abs(b.length-p.length),q=0,s;for(s=0;s<A;s++)(c&&b[s]!==p[s]||!c&&C(b[s])!==C(p[s]))&&q++;return q+a}function rz(b,p){T(b,0,0,function(){var c=this.utcOffset(),A="+";return c<0&&(c=-c,A="-"),A+x0(~~(c/60),2)+p+x0(~~c%60,2)})}rz("Z",":"),rz("ZZ",""),N("Z",E2),N("ZZ",E2),b0(["Z","ZZ"],function(b,p,c){c._useUTC=!0,c._tzm=PM(E2,b)});var DO=/([\+\-]|\d\d)/gi;function PM(b,p){var c=(p||"").match(b),A,a,q;return c===null?null:(A=c[c.length-1]||[],a=(A+"").match(DO)||["-",0,0],q=+(a[1]*60)+C(a[2]),q===0?0:a[0]==="+"?q:-q)}function FM(b,p){var c,A;return p._isUTC?(c=p.clone(),A=(k0(b)||G(b)?b.valueOf():o0(b).valueOf())-c.valueOf(),c._d.setTime(c._d.valueOf()+A),o.updateOffset(c,!1),c):o0(b).local()}function jM(b){return-Math.round(b._d.getTimezoneOffset())}o.updateOffset=function(){};function EO(b,p,c){var A=this._offset||0,a;if(!this.isValid())return b!=null?this:NaN;if(b!=null){if(typeof b=="string"){if(b=PM(E2,b),b===null)return this}else Math.abs(b)<16&&!c&&(b=b*60);return!this._isUTC&&p&&(a=jM(this)),this._offset=b,this._isUTC=!0,a!=null&&this.add(a,"m"),A!==b&&(!p||this._changeInProgress?Wz(this,U0(b-A,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?A:jM(this)}function gO(b,p){return b!=null?(typeof b!="string"&&(b=-b),this.utcOffset(b,p),this):-this.utcOffset()}function wO(b){return this.utcOffset(0,b)}function _O(b){return this._isUTC&&(this.utcOffset(0,b),this._isUTC=!1,b&&this.subtract(jM(this),"m")),this}function GO(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var b=PM(p3,this._i);b!=null?this.utcOffset(b):this.utcOffset(0,!0)}return this}function vO(b){return this.isValid()?(b=b?o0(b).utcOffset():0,(this.utcOffset()-b)%60===0):!1}function VO(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function CO(){if(!d(this._isDSTShifted))return this._isDSTShifted;var b={},p;return h0(b,this),b=iz(b),b._a?(p=b._isUTC?E(b._a):o0(b._a),this._isDSTShifted=this.isValid()&&SO(b._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function PO(){return this.isValid()?!this._isUTC:!1}function FO(){return this.isValid()?this._isUTC:!1}function nz(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jO=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function U0(b,p){var c=b,A=null,a,q,s;return C2(b)?c={ms:b._milliseconds,d:b._days,M:b._months}:L(b)||!isNaN(+b)?(c={},p?c[p]=+b:c.milliseconds=+b):(A=jO.exec(b))?(a=A[1]==="-"?-1:1,c={y:0,d:C(A[M1])*a,h:C(A[f0])*a,m:C(A[I0])*a,s:C(A[e1])*a,ms:C(CM(A[E1]*1e3))*a}):(A=YO.exec(b))?(a=A[1]==="-"?-1:1,c={y:g1(A[2],a),M:g1(A[3],a),w:g1(A[4],a),d:g1(A[5],a),h:g1(A[6],a),m:g1(A[7],a),s:g1(A[8],a)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(s=IO(o0(c.from),o0(c.to)),c={},c.ms=s.milliseconds,c.M=s.months),q=new V2(c),C2(b)&&n(b,"_locale")&&(q._locale=b._locale),C2(b)&&n(b,"_isValid")&&(q._isValid=b._isValid),q}U0.fn=V2.prototype,U0.invalid=TO;function g1(b,p){var c=b&&parseFloat(b.replace(",","."));return(isNaN(c)?0:c)*p}function sz(b,p){var c={};return c.months=p.month()-b.month()+(p.year()-b.year())*12,b.clone().add(c.months,"M").isAfter(p)&&--c.months,c.milliseconds=+p-+b.clone().add(c.months,"M"),c}function IO(b,p){var c;return b.isValid()&&p.isValid()?(p=FM(p,b),b.isBefore(p)?c=sz(b,p):(c=sz(p,b),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function dz(b,p){return function(c,A){var a,q;return A!==null&&!isNaN(+A)&&(S1(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),q=c,c=A,A=q),a=U0(c,A),Wz(this,a,b),this}}function Wz(b,p,c,A){var a=p._milliseconds,q=CM(p._days),s=CM(p._months);b.isValid()&&(A=A??!0,s&&Zb(b,i2(b,"Month")+s*c),q&&Qb(b,"Date",i2(b,"Date")+q*c),a&&b._d.setTime(b._d.valueOf()+a*c),A&&o.updateOffset(b,q||s))}var UO=dz(1,"add"),HO=dz(-1,"subtract");function fz(b){return typeof b=="string"||b instanceof String}function KO(b){return k0(b)||G(b)||fz(b)||L(b)||JO(b)||QO(b)||b===null||b===void 0}function QO(b){var p=t(b)&&!l(b),c=!1,A=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,q,s=A.length;for(a=0;a<s;a+=1)q=A[a],c=c||n(b,q);return p&&c}function JO(b){var p=i(b),c=!1;return p&&(c=b.filter(function(A){return!L(A)&&fz(b)}).length===0),p&&c}function $O(b){var p=t(b)&&!l(b),c=!1,A=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,q;for(a=0;a<A.length;a+=1)q=A[a],c=c||n(b,q);return p&&c}function ZO(b,p){var c=b.diff(p,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Mo(b,p){arguments.length===1&&(arguments[0]?KO(arguments[0])?(b=arguments[0],p=void 0):$O(arguments[0])&&(p=arguments[0],b=void 0):(b=void 0,p=void 0));var c=b||o0(),A=FM(c,this).startOf("day"),a=o.calendarFormat(this,A)||"sameElse",q=p&&(T0(p[a])?p[a].call(this,c):p[a]);return this.format(q||this.localeData().calendar(a,this,o0(c)))}function bo(){return new j0(this)}function zo(b,p){var c=k0(b)?b:o0(b);return this.isValid()&&c.isValid()?(p=F(p)||"millisecond",p==="millisecond"?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(p).valueOf()):!1}function po(b,p){var c=k0(b)?b:o0(b);return this.isValid()&&c.isValid()?(p=F(p)||"millisecond",p==="millisecond"?this.valueOf()<c.valueOf():this.clone().endOf(p).valueOf()<c.valueOf()):!1}function Oo(b,p,c,A){var a=k0(b)?b:o0(b),q=k0(p)?p:o0(p);return this.isValid()&&a.isValid()&&q.isValid()?(A=A||"()",(A[0]==="("?this.isAfter(a,c):!this.isBefore(a,c))&&(A[1]===")"?this.isBefore(q,c):!this.isAfter(q,c))):!1}function oo(b,p){var c=k0(b)?b:o0(b),A;return this.isValid()&&c.isValid()?(p=F(p)||"millisecond",p==="millisecond"?this.valueOf()===c.valueOf():(A=c.valueOf(),this.clone().startOf(p).valueOf()<=A&&A<=this.clone().endOf(p).valueOf())):!1}function co(b,p){return this.isSame(b,p)||this.isAfter(b,p)}function Ao(b,p){return this.isSame(b,p)||this.isBefore(b,p)}function eo(b,p,c){var A,a,q;if(!this.isValid())return NaN;if(A=FM(b,this),!A.isValid())return NaN;switch(a=(A.utcOffset()-this.utcOffset())*6e4,p=F(p),p){case"year":q=P2(this,A)/12;break;case"month":q=P2(this,A);break;case"quarter":q=P2(this,A)/3;break;case"second":q=(this-A)/1e3;break;case"minute":q=(this-A)/6e4;break;case"hour":q=(this-A)/36e5;break;case"day":q=(this-A-a)/864e5;break;case"week":q=(this-A-a)/6048e5;break;default:q=this-A}return c?q:V0(q)}function P2(b,p){if(b.date()<p.date())return-P2(p,b);var c=(p.year()-b.year())*12+(p.month()-b.month()),A=b.clone().add(c,"months"),a,q;return p-A<0?(a=b.clone().add(c-1,"months"),q=(p-A)/(A-a)):(a=b.clone().add(c+1,"months"),q=(p-A)/(a-A)),-(c+q)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ao(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function io(b){if(!this.isValid())return null;var p=b!==!0,c=p?this.clone().utc():this;return c.year()<0||c.year()>9999?B0(c,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T0(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",B0(c,"Z")):B0(c,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function to(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var b="moment",p="",c,A,a,q;return this.isLocal()||(b=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),c="["+b+'("]',A=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",q=p+'[")]',this.format(c+A+a+q)}function qo(b){b||(b=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var p=B0(this,b);return this.localeData().postformat(p)}function ro(b,p){return this.isValid()&&(k0(b)&&b.isValid()||o0(b).isValid())?U0({to:this,from:b}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function no(b){return this.from(o0(),b)}function so(b,p){return this.isValid()&&(k0(b)&&b.isValid()||o0(b).isValid())?U0({from:this,to:b}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function Wo(b){return this.to(o0(),b)}function lz(b){var p;return b===void 0?this._locale._abbr:(p=i1(b),p!=null&&(this._locale=p),this)}var uz=R0("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===void 0?this.localeData():this.locale(b)});function Rz(){return this._locale}var F2=1e3,Y1=60*F2,j2=60*Y1,mz=(365*400+97)*24*j2;function I1(b,p){return(b%p+p)%p}function hz(b,p,c){return b<100&&b>=0?new Date(b+400,p,c)-mz:new Date(b,p,c).valueOf()}function kz(b,p,c){return b<100&&b>=0?Date.UTC(b+400,p,c)-mz:Date.UTC(b,p,c)}function fo(b){var p,c;if(b=F(b),b===void 0||b==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?kz:hz,b){case"year":p=c(this.year(),0,1);break;case"quarter":p=c(this.year(),this.month()-this.month()%3,1);break;case"month":p=c(this.year(),this.month(),1);break;case"week":p=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=c(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=I1(p+(this._isUTC?0:this.utcOffset()*Y1),j2);break;case"minute":p=this._d.valueOf(),p-=I1(p,Y1);break;case"second":p=this._d.valueOf(),p-=I1(p,F2);break}return this._d.setTime(p),o.updateOffset(this,!0),this}function lo(b){var p,c;if(b=F(b),b===void 0||b==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?kz:hz,b){case"year":p=c(this.year()+1,0,1)-1;break;case"quarter":p=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=c(this.year(),this.month()+1,1)-1;break;case"week":p=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=j2-I1(p+(this._isUTC?0:this.utcOffset()*Y1),j2)-1;break;case"minute":p=this._d.valueOf(),p+=Y1-I1(p,Y1)-1;break;case"second":p=this._d.valueOf(),p+=F2-I1(p,F2)-1;break}return this._d.setTime(p),o.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-(this._offset||0)*6e4}function Ro(){return Math.floor(this.valueOf()/1e3)}function mo(){return new Date(this.valueOf())}function ho(){var b=this;return[b.year(),b.month(),b.date(),b.hour(),b.minute(),b.second(),b.millisecond()]}function ko(){var b=this;return{years:b.year(),months:b.month(),date:b.date(),hours:b.hours(),minutes:b.minutes(),seconds:b.seconds(),milliseconds:b.milliseconds()}}function xo(){return this.isValid()?this.toISOString():null}function Lo(){return q0(this)}function Bo(){return V({},k(this))}function No(){return k(this).overflow}function yo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}T("N",0,0,"eraAbbr"),T("NN",0,0,"eraAbbr"),T("NNN",0,0,"eraAbbr"),T("NNNN",0,0,"eraName"),T("NNNNN",0,0,"eraNarrow"),T("y",["y",1],"yo","eraYear"),T("y",["yy",2],0,"eraYear"),T("y",["yyy",3],0,"eraYear"),T("y",["yyyy",4],0,"eraYear"),N("N",YM),N("NN",YM),N("NNN",YM),N("NNNN",Vo),N("NNNNN",Co),b0(["N","NN","NNN","NNNN","NNNNN"],function(b,p,c,A){var a=c._locale.erasParse(b,A,c._strict);a?k(c).era=a:k(c).invalidEra=b}),N("y",C1),N("yy",C1),N("yyy",C1),N("yyyy",C1),N("yo",Po),b0(["y","yy","yyy","yyyy"],N0),b0(["yo"],function(b,p,c,A){var a;c._locale._eraYearOrdinalRegex&&(a=b.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?p[N0]=c._locale.eraYearOrdinalParse(b,a):p[N0]=parseInt(b,10)});function Xo(b,p){var c,A,a,q=this._eras||i1("en")._eras;for(c=0,A=q.length;c<A;++c){switch(typeof q[c].since){case"string":a=o(q[c].since).startOf("day"),q[c].since=a.valueOf();break}switch(typeof q[c].until){case"undefined":q[c].until=1/0;break;case"string":a=o(q[c].until).startOf("day").valueOf(),q[c].until=a.valueOf();break}}return q}function To(b,p,c){var A,a,q=this.eras(),s,B,w;for(b=b.toUpperCase(),A=0,a=q.length;A<a;++A)if(s=q[A].name.toUpperCase(),B=q[A].abbr.toUpperCase(),w=q[A].narrow.toUpperCase(),c)switch(p){case"N":case"NN":case"NNN":if(B===b)return q[A];break;case"NNNN":if(s===b)return q[A];break;case"NNNNN":if(w===b)return q[A];break}else if([s,B,w].indexOf(b)>=0)return q[A]}function So(b,p){var c=b.since<=b.until?1:-1;return p===void 0?o(b.since).year():o(b.since).year()+(p-b.offset)*c}function Do(){var b,p,c,A=this.localeData().eras();for(b=0,p=A.length;b<p;++b)if(c=this.clone().startOf("day").valueOf(),A[b].since<=c&&c<=A[b].until||A[b].until<=c&&c<=A[b].since)return A[b].name;return""}function Eo(){var b,p,c,A=this.localeData().eras();for(b=0,p=A.length;b<p;++b)if(c=this.clone().startOf("day").valueOf(),A[b].since<=c&&c<=A[b].until||A[b].until<=c&&c<=A[b].since)return A[b].narrow;return""}function go(){var b,p,c,A=this.localeData().eras();for(b=0,p=A.length;b<p;++b)if(c=this.clone().startOf("day").valueOf(),A[b].since<=c&&c<=A[b].until||A[b].until<=c&&c<=A[b].since)return A[b].abbr;return""}function wo(){var b,p,c,A,a=this.localeData().eras();for(b=0,p=a.length;b<p;++b)if(c=a[b].since<=a[b].until?1:-1,A=this.clone().startOf("day").valueOf(),a[b].since<=A&&A<=a[b].until||a[b].until<=A&&A<=a[b].since)return(this.year()-o(a[b].since).year())*c+a[b].offset;return this.year()}function _o(b){return n(this,"_erasNameRegex")||IM.call(this),b?this._erasNameRegex:this._erasRegex}function Go(b){return n(this,"_erasAbbrRegex")||IM.call(this),b?this._erasAbbrRegex:this._erasRegex}function vo(b){return n(this,"_erasNarrowRegex")||IM.call(this),b?this._erasNarrowRegex:this._erasRegex}function YM(b,p){return p.erasAbbrRegex(b)}function Vo(b,p){return p.erasNameRegex(b)}function Co(b,p){return p.erasNarrowRegex(b)}function Po(b,p){return p._eraYearOrdinalRegex||C1}function IM(){var b=[],p=[],c=[],A=[],a,q,s,B,w,j=this.eras();for(a=0,q=j.length;a<q;++a)s=c1(j[a].name),B=c1(j[a].abbr),w=c1(j[a].narrow),p.push(s),b.push(B),c.push(w),A.push(s),A.push(B),A.push(w);this._erasRegex=new RegExp("^("+A.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+c.join("|")+")","i")}T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Y2(b,p){T(0,[b,b.length],0,p)}Y2("gggg","weekYear"),Y2("ggggg","weekYear"),Y2("GGGG","isoWeekYear"),Y2("GGGGG","isoWeekYear"),N("G",D2),N("g",D2),N("GG",O0,w0),N("gg",O0,w0),N("GGGG",yM,NM),N("gggg",yM,NM),N("GGGGG",S2,X2),N("ggggg",S2,X2),e2(["gggg","ggggg","GGGG","GGGGG"],function(b,p,c,A){p[A.substr(0,2)]=C(b)}),e2(["gg","GG"],function(b,p,c,A){p[A]=o.parseTwoDigitYear(b)});function Fo(b){return xz.call(this,b,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function jo(b){return xz.call(this,b,this.isoWeek(),this.isoWeekday(),1,4)}function Yo(){return a1(this.year(),1,4)}function Io(){return a1(this.isoWeekYear(),1,4)}function Uo(){var b=this.localeData()._week;return a1(this.year(),b.dow,b.doy)}function Ho(){var b=this.localeData()._week;return a1(this.weekYear(),b.dow,b.doy)}function xz(b,p,c,A,a){var q;return b==null?q2(this,A,a).year:(q=a1(b,A,a),p>q&&(p=q),Ko.call(this,b,p,c,A,a))}function Ko(b,p,c,A,a){var q=zz(b,p,c,A,a),s=t2(q.year,0,q.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}T("Q",0,"Qo","quarter"),N("Q",Yb),b0("Q",function(b,p){p[A1]=(C(b)-1)*3});function Qo(b){return b==null?Math.ceil((this.month()+1)/3):this.month((b-1)*3+this.month()%3)}T("D",["DD",2],"Do","date"),N("D",O0,P1),N("DD",O0,w0),N("Do",function(b,p){return b?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),b0(["D","DD"],M1),b0("Do",function(b,p){p[M1]=C(b.match(O0)[0])});var Lz=F1("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),N("DDD",T2),N("DDDD",Ib),b0(["DDD","DDDD"],function(b,p,c){c._dayOfYear=C(b)});function Jo(b){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return b==null?p:this.add(b-p,"d")}T("m",["mm",2],0,"minute"),N("m",O0,XM),N("mm",O0,w0),b0(["m","mm"],I0);var $o=F1("Minutes",!1);T("s",["ss",2],0,"second"),N("s",O0,XM),N("ss",O0,w0),b0(["s","ss"],e1);var Zo=F1("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return this.millisecond()*10}),T(0,["SSSSS",5],0,function(){return this.millisecond()*100}),T(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),T(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),T(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),T(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),N("S",T2,Yb),N("SS",T2,w0),N("SSS",T2,Ib);var B1,Bz;for(B1="SSSS";B1.length<=9;B1+="S")N(B1,C1);function Mc(b,p){p[E1]=C(("0."+b)*1e3)}for(B1="S";B1.length<=9;B1+="S")b0(B1,Mc);Bz=F1("Milliseconds",!1),T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");function bc(){return this._isUTC?"UTC":""}function zc(){return this._isUTC?"Coordinated Universal Time":""}var u=j0.prototype;u.add=UO,u.calendar=Mo,u.clone=bo,u.diff=eo,u.endOf=lo,u.format=qo,u.from=ro,u.fromNow=no,u.to=so,u.toNow=Wo,u.get=t3,u.invalidAt=No,u.isAfter=zo,u.isBefore=po,u.isBetween=Oo,u.isSame=oo,u.isSameOrAfter=co,u.isSameOrBefore=Ao,u.isValid=Lo,u.lang=uz,u.locale=lz,u.localeData=Rz,u.max=xO,u.min=kO,u.parsingFlags=Bo,u.set=q3,u.startOf=fo,u.subtract=HO,u.toArray=ho,u.toObject=ko,u.toDate=mo,u.toISOString=io,u.inspect=to,typeof Symbol<"u"&&Symbol.for!=null&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),u.toJSON=xo,u.toString=ao,u.unix=Ro,u.valueOf=uo,u.creationData=yo,u.eraName=Do,u.eraNarrow=Eo,u.eraAbbr=go,u.eraYear=wo,u.year=Kb,u.isLeapYear=i3,u.weekYear=Fo,u.isoWeekYear=jo,u.quarter=u.quarters=Qo,u.month=Mz,u.daysInMonth=R3,u.week=u.weeks=y3,u.isoWeek=u.isoWeeks=X3,u.weeksInYear=Uo,u.weeksInWeekYear=Ho,u.isoWeeksInYear=Yo,u.isoWeeksInISOWeekYear=Io,u.date=Lz,u.day=u.days=F3,u.weekday=j3,u.isoWeekday=Y3,u.dayOfYear=Jo,u.hour=u.hours=$3,u.minute=u.minutes=$o,u.second=u.seconds=Zo,u.millisecond=u.milliseconds=Bz,u.utcOffset=EO,u.utc=wO,u.local=_O,u.parseZone=GO,u.hasAlignedHourOffset=vO,u.isDST=VO,u.isLocal=PO,u.isUtcOffset=FO,u.isUtc=nz,u.isUTC=nz,u.zoneAbbr=bc,u.zoneName=zc,u.dates=R0("dates accessor is deprecated. Use date instead.",Lz),u.months=R0("months accessor is deprecated. Use month instead",Mz),u.years=R0("years accessor is deprecated. Use year instead",Kb),u.zone=R0("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gO),u.isDSTShifted=R0("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",CO);function pc(b){return o0(b*1e3)}function Oc(){return o0.apply(null,arguments).parseZone()}function Nz(b){return b}var J=m0.prototype;J.calendar=x1,J.longDateFormat=BM,J.invalidDate=r,J.ordinal=h,J.preparse=Nz,J.postformat=Nz,J.relativeTime=Y,J.pastFuture=n0,J.set=D0,J.eras=Xo,J.erasParse=To,J.erasConvertYear=So,J.erasAbbrRegex=Go,J.erasNameRegex=_o,J.erasNarrowRegex=vo,J.months=W3,J.monthsShort=f3,J.monthsParse=u3,J.monthsRegex=h3,J.monthsShortRegex=m3,J.week=x3,J.firstDayOfYear=N3,J.firstDayOfWeek=B3,J.weekdays=G3,J.weekdaysMin=V3,J.weekdaysShort=v3,J.weekdaysParse=P3,J.weekdaysRegex=I3,J.weekdaysShortRegex=U3,J.weekdaysMinRegex=H3,J.isPM=Q3,J.meridiem=Z3;function I2(b,p,c,A){var a=i1(),q=E().set(A,p);return a[c](q,b)}function yz(b,p,c){if(L(b)&&(p=b,b=void 0),b=b||"",p!=null)return I2(b,p,c,"month");var A,a=[];for(A=0;A<12;A++)a[A]=I2(b,A,c,"month");return a}function UM(b,p,c,A){typeof b=="boolean"?(L(p)&&(c=p,p=void 0),p=p||""):(p=b,c=p,b=!1,L(p)&&(c=p,p=void 0),p=p||"");var a=i1(),q=b?a._week.dow:0,s,B=[];if(c!=null)return I2(p,(c+q)%7,A,"day");for(s=0;s<7;s++)B[s]=I2(p,(s+q)%7,A,"day");return B}function oc(b,p){return yz(b,p,"months")}function cc(b,p){return yz(b,p,"monthsShort")}function Ac(b,p,c){return UM(b,p,c,"weekdays")}function ec(b,p,c){return UM(b,p,c,"weekdaysShort")}function ac(b,p,c){return UM(b,p,c,"weekdaysMin")}L1("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(b){var p=b%10,c=C(b%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return b+c}}),o.lang=R0("moment.lang is deprecated. Use moment.locale instead.",L1),o.langData=R0("moment.langData is deprecated. Use moment.localeData instead.",i1);var t1=Math.abs;function ic(){var b=this._data;return this._milliseconds=t1(this._milliseconds),this._days=t1(this._days),this._months=t1(this._months),b.milliseconds=t1(b.milliseconds),b.seconds=t1(b.seconds),b.minutes=t1(b.minutes),b.hours=t1(b.hours),b.months=t1(b.months),b.years=t1(b.years),this}function Xz(b,p,c,A){var a=U0(p,c);return b._milliseconds+=A*a._milliseconds,b._days+=A*a._days,b._months+=A*a._months,b._bubble()}function tc(b,p){return Xz(this,b,p,1)}function qc(b,p){return Xz(this,b,p,-1)}function Tz(b){return b<0?Math.floor(b):Math.ceil(b)}function rc(){var b=this._milliseconds,p=this._days,c=this._months,A=this._data,a,q,s,B,w;return b>=0&&p>=0&&c>=0||b<=0&&p<=0&&c<=0||(b+=Tz(HM(c)+p)*864e5,p=0,c=0),A.milliseconds=b%1e3,a=V0(b/1e3),A.seconds=a%60,q=V0(a/60),A.minutes=q%60,s=V0(q/60),A.hours=s%24,p+=V0(s/24),w=V0(Sz(p)),c+=w,p-=Tz(HM(w)),B=V0(c/12),c%=12,A.days=p,A.months=c,A.years=B,this}function Sz(b){return b*4800/146097}function HM(b){return b*146097/4800}function nc(b){if(!this.isValid())return NaN;var p,c,A=this._milliseconds;if(b=F(b),b==="month"||b==="quarter"||b==="year")switch(p=this._days+A/864e5,c=this._months+Sz(p),b){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(p=this._days+Math.round(HM(this._months)),b){case"week":return p/7+A/6048e5;case"day":return p+A/864e5;case"hour":return p*24+A/36e5;case"minute":return p*1440+A/6e4;case"second":return p*86400+A/1e3;case"millisecond":return Math.floor(p*864e5)+A;default:throw new Error("Unknown unit "+b)}}function q1(b){return function(){return this.as(b)}}var Dz=q1("ms"),sc=q1("s"),dc=q1("m"),Wc=q1("h"),fc=q1("d"),lc=q1("w"),uc=q1("M"),Rc=q1("Q"),mc=q1("y"),hc=Dz;function kc(){return U0(this)}function xc(b){return b=F(b),this.isValid()?this[b+"s"]():NaN}function w1(b){return function(){return this.isValid()?this._data[b]:NaN}}var Lc=w1("milliseconds"),Bc=w1("seconds"),Nc=w1("minutes"),yc=w1("hours"),Xc=w1("days"),Tc=w1("months"),Sc=w1("years");function Dc(){return V0(this.days()/7)}var r1=Math.round,U1={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ec(b,p,c,A,a){return a.relativeTime(p||1,!!c,b,A)}function gc(b,p,c,A){var a=U0(b).abs(),q=r1(a.as("s")),s=r1(a.as("m")),B=r1(a.as("h")),w=r1(a.as("d")),j=r1(a.as("M")),S0=r1(a.as("w")),n1=r1(a.as("y")),N1=q<=c.ss&&["s",q]||q<c.s&&["ss",q]||s<=1&&["m"]||s<c.m&&["mm",s]||B<=1&&["h"]||B<c.h&&["hh",B]||w<=1&&["d"]||w<c.d&&["dd",w];return c.w!=null&&(N1=N1||S0<=1&&["w"]||S0<c.w&&["ww",S0]),N1=N1||j<=1&&["M"]||j<c.M&&["MM",j]||n1<=1&&["y"]||["yy",n1],N1[2]=p,N1[3]=+b>0,N1[4]=A,Ec.apply(null,N1)}function wc(b){return b===void 0?r1:typeof b=="function"?(r1=b,!0):!1}function _c(b,p){return U1[b]===void 0?!1:p===void 0?U1[b]:(U1[b]=p,b==="s"&&(U1.ss=p-1),!0)}function Gc(b,p){if(!this.isValid())return this.localeData().invalidDate();var c=!1,A=U1,a,q;return typeof b=="object"&&(p=b,b=!1),typeof b=="boolean"&&(c=b),typeof p=="object"&&(A=Object.assign({},U1,p),p.s!=null&&p.ss==null&&(A.ss=p.s-1)),a=this.localeData(),q=gc(this,!c,A,a),c&&(q=a.pastFuture(+this,q)),a.postformat(q)}var KM=Math.abs;function H1(b){return(b>0)-(b<0)||+b}function U2(){if(!this.isValid())return this.localeData().invalidDate();var b=KM(this._milliseconds)/1e3,p=KM(this._days),c=KM(this._months),A,a,q,s,B=this.asSeconds(),w,j,S0,n1;return B?(A=V0(b/60),a=V0(A/60),b%=60,A%=60,q=V0(c/12),c%=12,s=b?b.toFixed(3).replace(/\.?0+$/,""):"",w=B<0?"-":"",j=H1(this._months)!==H1(B)?"-":"",S0=H1(this._days)!==H1(B)?"-":"",n1=H1(this._milliseconds)!==H1(B)?"-":"",w+"P"+(q?j+q+"Y":"")+(c?j+c+"M":"")+(p?S0+p+"D":"")+(a||A||b?"T":"")+(a?n1+a+"H":"")+(A?n1+A+"M":"")+(b?n1+s+"S":"")):"P0D"}var I=V2.prototype;I.isValid=XO,I.abs=ic,I.add=tc,I.subtract=qc,I.as=nc,I.asMilliseconds=Dz,I.asSeconds=sc,I.asMinutes=dc,I.asHours=Wc,I.asDays=fc,I.asWeeks=lc,I.asMonths=uc,I.asQuarters=Rc,I.asYears=mc,I.valueOf=hc,I._bubble=rc,I.clone=kc,I.get=xc,I.milliseconds=Lc,I.seconds=Bc,I.minutes=Nc,I.hours=yc,I.days=Xc,I.weeks=Dc,I.months=Tc,I.years=Sc,I.humanize=Gc,I.toISOString=U2,I.toString=U2,I.toJSON=U2,I.locale=lz,I.localeData=Rz,I.toIsoString=R0("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",U2),I.lang=uz,T("X",0,0,"unix"),T("x",0,0,"valueOf"),N("x",D2),N("X",O3),b0("X",function(b,p,c){c._d=new Date(parseFloat(b)*1e3)}),b0("x",function(b,p,c){c._d=new Date(C(b))});//! moment.js
29
29
  return o.version="2.30.1",e(o0),o.fn=u,o.min=LO,o.max=BO,o.now=NO,o.utc=E,o.unix=pc,o.months=oc,o.isDate=G,o.locale=L1,o.invalid=H,o.duration=U0,o.isMoment=k0,o.weekdays=Ac,o.parseZone=Oc,o.localeData=i1,o.isDuration=C2,o.monthsShort=cc,o.weekdaysMin=ac,o.defineLocale=wM,o.updateLocale=pO,o.locales=OO,o.weekdaysShort=ec,o.normalizeUnits=F,o.relativeTimeRounding=wc,o.relativeTimeThreshold=_c,o.calendarFormat=ZO,o.prototype=u,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(Mb)),Mb.exports}(function(M,z){(function(O,o){o(typeof ib=="function"?fi():O.moment)})(tb,function(O){//! moment.js locale configuration
30
- var o=O.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,i){return e===12&&(e=0),i==="凌晨"||i==="早上"||i==="上午"?e:i==="下午"||i==="晚上"?e+12:e>=11?e:e+12},meridiem:function(e,i,t){var n=e*100+i;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,i){switch(i){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return o})})();const li=Object.freeze({error:0,waiting:5,pending:10,starting:20,running:30,restarting:40,underMaintenance:45,stopping:50,stopped:60,terminatedInstance:70,expired:80,terminated:90}),ui=Object.freeze({draft:10,published:20,dropped:30}),Ri=Object.freeze({created:0,selected:10,connected:20,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,expired:60,terminated:70,timeout:80,transferred:90}),wb=M=>Object.keys(M).reduce((z,O)=>(z[M[O]]=O,z),{});wb(li);wb(ui);wb(Ri);const jz=M=>Ez(M,"title")||Ez(M,"name")||"";var mi=Object.prototype.hasOwnProperty,hi=Object.prototype.toString;function ki(M){if(M==null)return!0;if(typeof M=="boolean")return!1;if(typeof M=="number")return M===0;if(typeof M=="string"||typeof M=="function"||Array.isArray(M))return M.length===0;if(M instanceof Error)return M.message==="";if(M.toString==hi)switch(M.toString()){case"[object File]":case"[object Map]":case"[object Set]":return M.size===0;case"[object Object]":{for(var z in M)if(mi.call(M,z))return!1;return!0}}return!1}var xi=ki;const Li=qb(xi),Bi="data:image/png;base64,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",bb={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},Ni=M=>bb[M]?bb[M]:bb.en,yi=M=>M==="zh"?"启动":"Launching";function dM({blockletMeta:M,subTitle:z,logoUrl:O,locale:o,navLogo:e,loading:i}){const t=Kz(G=>G.breakpoints.down("md")),n=t?18:48,l=_.useRef(null),[d,L]=_.useState("");return _.useEffect(()=>{l.current&&l.current.offsetHeight>34&&(d===""?L("middle"):d==="middle"&&L("small"))},[d]),m.jsxs(Di,{className:d==="small"?"center-mode":"",children:[t?m.jsx("div",{className:"app-icon",children:e}):m.jsxs("div",{className:"app-icon",children:[i&&m.jsx(Xi,{blockletSize:n,isMobile:t}),!i&&m.jsx(Yp,{blockletSize:n,logoUrl:O})]}),m.jsxs("div",{className:"header-title",children:[t&&z&&m.jsx("div",{className:"header-title-sub",children:z}),m.jsxs("div",{className:"app-name-content",children:[!t&&m.jsx("div",{className:"launching-context",children:z||yi(o)}),m.jsx("div",{className:`header-title-name ${d==="middle"||d==="small"?"middle-size":""}`,ref:l,children:m.jsx(_b,{logoUrl:O,isMobile:t,blockletMeta:M,blockletSize:n,loading:i})})]})]})]})}dM.propTypes={blockletMeta:S.object,subTitle:S.any,logoUrl:S.string,locale:S.string,navLogo:S.any,loading:S.bool};dM.defaultProps={subTitle:"",logoUrl:"",locale:"",navLogo:"",loading:!1,blockletMeta:{}};function Xi({blockletSize:M,isMobile:z}){return z?m.jsx(l2,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):m.jsx(l2,{variant:"rectangular",width:M,height:M})}function Yp({logoUrl:M,blockletSize:z}){return m.jsx(Cc,{width:z,height:z,src:M,alt:"blocklet icon",fallback:Bi,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${M}`)}function _b({isMobile:M,logoUrl:z,blockletMeta:O,blockletSize:o,loading:e}){const i=jz(O);return e?m.jsx(l2,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):Li(O)?m.jsx(l2,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):M?m.jsxs(Ti,{children:[m.jsx(Yp,{blockletSize:o,logoUrl:z}),m.jsx("span",{className:"ellipsis-title",children:jz(O)})]}):m.jsx(Si,{target:"_blank",href:pA((O==null?void 0:O.registryUrl)||"",`/blocklets/${O==null?void 0:O.did}`),title:i,children:i})}const Ti=_0.div`
30
+ var o=O.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,i){return e===12&&(e=0),i==="凌晨"||i==="早上"||i==="上午"?e:i==="下午"||i==="晚上"?e+12:e>=11?e:e+12},meridiem:function(e,i,t){var n=e*100+i;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,i){switch(i){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return o})})();const li=Object.freeze({error:0,waiting:5,pending:10,starting:20,running:30,restarting:40,underMaintenance:45,stopping:50,stopped:60,terminatedInstance:70,expired:80,terminated:90}),ui=Object.freeze({draft:10,published:20,dropped:30}),Ri=Object.freeze({created:0,selected:10,connected:20,timeout:25,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,expired:60,terminated:70,transferred:90}),wb=M=>Object.keys(M).reduce((z,O)=>(z[M[O]]=O,z),{});wb(li);wb(ui);wb(Ri);const jz=M=>Ez(M,"title")||Ez(M,"name")||"";var mi=Object.prototype.hasOwnProperty,hi=Object.prototype.toString;function ki(M){if(M==null)return!0;if(typeof M=="boolean")return!1;if(typeof M=="number")return M===0;if(typeof M=="string"||typeof M=="function"||Array.isArray(M))return M.length===0;if(M instanceof Error)return M.message==="";if(M.toString==hi)switch(M.toString()){case"[object File]":case"[object Map]":case"[object Set]":return M.size===0;case"[object Object]":{for(var z in M)if(mi.call(M,z))return!1;return!0}}return!1}var xi=ki;const Li=qb(xi),Bi="data:image/png;base64,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",bb={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},Ni=M=>bb[M]?bb[M]:bb.en,yi=M=>M==="zh"?"启动":"Launching";function dM({blockletMeta:M,subTitle:z,logoUrl:O,locale:o,navLogo:e,loading:i}){const t=Kz(G=>G.breakpoints.down("md")),n=t?18:48,l=_.useRef(null),[d,L]=_.useState("");return _.useEffect(()=>{l.current&&l.current.offsetHeight>34&&(d===""?L("middle"):d==="middle"&&L("small"))},[d]),m.jsxs(Di,{className:d==="small"?"center-mode":"",children:[t?m.jsx("div",{className:"app-icon",children:e}):m.jsxs("div",{className:"app-icon",children:[i&&m.jsx(Xi,{blockletSize:n,isMobile:t}),!i&&m.jsx(Yp,{blockletSize:n,logoUrl:O})]}),m.jsxs("div",{className:"header-title",children:[t&&z&&m.jsx("div",{className:"header-title-sub",children:z}),m.jsxs("div",{className:"app-name-content",children:[!t&&m.jsx("div",{className:"launching-context",children:z||yi(o)}),m.jsx("div",{className:`header-title-name ${d==="middle"||d==="small"?"middle-size":""}`,ref:l,children:m.jsx(_b,{logoUrl:O,isMobile:t,blockletMeta:M,blockletSize:n,loading:i})})]})]})]})}dM.propTypes={blockletMeta:S.object,subTitle:S.any,logoUrl:S.string,locale:S.string,navLogo:S.any,loading:S.bool};dM.defaultProps={subTitle:"",logoUrl:"",locale:"",navLogo:"",loading:!1,blockletMeta:{}};function Xi({blockletSize:M,isMobile:z}){return z?m.jsx(l2,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):m.jsx(l2,{variant:"rectangular",width:M,height:M})}function Yp({logoUrl:M,blockletSize:z}){return m.jsx(Cc,{width:z,height:z,src:M,alt:"blocklet icon",fallback:Bi,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${M}`)}function _b({isMobile:M,logoUrl:z,blockletMeta:O,blockletSize:o,loading:e}){const i=jz(O);return e?m.jsx(l2,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):Li(O)?m.jsx(l2,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):M?m.jsxs(Ti,{children:[m.jsx(Yp,{blockletSize:o,logoUrl:z}),m.jsx("span",{className:"ellipsis-title",children:jz(O)})]}):m.jsx(Si,{target:"_blank",href:pA((O==null?void 0:O.registryUrl)||"",`/blocklets/${O==null?void 0:O.did}`),title:i,children:i})}const Ti=_0.div`
31
31
  .ellipsis-title {
32
32
  flex: 1;
33
33
  position: absolute;
@@ -1,4 +1,4 @@
1
- import{r as $,j as i,fx as co,ci as ze,fy as lo,ff as lt,O as Z,as as mr,ax as He,m as Ce,eC as uo,d2 as Mr,fz as fo,q as Ne,fA as hr,fB as po,aG as mo,ch as ho,dP as $r,R as xt,dA as On,dD as It,fC as ft,di as Oe,fD as go,fE as yo,fm as Rn,fF as gr,fG as vo,fH as bo,fI as xo,fJ as wo,dz as nr,g as Eo,cP as zr,dG as So,M as jo,bm as De,aO as Cn,S as wt,dH as Ao,fK as yr,at as dt,D as We,B as Se,C as rt,w as vr,J as tt,K as Ge,P as M,fL as Po,k as or,aU as Io,x as Oo,y as Ro,n as _e,fe as Co,f as pt,ad as Ot,U as ke,cc as Ye,A as nt,fM as To,aK as Tn,aL as Dn,b as Ve,d6 as Do,t as _n,F as Ee,a1 as ir,W as br,ce as _o,fN as Nn,aQ as No,aD as Lo,a9 as Bo,cB as qo,a2 as ko,bq as Uo,aZ as Fo,a_ as Ko,Q as Mo}from"./index-gBZtvLTL.js";import{c as $o}from"./index-BT2YG5dz.js";import{d as Et}from"./Add-pKyUqZnX.js";import{d as zo}from"./Loop-DJNY6Gly.js";import{d as Wo}from"./ViewList-Br9JJqgO.js";import{L as Vo,S as Ho,d as Ln}from"./list-header-CXVLNW82.js";import{D as xr,g as Go}from"./index-Dw0ah9mI.js";import"./index-Dt6QXT-d.js";import{c as Lt,U as Bt,d as Bn}from"./resource-dialog-Daf0mVPu.js";import{T as Yo}from"./index-ER8p4lvE.js";import{E as qn}from"./index-rFymmF-6.js";import"./index-CSDwzowm.js";import{l as kn}from"./index-CCOLrY6y.js";import{o as Zo}from"./index-ZG7jWpak.js";import{W as Un}from"./tag-OD5kAVwU.js";import{a as Fe}from"./team-Cx3ujP3D.js";import{u as Fn}from"./blocklet-rYMojVwR.js";import{C as Rt}from"./click-to-copy-C_gleQEN.js";import{F as ar,S as sr}from"./Select-DznafFqO.js";import{I as cr}from"./InputLabel-SPUYdufd.js";import{T as Kn}from"./TextField-Bhm-pGTt.js";import{I as lr}from"./index-BwjYNlcZ.js";import{d as Jo}from"./Delete-BG_3zNXs.js";import{A as Xo}from"./actions-DYuHxkf6.js";import{S as Qo}from"./shorten-label-HX5HiA5v.js";var wr={};Object.defineProperty(wr,"__esModule",{value:!0});var Mn=wr.default=void 0;ei($);var Qe=i;function ei(e){return e&&e.__esModule?e:{default:e}}function Wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wr(Object(r),!0).forEach(function(n){ti(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ti(e,t,r){return t=ri(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ri(e){var t=ni(e,"string");return typeof t=="symbol"?t:String(t)}function ni(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Er=function(t){return(0,Qe.jsxs)("svg",Vr(Vr({},t),{},{children:[(0,Qe.jsx)("g",{clipPath:"url(#clip0)",children:(0,Qe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,Qe.jsx)("defs",{children:(0,Qe.jsx)("clipPath",{id:"clip0",children:(0,Qe.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Er.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Er.displayName="person";Mn=wr.default=Er;var bt={},oi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),$n="%[a-f0-9]{2}",Hr=new RegExp("("+$n+")|([^%]+?)","gi"),Gr=new RegExp("("+$n+")+","gi");function ur(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ur(r),ur(n))}function ii(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Hr)||[],r=1;r<t.length;r++)e=ur(t,r).join(""),t=e.match(Hr)||[];return e}}function ai(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Gr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ii(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Gr.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),l=0;l<a.length;l++){var v=a[l];e=e.replace(new RegExp(v,"g"),t[v])}return e}var si=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return ai(e)}},ci=(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)]},li=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),l=0;l<n.length;l++){var v=n[l],b=e[v];(a?t.indexOf(v)!==-1:t(v,b,e))&&(r[v]=b)}return r};(function(e){const t=oi,r=si,n=ci,a=li,l=o=>o==null;function v(o){switch(o.arrayFormat){case"index":return s=>(u,g)=>{const d=u.length;return g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,[S(s,o),"[",d,"]"].join("")]:[...u,[S(s,o),"[",S(d,o),"]=",S(g,o)].join("")]};case"bracket":return s=>(u,g)=>g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,[S(s,o),"[]"].join("")]:[...u,[S(s,o),"[]=",S(g,o)].join("")];case"comma":case"separator":return s=>(u,g)=>g==null||g.length===0?u:u.length===0?[[S(s,o),"=",S(g,o)].join("")]:[[u,S(g,o)].join(o.arrayFormatSeparator)];default:return s=>(u,g)=>g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,S(s,o)]:[...u,[S(s,o),"=",S(g,o)].join("")]}}function b(o){let s;switch(o.arrayFormat){case"index":return(u,g,d)=>{if(s=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!s){d[u]=g;return}d[u]===void 0&&(d[u]={}),d[u][s[1]]=g};case"bracket":return(u,g,d)=>{if(s=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!s){d[u]=g;return}if(d[u]===void 0){d[u]=[g];return}d[u]=[].concat(d[u],g)};case"comma":case"separator":return(u,g,d)=>{const R=typeof g=="string"&&g.includes(o.arrayFormatSeparator),I=typeof g=="string"&&!R&&f(g,o).includes(o.arrayFormatSeparator);g=I?f(g,o):g;const D=R||I?g.split(o.arrayFormatSeparator).map(X=>f(X,o)):g===null?g:f(g,o);d[u]=D};default:return(u,g,d)=>{if(d[u]===void 0){d[u]=g;return}d[u]=[].concat(d[u],g)}}}function y(o){if(typeof o!="string"||o.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(o,s){return s.encode?s.strict?t(o):encodeURIComponent(o):o}function f(o,s){return s.decode?r(o):o}function N(o){return Array.isArray(o)?o.sort():typeof o=="object"?N(Object.keys(o)).sort((s,u)=>Number(s)-Number(u)).map(s=>o[s]):o}function j(o){const s=o.indexOf("#");return s!==-1&&(o=o.slice(0,s)),o}function A(o){let s="";const u=o.indexOf("#");return u!==-1&&(s=o.slice(u)),s}function E(o){o=j(o);const s=o.indexOf("?");return s===-1?"":o.slice(s+1)}function x(o,s){return s.parseNumbers&&!Number.isNaN(Number(o))&&typeof o=="string"&&o.trim()!==""?o=Number(o):s.parseBooleans&&o!==null&&(o.toLowerCase()==="true"||o.toLowerCase()==="false")&&(o=o.toLowerCase()==="true"),o}function p(o,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),y(s.arrayFormatSeparator);const u=b(s),g=Object.create(null);if(typeof o!="string"||(o=o.trim().replace(/^[?#&]/,""),!o))return g;for(const d of o.split("&")){if(d==="")continue;let[R,I]=n(s.decode?d.replace(/\+/g," "):d,"=");I=I===void 0?null:["comma","separator"].includes(s.arrayFormat)?I:f(I,s),u(f(R,s),I,g)}for(const d of Object.keys(g)){const R=g[d];if(typeof R=="object"&&R!==null)for(const I of Object.keys(R))R[I]=x(R[I],s);else g[d]=x(R,s)}return s.sort===!1?g:(s.sort===!0?Object.keys(g).sort():Object.keys(g).sort(s.sort)).reduce((d,R)=>{const I=g[R];return I&&typeof I=="object"&&!Array.isArray(I)?d[R]=N(I):d[R]=I,d},Object.create(null))}e.extract=E,e.parse=p,e.stringify=(o,s)=>{if(!o)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),y(s.arrayFormatSeparator);const u=I=>s.skipNull&&l(o[I])||s.skipEmptyString&&o[I]==="",g=v(s),d={};for(const I of Object.keys(o))u(I)||(d[I]=o[I]);const R=Object.keys(d);return s.sort!==!1&&R.sort(s.sort),R.map(I=>{const D=o[I];return D===void 0?"":D===null?S(I,s):Array.isArray(D)?D.reduce(g(I),[]).join("&"):S(I,s)+"="+S(D,s)}).filter(I=>I.length>0).join("&")},e.parseUrl=(o,s)=>{s=Object.assign({decode:!0},s);const[u,g]=n(o,"#");return Object.assign({url:u.split("?")[0]||"",query:p(E(o),s)},s&&s.parseFragmentIdentifier&&g?{fragmentIdentifier:f(g,s)}:{})},e.stringifyUrl=(o,s)=>{s=Object.assign({encode:!0,strict:!0},s);const u=j(o.url).split("?")[0]||"",g=e.extract(o.url),d=e.parse(g,{sort:!1}),R=Object.assign(d,o.query);let I=e.stringify(R,s);I&&(I=`?${I}`);let D=A(o.url);return o.fragmentIdentifier&&(D=`#${S(o.fragmentIdentifier,s)}`),`${u}${I}${D}`},e.pick=(o,s,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:g,query:d,fragmentIdentifier:R}=e.parseUrl(o,u);return e.stringifyUrl({url:g,query:a(d,s),fragmentIdentifier:R},u)},e.exclude=(o,s,u)=>{const g=Array.isArray(s)?d=>!s.includes(d):(d,R)=>!s(d,R);return e.pick(o,g,u)}})(bt);const st=lo,ui={parseNumbers:!1,parseBooleans:!1},fi={skipNull:!1,skipEmptyString:!1},di=(e,t)=>{var r,n;const{navigateMode:a="push",parseOptions:l,stringifyOptions:v}=t||{},b=Object.assign(Object.assign({},ui),l),y=Object.assign(Object.assign({},fi),v),S=st.useLocation(),f=(r=st.useHistory)===null||r===void 0?void 0:r.call(st),N=(n=st.useNavigate)===null||n===void 0?void 0:n.call(st),j=co(),A=$.useRef(typeof e=="function"?e():e||{}),E=$.useMemo(()=>bt.parse(S.search,b),[S.search]),x=$.useMemo(()=>Object.assign(Object.assign({},A.current),E),[E]);return[x,ze(o=>{const s=typeof o=="function"?o(x):o;j(),f&&f[a]({hash:S.hash,search:bt.stringify(Object.assign(Object.assign({},E),s),y)||"?"},S.state),N&&N({hash:S.hash,search:bt.stringify(Object.assign(Object.assign({},E),s),y)||"?"},{replace:a==="replace",state:S.state})})]},pi=di;let mi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Yr=e=>globalThis.DOMException===void 0?new mi(e):new DOMException(e),Zr=e=>{const t=e.reason===void 0?Yr("This operation was aborted."):e.reason;return t instanceof Error?t:Yr(t)};async function hi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:a}={}){return new Promise((l,v)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const b=[],y=[],S=new Map;let f=!1,N=!1,j=!1,A=0,E=0;const x=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),p=s=>{f=!0,N=!0,v(s)};a&&(a.aborted&&p(Zr(a)),a.addEventListener("abort",()=>{p(Zr(a))}));const o=async()=>{if(N)return;const s=await x.next(),u=E;if(E++,s.done){if(j=!0,A===0&&!N){if(!n&&y.length>0){p(new AggregateError(y));return}if(N=!0,S.size===0){l(b);return}const g=[];for(const[d,R]of b.entries())S.get(d)!==Jr&&g.push(R);l(g)}return}A++,(async()=>{try{const g=await s.value;if(N)return;const d=await t(g,u);d===Jr&&S.set(u,d),b[u]=d,A--,await o()}catch(g){if(n)p(g);else{y.push(g),A--;try{await o()}catch(d){p(d)}}}})()};(async()=>{for(let s=0;s<r;s++){try{await o()}catch(u){p(u);break}if(j||f)break}})()})}const Jr=Symbol("skip");async function gi(e,t){return hi(e,r=>r(),t)}function yi({user:e,sessionUser:t}){const r=lt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(a=>a.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return i.jsxs(Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(mr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),i.jsxs(Z,{sx:{flex:1,overflow:"hidden"},children:[i.jsxs(Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(He,{title:t.fullName,children:i.jsx(Ce,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),i.jsx(uo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Mr.textBase,borderColor:Mr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),i.jsx(He,{title:t.email,children:i.jsx(Ce,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const vi={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},zn="Reserved IP",Xr="ip-region-cache";async function bi(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let a="";return n.error?n.reserved&&(a=zn):a=[n.country_name,n.region,n.city].filter(Boolean).join("/"),a}async function xi(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let a="";return n.error?n.reserved&&(a=zn):a=[n.country,n.region,n.city].filter(Boolean).join("/"),a}async function wi(e){let t="",r={};try{const n=localStorage.getItem(Xr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await xi(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await bi(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Xr,JSON.stringify(r))}return t}async function Ei(e){return Promise.all(e.map(t=>wi(t)))}const Qr=e=>new Bt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Bt.BROWSER.NAME,Bt.BROWSER.VERSION]]}).getResult();function Si({user:e,showAction:t=!0,showUser:r=!0}){const n=fo(),{locale:a}=Ne(),{confirmApi:l,confirmHolder:v}=hr(),b=ze((s,u={})=>po(vi,s,a,"en",u)),y=ze(async()=>{let s=e==null?void 0:e.userSessions;s||(s=await Lt.userSession.getUserSessions({did:e.did}));try{const g=s==null?void 0:s.map((I,D)=>[D,I.lastLoginIp]).filter(I=>!!I[1]),d=g==null?void 0:g.map(I=>I[1]),R=await Ei(d);for(let I=0;I<R.length;I++){const D=R[I],X=g[I],ce=s[X[0]];ce.ipRegion=D}}catch(g){console.warn("Failed to convert ip to region"),console.error(g)}const u=new Date().getTime();return mo(s,g=>g.visitorId===n?-1:u-new Date(g.updatedAt).getTime())}),S=ho(y),f=lt(()=>S.data||[],[S.data]),N=lt(()=>f.reduce((s,u)=>(s[u.lastLoginIp]=u.ipRegion,s),{}),[f]),j=ze(({visitorId:s})=>{l.open({title:b("logoutThisSession"),content:b("logoutThisSessionConfirm"),confirmButtonText:b("confirm"),cancelButtonText:b("cancel"),onConfirm:async()=>{await Lt.user.logout({visitorId:s}),S.refresh(),l.close()}})}),A=lt(()=>f.filter(u=>u.visitorId!==n),[f]),E=ze(()=>{l.open({title:b("logoutAllSession"),content:b("logoutAllSessionConfirm"),confirmButtonText:b("confirm"),cancelButtonText:b("cancel"),onConfirm:async()=>{const s=A.map(u=>()=>Lt.user.logout({visitorId:u.visitorId}));await gi(s,{concurrency:3,stopOnError:!1}),S.refresh(),l.close()}})}),x=[];t&&x.push(i.jsx(He,{title:b("logoutAllTips"),children:i.jsx($r,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:E,disabled:A.length===0,children:b("logoutAll")})},"logoutAll"));const p=lt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),o=[{label:b("platform"),name:"platform",options:{customBodyRenderLite:s=>{var d,R;const u=f[s],g=Qr(u.ua);return i.jsx(Z,{children:[(d=g.os)==null?void 0:d.name,(R=g.os)==null?void 0:R.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("deviceType"),name:"deviceType",options:{customBodyRenderLite:s=>{var d,R;const u=f[s],g=Qr(u.ua);return i.jsx(Z,{children:[(d=g.browser)==null?void 0:d.name,(R=g.browser)==null?void 0:R.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("walletOS"),name:"walletOS",options:{customBodyRenderLite:s=>{var g;const u=f[s];return i.jsx(Z,{children:((g=u.extra)==null?void 0:g.walletOS)||b("unknown")})}}},r&&{label:b("user"),name:"user",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{sx:{minWidth:150,maxWidth:250},children:i.jsx(yi,{sessionUser:u.user,user:e})})}}},{label:b("createdAt"),name:"createdAt",options:{customBodyRenderLite:s=>{const u=f[s];return u.createdAt?i.jsx(xt,{value:u.createdAt,relativeRange:3*86400*1e3,locale:a}):b("unknown")}}},{label:b("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:s=>{const u=f[s];return u.status==="expired"?b("expired"):i.jsx(xt,{value:u.updatedAt,relativeRange:3*86400*1e3,locale:a})}}},{label:b("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{children:N[u.lastLoginIp]?i.jsxs(i.Fragment,{children:[i.jsx(Ce,{variant:"body2",children:N[u.lastLoginIp]}),i.jsx(Ce,{variant:"body2",color:"grey",children:u.lastLoginIp||b("unknown")})]}):i.jsx(Ce,{children:u.lastLoginIp||b("unknown")})})}}},t&&{label:b("actions"),name:"actions",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{children:i.jsx($r,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===u.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>j({visitorId:u.visitorId}),children:u.status==="expired"?b("remove"):n===u.visitorId?b("currentSession"):b("logout")})})}}}].filter(Boolean);return i.jsxs(Z,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[v,i.jsx(xr,{locale:a,data:f,columns:o,customButtons:x,options:p,loading:S.loading})]})}var ue={};Object.defineProperty(ue,"__esModule",{value:!0});ue.isValid=ue.fromJSON=ue.fromRandom=ue.fromAddress=ue.fromPublicKey=ue.fromSecretKey=ue.Wallet=ue.WalletType=void 0;const mt=On,St=It,Ae=kn;ue.WalletType=Ae.DidType;function ot(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,St.getSigner)(r.pk),a=(0,St.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(l,v=1,b="hex"){return a(l,v,b)},sign(l,v=!0,b="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(v){const y=a(l,1);return n.sign(y,e.sk,b)}return n.sign(l,e.sk,b)},verify(l,v,b=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const y=b?a(l,1):l;return n.verify(y,v,e.pk)},ethHash(l){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(l)},ethSign(l,v=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return v?n.ethSign(n.ethHash(l),(0,mt.toHex)(e.sk)):n.ethSign(l,(0,mt.toHex)(e.sk))},ethVerify(l,v,b=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const y=b?n.ethHash(l):l;return n.ethRecover(y,v)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,mt.toHex)(e.sk),pk:(0,mt.toHex)(e.pk),address:this.address}}}}ue.Wallet=ot;function ji(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,St.getSigner)(r.pk).getPublicKey(e)};return ot(n,r)}ue.fromSecretKey=ji;function Ai(e,t="default"){return ot({pk:e},(0,Ae.DidType)(t))}ue.fromPublicKey=Ai;function Pi(e){return ot({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}ue.fromAddress=Pi;function Ii(e="default"){const t=(0,Ae.DidType)(e),n=(0,St.getSigner)(t.pk).genKeyPair();return ot({sk:n.secretKey,pk:n.publicKey},t)}ue.fromRandom=Ii;function Oi(e){const t=Ae.DidType.fromJSON(e.type);return ot(e,t)}ue.fromJSON=Oi;function Ri(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}ue.isValid=Ri;var qt={exports:{}},kt={},en;function Wn(){if(en)return kt;en=1;function e(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(o){return typeof o}:e=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(x)}function t(x,p){if(!(x instanceof p))throw new TypeError("Cannot call a class as a function")}function r(x,p){return p&&(e(p)==="object"||typeof p=="function")?p:n(x)}function n(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function a(x){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},a(x)}function l(x,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(p&&p.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),p&&v(x,p)}function v(x,p){return v=Object.setPrototypeOf||function(s,u){return s.__proto__=u,s},v(x,p)}var b={},y,S;function f(x,p,o){o||(o=Error);function s(g,d,R){return typeof p=="string"?p:p(g,d,R)}var u=function(g){l(d,g);function d(R,I,D){var X;return t(this,d),X=r(this,a(d).call(this,s(R,I,D))),X.code=x,X}return d}(o);b[x]=u}function N(x,p){if(Array.isArray(x)){var o=x.length;return x=x.map(function(s){return String(s)}),o>2?"one of ".concat(p," ").concat(x.slice(0,o-1).join(", "),", or ")+x[o-1]:o===2?"one of ".concat(p," ").concat(x[0]," or ").concat(x[1]):"of ".concat(p," ").concat(x[0])}else return"of ".concat(p," ").concat(String(x))}function j(x,p,o){return x.substr(!o||o<0?0:+o,p.length)===p}function A(x,p,o){return(o===void 0||o>x.length)&&(o=x.length),x.substring(o-p.length,o)===p}function E(x,p,o){return typeof o!="number"&&(o=0),o+p.length>x.length?!1:x.indexOf(p,o)!==-1}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(x,p,o){y===void 0&&(y=fr()),y(typeof x=="string","'name' must be a string");var s;typeof p=="string"&&j(p,"not ")?(s="must not be",p=p.replace(/^not /,"")):s="must be";var u;if(A(x," argument"))u="The ".concat(x," ").concat(s," ").concat(N(p,"type"));else{var g=E(x,".")?"property":"argument";u='The "'.concat(x,'" ').concat(g," ").concat(s," ").concat(N(p,"type"))}return u+=". Received type ".concat(e(o)),u},TypeError),f("ERR_INVALID_ARG_VALUE",function(x,p){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";S===void 0&&(S=ft);var s=S.inspect(p);return s.length>128&&(s="".concat(s.slice(0,128),"...")),"The argument '".concat(x,"' ").concat(o,". Received ").concat(s)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(x,p,o){var s;return o&&o.constructor&&o.constructor.name?s="instance of ".concat(o.constructor.name):s="type ".concat(e(o)),"Expected ".concat(x,' to be returned from the "').concat(p,'"')+" function but got ".concat(s,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var x=arguments.length,p=new Array(x),o=0;o<x;o++)p[o]=arguments[o];y===void 0&&(y=fr()),y(p.length>0,"At least one arg needs to be specified");var s="The ",u=p.length;switch(p=p.map(function(g){return'"'.concat(g,'"')}),u){case 1:s+="".concat(p[0]," argument");break;case 2:s+="".concat(p[0]," and ").concat(p[1]," arguments");break;default:s+=p.slice(0,u-1).join(", "),s+=", and ".concat(p[u-1]," arguments");break}return"".concat(s," must be specified")},TypeError),kt.codes=b,kt}var Ut,tn;function Ci(){if(tn)return Ut;tn=1;function e(O){for(var C=1;C<arguments.length;C++){var k=arguments[C]!=null?arguments[C]:{},U=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(U=U.concat(Object.getOwnPropertySymbols(k).filter(function(z){return Object.getOwnPropertyDescriptor(k,z).enumerable}))),U.forEach(function(z){t(O,z,k[z])})}return O}function t(O,C,k){return C in O?Object.defineProperty(O,C,{value:k,enumerable:!0,configurable:!0,writable:!0}):O[C]=k,O}function r(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function n(O,C){for(var k=0;k<C.length;k++){var U=C[k];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(O,U.key,U)}}function a(O,C,k){return C&&n(O.prototype,C),k&&n(O,k),O}function l(O,C){return C&&(E(C)==="object"||typeof C=="function")?C:v(O)}function v(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function b(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),C&&j(O,C)}function y(O){var C=typeof Map=="function"?new Map:void 0;return y=function(U){if(U===null||!N(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof C<"u"){if(C.has(U))return C.get(U);C.set(U,z)}function z(){return f(U,arguments,A(this).constructor)}return z.prototype=Object.create(U.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),j(z,U)},y(O)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(O,C,k){return S()?f=Reflect.construct:f=function(z,Q,P){var h=[null];h.push.apply(h,Q);var w=Function.bind.apply(z,h),T=new w;return P&&j(T,P.prototype),T},f.apply(null,arguments)}function N(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function j(O,C){return j=Object.setPrototypeOf||function(U,z){return U.__proto__=z,U},j(O,C)}function A(O){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},A(O)}function E(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(k){return typeof k}:E=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},E(O)}var x=ft,p=x.inspect,o=Wn(),s=o.codes.ERR_INVALID_ARG_TYPE;function u(O,C,k){return(k===void 0||k>O.length)&&(k=O.length),O.substring(k-C.length,k)===C}function g(O,C){if(C=Math.floor(C),O.length==0||C==0)return"";var k=O.length*C;for(C=Math.floor(Math.log(C)/Math.log(2));C;)O+=O,C--;return O+=O.substring(0,k-O.length),O}var d="",R="",I="",D="",X={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:"},ce=10;function fe(O){var C=Object.keys(O),k=Object.create(Object.getPrototypeOf(O));return C.forEach(function(U){k[U]=O[U]}),Object.defineProperty(k,"message",{value:O.message}),k}function oe(O){return p(O,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ie(O,C,k){var U="",z="",Q=0,P="",h=!1,w=oe(O),T=w.split(`
1
+ import{r as $,j as i,fx as co,ci as ze,fy as lo,ff as lt,O as Z,as as mr,ax as He,m as Ce,eC as uo,d2 as Mr,fz as fo,q as Ne,fA as hr,fB as po,aG as mo,ch as ho,dP as $r,R as xt,dA as On,dD as It,fC as ft,di as Oe,fD as go,fE as yo,fm as Rn,fF as gr,fG as vo,fH as bo,fI as xo,fJ as wo,dz as nr,g as Eo,cP as zr,dG as So,M as jo,bm as De,aO as Cn,S as wt,dH as Ao,fK as yr,at as dt,D as We,B as Se,C as rt,w as vr,J as tt,K as Ge,P as M,fL as Po,k as or,aU as Io,x as Oo,y as Ro,n as _e,fe as Co,f as pt,ad as Ot,U as ke,cc as Ye,A as nt,fM as To,aK as Tn,aL as Dn,b as Ve,d6 as Do,t as _n,F as Ee,a1 as ir,W as br,ce as _o,fN as Nn,aQ as No,aD as Lo,a9 as Bo,cB as qo,a2 as ko,bq as Uo,aZ as Fo,a_ as Ko,Q as Mo}from"./index-DUbVlGHL.js";import{c as $o}from"./index-CORPg19z.js";import{d as Et}from"./Add-DHT1BmpU.js";import{d as zo}from"./Loop-BSoG3XC7.js";import{d as Wo}from"./ViewList-BZYBXK5G.js";import{L as Vo,S as Ho,d as Ln}from"./list-header-jQFD3ypr.js";import{D as xr,g as Go}from"./index-CQbXLdsW.js";import"./index-CuQNcCwI.js";import{c as Lt,U as Bt,d as Bn}from"./resource-dialog-Cndve5Eq.js";import{T as Yo}from"./index-DeGfvFby.js";import{E as qn}from"./index-BKJH8Ljf.js";import"./index-f1IZ9dg8.js";import{l as kn}from"./index-BuW4J_e1.js";import{o as Zo}from"./index-ZG7jWpak.js";import{W as Un}from"./tag-CVH29rjj.js";import{a as Fe}from"./team-D5kwTzkR.js";import{u as Fn}from"./blocklet-Cotqz0Dc.js";import{C as Rt}from"./click-to-copy-CbXPc1br.js";import{F as ar,S as sr}from"./Select--7f2BqZZ.js";import{I as cr}from"./InputLabel-DjG6Kr8Z.js";import{T as Kn}from"./TextField-DUcd2awI.js";import{I as lr}from"./index-DvQ6gbRN.js";import{d as Jo}from"./Delete-BtIq7u3G.js";import{A as Xo}from"./actions-CgLiQCtD.js";import{S as Qo}from"./shorten-label-Djatj--L.js";var wr={};Object.defineProperty(wr,"__esModule",{value:!0});var Mn=wr.default=void 0;ei($);var Qe=i;function ei(e){return e&&e.__esModule?e:{default:e}}function Wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wr(Object(r),!0).forEach(function(n){ti(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ti(e,t,r){return t=ri(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ri(e){var t=ni(e,"string");return typeof t=="symbol"?t:String(t)}function ni(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Er=function(t){return(0,Qe.jsxs)("svg",Vr(Vr({},t),{},{children:[(0,Qe.jsx)("g",{clipPath:"url(#clip0)",children:(0,Qe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,Qe.jsx)("defs",{children:(0,Qe.jsx)("clipPath",{id:"clip0",children:(0,Qe.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Er.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Er.displayName="person";Mn=wr.default=Er;var bt={},oi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),$n="%[a-f0-9]{2}",Hr=new RegExp("("+$n+")|([^%]+?)","gi"),Gr=new RegExp("("+$n+")+","gi");function ur(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],ur(r),ur(n))}function ii(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Hr)||[],r=1;r<t.length;r++)e=ur(t,r).join(""),t=e.match(Hr)||[];return e}}function ai(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Gr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ii(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Gr.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),l=0;l<a.length;l++){var v=a[l];e=e.replace(new RegExp(v,"g"),t[v])}return e}var si=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return ai(e)}},ci=(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)]},li=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),l=0;l<n.length;l++){var v=n[l],b=e[v];(a?t.indexOf(v)!==-1:t(v,b,e))&&(r[v]=b)}return r};(function(e){const t=oi,r=si,n=ci,a=li,l=o=>o==null;function v(o){switch(o.arrayFormat){case"index":return s=>(u,g)=>{const d=u.length;return g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,[S(s,o),"[",d,"]"].join("")]:[...u,[S(s,o),"[",S(d,o),"]=",S(g,o)].join("")]};case"bracket":return s=>(u,g)=>g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,[S(s,o),"[]"].join("")]:[...u,[S(s,o),"[]=",S(g,o)].join("")];case"comma":case"separator":return s=>(u,g)=>g==null||g.length===0?u:u.length===0?[[S(s,o),"=",S(g,o)].join("")]:[[u,S(g,o)].join(o.arrayFormatSeparator)];default:return s=>(u,g)=>g===void 0||o.skipNull&&g===null||o.skipEmptyString&&g===""?u:g===null?[...u,S(s,o)]:[...u,[S(s,o),"=",S(g,o)].join("")]}}function b(o){let s;switch(o.arrayFormat){case"index":return(u,g,d)=>{if(s=/\[(\d*)\]$/.exec(u),u=u.replace(/\[\d*\]$/,""),!s){d[u]=g;return}d[u]===void 0&&(d[u]={}),d[u][s[1]]=g};case"bracket":return(u,g,d)=>{if(s=/(\[\])$/.exec(u),u=u.replace(/\[\]$/,""),!s){d[u]=g;return}if(d[u]===void 0){d[u]=[g];return}d[u]=[].concat(d[u],g)};case"comma":case"separator":return(u,g,d)=>{const R=typeof g=="string"&&g.includes(o.arrayFormatSeparator),I=typeof g=="string"&&!R&&f(g,o).includes(o.arrayFormatSeparator);g=I?f(g,o):g;const D=R||I?g.split(o.arrayFormatSeparator).map(X=>f(X,o)):g===null?g:f(g,o);d[u]=D};default:return(u,g,d)=>{if(d[u]===void 0){d[u]=g;return}d[u]=[].concat(d[u],g)}}}function y(o){if(typeof o!="string"||o.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(o,s){return s.encode?s.strict?t(o):encodeURIComponent(o):o}function f(o,s){return s.decode?r(o):o}function N(o){return Array.isArray(o)?o.sort():typeof o=="object"?N(Object.keys(o)).sort((s,u)=>Number(s)-Number(u)).map(s=>o[s]):o}function j(o){const s=o.indexOf("#");return s!==-1&&(o=o.slice(0,s)),o}function A(o){let s="";const u=o.indexOf("#");return u!==-1&&(s=o.slice(u)),s}function E(o){o=j(o);const s=o.indexOf("?");return s===-1?"":o.slice(s+1)}function x(o,s){return s.parseNumbers&&!Number.isNaN(Number(o))&&typeof o=="string"&&o.trim()!==""?o=Number(o):s.parseBooleans&&o!==null&&(o.toLowerCase()==="true"||o.toLowerCase()==="false")&&(o=o.toLowerCase()==="true"),o}function p(o,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),y(s.arrayFormatSeparator);const u=b(s),g=Object.create(null);if(typeof o!="string"||(o=o.trim().replace(/^[?#&]/,""),!o))return g;for(const d of o.split("&")){if(d==="")continue;let[R,I]=n(s.decode?d.replace(/\+/g," "):d,"=");I=I===void 0?null:["comma","separator"].includes(s.arrayFormat)?I:f(I,s),u(f(R,s),I,g)}for(const d of Object.keys(g)){const R=g[d];if(typeof R=="object"&&R!==null)for(const I of Object.keys(R))R[I]=x(R[I],s);else g[d]=x(R,s)}return s.sort===!1?g:(s.sort===!0?Object.keys(g).sort():Object.keys(g).sort(s.sort)).reduce((d,R)=>{const I=g[R];return I&&typeof I=="object"&&!Array.isArray(I)?d[R]=N(I):d[R]=I,d},Object.create(null))}e.extract=E,e.parse=p,e.stringify=(o,s)=>{if(!o)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),y(s.arrayFormatSeparator);const u=I=>s.skipNull&&l(o[I])||s.skipEmptyString&&o[I]==="",g=v(s),d={};for(const I of Object.keys(o))u(I)||(d[I]=o[I]);const R=Object.keys(d);return s.sort!==!1&&R.sort(s.sort),R.map(I=>{const D=o[I];return D===void 0?"":D===null?S(I,s):Array.isArray(D)?D.reduce(g(I),[]).join("&"):S(I,s)+"="+S(D,s)}).filter(I=>I.length>0).join("&")},e.parseUrl=(o,s)=>{s=Object.assign({decode:!0},s);const[u,g]=n(o,"#");return Object.assign({url:u.split("?")[0]||"",query:p(E(o),s)},s&&s.parseFragmentIdentifier&&g?{fragmentIdentifier:f(g,s)}:{})},e.stringifyUrl=(o,s)=>{s=Object.assign({encode:!0,strict:!0},s);const u=j(o.url).split("?")[0]||"",g=e.extract(o.url),d=e.parse(g,{sort:!1}),R=Object.assign(d,o.query);let I=e.stringify(R,s);I&&(I=`?${I}`);let D=A(o.url);return o.fragmentIdentifier&&(D=`#${S(o.fragmentIdentifier,s)}`),`${u}${I}${D}`},e.pick=(o,s,u)=>{u=Object.assign({parseFragmentIdentifier:!0},u);const{url:g,query:d,fragmentIdentifier:R}=e.parseUrl(o,u);return e.stringifyUrl({url:g,query:a(d,s),fragmentIdentifier:R},u)},e.exclude=(o,s,u)=>{const g=Array.isArray(s)?d=>!s.includes(d):(d,R)=>!s(d,R);return e.pick(o,g,u)}})(bt);const st=lo,ui={parseNumbers:!1,parseBooleans:!1},fi={skipNull:!1,skipEmptyString:!1},di=(e,t)=>{var r,n;const{navigateMode:a="push",parseOptions:l,stringifyOptions:v}=t||{},b=Object.assign(Object.assign({},ui),l),y=Object.assign(Object.assign({},fi),v),S=st.useLocation(),f=(r=st.useHistory)===null||r===void 0?void 0:r.call(st),N=(n=st.useNavigate)===null||n===void 0?void 0:n.call(st),j=co(),A=$.useRef(typeof e=="function"?e():e||{}),E=$.useMemo(()=>bt.parse(S.search,b),[S.search]),x=$.useMemo(()=>Object.assign(Object.assign({},A.current),E),[E]);return[x,ze(o=>{const s=typeof o=="function"?o(x):o;j(),f&&f[a]({hash:S.hash,search:bt.stringify(Object.assign(Object.assign({},E),s),y)||"?"},S.state),N&&N({hash:S.hash,search:bt.stringify(Object.assign(Object.assign({},E),s),y)||"?"},{replace:a==="replace",state:S.state})})]},pi=di;let mi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Yr=e=>globalThis.DOMException===void 0?new mi(e):new DOMException(e),Zr=e=>{const t=e.reason===void 0?Yr("This operation was aborted."):e.reason;return t instanceof Error?t:Yr(t)};async function hi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:a}={}){return new Promise((l,v)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const b=[],y=[],S=new Map;let f=!1,N=!1,j=!1,A=0,E=0;const x=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),p=s=>{f=!0,N=!0,v(s)};a&&(a.aborted&&p(Zr(a)),a.addEventListener("abort",()=>{p(Zr(a))}));const o=async()=>{if(N)return;const s=await x.next(),u=E;if(E++,s.done){if(j=!0,A===0&&!N){if(!n&&y.length>0){p(new AggregateError(y));return}if(N=!0,S.size===0){l(b);return}const g=[];for(const[d,R]of b.entries())S.get(d)!==Jr&&g.push(R);l(g)}return}A++,(async()=>{try{const g=await s.value;if(N)return;const d=await t(g,u);d===Jr&&S.set(u,d),b[u]=d,A--,await o()}catch(g){if(n)p(g);else{y.push(g),A--;try{await o()}catch(d){p(d)}}}})()};(async()=>{for(let s=0;s<r;s++){try{await o()}catch(u){p(u);break}if(j||f)break}})()})}const Jr=Symbol("skip");async function gi(e,t){return hi(e,r=>r(),t)}function yi({user:e,sessionUser:t}){const r=lt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(a=>a.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return i.jsxs(Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(mr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),i.jsxs(Z,{sx:{flex:1,overflow:"hidden"},children:[i.jsxs(Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(He,{title:t.fullName,children:i.jsx(Ce,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),i.jsx(uo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Mr.textBase,borderColor:Mr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),i.jsx(He,{title:t.email,children:i.jsx(Ce,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const vi={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},zn="Reserved IP",Xr="ip-region-cache";async function bi(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let a="";return n.error?n.reserved&&(a=zn):a=[n.country_name,n.region,n.city].filter(Boolean).join("/"),a}async function xi(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let a="";return n.error?n.reserved&&(a=zn):a=[n.country,n.region,n.city].filter(Boolean).join("/"),a}async function wi(e){let t="",r={};try{const n=localStorage.getItem(Xr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await xi(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await bi(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Xr,JSON.stringify(r))}return t}async function Ei(e){return Promise.all(e.map(t=>wi(t)))}const Qr=e=>new Bt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Bt.BROWSER.NAME,Bt.BROWSER.VERSION]]}).getResult();function Si({user:e,showAction:t=!0,showUser:r=!0}){const n=fo(),{locale:a}=Ne(),{confirmApi:l,confirmHolder:v}=hr(),b=ze((s,u={})=>po(vi,s,a,"en",u)),y=ze(async()=>{let s=e==null?void 0:e.userSessions;s||(s=await Lt.userSession.getUserSessions({did:e.did}));try{const g=s==null?void 0:s.map((I,D)=>[D,I.lastLoginIp]).filter(I=>!!I[1]),d=g==null?void 0:g.map(I=>I[1]),R=await Ei(d);for(let I=0;I<R.length;I++){const D=R[I],X=g[I],ce=s[X[0]];ce.ipRegion=D}}catch(g){console.warn("Failed to convert ip to region"),console.error(g)}const u=new Date().getTime();return mo(s,g=>g.visitorId===n?-1:u-new Date(g.updatedAt).getTime())}),S=ho(y),f=lt(()=>S.data||[],[S.data]),N=lt(()=>f.reduce((s,u)=>(s[u.lastLoginIp]=u.ipRegion,s),{}),[f]),j=ze(({visitorId:s})=>{l.open({title:b("logoutThisSession"),content:b("logoutThisSessionConfirm"),confirmButtonText:b("confirm"),cancelButtonText:b("cancel"),onConfirm:async()=>{await Lt.user.logout({visitorId:s}),S.refresh(),l.close()}})}),A=lt(()=>f.filter(u=>u.visitorId!==n),[f]),E=ze(()=>{l.open({title:b("logoutAllSession"),content:b("logoutAllSessionConfirm"),confirmButtonText:b("confirm"),cancelButtonText:b("cancel"),onConfirm:async()=>{const s=A.map(u=>()=>Lt.user.logout({visitorId:u.visitorId}));await gi(s,{concurrency:3,stopOnError:!1}),S.refresh(),l.close()}})}),x=[];t&&x.push(i.jsx(He,{title:b("logoutAllTips"),children:i.jsx($r,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:E,disabled:A.length===0,children:b("logoutAll")})},"logoutAll"));const p=lt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),o=[{label:b("platform"),name:"platform",options:{customBodyRenderLite:s=>{var d,R;const u=f[s],g=Qr(u.ua);return i.jsx(Z,{children:[(d=g.os)==null?void 0:d.name,(R=g.os)==null?void 0:R.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("deviceType"),name:"deviceType",options:{customBodyRenderLite:s=>{var d,R;const u=f[s],g=Qr(u.ua);return i.jsx(Z,{children:[(d=g.browser)==null?void 0:d.name,(R=g.browser)==null?void 0:R.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("walletOS"),name:"walletOS",options:{customBodyRenderLite:s=>{var g;const u=f[s];return i.jsx(Z,{children:((g=u.extra)==null?void 0:g.walletOS)||b("unknown")})}}},r&&{label:b("user"),name:"user",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{sx:{minWidth:150,maxWidth:250},children:i.jsx(yi,{sessionUser:u.user,user:e})})}}},{label:b("createdAt"),name:"createdAt",options:{customBodyRenderLite:s=>{const u=f[s];return u.createdAt?i.jsx(xt,{value:u.createdAt,relativeRange:3*86400*1e3,locale:a}):b("unknown")}}},{label:b("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:s=>{const u=f[s];return u.status==="expired"?b("expired"):i.jsx(xt,{value:u.updatedAt,relativeRange:3*86400*1e3,locale:a})}}},{label:b("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{children:N[u.lastLoginIp]?i.jsxs(i.Fragment,{children:[i.jsx(Ce,{variant:"body2",children:N[u.lastLoginIp]}),i.jsx(Ce,{variant:"body2",color:"grey",children:u.lastLoginIp||b("unknown")})]}):i.jsx(Ce,{children:u.lastLoginIp||b("unknown")})})}}},t&&{label:b("actions"),name:"actions",options:{customBodyRenderLite:s=>{const u=f[s];return i.jsx(Z,{children:i.jsx($r,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===u.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>j({visitorId:u.visitorId}),children:u.status==="expired"?b("remove"):n===u.visitorId?b("currentSession"):b("logout")})})}}}].filter(Boolean);return i.jsxs(Z,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[v,i.jsx(xr,{locale:a,data:f,columns:o,customButtons:x,options:p,loading:S.loading})]})}var ue={};Object.defineProperty(ue,"__esModule",{value:!0});ue.isValid=ue.fromJSON=ue.fromRandom=ue.fromAddress=ue.fromPublicKey=ue.fromSecretKey=ue.Wallet=ue.WalletType=void 0;const mt=On,St=It,Ae=kn;ue.WalletType=Ae.DidType;function ot(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,St.getSigner)(r.pk),a=(0,St.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(l,v=1,b="hex"){return a(l,v,b)},sign(l,v=!0,b="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(v){const y=a(l,1);return n.sign(y,e.sk,b)}return n.sign(l,e.sk,b)},verify(l,v,b=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const y=b?a(l,1):l;return n.verify(y,v,e.pk)},ethHash(l){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(l)},ethSign(l,v=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return v?n.ethSign(n.ethHash(l),(0,mt.toHex)(e.sk)):n.ethSign(l,(0,mt.toHex)(e.sk))},ethVerify(l,v,b=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const y=b?n.ethHash(l):l;return n.ethRecover(y,v)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,mt.toHex)(e.sk),pk:(0,mt.toHex)(e.pk),address:this.address}}}}ue.Wallet=ot;function ji(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,St.getSigner)(r.pk).getPublicKey(e)};return ot(n,r)}ue.fromSecretKey=ji;function Ai(e,t="default"){return ot({pk:e},(0,Ae.DidType)(t))}ue.fromPublicKey=Ai;function Pi(e){return ot({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}ue.fromAddress=Pi;function Ii(e="default"){const t=(0,Ae.DidType)(e),n=(0,St.getSigner)(t.pk).genKeyPair();return ot({sk:n.secretKey,pk:n.publicKey},t)}ue.fromRandom=Ii;function Oi(e){const t=Ae.DidType.fromJSON(e.type);return ot(e,t)}ue.fromJSON=Oi;function Ri(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}ue.isValid=Ri;var qt={exports:{}},kt={},en;function Wn(){if(en)return kt;en=1;function e(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(o){return typeof o}:e=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(x)}function t(x,p){if(!(x instanceof p))throw new TypeError("Cannot call a class as a function")}function r(x,p){return p&&(e(p)==="object"||typeof p=="function")?p:n(x)}function n(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function a(x){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},a(x)}function l(x,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(p&&p.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),p&&v(x,p)}function v(x,p){return v=Object.setPrototypeOf||function(s,u){return s.__proto__=u,s},v(x,p)}var b={},y,S;function f(x,p,o){o||(o=Error);function s(g,d,R){return typeof p=="string"?p:p(g,d,R)}var u=function(g){l(d,g);function d(R,I,D){var X;return t(this,d),X=r(this,a(d).call(this,s(R,I,D))),X.code=x,X}return d}(o);b[x]=u}function N(x,p){if(Array.isArray(x)){var o=x.length;return x=x.map(function(s){return String(s)}),o>2?"one of ".concat(p," ").concat(x.slice(0,o-1).join(", "),", or ")+x[o-1]:o===2?"one of ".concat(p," ").concat(x[0]," or ").concat(x[1]):"of ".concat(p," ").concat(x[0])}else return"of ".concat(p," ").concat(String(x))}function j(x,p,o){return x.substr(!o||o<0?0:+o,p.length)===p}function A(x,p,o){return(o===void 0||o>x.length)&&(o=x.length),x.substring(o-p.length,o)===p}function E(x,p,o){return typeof o!="number"&&(o=0),o+p.length>x.length?!1:x.indexOf(p,o)!==-1}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(x,p,o){y===void 0&&(y=fr()),y(typeof x=="string","'name' must be a string");var s;typeof p=="string"&&j(p,"not ")?(s="must not be",p=p.replace(/^not /,"")):s="must be";var u;if(A(x," argument"))u="The ".concat(x," ").concat(s," ").concat(N(p,"type"));else{var g=E(x,".")?"property":"argument";u='The "'.concat(x,'" ').concat(g," ").concat(s," ").concat(N(p,"type"))}return u+=". Received type ".concat(e(o)),u},TypeError),f("ERR_INVALID_ARG_VALUE",function(x,p){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";S===void 0&&(S=ft);var s=S.inspect(p);return s.length>128&&(s="".concat(s.slice(0,128),"...")),"The argument '".concat(x,"' ").concat(o,". Received ").concat(s)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(x,p,o){var s;return o&&o.constructor&&o.constructor.name?s="instance of ".concat(o.constructor.name):s="type ".concat(e(o)),"Expected ".concat(x,' to be returned from the "').concat(p,'"')+" function but got ".concat(s,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var x=arguments.length,p=new Array(x),o=0;o<x;o++)p[o]=arguments[o];y===void 0&&(y=fr()),y(p.length>0,"At least one arg needs to be specified");var s="The ",u=p.length;switch(p=p.map(function(g){return'"'.concat(g,'"')}),u){case 1:s+="".concat(p[0]," argument");break;case 2:s+="".concat(p[0]," and ").concat(p[1]," arguments");break;default:s+=p.slice(0,u-1).join(", "),s+=", and ".concat(p[u-1]," arguments");break}return"".concat(s," must be specified")},TypeError),kt.codes=b,kt}var Ut,tn;function Ci(){if(tn)return Ut;tn=1;function e(O){for(var C=1;C<arguments.length;C++){var k=arguments[C]!=null?arguments[C]:{},U=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(U=U.concat(Object.getOwnPropertySymbols(k).filter(function(z){return Object.getOwnPropertyDescriptor(k,z).enumerable}))),U.forEach(function(z){t(O,z,k[z])})}return O}function t(O,C,k){return C in O?Object.defineProperty(O,C,{value:k,enumerable:!0,configurable:!0,writable:!0}):O[C]=k,O}function r(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function n(O,C){for(var k=0;k<C.length;k++){var U=C[k];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(O,U.key,U)}}function a(O,C,k){return C&&n(O.prototype,C),k&&n(O,k),O}function l(O,C){return C&&(E(C)==="object"||typeof C=="function")?C:v(O)}function v(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function b(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),C&&j(O,C)}function y(O){var C=typeof Map=="function"?new Map:void 0;return y=function(U){if(U===null||!N(U))return U;if(typeof U!="function")throw new TypeError("Super expression must either be null or a function");if(typeof C<"u"){if(C.has(U))return C.get(U);C.set(U,z)}function z(){return f(U,arguments,A(this).constructor)}return z.prototype=Object.create(U.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),j(z,U)},y(O)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function f(O,C,k){return S()?f=Reflect.construct:f=function(z,Q,P){var h=[null];h.push.apply(h,Q);var w=Function.bind.apply(z,h),T=new w;return P&&j(T,P.prototype),T},f.apply(null,arguments)}function N(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function j(O,C){return j=Object.setPrototypeOf||function(U,z){return U.__proto__=z,U},j(O,C)}function A(O){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},A(O)}function E(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(k){return typeof k}:E=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},E(O)}var x=ft,p=x.inspect,o=Wn(),s=o.codes.ERR_INVALID_ARG_TYPE;function u(O,C,k){return(k===void 0||k>O.length)&&(k=O.length),O.substring(k-C.length,k)===C}function g(O,C){if(C=Math.floor(C),O.length==0||C==0)return"";var k=O.length*C;for(C=Math.floor(Math.log(C)/Math.log(2));C;)O+=O,C--;return O+=O.substring(0,k-O.length),O}var d="",R="",I="",D="",X={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:"},ce=10;function fe(O){var C=Object.keys(O),k=Object.create(Object.getPrototypeOf(O));return C.forEach(function(U){k[U]=O[U]}),Object.defineProperty(k,"message",{value:O.message}),k}function oe(O){return p(O,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ie(O,C,k){var U="",z="",Q=0,P="",h=!1,w=oe(O),T=w.split(`
2
2
  `),q=oe(C).split(`
3
3
  `),_=0,V="";if(k==="strictEqual"&&E(O)==="object"&&E(C)==="object"&&O!==null&&C!==null&&(k="strictEqualObject"),T.length===1&&q.length===1&&T[0]!==q[0]){var ae=T[0].length+q[0].length;if(ae<=ce){if((E(O)!=="object"||O===null)&&(E(C)!=="object"||C===null)&&(O!==0||C!==0))return"".concat(X[k],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{fl as C,g as P,fm as R}from"./index-gBZtvLTL.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,k;function $(){if(k)return d;k=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1
+ import{fl as C,g as P,fm as R}from"./index-DUbVlGHL.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,k;function $(){if(k)return d;k=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" "},v;function s(i){throw{name:"SyntaxError",message:i,at:g,text:v}}function t(i){return i&&i!==r&&s("Expected '"+i+"' instead of '"+r+"'"),r=v.charAt(g),g+=1,r}function h(){var i,n="";for(r==="-"&&(n="-",t("-"));r>="0"&&r<="9";)n+=r,t();if(r===".")for(n+=".";t()&&r>="0"&&r<="9";)n+=r;if(r==="e"||r==="E")for(n+=r,t(),(r==="-"||r==="+")&&(n+=r,t());r>="0"&&r<="9";)n+=r,t();return i=Number(n),isFinite(i)||s("Bad number"),i}function p(){var i,n,a="",y;if(r==='"')for(;t();){if(r==='"')return t(),a;if(r==="\\")if(t(),r==="u"){for(y=0,n=0;n<4&&(i=parseInt(t(),16),!!isFinite(i));n+=1)y=y*16+i;a+=String.fromCharCode(y)}else if(typeof o[r]=="string")a+=o[r];else break;else a+=r}s("Bad string")}function f(){for(;r&&r<=" ";)t()}function u(){switch(r){case"t":return t("t"),t("r"),t("u"),t("e"),!0;case"f":return t("f"),t("a"),t("l"),t("s"),t("e"),!1;case"n":return t("n"),t("u"),t("l"),t("l"),null;default:s("Unexpected '"+r+"'")}}function l(){var i=[];if(r==="["){if(t("["),f(),r==="]")return t("]"),i;for(;r;){if(i.push(e()),f(),r==="]")return t("]"),i;t(","),f()}}s("Bad array")}function c(){var i,n={};if(r==="{"){if(t("{"),f(),r==="}")return t("}"),n;for(;r;){if(i=p(),f(),t(":"),Object.prototype.hasOwnProperty.call(n,i)&&s('Duplicate key "'+i+'"'),n[i]=e(),f(),r==="}")return t("}"),n;t(","),f()}}s("Bad object")}function e(){switch(f(),r){case"{":return c();case"[":return l();case'"':return p();case"-":return h();default:return r>="0"&&r<="9"?h():u()}}return d=function(i,n){var a;return v=i,g=0,r=" ",a=e(),f(),r&&s("Syntax error"),typeof n=="function"?function y(w,m){var b,S,j=w[m];if(j&&typeof j=="object")for(b in e)Object.prototype.hasOwnProperty.call(j,b)&&(S=y(j,b),typeof S>"u"?delete j[b]:j[b]=S);return n.call(w,m,j)}({"":a},""):a},d}var J,A;function D(){if(A)return J;A=1;var g=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,v={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function t(p){return g.lastIndex=0,g.test(p)?'"'+p.replace(g,function(f){var u=v[f];return typeof u=="string"?u:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}function h(p,f){var u,l,c,e,i=r,n,a=f[p];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(p)),typeof s=="function"&&(a=s.call(f,p,a)),typeof a){case"string":return t(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(r+=o,n=[],Object.prototype.toString.apply(a)==="[object Array]"){for(e=a.length,u=0;u<e;u+=1)n[u]=h(u,a)||"null";return c=n.length===0?"[]":r?`[
3
3
  `+r+n.join(`,
4
4
  `+r)+`
@@ -1 +1 @@
1
- import{cP as H,dy as M,dz as E,dA as g,dB as Y,dC as N,dD as j}from"./index-gBZtvLTL.js";import{a as X}from"./isEqual-096XH0At.js";var V={},i={},d={},q=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.toStrictHex=d.toBytes=d.toBits=d.DID_PREFIX=void 0;const K=q(M),P=g,v="did:abt:";d.DID_PREFIX=v;const G=e=>{try{if((0,P.isHexStrict)(e))return E.from((0,P.stripHexPrefix)(e),"hex");let t=(0,P.fromBase58)(e.replace(v,""));for(;t.length<26;)t=E.concat([E.from([0]),t]);return t}catch(t){throw new Error(`Cannot convert DID string to byte array: ${t.message}`)}};d.toBytes=G;const J=(e,t)=>(0,K.default)((0,P.toBN)(e).toString(2),t,"0");d.toBits=J;const z=(e,t)=>{const s=e.replace(/^0x/i,"");return typeof t=="number"&&t%2===0?(0,K.default)(e,t,"0"):s.length%2===0?s:`0${s}`};d.toStrictHex=z;var A=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});i.DidType=i.toChecksumAddress=i.isEthereumDid=i.isEthereumType=i.toTypeInfoStr=i.toTypeInfo=i.fromTypeInfo=i.DID_TYPE_ETHEREUM=i.DID_TYPE_ARCBLOCK=void 0;const m=g,D=A(Y),W=A(X),$=A(N),o=j,T=d,b={pk:"key",address:"encoding"},B={role:o.types.RoleType.ROLE_ACCOUNT,pk:o.types.KeyType.ED25519,hash:o.types.HashType.SHA3,address:o.types.EncodingType.BASE58};i.DID_TYPE_ARCBLOCK=B;const R={role:o.types.RoleType.ROLE_ACCOUNT,pk:o.types.KeyType.ETHEREUM,hash:o.types.HashType.KECCAK,address:o.types.EncodingType.BASE16};i.DID_TYPE_ETHEREUM=R;const F=e=>{const t=["pk","hash","address"];return(0,W.default)((0,$.default)(e,t),(0,$.default)(R,t))};i.isEthereumType=F;const L=e=>{const t=(0,m.toAddress)(e);return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:Q(t):!1};i.isEthereumDid=L;const Q=e=>{const t=e.replace(/^0x/i,""),s=o.Hasher.Keccak.hash256(t.toLowerCase()).replace(/^0x/i,"");for(let r=0;r<40;r++)if(parseInt(s[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(s[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},Z=e=>{if(typeof e>"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error(`Given address "${e}" is not a valid Ethereum address.`);const t=e.toLowerCase().replace(/^0x/i,""),s=o.Hasher.Keccak.hash256(t).replace(/^0x/i,"");let r="0x";for(let n=0;n<t.length;n++)parseInt(s[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return r};i.toChecksumAddress=Z;function k(e={}){let t={};["default","arcblock"].includes(e)?t=B:["eth","ethereum"].includes(e)?t=R:t={...B,...e};const{role:s,pk:r,hash:n,address:u}=t;Object.keys(t).forEach(l=>{const _=(0,D.default)(`${b[l]||l}Type`);if(Object.values(o.types[_]).includes(t[l])===!1)throw new Error(`Unsupported ${l} type: ${t[l]}`)});const p={role:s,pk:r,hash:n,address:u};return F(p)===!1&&[o.types.RoleType.ROLE_NODE,o.types.RoleType.ROLE_VALIDATOR,o.types.RoleType.ROLE_TETHER,o.types.RoleType.ROLE_SWAP].includes(p.role)&&(p.hash=o.types.HashType.SHA2),p}i.DidType=k;k.toJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,D.default)(`${b[s]||s}Type`),n=Object.keys(o.types[r]),u=Object.values(o.types[r]);return t[s]=n[u.indexOf(e[s])],t},{});k.fromJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,D.default)(`${b[s]||s}Type`),n=Object.keys(o.types[r]),u=Object.values(o.types[r]);return t[s]=u[n.indexOf(e[s])],t},{});const x=e=>{const t=k(e),s=(0,T.toBits)(t.role,6),r=(0,T.toBits)(t.pk,5),n=(0,T.toBits)(t.hash,5),u=`${s}${r}${n}`,p=(0,m.stripHexPrefix)((0,m.numberToHex)(parseInt(u,2)));return(0,T.toStrictHex)(p,4)};i.fromTypeInfo=x;const w=e=>{let t={};try{if(L(e))t=R;else{const r=(0,T.toBytes)(e).slice(0,2),n=(0,T.toStrictHex)(E.from(r).toString("hex")),u=(0,T.toBits)(new m.BN(n,16),16),p=u.slice(0,6),l=u.slice(6,11),_=u.slice(11,16);t={role:parseInt(p,2),pk:parseInt(l,2),hash:parseInt(_,2),address:(0,m.isHex)((0,m.toAddress)(e))?o.types.EncodingType.BASE16:o.types.EncodingType.BASE58}}return Object.keys(t).forEach(s=>{Object.values(o.types[`${(0,D.default)(b[s]||s)}Type`]).includes(t[s])===!1&&delete t[s]}),t}catch{return t}};i.toTypeInfo=w;const ee=e=>{const t=w(e);return Object.keys(t).reduce((s,r)=>{const n=o.types[`${(0,D.default)(b[r]||r)}Type`];return s[r]=Object.keys(n).find(u=>n[u]===t[r]),s},{})};i.toTypeInfoStr=ee;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DID_TYPE_ETHEREUM=e.DID_TYPE_ARCBLOCK=e.DID_PREFIX=e.DidType=e.fromTypeInfo=e.toTypeInfoStr=e.toTypeInfo=e.isEthereumType=e.isEthereumDid=e.isValid=e.isFromPublicKey=e.toDid=e.toAddress=e.fromHash=e.fromPublicKeyHash=e.fromPublicKey=e.fromSecretKey=e.toStrictHex=e.types=void 0;const t=j;Object.defineProperty(e,"types",{enumerable:!0,get:function(){return t.types}});const s=g;Object.defineProperty(e,"toAddress",{enumerable:!0,get:function(){return s.toAddress}}),Object.defineProperty(e,"toDid",{enumerable:!0,get:function(){return s.toDid}});const r=i;Object.defineProperty(e,"DidType",{enumerable:!0,get:function(){return r.DidType}}),Object.defineProperty(e,"DID_TYPE_ARCBLOCK",{enumerable:!0,get:function(){return r.DID_TYPE_ARCBLOCK}}),Object.defineProperty(e,"DID_TYPE_ETHEREUM",{enumerable:!0,get:function(){return r.DID_TYPE_ETHEREUM}}),Object.defineProperty(e,"fromTypeInfo",{enumerable:!0,get:function(){return r.fromTypeInfo}}),Object.defineProperty(e,"isEthereumDid",{enumerable:!0,get:function(){return r.isEthereumDid}}),Object.defineProperty(e,"isEthereumType",{enumerable:!0,get:function(){return r.isEthereumType}}),Object.defineProperty(e,"toTypeInfo",{enumerable:!0,get:function(){return r.toTypeInfo}}),Object.defineProperty(e,"toTypeInfoStr",{enumerable:!0,get:function(){return r.toTypeInfoStr}});const n=d;Object.defineProperty(e,"DID_PREFIX",{enumerable:!0,get:function(){return n.DID_PREFIX}}),Object.defineProperty(e,"toStrictHex",{enumerable:!0,get:function(){return n.toStrictHex}});const u=(y,a)=>{const c=(0,r.DidType)(a),f=(0,t.getSigner)(c.pk).getPublicKey(y);return p(f.indexOf("0x")===0?f:`0x${f}`,c)};e.fromSecretKey=u;const p=(y,a)=>{const c=(0,r.DidType)(a),h=(0,t.getHasher)(c.hash)(y,1);return l(h,c)};e.fromPublicKey=p;const l=(y,a)=>{const c=(0,r.DidType)(a),f=(0,s.stripHexPrefix)(y).slice(0,40),h=(0,t.getHasher)(c.hash),I=(0,r.fromTypeInfo)(c),S=(0,s.stripHexPrefix)(h(`0x${I}${f}`,1)).slice(0,8),O=`0x${I}${f}${S}`;return(0,r.isEthereumType)(c)?(0,r.toChecksumAddress)(`0x${y.slice(-40)}`):c.address===t.types.EncodingType.BASE58?(0,s.toBase58)(O):O};e.fromPublicKeyHash=l;const _=(y,a=t.types.RoleType.ROLE_ACCOUNT)=>{const c=Object.keys(t.types.RoleType),f=Object.values(t.types.RoleType);if(f.indexOf(a)===-1)throw new Error(`Unsupported role type ${a} when gen ddi from hash`);const h=(0,r.DidType)({role:t.types.RoleType[c[f.indexOf(a)]]});return l(y,h)};e.fromHash=_;const U=(y,a)=>{if(C(y)===!1)return!1;const c=(0,r.toTypeInfo)(y),f=p(a,c),h=y.replace(n.DID_PREFIX,"");return f===h};e.isFromPublicKey=U;const C=y=>{if(!y)return!1;const a=(0,s.toAddress)(String(y)),{hash:c}=(0,r.toTypeInfo)(a);if(typeof c>"u")return!1;if((0,r.isEthereumDid)(a))return!0;const f=(0,t.getHasher)(c),h=(0,n.toBytes)(a),I=(0,n.toStrictHex)(E.from(h.slice(0,22)).toString("hex")),S=(0,n.toStrictHex)(E.from(h.slice(22,26)).toString("hex")),O=(0,s.stripHexPrefix)(f(`0x${I}`,1)).slice(0,8);return S===O};e.isValid=C})(V);export{V as l};
1
+ import{cP as H,dy as M,dz as E,dA as g,dB as Y,dC as N,dD as j}from"./index-DUbVlGHL.js";import{a as X}from"./isEqual-Btp6AAX2.js";var V={},i={},d={},q=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});d.toStrictHex=d.toBytes=d.toBits=d.DID_PREFIX=void 0;const K=q(M),P=g,v="did:abt:";d.DID_PREFIX=v;const G=e=>{try{if((0,P.isHexStrict)(e))return E.from((0,P.stripHexPrefix)(e),"hex");let t=(0,P.fromBase58)(e.replace(v,""));for(;t.length<26;)t=E.concat([E.from([0]),t]);return t}catch(t){throw new Error(`Cannot convert DID string to byte array: ${t.message}`)}};d.toBytes=G;const J=(e,t)=>(0,K.default)((0,P.toBN)(e).toString(2),t,"0");d.toBits=J;const z=(e,t)=>{const s=e.replace(/^0x/i,"");return typeof t=="number"&&t%2===0?(0,K.default)(e,t,"0"):s.length%2===0?s:`0${s}`};d.toStrictHex=z;var A=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});i.DidType=i.toChecksumAddress=i.isEthereumDid=i.isEthereumType=i.toTypeInfoStr=i.toTypeInfo=i.fromTypeInfo=i.DID_TYPE_ETHEREUM=i.DID_TYPE_ARCBLOCK=void 0;const m=g,D=A(Y),W=A(X),$=A(N),o=j,T=d,b={pk:"key",address:"encoding"},B={role:o.types.RoleType.ROLE_ACCOUNT,pk:o.types.KeyType.ED25519,hash:o.types.HashType.SHA3,address:o.types.EncodingType.BASE58};i.DID_TYPE_ARCBLOCK=B;const R={role:o.types.RoleType.ROLE_ACCOUNT,pk:o.types.KeyType.ETHEREUM,hash:o.types.HashType.KECCAK,address:o.types.EncodingType.BASE16};i.DID_TYPE_ETHEREUM=R;const F=e=>{const t=["pk","hash","address"];return(0,W.default)((0,$.default)(e,t),(0,$.default)(R,t))};i.isEthereumType=F;const L=e=>{const t=(0,m.toAddress)(e);return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:Q(t):!1};i.isEthereumDid=L;const Q=e=>{const t=e.replace(/^0x/i,""),s=o.Hasher.Keccak.hash256(t.toLowerCase()).replace(/^0x/i,"");for(let r=0;r<40;r++)if(parseInt(s[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(s[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},Z=e=>{if(typeof e>"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error(`Given address "${e}" is not a valid Ethereum address.`);const t=e.toLowerCase().replace(/^0x/i,""),s=o.Hasher.Keccak.hash256(t).replace(/^0x/i,"");let r="0x";for(let n=0;n<t.length;n++)parseInt(s[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return r};i.toChecksumAddress=Z;function k(e={}){let t={};["default","arcblock"].includes(e)?t=B:["eth","ethereum"].includes(e)?t=R:t={...B,...e};const{role:s,pk:r,hash:n,address:u}=t;Object.keys(t).forEach(l=>{const _=(0,D.default)(`${b[l]||l}Type`);if(Object.values(o.types[_]).includes(t[l])===!1)throw new Error(`Unsupported ${l} type: ${t[l]}`)});const p={role:s,pk:r,hash:n,address:u};return F(p)===!1&&[o.types.RoleType.ROLE_NODE,o.types.RoleType.ROLE_VALIDATOR,o.types.RoleType.ROLE_TETHER,o.types.RoleType.ROLE_SWAP].includes(p.role)&&(p.hash=o.types.HashType.SHA2),p}i.DidType=k;k.toJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,D.default)(`${b[s]||s}Type`),n=Object.keys(o.types[r]),u=Object.values(o.types[r]);return t[s]=n[u.indexOf(e[s])],t},{});k.fromJSON=e=>Object.keys(e).reduce((t,s)=>{const r=(0,D.default)(`${b[s]||s}Type`),n=Object.keys(o.types[r]),u=Object.values(o.types[r]);return t[s]=u[n.indexOf(e[s])],t},{});const x=e=>{const t=k(e),s=(0,T.toBits)(t.role,6),r=(0,T.toBits)(t.pk,5),n=(0,T.toBits)(t.hash,5),u=`${s}${r}${n}`,p=(0,m.stripHexPrefix)((0,m.numberToHex)(parseInt(u,2)));return(0,T.toStrictHex)(p,4)};i.fromTypeInfo=x;const w=e=>{let t={};try{if(L(e))t=R;else{const r=(0,T.toBytes)(e).slice(0,2),n=(0,T.toStrictHex)(E.from(r).toString("hex")),u=(0,T.toBits)(new m.BN(n,16),16),p=u.slice(0,6),l=u.slice(6,11),_=u.slice(11,16);t={role:parseInt(p,2),pk:parseInt(l,2),hash:parseInt(_,2),address:(0,m.isHex)((0,m.toAddress)(e))?o.types.EncodingType.BASE16:o.types.EncodingType.BASE58}}return Object.keys(t).forEach(s=>{Object.values(o.types[`${(0,D.default)(b[s]||s)}Type`]).includes(t[s])===!1&&delete t[s]}),t}catch{return t}};i.toTypeInfo=w;const ee=e=>{const t=w(e);return Object.keys(t).reduce((s,r)=>{const n=o.types[`${(0,D.default)(b[r]||r)}Type`];return s[r]=Object.keys(n).find(u=>n[u]===t[r]),s},{})};i.toTypeInfoStr=ee;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DID_TYPE_ETHEREUM=e.DID_TYPE_ARCBLOCK=e.DID_PREFIX=e.DidType=e.fromTypeInfo=e.toTypeInfoStr=e.toTypeInfo=e.isEthereumType=e.isEthereumDid=e.isValid=e.isFromPublicKey=e.toDid=e.toAddress=e.fromHash=e.fromPublicKeyHash=e.fromPublicKey=e.fromSecretKey=e.toStrictHex=e.types=void 0;const t=j;Object.defineProperty(e,"types",{enumerable:!0,get:function(){return t.types}});const s=g;Object.defineProperty(e,"toAddress",{enumerable:!0,get:function(){return s.toAddress}}),Object.defineProperty(e,"toDid",{enumerable:!0,get:function(){return s.toDid}});const r=i;Object.defineProperty(e,"DidType",{enumerable:!0,get:function(){return r.DidType}}),Object.defineProperty(e,"DID_TYPE_ARCBLOCK",{enumerable:!0,get:function(){return r.DID_TYPE_ARCBLOCK}}),Object.defineProperty(e,"DID_TYPE_ETHEREUM",{enumerable:!0,get:function(){return r.DID_TYPE_ETHEREUM}}),Object.defineProperty(e,"fromTypeInfo",{enumerable:!0,get:function(){return r.fromTypeInfo}}),Object.defineProperty(e,"isEthereumDid",{enumerable:!0,get:function(){return r.isEthereumDid}}),Object.defineProperty(e,"isEthereumType",{enumerable:!0,get:function(){return r.isEthereumType}}),Object.defineProperty(e,"toTypeInfo",{enumerable:!0,get:function(){return r.toTypeInfo}}),Object.defineProperty(e,"toTypeInfoStr",{enumerable:!0,get:function(){return r.toTypeInfoStr}});const n=d;Object.defineProperty(e,"DID_PREFIX",{enumerable:!0,get:function(){return n.DID_PREFIX}}),Object.defineProperty(e,"toStrictHex",{enumerable:!0,get:function(){return n.toStrictHex}});const u=(y,a)=>{const c=(0,r.DidType)(a),f=(0,t.getSigner)(c.pk).getPublicKey(y);return p(f.indexOf("0x")===0?f:`0x${f}`,c)};e.fromSecretKey=u;const p=(y,a)=>{const c=(0,r.DidType)(a),h=(0,t.getHasher)(c.hash)(y,1);return l(h,c)};e.fromPublicKey=p;const l=(y,a)=>{const c=(0,r.DidType)(a),f=(0,s.stripHexPrefix)(y).slice(0,40),h=(0,t.getHasher)(c.hash),I=(0,r.fromTypeInfo)(c),S=(0,s.stripHexPrefix)(h(`0x${I}${f}`,1)).slice(0,8),O=`0x${I}${f}${S}`;return(0,r.isEthereumType)(c)?(0,r.toChecksumAddress)(`0x${y.slice(-40)}`):c.address===t.types.EncodingType.BASE58?(0,s.toBase58)(O):O};e.fromPublicKeyHash=l;const _=(y,a=t.types.RoleType.ROLE_ACCOUNT)=>{const c=Object.keys(t.types.RoleType),f=Object.values(t.types.RoleType);if(f.indexOf(a)===-1)throw new Error(`Unsupported role type ${a} when gen ddi from hash`);const h=(0,r.DidType)({role:t.types.RoleType[c[f.indexOf(a)]]});return l(y,h)};e.fromHash=_;const U=(y,a)=>{if(C(y)===!1)return!1;const c=(0,r.toTypeInfo)(y),f=p(a,c),h=y.replace(n.DID_PREFIX,"");return f===h};e.isFromPublicKey=U;const C=y=>{if(!y)return!1;const a=(0,s.toAddress)(String(y)),{hash:c}=(0,r.toTypeInfo)(a);if(typeof c>"u")return!1;if((0,r.isEthereumDid)(a))return!0;const f=(0,t.getHasher)(c),h=(0,n.toBytes)(a),I=(0,n.toStrictHex)(E.from(h.slice(0,22)).toString("hex")),S=(0,n.toStrictHex)(E.from(h.slice(22,26)).toString("hex")),O=(0,s.stripHexPrefix)(f(`0x${I}`,1)).slice(0,8);return S===O};e.isValid=C})(V);export{V as l};
@@ -1 +1 @@
1
- import{P as i,j as t,B as s,gi as r}from"./index-gBZtvLTL.js";function n({children:e,...o}){return t.jsxs(s,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:i.any};n.defaultProps={children:""};export{n as C};
1
+ import{P as i,j as t,B as s,gi as r}from"./index-DUbVlGHL.js";function n({children:e,...o}){return t.jsxs(s,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:i.any};n.defaultProps={children:""};export{n as C};