@abtnode/webapp 1.16.47-beta-20250717-221700-2d886a18 → 1.16.47-beta-20250721-025348-9ccb2d62

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 (185) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CY5F-qOY.js → AdapterDayjs-BFw8WrXl.js} +1 -1
  4. package/dist/assets/{Add-C-JGR7WX.js → Add-3_OvaFrP.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BS9tp8MS.js +1 -0
  6. package/dist/assets/{Autocomplete-BUKgT1H8.js → Autocomplete-8ICuj-KH.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BHAIleTC.js → Breadcrumbs-BGvPLgGW.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BpbIaw4r.js → ButtonGroup-C0aG4xOT.js} +1 -1
  9. package/dist/assets/{CSSTransition-CEGsXFa4.js → CSSTransition-KO9L5iBp.js} +1 -1
  10. package/dist/assets/{CallMerge-BG9sfWb7.js → CallMerge-F8oCB8nE.js} +1 -1
  11. package/dist/assets/{CardContent-Brh_eQ9r.js → CardContent-Cqmek5wY.js} +1 -1
  12. package/dist/assets/{ChevronLeft-mBfiaSS1.js → ChevronLeft-BPyHvtRf.js} +1 -1
  13. package/dist/assets/{ChevronRight-BhZK0m02.js → ChevronRight-BgqwQ3It.js} +1 -1
  14. package/dist/assets/{Clear-BgmnunuK.js → Clear-DMvY-1OH.js} +1 -1
  15. package/dist/assets/{DeleteOutline-CMvAWFzN.js → DeleteOutline-qcbzQjhi.js} +1 -1
  16. package/dist/assets/{Done-KBM5PYQe.js → Done-BowXQslF.js} +1 -1
  17. package/dist/assets/{Edit-qr4VAp95.js → Edit-BQ0nYDQE.js} +1 -1
  18. package/dist/assets/{ErrorOutline-DrbqnFJ2.js → ErrorOutline-DAMAJ1cH.js} +1 -1
  19. package/dist/assets/{FilterList-C5IPtX8B.js → FilterList-BZwgYvWc.js} +1 -1
  20. package/dist/assets/{Google-BISAgJ7z.js → Google-BbDWC590.js} +1 -1
  21. package/dist/assets/{HelpOutline-C5r6R3H8.js → HelpOutline-Dq1Jw2rR.js} +1 -1
  22. package/dist/assets/{Launch-DirijHL1.js → Launch-DXqdimna.js} +1 -1
  23. package/dist/assets/{Link-RiuSe0e2.js → Link-BRz6zIZp.js} +1 -1
  24. package/dist/assets/{ListItemButton-G0gHUcJH.js → ListItemButton-BQgIuXFI.js} +1 -1
  25. package/dist/assets/{ListSubheader-DA2-DVZb.js → ListSubheader-BOpeFxej.js} +1 -1
  26. package/dist/assets/{LoadingButton-zyVJPqWL.js → LoadingButton-BnL-MknW.js} +1 -1
  27. package/dist/assets/{MoreVert-_f7HjK7U.js → MoreVert-L8j8_EPz.js} +1 -1
  28. package/dist/assets/{OpenInNew-B8Hi9-Aa.js → OpenInNew-CNDlD7xM.js} +1 -1
  29. package/dist/assets/{Refresh-D5HBHck5.js → Refresh-DfIM0DIk.js} +1 -1
  30. package/dist/assets/{Search-BJ29HaSB.js → Search-DhxCIV3r.js} +1 -1
  31. package/dist/assets/{Slider-8UJs62jS.js → Slider-ClGXzRor.js} +1 -1
  32. package/dist/assets/{Stepper-DFkDVDUN.js → Stepper-JT4HRwKe.js} +1 -1
  33. package/dist/assets/{Switch-B-0geYaG.js → Switch-MO_QYoYi.js} +1 -1
  34. package/dist/assets/{TableSearch-B-T4xf1Y.js → TableSearch-DFzxfreZ.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-D0lgwkEn.js → ToggleButtonGroup-ByMjc-sd.js} +1 -1
  36. package/dist/assets/{Verified-D9QmxLSp.js → Verified-CsK6wp5l.js} +1 -1
  37. package/dist/assets/{VerifiedUser-W0URZfI1.js → VerifiedUser-CMhuvwNe.js} +1 -1
  38. package/dist/assets/{ViewList-CBW6lkQ9.js → ViewList-Duo-FkyC.js} +1 -1
  39. package/dist/assets/{_createAggregator-B7uAY9MP.js → _createAggregator-jhHxKsby.js} +1 -1
  40. package/dist/assets/{actions-J2QPqEIR.js → actions-CZaWtcNS.js} +1 -1
  41. package/dist/assets/{actions-Bqwe_eeJ.js → actions-qwmjFYBC.js} +1 -1
  42. package/dist/assets/{agreement-C3fURNDy.js → agreement-D5zRURFk.js} +1 -1
  43. package/dist/assets/api-BgPXZvcj.js +1 -0
  44. package/dist/assets/{appearance-BkUNpZVk.js → appearance-D0pksf5H.js} +1 -1
  45. package/dist/assets/{audit-logs-CgyzZo8L.js → audit-logs-CDjWOFeM.js} +1 -1
  46. package/dist/assets/{base-chart-CzIZI7kP.js → base-chart-CluI6A_u.js} +1 -1
  47. package/dist/assets/{blocklet-CxgGBUvX.js → blocklet-DmmVfj87.js} +1 -1
  48. package/dist/assets/{chain-C1BJFkRR.js → chain-DjRxb2FX.js} +1 -1
  49. package/dist/assets/{click-to-copy-BJD4pP2S.js → click-to-copy-C9lDYNLy.js} +1 -1
  50. package/dist/assets/client-DdpjvpuA.js +1 -0
  51. package/dist/assets/cloneDeep-BrIshN9W.js +1 -0
  52. package/dist/assets/{collapse-BChJU-xb.js → collapse-BQKIAHAH.js} +1 -1
  53. package/dist/assets/{config-navigation-ILBEBfla.js → config-navigation-CQIu6H-p.js} +3 -3
  54. package/dist/assets/{connect-to-D2f0TQaC.js → connect-to-DHpXpfiO.js} +1 -1
  55. package/dist/assets/{cssMode-Cq_mmr8j.js → cssMode-BBItj1D2.js} +1 -1
  56. package/dist/assets/{delete-confirm-CwBSbfmS.js → delete-confirm-BMlllWsg.js} +1 -1
  57. package/dist/assets/{depsEqual-DMHly6fz.js → depsEqual-CgwmaLj6.js} +1 -1
  58. package/dist/assets/{detail-DIUSlB-S.js → detail-C2QPTAoo.js} +3 -3
  59. package/dist/assets/{domains-DBt_qdYG.js → domains-Dl1bYLcB.js} +1 -1
  60. package/dist/assets/{download-BYyG4swb.js → download-BDQD3mNs.js} +1 -1
  61. package/dist/assets/emotion-cache.browser.esm-B0z8ZzTf.js +1 -0
  62. package/dist/assets/engine-DUBYjcGZ.js +1 -0
  63. package/dist/assets/{freemarker2-YNWsYPEX.js → freemarker2-CxtHcqRE.js} +1 -1
  64. package/dist/assets/{get-safe-url-D5Xp3EJt.js → get-safe-url-DjCQU-uR.js} +1 -1
  65. package/dist/assets/getValidReactChildren--K7J75d3.js +1 -0
  66. package/dist/assets/{graphqlMode-CkZj1Pkv.js → graphqlMode-CbjQQAvT.js} +2 -2
  67. package/dist/assets/{handlebars-CIYh89DK.js → handlebars-C66BpWqS.js} +1 -1
  68. package/dist/assets/{html-CzHkpzUZ.js → html-CcZE7wWD.js} +1 -1
  69. package/dist/assets/{htmlMode-BdxWzg-L.js → htmlMode-Co-CiFip.js} +1 -1
  70. package/dist/assets/{iframe-CKLYV5eL.js → iframe-CDG05FDN.js} +1 -1
  71. package/dist/assets/{index-C6eCVPuA.js → index-2lVCCQPq.js} +1 -1
  72. package/dist/assets/{index-DkQMdkDJ.js → index-7JYHSDyg.js} +1 -1
  73. package/dist/assets/{index-CrTw1v2G.js → index-Aeyu2TZE.js} +1 -1
  74. package/dist/assets/{index-BhwBVrhP.js → index-B78o0tBY.js} +1 -1
  75. package/dist/assets/{index-ukCxqYQ3.js → index-B9sYADXK.js} +3 -3
  76. package/dist/assets/{index-BTwjaad9.js → index-BDbOUXLI.js} +1 -1
  77. package/dist/assets/{index-D18QOAa2.js → index-BKWGpyEb.js} +1 -1
  78. package/dist/assets/{index-Cwf3bf57.js → index-BMSZcMWl.js} +1 -1
  79. package/dist/assets/{index-D1w_phcb.js → index-BMW6t5La.js} +3 -3
  80. package/dist/assets/{index-CViKQyIh.js → index-B_5pYJ4-.js} +1 -1
  81. package/dist/assets/{index-DNG5izj4.js → index-Bdl1ybk6.js} +1 -1
  82. package/dist/assets/{index-luUossMM.js → index-BeHzPQZj.js} +1 -1
  83. package/dist/assets/{index-CvywAZEv.js → index-Bf6iPAUC.js} +1 -1
  84. package/dist/assets/{index-C_L0YUuS.js → index-Bh_lBdo5.js} +1 -1
  85. package/dist/assets/{index-CMJ6xnSL.js → index-BnfGPxgW.js} +3 -3
  86. package/dist/assets/{index-DP68LpSl.js → index-By2wVIz8.js} +1 -1
  87. package/dist/assets/{index-ipzNz7Ju.js → index-C3kcppBt.js} +3 -3
  88. package/dist/assets/{index-_8oRZcHP.js → index-C4mOfCm_.js} +104 -105
  89. package/dist/assets/{index-D2I55BMO.js → index-C8N7W-i9.js} +1 -1
  90. package/dist/assets/{index-D2GtEPw5.js → index-CHuu0Peu.js} +1 -1
  91. package/dist/assets/{index-CJwX-OYV.js → index-COm9hgx_.js} +1 -1
  92. package/dist/assets/{index-Cul8PQ9A.js → index-COoCcBTs.js} +1 -1
  93. package/dist/assets/{index-BCocEWMy.js → index-CWitGXiK.js} +1 -1
  94. package/dist/assets/{index-C3hJRnJE.js → index-CgrNfQPb.js} +1 -1
  95. package/dist/assets/{index-C_Wb23_l.js → index-Ci4hOeJE.js} +9 -9
  96. package/dist/assets/{index-DUinRQw4.js → index-CrmgQXdO.js} +1 -1
  97. package/dist/assets/{index-DJ3LOVXA.js → index-DMDr-aHX.js} +1 -1
  98. package/dist/assets/{index-B8TH6W7H.js → index-DOUb8Oty.js} +1 -1
  99. package/dist/assets/{index-BkktSh-D.js → index-D_0TT77X.js} +1 -1
  100. package/dist/assets/{index-Bnzx_d6J.js → index-DcEAUxTy.js} +1 -1
  101. package/dist/assets/{index-BoCWZ9Ig.js → index-DiXzeHiX.js} +1 -1
  102. package/dist/assets/{index-CI3XNytL.js → index-DkZ-t39O.js} +1 -1
  103. package/dist/assets/{index-CSdvRvdf.js → index-Dl5cdLQr.js} +1 -1
  104. package/dist/assets/{index-DWevfoMr.js → index-Dn78lnTO.js} +1 -1
  105. package/dist/assets/{index-CNNYI2ZJ.js → index-Dogk0bXr.js} +1 -1
  106. package/dist/assets/{index-FGF_OyEg.js → index-DqEym-za.js} +1 -1
  107. package/dist/assets/{index-DRXB64XT.js → index-DwRrLRJc.js} +1 -1
  108. package/dist/assets/{index-WCnj110a.js → index-EO2zxFAb.js} +1 -1
  109. package/dist/assets/{index-aDhSn6Mb.js → index-IN1tBuCi.js} +2 -2
  110. package/dist/assets/index-P46fTVgx.js +1 -0
  111. package/dist/assets/{index-gcsLojkd.js → index-PpgfbTC9.js} +1 -1
  112. package/dist/assets/{index-CF-9tLrO.js → index-TN8GUnjq.js} +1 -1
  113. package/dist/assets/{index-10qlFG48.js → index-Zbp1kEfl.js} +1 -1
  114. package/dist/assets/{index-DyuzoqrM.js → index-aHwqwLCS.js} +1 -1
  115. package/dist/assets/{index-DSEgIocn.js → index-aTfhQ_l6.js} +1 -1
  116. package/dist/assets/{index-hcJKr5Kv.js → index-quoltoEL.js} +1 -1
  117. package/dist/assets/{index-UlSeBo7J.js → index-wt9OBpRJ.js} +1 -1
  118. package/dist/assets/{index.esm-BbCeLnEG.js → index.esm-DNwQmbRZ.js} +1 -1
  119. package/dist/assets/{install-from-url-Cssyl_EF.js → install-from-url-n_csAYU3.js} +1 -1
  120. package/dist/assets/{invitation-BbzPu4Vz.js → invitation-CJpjGArf.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-xOcqHaZi.js → is-path-prefix-equal-H7FSCLy3.js} +1 -1
  122. package/dist/assets/{item-CA0AhoeU.js → item-DB4nd60x.js} +1 -1
  123. package/dist/assets/{javascript-iz35kkfv.js → javascript-CRAJjnJB.js} +1 -1
  124. package/dist/assets/{jsonMode-DTMWRjiz.js → jsonMode-JVhrkI3w.js} +1 -1
  125. package/dist/assets/{liquid-D_2oxmDK.js → liquid-pnBuAzEz.js} +1 -1
  126. package/dist/assets/{list-header-rZDwQy84.js → list-header-BFKavQgG.js} +1 -1
  127. package/dist/assets/{log-UVsl0ja-.js → log-C7JSHIt2.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-D-ZQShTC.js → lottie-react.esm-D1pS2-gK.js} +1 -1
  129. package/dist/assets/{mdx-9l6bUhTM.js → mdx-DHtsrRy5.js} +1 -1
  130. package/dist/assets/{memory-Bs7i-RSl.js → memory-oRFPonQg.js} +1 -1
  131. package/dist/assets/{metric-Bhfho-F8.js → metric-nsIZMw3V.js} +1 -1
  132. package/dist/assets/omit-B4Sq5gLR.js +1 -0
  133. package/dist/assets/{overview-Dpbkcjeq.js → overview-BP2YMbQO.js} +1 -1
  134. package/dist/assets/{permission-CjJ84P8d.js → permission-CAwWHgKo.js} +1 -1
  135. package/dist/assets/{preference-J3dyippO.js → preference-D2ak1a33.js} +3 -3
  136. package/dist/assets/{python-D62k2JIN.js → python-DXO2W9B9.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-C1oPRTDZ.js → raf-schd.esm-ClEAlDQA.js} +1 -1
  138. package/dist/assets/{razor-B8qk-YVu.js → razor-CKVf_K1K.js} +1 -1
  139. package/dist/assets/{rotate-session-key-D91iBAY4.js → rotate-session-key-IpOZAFU_.js} +1 -1
  140. package/dist/assets/{runtime-tnq2Lk6e.js → runtime-K5Ixf2xG.js} +1 -1
  141. package/dist/assets/schema-Bp4DleAG.js +1 -0
  142. package/dist/assets/sdk-Bvs7QtVW.js +1 -0
  143. package/dist/assets/{service-WuUIzS1n.js → service-De8RUcAB.js} +1 -1
  144. package/dist/assets/{shorten-label-Daz_9q6V.js → shorten-label-BB7eBTVn.js} +1 -1
  145. package/dist/assets/{simple-select-DWPU6K2J.js → simple-select-DuFdntI_.js} +1 -1
  146. package/dist/assets/{spaces-GphSy-vT.js → spaces-DboV6EBE.js} +1 -1
  147. package/dist/assets/{status-8_e4qfZ_.js → status-D0iiky_Q.js} +1 -1
  148. package/dist/assets/{status-RQRQdpaf.js → status-YKpSQSD8.js} +1 -1
  149. package/dist/assets/{switch-control-CKSbA6D9.js → switch-control-BvELbAm3.js} +1 -1
  150. package/dist/assets/{table-icons-oE5i83sx.js → table-icons-BJW-SCQe.js} +1 -1
  151. package/dist/assets/{team-CSpa5Bju.js → team-D7M0Ye34.js} +1 -1
  152. package/dist/assets/{toLower-CN0NnjsS.js → toLower-aE-9IHcm.js} +1 -1
  153. package/dist/assets/toUpper-Bb2HGHT9.js +1 -0
  154. package/dist/assets/{traffic-C_abMGz2.js → traffic-BA1sKvQV.js} +1 -1
  155. package/dist/assets/{tsMode-DPBq0xUc.js → tsMode-cBsNNznm.js} +1 -1
  156. package/dist/assets/{typescript-EAZJ11vd.js → typescript-D0SX8RzB.js} +1 -1
  157. package/dist/assets/{url-evaluation-C9ybfEbS.js → url-evaluation-CNPtf5Sl.js} +1 -1
  158. package/dist/assets/{url-join-B-Ittgpb.js → url-join-BBoInSaA.js} +1 -1
  159. package/dist/assets/{use-mobile-CaA0LsNn.js → use-mobile-B1UpSPIX.js} +1 -1
  160. package/dist/assets/{use-mobile-CFs8fmsh.js → use-mobile-Cebu3wjw.js} +1 -1
  161. package/dist/assets/{useAsync-BKfoGger.js → useAsync-CBexZUTy.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-NHLe7YO4.js → useAsyncRetry-CKBioJX5.js} +1 -1
  163. package/dist/assets/{useLocalStorage-BEs66pts.js → useLocalStorage-BTzsh1Lj.js} +1 -1
  164. package/dist/assets/{useThemeProps-DXk_HLKM.js → useThemeProps-d3GR3gue.js} +1 -1
  165. package/dist/assets/{util-Cbf8gAh_.js → util-DXUxNwaT.js} +1 -1
  166. package/dist/assets/{wait-container-C4klN3Th.js → wait-container-2gTMdAkJ.js} +1 -1
  167. package/dist/assets/{without-wallet-DaUHusY5.js → without-wallet-CIoRe4lL.js} +1 -1
  168. package/dist/assets/{wrap-locale-5NaChz5C.js → wrap-locale-3LS80w24.js} +1 -1
  169. package/dist/assets/{xml-ZkmPNLNd.js → xml-BUC5O1uY.js} +1 -1
  170. package/dist/assets/{yaml-CuZzQDBi.js → yaml-DiA-8wK9.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/ArrowDropDown-CFSWcN3J.js +0 -1
  175. package/dist/assets/api-Dksjqhj9.js +0 -1
  176. package/dist/assets/client-D1yTa59W.js +0 -1
  177. package/dist/assets/cloneDeep-DymekVbc.js +0 -1
  178. package/dist/assets/emotion-cache.browser.esm-2hka6KsY.js +0 -1
  179. package/dist/assets/engine-IPaOGJ95.js +0 -1
  180. package/dist/assets/getValidReactChildren-Cq-L2XG5.js +0 -1
  181. package/dist/assets/index-ZXKsu0i-.js +0 -1
  182. package/dist/assets/omit-DOuoJ5G3.js +0 -1
  183. package/dist/assets/schema-C2mGuU4x.js +0 -1
  184. package/dist/assets/sdk-fTtyOYPc.js +0 -1
  185. package/dist/assets/toUpper-Dul2guy6.js +0 -1
@@ -1 +1 @@
1
- import{m as k,f as w,av as m,j as l,fA as M,o as e,k as L,N as P}from"./index-_8oRZcHP.js";import{B as A}from"./base-chart-CzIZI7kP.js";import{x as E}from"./index-DRYJ0xIl.js";function R({title:h="",cpus:b=[],currentLoad:r=0,history:c=[],empty:v=null,onHover:g=()=>{},hoverIndex:T=null}){const{t:x,locale:d}=k(),t=w(),o=`${h||x("common.cpu")} (${Math.floor(r||0)}%)`,f=100,a=80,p=y=>`${y}%`,$=[{max:a,color:m(t.palette.primary.main,t.palette.mode==="dark"?.15:.08)},{min:a,max:100,color:m(t.palette.warning.main,t.palette.mode==="dark"?.18:.12)},{min:100,color:m(t.palette.error.main,t.palette.mode==="dark"?.25:.18)}],i={silent:!0,symbol:["none","none"],data:[{yAxis:100,lineStyle:{color:t.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${p(100)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:a,lineStyle:{color:t.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${p(a)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2}}]},s=l.jsx("span",{children:`${x("system.cores")}: ${b?.length||0}`}),u=y=>M(y,"HH:mm",d);return l.jsx(A,{title:o,total:f,history:c,valueFn:p,xAxisFormat:u,visualMapPieces:$,markLineData:i,extraInfo:s,empty:v,onHover:g,hoverIndex:T})}R.propTypes={title:e.string,cpus:e.array,currentLoad:e.number,history:e.array,empty:e.node,onHover:e.func,hoverIndex:e.number};function D({instanceCount:h=null,title:b="",total:r=null,used:c=null,history:v=[],empty:g=null,onHover:T=()=>{},hoverIndex:x=null}){const{t:d,locale:t}=k(),o=w(),f=!!r,a=r-c,p=f?`(${L(c)}, ${Math.floor(c/r*100)}%)`:"",$=`${b||d("common.memory")} ${p}`,i=Math.ceil(r*.8),s=n=>E(n,{short:!0,iec:!0}),u=[];h&&u.push({title:d("system.instances"),metric:h}),f&&u.push({title:d("system.free"),metric:s(a)});const y=[{max:i,color:m(o.palette.primary.main,o.palette.mode==="dark"?.15:.08)},{min:i,max:r,color:m(o.palette.warning.main,o.palette.mode==="dark"?.18:.12)},{min:r,color:m(o.palette.error.main,o.palette.mode==="dark"?.25:.18)}],F={silent:!0,symbol:["none","none"],data:[{yAxis:r,lineStyle:{color:o.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${s(r)}`,position:"insideEndTop",color:o.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:i,lineStyle:{color:o.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${s(i)}`,position:"insideEndTop",color:o.palette.text.secondary,padding:[2,4],borderRadius:2}}]},I=l.jsx(l.Fragment,{children:u.map((n,j)=>l.jsxs(P,{sx:{marginLeft:j===0?0:1,display:"inline-flex"},children:[n.title,": ",n.metric]},n.title))}),H=n=>M(n,"HH:mm",t);return l.jsx(A,{title:$,total:r,history:v,valueFn:s,xAxisFormat:H,visualMapPieces:y,markLineData:F,extraInfo:I,empty:g,onHover:T,hoverIndex:x})}D.propTypes={title:e.string,instanceCount:e.number,total:e.number,used:e.number,history:e.array,empty:e.node,onHover:e.func,hoverIndex:e.number};export{R as C,D as M};
1
+ import{m as k,f as w,av as m,j as l,fA as M,o as e,k as L,N as P}from"./index-C4mOfCm_.js";import{B as A}from"./base-chart-CluI6A_u.js";import{x as E}from"./index-DRYJ0xIl.js";function R({title:h="",cpus:b=[],currentLoad:r=0,history:c=[],empty:v=null,onHover:g=()=>{},hoverIndex:T=null}){const{t:x,locale:d}=k(),t=w(),o=`${h||x("common.cpu")} (${Math.floor(r||0)}%)`,f=100,a=80,p=y=>`${y}%`,$=[{max:a,color:m(t.palette.primary.main,t.palette.mode==="dark"?.15:.08)},{min:a,max:100,color:m(t.palette.warning.main,t.palette.mode==="dark"?.18:.12)},{min:100,color:m(t.palette.error.main,t.palette.mode==="dark"?.25:.18)}],i={silent:!0,symbol:["none","none"],data:[{yAxis:100,lineStyle:{color:t.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${p(100)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:a,lineStyle:{color:t.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${p(a)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2}}]},s=l.jsx("span",{children:`${x("system.cores")}: ${b?.length||0}`}),u=y=>M(y,"HH:mm",d);return l.jsx(A,{title:o,total:f,history:c,valueFn:p,xAxisFormat:u,visualMapPieces:$,markLineData:i,extraInfo:s,empty:v,onHover:g,hoverIndex:T})}R.propTypes={title:e.string,cpus:e.array,currentLoad:e.number,history:e.array,empty:e.node,onHover:e.func,hoverIndex:e.number};function D({instanceCount:h=null,title:b="",total:r=null,used:c=null,history:v=[],empty:g=null,onHover:T=()=>{},hoverIndex:x=null}){const{t:d,locale:t}=k(),o=w(),f=!!r,a=r-c,p=f?`(${L(c)}, ${Math.floor(c/r*100)}%)`:"",$=`${b||d("common.memory")} ${p}`,i=Math.ceil(r*.8),s=n=>E(n,{short:!0,iec:!0}),u=[];h&&u.push({title:d("system.instances"),metric:h}),f&&u.push({title:d("system.free"),metric:s(a)});const y=[{max:i,color:m(o.palette.primary.main,o.palette.mode==="dark"?.15:.08)},{min:i,max:r,color:m(o.palette.warning.main,o.palette.mode==="dark"?.18:.12)},{min:r,color:m(o.palette.error.main,o.palette.mode==="dark"?.25:.18)}],F={silent:!0,symbol:["none","none"],data:[{yAxis:r,lineStyle:{color:o.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${s(r)}`,position:"insideEndTop",color:o.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:i,lineStyle:{color:o.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${s(i)}`,position:"insideEndTop",color:o.palette.text.secondary,padding:[2,4],borderRadius:2}}]},I=l.jsx(l.Fragment,{children:u.map((n,j)=>l.jsxs(P,{sx:{marginLeft:j===0?0:1,display:"inline-flex"},children:[n.title,": ",n.metric]},n.title))}),H=n=>M(n,"HH:mm",t);return l.jsx(A,{title:$,total:r,history:v,valueFn:s,xAxisFormat:H,visualMapPieces:y,markLineData:F,extraInfo:I,empty:g,onHover:T,hoverIndex:x})}D.propTypes={title:e.string,instanceCount:e.number,total:e.number,used:e.number,history:e.array,empty:e.node,onHover:e.func,hoverIndex:e.number};export{R as C,D as M};
@@ -1,4 +1,4 @@
1
- import{j as i,N as t,dk as m,L as h,r as g,s as _,be as u,aE as f,o as n}from"./index-_8oRZcHP.js";function b({icon:e,value:a,name:r,url:o="",animated:s=!1,LinkComponent:p=h,loading:x=!1}){const d=()=>u.isValidElement(e)?e:i.jsx(t,{component:f,icon:e,alt:typeof r=="string"?r:"",sx:{fontSize:30}});if(x)return i.jsxs(c,{children:[e&&i.jsx(t,{className:"metric__image",children:i.jsx(m,{variant:"circular",width:32,height:32})}),i.jsxs(t,{children:[i.jsx(m,{className:`metric__number ${s?"metric__number--animated":""}`,variant:"rounded",width:160,height:"36px",sx:{mb:1}}),i.jsx(m,{className:"metric__name",variant:"rounded",width:80,height:20})]})]});const l=i.jsxs(i.Fragment,{children:[e&&i.jsx(t,{className:"metric__image",children:d()}),i.jsxs(t,{children:[g.isValidElement(a)?i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,children:a}):i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}}),i.jsx(t,{className:"metric__name",children:r})]})]});return i.jsx(c,{children:o?i.jsx(p,{href:o,sx:{textDecoration:"none"},children:l}):l})}b.propTypes={icon:n.string.isRequired,value:n.string.isRequired,name:n.string.isRequired,url:n.string,animated:n.bool,LinkComponent:n.elementType,loading:n.bool};const c=_(t)`
1
+ import{j as i,N as t,dk as m,L as h,r as g,s as _,be as u,aE as f,o as n}from"./index-C4mOfCm_.js";function b({icon:e,value:a,name:r,url:o="",animated:s=!1,LinkComponent:p=h,loading:x=!1}){const d=()=>u.isValidElement(e)?e:i.jsx(t,{component:f,icon:e,alt:typeof r=="string"?r:"",sx:{fontSize:30}});if(x)return i.jsxs(c,{children:[e&&i.jsx(t,{className:"metric__image",children:i.jsx(m,{variant:"circular",width:32,height:32})}),i.jsxs(t,{children:[i.jsx(m,{className:`metric__number ${s?"metric__number--animated":""}`,variant:"rounded",width:160,height:"36px",sx:{mb:1}}),i.jsx(m,{className:"metric__name",variant:"rounded",width:80,height:20})]})]});const l=i.jsxs(i.Fragment,{children:[e&&i.jsx(t,{className:"metric__image",children:d()}),i.jsxs(t,{children:[g.isValidElement(a)?i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,children:a}):i.jsx(t,{className:`metric__number ${s?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}}),i.jsx(t,{className:"metric__name",children:r})]})]});return i.jsx(c,{children:o?i.jsx(p,{href:o,sx:{textDecoration:"none"},children:l}):l})}b.propTypes={icon:n.string.isRequired,value:n.string.isRequired,name:n.string.isRequired,url:n.string,animated:n.bool,LinkComponent:n.elementType,loading:n.bool};const c=_(t)`
2
2
  border-left: 1px solid ${e=>e.theme.palette.divider};
3
3
  padding: 10px 0 10px 16px;
4
4
  @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
@@ -0,0 +1 @@
1
+ import{dt as e,gY as t}from"./index-C4mOfCm_.js";const a=e(t);export{a as r};
@@ -1,4 +1,4 @@
1
- import{r as m,o as E,m as T,bn as X,e as Y,j as e,W as g,N as s,az as k,v as J,aE as p,gW as ee,cX as te,P as oe,h as ne,cj as se,T as y,G as _,E as w,y as ae,aR as C,bf as q,p as re,s as le}from"./index-_8oRZcHP.js";import{H as ie}from"./HelpOutline-C5r6R3H8.js";import{d as ce,V as de}from"./status-8_e4qfZ_.js";import{f as R}from"./index-BojVbZw0.js";import{v as me}from"./index-CrTw1v2G.js";import{u as ue}from"./blocklet-CxgGBUvX.js";import{u as pe}from"./team-CSpa5Bju.js";import{M as he}from"./metric-Bhfho-F8.js";import{a as xe}from"./spaces-GphSy-vT.js";import"./index-ZXKsu0i-.js";import"./ErrorOutline-DrbqnFJ2.js";import"./omit-DOuoJ5G3.js";import"./url-evaluation-C9ybfEbS.js";import"./api-Dksjqhj9.js";const ge={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},fe={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},ve={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},ke={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},je={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},O={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},be={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'},f={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},Se=(t,a)=>{const[o,r]=m.useState(0),i=x=>x>=f.oneDay?f.oneDay:x>=f.oneHour?f.oneHour:x>=f.oneMin?f.oneMin:f.oneSecond,[u,h]=m.useState(i(t/1e3));return m.useEffect(()=>{const x=setInterval(()=>{r(o+u);const A=i(t/1e3+o+u);u!==A&&h(A)},u*1e3);return()=>clearInterval(x)},[u,o]),m.useEffect(()=>{r(0),h(i(t/1e3))},[t]),a(t+o*1e3)};E.number.isRequired,E.func;const we={arcblock:"ArcBlock",ethereum:"Ethereum"};function L({source:t,migrated:a}){const{t:o}=T();return t?t.startsWith("managed")?e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.jsx(y,{children:t}),e.jsx(k,{title:o(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:e.jsx(C,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):e.jsx(y,{children:t}):null}L.propTypes={source:E.string.isRequired,migrated:E.bool.isRequired};const ye=t=>{const{t:a}=T();let o=0,r=0;t&&(o=t.length,r=t.filter(u=>u.status==="running").length);let i=o;return r&&(i+=`<small>${a("common.running")} ${r}</small>`),i},Te=(t,a)=>{const{t:o}=T();return a.length?e.jsxs(s,{component:"small",children:[o("router.domainAlias.custom")," ",a.length]}):e.jsxs(s,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[o("router.domainAlias.noCustom"),e.jsx(k,{title:o("router.domainAlias.noCustomTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},Ae=(t,a)=>{const o=t===w.BACKUPS.STATUS.PROGRESS&&q().diff(a,"hours")>=w.BACKUPS.TIMEOUT_HOURS,r=t===w.BACKUPS.STATUS.PROGRESS&&!o;return t===w.BACKUPS.STATUS.SUCCEEDED&&!o?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}}):r?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}}):e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})},Ie=(t,a)=>{const{t:o,locale:r}=T(),i=a?.createdAt;return t&&i?e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:q(i).add(1,"day").isAfter(q())?"text.primary":"warning.main"},children:[R(i,r==="tw"?"zh":r),e.jsx(k,{title:o("storage.spaces.backup.lastBackupTip",{time:R(i,r==="tw"?"zh":r)}),children:e.jsx(C,{sx:{fontSize:16}})})]}):e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main",fontSize:30},children:[o("storage.spaces.backup.noBackup"),e.jsx(k,{title:o("storage.spaces.backup.noBackupTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},v={fontSize:30,color:"text.primary"};function Le(){const{t,locale:a}=T(),{info:o,inService:r,api:i}=X(),{teamDid:u}=pe(),[h,x]=m.useState(!1),{did:A,blocklet:n}=ue(),c=Y(()=>i.getBlockletBaseInfo({input:{teamDid:u}})),{appDid:D,appPid:B,migratedFrom:j=[]}=n,P=n.environments.find(l=>l.key==="BLOCKLET_APP_CHAIN_TYPE")?.value,I=l=>typeof l!="number"||Number.isNaN(l)?"0":l>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(l):new Intl.NumberFormat(a).format(l),$=[D?{name:t("blocklet.appId"),value:e.jsx(g,{did:D,showQrcode:!0})}:null,B&&D!==B?{name:e.jsxs(s,{children:[t("blocklet.appPid"),e.jsx(k,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(ie,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:e.jsx(g,{did:B,showQrcode:!0})}:null,j?.length>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(h?j.slice(1):j.slice(1,2)).map(l=>e.jsx(g,{did:l.appDid,showQrcode:!0})),j.length>2&&e.jsx(J,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:h?e.jsx(p,{icon:ge}):e.jsx(p,{icon:ce}),onClick:()=>x(!h),children:t(h?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,ee(n)?{name:"NFT",value:e.jsx(g,{external:!0,href:te(n?.controller?.chainHost,n?.controller?.nftId,"asset"),did:n?.controller?.nftId,showQrcode:!0})}:null,{name:t("common.owner"),value:n.settings?.owner?e.jsx(g,{did:n.settings.owner.did,showQrcode:!0}):"-"},n.vaults?.length?{name:t("blocklet.config.vault.name"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[e.jsx(g,{did:n.vaults[n.vaults.length-1].did,showQrcode:!0}),e.jsx(de,{vaults:n.vaults,appPid:n.appPid})]})}:null,{name:t("blocklet.installedAt"),value:n.installedAt?e.jsx(oe,{value:n.installedAt,type:"all",locale:a}):"-"},{name:t("blocklet.config.walletType.name"),value:we[P||"arcblock"]||P},n.externalSkSource?{name:t("blocklet.skSource"),value:e.jsx(L,{source:n.externalSkSource,migrated:j.length>0})}:null].filter(Boolean);r&&$.push({name:t("common.serverDid"),value:e.jsx(g,{did:o.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(ne,{children:o.version})});const W=l=>l.map(d=>e.jsx(me,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:d.name,nameFormatter:()=>d.name,children:d.value},d.name)),K=ye(n.children),z=Number(c?.value?.appRuntimeInfo?.uptime||0),Q=Se(z,l=>re(l,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=m.useMemo(()=>n?.site?.domainAliases||[],[n?.site?.domainAliases]),F=m.useMemo(()=>M.filter(l=>se.isCustomDomain(l.value)),[M]),V=Te(M,F),N=m.useMemo(()=>c?.value?.passport||{},[c?.value?.passport]),U=m.useMemo(()=>c?.value?.user||{},[c?.value?.user]),H=m.useMemo(()=>xe(n?.environments),[n?.environments]),G=Ie(H,c?.value?.backup),b=(l,d)=>`${w.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${l}/${d}`,S=l=>{const d=o?.routing?.adminPath;return ae(d,`/blocklets/${A}/${l}`)},Z=[{name:t("common.blocklets"),value:K,icon:e.jsx(s,{component:p,icon:fe,sx:v}),url:r?b("overview","components"):S("components")},{loading:c?.loading,name:t("common.members"),value:`${I(U?.users||0)}<small>${t("common.active")} ${I(U?.approvedUsers)}</small>`,icon:e.jsx(s,{component:p,icon:ve,sx:v}),url:r?b("did-connect","members"):S("members")},{loading:c?.loading,name:t("team.member.passports"),value:`${I(N?.passports||0)}<small>${t("common.active")} ${I(N?.activePassports)}</small>`,icon:e.jsx(s,{component:p,icon:ke,sx:v}),url:r?b("did-connect","passports"):S("passports")},{loading:c?.loading,name:t("common.domains"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline"},children:[M.length,V]}),icon:e.jsx(s,{component:p,icon:je,sx:v}),url:r?b("website","domains"):S("domains")},{loading:c?.loading,name:t("common.uptime"),value:z?Q:e.jsx(s,{sx:{fontSize:28,color:"text.secondary"},children:`${t("common.waiting")}...`}),icon:e.jsx(s,{component:p,icon:O,sx:v})},n.createdAt&&+new Date(n.createdAt)!=+new Date(0)?{name:t("common.created"),value:R(new Date(n.createdAt).getTime(),a==="tw"?"zh":a),icon:e.jsx(s,{component:p,icon:O,sx:v})}:null,{loading:c?.loading,name:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[t("storage.spaces.backup.lastBackup"),c?.value?.backup&&H&&e.jsx(k,{children:Ae(c?.value?.backup?.status,c?.value?.backup?.createdAt)})]}),value:G,icon:e.jsx(s,{component:p,icon:be,sx:v}),url:r?b("did-spaces","backups"):S("didSpaces")}].filter(Boolean);return e.jsxs(Me,{component:"div",children:[e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.overview")}),e.jsx(_,{className:"page-metrics",container:!0,spacing:5,children:Z.map(({icon:l,...d})=>e.jsx(_,{sx:{small:{ml:.5}},size:{xl:1.5,lg:3,md:4,sm:6,xs:6},children:e.jsx(he,{...d})},d.name))})]}),e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.basicInfo")}),e.jsx(s,{className:"basicInfo",children:W($)})]})]})}const Me=le(y)`
1
+ import{r as m,o as E,m as T,bn as X,e as Y,j as e,W as g,N as s,az as k,v as J,aE as p,gW as ee,cX as te,P as oe,h as ne,cj as se,T as y,G as _,E as w,y as ae,aR as C,bf as q,p as re,s as le}from"./index-C4mOfCm_.js";import{H as ie}from"./HelpOutline-Dq1Jw2rR.js";import{d as ce,V as de}from"./status-D0iiky_Q.js";import{f as R}from"./index-BojVbZw0.js";import{v as me}from"./index-Aeyu2TZE.js";import{u as ue}from"./blocklet-DmmVfj87.js";import{u as pe}from"./team-D7M0Ye34.js";import{M as he}from"./metric-nsIZMw3V.js";import{a as xe}from"./spaces-DboV6EBE.js";import"./index-P46fTVgx.js";import"./ErrorOutline-DAMAJ1cH.js";import"./omit-B4Sq5gLR.js";import"./url-evaluation-CNPtf5Sl.js";import"./api-BgPXZvcj.js";const ge={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},fe={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},ve={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},ke={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},je={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},O={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},be={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'},f={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},Se=(t,a)=>{const[o,r]=m.useState(0),i=x=>x>=f.oneDay?f.oneDay:x>=f.oneHour?f.oneHour:x>=f.oneMin?f.oneMin:f.oneSecond,[u,h]=m.useState(i(t/1e3));return m.useEffect(()=>{const x=setInterval(()=>{r(o+u);const A=i(t/1e3+o+u);u!==A&&h(A)},u*1e3);return()=>clearInterval(x)},[u,o]),m.useEffect(()=>{r(0),h(i(t/1e3))},[t]),a(t+o*1e3)};E.number.isRequired,E.func;const we={arcblock:"ArcBlock",ethereum:"Ethereum"};function L({source:t,migrated:a}){const{t:o}=T();return t?t.startsWith("managed")?e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.jsx(y,{children:t}),e.jsx(k,{title:o(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:e.jsx(C,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):e.jsx(y,{children:t}):null}L.propTypes={source:E.string.isRequired,migrated:E.bool.isRequired};const ye=t=>{const{t:a}=T();let o=0,r=0;t&&(o=t.length,r=t.filter(u=>u.status==="running").length);let i=o;return r&&(i+=`<small>${a("common.running")} ${r}</small>`),i},Te=(t,a)=>{const{t:o}=T();return a.length?e.jsxs(s,{component:"small",children:[o("router.domainAlias.custom")," ",a.length]}):e.jsxs(s,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[o("router.domainAlias.noCustom"),e.jsx(k,{title:o("router.domainAlias.noCustomTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},Ae=(t,a)=>{const o=t===w.BACKUPS.STATUS.PROGRESS&&q().diff(a,"hours")>=w.BACKUPS.TIMEOUT_HOURS,r=t===w.BACKUPS.STATUS.PROGRESS&&!o;return t===w.BACKUPS.STATUS.SUCCEEDED&&!o?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}}):r?e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}}):e.jsx(s,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})},Ie=(t,a)=>{const{t:o,locale:r}=T(),i=a?.createdAt;return t&&i?e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:q(i).add(1,"day").isAfter(q())?"text.primary":"warning.main"},children:[R(i,r==="tw"?"zh":r),e.jsx(k,{title:o("storage.spaces.backup.lastBackupTip",{time:R(i,r==="tw"?"zh":r)}),children:e.jsx(C,{sx:{fontSize:16}})})]}):e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main",fontSize:30},children:[o("storage.spaces.backup.noBackup"),e.jsx(k,{title:o("storage.spaces.backup.noBackupTip"),children:e.jsx(C,{sx:{fontSize:16}})})]})},v={fontSize:30,color:"text.primary"};function Le(){const{t,locale:a}=T(),{info:o,inService:r,api:i}=X(),{teamDid:u}=pe(),[h,x]=m.useState(!1),{did:A,blocklet:n}=ue(),c=Y(()=>i.getBlockletBaseInfo({input:{teamDid:u}})),{appDid:D,appPid:B,migratedFrom:j=[]}=n,P=n.environments.find(l=>l.key==="BLOCKLET_APP_CHAIN_TYPE")?.value,I=l=>typeof l!="number"||Number.isNaN(l)?"0":l>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(l):new Intl.NumberFormat(a).format(l),$=[D?{name:t("blocklet.appId"),value:e.jsx(g,{did:D,showQrcode:!0})}:null,B&&D!==B?{name:e.jsxs(s,{children:[t("blocklet.appPid"),e.jsx(k,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(ie,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:e.jsx(g,{did:B,showQrcode:!0})}:null,j?.length>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(h?j.slice(1):j.slice(1,2)).map(l=>e.jsx(g,{did:l.appDid,showQrcode:!0})),j.length>2&&e.jsx(J,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:h?e.jsx(p,{icon:ge}):e.jsx(p,{icon:ce}),onClick:()=>x(!h),children:t(h?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,ee(n)?{name:"NFT",value:e.jsx(g,{external:!0,href:te(n?.controller?.chainHost,n?.controller?.nftId,"asset"),did:n?.controller?.nftId,showQrcode:!0})}:null,{name:t("common.owner"),value:n.settings?.owner?e.jsx(g,{did:n.settings.owner.did,showQrcode:!0}):"-"},n.vaults?.length?{name:t("blocklet.config.vault.name"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[e.jsx(g,{did:n.vaults[n.vaults.length-1].did,showQrcode:!0}),e.jsx(de,{vaults:n.vaults,appPid:n.appPid})]})}:null,{name:t("blocklet.installedAt"),value:n.installedAt?e.jsx(oe,{value:n.installedAt,type:"all",locale:a}):"-"},{name:t("blocklet.config.walletType.name"),value:we[P||"arcblock"]||P},n.externalSkSource?{name:t("blocklet.skSource"),value:e.jsx(L,{source:n.externalSkSource,migrated:j.length>0})}:null].filter(Boolean);r&&$.push({name:t("common.serverDid"),value:e.jsx(g,{did:o.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(ne,{children:o.version})});const W=l=>l.map(d=>e.jsx(me,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:d.name,nameFormatter:()=>d.name,children:d.value},d.name)),K=ye(n.children),z=Number(c?.value?.appRuntimeInfo?.uptime||0),Q=Se(z,l=>re(l,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=m.useMemo(()=>n?.site?.domainAliases||[],[n?.site?.domainAliases]),F=m.useMemo(()=>M.filter(l=>se.isCustomDomain(l.value)),[M]),V=Te(M,F),N=m.useMemo(()=>c?.value?.passport||{},[c?.value?.passport]),U=m.useMemo(()=>c?.value?.user||{},[c?.value?.user]),H=m.useMemo(()=>xe(n?.environments),[n?.environments]),G=Ie(H,c?.value?.backup),b=(l,d)=>`${w.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${l}/${d}`,S=l=>{const d=o?.routing?.adminPath;return ae(d,`/blocklets/${A}/${l}`)},Z=[{name:t("common.blocklets"),value:K,icon:e.jsx(s,{component:p,icon:fe,sx:v}),url:r?b("overview","components"):S("components")},{loading:c?.loading,name:t("common.members"),value:`${I(U?.users||0)}<small>${t("common.active")} ${I(U?.approvedUsers)}</small>`,icon:e.jsx(s,{component:p,icon:ve,sx:v}),url:r?b("did-connect","members"):S("members")},{loading:c?.loading,name:t("team.member.passports"),value:`${I(N?.passports||0)}<small>${t("common.active")} ${I(N?.activePassports)}</small>`,icon:e.jsx(s,{component:p,icon:ke,sx:v}),url:r?b("did-connect","passports"):S("passports")},{loading:c?.loading,name:t("common.domains"),value:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline"},children:[M.length,V]}),icon:e.jsx(s,{component:p,icon:je,sx:v}),url:r?b("website","domains"):S("domains")},{loading:c?.loading,name:t("common.uptime"),value:z?Q:e.jsx(s,{sx:{fontSize:28,color:"text.secondary"},children:`${t("common.waiting")}...`}),icon:e.jsx(s,{component:p,icon:O,sx:v})},n.createdAt&&+new Date(n.createdAt)!=+new Date(0)?{name:t("common.created"),value:R(new Date(n.createdAt).getTime(),a==="tw"?"zh":a),icon:e.jsx(s,{component:p,icon:O,sx:v})}:null,{loading:c?.loading,name:e.jsxs(s,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[t("storage.spaces.backup.lastBackup"),c?.value?.backup&&H&&e.jsx(k,{children:Ae(c?.value?.backup?.status,c?.value?.backup?.createdAt)})]}),value:G,icon:e.jsx(s,{component:p,icon:be,sx:v}),url:r?b("did-spaces","backups"):S("didSpaces")}].filter(Boolean);return e.jsxs(Me,{component:"div",children:[e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.overview")}),e.jsx(_,{className:"page-metrics",container:!0,spacing:5,children:Z.map(({icon:l,...d})=>e.jsx(_,{sx:{small:{ml:.5}},size:{xl:1.5,lg:3,md:4,sm:6,xs:6},children:e.jsx(he,{...d})},d.name))})]}),e.jsxs(s,{className:"section",children:[e.jsx(y,{className:"section__header",color:"textPrimary",children:t("common.basicInfo")}),e.jsx(s,{className:"basicInfo",children:W($)})]})]})}const Me=le(y)`
2
2
  .section {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- import{n as m,j as l,o as n}from"./index-_8oRZcHP.js";function c({permission:i="",role:t="",component:e=null,children:o=null}){const{session:r}=m();let s=!0;const u=[].concat(i).filter(Boolean),f=[].concat(t).filter(Boolean);if(u.length){const p=r.user&&r.user.permissions||[];s=u.some(a=>p.includes(a))}return s&&f.length&&(s=f.includes(r.user.role)),typeof e=="function"?e(s):typeof o=="function"?o(s):s&&(e||o)||null}function g(i,t,e){return function(r){return l.jsx(c,{permission:t,role:e,children:s=>l.jsx(i,{...r,hasPermission:s})})}}c.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};export{c as P,g as w};
1
+ import{n as m,j as l,o as n}from"./index-C4mOfCm_.js";function c({permission:i="",role:t="",component:e=null,children:o=null}){const{session:r}=m();let s=!0;const u=[].concat(i).filter(Boolean),f=[].concat(t).filter(Boolean);if(u.length){const p=r.user&&r.user.permissions||[];s=u.some(a=>p.includes(a))}return s&&f.length&&(s=f.includes(r.user.role)),typeof e=="function"?e(s):typeof o=="function"?o(s):s&&(e||o)||null}function g(i,t,e){return function(r){return l.jsx(c,{permission:t,role:e,children:s=>l.jsx(i,{...r,hasPermission:s})})}}c.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};export{c as P,g as w};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D1w_phcb.js","./index-_8oRZcHP.js","./index-DGkT7afN.css","./url-join-B-Ittgpb.js","./index-CJwX-OYV.js","./_createAggregator-B7uAY9MP.js","./depsEqual-DMHly6fz.js","./index-hcJKr5Kv.js","./index-DRYJ0xIl.js","./toUpper-Dul2guy6.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
- import{aG as Le,j as V,s as oe,N as ae,m as Re,r as K,dD as fe,y as ne,bE as Ce,o as L,bn as Pe,E as ze}from"./index-_8oRZcHP.js";import{r as Oe}from"./omit-DOuoJ5G3.js";import{r as qe}from"./index-CJwX-OYV.js";import{c as $e}from"./index-hcJKr5Kv.js";import{I as We}from"./iframe-CKLYV5eL.js";const tt=Le(V.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}));var B={exports:{}},W={},M={exports:{}},k={},H={exports:{}},U={},ue;function ke(){if(ue)return U;ue=1;function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function l(e,h,m){}function o(e,h,m){}var a=/javascript\s*\:/img;function v(e,h){return a.test(h)?"":h}return U.whiteList=r(),U.getDefaultWhiteList=r,U.onAttr=l,U.onIgnoreAttr=o,U.safeAttrValue=v,U}var J,ce;function Te(){return ce||(ce=1,J={indexOf:function(r,l){var o,a;if(Array.prototype.indexOf)return r.indexOf(l);for(o=0,a=r.length;o<a;o++)if(r[o]===l)return o;return-1},forEach:function(r,l,o){var a,v;if(Array.prototype.forEach)return r.forEach(l,o);for(a=0,v=r.length;a<v;a++)l.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(r){return String.prototype.trimRight?r.trimRight():r.replace(/(\s*$)/g,"")}}),J}var Y,pe;function Fe(){if(pe)return Y;pe=1;var r=Te();function l(o,a){o=r.trimRight(o),o[o.length-1]!==";"&&(o+=";");var v=o.length,e=!1,h=0,m=0,y="";function T(){if(!e){var p=r.trim(o.slice(h,m)),i=p.indexOf(":");if(i!==-1){var n=r.trim(p.slice(0,i)),c=r.trim(p.slice(i+1));if(n){var s=a(h,y.length,n,c,p);s&&(y+=s+"; ")}}}h=m+1}for(;m<v;m++){var _=o[m];if(_==="/"&&o[m+1]==="*"){var t=o.indexOf("*/",m+2);if(t===-1)break;m=t+1,h=m+1,e=!1}else _==="("?e=!0:_===")"?e=!1:_===";"?e||T():_===`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BMW6t5La.js","./index-C4mOfCm_.js","./index-DGkT7afN.css","./url-join-BBoInSaA.js","./index-COm9hgx_.js","./_createAggregator-jhHxKsby.js","./depsEqual-CgwmaLj6.js","./index-quoltoEL.js","./index-DRYJ0xIl.js","./toUpper-Bb2HGHT9.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
+ import{aG as Le,j as V,s as oe,N as ae,m as Re,r as K,dD as fe,y as ne,bE as Ce,o as L,bn as Pe,E as ze}from"./index-C4mOfCm_.js";import{r as Oe}from"./omit-B4Sq5gLR.js";import{r as qe}from"./index-COm9hgx_.js";import{c as $e}from"./index-quoltoEL.js";import{I as We}from"./iframe-CDG05FDN.js";const tt=Le(V.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}));var B={exports:{}},W={},M={exports:{}},k={},H={exports:{}},U={},ue;function ke(){if(ue)return U;ue=1;function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function l(e,h,m){}function o(e,h,m){}var a=/javascript\s*\:/img;function v(e,h){return a.test(h)?"":h}return U.whiteList=r(),U.getDefaultWhiteList=r,U.onAttr=l,U.onIgnoreAttr=o,U.safeAttrValue=v,U}var J,ce;function Te(){return ce||(ce=1,J={indexOf:function(r,l){var o,a;if(Array.prototype.indexOf)return r.indexOf(l);for(o=0,a=r.length;o<a;o++)if(r[o]===l)return o;return-1},forEach:function(r,l,o){var a,v;if(Array.prototype.forEach)return r.forEach(l,o);for(a=0,v=r.length;a<v;a++)l.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(r){return String.prototype.trimRight?r.trimRight():r.replace(/(\s*$)/g,"")}}),J}var Y,pe;function Fe(){if(pe)return Y;pe=1;var r=Te();function l(o,a){o=r.trimRight(o),o[o.length-1]!==";"&&(o+=";");var v=o.length,e=!1,h=0,m=0,y="";function T(){if(!e){var p=r.trim(o.slice(h,m)),i=p.indexOf(":");if(i!==-1){var n=r.trim(p.slice(0,i)),c=r.trim(p.slice(i+1));if(n){var s=a(h,y.length,n,c,p);s&&(y+=s+"; ")}}}h=m+1}for(;m<v;m++){var _=o[m];if(_==="/"&&o[m+1]==="*"){var t=o.indexOf("*/",m+2);if(t===-1)break;m=t+1,h=m+1,e=!1}else _==="("?e=!0:_===")"?e=!1:_===";"?e||T():_===`
3
3
  `&&T()}return r.trim(y)}return Y=l,Y}var ee,ge;function je(){if(ge)return ee;ge=1;var r=ke(),l=Fe();Te();function o(e){return e==null}function a(e){var h={};for(var m in e)h[m]=e[m];return h}function v(e){e=a(e||{}),e.whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}return v.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var h=this,m=h.options,y=m.whiteList,T=m.onAttr,_=m.onIgnoreAttr,t=m.safeAttrValue,p=l(e,function(i,n,c,s,b){var u=y[c],f=!1;if(u===!0?f=u:typeof u=="function"?f=u(s):u instanceof RegExp&&(f=u.test(s)),f!==!0&&(f=!1),s=t(c,s),!!s){var w={position:n,sourcePosition:i,source:b,isWhite:f};if(f){var S=T(c,s,w);return o(S)?c+":"+s:S}else{var S=_(c,s,w);if(!o(S))return S}}});return p},ee=v,ee}var de;function se(){return de||(de=1,function(r,l){var o=ke(),a=je();function v(h,m){var y=new a(m);return y.process(h)}l=r.exports=v,l.FilterCSS=a;for(var e in o)l[e]=o[e];typeof window<"u"&&(window.filterCSS=r.exports)}(H,H.exports)),H.exports}var te,he;function le(){return he||(he=1,te={indexOf:function(r,l){var o,a;if(Array.prototype.indexOf)return r.indexOf(l);for(o=0,a=r.length;o<a;o++)if(r[o]===l)return o;return-1},forEach:function(r,l,o){var a,v;if(Array.prototype.forEach)return r.forEach(l,o);for(a=0,v=r.length;a<v;a++)l.call(o,r[a],a,r)},trim:function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(r){var l=/\s|\n|\t/,o=l.exec(r);return o?o.index:-1}}),te}var me;function _e(){if(me)return k;me=1;var r=se().FilterCSS,l=se().getDefaultWhiteList,o=le();function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var v=new r;function e(g,A,d){}function h(g,A,d){}function m(g,A,d){}function y(g,A,d){}function T(g){return g.replace(t,"&lt;").replace(p,"&gt;")}function _(g,A,d,x){if(d=G(d),A==="href"||A==="src"){if(d=o.trim(d),d==="#")return"#";if(!(d.substr(0,7)==="http://"||d.substr(0,8)==="https://"||d.substr(0,7)==="mailto:"||d.substr(0,4)==="tel:"||d.substr(0,11)==="data:image/"||d.substr(0,6)==="ftp://"||d.substr(0,2)==="./"||d.substr(0,3)==="../"||d[0]==="#"||d[0]==="/"))return""}else if(A==="background"){if(u.lastIndex=0,u.test(d))return""}else if(A==="style"){if(f.lastIndex=0,f.test(d)||(w.lastIndex=0,w.test(d)&&(u.lastIndex=0,u.test(d))))return"";x!==!1&&(x=x||v,d=x.process(d))}return d=P(d),d}var t=/</g,p=/>/g,i=/"/g,n=/&quot;/g,c=/&#([a-zA-Z0-9]*);?/gim,s=/&colon;?/gim,b=/&newline;?/gim,u=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,w=/u\s*r\s*l\s*\(.*/gi;function S(g){return g.replace(i,"&quot;")}function E(g){return g.replace(n,'"')}function I(g){return g.replace(c,function(d,x){return x[0]==="x"||x[0]==="X"?String.fromCharCode(parseInt(x.substr(1),16)):String.fromCharCode(parseInt(x,10))})}function R(g){return g.replace(s,":").replace(b," ")}function F(g){for(var A="",d=0,x=g.length;d<x;d++)A+=g.charCodeAt(d)<32?" ":g.charAt(d);return o.trim(A)}function G(g){return g=E(g),g=I(g),g=R(g),g=F(g),g}function P(g){return g=S(g),g=T(g),g}function O(){return""}function Z(g,A){typeof A!="function"&&(A=function(){});var d=!Array.isArray(g);function x(C){return d?!0:o.indexOf(g,C)!==-1}var z=[],q=!1;return{onIgnoreTag:function(C,D,$){if(x(C))if($.isClosing){var X="[/removed]",Ie=$.position+X.length;return z.push([q!==!1?q:$.position,Ie]),q=!1,X}else return q||(q=$.position),"[removed]";else return A(C,D,$)},remove:function(C){var D="",$=0;return o.forEach(z,function(X){D+=C.slice($,X[0]),$=X[1]}),D+=C.slice($),D}}}function N(g){for(var A="",d=0;d<g.length;){var x=g.indexOf("<!--",d);if(x===-1){A+=g.slice(d);break}A+=g.slice(d,x);var z=g.indexOf("-->",x);if(z===-1)break;d=z+3}return A}function j(g){var A=g.split("");return A=A.filter(function(d){var x=d.charCodeAt(0);return x===127?!1:x<=31?x===10||x===13:!0}),A.join("")}return k.whiteList=a(),k.getDefaultWhiteList=a,k.onTag=e,k.onIgnoreTag=h,k.onTagAttr=m,k.onIgnoreTagAttr=y,k.safeAttrValue=_,k.escapeHtml=T,k.escapeQuote=S,k.unescapeQuote=E,k.escapeHtmlEntities=I,k.escapeDangerHtml5Entities=R,k.clearNonPrintableCharacter=F,k.friendlyAttrValue=G,k.escapeAttrValue=P,k.onIgnoreTagStripAll=O,k.StripTagBody=Z,k.stripCommentTag=N,k.stripBlankChar=j,k.attributeWrapSign='"',k.cssFilter=v,k.getDefaultCSSWhiteList=l,k}var Q={},ve;function Ee(){if(ve)return Q;ve=1;var r=le();function l(t){var p=r.spaceIndex(t),i;return p===-1?i=t.slice(1,-1):i=t.slice(1,p+1),i=r.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function o(t){return t.slice(0,2)==="</"}function a(t,p,i){var n="",c=0,s=!1,b=!1,u=0,f=t.length,w="",S="";e:for(u=0;u<f;u++){var E=t.charAt(u);if(s===!1){if(E==="<"){s=u;continue}}else if(b===!1){if(E==="<"){n+=i(t.slice(c,u)),s=u,c=u;continue}if(E===">"||u===f-1){n+=i(t.slice(c,s)),S=t.slice(s,u+1),w=l(S),n+=p(s,n.length,w,S,o(S)),c=u+1,s=!1;continue}if(E==='"'||E==="'")for(var I=1,R=t.charAt(u-I);R.trim()===""||R==="=";){if(R==="="){b=E;continue e}R=t.charAt(u-++I)}}else if(E===b){b=!1;continue}}return c<f&&(n+=i(t.substr(c))),n}var v=/[^a-zA-Z0-9\\_:.-]/gim;function e(t,p){var i=0,n=0,c=[],s=!1,b=t.length;function u(I,R){if(I=r.trim(I),I=I.replace(v,"").toLowerCase(),!(I.length<1)){var F=p(I,R||"");F&&c.push(F)}}for(var f=0;f<b;f++){var w=t.charAt(f),S,E;if(s===!1&&w==="="){s=t.slice(i,f),i=f+1,n=t.charAt(i)==='"'||t.charAt(i)==="'"?i:m(t,f+1);continue}if(s!==!1&&f===n){if(E=t.indexOf(w,f+1),E===-1)break;S=r.trim(t.slice(n+1,E)),u(s,S),s=!1,f=E,i=f+1;continue}if(/\s|\n|\t/.test(w))if(t=t.replace(/\s|\n|\t/g," "),s===!1)if(E=h(t,f),E===-1){S=r.trim(t.slice(i,f)),u(S),s=!1,i=f+1;continue}else{f=E-1;continue}else if(E=y(t,f-1),E===-1){S=r.trim(t.slice(i,f)),S=_(S),u(s,S),s=!1,i=f+1;continue}else continue}return i<t.length&&(s===!1?u(t.slice(i)):u(s,_(r.trim(t.slice(i))))),r.trim(c.join(" "))}function h(t,p){for(;p<t.length;p++){var i=t[p];if(i!==" ")return i==="="?p:-1}}function m(t,p){for(;p<t.length;p++){var i=t[p];if(i!==" ")return i==="'"||i==='"'?p:-1}}function y(t,p){for(;p>0;p--){var i=t[p];if(i!==" ")return i==="="?p:-1}}function T(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function _(t){return T(t)?t.substr(1,t.length-2):t}return Q.parseTag=a,Q.parseAttr=e,Q}var re,be;function Ue(){if(be)return re;be=1;var r=se().FilterCSS,l=_e(),o=Ee(),a=o.parseTag,v=o.parseAttr,e=le();function h(t){return t==null}function m(t){var p=e.spaceIndex(t);if(p===-1)return{html:"",closing:t[t.length-2]==="/"};t=e.trim(t.slice(p+1,-1));var i=t[t.length-1]==="/";return i&&(t=e.trim(t.slice(0,-1))),{html:t,closing:i}}function y(t){var p={};for(var i in t)p[i]=t[i];return p}function T(t){var p={};for(var i in t)Array.isArray(t[i])?p[i.toLowerCase()]=t[i].map(function(n){return n.toLowerCase()}):p[i.toLowerCase()]=t[i];return p}function _(t){t=y(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=l.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=T(t.whiteList||t.allowList):t.whiteList=l.whiteList,this.attributeWrapSign=t.singleQuotedAttributeValue===!0?"'":l.attributeWrapSign,t.onTag=t.onTag||l.onTag,t.onTagAttr=t.onTagAttr||l.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||l.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||l.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||l.safeAttrValue,t.escapeHtml=t.escapeHtml||l.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}return _.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var p=this,i=p.options,n=i.whiteList,c=i.onTag,s=i.onIgnoreTag,b=i.onTagAttr,u=i.onIgnoreTagAttr,f=i.safeAttrValue,w=i.escapeHtml,S=p.attributeWrapSign,E=p.cssFilter;i.stripBlankChar&&(t=l.stripBlankChar(t)),i.allowCommentTag||(t=l.stripCommentTag(t));var I=!1;i.stripIgnoreTagBody&&(I=l.StripTagBody(i.stripIgnoreTagBody,s),s=I.onIgnoreTag);var R=a(t,function(F,G,P,O,Z){var N={sourcePosition:F,position:G,isClosing:Z,isWhite:Object.prototype.hasOwnProperty.call(n,P)},j=c(P,O,N);if(!h(j))return j;if(N.isWhite){if(N.isClosing)return"</"+P+">";var g=m(O),A=n[P],d=v(g.html,function(x,z){var q=e.indexOf(A,x)!==-1,C=b(P,x,z,q);return h(C)?q?(z=f(P,x,z,E),z?x+"="+S+z+S:x):(C=u(P,x,z,q),h(C)?void 0:C):C});return O="<"+P,d&&(O+=" "+d),g.closing&&(O+=" /"),O+=">",O}else return j=s(P,O,N),h(j)?w(O):j},w);return I&&(R=I.remove(R)),R},re=_,re}var xe;function Ve(){return xe||(xe=1,function(r,l){var o=_e(),a=Ee(),v=Ue();function e(m,y){var T=new v(y);return T.process(m)}l=r.exports=e,l.filterXSS=e,l.FilterXSS=v,function(){for(var m in o)l[m]=o[m];for(var y in a)l[y]=a[y]}(),typeof window<"u"&&(window.filterXSS=r.exports);function h(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}h()&&(self.filterXSS=r.exports)}(M,M.exports)),M.exports}var ye;function Ne(){if(ye)return W;ye=1,Object.defineProperty(W,"__esModule",{value:!0}),W.sanitizeSvg=W.isSvgFile=W.initSanitize=void 0;var r=e(Ve()),l=a(Oe),o=a(qe());function a(n){return n&&n.__esModule?n:{default:n}}function v(n){if(typeof WeakMap!="function")return null;var c=new WeakMap,s=new WeakMap;return(v=function(b){return b?s:c})(n)}function e(n,c){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var s=v(c);if(s&&s.has(n))return s.get(n);var b={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if(f!=="default"&&{}.hasOwnProperty.call(n,f)){var w=u?Object.getOwnPropertyDescriptor(n,f):null;w&&(w.get||w.set)?Object.defineProperty(b,f,w):b[f]=n[f]}return b.default=n,s&&s.set(n,b),b}const h=["script","img","iframe","body","form","style","link","meta","bgsound","svg","embed","object","video","audio","source","track","marquee","blink","noscript","param","textarea","input","select","button"],m=h.reduce((n,c)=>(n[c]=!0,n),{});let y={escapeHtml:n=>n,whiteList:(0,l.default)(r.getDefaultWhiteList(),h),onIgnoreTag:function(n,c,s){if(m[n])return""},stripIgnoreTagBody:["script"]};const T=(n={})=>{const c={...y,...n},s=new r.FilterXSS(c),b=u=>typeof u=="string"?s.process(u):Array.isArray(u)?u.map(f=>typeof f=="string"?s.process(f):Array.isArray(f)||typeof f=="object"?b(f):f):(typeof u=="object"&&u!==null&&Object.keys(u).forEach(f=>{if(c?.allowedKeys?.includes(f))return;const w=u[f];typeof w=="string"?u[f]=s.process(w):(Array.isArray(w)||typeof w=="object")&&(u[f]=b(w))}),u);return b};W.initSanitize=T;const t={whiteList:{svg:["width","height","viewBox","xmlns","version","preserveAspectRatio","xml:space"],circle:["cx","cy","r","fill","stroke","stroke-width","fill-opacity","stroke-opacity"],ellipse:["cx","cy","rx","ry","fill","stroke","stroke-width"],line:["x1","y1","x2","y2","stroke","stroke-width"],path:["d","fill","stroke","stroke-width","fill-rule","stroke-linecap","stroke-linejoin"],polygon:["points","fill","stroke","stroke-width"],polyline:["points","fill","stroke","stroke-width"],rect:["x","y","width","height","rx","ry","fill","stroke","stroke-width"],g:["transform","fill","stroke"],text:["x","y","font-size","font-family","text-anchor","fill"],defs:[],clipPath:["id"],mask:["id"],use:["x","y","width","height"],linearGradient:["id","x1","y1","x2","y2","gradientUnits"],radialGradient:["id","cx","cy","r","fx","fy","gradientUnits"],stop:["offset","stop-color","stop-opacity"],pattern:["id","width","height","patternUnits","patternTransform"]},stripIgnoreTagBody:["script","style"],onIgnoreTag:function(n,c,s){return""},onIgnoreTagAttr:function(n,c,s,b){if(c.startsWith("on")||c==="href"||c==="xlink:href")return"";if(c==="style"){const u=s.replace(/expression\(.*\)|javascript:|data:|@import|behavior|binding|moz-binding/gi,"");return u!==s?"":`${c}="${u}"`}if(n==="use"&&(c==="href"||c==="xlink:href"))return s.startsWith("#")&&!/[<>"']/.test(s)?`${c}="${s}"`:"";if(c==="id"||c==="class")return`${c}="${s}"`}},p=n=>{if(!i(n))throw new Error("Invalid SVG content");return new r.FilterXSS(t).process(n)};W.sanitizeSvg=p;const i=(n,c)=>!(typeof n!="string"||!/<svg[^>]*?(?:>|\/>)|<\?xml[^>]*>\s*<svg[^>]*?(?:>|\/?>)/i.test(n)||c?.name&&o.default.extname(c.name).toLowerCase()!==".svg"||c?.type&&!c.type.toLowerCase().includes("image/svg"));return W.isSvgFile=i,W}var we;function De(){return we||(we=1,function(r,l){Object.defineProperty(l,"__esModule",{value:!0});var o={xss:!0};l.xss=v;var a=Ne();Object.keys(a).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(o,e)||e in l&&l[e]===a[e]||Object.defineProperty(l,e,{enumerable:!0,get:function(){return a[e]}})});function v(e={}){const h=(0,a.initSanitize)(e);return(m,y,T)=>{["body","params","headers","query"].forEach(_=>{m[_]&&(m[_]=h(m[_]))}),T()}}r.exports={xss:v,initSanitize:a.initSanitize,isSvgFile:a.isSvgFile,sanitizeSvg:a.sanitizeSvg}}(B,B.exports)),B.exports}var ie,Ae;function Xe(){if(Ae)return ie;Ae=1;const{initSanitize:r}=De();return ie={sanitizeTag:a=>!a||typeof a!="string"?a:r({whiteList:{},stripIgnoreTag:!0,onIgnoreTag:!1,stripIgnoreTagBody:[]})(a),escapeTag:a=>!a||typeof a!="string"?a:r({whiteList:{},stripIgnoreTag:!1,onIgnoreTag:(e,h)=>h.replace(/</g,"&lt;").replace(/>/g,"&gt;"),onIgnoreTagAttr:(e,h,m)=>`${h}="${m}"`,stripIgnoreTagBody:[],escapeHtml:e=>e.replace(/</g,"&lt;").replace(/>/g,"&gt;")})(a)},ie}var rt=Xe();const it=oe.span`
4
4
  color: ${r=>r.theme.palette.error.main};
5
5
  &::before {
@@ -103,7 +103,7 @@ import{aG as Le,j as V,s as oe,N as ae,m as Re,r as K,dD as fe,y as ne,bE as Ce,
103
103
  }
104
104
  }
105
105
  }
106
- `,Ge=K.lazy(()=>Ce(()=>import("./index-D1w_phcb.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(r=>({default:r.Uploader}))),Be="/blocklet/logo/upload",Se=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function Me({url:r,height:l=80,width:o="auto",enabled:a=!0,allowSVG:v=!0,type:e,did:h,prefix:m,headers:y=fe,aspectRatio:T=1,minWidth:_=256,minHeight:t=256,onUploaded:p=fe,children:i=null}){const{t:n,locale:c}=Re(),s=K.useRef(null),b=()=>{s.current?.open()},u=()=>{p(),s.current?.close()},f={cursor:a?"pointer":"default","&::after":{content:`"${n("common.switch")}"`}};return V.jsxs(He,{id:`uploader-${h}-${e}`,children:[V.jsx(Ge,{ref:s,locale:c,popup:!0,onUploadFinish:u,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ne(m,Be,e,h),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:v?[...Se,".svg"]:Se,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:T,initialAspectRatio:T,croppedCanvasOptions:{minWidth:_,minHeight:t}}},tusProps:{headers:y}}),i?V.jsx(ae,{onClick:b,children:i}):V.jsx(ae,{className:$e("uploader-wrapper",a&&"enabled"),sx:f,onClick:b,children:V.jsx("img",{alt:e,src:r,style:{width:o,height:l}})})]},`uploader-${h}-${e}`)}Me.propTypes={url:L.string.isRequired,type:L.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:L.string.isRequired,prefix:L.string.isRequired,headers:L.func,onUploaded:L.func,height:L.number,width:L.any,enabled:L.bool,allowSVG:L.bool,aspectRatio:L.number,minWidth:L.number,minHeight:L.number,children:L.node};const He=oe.div`
106
+ `,Ge=K.lazy(()=>Ce(()=>import("./index-BMW6t5La.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(r=>({default:r.Uploader}))),Be="/blocklet/logo/upload",Se=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function Me({url:r,height:l=80,width:o="auto",enabled:a=!0,allowSVG:v=!0,type:e,did:h,prefix:m,headers:y=fe,aspectRatio:T=1,minWidth:_=256,minHeight:t=256,onUploaded:p=fe,children:i=null}){const{t:n,locale:c}=Re(),s=K.useRef(null),b=()=>{s.current?.open()},u=()=>{p(),s.current?.close()},f={cursor:a?"pointer":"default","&::after":{content:`"${n("common.switch")}"`}};return V.jsxs(He,{id:`uploader-${h}-${e}`,children:[V.jsx(Ge,{ref:s,locale:c,popup:!0,onUploadFinish:u,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ne(m,Be,e,h),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:v?[...Se,".svg"]:Se,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:T,initialAspectRatio:T,croppedCanvasOptions:{minWidth:_,minHeight:t}}},tusProps:{headers:y}}),i?V.jsx(ae,{onClick:b,children:i}):V.jsx(ae,{className:$e("uploader-wrapper",a&&"enabled"),sx:f,onClick:b,children:V.jsx("img",{alt:e,src:r,style:{width:o,height:l}})})]},`uploader-${h}-${e}`)}Me.propTypes={url:L.string.isRequired,type:L.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:L.string.isRequired,prefix:L.string.isRequired,headers:L.func,onUploaded:L.func,height:L.number,width:L.any,enabled:L.bool,allowSVG:L.bool,aspectRatio:L.number,minWidth:L.number,minHeight:L.number,children:L.node};const He=oe.div`
107
107
  .uploader-wrapper {
108
108
  display: inline-flex;
109
109
  position: relative;
@@ -1,4 +1,4 @@
1
- import{m as o}from"./index-C_Wb23_l.js";import"./index-_8oRZcHP.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as o}from"./index-Ci4hOeJE.js";import"./index-C4mOfCm_.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{i8 as O,hC as B,r as p}from"./index-_8oRZcHP.js";import{_ as C}from"./typeof-QjJsDpFa.js";import{t as S}from"./redux-DfszZyTl.js";function v(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}function M(e,r){if(e){if(typeof e=="string")return v(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function N(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&O(e,r)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},g(e)}function k(e,r){if(r&&(C(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function b(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function z(e,r,t){return r&&b(e.prototype,r),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function h(e,r){var t=p.useState(function(){return{inputs:r,result:e()}})[0],o=p.useRef(!0),n=p.useRef(t),a=o.current||!!(r&&n.current.inputs&&j(r,n.current.inputs)),i=a?n.current:{inputs:r,result:e()};return p.useEffect(function(){o.current=!1,n.current=i},[i]),i.result}function A(e,r){return h(function(){return e},r)}var D=h,K=A,P="Invariant failed";function _(e,r){throw new Error(P)}var d=function(r){var t=r.top,o=r.right,n=r.bottom,a=r.left,i=o-a,f=n-t,c={top:t,right:o,bottom:n,left:a,width:i,height:f,x:a,y:t,center:{x:(o+a)/2,y:(n+t)/2}};return c},R=function(r,t){return{top:r.top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right}},m=function(r,t){return{top:r.top+t.top,left:r.left+t.left,bottom:r.bottom-t.bottom,right:r.right-t.right}},T=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},l={top:0,right:0,bottom:0,left:0},x=function(r){var t=r.borderBox,o=r.margin,n=o===void 0?l:o,a=r.border,i=a===void 0?l:a,f=r.padding,c=f===void 0?l:f,w=d(R(t,n)),s=d(m(t,i)),y=d(m(s,c));return{marginBox:w,borderBox:d(t),paddingBox:s,contentBox:y,margin:n,border:i,padding:c}},u=function(r){var t=r.slice(0,-2),o=r.slice(-2);if(o!=="px")return 0;var n=Number(t);return isNaN(n)&&_(),n},E=function(){return{x:window.pageXOffset,y:window.pageYOffset}},W=function(r,t){var o=r.borderBox,n=r.border,a=r.margin,i=r.padding,f=T(o,t);return x({borderBox:f,border:n,margin:a,padding:i})},U=function(r,t){return t===void 0&&(t=E()),W(r,t)},F=function(r,t){var o={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},a={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return x({borderBox:r,margin:o,padding:n,border:a})},X=function(r){var t=r.getBoundingClientRect(),o=window.getComputedStyle(r);return F(t,o)},Y=function(r){var t=[],o=null,n=function(){for(var i=arguments.length,f=new Array(i),c=0;c<i;c++)f[c]=arguments[c];t=f,!o&&(o=requestAnimationFrame(function(){o=null,r.apply(void 0,t)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n};export{z as _,q as a,N as b,k as c,g as d,v as e,M as f,K as g,X as h,d as i,R as j,x as k,F as l,W as o,Y as r,D as u,U as w};
1
+ import{i8 as O,hC as B,r as p}from"./index-C4mOfCm_.js";import{_ as C}from"./typeof-QjJsDpFa.js";import{t as S}from"./redux-DfszZyTl.js";function v(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}function M(e,r){if(e){if(typeof e=="string")return v(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function N(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&O(e,r)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},g(e)}function k(e,r){if(r&&(C(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function q(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function b(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function z(e,r,t){return r&&b(e.prototype,r),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}function h(e,r){var t=p.useState(function(){return{inputs:r,result:e()}})[0],o=p.useRef(!0),n=p.useRef(t),a=o.current||!!(r&&n.current.inputs&&j(r,n.current.inputs)),i=a?n.current:{inputs:r,result:e()};return p.useEffect(function(){o.current=!1,n.current=i},[i]),i.result}function A(e,r){return h(function(){return e},r)}var D=h,K=A,P="Invariant failed";function _(e,r){throw new Error(P)}var d=function(r){var t=r.top,o=r.right,n=r.bottom,a=r.left,i=o-a,f=n-t,c={top:t,right:o,bottom:n,left:a,width:i,height:f,x:a,y:t,center:{x:(o+a)/2,y:(n+t)/2}};return c},R=function(r,t){return{top:r.top-t.top,left:r.left-t.left,bottom:r.bottom+t.bottom,right:r.right+t.right}},m=function(r,t){return{top:r.top+t.top,left:r.left+t.left,bottom:r.bottom-t.bottom,right:r.right-t.right}},T=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},l={top:0,right:0,bottom:0,left:0},x=function(r){var t=r.borderBox,o=r.margin,n=o===void 0?l:o,a=r.border,i=a===void 0?l:a,f=r.padding,c=f===void 0?l:f,w=d(R(t,n)),s=d(m(t,i)),y=d(m(s,c));return{marginBox:w,borderBox:d(t),paddingBox:s,contentBox:y,margin:n,border:i,padding:c}},u=function(r){var t=r.slice(0,-2),o=r.slice(-2);if(o!=="px")return 0;var n=Number(t);return isNaN(n)&&_(),n},E=function(){return{x:window.pageXOffset,y:window.pageYOffset}},W=function(r,t){var o=r.borderBox,n=r.border,a=r.margin,i=r.padding,f=T(o,t);return x({borderBox:f,border:n,margin:a,padding:i})},U=function(r,t){return t===void 0&&(t=E()),W(r,t)},F=function(r,t){var o={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},a={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return x({borderBox:r,margin:o,padding:n,border:a})},X=function(r){var t=r.getBoundingClientRect(),o=window.getComputedStyle(r);return F(t,o)},Y=function(r){var t=[],o=null,n=function(){for(var i=arguments.length,f=new Array(i),c=0;c<i;c++)f[c]=arguments[c];t=f,!o&&(o=requestAnimationFrame(function(){o=null,r.apply(void 0,t)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n};export{z as _,q as a,N as b,k as c,g as d,v as e,M as f,K as g,X as h,d as i,R as j,x as k,F as l,W as o,Y as r,D as u,U as w};
@@ -1,4 +1,4 @@
1
- import{m}from"./index-C_Wb23_l.js";import"./index-_8oRZcHP.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m}from"./index-Ci4hOeJE.js";import"./index-C4mOfCm_.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{aG as j,j as o,m as h,bn as p,r as i,v as S,C as x,ad as y,H as l,Y as v}from"./index-_8oRZcHP.js";const k=j(o.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function K({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.clearCache({input:{teamDid:r}});l.success(e("blocklet.config.clearCache.success",{count:s.removed?.length||0}))}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.clearCache.title"),description:e("blocklet.config.clearCache.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.clearCache.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}function z({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.rotateSessionKey({input:{teamDid:r}});l.success(e("blocklet.config.rotateSessionKey.success",{count:s.removed?.length||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.rotateSessionKey.title"),description:e("blocklet.config.rotateSessionKey.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.rotateSessionKey.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}export{K as C,k as P,z as R};
1
+ import{aG as j,j as o,m as h,bn as p,r as i,v as S,C as x,ad as y,H as l,Y as v}from"./index-C4mOfCm_.js";const k=j(o.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}));function K({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.clearCache({input:{teamDid:r}});l.success(e("blocklet.config.clearCache.success",{count:s.removed?.length||0}))}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.clearCache.title"),description:e("blocklet.config.clearCache.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.clearCache.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}function z({teamDid:r,size:a="small",...m}){const{t:e}=h(),{api:f}=p(),[u,t]=i.useState(!1),[n,c]=i.useState(null),C=()=>{t(!1),c(null)},d=async()=>{try{t(!0);const s=await f.rotateSessionKey({input:{teamDid:r}});l.success(e("blocklet.config.rotateSessionKey.success",{count:s.removed?.length||0})),setTimeout(()=>{window.location.reload()},1e3)}catch(s){l.error(v(s))}finally{t(!1),c(null)}},g={title:e("blocklet.config.rotateSessionKey.title"),description:e("blocklet.config.rotateSessionKey.description"),confirm:e("common.confirm"),cancel:e("common.cancel"),onConfirm:d,onCancel:C};return o.jsxs("div",{...m,children:[o.jsxs(S,{onClick:()=>c(g),color:"error",variant:"outlined",size:a,children:[u?o.jsx(x,{size:16,style:{marginRight:5}}):null,e("blocklet.config.rotateSessionKey.action")]}),n&&o.jsx(y,{title:n.title,description:n.description,confirm:n.confirm,cancel:n.cancel,onConfirm:n.onConfirm,onCancel:n.onCancel})]})}export{K as C,k as P,z as R};
@@ -1 +1 @@
1
- import{m as k,bn as C,r as p,j as t,T as l,G as c,s as v,o as a,J as I,N as m,bt as D,az as f,k as H,aE as L,d3 as M,p as z,l as N}from"./index-_8oRZcHP.js";import{H as U}from"./index-WCnj110a.js";import{u as B}from"./blocklet-CxgGBUvX.js";import{y as S}from"./index-luUossMM.js";import{x as T}from"./index-DRYJ0xIl.js";import{C as E,M as $}from"./memory-Bs7i-RSl.js";import{B as P}from"./status-RQRQdpaf.js";import{T as w,a as G}from"./ToggleButtonGroup-D0lgwkEn.js";import"./FilterList-C5IPtX8B.js";import"./CSSTransition-CEGsXFa4.js";import"./emotion-cache.browser.esm-2hka6KsY.js";import"./index-CF-9tLrO.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DMHly6fz.js";import"./TableSearch-B-T4xf1Y.js";import"./Search-BJ29HaSB.js";import"./Clear-BgmnunuK.js";import"./MoreVert-_f7HjK7U.js";import"./base-chart-CzIZI7kP.js";import"./index-Cul8PQ9A.js";import"./url-evaluation-C9ybfEbS.js";import"./getValidReactChildren-Cq-L2XG5.js";function R({blocklet:r,cpuHistory:x=[],memoryHistory:u=[],...g}){const{t:i}=k(),{info:d}=C(),{runtimeHistory:s}=B(),[y,j]=p.useState(null),n=p.useCallback(e=>r.status!=="running"?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=p.useCallback(e=>{j(e)},[]);return s.length===0?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...g,memoryHistory:u,cpuHistory:x,children:[t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(E,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:d.runtimeConfig?.blockletMaxMemoryLimit?T.parseSize(`${d.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:a.object.isRequired,cpuHistory:a.arrayOf(a.shape({date:a.number,value:a.number})),memoryHistory:a.arrayOf(a.shape({date:a.number,value:a.number}))};const W=v(l)``;function pe(){const{t:r,locale:x}=k(),[u,g]=p.useState(6),{blocklet:i,actions:{refreshBlocklet:d}}=B(),s=p.useMemo(()=>{const n=[];return I.forEachBlockletSync(i,(o,{ancestors:e,id:b,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:I.getDisplayName(i),id:b,name:I.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);p.useEffect(()=>{d({hours:u});const n=setInterval(()=>{d({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const y=n=>z(Number(n||0),{locale:N(x)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:b,ancestors:h}=s[n];return t.jsxs(m,{sx:{display:"flex",alignItems:"center",pl:b*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(m,{sx:{ml:1},children:o}),t.jsx(P,{variant:"pin",style:{marginLeft:8},status:e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):y(o?.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):H(o?.memoryUsage||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):`${(o?.cpuUsage||0).toFixed(1)}%`}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(m,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.pid}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.port}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(m,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(l,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&g(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(m,{children:t.jsx(R,{blocklet:i})}),t.jsx(m,{sx:{mt:3},children:t.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:x,data:s,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=v(l)``;export{pe as default};
1
+ import{m as k,bn as C,r as p,j as t,T as l,G as c,s as v,o as a,J as I,N as m,bt as D,az as f,k as H,aE as L,d3 as M,p as z,l as N}from"./index-C4mOfCm_.js";import{H as U}from"./index-EO2zxFAb.js";import{u as B}from"./blocklet-DmmVfj87.js";import{y as S}from"./index-BeHzPQZj.js";import{x as T}from"./index-DRYJ0xIl.js";import{C as E,M as $}from"./memory-oRFPonQg.js";import{B as P}from"./status-YKpSQSD8.js";import{T as w,a as G}from"./ToggleButtonGroup-ByMjc-sd.js";import"./FilterList-BZwgYvWc.js";import"./CSSTransition-KO9L5iBp.js";import"./emotion-cache.browser.esm-B0z8ZzTf.js";import"./index-TN8GUnjq.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CgwmaLj6.js";import"./TableSearch-DFzxfreZ.js";import"./Search-DhxCIV3r.js";import"./Clear-DMvY-1OH.js";import"./MoreVert-L8j8_EPz.js";import"./base-chart-CluI6A_u.js";import"./index-COoCcBTs.js";import"./url-evaluation-CNPtf5Sl.js";import"./getValidReactChildren--K7J75d3.js";function R({blocklet:r,cpuHistory:x=[],memoryHistory:u=[],...g}){const{t:i}=k(),{info:d}=C(),{runtimeHistory:s}=B(),[y,j]=p.useState(null),n=p.useCallback(e=>r.status!=="running"?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=p.useCallback(e=>{j(e)},[]);return s.length===0?t.jsx(l,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...g,memoryHistory:u,cpuHistory:x,children:[t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(E,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(c,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(c,{sx:{pt:"16px !important"},size:12,children:t.jsx(l,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(c,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:d.runtimeConfig?.blockletMaxMemoryLimit?T.parseSize(`${d.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:y,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:a.object.isRequired,cpuHistory:a.arrayOf(a.shape({date:a.number,value:a.number})),memoryHistory:a.arrayOf(a.shape({date:a.number,value:a.number}))};const W=v(l)``;function pe(){const{t:r,locale:x}=k(),[u,g]=p.useState(6),{blocklet:i,actions:{refreshBlocklet:d}}=B(),s=p.useMemo(()=>{const n=[];return I.forEachBlockletSync(i,(o,{ancestors:e,id:b,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:I.getDisplayName(i),id:b,name:I.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);p.useEffect(()=>{d({hours:u});const n=setInterval(()=>{d({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const y=n=>z(Number(n||0),{locale:N(x)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:b,ancestors:h}=s[n];return t.jsxs(m,{sx:{display:"flex",alignItems:"center",pl:b*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(m,{sx:{ml:1},children:o}),t.jsx(P,{variant:"pin",style:{marginLeft:8},status:e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):y(o?.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):H(o?.memoryUsage||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):`${(o?.cpuUsage||0).toFixed(1)}%`}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(m,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(m,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.pid}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return!e?.status||e.status!=="running"?t.jsx(f,{title:r("common.noData"),children:"--"}):o?.port}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(m,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(l,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&g(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(m,{children:t.jsx(R,{blocklet:i})}),t.jsx(m,{sx:{mt:3},children:t.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:x,data:s,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=v(l)``;export{pe as default};
@@ -0,0 +1 @@
1
+ import{r}from"./without-wallet-CIoRe4lL.js";var e=r();export{e as s};
@@ -0,0 +1 @@
1
+ import{gi as o}from"./index-C4mOfCm_.js";const e=o();export{e as b};
@@ -1 +1 @@
1
- import{r as s,g as p,J as a,j as o,o as m}from"./index-_8oRZcHP.js";import{T as c,M as n,t as u}from"./table-icons-oE5i83sx.js";import"./FilterList-C5IPtX8B.js";import"./CSSTransition-CEGsXFa4.js";import"./emotion-cache.browser.esm-2hka6KsY.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-C1oPRTDZ.js";import"./redux-DfszZyTl.js";import"./useThemeProps-DXk_HLKM.js";import"./index-CI3XNytL.js";import"./Add-C-JGR7WX.js";import"./url-evaluation-C9ybfEbS.js";import"./Clear-BgmnunuK.js";import"./Edit-qr4VAp95.js";import"./ChevronRight-BhZK0m02.js";import"./ChevronLeft-mBfiaSS1.js";import"./Search-BJ29HaSB.js";import"./ArrowDropDown-CFSWcN3J.js";function d({blocklet:i,...r}){const{t}=s.useContext(p),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
1
+ import{r as s,g as p,J as a,j as o,o as m}from"./index-C4mOfCm_.js";import{T as c,M as n,t as u}from"./table-icons-BJW-SCQe.js";import"./FilterList-BZwgYvWc.js";import"./CSSTransition-KO9L5iBp.js";import"./emotion-cache.browser.esm-B0z8ZzTf.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-ClEAlDQA.js";import"./redux-DfszZyTl.js";import"./useThemeProps-d3GR3gue.js";import"./index-DkZ-t39O.js";import"./Add-3_OvaFrP.js";import"./url-evaluation-CNPtf5Sl.js";import"./Clear-DMvY-1OH.js";import"./Edit-BQ0nYDQE.js";import"./ChevronRight-BgqwQ3It.js";import"./ChevronLeft-BPyHvtRf.js";import"./Search-DhxCIV3r.js";import"./ArrowDropDown-BS9tp8MS.js";function d({blocklet:i,...r}){const{t}=s.useContext(p),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
@@ -1 +1 @@
1
- import{j as r,T as o,az as p,o as i}from"./index-_8oRZcHP.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
1
+ import{j as r,T as o,az as p,o as i}from"./index-C4mOfCm_.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
@@ -1 +1 @@
1
- import{j as e,Q as T,R as I,S as w,U as c,a9 as O,T as x,N as h,eK as W,fe as z,bi as C,o as r}from"./index-_8oRZcHP.js";function L({fullWidth:m=!1,multiple:a=!1,required:i=!1,label:d="",placeholer:j="",options:t=[],helperText:b="",error:g=!1,margin:u="",textDirection:v="row",size:p,...f}){const y=t.find(l=>l.value===f.value)?.title;return e.jsxs(T,{margin:u,fullWidth:m,error:g,children:[e.jsx(I,{size:p,children:`${d}${i?"*":""}`}),e.jsxs(w,{multiple:a,input:e.jsx(z,{defaultValue:y,sx:{flex:1},required:i,label:d,inputProps:{margin:u},size:p}),renderValue:l=>{if(a)return e.jsx(h,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const o=t.find(S=>S.value===n);return o&&o.title&&e.jsx(W,{size:"small",label:o.title},n)})});const s=t.find(n=>n.value===l);return s&&s.title&&e.jsxs(h,{children:[e.jsx(x,{component:"span",children:s.title}),e.jsx(x,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:s.description})]})},...f,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!i&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsxs(c,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(O,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(C,{children:b})]})}L.propTypes={error:r.bool,required:r.bool,multiple:r.bool,fullWidth:r.bool,label:r.string,placeholer:r.string,options:r.array,helperText:r.string,margin:r.string,size:r.string,textDirection:r.oneOf("row","column")};export{L as S};
1
+ import{j as e,Q as T,R as I,S as w,U as c,a9 as O,T as x,N as h,eK as W,fe as z,bi as C,o as r}from"./index-C4mOfCm_.js";function L({fullWidth:m=!1,multiple:a=!1,required:i=!1,label:d="",placeholer:j="",options:t=[],helperText:b="",error:g=!1,margin:u="",textDirection:v="row",size:p,...f}){const y=t.find(l=>l.value===f.value)?.title;return e.jsxs(T,{margin:u,fullWidth:m,error:g,children:[e.jsx(I,{size:p,children:`${d}${i?"*":""}`}),e.jsxs(w,{multiple:a,input:e.jsx(z,{defaultValue:y,sx:{flex:1},required:i,label:d,inputProps:{margin:u},size:p}),renderValue:l=>{if(a)return e.jsx(h,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(n=>{const o=t.find(S=>S.value===n);return o&&o.title&&e.jsx(W,{size:"small",label:o.title},n)})});const s=t.find(n=>n.value===l);return s&&s.title&&e.jsxs(h,{children:[e.jsx(x,{component:"span",children:s.title}),e.jsx(x,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:s.description})]})},...f,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!i&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsxs(c,{sx:[{justifyContent:"center"},v==="column"?{flexDirection:"column",alignItems:"flex-start"}:{}],value:l.value,children:[e.jsx(O,{children:l.title}),l.description&&e.jsx(x,{variant:"body2",sx:{color:"text.secondary",maxWidth:"100%",whiteSpace:"normal"},children:l.description})]},l.value))]}),e.jsx(C,{children:b})]})}L.propTypes={error:r.bool,required:r.bool,multiple:r.bool,fullWidth:r.bool,label:r.string,placeholer:r.string,options:r.array,helperText:r.string,margin:r.string,size:r.string,textDirection:r.oneOf("row","column")};export{L as S};
@@ -1 +1 @@
1
- import{b as u,f2 as l,y as s,z as f,b9 as i,dy as m}from"./index-_8oRZcHP.js";import{a as c}from"./api-Dksjqhj9.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function y(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function h(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function w(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=y(t),e.name=await w(t),e.url=h(t),e.endpoint=t,e}async function k(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,w as d,y as e,U as f,k as g,P as h,_ as i,C as j};
1
+ import{b as u,f2 as l,y as s,z as f,b9 as i,dy as m}from"./index-C4mOfCm_.js";import{a as c}from"./api-BgPXZvcj.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function y(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function h(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function w(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=y(t),e.name=await w(t),e.url=h(t),e.endpoint=t,e}async function k(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,w as d,y as e,U as f,k as g,P as h,_ as i,C as j};
@@ -1 +1 @@
1
- import{aG as _,j as u,gu as b,fZ as P,ey as j,cE as p,m as x,r as k,C as V,az as h,o as w}from"./index-_8oRZcHP.js";import{u as E}from"./index-ZXKsu0i-.js";import{E as R}from"./ErrorOutline-DrbqnFJ2.js";import{r as T}from"./omit-DOuoJ5G3.js";const I=_(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})),F={width:24,height:24,body:'<path fill="currentColor" d="M12 14.975q-.2 0-.375-.062T11.3 14.7l-4.6-4.6q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"/>'};var a={},$;function z(){if($)return a;$=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=q,a.verifyVault=S;const v=l(T),g=l(b()),n=P(),s=j();function c(e,d){const o=(0,g.default)(e),y=d.sign(o);return{...e,$signature:y}}function q(e,d){return e.$signature?Promise.resolve(d.verify((0,g.default)((0,v.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function S(e,d,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=p.from(`vault:${d}`);for(let i=0;i<=t;i++)f=p.concat([f,p.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=p.concat([f,p.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var C=z();function D({vaults:l,appPid:v}){const{t:g}=x(),[n,s]=E({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{C.verifyVault(l,v,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,v,s]),n.verifying?u.jsx(V,{}):n.verified?u.jsx(h,{title:g("blocklet.config.vault.verified"),children:u.jsx(I,{fontSize:"small",color:"success"})}):u.jsx(h,{title:n.error,children:u.jsx(R,{color:"error"})})}D.propTypes={vaults:w.array.isRequired,appPid:w.string.isRequired};export{D as V,F as d};
1
+ import{aG as _,j as u,gu as b,fZ as P,ey as j,cE as p,m as x,r as k,C as V,az as h,o as w}from"./index-C4mOfCm_.js";import{u as E}from"./index-P46fTVgx.js";import{E as R}from"./ErrorOutline-DAMAJ1cH.js";import{r as T}from"./omit-B4Sq5gLR.js";const I=_(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})),F={width:24,height:24,body:'<path fill="currentColor" d="M12 14.975q-.2 0-.375-.062T11.3 14.7l-4.6-4.6q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"/>'};var a={},$;function z(){if($)return a;$=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=q,a.verifyVault=S;const v=l(T),g=l(b()),n=P(),s=j();function c(e,d){const o=(0,g.default)(e),y=d.sign(o);return{...e,$signature:y}}function q(e,d){return e.$signature?Promise.resolve(d.verify((0,g.default)((0,v.default)(e,"$signature")),e.$signature)):Promise.resolve(!1)}async function S(e,d,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=p.from(`vault:${d}`);for(let i=0;i<=t;i++)f=p.concat([f,p.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=p.concat([f,p.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var C=z();function D({vaults:l,appPid:v}){const{t:g}=x(),[n,s]=E({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{C.verifyVault(l,v,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,v,s]),n.verifying?u.jsx(V,{}):n.verified?u.jsx(h,{title:g("blocklet.config.vault.verified"),children:u.jsx(I,{fontSize:"small",color:"success"})}):u.jsx(h,{title:n.error,children:u.jsx(R,{color:"error"})})}D.propTypes={vaults:w.array.isRequired,appPid:w.string.isRequired};export{D as V,F as d};
@@ -1,4 +1,4 @@
1
- import{s as m,r as f,g as h,J as b,j as o,az as u,N as d,C as j,o as t}from"./index-_8oRZcHP.js";import{W as C}from"./url-evaluation-C9ybfEbS.js";const y={success:"#3ab39d",error:"#D0021B"},x="10px",k=m.div`
1
+ import{s as m,r as f,g as h,J as b,j as o,az as u,N as d,C as j,o as t}from"./index-C4mOfCm_.js";import{W as C}from"./url-evaluation-CNPtf5Sl.js";const y={success:"#3ab39d",error:"#D0021B"},x="10px",k=m.div`
2
2
  display: inline-block;
3
3
  min-width: ${e=>e.size||x};
4
4
  min-height: ${e=>e.size||x};
@@ -1,4 +1,4 @@
1
- import{j as e,aU as n,dc as c,o as p,s as d}from"./index-_8oRZcHP.js";import{S as u}from"./Switch-B-0geYaG.js";const o=c(t=>e.jsx(u,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:t=null,...i}){return t?e.jsx(n,{control:e.jsx(o,{...i}),...t}):e.jsx(o,{...i})}a.propTypes={labelProps:p.object};function m({labelProps:t,className:i,style:r,...l}){const s={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(b,{className:i,style:r,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:s,...l})})}m.propTypes=a.propTypes;const b=d.div`
1
+ import{j as e,aU as n,dc as c,o as p,s as d}from"./index-C4mOfCm_.js";import{S as u}from"./Switch-MO_QYoYi.js";const o=c(t=>e.jsx(u,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:t=null,...i}){return t?e.jsx(n,{control:e.jsx(o,{...i}),...t}):e.jsx(o,{...i})}a.propTypes={labelProps:p.object};function m({labelProps:t,className:i,style:r,...l}){const s={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(b,{className:i,style:r,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:s,...l})})}m.propTypes=a.propTypes;const b=d.div`
2
2
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
3
3
  > label {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{aG as lt,j as A,hC as ne,dd as be,dw as je,bd as xi,be as ke,dt as zt,dv as rt,im as ch,bW as Fe,bX as Ne,dK as we,r as O,d4 as dh,b8 as ae,eW as z,b$ as $e,T as _t,av as qn,io as fh,ce as Ti,da as Jn,gD as hd,dL as md,cf as tr,bT as ph,f as Zn,a4 as ir,cb as hh,cg as gd,dk as mh,o as Al,G as gh,dE as Qr,gF as bh,fk as vh,gE as yh,db as xa,dH as Ch,dF as Dh,fm as wh,fd as Ph,gG as Ll,gH as xh,F as Si,eE as Bl,hD as ki,dJ as Th,s as Sh,_ as kh}from"./index-_8oRZcHP.js";import{b as re,S as bd,a as Vt,T as At,c as pt,h as pn,i as ea,j as Ve,U as ta,W as ra,X as Ri,Y as na,Z as vd,_ as aa,g as oa,B as Rh,M as Eh,A as Mh,C as Oh,I as _h,F as Ih,$ as Ah,a0 as Lh,a1 as Bh,l as jh,k as Ct,J as yt,w as ia,n as Wt,t as yd,v as Ei,q as Cd,a2 as Fh,o as Nh,p as $h,E as lr,z as Ut,a3 as qh,a4 as zh,a5 as Vh,a6 as Wh,a7 as Uh,a8 as Hh,m as hn,x as Gh,s as Yh,a9 as Kh,aa as Qh,D as Dd,R as Xh,L as Jh,N as Zh,y as em,ab as tm,ac as rm,P as nm,ad as am,ae as om,O as im,G as lm,V as sm}from"./FilterList-C5IPtX8B.js";import{r as Pe,A as Mi,B as nt,C as zn,D as ui,t as Ce,E as wd,F as Pd,c as ci,o as um,G as Tt,H as cm,I as dm,J as di,K as xd,L as fm,M as pm,N as Td,O as Oi,P as jl,Q as hm,R as Fl,S as mm,T as gm,p as bm,a as Nl,b as vm,j as Ta,h as $l,m as ym,k as Pn,u as Yt,i as Cm,n as Dm,g as xn,f as Sa,d as Tn,s as ka,e as Ra,x as wm,z as Pm,q as xm,l as Tm,v as Sm,w as km,U as Rm,y as Em,V as Mm,W as Om}from"./index-DBii9-f-.js";import{_ as _m}from"./typeof-QjJsDpFa.js";import{f as Im,d as ql,c as Am,b as Re,_ as Te,a as Se,u as xe,g as le,r as nn,w as Vn,h as Sd,i as Ht,j as kd,k as Lm,l as Bm,o as fi}from"./raf-schd.esm-C1oPRTDZ.js";import{_ as te,b as zl,c as jm,a as Fm,d as Nm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-DXk_HLKM.js";import{C as $m}from"./CSSTransition-CEGsXFa4.js";import{a as Vl,b as qm,t as zm}from"./index-CI3XNytL.js";import{A as Vm}from"./Add-C-JGR7WX.js";import{D as Wm}from"./url-evaluation-C9ybfEbS.js";import{C as Wl}from"./Clear-BgmnunuK.js";import{E as Um}from"./Edit-qr4VAp95.js";import{N as Ul}from"./ChevronRight-BhZK0m02.js";import{P as Hm}from"./ChevronLeft-mBfiaSS1.js";import{S as Gm}from"./Search-BJ29HaSB.js";import{A as Ym}from"./ArrowDropDown-CFSWcN3J.js";const Km=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),Qm=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Xm=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Jm=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),Zm=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var eg=36e5;function tg(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*eg)}var rg=864e5;function ng(e,t){Pe(2,arguments);var r=zn(e),n=zn(t),a=r.getTime()-ui(r),o=n.getTime()-ui(n);return Math.round((a-o)/rg)}var ag=6e4;function og(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*ag)}function ig(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*1e3)}function Zr(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function lg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t);return r.getFullYear()-n.getFullYear()}function Hl(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Rd(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Hl(r,n),o=Math.abs(ng(r,n));r.setDate(r.getDate()-a*o);var i=+(Hl(r,n)===-a),s=a*(o-i);return s===0?0:s}function la(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Gl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},sg="trunc";function mn(e){return e?Gl[e]:Gl[sg]}function ug(e,t,r){Pe(2,arguments);var n=la(e,t)/wd;return mn(void 0)(n)}function cg(e,t,r){Pe(2,arguments);var n=la(e,t)/Pd;return mn(void 0)(n)}function pi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function dg(e){Pe(1,arguments);var t=Ce(e);return pi(t).getTime()===ci(t).getTime()}function Ed(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Zr(r,n),o=Math.abs(um(r,n)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var s=Zr(r,n)===-a;dg(Ce(e))&&o===1&&Zr(e,n)===1&&(s=!1),i=a*(o-Number(s))}return i===0?0:i}function fg(e,t,r){Pe(2,arguments);var n=Ed(e,t)/3;return mn(void 0)(n)}function pg(e,t,r){Pe(2,arguments);var n=la(e,t)/1e3;return mn(void 0)(n)}function hg(e,t,r){Pe(2,arguments);var n=Rd(e,t)/7;return mn(void 0)(n)}function mg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Zr(r,n),o=Math.abs(lg(r,n));r.setFullYear(1584),n.setFullYear(1584);var i=Zr(r,n)===-a,s=a*(o-Number(i));return s===0?0:s}function gg(e,t){var r;Pe(1,arguments);var n=e||{},a=Ce(n.start),o=Ce(n.end),i=o.getTime();if(!(a.getTime()<=i))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var l=Number((r=void 0)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)s.push(Ce(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}function bg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function vg(e,t){var r,n;Pe(1,arguments);var a=Ce(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((n=t?.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",d=o==="extended"?":":"";if(i!=="time"){var c=Tt(a.getDate(),2),f=Tt(a.getMonth()+1,2),b=Tt(a.getFullYear(),4);s="".concat(b).concat(l).concat(f).concat(l).concat(c)}if(i!=="date"){var C=a.getTimezoneOffset();if(C!==0){var m=Math.abs(C),v=Tt(Math.floor(m/60),2),g=Tt(m%60,2),p=C<0?"+":"-";u="".concat(p).concat(v,":").concat(g)}else u="Z";var h=Tt(a.getHours(),2),y=Tt(a.getMinutes(),2),S=Tt(a.getSeconds(),2),D=s===""?"":"T",P=[h,y,S].join(d);s="".concat(s).concat(D).concat(P).concat(u)}return s}function yg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Cg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function Dg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function wg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function Pg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t);return r.getTime()===n.getTime()}function Yl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Im(e))||t){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{aG as lt,j as A,hC as ne,dd as be,dw as je,bd as xi,be as ke,dt as zt,dv as rt,im as ch,bW as Fe,bX as Ne,dK as we,r as O,d4 as dh,b8 as ae,eW as z,b$ as $e,T as _t,av as qn,io as fh,ce as Ti,da as Jn,gD as hd,dL as md,cf as tr,bT as ph,f as Zn,a4 as ir,cb as hh,cg as gd,dk as mh,o as Al,G as gh,dE as Qr,gF as bh,fk as vh,gE as yh,db as xa,dH as Ch,dF as Dh,fm as wh,fd as Ph,gG as Ll,gH as xh,F as Si,eE as Bl,hD as ki,dJ as Th,s as Sh,_ as kh}from"./index-C4mOfCm_.js";import{b as re,S as bd,a as Vt,T as At,c as pt,h as pn,i as ea,j as Ve,U as ta,W as ra,X as Ri,Y as na,Z as vd,_ as aa,g as oa,B as Rh,M as Eh,A as Mh,C as Oh,I as _h,F as Ih,$ as Ah,a0 as Lh,a1 as Bh,l as jh,k as Ct,J as yt,w as ia,n as Wt,t as yd,v as Ei,q as Cd,a2 as Fh,o as Nh,p as $h,E as lr,z as Ut,a3 as qh,a4 as zh,a5 as Vh,a6 as Wh,a7 as Uh,a8 as Hh,m as hn,x as Gh,s as Yh,a9 as Kh,aa as Qh,D as Dd,R as Xh,L as Jh,N as Zh,y as em,ab as tm,ac as rm,P as nm,ad as am,ae as om,O as im,G as lm,V as sm}from"./FilterList-BZwgYvWc.js";import{r as Pe,A as Mi,B as nt,C as zn,D as ui,t as Ce,E as wd,F as Pd,c as ci,o as um,G as Tt,H as cm,I as dm,J as di,K as xd,L as fm,M as pm,N as Td,O as Oi,P as jl,Q as hm,R as Fl,S as mm,T as gm,p as bm,a as Nl,b as vm,j as Ta,h as $l,m as ym,k as Pn,u as Yt,i as Cm,n as Dm,g as xn,f as Sa,d as Tn,s as ka,e as Ra,x as wm,z as Pm,q as xm,l as Tm,v as Sm,w as km,U as Rm,y as Em,V as Mm,W as Om}from"./index-DBii9-f-.js";import{_ as _m}from"./typeof-QjJsDpFa.js";import{f as Im,d as ql,c as Am,b as Re,_ as Te,a as Se,u as xe,g as le,r as nn,w as Vn,h as Sd,i as Ht,j as kd,k as Lm,l as Bm,o as fi}from"./raf-schd.esm-ClEAlDQA.js";import{_ as te,b as zl,c as jm,a as Fm,d as Nm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-d3GR3gue.js";import{C as $m}from"./CSSTransition-KO9L5iBp.js";import{a as Vl,b as qm,t as zm}from"./index-DkZ-t39O.js";import{A as Vm}from"./Add-3_OvaFrP.js";import{D as Wm}from"./url-evaluation-CNPtf5Sl.js";import{C as Wl}from"./Clear-DMvY-1OH.js";import{E as Um}from"./Edit-BQ0nYDQE.js";import{N as Ul}from"./ChevronRight-BgqwQ3It.js";import{P as Hm}from"./ChevronLeft-BPyHvtRf.js";import{S as Gm}from"./Search-DhxCIV3r.js";import{A as Ym}from"./ArrowDropDown-BS9tp8MS.js";const Km=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),Qm=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Xm=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Jm=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),Zm=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var eg=36e5;function tg(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*eg)}var rg=864e5;function ng(e,t){Pe(2,arguments);var r=zn(e),n=zn(t),a=r.getTime()-ui(r),o=n.getTime()-ui(n);return Math.round((a-o)/rg)}var ag=6e4;function og(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*ag)}function ig(e,t){Pe(2,arguments);var r=nt(t);return Mi(e,r*1e3)}function Zr(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function lg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t);return r.getFullYear()-n.getFullYear()}function Hl(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Rd(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Hl(r,n),o=Math.abs(ng(r,n));r.setDate(r.getDate()-a*o);var i=+(Hl(r,n)===-a),s=a*(o-i);return s===0?0:s}function la(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Gl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},sg="trunc";function mn(e){return e?Gl[e]:Gl[sg]}function ug(e,t,r){Pe(2,arguments);var n=la(e,t)/wd;return mn(void 0)(n)}function cg(e,t,r){Pe(2,arguments);var n=la(e,t)/Pd;return mn(void 0)(n)}function pi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function dg(e){Pe(1,arguments);var t=Ce(e);return pi(t).getTime()===ci(t).getTime()}function Ed(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Zr(r,n),o=Math.abs(um(r,n)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var s=Zr(r,n)===-a;dg(Ce(e))&&o===1&&Zr(e,n)===1&&(s=!1),i=a*(o-Number(s))}return i===0?0:i}function fg(e,t,r){Pe(2,arguments);var n=Ed(e,t)/3;return mn(void 0)(n)}function pg(e,t,r){Pe(2,arguments);var n=la(e,t)/1e3;return mn(void 0)(n)}function hg(e,t,r){Pe(2,arguments);var n=Rd(e,t)/7;return mn(void 0)(n)}function mg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t),a=Zr(r,n),o=Math.abs(lg(r,n));r.setFullYear(1584),n.setFullYear(1584);var i=Zr(r,n)===-a,s=a*(o-Number(i));return s===0?0:s}function gg(e,t){var r;Pe(1,arguments);var n=e||{},a=Ce(n.start),o=Ce(n.end),i=o.getTime();if(!(a.getTime()<=i))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var l=Number((r=void 0)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)s.push(Ce(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}function bg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function vg(e,t){var r,n;Pe(1,arguments);var a=Ce(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((n=t?.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",d=o==="extended"?":":"";if(i!=="time"){var c=Tt(a.getDate(),2),f=Tt(a.getMonth()+1,2),b=Tt(a.getFullYear(),4);s="".concat(b).concat(l).concat(f).concat(l).concat(c)}if(i!=="date"){var C=a.getTimezoneOffset();if(C!==0){var m=Math.abs(C),v=Tt(Math.floor(m/60),2),g=Tt(m%60,2),p=C<0?"+":"-";u="".concat(p).concat(v,":").concat(g)}else u="Z";var h=Tt(a.getHours(),2),y=Tt(a.getMinutes(),2),S=Tt(a.getSeconds(),2),D=s===""?"":"T",P=[h,y,S].join(d);s="".concat(s).concat(D).concat(P).concat(u)}return s}function yg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Cg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function Dg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function wg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function Pg(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t);return r.getTime()===n.getTime()}function Yl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Im(e))||t){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{i||r.return==null||r.return()}finally{if(s)throw o}}}}function Md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Md=function(){return!!e})()}function Ee(e){var t=Md();return function(){var r,n=ql(e);if(t){var a=ql(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Am(this,r)}}var xg=10,Od=function(){function e(){Se(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Te(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),Tg=function(e){Re(r,e);var t=Ee(r);function r(n,a,o,i,s){var u;return Se(this,r),u=t.call(this),u.value=n,u.validateValue=a,u.setValue=o,u.priority=i,s&&(u.subPriority=s),u}return Te(r,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,i){return this.setValue(a,o,this.value,i)}}]),r}(Od),Sg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",xg),te(ne(n),"subPriority",-1),n}return Te(r,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}}]),r}(Od),_e=function(){function e(){Se(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Te(e,[{key:"run",value:function(r,n,a,o){var i=this.parse(r,n,a,o);return i?{setter:new Tg(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,n,a){return!0}}]),e}(),kg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",140),te(ne(n),"incompatibleTokens",["R","u","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(a,{width:"abbreviated"})||i.era(a,{width:"narrow"});case"GGGGG":return i.era(a,{width:"narrow"});case"GGGG":default:return i.era(a,{width:"wide"})||i.era(a,{width:"abbreviated"})||i.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,i){return o.era=i,a.setUTCFullYear(i,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Ge={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},gt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ye(e,t){return e&&{value:t(e.value),rest:e.rest}}function ze(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function bt(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:n*(a*wd+o*Pd+i*cm),rest:t.slice(r[0].length)}}function _d(e){return ze(Ge.anyDigitsSigned,e)}function He(e,t){switch(e){case 1:return ze(Ge.singleDigit,t);case 2:return ze(Ge.twoDigits,t);case 3:return ze(Ge.threeDigits,t);case 4:return ze(Ge.fourDigits,t);default:return ze(new RegExp("^\\d{1,"+e+"}"),t)}}function Wn(e,t){switch(e){case 1:return ze(Ge.singleDigitSigned,t);case 2:return ze(Ge.twoDigitsSigned,t);case 3:return ze(Ge.threeDigitsSigned,t);case 4:return ze(Ge.fourDigitsSigned,t);default:return ze(new RegExp("^-?\\d{1,"+e+"}"),t)}}function _i(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Id(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var o=n+50,i=Math.floor(o/100)*100,s=e>=o%100;a=e+i-(s?100:0)}return r?a:1-a}function Ad(e){return e%400===0||e%4===0&&e%100!==0}var Rg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",130),te(ne(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Ye(He(4,a),s);case"yo":return Ye(i.ordinalNumber(a,{unit:"year"}),s);default:return Ye(He(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,i){var s=a.getUTCFullYear();if(i.isTwoDigitYear){var u=Id(i.year,s);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var l=!("era"in o)||o.era===1?i.year:1-i.year;return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Eg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",130),te(ne(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Ye(He(4,a),s);case"Yo":return Ye(i.ordinalNumber(a,{unit:"year"}),s);default:return Ye(He(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,i,s){var u=dm(a,s);if(i.isTwoDigitYear){var l=Id(i.year,u);return a.setUTCFullYear(l,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),di(a,s)}var d=!("era"in o)||o.era===1?i.year:1-i.year;return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),di(a,s)}}]),r}(_e),Mg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",130),te(ne(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o){return Wn(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),xd(s)}}]),r}(_e),Og=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",130),te(ne(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o){return Wn(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,i){return a.setUTCFullYear(i,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),_g=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",120),te(ne(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"Q":case"QQ":return He(o.length,a);case"Qo":return i.ordinalNumber(a,{unit:"quarter"});case"QQQ":return i.quarter(a,{width:"abbreviated",context:"formatting"})||i.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(a,{width:"wide",context:"formatting"})||i.quarter(a,{width:"abbreviated",context:"formatting"})||i.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,i){return a.setUTCMonth((i-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Ig=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",120),te(ne(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"q":case"qq":return He(o.length,a);case"qo":return i.ordinalNumber(a,{unit:"quarter"});case"qqq":return i.quarter(a,{width:"abbreviated",context:"standalone"})||i.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(a,{width:"wide",context:"standalone"})||i.quarter(a,{width:"abbreviated",context:"standalone"})||i.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,i){return a.setUTCMonth((i-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Ag=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ne(n),"priority",110),n}return Te(r,[{key:"parse",value:function(a,o,i){var s=function(l){return l-1};switch(o){case"M":return Ye(ze(Ge.month,a),s);case"MM":return Ye(He(2,a),s);case"Mo":return Ye(i.ordinalNumber(a,{unit:"month"}),s);case"MMM":return i.month(a,{width:"abbreviated",context:"formatting"})||i.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(a,{width:"wide",context:"formatting"})||i.month(a,{width:"abbreviated",context:"formatting"})||i.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,i){return a.setUTCMonth(i,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Lg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",110),te(ne(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){var s=function(l){return l-1};switch(o){case"L":return Ye(ze(Ge.month,a),s);case"LL":return Ye(He(2,a),s);case"Lo":return Ye(i.ordinalNumber(a,{unit:"month"}),s);case"LLL":return i.month(a,{width:"abbreviated",context:"standalone"})||i.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(a,{width:"wide",context:"standalone"})||i.month(a,{width:"abbreviated",context:"standalone"})||i.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,i){return a.setUTCMonth(i,1),a.setUTCHours(0,0,0,0),a}}]),r}(_e);function Bg(e,t,r){Pe(2,arguments);var n=Ce(e),a=nt(t),o=fm(n,r)-a;return n.setUTCDate(n.getUTCDate()-o*7),n}var jg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",100),te(ne(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"w":return ze(Ge.week,a);case"wo":return i.ordinalNumber(a,{unit:"week"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,i,s){return di(Bg(a,i,s),s)}}]),r}(_e);function Fg(e,t){Pe(2,arguments);var r=Ce(e),n=nt(t),a=pm(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var Ng=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",100),te(ne(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"I":return ze(Ge.week,a);case"Io":return i.ordinalNumber(a,{unit:"week"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,i){return xd(Fg(a,i))}}]),r}(_e),$g=[31,28,31,30,31,30,31,31,30,31,30,31],qg=[31,29,31,30,31,30,31,31,30,31,30,31],zg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"subPriority",1),te(ne(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"d":return ze(Ge.date,a);case"do":return i.ordinalNumber(a,{unit:"date"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){var i=a.getUTCFullYear(),s=Ad(i),u=a.getUTCMonth();return s?o>=1&&o<=qg[u]:o>=1&&o<=$g[u]}},{key:"set",value:function(a,o,i){return a.setUTCDate(i),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Vg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"subpriority",1),te(ne(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"D":case"DD":return ze(Ge.dayOfYear,a);case"Do":return i.ordinalNumber(a,{unit:"date"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){var i=a.getUTCFullYear(),s=Ad(i);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,i){return a.setUTCMonth(0,i),a.setUTCHours(0,0,0,0),a}}]),r}(_e);function Ii(e,t,r){var n,a,o,i,s,u,l,d;Pe(2,arguments);var c=Td(),f=nt((n=(a=(o=(i=r?.weekStartsOn)!==null&&i!==void 0?i:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&a!==void 0?a:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=Ce(e),C=nt(t),m=b.getUTCDay(),v=C%7,g=(v+7)%7,p=(g<f?7:0)+C-m;return b.setUTCDate(b.getUTCDate()+p),b}var Wg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(a,{width:"wide",context:"formatting"})||i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ii(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Ug=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i,s){var u=function(d){var c=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+c};switch(o){case"e":case"ee":return Ye(He(o.length,a),u);case"eo":return Ye(i.ordinalNumber(a,{unit:"day"}),u);case"eee":return i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"});case"eeeee":return i.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(a,{width:"wide",context:"formatting"})||i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ii(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Hg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i,s){var u=function(d){var c=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+c};switch(o){case"c":case"cc":return Ye(He(o.length,a),u);case"co":return Ye(i.ordinalNumber(a,{unit:"day"}),u);case"ccc":return i.day(a,{width:"abbreviated",context:"standalone"})||i.day(a,{width:"short",context:"standalone"})||i.day(a,{width:"narrow",context:"standalone"});case"ccccc":return i.day(a,{width:"narrow",context:"standalone"});case"cccccc":return i.day(a,{width:"short",context:"standalone"})||i.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(a,{width:"wide",context:"standalone"})||i.day(a,{width:"abbreviated",context:"standalone"})||i.day(a,{width:"short",context:"standalone"})||i.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ii(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(_e);function Gg(e,t){Pe(2,arguments);var r=nt(t);r%7===0&&(r=r-7);var n=1,a=Ce(e),o=a.getUTCDay(),i=r%7,s=(i+7)%7,u=(s<n?7:0)+r-o;return a.setUTCDate(a.getUTCDate()+u),a}var Yg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",90),te(ne(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return He(o.length,a);case"io":return i.ordinalNumber(a,{unit:"day"});case"iii":return Ye(i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ye(i.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ye(i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ye(i.day(a,{width:"wide",context:"formatting"})||i.day(a,{width:"abbreviated",context:"formatting"})||i.day(a,{width:"short",context:"formatting"})||i.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,i){return a=Gg(a,i),a.setUTCHours(0,0,0,0),a}}]),r}(_e),Kg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",80),te(ne(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})||i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,i){return a.setUTCHours(_i(i),0,0,0),a}}]),r}(_e),Qg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",80),te(ne(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})||i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,i){return a.setUTCHours(_i(i),0,0,0),a}}]),r}(_e),Xg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",80),te(ne(n),"incompatibleTokens",["a","b","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(a,{width:"wide",context:"formatting"})||i.dayPeriod(a,{width:"abbreviated",context:"formatting"})||i.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,i){return a.setUTCHours(_i(i),0,0,0),a}}]),r}(_e),Jg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",70),te(ne(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"h":return ze(Ge.hour12h,a);case"ho":return i.ordinalNumber(a,{unit:"hour"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,i){var s=a.getUTCHours()>=12;return s&&i<12?a.setUTCHours(i+12,0,0,0):!s&&i===12?a.setUTCHours(0,0,0,0):a.setUTCHours(i,0,0,0),a}}]),r}(_e),Zg=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",70),te(ne(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"H":return ze(Ge.hour23h,a);case"Ho":return i.ordinalNumber(a,{unit:"hour"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,i){return a.setUTCHours(i,0,0,0),a}}]),r}(_e),eb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",70),te(ne(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"K":return ze(Ge.hour11h,a);case"Ko":return i.ordinalNumber(a,{unit:"hour"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,i){var s=a.getUTCHours()>=12;return s&&i<12?a.setUTCHours(i+12,0,0,0):a.setUTCHours(i,0,0,0),a}}]),r}(_e),tb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",70),te(ne(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"k":return ze(Ge.hour24h,a);case"ko":return i.ordinalNumber(a,{unit:"hour"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,i){var s=i<=24?i%24:i;return a.setUTCHours(s,0,0,0),a}}]),r}(_e),rb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",60),te(ne(n),"incompatibleTokens",["t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"m":return ze(Ge.minute,a);case"mo":return i.ordinalNumber(a,{unit:"minute"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,i){return a.setUTCMinutes(i,0,0),a}}]),r}(_e),nb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",50),te(ne(n),"incompatibleTokens",["t","T"]),n}return Te(r,[{key:"parse",value:function(a,o,i){switch(o){case"s":return ze(Ge.second,a);case"so":return i.ordinalNumber(a,{unit:"second"});default:return He(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,i){return a.setUTCSeconds(i,0),a}}]),r}(_e),ab=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",30),te(ne(n),"incompatibleTokens",["t","T"]),n}return Te(r,[{key:"parse",value:function(a,o){var i=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Ye(He(o.length,a),i)}},{key:"set",value:function(a,o,i){return a.setUTCMilliseconds(i),a}}]),r}(_e),ob=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",10),te(ne(n),"incompatibleTokens",["t","T","x"]),n}return Te(r,[{key:"parse",value:function(a,o){switch(o){case"X":return bt(gt.basicOptionalMinutes,a);case"XX":return bt(gt.basic,a);case"XXXX":return bt(gt.basicOptionalSeconds,a);case"XXXXX":return bt(gt.extendedOptionalSeconds,a);case"XXX":default:return bt(gt.extended,a)}}},{key:"set",value:function(a,o,i){return o.timestampIsSet?a:new Date(a.getTime()-i)}}]),r}(_e),ib=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",10),te(ne(n),"incompatibleTokens",["t","T","X"]),n}return Te(r,[{key:"parse",value:function(a,o){switch(o){case"x":return bt(gt.basicOptionalMinutes,a);case"xx":return bt(gt.basic,a);case"xxxx":return bt(gt.basicOptionalSeconds,a);case"xxxxx":return bt(gt.extendedOptionalSeconds,a);case"xxx":default:return bt(gt.extended,a)}}},{key:"set",value:function(a,o,i){return o.timestampIsSet?a:new Date(a.getTime()-i)}}]),r}(_e),lb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",40),te(ne(n),"incompatibleTokens","*"),n}return Te(r,[{key:"parse",value:function(a){return _d(a)}},{key:"set",value:function(a,o,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(_e),sb=function(e){Re(r,e);var t=Ee(r);function r(){var n;Se(this,r);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=t.call.apply(t,[this].concat(o)),te(ne(n),"priority",20),te(ne(n),"incompatibleTokens","*"),n}return Te(r,[{key:"parse",value:function(a){return _d(a)}},{key:"set",value:function(a,o,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(_e),ub={G:new kg,y:new Rg,Y:new Eg,R:new Mg,u:new Og,Q:new _g,q:new Ig,M:new Ag,L:new Lg,w:new jg,I:new Ng,d:new zg,D:new Vg,E:new Wg,e:new Ug,c:new Hg,i:new Yg,a:new Kg,b:new Qg,B:new Xg,h:new Jg,H:new Zg,K:new eb,k:new tb,m:new rb,s:new nb,S:new ab,X:new ob,x:new ib,t:new lb,T:new sb},cb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,db=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fb=/^'([^]*?)'?$/,pb=/''/g,hb=/\S/,mb=/[a-zA-Z]/;function gb(e,t,r,n){var a,o,i,s,u,l,d,c,f,b,C,m,v,g,p,h,y,S;Pe(3,arguments);var D=String(e),P=String(t),w=Td(),T=(a=(o=n?.locale)!==null&&o!==void 0?o:w.locale)!==null&&a!==void 0?a:Oi;if(!T.match)throw new RangeError("locale must contain match property");var k=nt((i=(s=(u=(l=n?.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&u!==void 0?u:w.firstWeekContainsDate)!==null&&s!==void 0?s:(f=w.locale)===null||f===void 0||(b=f.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=nt((C=(m=(v=(g=n?.weekStartsOn)!==null&&g!==void 0?g:n==null||(p=n.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&v!==void 0?v:w.weekStartsOn)!==null&&m!==void 0?m:(y=w.locale)===null||y===void 0||(S=y.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&C!==void 0?C:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return D===""?Ce(r):new Date(NaN);var M={firstWeekContainsDate:k,weekStartsOn:R,locale:T},E=[new Sg],_=P.match(db).map(function(W){var G=W[0];if(G in jl){var Z=jl[G];return Z(W,T.formatLong)}return W}).join("").match(cb),B=[],q=Yl(_),U;try{var V=function(){var G=U.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&hm(G)&&Fl(G,P,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&mm(G)&&Fl(G,P,e);var Z=G[0],he=ub[Z];if(he){var Q=he.incompatibleTokens;if(Array.isArray(Q)){var X=B.find(function(De){return Q.includes(De.token)||De.token===Z});if(X)throw new RangeError("The format string mustn't contain `".concat(X.fullToken,"` and `").concat(G,"` at the same time"))}else if(he.incompatibleTokens==="*"&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));B.push({token:Z,fullToken:G});var pe=he.run(D,G,T.match,M);if(!pe)return{v:new Date(NaN)};E.push(pe.setter),D=pe.rest}else{if(Z.match(mb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");if(G==="''"?G="'":Z==="'"&&(G=bb(G)),D.indexOf(G)===0)D=D.slice(G.length);else return{v:new Date(NaN)}}};for(q.s();!(U=q.n()).done;){var Y=V();if(_m(Y)==="object")return Y.v}}catch(W){q.e(W)}finally{q.f()}if(D.length>0&&hb.test(D))return new Date(NaN);var H=E.map(function(W){return W.priority}).sort(function(W,G){return G-W}).filter(function(W,G,Z){return Z.indexOf(W)===G}).map(function(W){return E.filter(function(G){return G.priority===W}).sort(function(G,Z){return Z.subPriority-G.subPriority})}).map(function(W){return W[0]}),x=Ce(r);if(isNaN(x.getTime()))return new Date(NaN);var F=gm(x,ui(x)),N={},I=Yl(H),L;try{for(I.s();!(L=I.n()).done;){var j=L.value;if(!j.validate(F,M))return new Date(NaN);var $=j.set(F,N,M);Array.isArray($)?(F=$[0],bg(N,$[1])):F=$}}catch(W){I.e(W)}finally{I.f()}return F}function bb(e){return e.match(fb)[1].replace(pb,"'")}function Kl(e){Pe(1,arguments);var t=Ce(e);return t.setMinutes(0,0,0),t}function vb(e,t){Pe(2,arguments);var r=Kl(e),n=Kl(t);return r.getTime()===n.getTime()}function yb(e,t){Pe(2,arguments);var r=Ce(e),n=Ce(t);return r.getFullYear()===n.getFullYear()}function Cb(e,t){Pe(2,arguments);var r=Ce(e),n=nt(t);return r.setDate(n),r}function Db(e,t){Pe(2,arguments);var r=Ce(e),n=nt(t);return r.setHours(n),r}function wb(e,t){Pe(2,arguments);var r=Ce(e),n=nt(t);return r.setMinutes(n),r}function Pb(e,t){Pe(2,arguments);var r=Ce(e),n=nt(t);return r.setSeconds(n),r}var Ea={},Ma={exports:{}},Ql;function qe(){return Ql||(Ql=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)({}).hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}var mr={},Oa={},_a={},Ia={},Xl;function xb(){return Xl||(Xl=1,function(e){var t=re();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(qe()),n=t(bd()),a=t(be()),o=t(je()),i=Vt();function s(l){var d=(0,i.useTheme)();return a.default.createElement("div",{ref:l.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:d.palette.background.paper,opacity:.7}},a.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},a.default.createElement(n.default,null)))}s.propTypes={theme:o.default.any};var u=a.default.forwardRef(function(d,c){return a.default.createElement(s,(0,r.default)({},d,{forwardedRef:c}))});e.default=u}(Ia)),Ia}var Aa={},La={},ft={},Ba={exports:{}},ja={exports:{}},Fa={exports:{}},Jl;function Tb(){return Jl||(Jl=1,function(e){var t=At().default;function r(n,a){if(t(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,a||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Fa)),Fa.exports}var Zl;function Ld(){return Zl||(Zl=1,function(e){var t=At().default,r=Tb();function n(a){var o=r(a,"string");return t(o)=="symbol"?o:o+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ja)),ja.exports}var es;function Qe(){return es||(es=1,function(e){var t=Ld();function r(n,a,o){return(a=t(a))in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Ba)),Ba.exports}const Sb={},ts=e=>{let t;const r=new Set,n=(d,c)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const b=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(C=>C(t,b))}},a=()=>t,u={setState:n,getState:a,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(Sb?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},l=t=e(n,a,u);return u},Bd=e=>e?ts(e):ts;var Na={exports:{}},$a={},qa={exports:{}},za={};/**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.production.min.js