@abtnode/blocklet-services 1.16.42-beta-20250408-050422-92c8eef3 → 1.16.42-beta-20250408-072924-4b6a877a

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 (70) hide show
  1. package/dist/assets/{access-control-Bp6fLweq.js → access-control-BCncVk0F.js} +1 -1
  2. package/dist/assets/{add-component-core-e0A2r7mm.js → add-component-core-DmGxO5Gt.js} +15 -14
  3. package/dist/assets/{add-resource-tZ8OPVzc.js → add-resource-CJU0s3QQ.js} +1 -1
  4. package/dist/assets/{advanced-vuRNp9gZ.js → advanced-0AsHuHlx.js} +1 -1
  5. package/dist/assets/{appearance-CFcde0Qw.js → appearance-Bw3QRuyJ.js} +1 -1
  6. package/dist/assets/{audit-logs-C51Acdy3.js → audit-logs-7qd9PUxe.js} +1 -1
  7. package/dist/assets/{branding-PF95Dp3j.js → branding-BZ7cTCXC.js} +2 -2
  8. package/dist/assets/{branding-B4OmIbxT.js → branding-NhPjoLxG.js} +1 -1
  9. package/dist/assets/{bundle-avatar-xyEwd0kl.js → bundle-avatar-Ue_TyBqv.js} +1 -1
  10. package/dist/assets/{complete-BnqT6D6R.js → complete-Tyckm-4M.js} +1 -1
  11. package/dist/assets/{component-BbpzttYw.js → component-D1Fsjeuf.js} +1 -1
  12. package/dist/assets/{config-BRGxJ2eh.js → config-DoKTS37s.js} +1 -1
  13. package/dist/assets/{config-navigation-Bp_tpZTf.js → config-navigation-DO0UJG5K.js} +3 -3
  14. package/dist/assets/{config-space-DLpGXOv3.js → config-space-BNW8EpAm.js} +1 -1
  15. package/dist/assets/{confirm-DMfA-cen.js → confirm-C-7TGRgW.js} +1 -1
  16. package/dist/assets/{connect-DrhKSeJG.js → connect-BLlTMxXk.js} +1 -1
  17. package/dist/assets/{connect-BbnPPMBE.js → connect-ZYp_tU0D.js} +1 -1
  18. package/dist/assets/{connect-to-BWtx4RxY.js → connect-to-h4a_nz1y.js} +1 -1
  19. package/dist/assets/{dashboard-D1IAu0pg.js → dashboard-B9esZ0M-.js} +3 -3
  20. package/dist/assets/{delete-confirm-BOPmqCDE.js → delete-confirm-C_4zg33B.js} +1 -1
  21. package/dist/assets/{domain-C058D5cL.js → domain-3zeLA-KU.js} +1 -1
  22. package/dist/assets/{domain-action-card-hJylsZDf.js → domain-action-card-BQASO--e.js} +1 -1
  23. package/dist/assets/{domains-CHSNHTzm.js → domains-DTccX50O.js} +1 -1
  24. package/dist/assets/{email-DTd5dLMw.js → email-hHeKrz9y.js} +1 -1
  25. package/dist/assets/{exchange-passport-CUoEzJAn.js → exchange-passport-Bt6kGDIV.js} +1 -1
  26. package/dist/assets/{fuel-D1-QzTfA.js → fuel-CDRdGVHi.js} +1 -1
  27. package/dist/assets/{index-Bn6qMcz9.js → index-BKSHPTts.js} +1 -1
  28. package/dist/assets/{index-DUqEJSX8.js → index-BnqjZUkY.js} +1 -1
  29. package/dist/assets/{index-Bcipz7Xh.js → index-Br2EGTW4.js} +1 -1
  30. package/dist/assets/{index-Bgbz960f.js → index-BvyKTiWe.js} +1 -1
  31. package/dist/assets/{index-Dja0MgHa.js → index-BvyQFiS_.js} +3 -3
  32. package/dist/assets/{index-DvX6CH9d.js → index-C07T63uR.js} +1 -1
  33. package/dist/assets/{index-Tc7h84RU.js → index-C7X4Y3ad.js} +1 -1
  34. package/dist/assets/{index-DOTrxWIb.js → index-Cc1EUVvj.js} +1 -1
  35. package/dist/assets/{index-r4W5xGua.js → index-CfxqxAZd.js} +1 -1
  36. package/dist/assets/{index-DY7FozBP.js → index-CgA3yF4z.js} +1 -1
  37. package/dist/assets/{index-BQddb9SV.js → index-D1iI5v2e.js} +4 -4
  38. package/dist/assets/{index-BmIHv0Ao.js → index-IaaNyqXG.js} +1 -1
  39. package/dist/assets/{index-Biod65HH.js → index-IqOEMaG7.js} +1 -1
  40. package/dist/assets/{index--QvOAcHK.js → index-_IytyGrM.js} +22 -20
  41. package/dist/assets/{index-COXsk6dn.js → index-njqCeZqY.js} +1 -1
  42. package/dist/assets/{invitation-CLrDi0w3.js → invitation-CXLQmmNG.js} +1 -1
  43. package/dist/assets/{invite-BlqLHSHA.js → invite-BZt83O3H.js} +1 -1
  44. package/dist/assets/{issue-passport-0xgFeiRm.js → issue-passport-CrCyp4XY.js} +1 -1
  45. package/dist/assets/{item-DFeRxihy.js → item-BMOFJ72c.js} +1 -1
  46. package/dist/assets/{layout-BQ9Qhixa.js → layout-DdaOYlXg.js} +1 -1
  47. package/dist/assets/{list-BO1EU3G2.js → list-Df4vHNiY.js} +1 -1
  48. package/dist/assets/{log-Qir3lxDV.js → log-B1ojA9lx.js} +1 -1
  49. package/dist/assets/{login-C780ZUv4.js → login-BkqQC8IM.js} +1 -1
  50. package/dist/assets/{logo-uploader-gCM0_9lk.js → logo-uploader-D6hawLMA.js} +2 -2
  51. package/dist/assets/{lost-passport-ieF1z1Fq.js → lost-passport-CnWrxxcj.js} +1 -1
  52. package/dist/assets/{overview-CqE5Qd7t.js → overview-vOO_cwfO.js} +1 -1
  53. package/dist/assets/{publish-resource-BFGnGhHk.js → publish-resource-OeE_Sv8p.js} +1 -1
  54. package/dist/assets/{relative-time-BUHtgSDe.js → relative-time-BnXa0sIK.js} +1 -1
  55. package/dist/assets/{runtime-B5YY9Qgr.js → runtime-DmT1MY2S.js} +1 -1
  56. package/dist/assets/{security-Dad28Y4W.js → security-CQrJSvNH.js} +1 -1
  57. package/dist/assets/{setup-DEJbIHrj.js → setup-CH6etNsI.js} +3 -3
  58. package/dist/assets/{spaces-CcqmBId2.js → spaces-BBAv0vs3.js} +1 -1
  59. package/dist/assets/{start-9UMY8DNC.js → start-BC37Pmt4.js} +1 -1
  60. package/dist/assets/{status-BFrUchan.js → status-Dz-0ViGp.js} +1 -1
  61. package/dist/assets/{step-actions-DZ9FTtHm.js → step-actions-BIyonirh.js} +1 -1
  62. package/dist/assets/{traffic-DPZuINtB.js → traffic-D72BUoUS.js} +1 -1
  63. package/dist/assets/{transfer-PY0D3H2H.js → transfer-DCQoefO3.js} +1 -1
  64. package/dist/assets/{unsubscribe-B3uFNG06.js → unsubscribe-DiXKNJyN.js} +1 -1
  65. package/dist/assets/{user-center-C2i8ji9Q.js → user-center-BjZ6YsoY.js} +1 -1
  66. package/dist/assets/{util-BL-qFiRh.js → util-CllYCEyt.js} +1 -1
  67. package/dist/assets/{wrap-locale-BFOSjPWa.js → wrap-locale-Bn6cqCkC.js} +1 -1
  68. package/dist/index.html +1 -1
  69. package/dist/service-worker.js +1 -1
  70. package/package.json +33 -33
