@abtnode/webapp 1.16.28-beta-bfbab430 → 1.16.28-beta-641c9f13

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 (199) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DEou6OQu.js → Add-CazR0vZK.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-B8q6yJii.js → ArrowDropDown-BUrSvBpJ.js} +1 -1
  5. package/dist/assets/{Autocomplete-CxHBaO5x.js → Autocomplete-DtvRC-0f.js} +1 -1
  6. package/dist/assets/{Breadcrumbs--9MrOMZw.js → Breadcrumbs-D_LYBn3C.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BbRXyWVe.js → ButtonGroup-DxRrpbFw.js} +1 -1
  8. package/dist/assets/{CheckCircle-D6vwJd9K.js → CheckCircle-DbpNufE5.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Bc2acyen.js → ChevronLeft-Bqynugte.js} +1 -1
  10. package/dist/assets/{ChevronRight-Bcko4z80.js → ChevronRight-C8sGT-T0.js} +1 -1
  11. package/dist/assets/{Close-DGnER_ve.js → Close-uiQeu7_r.js} +1 -1
  12. package/dist/assets/Delete-DHiwhVmP.js +1 -0
  13. package/dist/assets/{DeleteOutline-C7JmRduW.js → DeleteOutline-CnmOxEUl.js} +1 -1
  14. package/dist/assets/{Done-CydSjSOx.js → Done-LyiBXZqg.js} +1 -1
  15. package/dist/assets/{Edit-B0yxTPMe.js → Edit-BgU3t9-z.js} +1 -1
  16. package/dist/assets/{EditIcon-CF5y6ttj.js → EditIcon-CeWwrlQZ.js} +1 -1
  17. package/dist/assets/{FilterList-RGEuYf_e.js → FilterList-usqmRCGh.js} +4 -4
  18. package/dist/assets/{Google-CuSS9iHp.js → Google-BzTTYoLn.js} +1 -1
  19. package/dist/assets/{Https-B3P9JJiw.js → Https-B3r3YjjJ.js} +1 -1
  20. package/dist/assets/{InputAdornment-BzCm_2kz.js → InputAdornment-0DnARlEj.js} +1 -1
  21. package/dist/assets/{InputLabel-CdW9MyDY.js → InputLabel-Csh1ynXt.js} +1 -1
  22. package/dist/assets/{LastPage-dDlMsztV.js → LastPage-DnsJsUIR.js} +1 -1
  23. package/dist/assets/{Launch-Dhs9Q_70.js → Launch-BOea_wCy.js} +1 -1
  24. package/dist/assets/{Link-DSNZ4PNo.js → Link-ByQdtjfh.js} +1 -1
  25. package/dist/assets/{LoadingButton-DrVP9tt_.js → LoadingButton-Cj_wXKeI.js} +1 -1
  26. package/dist/assets/{LockIcon-BMilDbx1.js → LockIcon-C082WeKw.js} +1 -1
  27. package/dist/assets/{Loop-CAxjNyCL.js → Loop-m_399M1H.js} +1 -1
  28. package/dist/assets/{MoreVert-BL42DjcZ.js → MoreVert-BzXa-i1R.js} +1 -1
  29. package/dist/assets/{Pagination-DWKt9t_F.js → Pagination-DSEqJST1.js} +1 -1
  30. package/dist/assets/{Public-BobH8eAT.js → Public-0DIMrFya.js} +1 -1
  31. package/dist/assets/{SchemaReference.es-MUfmufV5.js → SchemaReference.es-ISuYhpDf.js} +1 -1
  32. package/dist/assets/{Search-J7ilvWof.js → Search-CQMDHt0w.js} +1 -1
  33. package/dist/assets/{Select-DJl6HmRs.js → Select-DXPyl9dO.js} +2 -2
  34. package/dist/assets/{Skeleton-CSyuj2cV.js → Skeleton-URH_1vdL.js} +5 -5
  35. package/dist/assets/{Slider-DRCfqhU1.js → Slider-Bs8PTrpt.js} +1 -1
  36. package/dist/assets/{Stepper-C2a4PQ3_.js → Stepper-F9lgPB4i.js} +1 -1
  37. package/dist/assets/TextField-B9TZBqQf.js +1 -0
  38. package/dist/assets/{ToggleButtonGroup-CR3zvwUX.js → ToggleButtonGroup-B4DF013K.js} +1 -1
  39. package/dist/assets/{ViewList-D3pEO1Ca.js → ViewList-BsKNUMlP.js} +1 -1
  40. package/dist/assets/{actions-CL-Y8Eer.js → actions-B9P9hAjw.js} +1 -1
  41. package/dist/assets/actions-Dunvsfuf.js +11 -0
  42. package/dist/assets/{agreement-Dd1yuqFa.js → agreement-C1qfhTtQ.js} +3 -3
  43. package/dist/assets/api-BM9dJimB.js +1 -0
  44. package/dist/assets/app-avatar-DQiSEUVG.js +1 -0
  45. package/dist/assets/{ar-DXpJw3XU.js → ar-BV2QgAob.js} +1 -1
  46. package/dist/assets/{audit-logs-CmuAN_qn.js → audit-logs-C18DG_HF.js} +1 -1
  47. package/dist/assets/{brace-fold.es-psNZdrWu.js → brace-fold.es-5N33ToDI.js} +1 -1
  48. package/dist/assets/bundle-avatar-6edO3WvW.js +1 -0
  49. package/dist/assets/{chart-sF6tbndw.js → chart-DxusdyLS.js} +1 -1
  50. package/dist/assets/{click-to-copy-KBQWqGOq.js → click-to-copy-DdhnSrH5.js} +1 -1
  51. package/dist/assets/{closebrackets.es-ZHCmqLUg.js → closebrackets.es-iyZsaRgi.js} +1 -1
  52. package/dist/assets/{codemirror.es-DmoQbR9T.js → codemirror.es-DeO7gDXr.js} +1 -1
  53. package/dist/assets/{comment.es-B7zL23d5.js → comment.es-CfO1lV_o.js} +1 -1
  54. package/dist/assets/{config-navigation-BN7PO-cf.js → config-navigation-CcJGg9PY.js} +4 -4
  55. package/dist/assets/{de-CWxlIdre.js → de-D6Ok_WHi.js} +1 -1
  56. package/dist/assets/{delete-confirm-ztUwg2kj.js → delete-confirm-C4Bk8D3q.js} +1 -1
  57. package/dist/assets/{detail-CXbwmlpg.js → detail-ByJGw6CQ.js} +3 -3
  58. package/dist/assets/{dialog.es-CFWHh6H2.js → dialog.es-CQHFFbgC.js} +1 -1
  59. package/dist/assets/{download-bWTPRaod.js → download-DjWKDAKk.js} +1 -1
  60. package/dist/assets/{es-BmrvDK07.js → es-DiLJksPa.js} +1 -1
  61. package/dist/assets/{foldgutter.es-CqRhTHya.js → foldgutter.es-D2ybLApJ.js} +1 -1
  62. package/dist/assets/{fr-B7SxgRy3.js → fr-CrYEbJK3.js} +1 -1
  63. package/dist/assets/getValidReactChildren-BhT8Dia7.js +1 -0
  64. package/dist/assets/{hi-BRRtNIB_.js → hi-D0zLUK6N.js} +1 -1
  65. package/dist/assets/{hint.es-DK_6KY-o.js → hint.es-U_5yDQ-L.js} +1 -1
  66. package/dist/assets/{hint.es2-CgWo28Uj.js → hint.es2-B5AxTcUD.js} +1 -1
  67. package/dist/assets/{id-D6-Qi7Q1.js → id-Cx-4j40c.js} +1 -1
  68. package/dist/assets/{iframe-C32DbqVc.js → iframe-CN6X1zkC.js} +1 -1
  69. package/dist/assets/{index-C4aM6rsI.js → index-7hmZo5yz.js} +1 -1
  70. package/dist/assets/{index-CwOFD6vt.js → index-9FRtImOR.js} +1 -1
  71. package/dist/assets/{index-DHDAQRQS.js → index-BO1T0fz0.js} +1 -1
  72. package/dist/assets/{index-D5A34D-v.js → index-BUQuICIV.js} +1 -1
  73. package/dist/assets/{index-BNulkcXj.js → index-BXxemGex.js} +1 -1
  74. package/dist/assets/{index-lXzOGnDm.js → index-BiYiUZU0.js} +10 -10
  75. package/dist/assets/{index-BD7uC7gm.js → index-Bj3d2EwJ.js} +4 -4
  76. package/dist/assets/{index-Clbjq5Ay.js → index-Bpjx7556.js} +1 -1
  77. package/dist/assets/index-BsRcoDUD.js +1 -0
  78. package/dist/assets/{index-HMFhZkjG.js → index-BysoAAKf.js} +3 -3
  79. package/dist/assets/{index-B0WN-XH2.js → index-C5VGS0or.js} +1 -1
  80. package/dist/assets/{index-CYZ-ZpV5.js → index-CBFgpWWt.js} +1 -1
  81. package/dist/assets/{index-CzZF4DJ9.js → index-CBQDge9H.js} +1 -1
  82. package/dist/assets/{index-lfuZxoX8.js → index-CBcjH65j.js} +1 -1
  83. package/dist/assets/{index-DbaRhcjK.js → index-CDk9gqwO.js} +1 -1
  84. package/dist/assets/{index-aVpXIXlo.js → index-CNEFxICJ.js} +1 -1
  85. package/dist/assets/{index-DuHl-QWf.js → index-CYqmm0Sa.js} +1 -1
  86. package/dist/assets/{index-CEBXL16c.js → index-CaM460rw.js} +1 -1
  87. package/dist/assets/{index-Cj3s4CtX.js → index-CiB-ceGd.js} +1 -1
  88. package/dist/assets/{index-BoZhSN8h.js → index-ClMriVhA.js} +1 -1
  89. package/dist/assets/{index-CfOOBUnf.js → index-CmUhV6b0.js} +1 -1
  90. package/dist/assets/{index-DA4GWzzk.js → index-Cqf3kTsw.js} +4 -4
  91. package/dist/assets/{index-CsNkkebn.js → index-CsJW-E3u.js} +7 -7
  92. package/dist/assets/{index-DeSsBKwN.js → index-CtlJtm28.js} +1 -1
  93. package/dist/assets/{index-D2cgpNGA.js → index-CzxambID.js} +5 -5
  94. package/dist/assets/{index-Dc48oA1e.js → index-D3isMJCC.js} +11 -11
  95. package/dist/assets/{index-Ca7UJIsi.js → index-D6XxoBY_.js} +1 -1
  96. package/dist/assets/index-DB54SdYK.js +58 -0
  97. package/dist/assets/index-DHvVD3rl.js +2521 -0
  98. package/dist/assets/{index-CYGLUEkg.js → index-DINuwc4O.js} +3 -3
  99. package/dist/assets/{index-CiaQ1OoK.js → index-DRwkxXBX.js} +1 -1
  100. package/dist/assets/{index-84DtgjQO.js → index-DqHjW7tc.js} +1 -1
  101. package/dist/assets/{index-Dlmo3B4P.js → index-DrZqlcHr.js} +1 -1
  102. package/dist/assets/index-Dw6syXvl.js +21 -0
  103. package/dist/assets/{index-B4ZjZNN8.js → index-JuXoqefL.js} +1 -1
  104. package/dist/assets/{index-CE4mBIM_.js → index-KnfQ44ac.js} +1 -1
  105. package/dist/assets/{index-BA_TAXpL.js → index-LuGhm-KA.js} +2 -2
  106. package/dist/assets/{index-C6fuJWed.js → index-UfVz51n9.js} +9 -9
  107. package/dist/assets/{index-Bzs05ai8.js → index-Ur9l5Pkv.js} +1 -1
  108. package/dist/assets/index-edI690Jp.js +150 -0
  109. package/dist/assets/{index-DoYPOJLK.js → index-jYLpiIQq.js} +27 -27
  110. package/dist/assets/index-oWv9ehU5.js +302 -0
  111. package/dist/assets/{index-BET56ssY.js → index-oxLMT1TZ.js} +1 -1
  112. package/dist/assets/{index.es-r9xAwx7Q.js → index.es-BaoJVcS0.js} +1 -1
  113. package/dist/assets/index.esm-D5EJdopB.js +1 -0
  114. package/dist/assets/{info-addon.es-BDFdJmkW.js → info-addon.es-BF8YxAo6.js} +1 -1
  115. package/dist/assets/{info.es-CBadJSwW.js → info.es-BG-sFq93.js} +1 -1
  116. package/dist/assets/{install-from-url-DuxahkOW.js → install-from-url-D_JUSXN1.js} +1 -1
  117. package/dist/assets/{invitation-CSvGVnhZ.js → invitation-B9fShyCE.js} +5 -5
  118. package/dist/assets/is-path-prefix-equal-DTqcyXik.js +1 -0
  119. package/dist/assets/{isEqual-DLk5wI5o.js → isEqual-BT0_AVZN.js} +1 -1
  120. package/dist/assets/{item-Bv034Zcl.js → item-k8JU-j43.js} +31 -31
  121. package/dist/assets/{ja--dtwu5Xy.js → ja-CtQcd1E5.js} +1 -1
  122. package/dist/assets/{javascript.es-Bq6krn1L.js → javascript.es-BxU6I3W8.js} +1 -1
  123. package/dist/assets/{jump-to-line.es-Cm-kakdo.js → jump-to-line.es-BJmdmPwT.js} +1 -1
  124. package/dist/assets/{jump.es-VEZCju5l.js → jump.es-DdndOalg.js} +1 -1
  125. package/dist/assets/{ko-DpRJDWhF.js → ko-B-N9xtBl.js} +1 -1
  126. package/dist/assets/{line-VNmgswg2.js → line-h_bDsdkk.js} +5 -5
  127. package/dist/assets/{lint.es-DhrBN362.js → lint.es-S1IqD8Ty.js} +1 -1
  128. package/dist/assets/{lint.es2-CWQYXYDN.js → lint.es2-Pg9vOGzA.js} +1 -1
  129. package/dist/assets/{lint.es3-HsrZT9m1.js → lint.es3-S5rsbMt9.js} +1 -1
  130. package/dist/assets/{list-header-DsWkp7IV.js → list-header-sMQeptfh.js} +1 -1
  131. package/dist/assets/{log-DgVRxyob.js → log-cMe-yCc9.js} +1 -1
  132. package/dist/assets/{lottie-CYf1PmCL.js → lottie-oKugLW27.js} +1 -1
  133. package/dist/assets/{matchbrackets.es-BthTk6Jn.js → matchbrackets.es-CedBfYiO.js} +1 -1
  134. package/dist/assets/{memory-dGmMptAO.js → memory-DtZsgQku.js} +1 -1
  135. package/dist/assets/{mode.es-_GdTPtpx.js → mode.es-BCvVo63y.js} +1 -1
  136. package/dist/assets/{mode.es2-brmgogqJ.js → mode.es2-ahvvTvAM.js} +1 -1
  137. package/dist/assets/{mode.es3-DPGB-Rg-.js → mode.es3-Bhh5S718.js} +1 -1
  138. package/dist/assets/{onlineParser.es-BUsBjG_x.js → onlineParser.es-D5Qe3rjM.js} +1 -1
  139. package/dist/assets/overview-C8aXpNrX.js +23 -0
  140. package/dist/assets/{pt-BxA88dKG.js → pt-Bbu04bsN.js} +1 -1
  141. package/dist/assets/react-UY6g3dsd.js +56 -0
  142. package/dist/assets/{redux-BBckwmBz.js → redux-DYjmRPcE.js} +1 -1
  143. package/dist/assets/resource-dialog-C82ZhW4T.js +57 -0
  144. package/dist/assets/{ru-C9WJaQoQ.js → ru-B2kEUdnW.js} +1 -1
  145. package/dist/assets/{runtime-mnz4kggA.js → runtime-D1eyE8B1.js} +1 -1
  146. package/dist/assets/{search.es-CV0d4AUV.js → search.es-0GT84-M2.js} +1 -1
  147. package/dist/assets/{searchcursor.es-CxYOh1mB.js → searchcursor.es-CX66aj_i.js} +1 -1
  148. package/dist/assets/service-DOjp5s19.js +1 -0
  149. package/dist/assets/{show-hint.es-GDHMVUwy.js → show-hint.es-vCcUyQMQ.js} +1 -1
  150. package/dist/assets/{slicedToArray-Pwxti1pp.js → slicedToArray-I-ObepI-.js} +1 -1
  151. package/dist/assets/spaces-m3k1wtEz.js +1 -0
  152. package/dist/assets/{sublime.es-BiX2tLa_.js → sublime.es-wltndpKH.js} +1 -1
  153. package/dist/assets/{switch-control-1CHbJzd5.js → switch-control-DSzxDtfl.js} +1 -1
  154. package/dist/assets/{table-icons-DjAM1A7C.js → table-icons-D70UZfU7.js} +9 -9
  155. package/dist/assets/{tag-CdoBHuxB.js → tag-BDr72C87.js} +1 -1
  156. package/dist/assets/{team-CrNp0IgF.js → team-Ch-Gj2hO.js} +1 -1
  157. package/dist/assets/{th-z7LSYRZi.js → th-hxX0mxam.js} +1 -1
  158. package/dist/assets/{toUpper-C7enqaxL.js → toUpper-Bqm-4sXI.js} +1 -1
  159. package/dist/assets/{traffic-Bw_e_wEP.js → traffic-BS6Lfitp.js} +5 -5
  160. package/dist/assets/{url-evaluation-asC5XTLH.js → url-evaluation-ceiaoY0M.js} +4 -4
  161. package/dist/assets/url-join-Bsj5KCM1.js +1 -0
  162. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BQtm5420.js +1 -0
  163. package/dist/assets/{useLocalStorage-DRS65jti.js → useLocalStorage-BOaGasKr.js} +1 -1
  164. package/dist/assets/util-CMnoIJSr.js +1 -0
  165. package/dist/assets/{vi-CAtyUyNW.js → vi-BvdHaGW6.js} +1 -1
  166. package/dist/assets/{wait-container-DzvlQJkQ.js → wait-container-CtbhxRrL.js} +1 -1
  167. package/dist/assets/withStyles-CjmLVNUl.js +1 -0
  168. package/dist/assets/wrap-locale-K8WYS2HB.js +1 -0
  169. package/dist/assets/zh-D9mkCsIM.js +2 -0
  170. package/dist/assets/zh-tw-D-Z5mIZW.js +1 -0
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/Delete-BGOcGa_D.js +0 -1
  175. package/dist/assets/InfoOutlined-B4lqtuRU.js +0 -1
  176. package/dist/assets/TextField-BD0it3d0.js +0 -1
  177. package/dist/assets/actions-Dx15LaaC.js +0 -11
  178. package/dist/assets/api-Ce74sKYG.js +0 -1
  179. package/dist/assets/app-avatar-rgMNqIXw.js +0 -1
  180. package/dist/assets/bundle-avatar-C_2wXttj.js +0 -1
  181. package/dist/assets/getValidReactChildren-DKO9kPop.js +0 -1
  182. package/dist/assets/index-CkI554oc.js +0 -2517
  183. package/dist/assets/index-D9RqTndg.js +0 -21
  184. package/dist/assets/index-DG50udXf.js +0 -150
  185. package/dist/assets/index-dQw_Q0Sx.js +0 -58
  186. package/dist/assets/index-owRl0jyR.js +0 -302
  187. package/dist/assets/index-sNR67yJ2.js +0 -1
  188. package/dist/assets/index.esm-BCQ0BZMT.js +0 -1
  189. package/dist/assets/overview-BjqHXIvR.js +0 -23
  190. package/dist/assets/react-B-xa5K3p.js +0 -61
  191. package/dist/assets/resource-dialog-CIpxrG7w.js +0 -57
  192. package/dist/assets/service-DbM6n6e-.js +0 -1
  193. package/dist/assets/spaces-3s9pbV-M.js +0 -1
  194. package/dist/assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js +0 -1
  195. package/dist/assets/util-BC42zb0j.js +0 -1
  196. package/dist/assets/withStyles-CPWhmxGn.js +0 -1
  197. package/dist/assets/wrap-locale-p7nrsckq.js +0 -1
  198. package/dist/assets/zh-BVBeddUa.js +0 -2
  199. package/dist/assets/zh-tw-CoStw7dd.js +0 -1
