@abtnode/webapp 1.16.28-beta-bfbab430 → 1.16.28-beta-17c98819

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DEou6OQu.js → Add-DdfKyAdP.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-B8q6yJii.js → ArrowDropDown-qBw97pL-.js} +1 -1
  5. package/dist/assets/{Autocomplete-CxHBaO5x.js → Autocomplete-BReAy6iG.js} +1 -1
  6. package/dist/assets/{Breadcrumbs--9MrOMZw.js → Breadcrumbs-FWiDSZgQ.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BbRXyWVe.js → ButtonGroup-CbxNRMKE.js} +1 -1
  8. package/dist/assets/{CheckCircle-D6vwJd9K.js → CheckCircle-dALAsbHQ.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Bc2acyen.js → ChevronLeft-Cf-5wtBt.js} +1 -1
  10. package/dist/assets/{ChevronRight-Bcko4z80.js → ChevronRight-BaQf9l-O.js} +1 -1
  11. package/dist/assets/{Close-DGnER_ve.js → Close-BneTv7Xy.js} +1 -1
  12. package/dist/assets/Delete-DXKhZTtc.js +1 -0
  13. package/dist/assets/{DeleteOutline-C7JmRduW.js → DeleteOutline-DkrRhsKv.js} +1 -1
  14. package/dist/assets/{Done-CydSjSOx.js → Done-89WeLZcz.js} +1 -1
  15. package/dist/assets/{Edit-B0yxTPMe.js → Edit-CbzkqV44.js} +1 -1
  16. package/dist/assets/{EditIcon-CF5y6ttj.js → EditIcon-BSBLuyj1.js} +1 -1
  17. package/dist/assets/{FilterList-RGEuYf_e.js → FilterList-nvbrBFgI.js} +4 -4
  18. package/dist/assets/{Google-CuSS9iHp.js → Google-ur2xY4JS.js} +1 -1
  19. package/dist/assets/{Https-B3P9JJiw.js → Https-OdxMf6s_.js} +1 -1
  20. package/dist/assets/{InfoOutlined-B4lqtuRU.js → InfoOutlined-BaBR5WTh.js} +1 -1
  21. package/dist/assets/{InputAdornment-BzCm_2kz.js → InputAdornment-Bz3jTEed.js} +1 -1
  22. package/dist/assets/{InputLabel-CdW9MyDY.js → InputLabel-Bb9-Zb4y.js} +1 -1
  23. package/dist/assets/{LastPage-dDlMsztV.js → LastPage-b5Zg6Pue.js} +1 -1
  24. package/dist/assets/{Launch-Dhs9Q_70.js → Launch-D3J61EvG.js} +1 -1
  25. package/dist/assets/{Link-DSNZ4PNo.js → Link-B0Z7PitM.js} +1 -1
  26. package/dist/assets/{LoadingButton-DrVP9tt_.js → LoadingButton-g3UG3r3Q.js} +1 -1
  27. package/dist/assets/{LockIcon-BMilDbx1.js → LockIcon-BIvEaDW_.js} +1 -1
  28. package/dist/assets/{Loop-CAxjNyCL.js → Loop-CvEhoguC.js} +1 -1
  29. package/dist/assets/{MoreVert-BL42DjcZ.js → MoreVert--N-SWxBs.js} +1 -1
  30. package/dist/assets/{Pagination-DWKt9t_F.js → Pagination-Cu8asTOi.js} +1 -1
  31. package/dist/assets/{Public-BobH8eAT.js → Public-Dm9eNERj.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-MUfmufV5.js → SchemaReference.es-Rht2H7VZ.js} +1 -1
  33. package/dist/assets/{Search-J7ilvWof.js → Search-DifTFgaN.js} +1 -1
  34. package/dist/assets/{Select-DJl6HmRs.js → Select-BazOq14-.js} +2 -2
  35. package/dist/assets/{Skeleton-CSyuj2cV.js → Skeleton-DzFzNaqT.js} +5 -5
  36. package/dist/assets/{Slider-DRCfqhU1.js → Slider-Bl9ZTB5-.js} +1 -1
  37. package/dist/assets/{Stepper-C2a4PQ3_.js → Stepper-CPSfsr8I.js} +1 -1
  38. package/dist/assets/TextField-CedO329E.js +1 -0
  39. package/dist/assets/{ToggleButtonGroup-CR3zvwUX.js → ToggleButtonGroup-Ce7WBAl0.js} +1 -1
  40. package/dist/assets/{ViewList-D3pEO1Ca.js → ViewList-DovmYLzP.js} +1 -1
  41. package/dist/assets/{actions-CL-Y8Eer.js → actions-BeKlqO4e.js} +1 -1
  42. package/dist/assets/actions-DnYxUqme.js +11 -0
  43. package/dist/assets/{agreement-Dd1yuqFa.js → agreement-yWupKN3O.js} +3 -3
  44. package/dist/assets/api-Cex76yJU.js +1 -0
  45. package/dist/assets/app-avatar-DmCjOAyS.js +1 -0
  46. package/dist/assets/{ar-DXpJw3XU.js → ar-BKJrehco.js} +1 -1
  47. package/dist/assets/{audit-logs-CmuAN_qn.js → audit-logs-jhEVyJaR.js} +1 -1
  48. package/dist/assets/{brace-fold.es-psNZdrWu.js → brace-fold.es-CFridbwI.js} +1 -1
  49. package/dist/assets/{bundle-avatar-C_2wXttj.js → bundle-avatar-DUPs0-m4.js} +1 -1
  50. package/dist/assets/{chart-sF6tbndw.js → chart-CP8mBtBC.js} +1 -1
  51. package/dist/assets/{click-to-copy-KBQWqGOq.js → click-to-copy-BXxUHt8e.js} +1 -1
  52. package/dist/assets/{closebrackets.es-ZHCmqLUg.js → closebrackets.es-_N2Hw_sF.js} +1 -1
  53. package/dist/assets/{codemirror.es-DmoQbR9T.js → codemirror.es-B7W38ouq.js} +1 -1
  54. package/dist/assets/{comment.es-B7zL23d5.js → comment.es-j4ympnEk.js} +1 -1
  55. package/dist/assets/{config-navigation-BN7PO-cf.js → config-navigation-BwONACZe.js} +4 -4
  56. package/dist/assets/{de-CWxlIdre.js → de-Byp7vRl4.js} +1 -1
  57. package/dist/assets/{delete-confirm-ztUwg2kj.js → delete-confirm-CHP8pMt1.js} +1 -1
  58. package/dist/assets/{detail-CXbwmlpg.js → detail-D7XGmf6a.js} +3 -3
  59. package/dist/assets/{dialog.es-CFWHh6H2.js → dialog.es-BOmAJ2tY.js} +1 -1
  60. package/dist/assets/{download-bWTPRaod.js → download-4eDwdyWv.js} +1 -1
  61. package/dist/assets/{es-BmrvDK07.js → es-O_BI7nAs.js} +1 -1
  62. package/dist/assets/{foldgutter.es-CqRhTHya.js → foldgutter.es-CpEL5ZIC.js} +1 -1
  63. package/dist/assets/{fr-B7SxgRy3.js → fr-DyVRrA5G.js} +1 -1
  64. package/dist/assets/getValidReactChildren-qfgxz0Xv.js +1 -0
  65. package/dist/assets/{hi-BRRtNIB_.js → hi-BpaB7ujL.js} +1 -1
  66. package/dist/assets/{hint.es-DK_6KY-o.js → hint.es-BpaHJ1HV.js} +1 -1
  67. package/dist/assets/{hint.es2-CgWo28Uj.js → hint.es2-D5kC37e7.js} +1 -1
  68. package/dist/assets/{id-D6-Qi7Q1.js → id-D7fl0yX3.js} +1 -1
  69. package/dist/assets/{iframe-C32DbqVc.js → iframe-D-cUXJPs.js} +1 -1
  70. package/dist/assets/{index-lXzOGnDm.js → index-5av-A8Se.js} +11 -11
  71. package/dist/assets/index-6y7fW5zM.js +21 -0
  72. package/dist/assets/{index-CE4mBIM_.js → index-B0nGAy1U.js} +1 -1
  73. package/dist/assets/{index-84DtgjQO.js → index-B5xa9VAq.js} +1 -1
  74. package/dist/assets/{index-BNulkcXj.js → index-B6TlGEJh.js} +1 -1
  75. package/dist/assets/{index-Clbjq5Ay.js → index-B6XDQWKd.js} +1 -1
  76. package/dist/assets/index-BBSo4Kre.js +1 -0
  77. package/dist/assets/{index-D5A34D-v.js → index-BFf4j7Ww.js} +1 -1
  78. package/dist/assets/{index-CzZF4DJ9.js → index-BQiUEEfD.js} +1 -1
  79. package/dist/assets/{index-CsNkkebn.js → index-BUk5N7af.js} +1 -1
  80. package/dist/assets/{index-Bzs05ai8.js → index-BamwV6lX.js} +1 -1
  81. package/dist/assets/{index-HMFhZkjG.js → index-BuyQWayQ.js} +1 -1
  82. package/dist/assets/{index-BD7uC7gm.js → index-Bzz51kzM.js} +3 -3
  83. package/dist/assets/{index-CEBXL16c.js → index-CBX-R_fM.js} +1 -1
  84. package/dist/assets/{index-CYGLUEkg.js → index-CD-Lt__N.js} +3 -3
  85. package/dist/assets/{index-BA_TAXpL.js → index-CaSOHyUU.js} +2 -2
  86. package/dist/assets/{index-DA4GWzzk.js → index-CfAX8o1m.js} +4 -4
  87. package/dist/assets/{index-CkI554oc.js → index-CkzoIPXc.js} +5 -5
  88. package/dist/assets/index-CptiWA5V.js +150 -0
  89. package/dist/assets/{index-DeSsBKwN.js → index-CulJYPiw.js} +1 -1
  90. package/dist/assets/{index-D2cgpNGA.js → index-D-o-DXlo.js} +5 -5
  91. package/dist/assets/{index-B4ZjZNN8.js → index-D1poLYtV.js} +1 -1
  92. package/dist/assets/{index-BoZhSN8h.js → index-DBtfr-g8.js} +1 -1
  93. package/dist/assets/{index-BET56ssY.js → index-DH55mhhr.js} +1 -1
  94. package/dist/assets/{index-C4aM6rsI.js → index-DLz4Hi3Z.js} +1 -1
  95. package/dist/assets/{index-Dlmo3B4P.js → index-DSZjoNB8.js} +1 -1
  96. package/dist/assets/{index-Ca7UJIsi.js → index-DWayuvwj.js} +1 -1
  97. package/dist/assets/{index-CYZ-ZpV5.js → index-DaLAdjV1.js} +1 -1
  98. package/dist/assets/{index-lfuZxoX8.js → index-Dgz6y_sw.js} +1 -1
  99. package/dist/assets/{index-C6fuJWed.js → index-Djimj0Ja.js} +1 -1
  100. package/dist/assets/{index-CwOFD6vt.js → index-DjsDiQcb.js} +1 -1
  101. package/dist/assets/{index-Cj3s4CtX.js → index-DnYL7SmU.js} +1 -1
  102. package/dist/assets/{index-DbaRhcjK.js → index-DrN8Ygwh.js} +1 -1
  103. package/dist/assets/index-KCymnL8f.js +11 -0
  104. package/dist/assets/{index-owRl0jyR.js → index-MncUxq-k.js} +1 -1
  105. package/dist/assets/{index-CfOOBUnf.js → index-P39Qd5P6.js} +1 -1
  106. package/dist/assets/{index-DoYPOJLK.js → index-UNdpHp7m.js} +27 -27
  107. package/dist/assets/{index-aVpXIXlo.js → index-Xp6JtBc6.js} +1 -1
  108. package/dist/assets/{index-CiaQ1OoK.js → index-hQvDKtXn.js} +1 -1
  109. package/dist/assets/{index-Dc48oA1e.js → index-i-porPUL.js} +8 -8
  110. package/dist/assets/{index-B0WN-XH2.js → index-jkMpqxhG.js} +1 -1
  111. package/dist/assets/{index-DuHl-QWf.js → index-n8r9cN9d.js} +1 -1
  112. package/dist/assets/index-zHybkvc3.js +58 -0
  113. package/dist/assets/{index.es-r9xAwx7Q.js → index.es-CLAf8rQ0.js} +1 -1
  114. package/dist/assets/{index.esm-BCQ0BZMT.js → index.esm-nYmTtYeB.js} +1 -1
  115. package/dist/assets/{info-addon.es-BDFdJmkW.js → info-addon.es-Cfolj5ET.js} +1 -1
  116. package/dist/assets/{info.es-CBadJSwW.js → info.es-D3Yd6cKh.js} +1 -1
  117. package/dist/assets/{install-from-url-DuxahkOW.js → install-from-url-NnkVYELF.js} +1 -1
  118. package/dist/assets/{invitation-CSvGVnhZ.js → invitation-BBnyeKGK.js} +2 -2
  119. package/dist/assets/{isEqual-DLk5wI5o.js → isEqual-DQGyAi5I.js} +1 -1
  120. package/dist/assets/{item-Bv034Zcl.js → item-wk2MJlrI.js} +14 -14
  121. package/dist/assets/{ja--dtwu5Xy.js → ja-xLR8soVq.js} +1 -1
  122. package/dist/assets/{javascript.es-Bq6krn1L.js → javascript.es-CqW0BR4Z.js} +1 -1
  123. package/dist/assets/{jump-to-line.es-Cm-kakdo.js → jump-to-line.es-C-Ofosy7.js} +1 -1
  124. package/dist/assets/{jump.es-VEZCju5l.js → jump.es-EY-vdsrN.js} +1 -1
  125. package/dist/assets/{ko-DpRJDWhF.js → ko-CdC91nMA.js} +1 -1
  126. package/dist/assets/{line-VNmgswg2.js → line-BJiZY-Na.js} +4 -4
  127. package/dist/assets/{lint.es-DhrBN362.js → lint.es-DCPumBx-.js} +1 -1
  128. package/dist/assets/{lint.es2-CWQYXYDN.js → lint.es2-D7ziml_k.js} +1 -1
  129. package/dist/assets/{lint.es3-HsrZT9m1.js → lint.es3-CQ3RJFPm.js} +1 -1
  130. package/dist/assets/{list-header-DsWkp7IV.js → list-header-2M6faCjv.js} +1 -1
  131. package/dist/assets/{log-DgVRxyob.js → log-DOLydL84.js} +1 -1
  132. package/dist/assets/{lottie-CYf1PmCL.js → lottie-DR9cYUcR.js} +1 -1
  133. package/dist/assets/{matchbrackets.es-BthTk6Jn.js → matchbrackets.es-DMbNa-Dz.js} +1 -1
  134. package/dist/assets/{memory-dGmMptAO.js → memory-XTtEtBxW.js} +1 -1
  135. package/dist/assets/{mode.es-_GdTPtpx.js → mode.es-4hNpjLfH.js} +1 -1
  136. package/dist/assets/{mode.es2-brmgogqJ.js → mode.es2-Pi_OeoUI.js} +1 -1
  137. package/dist/assets/{mode.es3-DPGB-Rg-.js → mode.es3-DqEODLL1.js} +1 -1
  138. package/dist/assets/{onlineParser.es-BUsBjG_x.js → onlineParser.es-LEndSaRN.js} +1 -1
  139. package/dist/assets/{overview-BjqHXIvR.js → overview-DG3ws5aa.js} +2 -2
  140. package/dist/assets/{pt-BxA88dKG.js → pt-CrWN8vvS.js} +1 -1
  141. package/dist/assets/{react-B-xa5K3p.js → react-DfJCVmkR.js} +22 -22
  142. package/dist/assets/{redux-BBckwmBz.js → redux-ELJtQoC2.js} +1 -1
  143. package/dist/assets/{resource-dialog-CIpxrG7w.js → resource-dialog-ZbHwdUpF.js} +1 -1
  144. package/dist/assets/{ru-C9WJaQoQ.js → ru-DYnq26fF.js} +1 -1
  145. package/dist/assets/{runtime-mnz4kggA.js → runtime-aFzgxTMx.js} +1 -1
  146. package/dist/assets/{search.es-CV0d4AUV.js → search.es-dkimuVIV.js} +1 -1
  147. package/dist/assets/{searchcursor.es-CxYOh1mB.js → searchcursor.es-Cgy0Dkqz.js} +1 -1
  148. package/dist/assets/service-BvyV0xti.js +1 -0
  149. package/dist/assets/{show-hint.es-GDHMVUwy.js → show-hint.es-C9i0xJlO.js} +1 -1
  150. package/dist/assets/{slicedToArray-Pwxti1pp.js → slicedToArray-Bc32ss_C.js} +1 -1
  151. package/dist/assets/{spaces-3s9pbV-M.js → spaces-D6AOV9xA.js} +1 -1
  152. package/dist/assets/{sublime.es-BiX2tLa_.js → sublime.es-BcF48CMJ.js} +1 -1
  153. package/dist/assets/{switch-control-1CHbJzd5.js → switch-control-BoZOKX0C.js} +1 -1
  154. package/dist/assets/{table-icons-DjAM1A7C.js → table-icons-B2dymBbK.js} +9 -9
  155. package/dist/assets/{tag-CdoBHuxB.js → tag-Bd5v37NR.js} +1 -1
  156. package/dist/assets/{team-CrNp0IgF.js → team-C-DXj-V_.js} +1 -1
  157. package/dist/assets/{th-z7LSYRZi.js → th-Bfmczss9.js} +1 -1
  158. package/dist/assets/{toUpper-C7enqaxL.js → toUpper-14sgZgOq.js} +1 -1
  159. package/dist/assets/{traffic-Bw_e_wEP.js → traffic-BZOD1k45.js} +5 -5
  160. package/dist/assets/{url-evaluation-asC5XTLH.js → url-evaluation-ClVD1OGC.js} +4 -4
  161. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BtXC5kfM.js +1 -0
  162. package/dist/assets/{useLocalStorage-DRS65jti.js → useLocalStorage-BG3mT3Wr.js} +1 -1
  163. package/dist/assets/{util-BC42zb0j.js → util-9Xuj0MWG.js} +1 -1
  164. package/dist/assets/{vi-CAtyUyNW.js → vi-Cyl8BHvR.js} +1 -1
  165. package/dist/assets/{wait-container-DzvlQJkQ.js → wait-container-CnoPKjU3.js} +1 -1
  166. package/dist/assets/withStyles-DCBbgotO.js +1 -0
  167. package/dist/assets/wrap-locale-B30EgQCX.js +1 -0
  168. package/dist/assets/zh-Dttm4AuY.js +2 -0
  169. package/dist/assets/zh-tw-BSAV-ffK.js +1 -0
  170. package/dist/index.html +1 -1
  171. package/dist/service-worker.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/Delete-BGOcGa_D.js +0 -1
  174. package/dist/assets/TextField-BD0it3d0.js +0 -1
  175. package/dist/assets/actions-Dx15LaaC.js +0 -11
  176. package/dist/assets/api-Ce74sKYG.js +0 -1
  177. package/dist/assets/app-avatar-rgMNqIXw.js +0 -1
  178. package/dist/assets/getValidReactChildren-DKO9kPop.js +0 -1
  179. package/dist/assets/index-D9RqTndg.js +0 -21
  180. package/dist/assets/index-DG50udXf.js +0 -150
  181. package/dist/assets/index-DHDAQRQS.js +0 -11
  182. package/dist/assets/index-dQw_Q0Sx.js +0 -58
  183. package/dist/assets/index-sNR67yJ2.js +0 -1
  184. package/dist/assets/service-DbM6n6e-.js +0 -1
  185. package/dist/assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js +0 -1
  186. package/dist/assets/withStyles-CPWhmxGn.js +0 -1
  187. package/dist/assets/wrap-locale-p7nrsckq.js +0 -1
  188. package/dist/assets/zh-BVBeddUa.js +0 -2
  189. package/dist/assets/zh-tw-CoStw7dd.js +0 -1