@@ -1 +1 @@
1
- import{t as B,j as h}from"./vendor-mui-core-C-PhacC8.js";import{l as L,r}from"./vendor-react-DoD83n6N.js";import{y as W,D as O}from"./vendor-utils-CRBr0QUY.js";import{u as A,aj as T}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{l as w,u as _,s as F}from"./vendor-hooks-DtYI0-rF.js";import{A as K,S as $}from"./add-component-core-e0A2r7mm.js";import{o as z,M as G}from"./index--QvOAcHK.js";import"./lottie-web-B6s7dDoL.js";import"./item-DFeRxihy.js";import"./vendor-arcblock-D8eCUoJY.js";import"./format-error-LAoTjvJe.js";import"./Launch-DQCS90NS.js";import"./Done-D9sjuoNQ.js";import"./DeleteOutline-DT1G93_1.js";import"./delete-confirm-BOPmqCDE.js";import"./click-to-copy-CkbZjUXU.js";import"./shorten-label-C642GTxb.js";import"./confirm-DMfA-cen.js";import"./session-Clq9kJzg.js";import"./get-safe-url-M62JolcK.js";import"./did-address-_2BUka_2.js";import"./launch-result-message-DvcvHHH1.js";import"./page-header-D3dCkXy7.js";import"./config-space-DLpGXOv3.js";import"./spaces-CcqmBId2.js";import"./api-DlN8K5Jg.js";import"./logo-uploader-gCM0_9lk.js";import"./index-tUQxVYYQ.js";import"./index-Biod65HH.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./index-CKv9guDo.js";import"./index-B9lZsGBd.js";import"./index-CqRb1YIC.js";import"./useLocalStorage-C1_Fkr6_.js";import"./util-BL-qFiRh.js";import"./use-mobile-B_Gqv6b6.js";import"./content-layout-uPtoKIAs.js";import"./connect-to-BWtx4RxY.js";import"./ArrowDropDown-WXsjNpSB.js";import"./ChevronLeft-DeulnkX8.js";import"./ChevronRight-CACHNf5Y.js";function Be(){var d;const{t:f}=A(),{blocklet:i}=z(),{componentDid:s}=L(),g=B(e=>e.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",c=o.searchParams.get("resourceType")||"",p=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",y=o.searchParams.get("showFromUrl")!=="false",S=o.searchParams.get("showResourcesSwitch")!=="false",D=o.searchParams.get("enableRunBackground")!=="false",E=o.searchParams.get("showCategory")!=="false",n=(d=i==null?void 0:i.meta)==null?void 0:d.did,m=R.split(",").filter(Boolean).map(e=>{try{return new URL(e.startsWith("http")?e:`https://${e}`).origin}catch(t){return console.error(t),null}}).filter(Boolean),[P,U]=r.useState(m.map(e=>({url:e,name:e.replace("https://","")}))),[b,j]=r.useState(null),[x,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const e=await Promise.all(m.map(async t=>{const a=W(t,"/api/store.json"),{data:v}=await O.get(a);return{url:t,name:v.name}}));U(e||[])}catch(e){console.error(e)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const e=G();return n&&e.connect(),()=>{n&&e.isConnected()&&e.disconnect()}},[n]),w(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=_(e=>{var t,a;((t=e.data)==null?void 0:t.event)==="resourceDialog.select"&&((a=e.data)==null?void 0:a.componentDid)===s&&(j(e.data.data),M(e.data.storeUrl))});w(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const u=({inDialog:e=!0}={})=>h.jsx(K,{stores:P,selectedMeta:b,storeUrl:x,resourceType:c,resourceDid:p,mode:"embed",inDialog:e,storageKey:$(`${c}+${p}`),showResourcesSwitch:S,showFromUrl:y,enableRunBackground:D,showCategory:E});return C?h.jsx(T,{className:"resource-dialog",title:f("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:g?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(e,t)=>{t!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:u()}):u({inDialog:!1})}export{Be as default};
1
+ import{t as B,j as h}from"./vendor-mui-core-C-PhacC8.js";import{l as L,r}from"./vendor-react-DoD83n6N.js";import{y as W,D as O}from"./vendor-utils-CRBr0QUY.js";import{u as A,aj as T}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{l as w,u as _,s as F}from"./vendor-hooks-DtYI0-rF.js";import{A as K,S as $}from"./add-component-core-DmGxO5Gt.js";import{o as z,M as G}from"./index-_IytyGrM.js";import"./lottie-web-B6s7dDoL.js";import"./item-BMOFJ72c.js";import"./vendor-arcblock-D8eCUoJY.js";import"./format-error-LAoTjvJe.js";import"./Launch-DQCS90NS.js";import"./Done-D9sjuoNQ.js";import"./DeleteOutline-DT1G93_1.js";import"./delete-confirm-C_4zg33B.js";import"./click-to-copy-CkbZjUXU.js";import"./shorten-label-C642GTxb.js";import"./confirm-C-7TGRgW.js";import"./session-Clq9kJzg.js";import"./get-safe-url-M62JolcK.js";import"./did-address-_2BUka_2.js";import"./launch-result-message-DvcvHHH1.js";import"./page-header-D3dCkXy7.js";import"./config-space-BNW8EpAm.js";import"./spaces-BBAv0vs3.js";import"./api-DlN8K5Jg.js";import"./logo-uploader-D6hawLMA.js";import"./index-tUQxVYYQ.js";import"./index-IqOEMaG7.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./index-CKv9guDo.js";import"./index-B9lZsGBd.js";import"./index-CqRb1YIC.js";import"./useLocalStorage-C1_Fkr6_.js";import"./util-CllYCEyt.js";import"./use-mobile-DudfIz3d.js";import"./content-layout-uPtoKIAs.js";import"./connect-to-h4a_nz1y.js";import"./ArrowDropDown-WXsjNpSB.js";import"./ChevronLeft-DeulnkX8.js";import"./ChevronRight-CACHNf5Y.js";function Be(){var d;const{t:f}=A(),{blocklet:i}=z(),{componentDid:s}=L(),g=B(e=>e.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",c=o.searchParams.get("resourceType")||"",p=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",y=o.searchParams.get("showFromUrl")!=="false",S=o.searchParams.get("showResourcesSwitch")!=="false",D=o.searchParams.get("enableRunBackground")!=="false",E=o.searchParams.get("showCategory")!=="false",n=(d=i==null?void 0:i.meta)==null?void 0:d.did,m=R.split(",").filter(Boolean).map(e=>{try{return new URL(e.startsWith("http")?e:`https://${e}`).origin}catch(t){return console.error(t),null}}).filter(Boolean),[P,U]=r.useState(m.map(e=>({url:e,name:e.replace("https://","")}))),[b,j]=r.useState(null),[x,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const e=await Promise.all(m.map(async t=>{const a=W(t,"/api/store.json"),{data:v}=await O.get(a);return{url:t,name:v.name}}));U(e||[])}catch(e){console.error(e)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const e=G();return n&&e.connect(),()=>{n&&e.isConnected()&&e.disconnect()}},[n]),w(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=_(e=>{var t,a;((t=e.data)==null?void 0:t.event)==="resourceDialog.select"&&((a=e.data)==null?void 0:a.componentDid)===s&&(j(e.data.data),M(e.data.storeUrl))});w(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const u=({inDialog:e=!0}={})=>h.jsx(K,{stores:P,selectedMeta:b,storeUrl:x,resourceType:c,resourceDid:p,mode:"embed",inDialog:e,storageKey:$(`${c}+${p}`),showResourcesSwitch:S,showFromUrl:y,enableRunBackground:D,showCategory:E});return C?h.jsx(T,{className:"resource-dialog",title:f("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:g?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(e,t)=>{t!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:u()}):u({inDialog:!1})}export{Be as default};
@@ -1,4 +1,4 @@
1
- import{r as Ee,e as qe}from"./vendor-react-DoD83n6N.js";import{a2 as vt,j as L,a3 as Ve,E as Oe,a4 as U,x as cr,T as ze,aa as Yt,bp as ur,bM as fr,bs as hr,ad as dr,A as mr,ae as pr,M as gr,K as vr,bq as mt}from"./vendor-mui-core-C-PhacC8.js";import{A as Be,D as yr,f as br,aB as _r,m as wr,au as xr,w as Zt,Q as Qt,h as Ne,O as Xt}from"./index--QvOAcHK.js";import{P as Mr,w as Ke}from"./permission-ClAqVelD.js";import{r as yt,u as Je,B as Te,V as Ie,al as er,k as $r,aj as tr,bS as kr,aE as jr,ai as De,m as Sr,P as Ht,aZ as Rr}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{v as rr}from"./vendor-hooks-DtYI0-rF.js";import{C as bt}from"./confirm-DMfA-cen.js";import{f as Fe}from"./format-error-LAoTjvJe.js";import{_ as Ar}from"./useSetState-BL3ktMon.js";import{u as sr}from"./session-Clq9kJzg.js";import{C as Or}from"./click-to-copy-CkbZjUXU.js";import{u as nr}from"./dashboard-D1IAu0pg.js";import{r as Er,aF as Cr}from"./vendor-utils-CRBr0QUY.js";import{I as Dr}from"./index-CqRb1YIC.js";import{W as Ir}from"./did-address-_2BUka_2.js";import{V as Tr}from"./status-BFrUchan.js";import"./vendor-arcblock-D8eCUoJY.js";import"./lottie-web-B6s7dDoL.js";import"./useLocalStorage-C1_Fkr6_.js";import"./PlayArrow-BEUAi9Bt.js";import"./get-safe-url-M62JolcK.js";import"./index-Tc7h84RU.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./InfoOutlined-DFTm-vVr.js";import"./use-mobile-DudfIz3d.js";import"./omit-r8RGw6zD.js";var _t={},Nr=vt;Object.defineProperty(_t,"__esModule",{value:!0});var ir=_t.default=void 0,Lr=Nr(yt()),qr=L;ir=_t.default=(0,Lr.default)((0,qr.jsx)("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}),"VolunteerActivismOutlined");var wt={},Pr=vt;Object.defineProperty(wt,"__esModule",{value:!0});var xt=wt.default=void 0,zr=Pr(yt()),Gt=L;xt=wt.default=(0,zr.default)([(0,Gt.jsx)("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),(0,Gt.jsx)("circle",{cx:"16",cy:"12",r:"1.5"},"1")],"AccountBalanceWalletOutlined");const Br=localStorage.getItem("enableDebug")==="true";function Fr({teamDid:I,size:P="small",...F}){const{t:T}=Je(),{api:N}=Be(),[p,w]=Ee.useState(!1),[l,$]=Ee.useState(null),y=()=>{w(!1),$(null)},m=async()=>{var a;try{w(!0);const i=await N.clearCache({input:{teamDid:I}});Ie.success(T("blocklet.config.clearCache.success",{count:((a=i.removed)==null?void 0:a.length)||0}))}catch(i){Ie.error(Fe(i))}finally{w(!1),$(null)}},e={title:T("blocklet.config.clearCache.title"),description:T("blocklet.config.clearCache.description"),confirm:T("common.confirm"),cancel:T("common.cancel"),onConfirm:m,onCancel:y};return L.jsxs("div",{...F,children:[L.jsxs(Te,{onClick:()=>$(e),color:"error",variant:"outlined",size:P,children:[p?L.jsx(Ve,{size:16,style:{marginRight:5}}):null,T("blocklet.config.clearCache.action")]}),l&&L.jsx(bt,{title:l.title,description:l.description,confirm:l.confirm,cancel:l.cancel,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}var Mt={},Jr=vt;Object.defineProperty(Mt,"__esModule",{value:!0});var ar=Mt.default=void 0,Ur=Jr(yt()),Vr=L;ar=Mt.default=(0,Ur.default)((0,Vr.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"KeyOutlined");function $t({onChange:I,disabled:P,loading:F,inService:T}){const{t:N}=Je(),{api:p,session:w}=sr(),{blocklet:l}=yr(),[$,y]=Ar({newAppSk:"",isConnectOpen:!1,confirmDialogOpen:!1}),m=()=>y({isConnectOpen:!1}),e=()=>{if(br.isInProgress(l.status)){Ie.error(N("blocklet.error.isInProgress"));return}y({confirmDialogOpen:!0})};return L.jsxs(U,{className:"config-form",mt:2,children:[L.jsxs(U,{className:"config-item",children:[L.jsxs(U,{className:"config-label",mb:0,children:[N("blocklet.config.migrate.button"),L.jsx(U,{className:"config-desc",children:N("blocklet.config.migrate.description")})]}),L.jsxs(cr,{style:{flexShrink:0},variant:"contained",color:"primary",size:"small","data-cy":"config-did",disabled:P||F,onClick:e,children:[L.jsx(ar,{style:{fontSize:"1.3em",marginRight:4}}),N("blocklet.config.migrate.button")]})]}),$.isConnectOpen&&L.jsx(er,{popup:!0,open:$.isConnectOpen,forceConnected:!1,saveConnect:!1,action:"rotate-key-pair",checkFn:p.get,checkTimeout:5*60*1e3,onSuccess:()=>{I(),T&&w.logout(),m()},extraParams:{appDid:l.appDid},messages:{title:N("setup.keyPair.title"),scan:N("setup.keyPair.scan"),confirm:N("setup.keyPair.confirm"),success:N("setup.keyPair.success")},onClose:m}),$.confirmDialogOpen&&L.jsx(bt,{title:L.jsx(ze,{sx:{fontSize:"20px",fontWeight:"500"},children:N("blocklet.config.migrate.title")}),description:L.jsx(ze,{sx:{fontSize:"14px",color:"#9397A1"},children:N("blocklet.config.migrate.confirm")}),confirm:N("common.confirm"),cancel:N("common.cancel"),onConfirm:()=>y({confirmDialogOpen:!1,isConnectOpen:!0}),onCancel:()=>y({confirmDialogOpen:!1})})]})}$t.propTypes={onChange:Oe.func,disabled:Oe.bool,loading:Oe.bool,inService:Oe.bool};$t.defaultProps={onChange:()=>{},disabled:!1,loading:!1,inService:!1};function kt({onCancel:I,onSuccess:P,onError:F}){const{api:T}=Ee.useContext($r),[N,p]=Ee.useState(!1),{t:w,locale:l}=Je(),[$,y]=Ee.useState(""),[m,e]=Ee.useState(!1),[a,i]=Ee.useState(0),[r,t]=Ee.useState(""),{endpoint:c}=nr(),[s,o]=Ee.useState(!1),h=f=>{y(null),p(!0);try{t(f.result),i(j.length-1)}catch(v){const x=Fe(v);y(x),F(v)}finally{p(!1)}},g=()=>{e(!0),i(1)},b=()=>{e(!1),i(0)},j=[{body:L.jsxs(U,{children:[L.jsx(ze,{children:w("team.transferApp.transferDialog.tips.progress")}),L.jsx(ze,{mt:3,mb:2,children:w("team.transferApp.transferDialog.tips.newOwnerPermissions")})]}),cancel:w("common.cancel"),confirm:w("team.transferApp.transferDialog.createTransferLink"),onCancel:I,onConfirm:g},{cancel:w("common.cancel"),confirm:w("team.transferApp.transferDialog.createTransferLink"),body:()=>L.jsx(er,{action:"transfer-app-owner",open:m,locale:l,checkFn:T.get,onClose:b,onSuccess:h,checkTimeout:5*60*1e3,extraParams:{},messages:{title:w("team.transferApp.connectDialog.title"),scan:w("team.transferApp.connectDialog.scan"),confirm:w("team.transferApp.connectDialog.confirm"),success:w("team.transferApp.connectDialog.success")},popup:!0})},{body:()=>{const f=_r({transferId:r.transferId,endpoint:c});return L.jsxs(L.Fragment,{children:[L.jsx(U,{component:Pe,dangerouslySetInnerHTML:{__html:w("team.transferApp.transferDialog.createSuccessTip1")}}),L.jsx(U,{component:Pe,mt:2,children:L.jsx(Pe,{children:w("team.transferApp.transferDialog.createSuccessTip3")})}),L.jsxs(U,{children:[L.jsx(U,{component:Pe,mt:2,children:L.jsx(Pe,{children:w("team.transferApp.transferDialog.createSuccessTip2",{expireDate:wr(r.expireDate,l)})})}),L.jsx(U,{my:1,children:L.jsx(Or,{children:f})})]}),L.jsx("div",{children:L.jsx(ur,{value:"end",control:L.jsx(fr,{checked:s,onChange:v=>o(v.target.checked)}),label:w("team.transferApp.transferDialog.iKnow"),labelPlacement:"end"})})]})},confirm:w("common.confirm"),onConfirm:P}],k=j[a];return L.jsxs(tr,{title:L.jsx(Pe,{className:"title",children:w("team.transferApp.transferDialog.title")}),fullWidth:!0,open:!0,showCloseButton:!1,actions:L.jsxs(L.Fragment,{children:[k.cancel&&L.jsx(Te,{onClick:k.onCancel,color:"inherit",children:k.cancel}),L.jsxs(Te,{onClick:k.onConfirm,color:"error",disabled:N||a===j.length-1&&!s,variant:"contained",autoFocus:!0,children:[N&&L.jsx(Ve,{size:16}),k.confirm]})]}),children:[L.jsx(hr,{component:"div",children:typeof k.body=="function"?k.body():k.body}),!!$&&L.jsx(dr,{severity:"error",variant:"icon",children:$})]})}kt.propTypes={onCancel:Oe.func.isRequired,onSuccess:Oe.func.isRequired,onError:Oe.func};kt.defaultProps={onError:()=>{}};const Pe=Yt.div`
1
+ import{r as Ee,e as qe}from"./vendor-react-DoD83n6N.js";import{a2 as vt,j as L,a3 as Ve,E as Oe,a4 as U,x as cr,T as ze,aa as Yt,bp as ur,bM as fr,bs as hr,ad as dr,A as mr,ae as pr,M as gr,K as vr,bq as mt}from"./vendor-mui-core-C-PhacC8.js";import{A as Be,D as yr,f as br,aB as _r,m as wr,au as xr,w as Zt,Q as Qt,h as Ne,O as Xt}from"./index-_IytyGrM.js";import{P as Mr,w as Ke}from"./permission-ClAqVelD.js";import{r as yt,u as Je,B as Te,V as Ie,al as er,k as $r,aj as tr,bS as kr,aE as jr,ai as De,m as Sr,P as Ht,aZ as Rr}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{v as rr}from"./vendor-hooks-DtYI0-rF.js";import{C as bt}from"./confirm-C-7TGRgW.js";import{f as Fe}from"./format-error-LAoTjvJe.js";import{_ as Ar}from"./useSetState-BL3ktMon.js";import{u as sr}from"./session-Clq9kJzg.js";import{C as Or}from"./click-to-copy-CkbZjUXU.js";import{u as nr}from"./dashboard-B9esZ0M-.js";import{r as Er,aF as Cr}from"./vendor-utils-CRBr0QUY.js";import{I as Dr}from"./index-CqRb1YIC.js";import{W as Ir}from"./did-address-_2BUka_2.js";import{V as Tr}from"./status-Dz-0ViGp.js";import"./vendor-arcblock-D8eCUoJY.js";import"./lottie-web-B6s7dDoL.js";import"./useLocalStorage-C1_Fkr6_.js";import"./PlayArrow-BEUAi9Bt.js";import"./get-safe-url-M62JolcK.js";import"./index-C7X4Y3ad.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./InfoOutlined-DFTm-vVr.js";import"./use-mobile-B_Gqv6b6.js";import"./omit-r8RGw6zD.js";var _t={},Nr=vt;Object.defineProperty(_t,"__esModule",{value:!0});var ir=_t.default=void 0,Lr=Nr(yt()),qr=L;ir=_t.default=(0,Lr.default)((0,qr.jsx)("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}),"VolunteerActivismOutlined");var wt={},Pr=vt;Object.defineProperty(wt,"__esModule",{value:!0});var xt=wt.default=void 0,zr=Pr(yt()),Gt=L;xt=wt.default=(0,zr.default)([(0,Gt.jsx)("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),(0,Gt.jsx)("circle",{cx:"16",cy:"12",r:"1.5"},"1")],"AccountBalanceWalletOutlined");const Br=localStorage.getItem("enableDebug")==="true";function Fr({teamDid:I,size:P="small",...F}){const{t:T}=Je(),{api:N}=Be(),[p,w]=Ee.useState(!1),[l,$]=Ee.useState(null),y=()=>{w(!1),$(null)},m=async()=>{var a;try{w(!0);const i=await N.clearCache({input:{teamDid:I}});Ie.success(T("blocklet.config.clearCache.success",{count:((a=i.removed)==null?void 0:a.length)||0}))}catch(i){Ie.error(Fe(i))}finally{w(!1),$(null)}},e={title:T("blocklet.config.clearCache.title"),description:T("blocklet.config.clearCache.description"),confirm:T("common.confirm"),cancel:T("common.cancel"),onConfirm:m,onCancel:y};return L.jsxs("div",{...F,children:[L.jsxs(Te,{onClick:()=>$(e),color:"error",variant:"outlined",size:P,children:[p?L.jsx(Ve,{size:16,style:{marginRight:5}}):null,T("blocklet.config.clearCache.action")]}),l&&L.jsx(bt,{title:l.title,description:l.description,confirm:l.confirm,cancel:l.cancel,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}var Mt={},Jr=vt;Object.defineProperty(Mt,"__esModule",{value:!0});var ar=Mt.default=void 0,Ur=Jr(yt()),Vr=L;ar=Mt.default=(0,Ur.default)((0,Vr.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"KeyOutlined");function $t({onChange:I,disabled:P,loading:F,inService:T}){const{t:N}=Je(),{api:p,session:w}=sr(),{blocklet:l}=yr(),[$,y]=Ar({newAppSk:"",isConnectOpen:!1,confirmDialogOpen:!1}),m=()=>y({isConnectOpen:!1}),e=()=>{if(br.isInProgress(l.status)){Ie.error(N("blocklet.error.isInProgress"));return}y({confirmDialogOpen:!0})};return L.jsxs(U,{className:"config-form",mt:2,children:[L.jsxs(U,{className:"config-item",children:[L.jsxs(U,{className:"config-label",mb:0,children:[N("blocklet.config.migrate.button"),L.jsx(U,{className:"config-desc",children:N("blocklet.config.migrate.description")})]}),L.jsxs(cr,{style:{flexShrink:0},variant:"contained",color:"primary",size:"small","data-cy":"config-did",disabled:P||F,onClick:e,children:[L.jsx(ar,{style:{fontSize:"1.3em",marginRight:4}}),N("blocklet.config.migrate.button")]})]}),$.isConnectOpen&&L.jsx(er,{popup:!0,open:$.isConnectOpen,forceConnected:!1,saveConnect:!1,action:"rotate-key-pair",checkFn:p.get,checkTimeout:5*60*1e3,onSuccess:()=>{I(),T&&w.logout(),m()},extraParams:{appDid:l.appDid},messages:{title:N("setup.keyPair.title"),scan:N("setup.keyPair.scan"),confirm:N("setup.keyPair.confirm"),success:N("setup.keyPair.success")},onClose:m}),$.confirmDialogOpen&&L.jsx(bt,{title:L.jsx(ze,{sx:{fontSize:"20px",fontWeight:"500"},children:N("blocklet.config.migrate.title")}),description:L.jsx(ze,{sx:{fontSize:"14px",color:"#9397A1"},children:N("blocklet.config.migrate.confirm")}),confirm:N("common.confirm"),cancel:N("common.cancel"),onConfirm:()=>y({confirmDialogOpen:!1,isConnectOpen:!0}),onCancel:()=>y({confirmDialogOpen:!1})})]})}$t.propTypes={onChange:Oe.func,disabled:Oe.bool,loading:Oe.bool,inService:Oe.bool};$t.defaultProps={onChange:()=>{},disabled:!1,loading:!1,inService:!1};function kt({onCancel:I,onSuccess:P,onError:F}){const{api:T}=Ee.useContext($r),[N,p]=Ee.useState(!1),{t:w,locale:l}=Je(),[$,y]=Ee.useState(""),[m,e]=Ee.useState(!1),[a,i]=Ee.useState(0),[r,t]=Ee.useState(""),{endpoint:c}=nr(),[s,o]=Ee.useState(!1),h=f=>{y(null),p(!0);try{t(f.result),i(j.length-1)}catch(v){const x=Fe(v);y(x),F(v)}finally{p(!1)}},g=()=>{e(!0),i(1)},b=()=>{e(!1),i(0)},j=[{body:L.jsxs(U,{children:[L.jsx(ze,{children:w("team.transferApp.transferDialog.tips.progress")}),L.jsx(ze,{mt:3,mb:2,children:w("team.transferApp.transferDialog.tips.newOwnerPermissions")})]}),cancel:w("common.cancel"),confirm:w("team.transferApp.transferDialog.createTransferLink"),onCancel:I,onConfirm:g},{cancel:w("common.cancel"),confirm:w("team.transferApp.transferDialog.createTransferLink"),body:()=>L.jsx(er,{action:"transfer-app-owner",open:m,locale:l,checkFn:T.get,onClose:b,onSuccess:h,checkTimeout:5*60*1e3,extraParams:{},messages:{title:w("team.transferApp.connectDialog.title"),scan:w("team.transferApp.connectDialog.scan"),confirm:w("team.transferApp.connectDialog.confirm"),success:w("team.transferApp.connectDialog.success")},popup:!0})},{body:()=>{const f=_r({transferId:r.transferId,endpoint:c});return L.jsxs(L.Fragment,{children:[L.jsx(U,{component:Pe,dangerouslySetInnerHTML:{__html:w("team.transferApp.transferDialog.createSuccessTip1")}}),L.jsx(U,{component:Pe,mt:2,children:L.jsx(Pe,{children:w("team.transferApp.transferDialog.createSuccessTip3")})}),L.jsxs(U,{children:[L.jsx(U,{component:Pe,mt:2,children:L.jsx(Pe,{children:w("team.transferApp.transferDialog.createSuccessTip2",{expireDate:wr(r.expireDate,l)})})}),L.jsx(U,{my:1,children:L.jsx(Or,{children:f})})]}),L.jsx("div",{children:L.jsx(ur,{value:"end",control:L.jsx(fr,{checked:s,onChange:v=>o(v.target.checked)}),label:w("team.transferApp.transferDialog.iKnow"),labelPlacement:"end"})})]})},confirm:w("common.confirm"),onConfirm:P}],k=j[a];return L.jsxs(tr,{title:L.jsx(Pe,{className:"title",children:w("team.transferApp.transferDialog.title")}),fullWidth:!0,open:!0,showCloseButton:!1,actions:L.jsxs(L.Fragment,{children:[k.cancel&&L.jsx(Te,{onClick:k.onCancel,color:"inherit",children:k.cancel}),L.jsxs(Te,{onClick:k.onConfirm,color:"error",disabled:N||a===j.length-1&&!s,variant:"contained",autoFocus:!0,children:[N&&L.jsx(Ve,{size:16}),k.confirm]})]}),children:[L.jsx(hr,{component:"div",children:typeof k.body=="function"?k.body():k.body}),!!$&&L.jsx(dr,{severity:"error",variant:"icon",children:$})]})}kt.propTypes={onCancel:Oe.func.isRequired,onSuccess:Oe.func.isRequired,onError:Oe.func};kt.defaultProps={onError:()=>{}};const Pe=Yt.div`
2
2
  font-size: 16px;
3
3
  font-weight: bold;
4
4
  &.title {
@@ -1 +1 @@
1
- import{I as l}from"./iframe-BGb_KeKZ.js";import{y as i}from"./vendor-utils-CRBr0QUY.js";import{m as p}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{r as d}from"./vendor-react-DoD83n6N.js";import{A as f,D as h}from"./index--QvOAcHK.js";import{j as e,a4 as u,a3 as x}from"./vendor-mui-core-C-PhacC8.js";import"./vendor-arcblock-D8eCUoJY.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";function R(){const{info:n,inService:r}=f(),{blocklet:m}=h(),s="calc(100vh - 430px)",[a,c]=d.useState(!0);let t="";r?t=p.WELLKNOWN_SERVICE_PATH_PREFIX:t=n.routing.adminPath;const o=new URLSearchParams;return r||o.set("authKey","__sst"),o.set("schemaKey",i(window.location.origin,t,`/api/theme?id=${encodeURIComponent(m.appDid)}`)),e.jsxs(e.Fragment,{children:[a&&e.jsx(u,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:s},children:e.jsx(x,{})}),e.jsx(l,{url:`${i(window.location.origin,t,"/hosted/theme-builder/")}?${o.toString()}`,frameBorder:0,styles:{border:0,width:"100%",height:s,display:a?"none":"block"},onLoad:()=>{c(!1)}})]})}export{R as default};
1
+ import{I as l}from"./iframe-BGb_KeKZ.js";import{y as i}from"./vendor-utils-CRBr0QUY.js";import{m as p}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{r as d}from"./vendor-react-DoD83n6N.js";import{A as f,D as h}from"./index-_IytyGrM.js";import{j as e,a4 as u,a3 as x}from"./vendor-mui-core-C-PhacC8.js";import"./vendor-arcblock-D8eCUoJY.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";function R(){const{info:n,inService:r}=f(),{blocklet:m}=h(),s="calc(100vh - 430px)",[a,c]=d.useState(!0);let t="";r?t=p.WELLKNOWN_SERVICE_PATH_PREFIX:t=n.routing.adminPath;const o=new URLSearchParams;return r||o.set("authKey","__sst"),o.set("schemaKey",i(window.location.origin,t,`/api/theme?id=${encodeURIComponent(m.appDid)}`)),e.jsxs(e.Fragment,{children:[a&&e.jsx(u,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:s},children:e.jsx(x,{})}),e.jsx(l,{url:`${i(window.location.origin,t,"/hosted/theme-builder/")}?${o.toString()}`,frameBorder:0,styles:{border:0,width:"100%",height:s,display:a?"none":"block"},onLoad:()=>{c(!1)}})]})}export{R as default};
@@ -1,4 +1,4 @@
1
- import{V as U,r as W,bc as N,u as V,bo as H,X as Z,m as F}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{j as e,a2 as G,a4 as p,bi as q,T as w,a5 as K,I as $,a3 as J,bl as X,bo as Q,bk as Y,ak as ee,bK as te,aa as re}from"./vendor-mui-core-C-PhacC8.js";import{p as oe}from"./util-CORzDFgw.js";import{r as l,L as ae}from"./vendor-react-DoD83n6N.js";import{_ as se}from"./useLocalStorage-C1_Fkr6_.js";import{A as O}from"./index--QvOAcHK.js";import{M}from"./index-CKv9guDo.js";import{J as ie}from"./vendor-arcblock-D8eCUoJY.js";import{d as ne}from"./InfoOutlined-DFTm-vVr.js";import{d as le}from"./vendor-utils-CRBr0QUY.js";import{R as ce}from"./relative-time-BUHtgSDe.js";import{S as E}from"./shorten-label-C642GTxb.js";import{r as I}from"./index-DvDiL1rm.js";import{u as de}from"./dashboard-D1IAu0pg.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./base32-CEWQZb_G.js";import"./index-Tc7h84RU.js";import"./confirm-DMfA-cen.js";import"./format-error-LAoTjvJe.js";import"./PlayArrow-BEUAi9Bt.js";import"./get-safe-url-M62JolcK.js";import"./session-Clq9kJzg.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./useSetState-BL3ktMon.js";import"./use-mobile-DudfIz3d.js";const T=l.createContext({}),{Provider:pe,Consumer:Je}=T;function ue(){return localStorage.getItem("audit-log-page-size")&&Number(localStorage.getItem("audit-log-page-size"))||10}function fe({children:t,scope:o="",categories:i=[],showScope:c,scopeFormatter:g}){const{api:f,info:C}=O(),[x,L]=l.useState([]),[a,h]=l.useState({total:0,pageSize:ue(),pageCount:0,page:1}),[v,m]=l.useState(!1),[r,n]=l.useState(""),[d,z]=se(`audit-log-category-${o}`,"all"),s=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(S=>i.length?S.value==="all"||i.includes(S.value):!0),u=async({page:S=1,pageSize:k=20,silent:P=!0}={})=>{if(!v){P||m(!0);try{const b=await f.getAuditLogs({input:{paging:{page:S,pageSize:k},category:d==="all"?"":d,scope:o,actionOrContent:r}});c&&(b.list||[]).forEach(_=>{_.scope!==C.did&&(_.link=`/blocklets/${_.scope}/components`)}),L(b.list),h(b.paging),m(!1)}catch(b){U.error(b.message),m(!1)}}};l.useEffect(()=>{localStorage.setItem("audit-log-page-size",a.pageSize)},[a.pageSize]),l.useEffect(()=>{u({page:1,pageSize:a.pageSize,silent:!1})},[]),l.useEffect(()=>{u({page:1,pageSize:a.pageSize,silent:!1})},[d,r]);const j={loading:v,fetch:u,filter:{category:d,scope:o},categories:s,setCategory:z,data:x,paging:a,setPaging:h,showScope:c,scopeFormatter:g,actionOrContent:r,setActionOrContent:n};return e.jsx(pe,{value:{auditLogs:j},children:t})}function B(){const{auditLogs:t}=l.useContext(T);return t}var A={},me=G;Object.defineProperty(A,"__esModule",{value:!0});var R=A.default=void 0,ge=me(W()),xe=e;R=A.default=(0,ge.default)((0,xe.jsx)("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"}),"UnfoldMore");const Le=`
1
+ import{V as U,r as W,bc as N,u as V,bo as H,X as Z,m as F}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{j as e,a2 as G,a4 as p,bi as q,T as w,a5 as K,I as $,a3 as J,bl as X,bo as Q,bk as Y,ak as ee,bK as te,aa as re}from"./vendor-mui-core-C-PhacC8.js";import{p as oe}from"./util-CORzDFgw.js";import{r as l,L as ae}from"./vendor-react-DoD83n6N.js";import{_ as se}from"./useLocalStorage-C1_Fkr6_.js";import{A as O}from"./index-_IytyGrM.js";import{M}from"./index-CKv9guDo.js";import{J as ie}from"./vendor-arcblock-D8eCUoJY.js";import{d as ne}from"./InfoOutlined-DFTm-vVr.js";import{d as le}from"./vendor-utils-CRBr0QUY.js";import{R as ce}from"./relative-time-BnXa0sIK.js";import{S as E}from"./shorten-label-C642GTxb.js";import{r as I}from"./index-DvDiL1rm.js";import{u as de}from"./dashboard-B9esZ0M-.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./base32-CEWQZb_G.js";import"./index-C7X4Y3ad.js";import"./confirm-C-7TGRgW.js";import"./format-error-LAoTjvJe.js";import"./PlayArrow-BEUAi9Bt.js";import"./get-safe-url-M62JolcK.js";import"./session-Clq9kJzg.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./useSetState-BL3ktMon.js";import"./use-mobile-B_Gqv6b6.js";const T=l.createContext({}),{Provider:pe,Consumer:Je}=T;function ue(){return localStorage.getItem("audit-log-page-size")&&Number(localStorage.getItem("audit-log-page-size"))||10}function fe({children:t,scope:o="",categories:i=[],showScope:c,scopeFormatter:g}){const{api:f,info:C}=O(),[x,L]=l.useState([]),[a,h]=l.useState({total:0,pageSize:ue(),pageCount:0,page:1}),[v,m]=l.useState(!1),[r,n]=l.useState(""),[d,z]=se(`audit-log-category-${o}`,"all"),s=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(S=>i.length?S.value==="all"||i.includes(S.value):!0),u=async({page:S=1,pageSize:k=20,silent:P=!0}={})=>{if(!v){P||m(!0);try{const b=await f.getAuditLogs({input:{paging:{page:S,pageSize:k},category:d==="all"?"":d,scope:o,actionOrContent:r}});c&&(b.list||[]).forEach(_=>{_.scope!==C.did&&(_.link=`/blocklets/${_.scope}/components`)}),L(b.list),h(b.paging),m(!1)}catch(b){U.error(b.message),m(!1)}}};l.useEffect(()=>{localStorage.setItem("audit-log-page-size",a.pageSize)},[a.pageSize]),l.useEffect(()=>{u({page:1,pageSize:a.pageSize,silent:!1})},[]),l.useEffect(()=>{u({page:1,pageSize:a.pageSize,silent:!1})},[d,r]);const j={loading:v,fetch:u,filter:{category:d,scope:o},categories:s,setCategory:z,data:x,paging:a,setPaging:h,showScope:c,scopeFormatter:g,actionOrContent:r,setActionOrContent:n};return e.jsx(pe,{value:{auditLogs:j},children:t})}function B(){const{auditLogs:t}=l.useContext(T);return t}var A={},me=G;Object.defineProperty(A,"__esModule",{value:!0});var R=A.default=void 0,ge=me(W()),xe=e;R=A.default=(0,ge.default)((0,xe.jsx)("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"}),"UnfoldMore");const Le=`
2
2
  <svg style="width:38px;height:38px;" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
  <path fill-rule="evenodd" clip-rule="evenodd" d="M50.152 10.6417L31.72 0L13.288 10.6417V24.7942L1 31.8887V53.1722L19.432 63.8139L31.6902 56.7366L31.72 56.7538L31.7498 56.7366L44.008 63.8139L62.44 53.1722V31.8887L50.152 24.7942V10.6417ZM60.52 32.9972L48.232 25.9027V11.7502L31.72 2.21703L15.208 11.7502V25.9028L2.92 32.9972V52.0636L19.432 61.5968L31.6902 54.5196L31.72 54.5368L31.7498 54.5196L44.008 61.5968L60.52 52.0636V32.9972Z" fill="url(#paint0_linear_606_96)"/>
4
4
  <path fill-rule="evenodd" clip-rule="evenodd" d="M50.1521 24.8307L31.7201 14.189L13.2881 24.8307V46.1141L31.7201 56.7558L50.1521 46.1141V24.8307ZM15.2081 25.9392L31.7201 16.406L48.2321 25.9392V45.0056L31.7201 54.5388L15.2081 45.0056V25.9392ZM28.5464 23.0464C28.6641 22.6342 29.0408 22.3501 29.4695 22.3501H33.9707C34.3993 22.3501 34.776 22.6342 34.8938 23.0464L35.7504 26.0447L37.8696 27.2681L40.8945 26.5109C41.3103 26.4068 41.7447 26.591 41.959 26.9622L44.2096 30.8604C44.424 31.2316 44.3662 31.6998 44.0682 32.0079L41.8999 34.2489V36.6959L44.0682 38.9369C44.3662 39.245 44.424 39.7133 44.2096 40.0845L41.959 43.9827C41.7447 44.3539 41.3103 44.538 40.8945 44.4339L37.8696 43.6767L35.7504 44.9002L34.8938 47.8984C34.776 48.3106 34.3993 48.5947 33.9707 48.5947H29.4695C29.0408 48.5947 28.6641 48.3106 28.5464 47.8984L27.6897 44.9002L25.5706 43.6767L22.5457 44.4339C22.1299 44.538 21.6955 44.3539 21.4812 43.9827L19.2305 40.0845C19.0162 39.7133 19.0739 39.245 19.372 38.9369L21.5402 36.6959V34.2489L19.372 32.0079C19.0739 31.6998 19.0162 31.2316 19.2305 30.8604L21.4812 26.9622C21.6955 26.591 22.1299 26.4068 22.5457 26.5109L25.5706 27.2681L27.6897 26.0447L28.5464 23.0464ZM28.9861 27.5132C29.2018 27.3887 29.3607 27.1851 29.4292 26.9456L30.1936 24.2701H33.2466L34.011 26.9456C34.0794 27.1851 34.2383 27.3887 34.4541 27.5132L37.2459 29.1251C37.4617 29.2497 37.7174 29.2855 37.9591 29.225L40.6583 28.5493L42.1848 31.1932L40.25 33.193C40.0768 33.372 39.9799 33.6114 39.9799 33.8605V37.0843C39.9799 37.3334 40.0768 37.5728 40.25 37.7518L42.1848 39.7516L40.6583 42.3955L37.9591 41.7198C37.7174 41.6593 37.4617 41.6951 37.2459 41.8197L34.4541 43.4316C34.2383 43.5561 34.0794 43.7597 34.011 43.9992L33.2466 46.6747H30.1936L29.4292 43.9992C29.3607 43.7597 29.2018 43.5561 28.9861 43.4316L26.1942 41.8197C25.9785 41.6951 25.7228 41.6593 25.4811 41.7198L22.7819 42.3955L21.2554 39.7516L23.1902 37.7518C23.3634 37.5728 23.4602 37.3334 23.4602 37.0843V33.8605C23.4602 33.6114 23.3634 33.372 23.1902 33.193L21.2554 31.1932L22.7819 28.5493L25.4811 29.225C25.7228 29.2855 25.9785 29.2497 26.1942 29.1251L28.9861 27.5132ZM31.7201 41.6407C28.3134 41.6407 25.5517 38.8791 25.5517 35.4724C25.5517 32.0657 28.3134 29.3041 31.7201 29.3041C35.1268 29.3041 37.8884 32.0657 37.8884 35.4724C37.8884 38.8791 35.1268 41.6407 31.7201 41.6407ZM35.9684 35.4724C35.9684 37.8187 34.0664 39.7207 31.7201 39.7207C29.3738 39.7207 27.4717 37.8187 27.4717 35.4724C27.4717 33.1261 29.3738 31.2241 31.7201 31.2241C34.0664 31.2241 35.9684 33.1261 35.9684 35.4724Z" fill="url(#paint1_linear_606_96)"/>
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dja0MgHa.js","assets/vendor-ux-did-connect-BQ3cvv_1.js","assets/vendor-react-DoD83n6N.js","assets/vendor-utils-CRBr0QUY.js","assets/vendor-mui-core-C-PhacC8.js","assets/vendor-hooks-DtYI0-rF.js","assets/lottie-web-B6s7dDoL.js","assets/vendor-ux-did-connect-BDmhBveY.css","assets/vendor-arcblock-D8eCUoJY.js","assets/index-B9lZsGBd.js","assets/index--QvOAcHK.js","assets/index-tUQxVYYQ.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{_ as Se}from"./vendor-arcblock-D8eCUoJY.js";import{a2 as Pe,j as e,ae as z,T as I,a4 as m,bi as Ie,a5 as re,I as F,D as ue,E as w,ac as Re,r as ke,bP as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-C-PhacC8.js";import{r as De,u as Le,b6 as Ve,m as L}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{E as M}from"./empty-spinner-CoimPnT0.js";import{d as ie}from"./DeleteOutline-DT1G93_1.js";import{m as Te,e as $e}from"./vendor-hooks-DtYI0-rF.js";import{r as h}from"./vendor-react-DoD83n6N.js";import{D as se,C as ne,P as ae}from"./react-beautiful-dnd.esm-Cx5BcFIr.js";import{S as K}from"./studio-Bv91lan_.js";import"./vendor-utils-CRBr0QUY.js";import"./lottie-web-B6s7dDoL.js";import"./raf-schd.esm-GV-XhwE0.js";import"./TuneOutlined-CzDTcEdK.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=qe;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,g;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(g=t.split("vimeo.com/")[1])==null?void 0:g.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function qe(r){const t=r.trim();return V(t).length>0}var X={},He=Pe;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=He(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-Dja0MgHa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function ut(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[g,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,q]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),f=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(I,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},H=async o=>{const n=Array.from(g),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},ge=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ge(o):o.source.droppableId==="videos"&&await H(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?g.map(d=>d===n?o.trim():d):g.filter(d=>d!==n):o&&(c=[...g,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Ie,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(P,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:P.innerRef,...P.draggableProps,...P.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ie,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=f.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[g.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(P,D)=>e.jsxs(m,{ref:P.innerRef,...P.draggableProps,...P.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(fe,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ie,{})})})]})},b)),d.placeholder,g.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:g})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),q(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],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,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:f,popup:!0,onUploadFinish:()=>{var o;(o=f.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},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:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(I,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(I,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(I,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[g,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((R=navigator.clipboard)!=null&&R.readText),{run:q}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:f=>{const v=f.target.value.trim();a(v),v?q(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();a(f),p(f)}catch(f){console.error(f)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(I,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&g&&e.jsx(I,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(I,{variant:"h5",color:"text.secondary",children:e.jsx(fe,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(f){x.current="";const v=Ae(f);j(f?!v:!1),v&&(y(!0),fetch(v).then(H=>{H.ok?(x.current=f,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function fe(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BvyQFiS_.js","assets/vendor-ux-did-connect-BQ3cvv_1.js","assets/vendor-react-DoD83n6N.js","assets/vendor-utils-CRBr0QUY.js","assets/vendor-mui-core-C-PhacC8.js","assets/vendor-hooks-DtYI0-rF.js","assets/lottie-web-B6s7dDoL.js","assets/vendor-ux-did-connect-BDmhBveY.css","assets/vendor-arcblock-D8eCUoJY.js","assets/index-B9lZsGBd.js","assets/index-_IytyGrM.js","assets/index-tUQxVYYQ.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Se}from"./vendor-arcblock-D8eCUoJY.js";import{a2 as Pe,j as e,ae as z,T as I,a4 as m,bi as Ie,a5 as re,I as F,D as ue,E as w,ac as Re,r as ke,bP as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-C-PhacC8.js";import{r as De,u as Le,b6 as Ve,m as L}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{E as M}from"./empty-spinner-CoimPnT0.js";import{d as ie}from"./DeleteOutline-DT1G93_1.js";import{m as Te,e as $e}from"./vendor-hooks-DtYI0-rF.js";import{r as h}from"./vendor-react-DoD83n6N.js";import{D as se,C as ne,P as ae}from"./react-beautiful-dnd.esm-Cx5BcFIr.js";import{S as K}from"./studio-Bv91lan_.js";import"./vendor-utils-CRBr0QUY.js";import"./lottie-web-B6s7dDoL.js";import"./raf-schd.esm-GV-XhwE0.js";import"./TuneOutlined-CzDTcEdK.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=qe;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,g;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(g=t.split("vimeo.com/")[1])==null?void 0:g.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function qe(r){const t=r.trim();return V(t).length>0}var X={},He=Pe;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=He(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-BvyQFiS_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function ut(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[g,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,q]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),f=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(I,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},H=async o=>{const n=Array.from(g),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},ge=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ge(o):o.source.droppableId==="videos"&&await H(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?g.map(d=>d===n?o.trim():d):g.filter(d=>d!==n):o&&(c=[...g,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Ie,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(P,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:P.innerRef,...P.draggableProps,...P.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ie,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=f.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[g.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(P,D)=>e.jsxs(m,{ref:P.innerRef,...P.draggableProps,...P.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(fe,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ie,{})})})]})},b)),d.placeholder,g.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:g})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),q(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],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,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:f,popup:!0,onUploadFinish:()=>{var o;(o=f.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},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:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(I,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(I,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(I,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[g,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((R=navigator.clipboard)!=null&&R.readText),{run:q}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:f=>{const v=f.target.value.trim();a(v),v?q(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();a(f),p(f)}catch(f){console.error(f)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(I,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&g&&e.jsx(I,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(I,{variant:"h5",color:"text.secondary",children:e.jsx(fe,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(f){x.current="";const v=Ae(f);j(f?!v:!1),v&&(y(!0),fetch(v).then(H=>{H.ok?(x.current=f,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function fe(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
3
3
  margin-top: 24px;
4
4
  .image-wrapper {
5
5
  margin-bottom: 16px;
@@ -1,4 +1,4 @@
1
- import{b as Q,r as f}from"./vendor-react-DoD83n6N.js";import{E as s,j as e,I as Y,br as me,x as ue,P as te,v as pe,a0 as ge,an as he,ak as xe,bY as be,M as se,a4 as n,a3 as ne,aa as $,cS as Z,bU as ye,A as je,bn as Le,al as J,T as Ee,bf as z}from"./vendor-mui-core-C-PhacC8.js";import{aZ as ae,d as W,V as Ce}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{v as Se}from"./vendor-hooks-DtYI0-rF.js";import{A as ie,h as j,O as Ne,Q as _e}from"./index--QvOAcHK.js";import{d as le}from"./Done-D9sjuoNQ.js";import{F as oe,R as re,L as U}from"./logo-uploader-gCM0_9lk.js";import{E as ke}from"./EditIcon-Bww8_WRx.js";import{d as Oe}from"./ArrowDropDown-WXsjNpSB.js";import{w as ce}from"./permission-ClAqVelD.js";import{b as Re}from"./index-Tc7h84RU.js";import"./vendor-utils-CRBr0QUY.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-D8eCUoJY.js";import"./index-tUQxVYYQ.js";import"./session-Clq9kJzg.js";function H({triggers:t,onEnterEdit:r,disabled:p}){const g=Q.useRef(null),[L,u]=Q.useState(!1),b=d=>{u(!1),d()},l=()=>{u(d=>!d)},c=d=>{g.current&&g.current.contains(d.target)||u(!1)};return t.length===0?e.jsx(Y,{"data-cy":"schema-form-item-edit",onClick:r,disabled:p,size:"large",children:e.jsx(ke,{})}):e.jsxs(e.Fragment,{children:[e.jsx(me,{variant:"outlined",ref:g,"aria-label":"split button",children:e.jsx(ue,{size:"large","aria-controls":L?"split-button-menu":void 0,"aria-expanded":L?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:l,children:e.jsx(Oe,{})})}),e.jsx(te,{sx:{zIndex:9999},open:L,anchorEl:g.current,role:void 0,placement:"bottom-end",children:e.jsx(pe,{children:e.jsx(ge,{onClickAway:c,children:e.jsx(he,{id:"split-button-menu",autoFocusItem:!0,children:t.map(d=>e.jsx(xe,{onClick:()=>b(d.handler),children:d.title},d.key))})})})})]})}H.propTypes={triggers:s.arrayOf(s.shape({key:s.string.isRequired,title:s.string.isRequired,handler:s.func.isRequired})),onEnterEdit:s.func.isRequired,disabled:s.bool.isRequired};H.defaultProps={triggers:[]};const ee=(t,r,p)=>t===null&&r&&p?"******":t?r?"******":t:"",Te=be`
1
+ import{b as Q,r as f}from"./vendor-react-DoD83n6N.js";import{E as s,j as e,I as Y,br as me,x as ue,P as te,v as pe,a0 as ge,an as he,ak as xe,bY as be,M as se,a4 as n,a3 as ne,aa as $,cS as Z,bU as ye,A as je,bn as Le,al as J,T as Ee,bf as z}from"./vendor-mui-core-C-PhacC8.js";import{aZ as ae,d as W,V as Ce}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{v as Se}from"./vendor-hooks-DtYI0-rF.js";import{A as ie,h as j,O as Ne,Q as _e}from"./index-_IytyGrM.js";import{d as le}from"./Done-D9sjuoNQ.js";import{F as oe,R as re,L as U}from"./logo-uploader-D6hawLMA.js";import{E as ke}from"./EditIcon-Bww8_WRx.js";import{d as Oe}from"./ArrowDropDown-WXsjNpSB.js";import{w as ce}from"./permission-ClAqVelD.js";import{b as Re}from"./index-C7X4Y3ad.js";import"./vendor-utils-CRBr0QUY.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-D8eCUoJY.js";import"./index-tUQxVYYQ.js";import"./session-Clq9kJzg.js";function H({triggers:t,onEnterEdit:r,disabled:p}){const g=Q.useRef(null),[L,u]=Q.useState(!1),b=d=>{u(!1),d()},l=()=>{u(d=>!d)},c=d=>{g.current&&g.current.contains(d.target)||u(!1)};return t.length===0?e.jsx(Y,{"data-cy":"schema-form-item-edit",onClick:r,disabled:p,size:"large",children:e.jsx(ke,{})}):e.jsxs(e.Fragment,{children:[e.jsx(me,{variant:"outlined",ref:g,"aria-label":"split button",children:e.jsx(ue,{size:"large","aria-controls":L?"split-button-menu":void 0,"aria-expanded":L?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:l,children:e.jsx(Oe,{})})}),e.jsx(te,{sx:{zIndex:9999},open:L,anchorEl:g.current,role:void 0,placement:"bottom-end",children:e.jsx(pe,{children:e.jsx(ge,{onClickAway:c,children:e.jsx(he,{id:"split-button-menu",autoFocusItem:!0,children:t.map(d=>e.jsx(xe,{onClick:()=>b(d.handler),children:d.title},d.key))})})})})]})}H.propTypes={triggers:s.arrayOf(s.shape({key:s.string.isRequired,title:s.string.isRequired,handler:s.func.isRequired})),onEnterEdit:s.func.isRequired,disabled:s.bool.isRequired};H.defaultProps={triggers:[]};const ee=(t,r,p)=>t===null&&r&&p?"******":t?r?"******":t:"",Te=be`
2
2
  0%, 100% {
3
3
  transform: scale(1) translateX(0);
4
4
  }
@@ -1 +1 @@
1
- import{j as f,bi as E,E as a}from"./vendor-mui-core-C-PhacC8.js";import{m as P,U as $}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{y as g}from"./vendor-utils-CRBr0QUY.js";import{A as y,B as j,W as h,X as R,Y as A}from"./index--QvOAcHK.js";function w({blocklet:r,ancestors:p=[]}){var d,m;const s=y(),{inService:n}=s,i=j(r==null?void 0:r.status)||h(r==null?void 0:r.status),o=`?v=${(d=r==null?void 0:r.meta)==null?void 0:d.version}${i?"~":""}`;let t=n?`${g(A,P.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,R(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=((m=window.env)==null?void 0:m.apiPrefix)||"/",e=p.concat(r),c=n?e.slice(1):e;t=`${g(u,`/blocklet/logo-bundle${c.map(x=>`/${x.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...i}){const o=y(),{logoUrl:t,inService:d}=w({blocklet:r,ancestors:n}),{variant:m}=i,u=d?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let e=f.jsx("img",{src:t,onError:u,alt:r.meta.name,style:{width:s}});return r.meta.logo||(e=f.jsx($,{did:r.meta.did||"",responsive:!0})),f.jsx(E,{variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...i,children:e})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
1
+ import{j as f,bi as E,E as a}from"./vendor-mui-core-C-PhacC8.js";import{m as P,U as $}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{y as g}from"./vendor-utils-CRBr0QUY.js";import{A as y,B as j,W as h,X as R,Y as A}from"./index-_IytyGrM.js";function w({blocklet:r,ancestors:p=[]}){var d,m;const s=y(),{inService:n}=s,i=j(r==null?void 0:r.status)||h(r==null?void 0:r.status),o=`?v=${(d=r==null?void 0:r.meta)==null?void 0:d.version}${i?"~":""}`;let t=n?`${g(A,P.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,R(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=((m=window.env)==null?void 0:m.apiPrefix)||"/",e=p.concat(r),c=n?e.slice(1):e;t=`${g(u,`/blocklet/logo-bundle${c.map(x=>`/${x.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...i}){const o=y(),{logoUrl:t,inService:d}=w({blocklet:r,ancestors:n}),{variant:m}=i,u=d?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let e=f.jsx("img",{src:t,onError:u,alt:r.meta.name,style:{width:s}});return r.meta.logo||(e=f.jsx($,{did:r.meta.did||"",responsive:!0})),f.jsx(E,{variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...i,children:e})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
@@ -1,4 +1,4 @@
1
- import{aa as d,j as e,a3 as T,a4 as h,E as C}from"./vendor-mui-core-C-PhacC8.js";import{u as _,_ as B,V as v,m as $}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{o as A,q as F,ao as I,d as M,e as N,ag as V,ap as W,P as z}from"./index--QvOAcHK.js";import{r as a}from"./vendor-react-DoD83n6N.js";import{y as O}from"./vendor-utils-CRBr0QUY.js";import{L as X}from"./launch-result-message-DvcvHHH1.js";import{g as q}from"./get-safe-url-B2pIo8YT.js";import{S as E}from"./button-BQLtMsfK.js";import{S as H}from"./layout-BQ9Qhixa.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-D8eCUoJY.js";import"./content-layout-uPtoKIAs.js";const K=d(X)`
1
+ import{aa as d,j as e,a3 as T,a4 as h,E as C}from"./vendor-mui-core-C-PhacC8.js";import{u as _,_ as B,V as v,m as $}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{o as A,q as F,ao as I,d as M,e as N,ag as V,ap as W,P as z}from"./index-_IytyGrM.js";import{r as a}from"./vendor-react-DoD83n6N.js";import{y as O}from"./vendor-utils-CRBr0QUY.js";import{L as X}from"./launch-result-message-DvcvHHH1.js";import{g as q}from"./get-safe-url-B2pIo8YT.js";import{S as E}from"./button-BQLtMsfK.js";import{S as H}from"./layout-DdaOYlXg.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-D8eCUoJY.js";import"./content-layout-uPtoKIAs.js";const K=d(X)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- var Fw=Object.defineProperty;var zw=(e,t,n)=>t in e?Fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>zw(e,typeof t!="symbol"?t+"":t,n);import{cT as Ww,cg as Te,cf as Ze,cd as Vw,a2 as Se,j as x,a4 as Re,a5 as Vn,E as oe,cU as uv,cV as dv,cW as Uw,bu as fv,aa as Nt,cX as el,bY as Kt,H as tl,cY as pi,b5 as Jn,cz as ft,b1 as It,cZ as qw,c_ as Hw,c as Pe,_ as N,S as yr,c$ as Ke,d0 as Gw,d1 as ys,b as qn,d2 as Xa,d3 as Kw,cA as Yw,d4 as Xw,bZ as Qw,cR as Zw,d5 as Jw,cB as eS,g as ze,a as Le,k as Fe,d6 as pv,u as Gt,d7 as tS,d as nn,d8 as nl,d9 as Vp,o as on,da as mv,i as Fr,db as nS,dc as mi,dd as rS,de as Up,f as Dd,df as hv,dg as oS,dh as aS,p as rl,J as iS,di as sS,a_ as qp,ad as Hp,M as Jt,I as an,ae as gv,T as Un,t as lS,ak as Xn,a3 as zr,e as cS,bi as uS,ai as ol,dj as dS,bA as fS,bp as Bu,bB as Gp,bh as bv,x as pS,D as Kp,ac as Yp,r as Xp,bM as Qp,bf as Li,y as mS,bq as hS}from"./vendor-mui-core-C-PhacC8.js";import{a2 as gS,y as Cs,aH as bS}from"./vendor-utils-CRBr0QUY.js";import{r as S,R as vS,d as hi,a as $e,g as Rd,b as tt,e as vv,c as yS,k as yv}from"./vendor-react-DoD83n6N.js";import{bL as Ce,r as Tr,u as Yt,V as ot,bZ as CS,b_ as xS,bd as Zp,be as wS,bf as SS,bg as PS,e as TS,a$ as gi,b6 as Jp,bi as kS,b$ as DS,c0 as RS,aZ as kr,aj as al,m as Be,_ as ES,b1 as MS,a1 as $S,g as Mn,B as Ni,X as OS}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{t as Cv,V as IS}from"./vendor-arcblock-D8eCUoJY.js";import{A as Qt,D as Ur,Q as yo,h as Qn,f as dt,O as Qa,aD as _S,a6 as xv,a7 as Co,ap as wv,aE as Sv,b as Ia,m as bc,aF as AS,a5 as BS}from"./index--QvOAcHK.js";import{d as Pv}from"./TuneOutlined-CzDTcEdK.js";import{g as jS,W as xo,c as LS,h as Ed,B as Tv,b as NS}from"./dashboard-D1IAu0pg.js";import{S as FS}from"./switch-control-DjMziEFc.js";import{P as ju,w as il}from"./permission-ClAqVelD.js";import{d as em,c as zS,b as nt,_ as Je,o as WS,e as VS,i as US,p as qS,g as HS,r as Dr}from"./slicedToArray-B6WXjdrb.js";import{r as Ye,A as Md,B as Xt,C as xs,D as Lu,t as qe,E as kv,F as Dv,j as Nu,m as GS,G as lr,H as KS,I as YS,J as Fu,K as Rv,L as XS,M as QS,N as Ev,O as $d,P as tm,Q as ZS,R as nm,S as JS,T as e1,p as t1,e as rm,g as n1,b as vc,a as om,c as r1,q as Fi,o as Qr,i as o1,d as a1,k as zi,l as yc,h as Wi,s as Cc,f as xc,x as i1,z as s1,n as l1,u as c1,v as u1,w as d1,U as f1,y as p1,V as m1,W as h1}from"./index-CDJctLrv.js";import{a as Qe,u as Me,r as Za,d as qr,b as g1,w as ws,g as Mv,e as $v,c as b1,o as zu}from"./raf-schd.esm-GV-XhwE0.js";import{C as am}from"./click-to-copy-CkbZjUXU.js";import{d as im}from"./ChevronRight-CACHNf5Y.js";import{d as v1}from"./ChevronLeft-DeulnkX8.js";import{d as y1}from"./ArrowDropDown-WXsjNpSB.js";import{f as En}from"./format-error-LAoTjvJe.js";import{A as C1,a as x1,b as w1,d as Ov,B as S1,f as P1,c as T1}from"./add-component-core-e0A2r7mm.js";import{C as Mo}from"./confirm-DMfA-cen.js";import{v as k1,b as Ss}from"./util-BL-qFiRh.js";import{L as D1}from"./LockIcon-kY343jXt.js";import{d as Iv}from"./Launch-DQCS90NS.js";import{D as R1}from"./delete-confirm-BOPmqCDE.js";import{d as E1}from"./InfoOutlined-DFTm-vVr.js";import{I as M1}from"./iframe-BGb_KeKZ.js";import{B as $1}from"./bundle-avatar-xyEwd0kl.js";import{d as O1}from"./PlayArrow-BEUAi9Bt.js";import{A as _v}from"./actions-C9vqEgMU.js";import{I as wc}from"./index-CqRb1YIC.js";import{W as I1}from"./did-address-_2BUka_2.js";import{u as _1}from"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./useLocalStorage-C1_Fkr6_.js";import"./get-safe-url-M62JolcK.js";import"./index-Tc7h84RU.js";import"./session-Clq9kJzg.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./useSetState-BL3ktMon.js";import"./use-mobile-DudfIz3d.js";import"./item-DFeRxihy.js";import"./Done-D9sjuoNQ.js";import"./DeleteOutline-DT1G93_1.js";import"./launch-result-message-DvcvHHH1.js";import"./page-header-D3dCkXy7.js";import"./config-space-DLpGXOv3.js";import"./spaces-CcqmBId2.js";import"./api-DlN8K5Jg.js";import"./logo-uploader-gCM0_9lk.js";import"./index-tUQxVYYQ.js";import"./index-Biod65HH.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./index-CKv9guDo.js";import"./index-B9lZsGBd.js";import"./use-mobile-B_Gqv6b6.js";import"./content-layout-uPtoKIAs.js";import"./connect-to-BWtx4RxY.js";import"./shorten-label-C642GTxb.js";import"./MoreHoriz-BD8SroCJ.js";var A1=36e5;function B1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*A1)}var j1=864e5;function L1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-Lu(n),a=r.getTime()-Lu(r);return Math.round((o-a)/j1)}var N1=6e4;function F1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*N1)}function z1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function W1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function sm(e,t){var n=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 n<0?-1:n>0?1:n}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=sm(n,r),a=Math.abs(L1(n,r));n.setDate(n.getDate()-o*a);var i=+(sm(n,r)===-o),s=o*(a-i);return s===0?0:s}function sl(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var lm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},V1="trunc";function bi(e){return e?lm[e]:lm[V1]}function U1(e,t,n){Ye(2,arguments);var r=sl(e,t)/kv;return bi(void 0)(r)}function q1(e,t,n){Ye(2,arguments);var r=sl(e,t)/Dv;return bi(void 0)(r)}function Wu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function H1(e){Ye(1,arguments);var t=qe(e);return Wu(t).getTime()===Nu(t).getTime()}function Bv(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(GS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;H1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function G1(e,t,n){Ye(2,arguments);var r=Bv(e,t)/3;return bi(void 0)(r)}function K1(e,t,n){Ye(2,arguments);var r=sl(e,t)/1e3;return bi(void 0)(r)}function Y1(e,t,n){Ye(2,arguments);var r=Av(e,t)/7;return bi(void 0)(r)}function X1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(W1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function Q1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Z1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function J1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="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="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=lr(o.getDate(),2),f=lr(o.getMonth()+1,2),m=lr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),w=lr(Math.floor(h/60),2),v=lr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(w,":").concat(v)}else c="Z";var p=lr(o.getHours(),2),y=lr(o.getMinutes(),2),D=lr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function eP(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function tP(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function nP(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function rP(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function oP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function cm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ww(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ var Fw=Object.defineProperty;var zw=(e,t,n)=>t in e?Fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>zw(e,typeof t!="symbol"?t+"":t,n);import{cT as Ww,cg as Te,cf as Ze,cd as Vw,a2 as Se,j as x,a4 as Re,a5 as Vn,E as oe,cU as uv,cV as dv,cW as Uw,bu as fv,aa as Nt,cX as el,bY as Kt,H as tl,cY as pi,b5 as Jn,cz as ft,b1 as It,cZ as qw,c_ as Hw,c as Pe,_ as N,S as yr,c$ as Ke,d0 as Gw,d1 as ys,b as qn,d2 as Xa,d3 as Kw,cA as Yw,d4 as Xw,bZ as Qw,cR as Zw,d5 as Jw,cB as eS,g as ze,a as Le,k as Fe,d6 as pv,u as Gt,d7 as tS,d as nn,d8 as nl,d9 as Vp,o as on,da as mv,i as Fr,db as nS,dc as mi,dd as rS,de as Up,f as Dd,df as hv,dg as oS,dh as aS,p as rl,J as iS,di as sS,a_ as qp,ad as Hp,M as Jt,I as an,ae as gv,T as Un,t as lS,ak as Xn,a3 as zr,e as cS,bi as uS,ai as ol,dj as dS,bA as fS,bp as Bu,bB as Gp,bh as bv,x as pS,D as Kp,ac as Yp,r as Xp,bM as Qp,bf as Li,y as mS,bq as hS}from"./vendor-mui-core-C-PhacC8.js";import{a2 as gS,y as Cs,aH as bS}from"./vendor-utils-CRBr0QUY.js";import{r as S,R as vS,d as hi,a as $e,g as Rd,b as tt,e as vv,c as yS,k as yv}from"./vendor-react-DoD83n6N.js";import{bL as Ce,r as Tr,u as Yt,V as ot,bZ as CS,b_ as xS,bd as Zp,be as wS,bf as SS,bg as PS,e as TS,a$ as gi,b6 as Jp,bi as kS,b$ as DS,c0 as RS,aZ as kr,aj as al,m as Be,_ as ES,b1 as MS,a1 as $S,g as Mn,B as Ni,X as OS}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{t as Cv,V as IS}from"./vendor-arcblock-D8eCUoJY.js";import{A as Qt,D as Ur,Q as yo,h as Qn,f as dt,O as Qa,aD as _S,a6 as xv,a7 as Co,ap as wv,aE as Sv,b as Ia,m as bc,aF as AS,a5 as BS}from"./index-_IytyGrM.js";import{d as Pv}from"./TuneOutlined-CzDTcEdK.js";import{g as jS,W as xo,c as LS,h as Ed,B as Tv,b as NS}from"./dashboard-B9esZ0M-.js";import{S as FS}from"./switch-control-DjMziEFc.js";import{P as ju,w as il}from"./permission-ClAqVelD.js";import{d as em,c as zS,b as nt,_ as Je,o as WS,e as VS,i as US,p as qS,g as HS,r as Dr}from"./slicedToArray-B6WXjdrb.js";import{r as Ye,A as Md,B as Xt,C as xs,D as Lu,t as qe,E as kv,F as Dv,j as Nu,m as GS,G as lr,H as KS,I as YS,J as Fu,K as Rv,L as XS,M as QS,N as Ev,O as $d,P as tm,Q as ZS,R as nm,S as JS,T as e1,p as t1,e as rm,g as n1,b as vc,a as om,c as r1,q as Fi,o as Qr,i as o1,d as a1,k as zi,l as yc,h as Wi,s as Cc,f as xc,x as i1,z as s1,n as l1,u as c1,v as u1,w as d1,U as f1,y as p1,V as m1,W as h1}from"./index-CDJctLrv.js";import{a as Qe,u as Me,r as Za,d as qr,b as g1,w as ws,g as Mv,e as $v,c as b1,o as zu}from"./raf-schd.esm-GV-XhwE0.js";import{C as am}from"./click-to-copy-CkbZjUXU.js";import{d as im}from"./ChevronRight-CACHNf5Y.js";import{d as v1}from"./ChevronLeft-DeulnkX8.js";import{d as y1}from"./ArrowDropDown-WXsjNpSB.js";import{f as En}from"./format-error-LAoTjvJe.js";import{A as C1,a as x1,b as w1,d as Ov,B as S1,f as P1,c as T1}from"./add-component-core-DmGxO5Gt.js";import{C as Mo}from"./confirm-C-7TGRgW.js";import{v as k1,b as Ss}from"./util-CllYCEyt.js";import{L as D1}from"./LockIcon-kY343jXt.js";import{d as Iv}from"./Launch-DQCS90NS.js";import{D as R1}from"./delete-confirm-C_4zg33B.js";import{d as E1}from"./InfoOutlined-DFTm-vVr.js";import{I as M1}from"./iframe-BGb_KeKZ.js";import{B as $1}from"./bundle-avatar-Ue_TyBqv.js";import{d as O1}from"./PlayArrow-BEUAi9Bt.js";import{A as _v}from"./actions-C9vqEgMU.js";import{I as wc}from"./index-CqRb1YIC.js";import{W as I1}from"./did-address-_2BUka_2.js";import{u as _1}from"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./useLocalStorage-C1_Fkr6_.js";import"./get-safe-url-M62JolcK.js";import"./index-C7X4Y3ad.js";import"./session-Clq9kJzg.js";import"./useAsyncRetry-CwtLImQi.js";import"./useAsync-BmuLIImU.js";import"./useSetState-BL3ktMon.js";import"./use-mobile-B_Gqv6b6.js";import"./item-BMOFJ72c.js";import"./Done-D9sjuoNQ.js";import"./DeleteOutline-DT1G93_1.js";import"./launch-result-message-DvcvHHH1.js";import"./page-header-D3dCkXy7.js";import"./config-space-BNW8EpAm.js";import"./spaces-BBAv0vs3.js";import"./api-DlN8K5Jg.js";import"./logo-uploader-D6hawLMA.js";import"./index-tUQxVYYQ.js";import"./index-IqOEMaG7.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./index-CKv9guDo.js";import"./index-B9lZsGBd.js";import"./use-mobile-DudfIz3d.js";import"./content-layout-uPtoKIAs.js";import"./connect-to-h4a_nz1y.js";import"./shorten-label-C642GTxb.js";import"./MoreHoriz-BD8SroCJ.js";var A1=36e5;function B1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*A1)}var j1=864e5;function L1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-Lu(n),a=r.getTime()-Lu(r);return Math.round((o-a)/j1)}var N1=6e4;function F1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*N1)}function z1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function W1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function sm(e,t){var n=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 n<0?-1:n>0?1:n}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=sm(n,r),a=Math.abs(L1(n,r));n.setDate(n.getDate()-o*a);var i=+(sm(n,r)===-o),s=o*(a-i);return s===0?0:s}function sl(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var lm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},V1="trunc";function bi(e){return e?lm[e]:lm[V1]}function U1(e,t,n){Ye(2,arguments);var r=sl(e,t)/kv;return bi(void 0)(r)}function q1(e,t,n){Ye(2,arguments);var r=sl(e,t)/Dv;return bi(void 0)(r)}function Wu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function H1(e){Ye(1,arguments);var t=qe(e);return Wu(t).getTime()===Nu(t).getTime()}function Bv(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(GS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;H1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function G1(e,t,n){Ye(2,arguments);var r=Bv(e,t)/3;return bi(void 0)(r)}function K1(e,t,n){Ye(2,arguments);var r=sl(e,t)/1e3;return bi(void 0)(r)}function Y1(e,t,n){Ye(2,arguments);var r=Av(e,t)/7;return bi(void 0)(r)}function X1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(W1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function Q1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Z1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function J1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="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="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=lr(o.getDate(),2),f=lr(o.getMonth()+1,2),m=lr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),w=lr(Math.floor(h/60),2),v=lr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(w,":").concat(v)}else c="Z";var p=lr(o.getHours(),2),y=lr(o.getMinutes(),2),D=lr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function eP(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function tP(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function nP(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function rP(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function oP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function cm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ww(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}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 a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{i||n.return==null||n.return()}finally{if(s)throw a}}}}function jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jv=function(){return!!e})()}function rt(e){var t=jv();return function(){var n,r=em(e);if(t){var o=em(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zS(this,n)}}var aP=10,Lv=function(){function e(){Je(this,e),Ce(this,"priority",void 0),Ce(this,"subPriority",0)}return Ze(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),iP=function(e){nt(n,e);var t=rt(n);function n(r,o,a,i,s){var c;return Je(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=a,c.priority=i,s&&(c.subPriority=s),c}return Ze(n,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,i){return this.setValue(o,a,this.value,i)}}]),n}(Lv),sP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",aP),Ce(Te(r),"subPriority",-1),r}return Ze(n,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}}]),n}(Lv),at=function(){function e(){Je(this,e),Ce(this,"incompatibleTokens",void 0),Ce(this,"priority",void 0),Ce(this,"subPriority",void 0)}return Ze(e,[{key:"run",value:function(n,r,o,a){var i=this.parse(n,r,o,a);return i?{setter:new iP(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),lP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",140),Ce(Te(r),"incompatibleTokens",["R","u","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})||i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,i){return a.era=i,o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),Dt={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}/},Fn={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 Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function vt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function zn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*kv+a*Dv+i*KS),rest:t.slice(n[0].length)}}function Nv(e){return vt(Dt.anyDigitsSigned,e)}function kt(e,t){switch(e){case 1:return vt(Dt.singleDigit,t);case 2:return vt(Dt.twoDigits,t);case 3:return vt(Dt.threeDigits,t);case 4:return vt(Dt.fourDigits,t);default:return vt(new RegExp("^\\d{1,"+e+"}"),t)}}function Ps(e,t){switch(e){case 1:return vt(Dt.singleDigitSigned,t);case 2:return vt(Dt.twoDigitsSigned,t);case 3:return vt(Dt.threeDigitsSigned,t);case 4:return vt(Dt.fourDigitsSigned,t);default:return vt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Od(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 Fv(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var a=r+50,i=Math.floor(a/100)*100,s=e>=a%100;o=e+i-(s?100:0)}return n?o:1-o}function zv(e){return e%400===0||e%4===0&&e%100!==0}var cP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Rt(kt(4,o),s);case"yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i){var s=o.getUTCFullYear();if(i.isTwoDigitYear){var c=Fv(i.year,s);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),uP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Rt(kt(4,o),s);case"Yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i,s){var c=YS(o,s);if(i.isTwoDigitYear){var l=Fv(i.year,c);return o.setUTCFullYear(l,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fu(o,s)}var d=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fu(o,s)}}]),n}(at),dP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Rv(s)}}]),n}(at),fP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,i){return o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),pP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"Q":case"QQ":return kt(a.length,o);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})||i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),mP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"q":case"qq":return kt(a.length,o);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})||i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),hP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ce(Te(r),"priority",110),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"M":return Rt(vt(Dt.month,o),s);case"MM":return Rt(kt(2,o),s);case"Mo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})||i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),gP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",110),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"L":return Rt(vt(Dt.month,o),s);case"LL":return Rt(kt(2,o),s);case"Lo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})||i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at);function bP(e,t,n){Ye(2,arguments);var r=qe(e),o=Xt(t),a=XS(r,n)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var vP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"w":return vt(Dt.week,o);case"wo":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i,s){return Fu(bP(o,i,s),s)}}]),n}(at);function yP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t),o=QS(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var CP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"I":return vt(Dt.week,o);case"Io":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i){return Rv(yP(o,i))}}]),n}(at),xP=[31,28,31,30,31,30,31,31,30,31,30,31],wP=[31,29,31,30,31,30,31,31,30,31,30,31],SP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subPriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"d":return vt(Dt.date,o);case"do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=zv(i),c=o.getUTCMonth();return s?a>=1&&a<=wP[c]:a>=1&&a<=xP[c]}},{key:"set",value:function(o,a,i){return o.setUTCDate(i),o.setUTCHours(0,0,0,0),o}}]),n}(at),PP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subpriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"D":case"DD":return vt(Dt.dayOfYear,o);case"Do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=zv(i);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,i){return o.setUTCMonth(0,i),o.setUTCHours(0,0,0,0),o}}]),n}(at);function Id(e,t,n){var r,o,a,i,s,c,l,d;Ye(2,arguments);var u=Ev(),f=Xt((r=(o=(a=(i=n==null?void 0:n.weekStartsOn)!==null&&i!==void 0?i:n==null||(s=n.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=qe(e),b=Xt(t),h=m.getUTCDay(),w=b%7,v=(w+7)%7,g=(v<f?7:0)+b-h;return m.setUTCDate(m.getUTCDate()+g),m}var TP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),kP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"e":case"ee":return Rt(kt(a.length,o),c);case"eo":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"eee":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),DP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"c":case"cc":return Rt(kt(a.length,o),c);case"co":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})||i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at);function RP(e,t){Ye(2,arguments);var n=Xt(t);n%7===0&&(n=n-7);var r=1,o=qe(e),a=o.getUTCDay(),i=n%7,s=(i+7)%7,c=(s<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var EP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return kt(a.length,o);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return Rt(i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Rt(i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Rt(i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Rt(i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,i){return o=RP(o,i),o.setUTCHours(0,0,0,0),o}}]),n}(at),MP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),$P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),OP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","b","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),IP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"h":return vt(Dt.hour12h,o);case"ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):!s&&i===12?o.setUTCHours(0,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),_P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"H":return vt(Dt.hour23h,o);case"Ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,i){return o.setUTCHours(i,0,0,0),o}}]),n}(at),AP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"K":return vt(Dt.hour11h,o);case"Ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),BP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"k":return vt(Dt.hour24h,o);case"ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,i){var s=i<=24?i%24:i;return o.setUTCHours(s,0,0,0),o}}]),n}(at),jP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",60),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"m":return vt(Dt.minute,o);case"mo":return i.ordinalNumber(o,{unit:"minute"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCMinutes(i,0,0),o}}]),n}(at),LP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",50),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"s":return vt(Dt.second,o);case"so":return i.ordinalNumber(o,{unit:"second"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCSeconds(i,0),o}}]),n}(at),NP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",30),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){var i=function(c){return Math.floor(c*Math.pow(10,-a.length+3))};return Rt(kt(a.length,o),i)}},{key:"set",value:function(o,a,i){return o.setUTCMilliseconds(i),o}}]),n}(at),FP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","x"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"X":return zn(Fn.basicOptionalMinutes,o);case"XX":return zn(Fn.basic,o);case"XXXX":return zn(Fn.basicOptionalSeconds,o);case"XXXXX":return zn(Fn.extendedOptionalSeconds,o);case"XXX":default:return zn(Fn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),zP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","X"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"x":return zn(Fn.basicOptionalMinutes,o);case"xx":return zn(Fn.basic,o);case"xxxx":return zn(Fn.basicOptionalSeconds,o);case"xxxxx":return zn(Fn.extendedOptionalSeconds,o);case"xxx":default:return zn(Fn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),WP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",40),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Nv(o)}},{key:"set",value:function(o,a,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),n}(at),VP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",20),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Nv(o)}},{key:"set",value:function(o,a,i){return[new Date(i),{timestampIsSet:!0}]}}]),n}(at),UP={G:new lP,y:new cP,Y:new uP,R:new dP,u:new fP,Q:new pP,q:new mP,M:new hP,L:new gP,w:new vP,I:new CP,d:new SP,D:new PP,E:new TP,e:new kP,c:new DP,i:new EP,a:new MP,b:new $P,B:new OP,h:new IP,H:new _P,K:new AP,k:new BP,m:new jP,s:new LP,S:new NP,X:new FP,x:new zP,t:new WP,T:new VP},qP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GP=/^'([^]*?)'?$/,KP=/''/g,YP=/\S/,XP=/[a-zA-Z]/;function QP(e,t,n,r){var o,a,i,s,c,l,d,u,f,m,b,h,w,v,g,p,y,D;Ye(3,arguments);var P=String(e),T=String(t),k=Ev(),C=(o=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:k.locale)!==null&&o!==void 0?o:$d;if(!C.match)throw new RangeError("locale must contain match property");var R=Xt((i=(s=(c=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:k.firstWeekContainsDate)!==null&&s!==void 0?s:(f=k.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Xt((b=(h=(w=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(g=r.locale)===null||g===void 0||(p=g.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&w!==void 0?w:k.weekStartsOn)!==null&&h!==void 0?h:(y=k.locale)===null||y===void 0||(D=y.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&b!==void 0?b:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return P===""?qe(n):new Date(NaN);var $={firstWeekContainsDate:R,weekStartsOn:M,locale:C},O=[new sP],I=T.match(HP).map(function(H){var K=H[0];if(K in tm){var Q=tm[K];return Q(H,C.formatLong)}return H}).join("").match(qP),_=[],A=cm(I),F;try{var L=function(){var K=F.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&ZS(K)&&nm(K,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&JS(K)&&nm(K,T,e);var Q=K[0],ie=UP[Q];if(ie){var Y=ie.incompatibleTokens;if(Array.isArray(Y)){var J=_.find(function(ge){return Y.includes(ge.token)||ge.token===Q});if(J)throw new RangeError("The format string mustn't contain `".concat(J.fullToken,"` and `").concat(K,"` at the same time"))}else if(ie.incompatibleTokens==="*"&&_.length>0)throw new RangeError("The format string mustn't contain `".concat(K,"` and any other token at the same time"));_.push({token:Q,fullToken:K});var ne=ie.run(P,K,C.match,$);if(!ne)return{v:new Date(NaN)};O.push(ne.setter),P=ne.rest}else{if(Q.match(XP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Q+"`");if(K==="''"?K="'":Q==="'"&&(K=ZP(K)),P.indexOf(K)===0)P=P.slice(K.length);else return{v:new Date(NaN)}}};for(A.s();!(F=A.n()).done;){var W=L();if(Vw(W)==="object")return W.v}}catch(H){A.e(H)}finally{A.f()}if(P.length>0&&YP.test(P))return new Date(NaN);var G=O.map(function(H){return H.priority}).sort(function(H,K){return K-H}).filter(function(H,K,Q){return Q.indexOf(H)===K}).map(function(H){return O.filter(function(K){return K.priority===H}).sort(function(K,Q){return Q.subPriority-K.subPriority})}).map(function(H){return H[0]}),E=qe(n);if(isNaN(E.getTime()))return new Date(NaN);var q=e1(E,Lu(E)),U={},j=cm(G),z;try{for(j.s();!(z=j.n()).done;){var B=z.value;if(!B.validate(q,$))return new Date(NaN);var V=B.set(q,U,$);Array.isArray(V)?(q=V[0],Z1(U,V[1])):q=V}}catch(H){j.e(H)}finally{j.f()}return q}function ZP(e){return e.match(GP)[1].replace(KP,"'")}function um(e){Ye(1,arguments);var t=qe(e);return t.setMinutes(0,0,0),t}function JP(e,t){Ye(2,arguments);var n=um(e),r=um(t);return n.getTime()===r.getTime()}function eT(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()===r.getFullYear()}function tT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setDate(r),n}function nT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setHours(r),n}function rT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setMinutes(r),n}function oT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setSeconds(r),n}var _d={},aT=Se;Object.defineProperty(_d,"__esModule",{value:!0});var Wv=_d.default=void 0,iT=aT(Tr()),sT=x;Wv=_d.default=(0,iT.default)((0,sT.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function Ad({children:e,...t}){var l;const{t:n}=Yt(),{api:r}=Qt(),{blocklet:o}=Ur(),a=(l=o==null?void 0:o.settings)==null?void 0:l.autoCheckUpdate,i=async d=>{await r.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:d}})},s=async()=>{try{const d=!(a!=null&&a.enabled);await i({enabled:d}),ot.success(n(d?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(d){ot.error(d.message)}},c=!!(a!=null&&a.enabled);return x.jsxs(Re,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Vn,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(FS,{checked:c,onChange:s,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ad.propTypes={children:oe.any};Ad.defaultProps={children:null};var Bd={},lT=Se;Object.defineProperty(Bd,"__esModule",{value:!0});var ll=Bd.default=void 0,cT=lT(Tr()),uT=x;ll=Bd.default=(0,cT.default)((0,uT.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var Vv={},Go={},Sc={};function Uv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Uv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Uv(e))&&(r&&(r+=" "),r+=t);return r}function Ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function Ts(e){return typeof e=="string"}function Vu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function qv(e){if(typeof e!="string")throw new Error(Vu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hv(e){if(!hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Hv(e[n])}),t}function Nr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return hr(e)&&hr(t)&&Object.keys(t).forEach(o=>{hr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hr(e[o])?r[o]=Nr(e[o],t[o],n):n.clone?r[o]=hr(t[o])?Hv(t[o]):t[o]:r[o]=t[o]}),r}function za(e,t){return t?Nr(e,t,{clone:!1}):e}function dT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function fT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function pT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function mT(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const cl={xs:0,sm:600,md:900,lg:1200,xl:1536},dm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cl[e]}px)`},hT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:cl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function er(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||dm;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||dm;return Object.keys(t).reduce((i,s)=>{if(fT(a.keys,s)){const c=pT(r.containerQueries?r:hT,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||cl).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function gT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function bT(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ul(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ks(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ul(e,n)||r,t&&(o=t(o,r,e)),o}function Mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=ul(c,r)||{};return er(i,s,u=>{let f=ks(l,o,u);return u===f&&typeof u=="string"&&(f=ks(l,o,`${t}${u==="default"?"":qv(u)}`,u)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function vT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yT={m:"margin",p:"padding"},CT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xT=vT(e=>{if(e.length>2)if(fm[e])e=fm[e];else return[e];const[t,n]=e.split(""),r=yT[t],o=CT[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),jd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ld=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jd,...Ld];function vi(e,t,n,r){const o=ul(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Nd(e){return vi(e,"spacing",8)}function yi(e,t){return typeof t=="string"||t==null?t:e(t)}function wT(e,t){return n=>e.reduce((r,o)=>(r[o]=yi(t,n),r),{})}function ST(e,t,n,r){if(!t.includes(n))return null;const o=xT(n),a=wT(o,r),i=e[n];return er(e,i,a)}function Gv(e,t){const n=Nd(e.theme);return Object.keys(e).map(r=>ST(e,t,r,n)).reduce(za,{})}function xt(e){return Gv(e,jd)}xt.propTypes={};xt.filterProps=jd;function wt(e){return Gv(e,Ld)}wt.propTypes={};wt.filterProps=Ld;function dl(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?za(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function Pn(e,t){return Mt({prop:e,themeKey:"borders",transform:t})}const PT=Pn("border",mn),TT=Pn("borderTop",mn),kT=Pn("borderRight",mn),DT=Pn("borderBottom",mn),RT=Pn("borderLeft",mn),ET=Pn("borderColor"),MT=Pn("borderTopColor"),$T=Pn("borderRightColor"),OT=Pn("borderBottomColor"),IT=Pn("borderLeftColor"),_T=Pn("outline",mn),AT=Pn("outlineColor"),fl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yi(t,r)});return er(e,e.borderRadius,n)}return null};fl.propTypes={};fl.filterProps=["borderRadius"];dl(PT,TT,kT,DT,RT,ET,MT,$T,OT,IT,fl,_T,AT);const pl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vi(e.theme,"spacing",8),n=r=>({gap:yi(t,r)});return er(e,e.gap,n)}return null};pl.propTypes={};pl.filterProps=["gap"];const ml=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({columnGap:yi(t,r)});return er(e,e.columnGap,n)}return null};ml.propTypes={};ml.filterProps=["columnGap"];const hl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({rowGap:yi(t,r)});return er(e,e.rowGap,n)}return null};hl.propTypes={};hl.filterProps=["rowGap"];const BT=Mt({prop:"gridColumn"}),jT=Mt({prop:"gridRow"}),LT=Mt({prop:"gridAutoFlow"}),NT=Mt({prop:"gridAutoColumns"}),FT=Mt({prop:"gridAutoRows"}),zT=Mt({prop:"gridTemplateColumns"}),WT=Mt({prop:"gridTemplateRows"}),VT=Mt({prop:"gridTemplateAreas"}),UT=Mt({prop:"gridArea"});dl(pl,ml,hl,BT,jT,LT,NT,FT,zT,WT,VT,UT);function mo(e,t){return t==="grey"?t:e}const qT=Mt({prop:"color",themeKey:"palette",transform:mo}),HT=Mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),GT=Mt({prop:"backgroundColor",themeKey:"palette",transform:mo});dl(qT,HT,GT);function en(e){return e<=1&&e!==0?`${e*100}%`:e}const KT=Mt({prop:"width",transform:en}),Fd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||cl[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:en(n)}};return er(e,e.maxWidth,t)}return null};Fd.filterProps=["maxWidth"];const YT=Mt({prop:"minWidth",transform:en}),XT=Mt({prop:"height",transform:en}),QT=Mt({prop:"maxHeight",transform:en}),ZT=Mt({prop:"minHeight",transform:en});Mt({prop:"size",cssProperty:"width",transform:en});Mt({prop:"size",cssProperty:"height",transform:en});const JT=Mt({prop:"boxSizing"});dl(KT,Fd,YT,XT,QT,ZT,JT);const Ci={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fl},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pl},rowGap:{style:hl},columnGap:{style:ml},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:en},maxWidth:{style:Fd},minWidth:{transform:en},height:{transform:en},maxHeight:{transform:en},minHeight:{transform:en},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ek(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function tk(e,t){return typeof e=="function"?e(t):e}function nk(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:u}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=ul(o,l)||{};return u?u(i):er(i,r,b=>{let h=ks(f,d,b);return b===h&&typeof b=="string"&&(h=ks(f,d,`${n}${b==="default"?"":qv(b)}`,b)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ci;function i(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const l=gT(o.breakpoints),d=Object.keys(l);let u=l;return Object.keys(c).forEach(f=>{const m=tk(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])u=za(u,e(f,m,o,a));else{const b=er({theme:o},m,h=>({[f]:h}));ek(b,m)?u[f]=t({sx:m,theme:o}):u=za(u,b)}else u=za(u,e(f,m,o,a))}),dT(o,bT(d,u))}return Array.isArray(r)?r.map(i):i(r)}return t}const Hr=nk();Hr.filterProps=["sx"];const rk=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ci;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Kv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=rk(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return hr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const ok=e=>{const t=dv(e);class n extends Uw{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let Uu;typeof document=="object"&&(Uu=ok({key:"css",prepend:!0}));function ak(e){const{injectFirst:t,children:n}=e;return t&&Uu?x.jsx(uv,{value:Uu,children:n}):n}function ik(e){return e==null||Object.keys(e).length===0}function Yv(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ik(o)?n:o):t;return x.jsx(fv,{styles:r})}/**
3
3
  * @mui/styled-engine v6.1.0
4
4
  *
@@ -1,4 +1,4 @@
1
- import{j as i,aa as U,E as f,t as q}from"./vendor-mui-core-C-PhacC8.js";import{r as c}from"./vendor-react-DoD83n6N.js";import{y as F,Y as G,af as H,H as M}from"./vendor-utils-CRBr0QUY.js";import{u as z,m as D,V as Y}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{S as Q}from"./index-Biod65HH.js";import{P as V}from"./page-header-D3dCkXy7.js";import{o as $,J as W,h as d,f as _}from"./index--QvOAcHK.js";import{S as J}from"./layout-BQ9Qhixa.js";import{S as X}from"./step-actions-DZ9FTtHm.js";import{S as Z}from"./button-BQLtMsfK.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./Done-D9sjuoNQ.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./logo-uploader-gCM0_9lk.js";import"./vendor-arcblock-D8eCUoJY.js";import"./index-tUQxVYYQ.js";import"./content-layout-uPtoKIAs.js";import"./use-mobile-DudfIz3d.js";function x({children:h,bottom:E,onBottomFix:m}){const p=c.useRef(null),o=c.useRef(null),u=c.useRef(null),l=c.useRef(null),[g,C]=c.useState(!1);return c.useEffect(()=>{let a;const t=()=>{a||(a=setTimeout(()=>{o.current&&(o.current.scrollHeight>p.current.clientHeight-u.current.clientHeight?(l.current!=="fix"&&(m("fix"),l.current="fix"),C(!0)):(l.current!=="scroll"&&(m("scroll"),l.current="scroll"),C(!1))),a=null},50))};let s;return window.ResizeObserver?s=new ResizeObserver(t):window.addEventListener("resize",t),s.observe(p.current),s.observe(o.current),()=>{s?s.disconnect():window.removeEventListener("resize",t),a&&clearTimeout(a)}},[m]),i.jsxs(ee,{ref:p,className:`${g?"scroll-mode":""}`,children:[i.jsx("div",{className:"compact-context",ref:o,children:h}),i.jsx("div",{className:"fix-container",ref:u,children:E})]})}const ee=U.div`
1
+ import{j as i,aa as U,E as f,t as q}from"./vendor-mui-core-C-PhacC8.js";import{r as c}from"./vendor-react-DoD83n6N.js";import{y as F,Y as G,af as H,H as M}from"./vendor-utils-CRBr0QUY.js";import{u as z,m as D,V as Y}from"./vendor-ux-did-connect-BQ3cvv_1.js";import{S as Q}from"./index-IqOEMaG7.js";import{P as V}from"./page-header-D3dCkXy7.js";import{o as $,J as W,h as d,f as _}from"./index-_IytyGrM.js";import{S as J}from"./layout-DdaOYlXg.js";import{S as X}from"./step-actions-BIyonirh.js";import{S as Z}from"./button-BQLtMsfK.js";import"./vendor-hooks-DtYI0-rF.js";import"./lottie-web-B6s7dDoL.js";import"./Done-D9sjuoNQ.js";import"./Google-BchHLUIl.js";import"./cloneDeep-C7Ok409J.js";import"./logo-uploader-D6hawLMA.js";import"./vendor-arcblock-D8eCUoJY.js";import"./index-tUQxVYYQ.js";import"./content-layout-uPtoKIAs.js";import"./use-mobile-B_Gqv6b6.js";function x({children:h,bottom:E,onBottomFix:m}){const p=c.useRef(null),o=c.useRef(null),u=c.useRef(null),l=c.useRef(null),[g,C]=c.useState(!1);return c.useEffect(()=>{let a;const t=()=>{a||(a=setTimeout(()=>{o.current&&(o.current.scrollHeight>p.current.clientHeight-u.current.clientHeight?(l.current!=="fix"&&(m("fix"),l.current="fix"),C(!0)):(l.current!=="scroll"&&(m("scroll"),l.current="scroll"),C(!1))),a=null},50))};let s;return window.ResizeObserver?s=new ResizeObserver(t):window.addEventListener("resize",t),s.observe(p.current),s.observe(o.current),()=>{s?s.disconnect():window.removeEventListener("resize",t),a&&clearTimeout(a)}},[m]),i.jsxs(ee,{ref:p,className:`${g?"scroll-mode":""}`,children:[i.jsx("div",{className:"compact-context",ref:o,children:h}),i.jsx("div",{className:"fix-container",ref:u,children:E})]})}const ee=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;