@@ -1,4 +1,4 @@
1
- import{fg as H,g as L,fh as W}from"./index-CkI554oc.js";var d={},A,I;function X(){if(I)return A;I=1;var y,r,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1
+ import{fg as H,g as L,fh as W}from"./index-DHvVD3rl.js";var d={},A,I;function X(){if(I)return A;I=1;var y,r,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" "},c;function s(t){throw{name:"SyntaxError",message:t,at:y,text:c}}function n(t){return t&&t!==r&&s("Expected '"+t+"' instead of '"+r+"'"),r=c.charAt(y),y+=1,r}function h(){var t,i="";for(r==="-"&&(i="-",n("-"));r>="0"&&r<="9";)i+=r,n();if(r===".")for(i+=".";n()&&r>="0"&&r<="9";)i+=r;if(r==="e"||r==="E")for(i+=r,n(),(r==="-"||r==="+")&&(i+=r,n());r>="0"&&r<="9";)i+=r,n();return t=Number(i),isFinite(t)||s("Bad number"),t}function v(){var t,i,f="",g;if(r==='"')for(;n();){if(r==='"')return n(),f;if(r==="\\")if(n(),r==="u"){for(g=0,i=0;i<4&&(t=parseInt(n(),16),!!isFinite(t));i+=1)g=g*16+t;f+=String.fromCharCode(g)}else if(typeof a[r]=="string")f+=a[r];else break;else f+=r}s("Bad string")}function u(){for(;r&&r<=" ";)n()}function o(){switch(r){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null;default:s("Unexpected '"+r+"'")}}function p(){var t=[];if(r==="["){if(n("["),u(),r==="]")return n("]"),t;for(;r;){if(t.push(e()),u(),r==="]")return n("]"),t;n(","),u()}}s("Bad array")}function l(){var t,i={};if(r==="{"){if(n("{"),u(),r==="}")return n("}"),i;for(;r;){if(t=v(),u(),n(":"),Object.prototype.hasOwnProperty.call(i,t)&&s('Duplicate key "'+t+'"'),i[t]=e(),u(),r==="}")return n("}"),i;n(","),u()}}s("Bad object")}function e(){switch(u(),r){case"{":return l();case"[":return p();case'"':return v();case"-":return h();default:return r>="0"&&r<="9"?h():o()}}return A=function(t,i){var f;return c=t,y=0,r=" ",f=e(),u(),r&&s("Syntax error"),typeof i=="function"?function g(S,m){var b,O,w=S[m];if(w&&typeof w=="object")for(b in e)Object.prototype.hasOwnProperty.call(w,b)&&(O=g(w,b),typeof O>"u"?delete w[b]:w[b]=O);return i.call(S,m,w)}({"":f},""):f},A}var J,_;function Y(){if(_)return J;_=1;var y=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,a,c={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function n(v){return y.lastIndex=0,y.test(v)?'"'+v.replace(y,function(u){var o=c[u];return typeof o=="string"?o:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+v+'"'}function h(v,u){var o,p,l,e,t=r,i,f=u[v];switch(f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(v)),typeof s=="function"&&(f=s.call(u,v,f)),typeof f){case"string":return n(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(r+=a,i=[],Object.prototype.toString.apply(f)==="[object Array]"){for(e=f.length,o=0;o<e;o+=1)i[o]=h(o,f)||"null";return l=i.length===0?"[]":r?`[
3
3
  `+r+i.join(`,
4
4
  `+r)+`
@@ -0,0 +1 @@
1
+ import{bR as $,bS as x,bM as d,bZ as e,bY as y,b_ as S,eN as m,eO as C,r as M,bQ as z,bO as l,j as i,bV as j,fi as R,bW as B,s as T,P as O,aX as P}from"./index-DHvVD3rl.js";function E(t){return x("MuiSwitch",t)}const o=$("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),N=["className","color","edge","size","sx"],_=R(),D=t=>{const{classes:a,edge:s,size:r,color:p,checked:u,disabled:h}=t,b={root:["root",s&&`edge${e(s)}`,`size${e(r)}`],switchBase:["switchBase",`color${e(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},g=B(b,E,a);return l({},a,g)},I=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.root,s.edge&&a[`edge${e(s.edge)}`],a[`size${e(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),U=d(y,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},s.color!=="default"&&a[`color${e(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:S(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:S(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?m(t.palette[a].main,.62):C(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]})),A=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,a)=>a.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),V=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,a)=>a.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),X=M.forwardRef(function(a,s){const r=_({props:a,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:b="medium",sx:g}=r,f=z(r,N),c=l({},r,{color:u,edge:h,size:b}),n=D(c),w=i.jsx(V,{className:n.thumb,ownerState:c});return i.jsxs(I,{className:j(n.root,p),sx:g,ownerState:c,children:[i.jsx(U,l({type:"checkbox",icon:w,checkedIcon:w,ref:s,ownerState:c},f,{classes:l({},n,{root:n.switchBase})})),i.jsx(A,{className:n.track,ownerState:c})]})}),L=X,k=T(t=>i.jsx(L,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function v({labelProps:t,...a}){return t?i.jsx(P,{control:i.jsx(k,{...a}),...t}):i.jsx(k,{...a})}v.propTypes={labelProps:O.object};v.defaultProps={labelProps:null};export{v as S,L as a};
@@ -1,4 +1,4 @@
1
- import{g as ze,X as We,n as P,O as S,Y as V,j as e,Z as ke,r as x,P as T,q as $,$ as he,a0 as ye,a1 as j,a2 as ee,a3 as Ge,A as M,K as Y,h as He,H as te,a4 as qe,m as L,T as Ve,a5 as Ye,a6 as Qe,B as U,D as Ke,C as be,w as Je,J as ve,a7 as Xe,a8 as Ze,a9 as et,u as I,f as tt,aa as W,t as Z,E as st,ab as se,z as Se,v as oe,ac as ot,W as re,i as je,x as Ce,y as Q,ad as rt,ae as nt,af as Pe,ag as at,b as B,ah as it,N as lt,ai as ct,Q as dt,aj as pt,ak as Re,al as Te,am as Ee,an as De,ao as Be,ap as N,aq as Ue,ar as Oe,as as _e,at as mt}from"./index-CkI554oc.js";import{P as G,L as ht,A as ut,S as $e,a as Ae}from"./index-CsNkkebn.js";import{A as ft,D as ne,u as xt,W as gt,P as wt,L as Fe,d as Le,a as Ne}from"./wait-container-DzvlQJkQ.js";import{_ as ue}from"./useLocalStorage-DRS65jti.js";import{d as kt}from"./Launch-Dhs9Q_70.js";import{d as yt}from"./DeleteOutline-C7JmRduW.js";import{g as bt,i as vt}from"./spaces-3s9pbV-M.js";import{T as St}from"./TextField-BD0it3d0.js";import{i as fe}from"./isEqual-DLk5wI5o.js";import{d as jt}from"./MoreVert-BL42DjcZ.js";import{E as Ct}from"./index-CfOOBUnf.js";import"./Skeleton-CSyuj2cV.js";import"./Close-DGnER_ve.js";import"./lottie-CYf1PmCL.js";import"./api-Ce74sKYG.js";import"./Select-DJl6HmRs.js";import"./InputLabel-CdW9MyDY.js";var Pt=We;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=ze(Tt);function ae({children:t,selected:r}){return e.jsxs(Dt,{children:[t,e.jsx(S,{className:`selected-container ${r?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(S)`
1
+ import{g as ze,X as We,n as P,O as S,Y as V,j as e,Z as ke,r as x,P as T,q as $,$ as he,a0 as ye,a1 as j,a2 as ee,a3 as Ge,A as M,K as Y,h as He,H as te,a4 as qe,m as L,T as Ve,a5 as Ye,a6 as Qe,B as U,D as Ke,C as be,w as Je,J as ve,a7 as Xe,a8 as Ze,a9 as et,u as I,f as tt,aa as W,t as Z,E as st,ab as se,z as Se,v as oe,ac as ot,W as re,i as je,x as Ce,y as Q,ad as rt,ae as nt,af as Pe,ag as at,b as B,ah as it,N as lt,ai as ct,Q as dt,aj as pt,ak as Re,al as Te,am as Ee,an as De,ao as Be,ap as N,aq as Ue,ar as Oe,as as _e,at as mt}from"./index-DHvVD3rl.js";import{P as G,L as ht,A as ut,S as $e,a as Ae}from"./index-CsJW-E3u.js";import{A as ft,D as ne,u as xt,W as gt,P as wt,L as Fe,d as Le,a as Ne}from"./wait-container-CtbhxRrL.js";import{_ as ue}from"./useLocalStorage-BOaGasKr.js";import{d as kt}from"./Launch-BOea_wCy.js";import{d as yt}from"./DeleteOutline-CnmOxEUl.js";import{g as bt,i as vt}from"./spaces-m3k1wtEz.js";import{T as St}from"./TextField-B9TZBqQf.js";import{i as fe}from"./isEqual-BT0_AVZN.js";import{d as jt}from"./MoreVert-BzXa-i1R.js";import{E as Ct}from"./index-CmUhV6b0.js";import"./url-join-Bsj5KCM1.js";import"./Skeleton-URH_1vdL.js";import"./Close-uiQeu7_r.js";import"./lottie-oKugLW27.js";import"./api-BM9dJimB.js";import"./Select-DXPyl9dO.js";import"./InputLabel-Csh1ynXt.js";var Pt=We;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=ze(Tt);function ae({children:t,selected:r}){return e.jsxs(Dt,{children:[t,e.jsx(S,{className:`selected-container ${r?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(S)`
2
2
  position: relative;
3
3
 
4
4
  .selected-container {
@@ -53,7 +53,7 @@ import{g as ze,X as We,n as P,O as S,Y as V,j as e,Z as ke,r as x,P as T,q as $,
53
53
  visibility: visible;
54
54
  }
55
55
  }
56
- `;ae.propTypes={children:V.node.isRequired,selected:V.bool};ae.defaultProps={selected:!1};const Me=x.createContext({}),{Provider:Bt,Consumer:Cs}=Me;function ie({children:t}){const{t:r}=$(),[s,c]=ue("spaceGatewaysForRestore",[{name:"Prod DID Spaces",url:"https://www.didspaces.com/app",protected:!0},{name:"Staging DID Spaces",url:"https://spaces.staging.arcblock.io/app",protected:!0}]),[d,m]=ue("selectedSpaceGatewayForRestore",s.find(o=>o.url==="https://www.didspaces.com/app")),l=o=>{const i=s.find(g=>o.url===g.url);if(i)throw new Error(r("storage.spaces.gateway.add.duplicate",{name:i.name}));c(()=>[...s,he.cloneDeep(o)]),m(o)},h=o=>{if(o.url===d.url)throw new Error(r("storage.spaces.gateway.delete.failedForSelected"));c(()=>s.filter(i=>i.url!==o.url))},u=o=>{m(o)};return x.useEffect(()=>{async function o(){const i=await Promise.all(s.map(async g=>{const{data:n}=await ye.get(j(g.url,"/__blocklet__.js?type=json"),{timeout:5e3}).catch(O=>(console.error(O),{data:{}})),p=n.appName??g.name;return he.merge(g,{name:p})}));c(i)}o()},[]),e.jsx(Bt,{value:{spaceGateways:s,selectedSpaceGateway:d,addSpaceGateway:l,deleteSpaceGateway:h,handleSelectSpaceGateway:u},children:t})}ie.propTypes={children:T.any.isRequired};ie.defaultProps={};function Ut(){return x.useContext(Me)}function le({spaceGateway:t,onDeleteSpaceGateway:r}){const{t:s}=$(),[c,d]=x.useState(!1),[m,l]=x.useState(!1),h=(o,i)=>{o==null||o.stopPropagation(),d(i)},u=async o=>{try{o==null||o.stopPropagation(),l(!0),await r(t),d(!1)}catch(i){console.error(i),M.error(`${s("storage.spaces.gateway.delete.failed")}: ${Y(i)}`)}finally{l(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:"small",onClick:o=>h(o,!0),children:e.jsx(yt,{})}),e.jsx(Ge,{title:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:c,confirmButton:{text:s("common.confirm"),props:{variant:"contained",color:"error",loading:m}},cancelButton:{text:s("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:u,onCancel:o=>h(o,!1)})]})}le.propTypes={onDeleteSpaceGateway:T.func,spaceGateway:T.shape({name:T.string.isRequired,url:T.string.isRequired,protected:T.bool}).isRequired};le.defaultProps={onDeleteSpaceGateway:()=>{}};function Ot(){const t=He(),r=te(t.breakpoints.down("md"));return{minWidth:r?300:t.breakpoints.values.sm,isMobile:r}}const _t=qe(()=>({menuName:{display:"flex",flex:1,flexDirection:"column",paddingRight:"24px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}));function ce({spaceGateway:t,selected:r,onDeleteSpaceGateway:s,onSelectGateway:c,...d}){const m=_t(),{t:l}=$(),{isMobile:h}=Ot(),u=i=>{i.stopPropagation(),window.open(t.url)},o=async()=>{await s(t)};return e.jsxs($t,{...d,children:[e.jsx(S,{display:"inline-flex",marginRight:"8px",alignItems:"center",children:e.jsx("img",{alt:t.name,src:j(t.url,"favicon.ico"),width:"48px",height:"48px"})}),e.jsxs(S,{className:m.menuName,onClick:c,children:[e.jsxs(L,{component:"span",variant:"subtitle1",style:{fontWeight:"400"},children:[t==null?void 0:t.name," ",r&&e.jsx(Ve,{color:"primary",style:{marginLeft:"8px"},children:l("common.selected")})]}),e.jsx(L,{className:"url",component:"span",variant:"inherit",children:h?`${Ye(t==null?void 0:t.url,38)}`:`${t==null?void 0:t.url}`})]}),e.jsxs(Qe,{children:[e.jsx(ee,{onClick:u,size:"small",children:e.jsx(kt,{})}),(t==null?void 0:t.protected)!==!0&&e.jsx(le,{spaceGateway:t,onDeleteSpaceGateway:o})]})]})}const $t=P(S)`
56
+ `;ae.propTypes={children:V.node.isRequired,selected:V.bool};ae.defaultProps={selected:!1};const Me=x.createContext({}),{Provider:Bt,Consumer:Ps}=Me;function ie({children:t}){const{t:r}=$(),[s,c]=ue("spaceGatewaysForRestore",[{name:"Prod DID Spaces",url:"https://www.didspaces.com/app",protected:!0},{name:"Staging DID Spaces",url:"https://spaces.staging.arcblock.io/app",protected:!0}]),[d,m]=ue("selectedSpaceGatewayForRestore",s.find(o=>o.url==="https://www.didspaces.com/app")),l=o=>{const i=s.find(g=>o.url===g.url);if(i)throw new Error(r("storage.spaces.gateway.add.duplicate",{name:i.name}));c(()=>[...s,he.cloneDeep(o)]),m(o)},h=o=>{if(o.url===d.url)throw new Error(r("storage.spaces.gateway.delete.failedForSelected"));c(()=>s.filter(i=>i.url!==o.url))},u=o=>{m(o)};return x.useEffect(()=>{async function o(){const i=await Promise.all(s.map(async g=>{const{data:n}=await ye.get(j(g.url,"/__blocklet__.js?type=json"),{timeout:5e3}).catch(O=>(console.error(O),{data:{}})),p=n.appName??g.name;return he.merge(g,{name:p})}));c(i)}o()},[]),e.jsx(Bt,{value:{spaceGateways:s,selectedSpaceGateway:d,addSpaceGateway:l,deleteSpaceGateway:h,handleSelectSpaceGateway:u},children:t})}ie.propTypes={children:T.any.isRequired};ie.defaultProps={};function Ut(){return x.useContext(Me)}function le({spaceGateway:t,onDeleteSpaceGateway:r}){const{t:s}=$(),[c,d]=x.useState(!1),[m,l]=x.useState(!1),h=(o,i)=>{o==null||o.stopPropagation(),d(i)},u=async o=>{try{o==null||o.stopPropagation(),l(!0),await r(t),d(!1)}catch(i){console.error(i),M.error(`${s("storage.spaces.gateway.delete.failed")}: ${Y(i)}`)}finally{l(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:"small",onClick:o=>h(o,!0),children:e.jsx(yt,{})}),e.jsx(Ge,{title:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:c,confirmButton:{text:s("common.confirm"),props:{variant:"contained",color:"error",loading:m}},cancelButton:{text:s("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:u,onCancel:o=>h(o,!1)})]})}le.propTypes={onDeleteSpaceGateway:T.func,spaceGateway:T.shape({name:T.string.isRequired,url:T.string.isRequired,protected:T.bool}).isRequired};le.defaultProps={onDeleteSpaceGateway:()=>{}};function Ot(){const t=He(),r=te(t.breakpoints.down("md"));return{minWidth:r?300:t.breakpoints.values.sm,isMobile:r}}const _t=qe(()=>({menuName:{display:"flex",flex:1,flexDirection:"column",paddingRight:"24px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}));function ce({spaceGateway:t,selected:r,onDeleteSpaceGateway:s,onSelectGateway:c,...d}){const m=_t(),{t:l}=$(),{isMobile:h}=Ot(),u=i=>{i.stopPropagation(),window.open(t.url)},o=async()=>{await s(t)};return e.jsxs($t,{...d,children:[e.jsx(S,{display:"inline-flex",marginRight:"8px",alignItems:"center",children:e.jsx("img",{alt:t.name,src:j(t.url,"favicon.ico"),width:"48px",height:"48px"})}),e.jsxs(S,{className:m.menuName,onClick:c,children:[e.jsxs(L,{component:"span",variant:"subtitle1",style:{fontWeight:"400"},children:[t==null?void 0:t.name," ",r&&e.jsx(Ve,{color:"primary",style:{marginLeft:"8px"},children:l("common.selected")})]}),e.jsx(L,{className:"url",component:"span",variant:"inherit",children:h?`${Ye(t==null?void 0:t.url,38)}`:`${t==null?void 0:t.url}`})]}),e.jsxs(Qe,{children:[e.jsx(ee,{onClick:u,size:"small",children:e.jsx(kt,{})}),(t==null?void 0:t.protected)!==!0&&e.jsx(le,{spaceGateway:t,onDeleteSpaceGateway:o})]})]})}const $t=P(S)`
57
57
  display: flex;
58
58
  `;ce.propTypes={spaceGateway:T.shape({name:T.string.isRequired,url:T.string.isRequired,protected:T.bool}).isRequired,selected:T.bool,onDeleteSpaceGateway:T.func,onSelectGateway:V.func};ce.defaultProps={onDeleteSpaceGateway:()=>{},selected:!1,onSelectGateway:()=>{}};function de({onAddGateway:t,...r}){const{t:s,locale:c}=$(),[d,m]=x.useState(""),[l,h]=x.useState(!1),[u,o]=x.useState(!1),[i,g]=x.useState(""),n=async()=>{try{h(!0);const p=await bt(d,{withSearchParams:!1});if(!await vt(p))throw new Error(s("storage.spaces.gateway.add.invalidUrl"));const{data:O}=await ye.get(j(new URL(p).origin,"/__blocklet__.js?type=json")),f={name:O.appName,url:p,protected:!1};await t(f),M.success(s("storage.spaces.addedWithName",{name:f.name})),o(!1)}catch(p){g(`${s("storage.spaces.gateway.add.failed",c)}: ${Y(p)}`)}finally{h(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(U,{size:"middle",color:"primary",variant:"outlined",onClick:()=>o(!0),...r,children:s("storage.spaces.gateway.add.title")}),e.jsxs(Ke,{title:s("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:u,onClose:()=>o(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(U,{onClick:p=>{p.stopPropagation(),o(!1)},color:"inherit",children:s("common.cancel")}),e.jsxs(U,{onClick:p=>{p.stopPropagation(),n()},color:"primary","data-cy":"install-blocklet-next-step",disabled:l||!d,variant:"contained",autoFocus:!0,children:[l&&e.jsx(be,{size:16}),s("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(Je,{component:"div",children:e.jsx(L,{component:"div",children:e.jsx(St,{label:s("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:d,onChange:p=>{g(null),m(p.target.value)},disabled:l,onKeyPress:async p=>{p.key==="Enter"&&(p.preventDefault(),await n())},autoFocus:!0})})})}),!!i&&e.jsx(ve,{type:"error",style:{width:"100%"},children:i})]})]})}de.propTypes={onAddGateway:T.func};de.defaultProps={onAddGateway:()=>{}};function pe({onConnect:t,...r}){const{spaceGateways:s,selectedSpaceGateway:c,handleSelectSpaceGateway:d,addSpaceGateway:m,deleteSpaceGateway:l}=Ut(),{t:h}=$(),u=n=>{d(n)},o=async n=>{await m(n)},i=()=>{t(c)},g=async n=>{await l(n)};return e.jsxs(S,{...r,children:[e.jsx(Xe,{children:s.map(n=>{const p=(n==null?void 0:n.url)===c.url;return e.jsx(ae,{selected:p,children:e.jsx(Ze,{button:!0,selected:p,"data-cy":"get-space-endpoint-for-restore",children:e.jsx(et,{children:e.jsx(ce,{spaceGateway:n,onDeleteSpaceGateway:g,selected:p,onSelectGateway:()=>u(n)})})},n.url)})})}),e.jsxs(S,{display:"flex",marginTop:"16px",justifyContent:"center",alignItems:"center",children:[e.jsx(de,{onAddGateway:o}),e.jsx(U,{sx:{marginLeft:"16px"},size:"middle",variant:"contained",onClick:i,children:h("storage.spaces.connect.now")})]})]})}pe.propTypes={onConnect:V.func};pe.defaultProps={onConnect:()=>{}};const At=P("div")`
59
59
  width: 100%;
@@ -306,4 +306,4 @@ import{g as ze,X as We,n as P,O as S,Y as V,j as e,Z as ke,r as x,P as T,q as $,
306
306
  &.logo-can-click {
307
307
  cursor: pointer;
308
308
  }
309
- `;function Ps(){const{search:t}=window.location;return t.includes("restoreFrom=server")?e.jsx(rs,{}):e.jsx(Qt,{})}export{Ps as default};
309
+ `;function Rs(){const{search:t}=window.location;return t.includes("restoreFrom=server")?e.jsx(rs,{}):e.jsx(Qt,{})}export{Rs as default};
@@ -1 +1 @@
1
- import{r as o,f as n,j as t,n as e}from"./index-CkI554oc.js";import{R as r}from"./index-BA_TAXpL.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
1
+ import{r as o,f as n,j as t,n as e}from"./index-DHvVD3rl.js";import{R as r}from"./index-LuGhm-KA.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
@@ -1,4 +1,4 @@
1
- import{n as $,P,r as w,f as ge,j as e,C as V,i as ke,u as me,q,t as je,v as ye,D as Ce,B as W,w as ve,m as L,x as Se,y as Be,z as de,A as z,E as we,d as Ae,F as De,H as Te,J as ee,K as Ee,M as T,N as te,O as y,Q as Ie,R as F,S as Le,U as Pe,V as Re}from"./index-CkI554oc.js";import{_ as se}from"./useLocalStorage-DRS65jti.js";import{g as _e,D as Fe}from"./index-Cj3s4CtX.js";import{E as Ne}from"./index-CfOOBUnf.js";import{u as $e,B as oe}from"./url-evaluation-asC5XTLH.js";import{D as Ue,u as Me,B as ne}from"./actions-Dx15LaaC.js";import{l as le}from"./index-DuHl-QWf.js";import{W as Oe}from"./tag-CdoBHuxB.js";import{I as We,B as ze}from"./install-from-url-DuxahkOW.js";import{B as ae}from"./app-avatar-rgMNqIXw.js";import{d as Ve}from"./Add-DEou6OQu.js";import{S as E}from"./index-DeSsBKwN.js";import{T as re}from"./TextField-BD0it3d0.js";import{F as qe,S as Ke}from"./Select-DJl6HmRs.js";import"./FilterList-RGEuYf_e.js";import"./Delete-BGOcGa_D.js";import"./InputLabel-CdW9MyDY.js";import"./LastPage-dDlMsztV.js";import"./index-aVpXIXlo.js";import"./redux-BBckwmBz.js";import"./Search-J7ilvWof.js";import"./MoreVert-BL42DjcZ.js";import"./ButtonGroup-BbRXyWVe.js";import"./getValidReactChildren-DKO9kPop.js";import"./isEqual-DLk5wI5o.js";import"./index-Ca7UJIsi.js";import"./Stepper-C2a4PQ3_.js";function N({blocklet:g,skipAccessibilityCheck:c=!1,...p}){const{t:a}=w.useContext(ge),{urls:C,loading:o,recommendedUrl:m}=$e(g);if(o&&!c)return e.jsx(V,{size:12,...p});const x=c?C[0]:m;return x?e.jsx(He,{...p,children:e.jsx(Qe,{children:e.jsx(ke,{href:x,target:"_blank",className:"blocklet-interface",underline:"hover",children:a("common.open")})})}):a("blocklet.router.noAccessibleUrl")}const Qe=$.div`
1
+ import{n as $,P,r as w,f as ge,j as e,C as V,i as ke,u as me,q,t as je,v as ye,D as Ce,B as W,w as ve,m as L,x as Se,y as Be,z as de,A as z,E as we,d as Ae,F as De,H as Te,J as ee,K as Ee,M as T,N as te,O as y,Q as Ie,R as F,S as Le,U as Pe,V as Re}from"./index-DHvVD3rl.js";import{_ as se}from"./useLocalStorage-BOaGasKr.js";import{g as _e,D as Fe}from"./index-CiB-ceGd.js";import{E as Ne}from"./index-CmUhV6b0.js";import{u as $e,B as oe}from"./url-evaluation-ceiaoY0M.js";import{D as Ue,u as Me,B as ne}from"./actions-Dunvsfuf.js";import{l as le}from"./index-CYqmm0Sa.js";import{W as Oe}from"./tag-BDr72C87.js";import{I as We,B as ze}from"./install-from-url-D_JUSXN1.js";import{B as ae}from"./app-avatar-DQiSEUVG.js";import{d as Ve}from"./Add-CazR0vZK.js";import{S as E}from"./index-CtlJtm28.js";import{T as re}from"./TextField-B9TZBqQf.js";import{F as qe,S as Ke}from"./Select-DXPyl9dO.js";import"./FilterList-usqmRCGh.js";import"./Delete-DHiwhVmP.js";import"./InputLabel-Csh1ynXt.js";import"./LastPage-DnsJsUIR.js";import"./index-CNEFxICJ.js";import"./redux-DYjmRPcE.js";import"./Search-CQMDHt0w.js";import"./MoreVert-BzXa-i1R.js";import"./ButtonGroup-DxRrpbFw.js";import"./getValidReactChildren-BhT8Dia7.js";import"./isEqual-BT0_AVZN.js";import"./index-D6XxoBY_.js";import"./Stepper-F9lgPB4i.js";function N({blocklet:g,skipAccessibilityCheck:c=!1,...p}){const{t:a}=w.useContext(ge),{urls:C,loading:o,recommendedUrl:m}=$e(g);if(o&&!c)return e.jsx(V,{size:12,...p});const x=c?C[0]:m;return x?e.jsx(He,{...p,children:e.jsx(Qe,{children:e.jsx(ke,{href:x,target:"_blank",className:"blocklet-interface",underline:"hover",children:a("common.open")})})}):a("blocklet.router.noAccessibleUrl")}const Qe=$.div`
2
2
  display: flex;
3
3
  margin: 4px 0;
4
4
  `,He=$.div`
@@ -1 +1 @@
1
- import{z as l,bf as m,u as p,j as s,S as u}from"./index-CkI554oc.js";import{L as g,D as v}from"./download-bWTPRaod.js";import{F as f,S as x}from"./Select-DJl6HmRs.js";import"./ButtonGroup-BbRXyWVe.js";import"./getValidReactChildren-DKO9kPop.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
1
+ import{z as l,bg as m,u as p,j as s,S as u}from"./index-DHvVD3rl.js";import{L as g,D as v}from"./download-DjWKDAKk.js";import{F as f,S as x}from"./Select-DXPyl9dO.js";import"./ButtonGroup-DxRrpbFw.js";import"./getValidReactChildren-BhT8Dia7.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
@@ -1,4 +1,4 @@
1
- import{u as z,j as n,r as d,L as X,P as g,f as V,l as b,O as m,m as E,d as Y,V as Z,C as ee,q as te,M as v,a as f,F as T,b as j,cV as re,G as y,A as L,p as ne,o as oe,z as se,bf as ie,n as ae}from"./index-CkI554oc.js";import{T as me}from"./index-BNulkcXj.js";import le from"./traffic-Bw_e_wEP.js";import{D as ce}from"./index-Cj3s4CtX.js";import{B as ue}from"./app-avatar-rgMNqIXw.js";import{B as de}from"./bundle-avatar-C_2wXttj.js";import{C as pe,M as S}from"./memory-dGmMptAO.js";import{I as fe}from"./chart-sF6tbndw.js";import{w as ge}from"./withStyles-CPWhmxGn.js";import{_ as he}from"./useLocalStorage-DRS65jti.js";import{T as ve,a as ye}from"./ToggleButtonGroup-CR3zvwUX.js";import"./Delete-BGOcGa_D.js";import"./iframe-C32DbqVc.js";import"./ChevronLeft-Bc2acyen.js";import"./ChevronRight-Bcko4z80.js";import"./Select-DJl6HmRs.js";import"./TextField-BD0it3d0.js";import"./InputLabel-CdW9MyDY.js";import"./InputAdornment-BzCm_2kz.js";import"./FilterList-RGEuYf_e.js";import"./LastPage-dDlMsztV.js";import"./index-aVpXIXlo.js";import"./redux-BBckwmBz.js";import"./Search-J7ilvWof.js";import"./index-CfOOBUnf.js";import"./MoreVert-BL42DjcZ.js";import"./getValidReactChildren-DKO9kPop.js";function xe(){const{api:e,info:t}=z();return n.jsx(le,{client:e,did:t.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var A=M.default=void 0;je(d);var C=n;function je(e){return e&&e.__esModule?e:{default:e}}function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?k(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,t,i){return t=Ie(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ie(e){var t=Ne(e,"string");return typeof t=="symbol"?t:String(t)}function Ne(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O=function(t){return(0,C.jsxs)("svg",_(_({},t),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};O.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};O.displayName="server";A=M.default=O;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(X);function H(e){const{value:t}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(E,{variant:"body2",color:"textSecondary",children:`${Math.round(t)}%`})})]})}H.propTypes={value:g.number.isRequired};function R({disk:e}){const{t}=d.useContext(V),i=[{id:1,className:"used",title:t("system.used"),metric:b(e.used)},{id:2,className:"free",title:t("system.free"),metric:b(e.free)},{id:3,className:"total",title:t("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${t("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(H,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}R.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};R.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),x=d.useMemo(()=>{const r=[];return r.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),r.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{v.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&r.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:l,name:v.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),r},[]),[p,N]=d.useState(x),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,q]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,r=>{r.mem.total=r.mem.total||0,r.mem.used=r.mem.total-(r.mem.available||0),F(r),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...r.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...r.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,r=>{if(!r||!r.length){console.error("incorrect blocklets runtime info format",r);return}N(o=>o.map(s=>{const l=r.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=r=>{N(o=>o.filter(s=>s.groupId!==r.meta.did))},B=async r=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:r.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return v.forEachBlockletSync(o,(c,{id:J,ancestors:Q})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:J,name:v.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:Q})}),l})}catch(o){L.error(o.message)}};f(j.BlockletEvents.removed,w),f(j.BlockletEvents.startFailed,w),f(j.BlockletEvents.statusChange,r=>{if(r.status!=="running"){w(r);return}B(r)}),f(j.BlockletEvents.updated,B),f(j.BlockletEvents.started,B);const G=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(r=>{const o=r.history||[];q({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(r=>{L.error(r.message)})};d.useEffect(()=>{G()},[u]);const W=r=>ne(Number(r||0),{locale:oe(i)}),K=[{label:t("common.group"),name:"groupName",options:{customBodyRenderLite(r){const{type:o,blocklet:s,groupName:l}=p[r];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:t("common.name"),name:"name",options:{customBodyRenderLite(r){const{type:o,name:s,component:l,ancestors:c}=p[r];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(A,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return W(o.uptime)}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:t("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(E,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:t("analytics.trend")}),n.jsx(ve,{size:"small",exclusive:!0,value:u,onChange:(r,o)=>I(o),children:[1,3,6,12,24].map(r=>n.jsxs(ye,{value:r,children:[r,"H"]},r))})]}),n.jsxs(y,{mb:4,container:!0,spacing:4,children:[n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{...h.mem,history:P.mem})},"memory"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(r=>n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(R,{disk:r})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:t("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:t,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...t];return n.jsx($,{initialBlocklets:a})}function et(){const e=se(),{t}=d.useContext(V),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:t("common.traffic"),value:"traffic"},{label:t("common.runtime"),value:"runtime"}],I={traffic:xe,runtime:we},x=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(E,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(x)?x:n.jsx(x,{})})]})}const Be=ae.main`
1
+ import{u as z,j as n,r as d,L as X,P as g,f as V,l as b,O as m,m as E,d as Y,V as Z,C as ee,q as te,M as v,a as f,F as T,b as j,cV as re,G as y,A as L,p as ne,o as oe,z as se,bg as ie,n as ae}from"./index-DHvVD3rl.js";import{T as me}from"./index-BXxemGex.js";import le from"./traffic-BS6Lfitp.js";import{D as ce}from"./index-CiB-ceGd.js";import{B as ue}from"./app-avatar-DQiSEUVG.js";import{B as de}from"./bundle-avatar-6edO3WvW.js";import{C as pe,M as S}from"./memory-DtZsgQku.js";import{I as fe}from"./chart-DxusdyLS.js";import{w as ge}from"./withStyles-CjmLVNUl.js";import{_ as he}from"./useLocalStorage-BOaGasKr.js";import{T as ve,a as ye}from"./ToggleButtonGroup-B4DF013K.js";import"./Delete-DHiwhVmP.js";import"./iframe-CN6X1zkC.js";import"./ChevronLeft-Bqynugte.js";import"./ChevronRight-C8sGT-T0.js";import"./Select-DXPyl9dO.js";import"./TextField-B9TZBqQf.js";import"./InputLabel-Csh1ynXt.js";import"./InputAdornment-0DnARlEj.js";import"./FilterList-usqmRCGh.js";import"./LastPage-DnsJsUIR.js";import"./index-CNEFxICJ.js";import"./redux-DYjmRPcE.js";import"./Search-CQMDHt0w.js";import"./index-CmUhV6b0.js";import"./MoreVert-BzXa-i1R.js";import"./getValidReactChildren-BhT8Dia7.js";function xe(){const{api:e,info:t}=z();return n.jsx(le,{client:e,did:t.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var A=M.default=void 0;je(d);var C=n;function je(e){return e&&e.__esModule?e:{default:e}}function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?k(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,t,i){return t=Ie(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ie(e){var t=Ne(e,"string");return typeof t=="symbol"?t:String(t)}function Ne(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O=function(t){return(0,C.jsxs)("svg",_(_({},t),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};O.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};O.displayName="server";A=M.default=O;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(X);function H(e){const{value:t}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(E,{variant:"body2",color:"textSecondary",children:`${Math.round(t)}%`})})]})}H.propTypes={value:g.number.isRequired};function R({disk:e}){const{t}=d.useContext(V),i=[{id:1,className:"used",title:t("system.used"),metric:b(e.used)},{id:2,className:"free",title:t("system.free"),metric:b(e.free)},{id:3,className:"total",title:t("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${t("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(H,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}R.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};R.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),x=d.useMemo(()=>{const r=[];return r.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),r.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{v.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&r.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:l,name:v.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),r},[]),[p,N]=d.useState(x),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,q]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,r=>{r.mem.total=r.mem.total||0,r.mem.used=r.mem.total-(r.mem.available||0),F(r),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...r.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...r.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,r=>{if(!r||!r.length){console.error("incorrect blocklets runtime info format",r);return}N(o=>o.map(s=>{const l=r.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=r=>{N(o=>o.filter(s=>s.groupId!==r.meta.did))},B=async r=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:r.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return v.forEachBlockletSync(o,(c,{id:J,ancestors:Q})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:v.getDisplayName(o),id:J,name:v.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:Q})}),l})}catch(o){L.error(o.message)}};f(j.BlockletEvents.removed,w),f(j.BlockletEvents.startFailed,w),f(j.BlockletEvents.statusChange,r=>{if(r.status!=="running"){w(r);return}B(r)}),f(j.BlockletEvents.updated,B),f(j.BlockletEvents.started,B);const G=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(r=>{const o=r.history||[];q({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(r=>{L.error(r.message)})};d.useEffect(()=>{G()},[u]);const W=r=>ne(Number(r||0),{locale:oe(i)}),K=[{label:t("common.group"),name:"groupName",options:{customBodyRenderLite(r){const{type:o,blocklet:s,groupName:l}=p[r];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:t("common.name"),name:"name",options:{customBodyRenderLite(r){const{type:o,name:s,component:l,ancestors:c}=p[r];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(A,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return W(o.uptime)}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(r){const{runtimeInfo:o}=p[r];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:t("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(E,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:t("analytics.trend")}),n.jsx(ve,{size:"small",exclusive:!0,value:u,onChange:(r,o)=>I(o),children:[1,3,6,12,24].map(r=>n.jsxs(ye,{value:r,children:[r,"H"]},r))})]}),n.jsxs(y,{mb:4,container:!0,spacing:4,children:[n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{...h.mem,history:P.mem})},"memory"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(S,{title:`${t("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(r=>n.jsx(y,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(R,{disk:r})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:t("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:t,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...t];return n.jsx($,{initialBlocklets:a})}function et(){const e=se(),{t}=d.useContext(V),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:t("common.traffic"),value:"traffic"},{label:t("common.runtime"),value:"runtime"}],I={traffic:xe,runtime:we},x=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(E,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:t("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(x)?x:n.jsx(x,{})})]})}const Be=ae.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1 +1 @@
1
- import{u as d,j as o,C as f,z as h,aw as v,ch as j,ci as u,O as C,bj as I,ae as P,F as R}from"./index-CkI554oc.js";import{I as S}from"./invitation-CSvGVnhZ.js";import"./index-BA_TAXpL.js";import"./index-BET56ssY.js";import"./CheckCircle-D6vwJd9K.js";import"./wrap-locale-p7nrsckq.js";function k(n){const{searchParams:i}=new URL(window.location.href),g=h(),{api:a,session:r}=v(),{info:l}=d(),c=i.get("redirect"),p=i.get("id"),s=j(async()=>{if(!p)return null;const{data:e}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return e}),m=u(()=>{if(s.error)throw s.error;return s==null?void 0:s.data}),w=u(async(e,x=t=>t)=>{e&&(e.sessionToken&&P(x(e.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const t=decodeURIComponent(c);t.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?g(t,{replace:!0}):window.location=t}else window.location=window.env.pathPrefix||"/"},50)});return s.loading?o.jsx(f,{}):o.jsx(C,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:o.jsx(S,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:e=>I(e,l),checkFn:a.get,onLoginSuccess:w,passportColor:"default",onLogin:r.login})})}function W(){return d().loading?o.jsx(f,{}):o.jsx(k,{})}export{W as default};
1
+ import{u as d,j as o,C as f,z as h,aw as v,ci as j,cj as u,O as C,bk as I,ae as P,F as k}from"./index-DHvVD3rl.js";import{I as R}from"./invitation-B9fShyCE.js";import"./index-LuGhm-KA.js";import"./index-oxLMT1TZ.js";import"./CheckCircle-DbpNufE5.js";import"./wrap-locale-K8WYS2HB.js";function S(n){const{searchParams:i}=new URL(window.location.href),g=h(),{api:a,session:r}=v(),{info:l}=d(),c=i.get("redirect"),p=i.get("id"),s=j(async()=>{if(!p)return null;const{data:e}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return e}),m=u(()=>{if(s.error)throw s.error;return s==null?void 0:s.data}),w=u(async(e,x=t=>t)=>{e&&(e.sessionToken&&P(x(e.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const t=decodeURIComponent(c);t.startsWith(k.WELLKNOWN_SERVICE_PATH_PREFIX)?g(t,{replace:!0}):window.location=t}else window.location=window.env.pathPrefix||"/"},50)});return s.loading?o.jsx(f,{}):o.jsx(C,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:o.jsx(R,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:e=>I(e,l),checkFn:a.get,onLoginSuccess:w,passportColor:"default",onLogin:r.login})})}function W(){return d().loading?o.jsx(f,{}):o.jsx(S,{})}export{W as default};
@@ -1,4 +1,4 @@
1
- import{cP as Ce,g as Ga,cN as je,r as D,cW as Br,cK as Ba}from"./index-CkI554oc.js";import{c as Wa}from"./redux-BBckwmBz.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,z=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Ke=Ct&&Tt.process,_t=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Xe=z["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Wn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?z.Buffer:void 0,be=z.Symbol,Mt=z.Uint8Array,$t=me.propertyIsEnumerable,zn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Kn=Rt?Rt.isBuffer:void 0,Xn=Fn(Object.keys,Object),Ye=ie(z,"DataView"),ce=ie(z,"Map"),Ve=ie(z,"Promise"),Qe=ie(z,"Set"),Je=ie(z,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function K(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():zn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}K.prototype.clear=ia,K.prototype.delete=oa,K.prototype.get=ua,K.prototype.has=sa,K.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||K),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new K(i);this.size=u.size}function ya(){this.__data__=new K,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof K){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&Wt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||Wt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,X=H?u.value():u;return y||(y=new V),I(J,X,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?Wn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Xn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(X,ne){if(!Ln(x,ne)&&(L===X||I(L,X,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var X=i[x],ne=u[x];if(g)var zt=E?g(ne,X,x,u,i,y):g(X,ne,x,i,u,y);if(!(zt===void 0?X===ne||I(X,ne,l,g,y):zt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Kn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var Wt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var za=Le.exports;const As=Ga(za);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",We="dnd-core/END_DRAG";function Kt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Xa(e,t){return e.filter(function(r){return r!==t})}function Wr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Kt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Kt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(Wr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||Wr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:We}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case We:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",ze="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:ze,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case ze:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Xa(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case We:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case ze:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case ze:case yt:return He;case qe:case ht:case We:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Ka(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function zr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:zr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:zr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Wi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Kr=nr.MutationObserver||nr.WebKitMutationObserver;function Xr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function zi(e){let t=1;const r=new Kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ki=typeof Kr=="function"?zi:Xr;class Xi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ki(this.flush),this.requestErrorThrow=Xr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Xi,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{cP as Ce,g as Ga,cN as je,r as D,cW as Br,cK as Ba}from"./index-DHvVD3rl.js";import{c as Wa}from"./redux-DYjmRPcE.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,z=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Ke=Ct&&Tt.process,_t=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Xe=z["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,Wn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?z.Buffer:void 0,be=z.Symbol,Mt=z.Uint8Array,$t=me.propertyIsEnumerable,zn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Kn=Rt?Rt.isBuffer:void 0,Xn=Fn(Object.keys,Object),Ye=ie(z,"DataView"),ce=ie(z,"Map"),Ve=ie(z,"Promise"),Qe=ie(z,"Set"),Je=ie(z,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function K(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():zn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}K.prototype.clear=ia,K.prototype.delete=oa,K.prototype.get=ua,K.prototype.has=sa,K.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||K),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new K(i);this.size=u.size}function ya(){this.__data__=new K,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof K){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&Wt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||Wt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,X=H?u.value():u;return y||(y=new V),I(J,X,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?Wn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Xn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(X,ne){if(!Ln(x,ne)&&(L===X||I(L,X,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var X=i[x],ne=u[x];if(g)var zt=E?g(ne,X,x,u,i,y):g(X,ne,x,i,u,y);if(!(zt===void 0?X===ne||I(X,ne,l,g,y):zt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Kn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var Wt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var za=Le.exports;const As=Ga(za);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",We="dnd-core/END_DRAG";function Kt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Ka(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Xa(e,t){return e.filter(function(r){return r!==t})}function Wr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Kt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Kt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(Wr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||Wr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:We}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case We:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",ze="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:ze,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case ze:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Xa(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case We:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case ze:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case ze:case yt:return He;case qe:case ht:case We:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Ka(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function zr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:zr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:zr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Wi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Kr=nr.MutationObserver||nr.WebKitMutationObserver;function Xr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function zi(e){let t=1;const r=new Kr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Ki=typeof Kr=="function"?zi:Xr;class Xi{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ki(this.flush),this.requestErrorThrow=Xr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Xi,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){if(e){if(typeof e=="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}}function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ao(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function io(e){if(Array.isArray(e))return e}function oo(e){var t=Gi().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function or(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ur(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=to(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var uo=function(){function e(t){Zi(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return eo(e,[{key:"addSource",value:function(r,n){ut(r),Bi(n);var a=this.addHandler(F.SOURCE,r,n);return this.store.dispatch(Ti(a)),a}},{key:"addTarget",value:function(r,n){ut(r,!0),Wi(n);var a=this.addHandler(F.TARGET,r,n);return this.store.dispatch(wi(a)),a}},{key:"containsHandler",value:function(r){return ur(this.dragSources,r)||ur(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h(this.isSourceId(r),"Expected a valid source ID.");var a=n&&r===this.pinnedSourceId,o=a?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return h(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=or(r);return n===F.SOURCE}},{key:"isTargetId",value:function(r){var n=or(r);return n===F.TARGET}},{key:"removeSource",value:function(r){var n=this;h(this.getSource(r),"Expected an existing source."),this.store.dispatch(Ii(r)),Ji(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){h(this.getTarget(r),"Expected an existing target."),this.store.dispatch(Ci(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);h(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){h(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,a){var o=oo(r);return this.types.set(o,n),r===F.SOURCE?this.dragSources.set(o,a):r===F.TARGET&&this.dropTargets.set(o,a),o}}]),e}();function so(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function co(e,t,r){return t&&sr(e.prototype,t),r&&sr(e,r),e}function fo(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Wa(xi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var lo=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;so(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var a=t.store.getState().refCount>0;t.backend&&(a&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!a&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=fo(r);this.store=n,this.monitor=new Fi(n,new uo(n)),n.subscribe(this.handleRefCountChange)}return co(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function a(s){return function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=s.apply(r,f);typeof v<"u"&&n(v)}}var o=yi(this);return Object.keys(o).reduce(function(s,c){var f=o[c];return s[c]=a(f),s},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function go(e,t,r,n){var a=new lo(n),o=e(a,t,r);return a.receiveBackend(o),a}var ve=D.createContext({dragDropManager:void 0});function Vr(e,t,r,n){return{dragDropManager:go(e,t,r,n)}}function ho(e,t){return mo(e)||yo(e,t)||vo(e,t)||po()}function po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cr(e,t)}}function cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function mo(e){if(Array.isArray(e))return e}function bo(e,t){if(e==null)return{};var r=Do(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Do(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,Qr=D.memo(function(e){var t=e.children,r=bo(e,["children"]),n=So(r),a=ho(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Jr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});Qr.displayName="DndProvider";function So(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=Oo(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=Vr(e,t,r,n)),a[ke]}function Jr(){return typeof je<"u"?je:window}var Zr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});Zr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function W(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),f=0;f<o.length;f++){var d=o[f];if(!c(d))return!1;var v=e[d],b=t[d];if(a=r?r.call(n,v,b,d):void 0,a===!1||a===void 0&&v!==b)return!1}return!0}function To(e,t){return _o(e)||Co(e,t)||Io(e,t)||wo()}function wo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){if(e){if(typeof e=="string")return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fr(e,t)}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Co(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function _o(e){if(Array.isArray(e))return e}function en(e,t,r){var n=D.useState(function(){return t(e)}),a=To(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);W(o,f)||(s(f),r&&r())},[o,e,r]);return ae(c,[]),[o,c]}function Eo(e,t){return Ro(e)||ko(e,t)||Ao(e,t)||Po()}function Po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -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-CkI554oc.js";import{a as X}from"./isEqual-DLk5wI5o.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-DHvVD3rl.js";import{a as X}from"./isEqual-BT0_AVZN.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,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-CkI554oc.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-DHvVD3rl.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;