@@ -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-CkzoIPXc.js";import{c as Wa}from"./redux-ELJtQoC2.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{g as y}from"./index-CkI554oc.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{g as y}from"./index-CkzoIPXc.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,4 +1,4 @@
1
- var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(Ht(e,typeof t!="symbol"?t+"":t,n),n);import{P as l,j as d,ce,fN as ot,fO as Ut,r as T,cn as Dt,ci as Bt,a2 as Qt,fP as _e,dQ as Vt,dO as Wt,fQ as Zt,dN as Gt,d2 as A,a7 as Jt,a8 as Yt,fR as Xt,O as N,fS as Kt,m as en,fT as tn,fU as nn,B as on,fV as rn,fz as rt,q as te,fW as sn,fX as cn,co as an,fY as ln,s as P,fZ as st,f_ as un,c8 as it,f$ as fn,aA as ct,bU as de,b3 as dn,ba as pn,cp as at,g0 as hn}from"./index-CkI554oc.js";/**
1
+ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>(Ht(e,typeof t!="symbol"?t+"":t,n),n);import{P as l,j as d,cf as ce,fN as ot,fO as Dt,r as T,co as Ut,cj as Bt,a2 as Vt,fP as qe,dQ as Qt,dO as Wt,fQ as Zt,dN as Gt,d2 as A,a7 as Jt,a8 as Yt,fR as Xt,O as N,fS as Kt,m as en,fT as tn,fU as nn,B as on,fV as rn,fz as rt,q as te,fW as sn,fX as cn,cp as an,fY as ln,s as P,fZ as st,f_ as un,c9 as it,f$ as fn,aA as ct,bV as de,b4 as dn,bb as pn,cq as at,g0 as hn}from"./index-CkzoIPXc.js";/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -8,7 +8,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
8
8
  *
9
9
  * @license MIT
10
10
  * @version 1.0.8
11
- */const lt=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),D=Object.freeze({...lt,...J}),pe=Object.freeze({...D,body:"",hidden:!1}),gn=Object.freeze({width:null,height:null}),ut=Object.freeze({...gn,...J});function mn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const yn=/[\s,]+/;function bn(e,t){t.split(yn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...ut,preserveAspectRatio:""};function qe(e){const t={...ft},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=mn(n("rotate","")),bn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function xn(e,t){for(const n in ft)if(e[n]!==t[n])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Z(a,n)?null:a}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function wn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Fe(e,t){const n=wn(e,t);for(const r in pe)r in J?r in e&&!(r in n)&&(n[r]=J[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function vn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function kn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Fe(r[a]||o[a],s)}return i(t),n.forEach(i),Fe(e,s)}function dt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=vn(e);for(const o in r){const s=r[o];s&&(t(o,kn(e,o,s)),n.push(o))}return n}const jn={provider:"",aliases:{},not_found:{},...lt};function ae(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ae(e,jn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ae(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(q)||typeof i!="string"||!n[i]&&!r[i]||!ae(s,pe))return null}return t}const Y=Object.create(null);function In(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function L(e,t){const n=Y[e]||(Y[e]=Object.create(null));return n[t]||(n[t]=In(e,t))}function ve(e,t){return pt(t)?dt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Tn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Y[o]||{})).forEach(i=>{const a=L(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ht(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=L(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function gt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=L(n.provider,n.prefix);return Sn(r,n.name,t)}function ze(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",dt(e,(s,i)=>{i&&gt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const r=L(t,n);return!!ve(r,e)}function Cn(e){return!!H(e)}function An(e){const t=H(e);return t?{...D,...t}:null}function Pn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=L(s,i));let f;a in u.icons?f=t.loaded:i===""||u.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function mt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||mt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Nn=0;function Ln(e,t,n){const r=Nn++,o=mt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function He(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Rn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var On={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function En(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",u=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,M){const S=I!=="success";switch(h=h.filter(R=>R!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=M,b();return}if(S){f=M,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const R=e.resources.indexOf(y.resource);R!==-1&&R!==e.index&&(e.index=R)}c="completed",g.forEach(R=>{R(M)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(M,S)=>{C(I,M,S)}};h.push(I),u++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function yt(e){const t={...On,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const f=En(t,a,c,(p,h)=>{r(),u&&u(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ne=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;_.length>0;)_.length===1||Math.random()>.5?G.push(_.shift()):G.push(_.pop());ne[""]=ke({resources:["https://api.iconify.design"].concat(G)});function Ue(e,t){const n=ke(t);return n===null?!1:(ne[e]=n,!0)}function oe(e){return ne[e]}function $n(){return Object.keys(ne)}function De(){}const le=Object.create(null);function _n(e){if(!le[e]){const t=oe(e);if(!t)return;const n=yt(t),r={config:t,redundancy:n};le[e]=r}return le[e]}function bt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),De;o=s.send;const i=_n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=yt(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),De):r.query(t,o,n)().abort}const Be="iconify2",U="iconify",xt=U+"-count",Qe=U+"-version",wt=36e5,qn=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ve(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,xt,t.toString())}function be(e){return parseInt(me(e,xt))||0}const O={local:!0,session:!0},vt={local:new Set,session:new Set};let Ie=!1;function Fn(e){Ie=e}let W=typeof window>"u"?{}:window;function kt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}O[e]=!1}function jt(e,t){const n=kt(e);if(!n)return;const r=me(n,Qe);if(r!==Be){if(r){const a=be(n);for(let c=0;c<a;c++)Ve(n,U+c.toString())}je(n,Qe,Be),ye(n,0);return}const o=Math.floor(Date.now()/wt)-qn,s=a=>{const c=U+a.toString(),u=me(n,c);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Ve(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):vt[e].add(a))}function It(){if(!Ie){Fn(!0);for(const e in O)jt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=L(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function zn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)jt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Hn(e,t){Ie||It();function n(r){let o;if(!O[r]||!(o=kt(r)))return;const s=vt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/wt),provider:e.provider,data:t};return je(o,U+i.toString(),JSON.stringify(a))}t.lastModified&&!zn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function We(){}function Un(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Mn(e)}))}function Dn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{bt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=ve(e,c);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(p=>{f.delete(p)}),Hn(e,c)}catch(u){console.error(u)}Un(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ht()),r=Pn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,We)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:f}=c;if(f===a&&u===i)return;i=u,a=f,s.push(L(u,f));const p=o[u]||(o[u]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:f,name:p}=c,h=L(u,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[u][f].push(p))}),s.forEach(c=>{const{provider:u,prefix:f}=c;o[u][f].length&&Dn(c,o[u][f])}),t?Ln(t,r,s):We},Bn=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...D,...s});return}}n(e)})});function Qn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Vn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Qn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function ue(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function Wn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Zn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Zn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Gn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Jn=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,t){const n={...D,...e},r={...ut,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?u:a,f=xe(p,c/u)):(f=i==="auto"?c:i,p=a===null?xe(f,u/c):a==="auto"?u:a);const h={},g=(m,x)=>{Jn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Yn();function Xn(e){X=e}function Kn(){return X}function eo(e,t){const n=oe(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function to(e){return e===404}const no=(e,t,n)=>{const r=[],o=eo(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function oo(e){if(typeof e=="string"){const t=oe(e);if(t)return t.path}return"/"}const ro=(e,t,n)=>{if(!X){n("abort",424);return}let r=oo(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(to(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},so={prepare:no,send:ro};function Ze(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const fe="data-style";let Ct="";function io(e){Ct=e}function Ge(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(fe));n||(n=document.createElement("style"),n.setAttribute(fe,fe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Ct}function At(){He("",so),ht(!0);let e;try{e=window}catch{}if(e){if(It(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!ze(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Ue(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ze(n,!0),disableCache:n=>Ze(n,!1),iconExists:Cn,getIcon:An,listIcons:Tn,addIcon:gt,addCollection:ze,calculateSize:xe,buildIcon:Tt,loadIcons:Se,loadIcon:Bn,addAPIProvider:Ue,appendCustomStyle:io,_api:{getAPIConfig:oe,setAPIModule:He,sendAPIQuery:bt,setFetch:Xn,getFetch:Kn,listAPIProviders:$n}}}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const we={"background-color":"currentColor"},Mt={"background-color":"transparent"},Je={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ye={"-webkit-mask":we,mask:we,background:Mt};for(const e in Ye){const t=Ye[e];for(const n in Je)t[e+"-"+n]=Je[n]}function Xe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function uo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Pt(o,{...s,width:t.width+"",height:t.height+""}),a=lo(i),c=r.style,u={"--svg":a,width:Xe(s.width),height:Xe(s.height),...n?we:Mt};for(const f in u)c.setProperty(f,u[f]);return r}let F;function fo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function po(e){return F===void 0&&fo(),F?F.createHTML(e):e}function ho(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Pt(e.body,n);return t.innerHTML=po(o),t.firstChild}function Ke(e,t){const n=t.icon.data,r=t.customisations,o=Tt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=ho(o);break;default:i=uo(o,{...D,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function et(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function go(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();V(this,"_shadowRoot");V(this,"_state");V(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=ue(this);Ge(c,u),this._state=et({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=ue(this),f=this._state;u!==f.inline&&(f.inline=u,Ge(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ue(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Ke(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=qe(this);(c.attrMode!==f||xn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const u=Vn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});u.data?this._gotIconData(u):this._state=et(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,qe(this),this.getAttribute("mode"))}_renderIcon(c,u,f){const p=Wn(c.data.body,f),h=this._state.inline;Ke(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:f,renderedMode:p})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=At();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}go()||At();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),Nt=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Lt=e=>/^https?:\/\//.test(e),mo=e=>/^[\w-]+:[\w-]+$/.test(e),yo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Rt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>yo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function Q({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Lt(e))return d.jsx(ce,{as:"span",...r,src:e,sx:o});if(mo(e)){const s=t?.6*t+4:0;return d.jsx(ce,{as:"span",...r,sx:o,children:d.jsx("iconify-icon",{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ce,{as:"span",...r,sx:o,children:Array.from(e)[0]})):null}Q.propTypes={icon:l.string.isRequired,size:l.number,sx:l.oneOfType([l.array,l.func,l.object])};Q.defaultProps={size:null,sx:null};const bo=ot();function re({theme:e,children:t}){const n=e?ot(e):bo;return d.jsx(Ut,{theme:n,children:t})}re.propTypes={children:l.any.isRequired,theme:l.object};re.defaultProps={theme:null};const Ce=l.shape({appLogo:l.node,appName:l.string,theme:l.shape({background:l.string}),enableConnect:l.bool,enableLocale:l.bool,navigation:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object]),icon:l.string,items:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object])}))}))}),Ae=l.shape({showText:l.bool,showRole:l.bool,switchDid:l.bool,switchProfile:l.bool,switchPassport:l.bool,disableLogout:l.bool,onLogin:l.func,onLogout:l.func,onSwitchDid:l.func,onSwitchProfile:l.func,onSwitchPassport:l.func,menu:l.array,menuRender:l.func,dark:l.bool,size:l.number});var tt,nt;const K=((tt=window==null?void 0:window.blocklet)==null?void 0:tt.groupPrefix)||((nt=window==null?void 0:window.blocklet)==null?void 0:nt.prefix)||"/",xo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Lt(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},wo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),vo=e=>{if(!(e!=null&&e.length))return null;const t=wo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Pe=e=>{if(!e)return null;const t={...e};return t.theme=xo(t.theme),t.navigation=vo(ko(t.navigation)),t},ko=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Ot=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),jo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Io={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Me({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var u;return!!((c==null?void 0:c.role)||[]).includes(((u=e==null?void 0:e.user)==null?void 0:u.role)||"guest")}).map(c=>{const u=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:u}}),s=T.useRef(null),i=Dt({open:!1}),a=Bt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Qt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(_e,{icon:jo,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Vt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Wt,{onClickAway:u=>{u.preventDefault(),u.stopPropagation(),a(!1)},children:d.jsx(Zt,{...c,timeout:350,children:d.jsxs(Gt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[d.jsx(Jt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(u=>{var f;return d.jsx(Yt,{disablePadding:!0,children:d.jsxs(Xt,{href:u.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=u==null?void 0:u.component)!=null&&f.did?d.jsx(N,{component:"img",src:`${Kt}/blocklet/logo-bundle/${u.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(_e,{fontSize:50,icon:u.icon||Io,color:A.textSubtitle}),d.jsx(en,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:tn(u.title,t)})]})},u.id)})}),d.jsx(nn,{session:e,children:d.jsx(on,{variant:"outlined",fullWidth:!0,href:rn,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Me.propTypes={session:l.object.isRequired,locale:l.string,size:l.number};Me.defaultProps={locale:"en",size:24};function se({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(rt),{locale:o}=te()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Ot(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(sn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Me,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(cn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}se.propTypes={formattedBlocklet:l.object.isRequired,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae};se.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Et=()=>{const e=an();T.useEffect(()=>{e.wallet&&ln.call("arcHideTopBar","{}")},[e])},So=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var u,f;const a=i.icon?d.jsx(Q,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((u=i.link)!=null&&u.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=Nt(r),s=Rt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function Ne({meta:e,addons:t,sessionManagerProps:n,homeLink:r,theme:o,hideNavMenu:s,...i}){var b,w;Et();const{locale:a}=te()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Pe(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:u,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=So(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(se,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(re,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||u,alt:"logo"}),addons:k,...it(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(fn,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}Ne.propTypes={meta:Ce,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,homeLink:l.string,theme:l.object,hideNavMenu:l.bool};Ne.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:K,theme:null,hideNavMenu:!1};const To=P(un)`
11
+ */const lt=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...lt,...J}),pe=Object.freeze({...U,body:"",hidden:!1}),gn=Object.freeze({width:null,height:null}),ut=Object.freeze({...gn,...J});function mn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const yn=/[\s,]+/;function bn(e,t){t.split(yn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...ut,preserveAspectRatio:""};function _e(e){const t={...ft},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=mn(n("rotate","")),bn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function xn(e,t){for(const n in ft)if(e[n]!==t[n])return!0;return!1}const _=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Z(a,n)?null:a}return null},Z=(e,t)=>e?!!((e.provider===""||e.provider.match(_))&&(t&&e.prefix===""||e.prefix.match(_))&&e.name.match(_)):!1;function wn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Fe(e,t){const n=wn(e,t);for(const r in pe)r in J?r in e&&!(r in n)&&(n[r]=J[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function vn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function kn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Fe(r[a]||o[a],s)}return i(t),n.forEach(i),Fe(e,s)}function dt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=vn(e);for(const o in r){const s=r[o];s&&(t(o,kn(e,o,s)),n.push(o))}return n}const jn={provider:"",aliases:{},not_found:{},...lt};function ae(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ae(e,jn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(_)||typeof s.body!="string"||!ae(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(_)||typeof i!="string"||!n[i]&&!r[i]||!ae(s,pe))return null}return t}const Y=Object.create(null);function In(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function L(e,t){const n=Y[e]||(Y[e]=Object.create(null));return n[t]||(n[t]=In(e,t))}function ve(e,t){return pt(t)?dt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Sn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Tn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Y[o]||{})).forEach(i=>{const a=L(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ht(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=L(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function gt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=L(n.provider,n.prefix);return Sn(r,n.name,t)}function ze(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",dt(e,(s,i)=>{i&&gt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Z({provider:t,prefix:n,name:"a"}))return!1;const r=L(t,n);return!!ve(r,e)}function Cn(e){return!!H(e)}function An(e){const t=H(e);return t?{...U,...t}:null}function Pn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=L(s,i));let f;a in u.icons?f=t.loaded:i===""||u.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function mt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||mt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Nn=0;function Ln(e,t,n){const r=Nn++,o=mt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function He(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Rn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var On={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function En(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",u=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,M){const S=I!=="success";switch(h=h.filter(R=>R!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=M,b();return}if(S){f=M,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const R=e.resources.indexOf(y.resource);R!==-1&&R!==e.index&&(e.index=R)}c="completed",g.forEach(R=>{R(M)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(M,S)=>{C(I,M,S)}};h.push(I),u++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function yt(e){const t={...On,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const f=En(t,a,c,(p,h)=>{r(),u&&u(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ne=Object.create(null),q=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;q.length>0;)q.length===1||Math.random()>.5?G.push(q.shift()):G.push(q.pop());ne[""]=ke({resources:["https://api.iconify.design"].concat(G)});function De(e,t){const n=ke(t);return n===null?!1:(ne[e]=n,!0)}function oe(e){return ne[e]}function $n(){return Object.keys(ne)}function Ue(){}const le=Object.create(null);function qn(e){if(!le[e]){const t=oe(e);if(!t)return;const n=yt(t),r={config:t,redundancy:n};le[e]=r}return le[e]}function bt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),Ue;o=s.send;const i=qn(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=yt(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Ue):r.query(t,o,n)().abort}const Be="iconify2",D="iconify",xt=D+"-count",Ve=D+"-version",wt=36e5,_n=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Qe(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,xt,t.toString())}function be(e){return parseInt(me(e,xt))||0}const O={local:!0,session:!0},vt={local:new Set,session:new Set};let Ie=!1;function Fn(e){Ie=e}let W=typeof window>"u"?{}:window;function kt(e){const t=e+"Storage";try{if(W&&W[t]&&typeof W[t].length=="number")return W[t]}catch{}O[e]=!1}function jt(e,t){const n=kt(e);if(!n)return;const r=me(n,Ve);if(r!==Be){if(r){const a=be(n);for(let c=0;c<a;c++)Qe(n,D+c.toString())}je(n,Ve,Be),ye(n,0);return}const o=Math.floor(Date.now()/wt)-_n,s=a=>{const c=D+a.toString(),u=me(n,c);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Qe(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):vt[e].add(a))}function It(){if(!Ie){Fn(!0);for(const e in O)jt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=L(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function zn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)jt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Hn(e,t){Ie||It();function n(r){let o;if(!O[r]||!(o=kt(r)))return;const s=vt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/wt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(a))}t.lastModified&&!zn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function We(){}function Dn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Mn(e)}))}function Un(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{bt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=ve(e,c);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(p=>{f.delete(p)}),Hn(e,c)}catch(u){console.error(u)}Dn(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ht()),r=Pn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,We)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:f}=c;if(f===a&&u===i)return;i=u,a=f,s.push(L(u,f));const p=o[u]||(o[u]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:f,name:p}=c,h=L(u,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[u][f].push(p))}),s.forEach(c=>{const{provider:u,prefix:f}=c;o[u][f].length&&Un(c,o[u][f])}),t?Ln(t,r,s):We},Bn=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function Vn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Qn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Vn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function ue(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function Wn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Zn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Zn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Gn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Jn=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,t){const n={...U,...e},r={...ut,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?u:a,f=xe(p,c/u)):(f=i==="auto"?c:i,p=a===null?xe(f,u/c):a==="auto"?u:a);const h={},g=(m,x)=>{Jn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Yn();function Xn(e){X=e}function Kn(){return X}function eo(e,t){const n=oe(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function to(e){return e===404}const no=(e,t,n)=>{const r=[],o=eo(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function oo(e){if(typeof e=="string"){const t=oe(e);if(t)return t.path}return"/"}const ro=(e,t,n)=>{if(!X){n("abort",424);return}let r=oo(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(to(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},so={prepare:no,send:ro};function Ze(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const fe="data-style";let Ct="";function io(e){Ct=e}function Ge(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(fe));n||(n=document.createElement("style"),n.setAttribute(fe,fe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Ct}function At(){He("",so),ht(!0);let e;try{e=window}catch{}if(e){if(It(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!ze(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;De(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ze(n,!0),disableCache:n=>Ze(n,!1),iconExists:Cn,getIcon:An,listIcons:Tn,addIcon:gt,addCollection:ze,calculateSize:xe,buildIcon:Tt,loadIcons:Se,loadIcon:Bn,addAPIProvider:De,appendCustomStyle:io,_api:{getAPIConfig:oe,setAPIModule:He,sendAPIQuery:bt,setFetch:Xn,getFetch:Kn,listAPIProviders:$n}}}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const we={"background-color":"currentColor"},Mt={"background-color":"transparent"},Je={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ye={"-webkit-mask":we,mask:we,background:Mt};for(const e in Ye){const t=Ye[e];for(const n in Je)t[e+"-"+n]=Je[n]}function Xe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function uo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Pt(o,{...s,width:t.width+"",height:t.height+""}),a=lo(i),c=r.style,u={"--svg":a,width:Xe(s.width),height:Xe(s.height),...n?we:Mt};for(const f in u)c.setProperty(f,u[f]);return r}let F;function fo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function po(e){return F===void 0&&fo(),F?F.createHTML(e):e}function ho(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Pt(e.body,n);return t.innerHTML=po(o),t.firstChild}function Ke(e,t){const n=t.icon.data,r=t.customisations,o=Tt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=ho(o);break;default:i=uo(o,{...U,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function et(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function go(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();Q(this,"_shadowRoot");Q(this,"_state");Q(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=ue(this);Ge(c,u),this._state=et({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=ue(this),f=this._state;u!==f.inline&&(f.inline=u,Ge(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ue(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Ke(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=_e(this);(c.attrMode!==f||xn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const u=Qn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});u.data?this._gotIconData(u):this._state=et(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,_e(this),this.getAttribute("mode"))}_renderIcon(c,u,f){const p=Wn(c.data.body,f),h=this._state.inline;Ke(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:f,renderedMode:p})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=At();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}go()||At();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),Nt=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Lt=e=>/^https?:\/\//.test(e),mo=e=>/^[\w-]+:[\w-]+$/.test(e),yo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Rt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>yo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function V({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Lt(e))return d.jsx(ce,{as:"span",...r,src:e,sx:o});if(mo(e)){const s=t?.6*t+4:0;return d.jsx(ce,{as:"span",...r,sx:o,children:d.jsx("iconify-icon",{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ce,{as:"span",...r,sx:o,children:Array.from(e)[0]})):null}V.propTypes={icon:l.string.isRequired,size:l.number,sx:l.oneOfType([l.array,l.func,l.object])};V.defaultProps={size:null,sx:null};const bo=ot();function re({theme:e,children:t}){const n=e?ot(e):bo;return d.jsx(Dt,{theme:n,children:t})}re.propTypes={children:l.any.isRequired,theme:l.object};re.defaultProps={theme:null};const Ce=l.shape({appLogo:l.node,appName:l.string,theme:l.shape({background:l.string}),enableConnect:l.bool,enableLocale:l.bool,navigation:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object]),icon:l.string,items:l.arrayOf(l.shape({title:l.oneOfType([l.string,l.object]),link:l.oneOfType([l.string,l.object])}))}))}),Ae=l.shape({showText:l.bool,showRole:l.bool,switchDid:l.bool,switchProfile:l.bool,switchPassport:l.bool,disableLogout:l.bool,onLogin:l.func,onLogout:l.func,onSwitchDid:l.func,onSwitchProfile:l.func,onSwitchPassport:l.func,menu:l.array,menuRender:l.func,dark:l.bool,size:l.number});var tt,nt;const K=((tt=window==null?void 0:window.blocklet)==null?void 0:tt.groupPrefix)||((nt=window==null?void 0:window.blocklet)==null?void 0:nt.prefix)||"/",xo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Lt(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},wo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),vo=e=>{if(!(e!=null&&e.length))return null;const t=wo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Pe=e=>{if(!e)return null;const t={...e};return t.theme=xo(t.theme),t.navigation=vo(ko(t.navigation)),t},ko=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Ot=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),jo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Io={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Me({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var u;return!!((c==null?void 0:c.role)||[]).includes(((u=e==null?void 0:e.user)==null?void 0:u.role)||"guest")}).map(c=>{const u=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:u}}),s=T.useRef(null),i=Ut({open:!1}),a=Bt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Vt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(qe,{icon:jo,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Qt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Wt,{onClickAway:u=>{u.preventDefault(),u.stopPropagation(),a(!1)},children:d.jsx(Zt,{...c,timeout:350,children:d.jsxs(Gt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[d.jsx(Jt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(u=>{var f;return d.jsx(Yt,{disablePadding:!0,children:d.jsxs(Xt,{href:u.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=u==null?void 0:u.component)!=null&&f.did?d.jsx(N,{component:"img",src:`${Kt}/blocklet/logo-bundle/${u.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(qe,{fontSize:50,icon:u.icon||Io,color:A.textSubtitle}),d.jsx(en,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:tn(u.title,t)})]})},u.id)})}),d.jsx(nn,{session:e,children:d.jsx(on,{variant:"outlined",fullWidth:!0,href:rn,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Me.propTypes={session:l.object.isRequired,locale:l.string,size:l.number};Me.defaultProps={locale:"en",size:24};function se({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(rt),{locale:o}=te()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Ot(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(sn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Me,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(cn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}se.propTypes={formattedBlocklet:l.object.isRequired,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae};se.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Et=()=>{const e=an();T.useEffect(()=>{e.wallet&&ln.call("arcHideTopBar","{}")},[e])},So=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var u,f;const a=i.icon?d.jsx(V,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((u=i.link)!=null&&u.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=Nt(r),s=Rt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function Ne({meta:e,addons:t,sessionManagerProps:n,homeLink:r,theme:o,hideNavMenu:s,...i}){var b,w;Et();const{locale:a}=te()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Pe(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:u,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=So(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(se,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(re,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||u,alt:"logo"}),addons:k,...it(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(fn,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}Ne.propTypes={meta:Ce,addons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,homeLink:l.string,theme:l.object,hideNavMenu:l.bool};Ne.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:K,theme:null,hideNavMenu:!1};const To=P(un)`
12
12
  ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
13
13
  font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
14
14
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -41,7 +41,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
41
41
  height: 20px;
42
42
  }
43
43
  }
44
- `,qo=st(Ne,{FallbackComponent:ct});function Le({name:e,logo:t,description:n,...r}){if(!e&&!t&&!n)return null;const o=T.isValidElement(t)?t:d.jsx("img",{src:t,alt:e});return d.jsxs(Co,{...r,children:[d.jsxs("div",{children:[t&&d.jsx("div",{className:"footer-brand-logo",children:o}),e&&d.jsx("div",{className:"footer-brand-name",children:e})]}),n&&d.jsx("div",{className:"footer-brand-desc",children:n})]})}Le.propTypes={name:l.node,logo:l.node,description:l.string};Le.defaultProps={name:"",logo:"",description:""};const Co=P("div")`
44
+ `,_o=st(Ne,{FallbackComponent:ct});function Le({name:e,logo:t,description:n,...r}){if(!e&&!t&&!n)return null;const o=T.isValidElement(t)?t:d.jsx("img",{src:t,alt:e});return d.jsxs(Co,{...r,children:[d.jsxs("div",{children:[t&&d.jsx("div",{className:"footer-brand-logo",children:o}),e&&d.jsx("div",{className:"footer-brand-name",children:e})]}),n&&d.jsx("div",{className:"footer-brand-desc",children:n})]})}Le.propTypes={name:l.node,logo:l.node,description:l.string};Le.defaultProps={name:"",logo:"",description:""};const Co=P("div")`
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  font-size: 14px;
@@ -86,7 +86,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
86
86
  }
87
87
  }
88
88
  }
89
- `;function ee({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(a=>{var c;return(c=a.items)==null?void 0:c.length}),i=({label:a,link:c,icon:u,render:f,props:p})=>{let h=a;return f?h=f({label:a,link:c,props:p}):c&&(h=d.jsx("a",{href:c,"aria-label":`Footer link for ${a}`,...p,children:a})),d.jsxs(d.Fragment,{children:[u&&d.jsx(Q,{icon:u,size:20,sx:{mr:.5}}),h]})};return d.jsx(Ao,{...n,className:de(n.className,{"footer-links--grouped":s,"footer-links--flow":t}),children:d.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((a,c)=>d.jsx("span",{className:"footer-links-item",children:i(a)},c)),!t&&e.map((a,c)=>{const{items:u}=a,f=c===r;return d.jsxs("div",{className:de("footer-links-group",{"footer-links-group--active":f}),onClick:()=>o(r===c?-1:c),children:[d.jsxs("span",{className:"footer-links-item",children:[i(a),!!(u!=null&&u.length)&&d.jsx("span",{className:"footer-links-group-expand-icon",children:d.jsx(dn,{style:{transform:`rotate(${f?180:0}deg)`}})})]}),!!(u!=null&&u.length)&&d.jsx("div",{className:"footer-links-sub",children:u.map((p,h)=>d.jsx("span",{className:"footer-links-item",children:i(p)},h))})]},c)})]})})}ee.propTypes={links:l.arrayOf(l.shape({label:l.string,link:l.string,render:l.func,props:l.object})),flowLayout:l.bool};ee.defaultProps={links:[],flowLayout:!1};const Ao=P("div")`
89
+ `;function ee({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(a=>{var c;return(c=a.items)==null?void 0:c.length}),i=({label:a,link:c,icon:u,render:f,props:p})=>{let h=a;return f?h=f({label:a,link:c,props:p}):c&&(h=d.jsx("a",{href:c,"aria-label":`Footer link for ${a}`,...p,children:a})),d.jsxs(d.Fragment,{children:[u&&d.jsx(V,{icon:u,size:20,sx:{mr:.5}}),h]})};return d.jsx(Ao,{...n,className:de(n.className,{"footer-links--grouped":s,"footer-links--flow":t}),children:d.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((a,c)=>d.jsx("span",{className:"footer-links-item",children:i(a)},c)),!t&&e.map((a,c)=>{const{items:u}=a,f=c===r;return d.jsxs("div",{className:de("footer-links-group",{"footer-links-group--active":f}),onClick:()=>o(r===c?-1:c),children:[d.jsxs("span",{className:"footer-links-item",children:[i(a),!!(u!=null&&u.length)&&d.jsx("span",{className:"footer-links-group-expand-icon",children:d.jsx(dn,{style:{transform:`rotate(${f?180:0}deg)`}})})]}),!!(u!=null&&u.length)&&d.jsx("div",{className:"footer-links-sub",children:u.map((p,h)=>d.jsx("span",{className:"footer-links-item",children:i(p)},h))})]},c)})]})})}ee.propTypes={links:l.arrayOf(l.shape({label:l.string,link:l.string,render:l.func,props:l.object})),flowLayout:l.bool};ee.defaultProps={links:[],flowLayout:!1};const Ao=P("div")`
90
90
  overflow: hidden;
91
91
  color: ${e=>e.theme.palette.grey[600]};
92
92
  .footer-links-inner {
@@ -209,7 +209,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
209
209
  }
210
210
  }
211
211
  }
212
- `;function Re({items:e,...t}){const n=pn();return e!=null&&e.length?d.jsx(Po,{...t,children:e.map((r,o)=>d.jsx("a",{href:r.link,target:"_blank","aria-label":`Social media icon${r.title?` for ${r.title}`:""}`,rel:"noreferrer",children:d.jsx(Q,{icon:r.icon||r.title,sx:{bgcolor:n.palette.grey[600],color:"#fff"},size:24,component:"span"})},o))}):null}Re.propTypes={items:l.arrayOf(l.shape({icon:l.string,link:l.string}))};Re.defaultProps={items:null};const Po=P("div")`
212
+ `;function Re({items:e,...t}){const n=pn();return e!=null&&e.length?d.jsx(Po,{...t,children:e.map((r,o)=>d.jsx("a",{href:r.link,target:"_blank","aria-label":`Social media icon${r.title?` for ${r.title}`:""}`,rel:"noreferrer",children:d.jsx(V,{icon:r.icon||r.title,sx:{bgcolor:n.palette.grey[600],color:"#fff"},size:24,component:"span"})},o))}):null}Re.propTypes={items:l.arrayOf(l.shape({icon:l.string,link:l.string}))};Re.defaultProps={items:null};const Po=P("div")`
213
213
  display: inline-flex;
214
214
  flex-wrap: wrap;
215
215
  align-items: center;
@@ -260,7 +260,7 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
260
260
  && .footer-brand-logo {
261
261
  margin-right: 0;
262
262
  }
263
- `;function _t({elements:e,data:t,...n}){return d.jsx(Ro,{...n,children:d.jsxs(at,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(ie,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&d.jsxs(d.Fragment,{children:[T.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}_t.propTypes={elements:l.shape({brand:l.element,navigation:l.element,socialMedia:l.element,copyright:l.element,links:l.element}).isRequired,data:l.object.isRequired};const Ro=P("div")`
263
+ `;function qt({elements:e,data:t,...n}){return d.jsx(Ro,{...n,children:d.jsxs(at,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(ie,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&d.jsxs(d.Fragment,{children:[T.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}qt.propTypes={elements:l.shape({brand:l.element,navigation:l.element,socialMedia:l.element,copyright:l.element,links:l.element}).isRequired,data:l.object.isRequired};const Ro=P("div")`
264
264
  padding: 24px 0;
265
265
  .plain-layout-container {
266
266
  display: flex;
@@ -269,10 +269,10 @@ var zt=Object.defineProperty;var Ht=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,config
269
269
  flex-wrap: wrap;
270
270
  gap: 8px;
271
271
  }
272
- `,qt=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:_t},{name:"standard",support:()=>!0,component:$t}],Oo=qt.reduce((e,t)=>({...e,[t.name]:t}),{});function Ee(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...a}=e,c=()=>t?d.jsx(Le,{...t}):null,u=()=>n!=null&&n.length?d.jsx(ee,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Re,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Oe,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(ee,{flowLayout:!0,links:s}):null,g={brand:c(),navigation:u(),socialMedia:f(),copyright:p(),links:h()};let m=null;if(i==="auto"?m=qt.find(k=>k.support(g,e)).component:m=(x=Oo[i])==null?void 0:x.component,!m)throw new Error(`layout ${i} is not supported.`);return d.jsxs(N,{position:"relative",...a,children:[d.jsx(m,{elements:g,data:e}),d.jsx(N,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}Ee.propTypes={brand:l.shape({name:l.node,description:l.string,logo:l.node}),navigation:l.arrayOf(l.shape({label:l.node,link:l.string})),socialMedia:l.arrayOf(l.shape({icon:l.node,link:l.string})),copyright:l.shape({owner:l.string,year:l.oneOfType([l.string,l.number])}),links:l.arrayOf(l.shape({label:l.node,link:l.string})),layout:l.oneOf(["auto","standard","plain"])};Ee.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function $e({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=te()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Pe(b)}catch(w){return console.error("Failed to format blocklet info",w,b),b}},[e]);if(!o.appName)return null;const{appLogo:s,appLogoRect:i,appName:a,appDescription:c,description:u,theme:f,copyright:p}=o,h={footerNav:$((m=o==null?void 0:o.navigation)==null?void 0:m.footer,r)||[],socialMedia:$((x=o==null?void 0:o.navigation)==null?void 0:x.social,r)||[],links:$((v=o==null?void 0:o.navigation)==null?void 0:v.bottom,r)||[]},g={brand:{name:a,description:c||u,logo:i||s},navigation:E(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:p,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return d.jsx(re,{theme:t,children:d.jsx(Eo,{...g,...it(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}$e.propTypes={meta:Ce,theme:l.object};$e.defaultProps={meta:{},theme:null};const Eo=P(Ee)`
272
+ `,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:qt},{name:"standard",support:()=>!0,component:$t}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function Ee(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...a}=e,c=()=>t?d.jsx(Le,{...t}):null,u=()=>n!=null&&n.length?d.jsx(ee,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Re,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Oe,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(ee,{flowLayout:!0,links:s}):null,g={brand:c(),navigation:u(),socialMedia:f(),copyright:p(),links:h()};let m=null;if(i==="auto"?m=_t.find(k=>k.support(g,e)).component:m=(x=Oo[i])==null?void 0:x.component,!m)throw new Error(`layout ${i} is not supported.`);return d.jsxs(N,{position:"relative",...a,children:[d.jsx(m,{elements:g,data:e}),d.jsx(N,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}Ee.propTypes={brand:l.shape({name:l.node,description:l.string,logo:l.node}),navigation:l.arrayOf(l.shape({label:l.node,link:l.string})),socialMedia:l.arrayOf(l.shape({icon:l.node,link:l.string})),copyright:l.shape({owner:l.string,year:l.oneOfType([l.string,l.number])}),links:l.arrayOf(l.shape({label:l.node,link:l.string})),layout:l.oneOf(["auto","standard","plain"])};Ee.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function $e({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=te()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Pe(b)}catch(w){return console.error("Failed to format blocklet info",w,b),b}},[e]);if(!o.appName)return null;const{appLogo:s,appLogoRect:i,appName:a,appDescription:c,description:u,theme:f,copyright:p}=o,h={footerNav:$((m=o==null?void 0:o.navigation)==null?void 0:m.footer,r)||[],socialMedia:$((x=o==null?void 0:o.navigation)==null?void 0:x.social,r)||[],links:$((v=o==null?void 0:o.navigation)==null?void 0:v.bottom,r)||[]},g={brand:{name:a,description:c||u,logo:i||s},navigation:E(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:p,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return d.jsx(re,{theme:t,children:d.jsx(Eo,{...g,...it(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}$e.propTypes={meta:Ce,theme:l.object};$e.defaultProps={meta:{},theme:null};const Eo=P(Ee)`
273
273
  ${({$bordered:e})=>`border-top: 1px solid ${e?A.strokeSep:"#eee"};`}
274
274
  color: ${e=>e.theme.palette.grey[600]};
275
275
  ${({$bgcolor:e})=>e&&`background-color: ${e};`}
276
276
  font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
277
277
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
278
- `,Fo=st($e,{FallbackComponent:ct});function Ft({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Et();const a=T.useContext(rt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,u=c==null?void 0:c.role,{locale:f}=te()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Pe(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var M;let j=$((M=p==null?void 0:p.navigation)==null?void 0:M.dashboard,f)||[];j=Ot(j,u),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=Nt(j).filter(S=>!!S.url),I=Rt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,u]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(se,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(hn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:K,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}Ft.propTypes={meta:Ce,fallbackUrl:l.string,invalidPathFallback:l.func,headerAddons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,links:l.oneOfType([l.array,l.func])};Ft.defaultProps={meta:{},fallbackUrl:K,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=K}},links:[]};export{Ft as D,Fo as F,qo as H};
278
+ `,Fo=st($e,{FallbackComponent:ct});function Ft({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Et();const a=T.useContext(rt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,u=c==null?void 0:c.role,{locale:f}=te()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Pe(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var M;let j=$((M=p==null?void 0:p.navigation)==null?void 0:M.dashboard,f)||[];j=Ot(j,u),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=Nt(j).filter(S=>!!S.url),I=Rt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,u]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(se,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(hn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:K,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}Ft.propTypes={meta:Ce,fallbackUrl:l.string,invalidPathFallback:l.func,headerAddons:l.oneOfType([l.func,l.node]),sessionManagerProps:Ae,links:l.oneOfType([l.array,l.func])};Ft.defaultProps={meta:{},fallbackUrl:K,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=K}},links:[]};export{Ft as D,Fo as F,_o as H};
@@ -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-CkzoIPXc.js";import{R as r}from"./index-CaSOHyUU.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 +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-CkzoIPXc.js";import{a as X}from"./isEqual-DQGyAi5I.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};
@@ -0,0 +1,58 @@
1
+ import{aK as S,aL as D,j as e,bl as _,r as p,f as O,m as u,aX as U,aY as E,U as F,cd as V,B as $,C as k,bd as K,a7 as X,a8 as R,N as Y,ce as w,cf as A,cg as L,a9 as I,a6 as P,ax as T,a2 as M,O as G,at as H,n as J,P as i,o as Q,ch as W}from"./index-CkzoIPXc.js";import{f as Z}from"./index-D9k2I5J1.js";import{P as ee}from"./Pagination-Cu8asTOi.js";import"./LastPage-b5Zg6Pue.js";var x={},te=D;Object.defineProperty(x,"__esModule",{value:!0});var g=x.default=void 0,ie=te(S()),ae=e;g=x.default=(0,ie.default)((0,ae.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function h({api:a,paging:o,loading:c,notifications:s,updateNotifications:r,teamDid:j}){const{inService:d}=_(),[m,q]=p.useState(!0),[y,b]=p.useState(!1),{t:n,locale:N}=p.useContext(O),z=async()=>{b(!0);const t=s.filter(l=>l.read===!1).map(l=>l.id).join(",");d?await a.readBlockletNotifications({input:{id:t,teamDid:j}}):await a.readNotifications({input:{id:t}}),r(),b(!1)},v=async t=>{d?await a.readBlockletNotifications({input:{id:t,teamDid:j}}):await a.readNotifications({input:{id:t}}),r()},f=m?s:s.filter(t=>t.read===!1),B=s.filter(t=>t.read===!1).length>0,C=t=>e.jsxs("div",{className:"title",children:[t.title," ",e.jsx("span",{className:"time-ago",title:H(t.createdAt,N),children:Z(new Date(t.createdAt),Q(N))})]});return e.jsxs(se,{children:[e.jsxs(u,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[n("notification.title"),e.jsxs(u,{component:"span",className:"notification-actions",children:[e.jsx(U,{control:e.jsx(E,{checked:m,onChange:()=>q(!m),name:"showRead",color:"primary"}),label:n("notification.showRead")}),e.jsx(F,{permission:d?"":"mutate_notification",role:d?V:[],children:B&&e.jsxs($,{disabled:y,onClick:z,className:"",children:[y&&e.jsx(k,{size:16,style:{marginRight:"1em"}}),n("notification.markAllAsRead")]})})]})]}),e.jsx(K,{}),e.jsxs(X,{className:"notification-list",children:[c&&e.jsx(k,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),f.length===0&&e.jsx(u,{component:"p",variant:"body1",className:"notification-tip",children:n("notification.empty")}),f.length>0&&f.map(t=>t.action?e.jsxs(R,{component:Y,to:t.action,alignItems:"flex-start",disabled:t.read,children:[e.jsx(w,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(A,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(L,{className:"notification-tag",status:t.severity})]})}),e.jsx(I,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),t.read===!1&&e.jsx(P,{children:e.jsx(T,{title:n("notification.markAsRead"),children:e.jsx(M,{edge:"end","aria-label":"delete",onClick:()=>v(t.id),size:"large",children:e.jsx(g,{})})})})]},t.id):e.jsxs(R,{alignItems:"flex-start",disabled:t.read,children:[e.jsx(w,{className:"list-item-avatar",children:e.jsxs(e.Fragment,{children:[e.jsx(A,{children:t.entityType.substr(0,1).toUpperCase()}),e.jsx(L,{className:"notification-tag",status:t.severity})]})}),e.jsx(I,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:C(t),secondary:t.description}),t.read===!1&&e.jsx(P,{children:e.jsx(T,{title:n("notification.markAsRead"),children:e.jsx(M,{edge:"end","aria-label":"delete",onClick:()=>v(t.id),size:"large",children:e.jsx(g,{})})})})]},t.id))]}),!!f.length&&o.pageCount>1&&e.jsx(G,{mt:2,display:"flex",justifyContent:"flex-end",children:e.jsx(ee,{disabled:c,count:o.pageCount,page:o.page,onChange:(t,l)=>{r({page:l})}})})]})}const se=J.div`
2
+ min-height: 60vh;
3
+
4
+ .page-header {
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+
9
+ .notification-actions {
10
+ width: auto;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ }
14
+ }
15
+
16
+ .page-content {
17
+ margin-top: 16px;
18
+ }
19
+
20
+ .list-item-avatar {
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ min-width: 80px;
25
+
26
+ .notification-tag {
27
+ margin-top: 4px;
28
+ }
29
+ }
30
+
31
+ .MuiListItem-root:not(.Mui-disabled) {
32
+ .MuiAvatar-root {
33
+ background: ${a=>a.theme.palette.primary.light};
34
+ }
35
+ }
36
+
37
+ .list-item-text {
38
+ .title {
39
+ display: flex;
40
+ align-items: center;
41
+ .time-ago {
42
+ background: #bdbdbd;
43
+ font-size: 11px;
44
+ margin-left: 8px;
45
+ color: #f7f8f8;
46
+ border-radius: 3px;
47
+ padding: 1px 4px;
48
+ }
49
+ }
50
+ }
51
+ .Mui-disabled .list-item-text .title .time-ago {
52
+ background: #666;
53
+ }
54
+
55
+ .list-item-secondary-text {
56
+ word-break: break-word;
57
+ }
58
+ `;h.propTypes={loading:i.bool,paging:i.objectOf(i.any),api:i.shape({readNotifications:i.func.isRequired,readBlockletNotifications:i.func.isRequired}).isRequired,notifications:i.arrayOf(i.shape({id:i.string,read:i.bool,entityType:i.string,title:i.string,createdAt:i.string,description:i.string}).isRequired).isRequired,updateNotifications:i.func.isRequired,teamDid:i.string};h.defaultProps={paging:!1,loading:!1,teamDid:""};function ce(){const{api:a,data:o,paging:c,refresh:s,loading:r}=W();return e.jsx(h,{paging:c,loading:r,api:a,notifications:o,updateNotifications:s})}export{ce as default};