@highstate/designer 0.9.19 → 0.9.21

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 (79) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{BODfYi5x.js → 0vdwhauO.js} +1 -1
  3. package/.output/public/_nuxt/{i3Pf1NPu.js → 16S73JW8.js} +1 -1
  4. package/.output/public/_nuxt/{CasefD2V.js → 30BaVrUW.js} +1 -1
  5. package/.output/public/_nuxt/{O074qcLn.js → 4xMt1p0i.js} +1 -1
  6. package/.output/public/_nuxt/{DuztTtWK.js → 99ZxcQMo.js} +1 -1
  7. package/.output/public/_nuxt/{DarxiN41.js → B0nz2Zze.js} +1 -1
  8. package/.output/public/_nuxt/{T7hNoCXG.js → B3nLPexT.js} +1 -1
  9. package/.output/public/_nuxt/{BkhU0P2a.js → B5zoSt72.js} +1 -1
  10. package/.output/public/_nuxt/{koatKMQr.js → B9WOzG0F.js} +1 -1
  11. package/.output/public/_nuxt/{DFPGdAue.js → BElWqKFK.js} +1 -1
  12. package/.output/public/_nuxt/{DEKgA0CD.js → BG77JRvd.js} +1 -1
  13. package/.output/public/_nuxt/{Ck1nftBx.js → BJKzranL.js} +1 -1
  14. package/.output/public/_nuxt/{00PavPNr.js → BVAgVeex.js} +1 -1
  15. package/.output/public/_nuxt/{D9qQxcz2.js → BZHZ48I0.js} +1 -1
  16. package/.output/public/_nuxt/{C39wRh4i.js → BhSkG2vO.js} +1 -1
  17. package/.output/public/_nuxt/{BSVaCi82.js → BwzWClQo.js} +1 -1
  18. package/.output/public/_nuxt/{CAEVHbCq.js → C6uyQOiX.js} +1 -1
  19. package/.output/public/_nuxt/{DO3LUuFM.js → CEFQZJTy.js} +1 -1
  20. package/.output/public/_nuxt/{Bj2v5zwu.js → CFUixvV0.js} +1 -1
  21. package/.output/public/_nuxt/{C28Ky4mM.js → CIUVrxWu.js} +1 -1
  22. package/.output/public/_nuxt/{CBdGpnmw.js → CKzYRRNc.js} +1 -1
  23. package/.output/public/_nuxt/{mwDqsUrW.js → CRUo-mN3.js} +1 -1
  24. package/.output/public/_nuxt/{DLQCiJf0.js → CTv1udg1.js} +1 -1
  25. package/.output/public/_nuxt/{BLPLmiCg.js → CYlq2lca.js} +1 -1
  26. package/.output/public/_nuxt/{Dy4MTz6g.js → Ca9HO25U.js} +1 -1
  27. package/.output/public/_nuxt/{CzVLS6f1.js → Ccxf70XJ.js} +1 -1
  28. package/.output/public/_nuxt/{DP4clH6m.js → Cl-6nwYp.js} +1 -1
  29. package/.output/public/_nuxt/{_d0M4KuU.js → CmFtdvwG.js} +1 -1
  30. package/.output/public/_nuxt/{DxOL29Up.js → CmuRgu4O.js} +1 -1
  31. package/.output/public/_nuxt/{DcrT2YVS.js → CoKQIzln.js} +1 -1
  32. package/.output/public/_nuxt/{ttev5MDP.js → CqQ7SoEc.js} +1 -1
  33. package/.output/public/_nuxt/{24pzIZRr.js → Ct0zHWLj.js} +1 -1
  34. package/.output/public/_nuxt/{CND6o3oI.js → CwG_vXR4.js} +1 -1
  35. package/.output/public/_nuxt/{kFPB2rqp.js → D2m36GEB.js} +1 -1
  36. package/.output/public/_nuxt/{fqUPtzRv.js → D5PsJ332.js} +1 -1
  37. package/.output/public/_nuxt/{CHdpI9cE.js → D84_luhw.js} +1 -1
  38. package/.output/public/_nuxt/{D9rAj-Tm.js → DCUYnw8H.js} +1 -1
  39. package/.output/public/_nuxt/{DYtuF1mO.js → DEkEne1_.js} +1 -1
  40. package/.output/public/_nuxt/{B8z64P5r.js → DIndX_i2.js} +1 -1
  41. package/.output/public/_nuxt/{HgwTqqUo.js → DJF4kszA.js} +1 -1
  42. package/.output/public/_nuxt/{JokPmHXv.js → DKH4orv1.js} +1 -1
  43. package/.output/public/_nuxt/{BH2j9ZdL.js → DLPcFaxm.js} +1 -1
  44. package/.output/public/_nuxt/{CIv7p5Hd.js → DMGzSUEV.js} +3 -3
  45. package/.output/public/_nuxt/{BjQbGaFu.js → DRbOBnYP.js} +1 -1
  46. package/.output/public/_nuxt/{UczlX-c9.js → DRzHUuts.js} +1 -1
  47. package/.output/public/_nuxt/{CF5B4EM_.js → DSvoz_Rr.js} +1 -1
  48. package/.output/public/_nuxt/DUPtXNCV.js +1 -0
  49. package/.output/public/_nuxt/{DjVGtenp.js → DUcPQWXO.js} +1 -1
  50. package/.output/public/_nuxt/{BLIjXRbp.js → DdEkqLVb.js} +1 -1
  51. package/.output/public/_nuxt/{DLaRxjQz.js → DlUEcgLY.js} +1 -1
  52. package/.output/public/_nuxt/{BhWccYlK.js → DlgqOs51.js} +21 -21
  53. package/.output/public/_nuxt/{DoLmvh98.js → DljtJUzO.js} +1 -1
  54. package/.output/public/_nuxt/{DbnWrFmt.js → Dp61CxCP.js} +1 -1
  55. package/.output/public/_nuxt/{DDCXd-ua.js → DqHZqf4r.js} +1 -1
  56. package/.output/public/_nuxt/{DTnN7l_n.js → Dvr3wuZa.js} +1 -1
  57. package/.output/public/_nuxt/{v9bSWb7m.js → DwnIsmZ-.js} +1 -1
  58. package/.output/public/_nuxt/{BeBKEPaV.js → K7mdFSQD.js} +1 -1
  59. package/.output/public/_nuxt/{DInZfUJa.js → KGX_yR9z.js} +1 -1
  60. package/.output/public/_nuxt/{D2AD0cA7.js → PcM58xPJ.js} +1 -1
  61. package/.output/public/_nuxt/{D1TquUAQ.js → SAlV5_cT.js} +1 -1
  62. package/.output/public/_nuxt/{Bwy6lXZI.js → _4xG4Sg4.js} +1 -1
  63. package/.output/public/_nuxt/{B2umP1rN.js → asZV6334.js} +1 -1
  64. package/.output/public/_nuxt/builds/latest.json +1 -1
  65. package/.output/public/_nuxt/builds/meta/c2b04ef2-f7ef-48dc-aa48-5d4dfa26c410.json +1 -0
  66. package/.output/public/_nuxt/{DwmUhPpj.js → cf-ossUw.js} +1 -1
  67. package/.output/public/_nuxt/{graph-resolver-DwBTX8MB.js → graph-resolver-r_0JlXH_.js} +5 -5
  68. package/.output/public/_nuxt/{DIpLW5D5.js → ngiZ_K3q.js} +1 -1
  69. package/.output/public/_nuxt/{N0qQ3IYs.js → pD_CwtY4.js} +1 -1
  70. package/.output/public/_nuxt/{Bq9zGKGH.js → pGIbX2RQ.js} +1 -1
  71. package/.output/public/_nuxt/{JJ2MHRK2.js → rmtV6Y0T.js} +1 -1
  72. package/.output/public/_nuxt/{COCm9MC_.js → un-_PcAo.js} +1 -1
  73. package/.output/public/_nuxt/{DPWtH2b9.js → uwIuMFjJ.js} +1 -1
  74. package/.output/public/_nuxt/{vuetify.uXRHzFBB.css → vuetify.B9hb7bXd.css} +1 -1
  75. package/.output/server/index.mjs +1340 -1340
  76. package/.output/server/package.json +1 -1
  77. package/package.json +7 -9
  78. package/.output/public/_nuxt/BEFlL3Zb.js +0 -1
  79. package/.output/public/_nuxt/builds/meta/c89eb61d-80e1-4ca1-b13e-521c420f664e.json +0 -1
@@ -1 +1 @@
1
- import{S as f,b as i}from"./i3Pf1NPu.js";import{t as h}from"./gt3opOQe.js";import"./BhWccYlK.js";import{_ as y}from"./D2AD0cA7.js";import{_ as P}from"./_d0M4KuU.js";import"./DDCXd-ua.js";import{_ as c}from"./CasefD2V.js";import{F as B,aO as v,av as o,Z as b,W as M,G as s,a1 as m,X as n}from"./koatKMQr.js";const $=B({__name:"TerminalsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(r){const d=o(r,"search"),p=o(r,"sortBy"),l=o(r,"page"),g=o(r,"itemsPerPage"),u=[{title:"Status",key:"status",sortable:!1},i.name,{key:"owner",title:"Owner",sortable:!1},i.id,i.createdAt,i.actions];return(t,a)=>(M(),b(s(f),{search:d.value,"onUpdate:search":a[0]||(a[0]=e=>d.value=e),"sort-by":p.value,"onUpdate:sortBy":a[1]||(a[1]=e=>p.value=e),page:l.value,"onUpdate:page":a[2]||(a[2]=e=>l.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.status":m(({item:e})=>[n(s(y),{status:e.status,"status-map":s(h)},null,8,["status","status-map"])]),"item.owner":m(({item:e})=>[n(s(P),{item:e},null,8,["item"])]),"item.actions":m(({item:e})=>[n(s(c),{"page-name":"settings.terminal-details","page-params":{projectId:t.projectId,terminalId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{$ as _};
1
+ import{S as f,b as i}from"./16S73JW8.js";import{t as h}from"./gt3opOQe.js";import"./DlgqOs51.js";import{_ as y}from"./PcM58xPJ.js";import{_ as P}from"./CmFtdvwG.js";import"./DqHZqf4r.js";import{_ as c}from"./30BaVrUW.js";import{F as B,aO as v,av as o,Z as b,W as M,G as s,a1 as m,X as n}from"./B9WOzG0F.js";const $=B({__name:"TerminalsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(r){const d=o(r,"search"),p=o(r,"sortBy"),l=o(r,"page"),g=o(r,"itemsPerPage"),u=[{title:"Status",key:"status",sortable:!1},i.name,{key:"owner",title:"Owner",sortable:!1},i.id,i.createdAt,i.actions];return(t,a)=>(M(),b(s(f),{search:d.value,"onUpdate:search":a[0]||(a[0]=e=>d.value=e),"sort-by":p.value,"onUpdate:sortBy":a[1]||(a[1]=e=>p.value=e),page:l.value,"onUpdate:page":a[2]||(a[2]=e=>l.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.status":m(({item:e})=>[n(s(y),{status:e.status,"status-map":s(h)},null,8,["status","status-map"])]),"item.owner":m(({item:e})=>[n(s(P),{item:e},null,8,["item"])]),"item.actions":m(({item:e})=>[n(s(c),{"page-name":"settings.terminal-details","page-params":{projectId:t.projectId,terminalId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{$ as _};
@@ -1 +1 @@
1
- import{S as u,b as r}from"./i3Pf1NPu.js";import{E as f}from"./BhWccYlK.js";import{I as y}from"./DDCXd-ua.js";import{_ as c}from"./CasefD2V.js";import{F as P,aO as v,av as i,Z as B,W as b,G as o,a1 as d,X as g,a2 as I,a3 as M}from"./koatKMQr.js";const S=P({__name:"ArtifactsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const l=i(s,"search"),p=i(s,"sortBy"),n=i(s,"page"),m=i(s,"itemsPerPage"),h=[r.name,r.id,{key:"hash",title:"Hash"},{key:"size",title:"Size"},r.createdAt,r.actions];return(t,a)=>(b(),B(o(u),{search:l.value,"onUpdate:search":a[0]||(a[0]=e=>l.value=e),"sort-by":p.value,"onUpdate:sortBy":a[1]||(a[1]=e=>p.value=e),page:n.value,"onUpdate:page":a[2]||(a[2]=e=>n.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>m.value=e),headers:h,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.hash":d(({item:e})=>[g(o(y),{value:e.hash,"copy-full-text":"Copy full hash"},null,8,["value"])]),"item.size":d(({item:e})=>[I(M(o(f)(e.size)),1)]),"item.actions":d(({item:e})=>[g(o(c),{"page-name":"settings.artifact-details","page-params":{projectId:t.projectId,artifactId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{S as _};
1
+ import{S as u,b as r}from"./16S73JW8.js";import{E as f}from"./DlgqOs51.js";import{I as y}from"./DqHZqf4r.js";import{_ as c}from"./30BaVrUW.js";import{F as P,aO as v,av as i,Z as B,W as b,G as o,a1 as d,X as g,a2 as I,a3 as M}from"./B9WOzG0F.js";const S=P({__name:"ArtifactsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const l=i(s,"search"),p=i(s,"sortBy"),n=i(s,"page"),m=i(s,"itemsPerPage"),h=[r.name,r.id,{key:"hash",title:"Hash"},{key:"size",title:"Size"},r.createdAt,r.actions];return(t,a)=>(b(),B(o(u),{search:l.value,"onUpdate:search":a[0]||(a[0]=e=>l.value=e),"sort-by":p.value,"onUpdate:sortBy":a[1]||(a[1]=e=>p.value=e),page:n.value,"onUpdate:page":a[2]||(a[2]=e=>n.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>m.value=e),headers:h,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.hash":d(({item:e})=>[g(o(y),{value:e.hash,"copy-full-text":"Copy full hash"},null,8,["value"])]),"item.size":d(({item:e})=>[I(M(o(f)(e.size)),1)]),"item.actions":d(({item:e})=>[g(o(c),{"page-name":"settings.artifact-details","page-params":{projectId:t.projectId,artifactId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{S as _};
@@ -1 +1 @@
1
- import{q as U,t as j,s as b}from"./BhWccYlK.js";import{S,_ as I,I as k}from"./DDCXd-ua.js";import{D as w,a as L}from"./BLIjXRbp.js";import{_ as P}from"./CHdpI9cE.js";import{_ as $}from"./DFPGdAue.js";import{_ as C}from"./00PavPNr.js";import{_ as F}from"./mwDqsUrW.js";import{_ as D}from"./v9bSWb7m.js";import{_ as z}from"./DInZfUJa.js";import{_ as K}from"./DEKgA0CD.js";import{F as E,aL as A,Z as M,W as N,a1 as p,G as e,X as r,aM as T}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./DxOL29Up.js";import"./D2AD0cA7.js";import"./i3Pf1NPu.js";import"./gt3opOQe.js";import"./_d0M4KuU.js";import"./BODfYi5x.js";import"./BeBKEPaV.js";import"./CasefD2V.js";import"./fqUPtzRv.js";const le=E({__name:"[serviceAccountId]",props:{params:{}},async setup(v){let u,m;const{settingsStore:g}=U(),{projectStore:f}=U();f.initializing?([u,m]=A(()=>b(()=>f.initialized).toBe(!0)),await u,m(),f.addLibraryRoot()):([u,m]=A(()=>f.initialize1()),await u,m(),[u,m]=A(()=>f.initialize2()),await u,m());const c=([u,m]=A(()=>g.getServiceAccountDetails(v.params.serviceAccountId)),u=await u,m(),u);if(!c)throw j({statusCode:404,statusMessage:"Service Account not found"});const B=[{key:"serviceAccountId",label:"Service Account ID"},{key:"name",label:"Name"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}],o=g.apiKeysForServiceAccount(v.params.serviceAccountId),i=g.terminalsForServiceAccount(v.params.serviceAccountId),s=g.pagesForServiceAccount(v.params.serviceAccountId),l=g.secretsForServiceAccount(v.params.serviceAccountId),d=g.workersForServiceAccount(v.params.serviceAccountId),n=g.artifactsForServiceAccount(v.params.serviceAccountId);return o.load(),i.load(),s.load(),l.load(),d.load(),n.load(),(y,a)=>(N(),M(e(w),null,{default:p(()=>[r(S,{meta:e(c).meta,"fallback-icon":"mdi-account-circle",title:e(c).meta.title,description:e(c).meta.description},null,8,["meta","title","description"]),r(e(L),{title:"Service Account Details",items:B},{"item.serviceAccountId":p(()=>[r(e(k),{value:e(c).id},null,8,["value"])]),"item.createdAt":p(()=>[r(e(I),{value:e(c).createdAt},null,8,["value"])]),"item.updatedAt":p(()=>[r(e(I),{value:e(c).updatedAt},null,8,["value"])]),_:1}),r(T,{elevation:0},{default:p(()=>[r(e(P),{title:"API Keys",icon:"mdi-key-variant",count:e(o).data.value.total},{default:p(()=>[r(e(D),{search:e(o).search.value,"onUpdate:search":a[0]||(a[0]=t=>e(o).search.value=t),"sort-by":e(o).sortBy.value,"onUpdate:sortBy":a[1]||(a[1]=t=>e(o).sortBy.value=t),page:e(o).page.value,"onUpdate:page":a[2]||(a[2]=t=>e(o).page.value=t),"items-per-page":e(o).itemsPerPage.value,"onUpdate:itemsPerPage":a[3]||(a[3]=t=>e(o).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(o).data.value,loading:e(o).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Terminals",icon:"mdi-console",count:e(i).data.value.total},{default:p(()=>[r(e($),{search:e(i).search.value,"onUpdate:search":a[4]||(a[4]=t=>e(i).search.value=t),"sort-by":e(i).sortBy.value,"onUpdate:sortBy":a[5]||(a[5]=t=>e(i).sortBy.value=t),page:e(i).page.value,"onUpdate:page":a[6]||(a[6]=t=>e(i).page.value=t),"items-per-page":e(i).itemsPerPage.value,"onUpdate:itemsPerPage":a[7]||(a[7]=t=>e(i).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(i).data.value,loading:e(i).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Pages",icon:"mdi-file-document-outline",count:e(s).data.value.total},{default:p(()=>[r(e(F),{search:e(s).search.value,"onUpdate:search":a[8]||(a[8]=t=>e(s).search.value=t),"sort-by":e(s).sortBy.value,"onUpdate:sortBy":a[9]||(a[9]=t=>e(s).sortBy.value=t),page:e(s).page.value,"onUpdate:page":a[10]||(a[10]=t=>e(s).page.value=t),"items-per-page":e(s).itemsPerPage.value,"onUpdate:itemsPerPage":a[11]||(a[11]=t=>e(s).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(s).data.value,loading:e(s).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Secrets",icon:"mdi-key-variant",count:e(l).data.value.total},{default:p(()=>[r(e(C),{search:e(l).search.value,"onUpdate:search":a[12]||(a[12]=t=>e(l).search.value=t),"sort-by":e(l).sortBy.value,"onUpdate:sortBy":a[13]||(a[13]=t=>e(l).sortBy.value=t),page:e(l).page.value,"onUpdate:page":a[14]||(a[14]=t=>e(l).page.value=t),"items-per-page":e(l).itemsPerPage.value,"onUpdate:itemsPerPage":a[15]||(a[15]=t=>e(l).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(l).data.value,loading:e(l).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Workers",icon:"mdi-progress-wrench",count:e(d).data.value.total},{default:p(()=>[r(e(z),{search:e(d).search.value,"onUpdate:search":a[16]||(a[16]=t=>e(d).search.value=t),"sort-by":e(d).sortBy.value,"onUpdate:sortBy":a[17]||(a[17]=t=>e(d).sortBy.value=t),page:e(d).page.value,"onUpdate:page":a[18]||(a[18]=t=>e(d).page.value=t),"items-per-page":e(d).itemsPerPage.value,"onUpdate:itemsPerPage":a[19]||(a[19]=t=>e(d).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(d).data.value,loading:e(d).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Artifacts",icon:"mdi-package-variant",count:e(n).data.value.total},{default:p(()=>[r(e(K),{search:e(n).search.value,"onUpdate:search":a[20]||(a[20]=t=>e(n).search.value=t),"sort-by":e(n).sortBy.value,"onUpdate:sortBy":a[21]||(a[21]=t=>e(n).sortBy.value=t),page:e(n).page.value,"onUpdate:page":a[22]||(a[22]=t=>e(n).page.value=t),"items-per-page":e(n).itemsPerPage.value,"onUpdate:itemsPerPage":a[23]||(a[23]=t=>e(n).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(n).data.value,loading:e(n).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1})]),_:1}))}});export{le as default};
1
+ import{q as U,t as j,s as b}from"./DlgqOs51.js";import{S,_ as I,I as k}from"./DqHZqf4r.js";import{D as w,a as L}from"./DdEkqLVb.js";import{_ as P}from"./D84_luhw.js";import{_ as $}from"./BElWqKFK.js";import{_ as C}from"./BVAgVeex.js";import{_ as F}from"./CRUo-mN3.js";import{_ as D}from"./DwnIsmZ-.js";import{_ as z}from"./KGX_yR9z.js";import{_ as K}from"./BG77JRvd.js";import{F as E,aL as A,Z as M,W as N,a1 as p,G as e,X as r,aM as T}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CmuRgu4O.js";import"./PcM58xPJ.js";import"./16S73JW8.js";import"./gt3opOQe.js";import"./CmFtdvwG.js";import"./0vdwhauO.js";import"./K7mdFSQD.js";import"./30BaVrUW.js";import"./D5PsJ332.js";const le=E({__name:"[serviceAccountId]",props:{params:{}},async setup(v){let u,m;const{settingsStore:g}=U(),{projectStore:f}=U();f.initializing?([u,m]=A(()=>b(()=>f.initialized).toBe(!0)),await u,m(),f.addLibraryRoot()):([u,m]=A(()=>f.initialize1()),await u,m(),[u,m]=A(()=>f.initialize2()),await u,m());const c=([u,m]=A(()=>g.getServiceAccountDetails(v.params.serviceAccountId)),u=await u,m(),u);if(!c)throw j({statusCode:404,statusMessage:"Service Account not found"});const B=[{key:"serviceAccountId",label:"Service Account ID"},{key:"name",label:"Name"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}],o=g.apiKeysForServiceAccount(v.params.serviceAccountId),i=g.terminalsForServiceAccount(v.params.serviceAccountId),s=g.pagesForServiceAccount(v.params.serviceAccountId),l=g.secretsForServiceAccount(v.params.serviceAccountId),d=g.workersForServiceAccount(v.params.serviceAccountId),n=g.artifactsForServiceAccount(v.params.serviceAccountId);return o.load(),i.load(),s.load(),l.load(),d.load(),n.load(),(y,a)=>(N(),M(e(w),null,{default:p(()=>[r(S,{meta:e(c).meta,"fallback-icon":"mdi-account-circle",title:e(c).meta.title,description:e(c).meta.description},null,8,["meta","title","description"]),r(e(L),{title:"Service Account Details",items:B},{"item.serviceAccountId":p(()=>[r(e(k),{value:e(c).id},null,8,["value"])]),"item.createdAt":p(()=>[r(e(I),{value:e(c).createdAt},null,8,["value"])]),"item.updatedAt":p(()=>[r(e(I),{value:e(c).updatedAt},null,8,["value"])]),_:1}),r(T,{elevation:0},{default:p(()=>[r(e(P),{title:"API Keys",icon:"mdi-key-variant",count:e(o).data.value.total},{default:p(()=>[r(e(D),{search:e(o).search.value,"onUpdate:search":a[0]||(a[0]=t=>e(o).search.value=t),"sort-by":e(o).sortBy.value,"onUpdate:sortBy":a[1]||(a[1]=t=>e(o).sortBy.value=t),page:e(o).page.value,"onUpdate:page":a[2]||(a[2]=t=>e(o).page.value=t),"items-per-page":e(o).itemsPerPage.value,"onUpdate:itemsPerPage":a[3]||(a[3]=t=>e(o).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(o).data.value,loading:e(o).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Terminals",icon:"mdi-console",count:e(i).data.value.total},{default:p(()=>[r(e($),{search:e(i).search.value,"onUpdate:search":a[4]||(a[4]=t=>e(i).search.value=t),"sort-by":e(i).sortBy.value,"onUpdate:sortBy":a[5]||(a[5]=t=>e(i).sortBy.value=t),page:e(i).page.value,"onUpdate:page":a[6]||(a[6]=t=>e(i).page.value=t),"items-per-page":e(i).itemsPerPage.value,"onUpdate:itemsPerPage":a[7]||(a[7]=t=>e(i).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(i).data.value,loading:e(i).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Pages",icon:"mdi-file-document-outline",count:e(s).data.value.total},{default:p(()=>[r(e(F),{search:e(s).search.value,"onUpdate:search":a[8]||(a[8]=t=>e(s).search.value=t),"sort-by":e(s).sortBy.value,"onUpdate:sortBy":a[9]||(a[9]=t=>e(s).sortBy.value=t),page:e(s).page.value,"onUpdate:page":a[10]||(a[10]=t=>e(s).page.value=t),"items-per-page":e(s).itemsPerPage.value,"onUpdate:itemsPerPage":a[11]||(a[11]=t=>e(s).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(s).data.value,loading:e(s).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Secrets",icon:"mdi-key-variant",count:e(l).data.value.total},{default:p(()=>[r(e(C),{search:e(l).search.value,"onUpdate:search":a[12]||(a[12]=t=>e(l).search.value=t),"sort-by":e(l).sortBy.value,"onUpdate:sortBy":a[13]||(a[13]=t=>e(l).sortBy.value=t),page:e(l).page.value,"onUpdate:page":a[14]||(a[14]=t=>e(l).page.value=t),"items-per-page":e(l).itemsPerPage.value,"onUpdate:itemsPerPage":a[15]||(a[15]=t=>e(l).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(l).data.value,loading:e(l).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Workers",icon:"mdi-progress-wrench",count:e(d).data.value.total},{default:p(()=>[r(e(z),{search:e(d).search.value,"onUpdate:search":a[16]||(a[16]=t=>e(d).search.value=t),"sort-by":e(d).sortBy.value,"onUpdate:sortBy":a[17]||(a[17]=t=>e(d).sortBy.value=t),page:e(d).page.value,"onUpdate:page":a[18]||(a[18]=t=>e(d).page.value=t),"items-per-page":e(d).itemsPerPage.value,"onUpdate:itemsPerPage":a[19]||(a[19]=t=>e(d).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(d).data.value,loading:e(d).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),r(e(P),{title:"Artifacts",icon:"mdi-package-variant",count:e(n).data.value.total},{default:p(()=>[r(e(K),{search:e(n).search.value,"onUpdate:search":a[20]||(a[20]=t=>e(n).search.value=t),"sort-by":e(n).sortBy.value,"onUpdate:sortBy":a[21]||(a[21]=t=>e(n).sortBy.value=t),page:e(n).page.value,"onUpdate:page":a[22]||(a[22]=t=>e(n).page.value=t),"items-per-page":e(n).itemsPerPage.value,"onUpdate:itemsPerPage":a[23]||(a[23]=t=>e(n).itemsPerPage.value=t),"project-id":y.params.projectId,data:e(n).data.value,loading:e(n).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1})]),_:1}))}});export{le as default};
@@ -1 +1 @@
1
- import{b as s,S as c}from"./i3Pf1NPu.js";import"./BhWccYlK.js";import{_ as h}from"./_d0M4KuU.js";import"./DDCXd-ua.js";import{_ as f}from"./CasefD2V.js";import{S as y}from"./fqUPtzRv.js";import{F as P,aO as v,av as i,Z as B,W as b,G as o,a1 as d,X as p}from"./koatKMQr.js";const H=P({__name:"SecretsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(r){const n=i(r,"search"),m=i(r,"sortBy"),l=i(r,"page"),g=i(r,"itemsPerPage"),u=[{...s.name,headerProps:{defaultPrimaryIcon:"mdi:key"}},s.id,{key:"owner",title:"Owner"},s.createdAt,{title:"Value",key:"value"},s.actions];return(t,a)=>(b(),B(o(c),{search:n.value,"onUpdate:search":a[0]||(a[0]=e=>n.value=e),"sort-by":m.value,"onUpdate:sortBy":a[1]||(a[1]=e=>m.value=e),page:l.value,"onUpdate:page":a[2]||(a[2]=e=>l.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.owner":d(({item:e})=>[p(o(h),{item:e},null,8,["item"])]),"item.value":d(({item:e})=>[p(o(y),{"secret-id":e.id,"project-id":t.projectId},null,8,["secret-id","project-id"])]),"item.actions":d(({item:e})=>[p(o(f),{"page-name":"settings.secret-details","page-params":{projectId:t.projectId,secretId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{H as _};
1
+ import{b as s,S as c}from"./16S73JW8.js";import"./DlgqOs51.js";import{_ as h}from"./CmFtdvwG.js";import"./DqHZqf4r.js";import{_ as f}from"./30BaVrUW.js";import{S as y}from"./D5PsJ332.js";import{F as P,aO as v,av as i,Z as B,W as b,G as o,a1 as d,X as p}from"./B9WOzG0F.js";const H=P({__name:"SecretsTable",props:v({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(r){const n=i(r,"search"),m=i(r,"sortBy"),l=i(r,"page"),g=i(r,"itemsPerPage"),u=[{...s.name,headerProps:{defaultPrimaryIcon:"mdi:key"}},s.id,{key:"owner",title:"Owner"},s.createdAt,{title:"Value",key:"value"},s.actions];return(t,a)=>(b(),B(o(c),{search:n.value,"onUpdate:search":a[0]||(a[0]=e=>n.value=e),"sort-by":m.value,"onUpdate:sortBy":a[1]||(a[1]=e=>m.value=e),page:l.value,"onUpdate:page":a[2]||(a[2]=e=>l.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.owner":d(({item:e})=>[p(o(h),{item:e},null,8,["item"])]),"item.value":d(({item:e})=>[p(o(y),{"secret-id":e.id,"project-id":t.projectId},null,8,["secret-id","project-id"])]),"item.actions":d(({item:e})=>[p(o(f),{"page-name":"settings.secret-details","page-params":{projectId:t.projectId,secretId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{H as _};
@@ -1 +1 @@
1
- import{q as n,t as _,s as f}from"./BhWccYlK.js";import{S as y,_ as m,I as S}from"./DDCXd-ua.js";import{D as b,a as k}from"./BLIjXRbp.js";import{_ as v}from"./_d0M4KuU.js";import{S as w}from"./fqUPtzRv.js";import{F as I,aL as o,Z as g,W as A,a1 as r,G as e,X as s,$ as C,a3 as D}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./DxOL29Up.js";import"./D2AD0cA7.js";import"./BODfYi5x.js";import"./BeBKEPaV.js";const h={class:"text-body-2"},G=I({__name:"[secretId]",props:{params:{}},async setup(c){let a,i;const{settingsStore:d}=n(),{projectStore:l}=n();l.initializing?([a,i]=o(()=>f(()=>l.initialized).toBe(!0)),await a,i(),l.addLibraryRoot()):([a,i]=o(()=>l.initialize1()),await a,i(),[a,i]=o(()=>l.initialize2()),await a,i());const t=([a,i]=o(()=>d.getSecretDetails(c.params.secretId)),a=await a,i(),a);if(!t)throw _({statusCode:404,statusMessage:"Secret not found"});const p=[{key:"secretId",label:"Secret ID"},{key:"name",label:"Name"},{key:"value",label:"Value"},{key:"owner",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(u,j)=>(A(),g(e(b),null,{default:r(()=>[s(y,{meta:e(t).meta,"fallback-icon":"mdi-key-variant",title:e(t).meta.title||e(t).name||"Unnamed Secret",description:e(t).meta.description},null,8,["meta","title","description"]),s(e(k),{title:"Secret Details",items:p},{"item.secretId":r(()=>[s(e(S),{value:e(t).id},null,8,["value"])]),"item.name":r(()=>[C("div",h,D(e(t).name||"N/A"),1)]),"item.value":r(()=>[s(e(w),{"secret-id":e(t).id,"project-id":u.params.projectId},null,8,["secret-id","project-id"])]),"item.owner":r(()=>[s(e(v),{item:e(t)},null,8,["item"])]),"item.createdAt":r(()=>[s(e(m),{value:e(t).createdAt},null,8,["value"])]),"item.updatedAt":r(()=>[s(e(m),{value:e(t).updatedAt},null,8,["value"])]),_:1})]),_:1}))}});export{G as default};
1
+ import{q as n,t as _,s as f}from"./DlgqOs51.js";import{S as y,_ as m,I as S}from"./DqHZqf4r.js";import{D as b,a as k}from"./DdEkqLVb.js";import{_ as v}from"./CmFtdvwG.js";import{S as w}from"./D5PsJ332.js";import{F as I,aL as o,Z as g,W as A,a1 as r,G as e,X as s,$ as C,a3 as D}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CmuRgu4O.js";import"./PcM58xPJ.js";import"./0vdwhauO.js";import"./K7mdFSQD.js";const h={class:"text-body-2"},G=I({__name:"[secretId]",props:{params:{}},async setup(c){let a,i;const{settingsStore:d}=n(),{projectStore:l}=n();l.initializing?([a,i]=o(()=>f(()=>l.initialized).toBe(!0)),await a,i(),l.addLibraryRoot()):([a,i]=o(()=>l.initialize1()),await a,i(),[a,i]=o(()=>l.initialize2()),await a,i());const t=([a,i]=o(()=>d.getSecretDetails(c.params.secretId)),a=await a,i(),a);if(!t)throw _({statusCode:404,statusMessage:"Secret not found"});const p=[{key:"secretId",label:"Secret ID"},{key:"name",label:"Name"},{key:"value",label:"Value"},{key:"owner",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(u,j)=>(A(),g(e(b),null,{default:r(()=>[s(y,{meta:e(t).meta,"fallback-icon":"mdi-key-variant",title:e(t).meta.title||e(t).name||"Unnamed Secret",description:e(t).meta.description},null,8,["meta","title","description"]),s(e(k),{title:"Secret Details",items:p},{"item.secretId":r(()=>[s(e(S),{value:e(t).id},null,8,["value"])]),"item.name":r(()=>[C("div",h,D(e(t).name||"N/A"),1)]),"item.value":r(()=>[s(e(w),{"secret-id":e(t).id,"project-id":u.params.projectId},null,8,["secret-id","project-id"])]),"item.owner":r(()=>[s(e(v),{item:e(t)},null,8,["item"])]),"item.createdAt":r(()=>[s(e(m),{value:e(t).createdAt},null,8,["value"])]),"item.updatedAt":r(()=>[s(e(m),{value:e(t).updatedAt},null,8,["value"])]),_:1})]),_:1}))}});export{G as default};
@@ -1 +1 @@
1
- import{f as F,g as I,i as A,_ as R}from"./BhWccYlK.js";import{_ as H,c as z}from"./Bwy6lXZI.js";import{F as U,av as E,r as c,j as W,w as D,Z as $,W as w,a1 as s,aw as q,X as t,ax as G,G as n,b as V,ay as L,$ as d,az as M,aA as T,a2 as l,a0 as _,aB as J,aC as Y,aD as K,ai as N,aE as B,J as O,O as X,L as S,a3 as k,a9 as P,aF as Z,aG as Q,z as ee,aH as te,aI as x,aJ as ae,af as se}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./Bj2v5zwu.js";const oe={class:"mb-4"},le={class:"text-subtitle-1 font-weight-medium mb-2"},ne=U({__name:"NewProjectDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:["update:visible"],setup(C){const p=E(C,"visible"),f=c(!1),b=c(!1),r=c(""),m=c(""),v=c(),g=c({type:"password",title:"",description:"",password:"",confirmPassword:""}),h=[o=>!!o||"Name is required",o=>o&&o.length<=64||"Name must be less than 64 characters",o=>/^[a-z0-9-\.]+$/.test(o)||"Name must be alphanumeric in lowercase with dashes (-) and dots (.)",o=>/^[a-z]/i.test(o)||"Name must start with a letter"],y=F(),a=I(),u=W(()=>f.value&&b.value),j=async()=>{if(!u.value)return;const o=await z(g.value),e=await y.createProject(r.value,{title:m.value},o);a.openProjectPanel(e.id),p.value=!1,r.value="",v.value?.resetForm()};return D(p,o=>{o||(r.value="",v.value?.resetForm())}),D(r,o=>{m.value=A(o)}),(o,e)=>(w(),$(q,{modelValue:p.value,"onUpdate:modelValue":e[6]||(e[6]=i=>p.value=i),"max-width":"600px"},{default:s(()=>[t(B,{title:"New project",color:"#2d2d2d"},{default:s(()=>[t(G,{modelValue:n(f),"onUpdate:modelValue":e[5]||(e[5]=i=>V(f)?f.value=i:null)},{default:s(()=>[t(L,null,{default:s(()=>[t(M,{modelValue:n(r),"onUpdate:modelValue":e[0]||(e[0]=i=>V(r)?r.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Name",rules:h,placeholder:"my-awesome-project",hint:"Name must be unique across all repositories connected to the same storage","persistent-hint":""},null,8,["modelValue"]),t(M,{modelValue:n(m),"onUpdate:modelValue":e[1]||(e[1]=i=>V(m)?m.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Title",hint:"A human-readable title for your project","persistent-hint":""},null,8,["modelValue"]),t(T,{class:"my-6"}),d("div",oe,[d("h3",le,[t(_,{class:"mr-2"},{default:s(()=>e[7]||(e[7]=[l("mdi-lock-outline")])),_:1,__:[7]}),e[8]||(e[8]=l(" Unlock Method "))]),e[9]||(e[9]=d("p",{class:"text-body-2 text-medium-emphasis mb-4"}," This method will be used to encrypt your project secrets and state data. You can add more unlock methods later. ",-1))]),t(n(H),{ref_key:"unlockMethodForm",ref:v,"show-type-selector":!0,"show-description":!1,"show-display-name":!1,"display-name-label":"Unlock Method Name","display-name-hint":"A friendly name for your unlock method","password-hint":"Password must be strong enough to resist offline attacks","default-display-name":"Default","default-description":"The initial unlock method configured when creating the project.","onUpdate:valid":e[2]||(e[2]=i=>b.value=i),"onUpdate:form":e[3]||(e[3]=i=>g.value=i)},null,512),t(J,{type:"warning",density:"compact",class:"mt-4"},{default:s(()=>e[10]||(e[10]=[d("div",{class:"ml-2"},[d("strong",null,"Important:"),l(" Losing your unlock method will result in losing control over the created resources! ")],-1)])),_:1,__:[10]})]),_:1}),t(Y,null,{default:s(()=>[t(K),t(N,{onClick:e[4]||(e[4]=i=>p.value=!1)},{default:s(()=>e[11]||(e[11]=[l("Cancel")])),_:1,__:[11]}),t(N,{disabled:!n(u),loading:n(y).loadingCreateProject,onClick:j},{default:s(()=>e[12]||(e[12]=[l(" Create ")])),_:1,__:[12]},8,["disabled","loading"])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"]))}}),re=""+new URL("hira-1.DuDDiA5P.png",import.meta.url).href,ie=window.setInterval,de={class:"main-menu-container"},ue={class:"content-layout"},me={class:"project-list"},ce={class:"mascot-container"},pe={class:"catchphrase-text text-h6"},fe=U({__name:"index",props:{params:{}},setup(C){const p=F(),f=I(),b=ee(),r=c(!1),m=["Let's orchestrate this beautifully!","State is everything!","No infrastructure left behind!","Visual first, code second!","Infrastructure should be as elegant as it is functional!","Time to sync the state!","Ready to deploy some magic?","Every good system starts with a solid foundation!","Building the future, one container at a time!","Kubernetes makes everything better... except debugging!","Your infrastructure deserves some love too!","Who needs sleep when you have perfectly orchestrated deployments?","Configuration drift is my arch-nemesis!","Monitoring dashboards are my happy place!","Clean architecture is the key to digital zen!","Infrastructure as art, code as poetry!","Scaling up? Scaling out? Let's scale with style!","Error 404: Downtime not found!","Highstate слабее ArgoCD и FluxCD, но в цирке не выступает!"],v=c(""),g=()=>{const y=Math.floor(Math.random()*m.length);return m[y]};v.value=g();let h;return O(()=>{h=ie(()=>{v.value=g()},1e4)}),X(()=>{h&&clearInterval(h)}),(y,a)=>(w(),S(P,null,[d("div",de,[d("div",ue,[t(B,{variant:"text",class:"project-card-inner"},{default:s(()=>[t(L,null,{default:s(()=>[t(Z,{class:"text-center text-uppercase text-bold"},{default:s(()=>a[3]||(a[3]=[l("Highstate Designer")])),_:1,__:[3]}),t(Q,{class:"text-center"},{default:s(()=>[l(" v"+k(n(b).public.version)+" • Все зонды удалены ",1)]),_:1}),t(T,{class:"mt-4"}),t(te,{variant:"flat",class:"main-menu-list"},{default:s(()=>[t(x,{class:"list-item list-button",onClick:a[0]||(a[0]=u=>n(f).openDataSettingsPanel())},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[4]||(a[4]=[l("mdi-database-cog")])),_:1,__:[4]}),a[5]||(a[5]=l(" Data & Settings "))]),_:1,__:[5]}),t(ae,{class:"text-uppercase"},{default:s(()=>a[6]||(a[6]=[l("Projects")])),_:1,__:[6]}),d("div",me,[(w(!0),S(P,null,se(n(p).projects,u=>(w(),$(x,{key:u.id,class:"list-item",onClick:j=>n(f).openProjectPanel(u.id)},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[7]||(a[7]=[l("mdi-folder")])),_:1,__:[7]}),l(" "+k(u.meta.title),1)]),_:2},1032,["onClick"]))),128))]),t(x,{class:"list-item",onClick:a[1]||(a[1]=u=>r.value=!0)},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[8]||(a[8]=[l("mdi-plus")])),_:1,__:[8]}),a[9]||(a[9]=l(" Create new project "))]),_:1,__:[9]})]),_:1})]),_:1})]),_:1}),d("div",ce,[a[10]||(a[10]=d("img",{src:re,alt:"Hira Nakamura - Highstate Mascot",class:"mascot-image"},null,-1)),d("div",pe,'"'+k(n(v))+'"',1)])])]),t(n(ne),{visible:n(r),"onUpdate:visible":a[2]||(a[2]=u=>V(r)?r.value=u:null)},null,8,["visible"])],64))}}),Ve=R(fe,[["__scopeId","data-v-49de3d73"]]);export{Ve as default};
1
+ import{f as F,g as I,i as A,_ as R}from"./DlgqOs51.js";import{_ as H,c as z}from"./_4xG4Sg4.js";import{F as U,av as E,r as c,j as W,w as D,Z as $,W as w,a1 as s,aw as q,X as t,ax as G,G as n,b as V,ay as L,$ as d,az as M,aA as T,a2 as l,a0 as _,aB as J,aC as Y,aD as K,ai as N,aE as B,J as O,O as X,L as S,a3 as k,a9 as P,aF as Z,aG as Q,z as ee,aH as te,aI as x,aJ as ae,af as se}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CFUixvV0.js";const oe={class:"mb-4"},le={class:"text-subtitle-1 font-weight-medium mb-2"},ne=U({__name:"NewProjectDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:["update:visible"],setup(C){const p=E(C,"visible"),f=c(!1),b=c(!1),r=c(""),m=c(""),v=c(),g=c({type:"password",title:"",description:"",password:"",confirmPassword:""}),h=[o=>!!o||"Name is required",o=>o&&o.length<=64||"Name must be less than 64 characters",o=>/^[a-z0-9-\.]+$/.test(o)||"Name must be alphanumeric in lowercase with dashes (-) and dots (.)",o=>/^[a-z]/i.test(o)||"Name must start with a letter"],y=F(),a=I(),u=W(()=>f.value&&b.value),j=async()=>{if(!u.value)return;const o=await z(g.value),e=await y.createProject(r.value,{title:m.value},o);a.openProjectPanel(e.id),p.value=!1,r.value="",v.value?.resetForm()};return D(p,o=>{o||(r.value="",v.value?.resetForm())}),D(r,o=>{m.value=A(o)}),(o,e)=>(w(),$(q,{modelValue:p.value,"onUpdate:modelValue":e[6]||(e[6]=i=>p.value=i),"max-width":"600px"},{default:s(()=>[t(B,{title:"New project",color:"#2d2d2d"},{default:s(()=>[t(G,{modelValue:n(f),"onUpdate:modelValue":e[5]||(e[5]=i=>V(f)?f.value=i:null)},{default:s(()=>[t(L,null,{default:s(()=>[t(M,{modelValue:n(r),"onUpdate:modelValue":e[0]||(e[0]=i=>V(r)?r.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Name",rules:h,placeholder:"my-awesome-project",hint:"Name must be unique across all repositories connected to the same storage","persistent-hint":""},null,8,["modelValue"]),t(M,{modelValue:n(m),"onUpdate:modelValue":e[1]||(e[1]=i=>V(m)?m.value=i:null),class:"mb-4",variant:"outlined",density:"compact",label:"Title",hint:"A human-readable title for your project","persistent-hint":""},null,8,["modelValue"]),t(T,{class:"my-6"}),d("div",oe,[d("h3",le,[t(_,{class:"mr-2"},{default:s(()=>e[7]||(e[7]=[l("mdi-lock-outline")])),_:1,__:[7]}),e[8]||(e[8]=l(" Unlock Method "))]),e[9]||(e[9]=d("p",{class:"text-body-2 text-medium-emphasis mb-4"}," This method will be used to encrypt your project secrets and state data. You can add more unlock methods later. ",-1))]),t(n(H),{ref_key:"unlockMethodForm",ref:v,"show-type-selector":!0,"show-description":!1,"show-display-name":!1,"display-name-label":"Unlock Method Name","display-name-hint":"A friendly name for your unlock method","password-hint":"Password must be strong enough to resist offline attacks","default-display-name":"Default","default-description":"The initial unlock method configured when creating the project.","onUpdate:valid":e[2]||(e[2]=i=>b.value=i),"onUpdate:form":e[3]||(e[3]=i=>g.value=i)},null,512),t(J,{type:"warning",density:"compact",class:"mt-4"},{default:s(()=>e[10]||(e[10]=[d("div",{class:"ml-2"},[d("strong",null,"Important:"),l(" Losing your unlock method will result in losing control over the created resources! ")],-1)])),_:1,__:[10]})]),_:1}),t(Y,null,{default:s(()=>[t(K),t(N,{onClick:e[4]||(e[4]=i=>p.value=!1)},{default:s(()=>e[11]||(e[11]=[l("Cancel")])),_:1,__:[11]}),t(N,{disabled:!n(u),loading:n(y).loadingCreateProject,onClick:j},{default:s(()=>e[12]||(e[12]=[l(" Create ")])),_:1,__:[12]},8,["disabled","loading"])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"]))}}),re=""+new URL("hira-1.DuDDiA5P.png",import.meta.url).href,ie=window.setInterval,de={class:"main-menu-container"},ue={class:"content-layout"},me={class:"project-list"},ce={class:"mascot-container"},pe={class:"catchphrase-text text-h6"},fe=U({__name:"index",props:{params:{}},setup(C){const p=F(),f=I(),b=ee(),r=c(!1),m=["Let's orchestrate this beautifully!","State is everything!","No infrastructure left behind!","Visual first, code second!","Infrastructure should be as elegant as it is functional!","Time to sync the state!","Ready to deploy some magic?","Every good system starts with a solid foundation!","Building the future, one container at a time!","Kubernetes makes everything better... except debugging!","Your infrastructure deserves some love too!","Who needs sleep when you have perfectly orchestrated deployments?","Configuration drift is my arch-nemesis!","Monitoring dashboards are my happy place!","Clean architecture is the key to digital zen!","Infrastructure as art, code as poetry!","Scaling up? Scaling out? Let's scale with style!","Error 404: Downtime not found!","Highstate слабее ArgoCD и FluxCD, но в цирке не выступает!"],v=c(""),g=()=>{const y=Math.floor(Math.random()*m.length);return m[y]};v.value=g();let h;return O(()=>{h=ie(()=>{v.value=g()},1e4)}),X(()=>{h&&clearInterval(h)}),(y,a)=>(w(),S(P,null,[d("div",de,[d("div",ue,[t(B,{variant:"text",class:"project-card-inner"},{default:s(()=>[t(L,null,{default:s(()=>[t(Z,{class:"text-center text-uppercase text-bold"},{default:s(()=>a[3]||(a[3]=[l("Highstate Designer")])),_:1,__:[3]}),t(Q,{class:"text-center"},{default:s(()=>[l(" v"+k(n(b).public.version)+" • Все зонды удалены ",1)]),_:1}),t(T,{class:"mt-4"}),t(te,{variant:"flat",class:"main-menu-list"},{default:s(()=>[t(x,{class:"list-item list-button",onClick:a[0]||(a[0]=u=>n(f).openDataSettingsPanel())},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[4]||(a[4]=[l("mdi-database-cog")])),_:1,__:[4]}),a[5]||(a[5]=l(" Data & Settings "))]),_:1,__:[5]}),t(ae,{class:"text-uppercase"},{default:s(()=>a[6]||(a[6]=[l("Projects")])),_:1,__:[6]}),d("div",me,[(w(!0),S(P,null,se(n(p).projects,u=>(w(),$(x,{key:u.id,class:"list-item",onClick:j=>n(f).openProjectPanel(u.id)},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[7]||(a[7]=[l("mdi-folder")])),_:1,__:[7]}),l(" "+k(u.meta.title),1)]),_:2},1032,["onClick"]))),128))]),t(x,{class:"list-item",onClick:a[1]||(a[1]=u=>r.value=!0)},{default:s(()=>[t(_,{class:"mr-2"},{default:s(()=>a[8]||(a[8]=[l("mdi-plus")])),_:1,__:[8]}),a[9]||(a[9]=l(" Create new project "))]),_:1,__:[9]})]),_:1})]),_:1})]),_:1}),d("div",ce,[a[10]||(a[10]=d("img",{src:re,alt:"Hira Nakamura - Highstate Mascot",class:"mascot-image"},null,-1)),d("div",pe,'"'+k(n(v))+'"',1)])])]),t(n(ne),{visible:n(r),"onUpdate:visible":a[2]||(a[2]=u=>V(r)?r.value=u:null)},null,8,["visible"])],64))}}),Ve=R(fe,[["__scopeId","data-v-49de3d73"]]);export{Ve as default};
@@ -1 +1 @@
1
- import{I as m,_ as S}from"./BhWccYlK.js";import{F as y,j as p,L as k,W as f,X as h,Z as g,_ as v,G as u,aE as I,aa as w,a1 as d,ab as b}from"./koatKMQr.js";var N={done:!1,hasNext:!1};function A(o,...a){let t=o,e=a.map(r=>"lazy"in r?_(r):void 0),n=0;for(;n<a.length;){if(e[n]===void 0||!B(t)){let l=a[n];t=l(t),n+=1;continue}let r=[];for(let l=n;l<a.length;l++){let s=e[l];if(s===void 0||(r.push(s),s.isSingle))break}let i=[];for(let l of t)if(x(l,i,r))break;let{isSingle:c}=r.at(-1);t=c?i[0]:i,n+=r.length}return t}function x(o,a,t){if(t.length===0)return a.push(o),!1;let e=o,n=N,r=!1;for(let[i,c]of t.entries()){let{index:l,items:s}=c;if(s.push(e),n=c(e,l,s),c.index+=1,n.hasNext){if(n.hasMany??!1){for(let C of n.next)if(x(C,a,t.slice(i+1)))return!0;return r}e=n.next}if(!n.hasNext)break;n.done&&(r=!0)}return n.hasNext&&a.push(e),r}function _(o){let{lazy:a,lazyArgs:t}=o,e=a(...t);return Object.assign(e,{isSingle:a.single??!1,index:0,items:[]})}function B(o){return typeof o=="string"||typeof o=="object"&&o!==null&&Symbol.iterator in o}const z={class:"dual-icon"},F=y({__name:"ComponentIcon",props:{meta:{}},setup(o){const a=p(()=>o.meta.icon??"iconamoon:component");return(t,e)=>(f(),k("div",z,[h(u(m),{icon:u(a),class:"primary-icon",color:t.meta.iconColor},null,8,["icon","color"]),t.meta.secondaryIcon?(f(),g(u(m),{key:0,icon:t.meta.secondaryIcon,color:t.meta.secondaryIconColor,class:"secondary-icon"},null,8,["icon","color"])):v("",!0)]))}}),j=S(F,[["__scopeId","data-v-9a7de32f"]]),E=y({__name:"ComponentCard",props:{component:{},subtitle:{},text:{},blueprintStatus:{default:"default"},selected:{type:Boolean,default:!1}},setup(o){const a=p(()=>{const e={borderRadius:"4px"};switch(o.blueprintStatus){case"blueprint-valid":return{...e,opacity:"0.7",outline:"2px solid #4CAF50",backgroundColor:"rgba(76, 175, 80, 0.1)",boxShadow:"0 0 10px rgba(76, 175, 80, 0.3)"};case"blueprint-invalid":return{...e,opacity:"0.7",outline:"2px solid #F44336",backgroundColor:"rgba(244, 67, 54, 0.1)",boxShadow:"0 0 10px rgba(244, 67, 54, 0.3)"}}return o.selected?{...e,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:e}),t=p(()=>o.blueprintStatus!=="default"?"#424242":o.component.meta.color??"#2d2d2d");return(e,n)=>(f(),g(I,{width:360,title:e.component.meta.title,subtitle:e.subtitle,text:e.text,color:u(t),style:w(u(a)),variant:"flat"},{prepend:d(()=>[h(j,{meta:e.component.meta},null,8,["meta"])]),append:d(()=>[b(e.$slots,"append")]),default:d(()=>[b(e.$slots,"default")]),_:3},8,["title","subtitle","text","color","style"]))}});export{A as C,E as _,j as a,N as s};
1
+ import{I as m,_ as S}from"./DlgqOs51.js";import{F as y,j as p,L as k,W as f,X as h,Z as g,_ as v,G as u,aE as I,aa as w,a1 as d,ab as b}from"./B9WOzG0F.js";var N={done:!1,hasNext:!1};function A(o,...a){let t=o,e=a.map(r=>"lazy"in r?_(r):void 0),n=0;for(;n<a.length;){if(e[n]===void 0||!B(t)){let l=a[n];t=l(t),n+=1;continue}let r=[];for(let l=n;l<a.length;l++){let s=e[l];if(s===void 0||(r.push(s),s.isSingle))break}let i=[];for(let l of t)if(x(l,i,r))break;let{isSingle:c}=r.at(-1);t=c?i[0]:i,n+=r.length}return t}function x(o,a,t){if(t.length===0)return a.push(o),!1;let e=o,n=N,r=!1;for(let[i,c]of t.entries()){let{index:l,items:s}=c;if(s.push(e),n=c(e,l,s),c.index+=1,n.hasNext){if(n.hasMany??!1){for(let C of n.next)if(x(C,a,t.slice(i+1)))return!0;return r}e=n.next}if(!n.hasNext)break;n.done&&(r=!0)}return n.hasNext&&a.push(e),r}function _(o){let{lazy:a,lazyArgs:t}=o,e=a(...t);return Object.assign(e,{isSingle:a.single??!1,index:0,items:[]})}function B(o){return typeof o=="string"||typeof o=="object"&&o!==null&&Symbol.iterator in o}const z={class:"dual-icon"},F=y({__name:"ComponentIcon",props:{meta:{}},setup(o){const a=p(()=>o.meta.icon??"iconamoon:component");return(t,e)=>(f(),k("div",z,[h(u(m),{icon:u(a),class:"primary-icon",color:t.meta.iconColor},null,8,["icon","color"]),t.meta.secondaryIcon?(f(),g(u(m),{key:0,icon:t.meta.secondaryIcon,color:t.meta.secondaryIconColor,class:"secondary-icon"},null,8,["icon","color"])):v("",!0)]))}}),j=S(F,[["__scopeId","data-v-9a7de32f"]]),E=y({__name:"ComponentCard",props:{component:{},subtitle:{},text:{},blueprintStatus:{default:"default"},selected:{type:Boolean,default:!1}},setup(o){const a=p(()=>{const e={borderRadius:"4px"};switch(o.blueprintStatus){case"blueprint-valid":return{...e,opacity:"0.7",outline:"2px solid #4CAF50",backgroundColor:"rgba(76, 175, 80, 0.1)",boxShadow:"0 0 10px rgba(76, 175, 80, 0.3)"};case"blueprint-invalid":return{...e,opacity:"0.7",outline:"2px solid #F44336",backgroundColor:"rgba(244, 67, 54, 0.1)",boxShadow:"0 0 10px rgba(244, 67, 54, 0.3)"}}return o.selected?{...e,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:e}),t=p(()=>o.blueprintStatus!=="default"?"#424242":o.component.meta.color??"#2d2d2d");return(e,n)=>(f(),g(I,{width:360,title:e.component.meta.title,subtitle:e.subtitle,text:e.text,color:u(t),style:w(u(a)),variant:"flat"},{prepend:d(()=>[h(j,{meta:e.component.meta},null,8,["meta"])]),append:d(()=>[b(e.$slots,"append")]),default:d(()=>[b(e.$slots,"default")]),_:3},8,["title","subtitle","text","color","style"]))}});export{A as C,E as _,j as a,N as s};
@@ -1 +1 @@
1
- import{F as B,aX as F,r as y,aL as b,J as I,w as h,j as A,Z as L,L as w,G as o,W as f,a4 as N,a1 as a,X as s,aE as x,a2 as r,a0 as _,ab as D,ay as g,$ as u,aF as j,aY as E,b as K,aC as R,aD as $,ai as W,n as X}from"./koatKMQr.js";import{ag as q,l as V,s as G,_ as J}from"./BhWccYlK.js";import{D as P,a as M,_ as Y}from"./Bj2v5zwu.js";const Z=""+new URL("hira-unlock-impossible.B5Pl3pvF.png",import.meta.url).href,z={key:1,class:"password-prompt-container"},H={key:2,class:"password-prompt-container"},O={key:3,class:"mt-4 text-center text-uppercase text-disabled"},Q=B({__name:"ProjectContainer",props:{projectId:{},canUnlock:{type:Boolean}},async setup(C){let l,c;const m=F("passwordField"),d=y(""),n=y(null),p=y(!1),i=([l,c]=b(()=>q.async(C.projectId)),l=await l,c(),l),S=async()=>{const t=new P;t.addIdentity(new M);try{await i.unlock(t)}catch(e){V.error({error:e},"failed to unlock project with passkey"),n.value="An error occurred while unlocking the project with passkey"}},k=([l,c]=b(()=>G(()=>i.unlockState).not.toBeUndefined()),l=await l,c(),l);k.type==="locked"&&k.unlockSuite?.hasPasskey&&S(),I(()=>{m.value&&k.type==="locked"&&!k.unlockSuite?.hasPasskey&&m.value.textField?.focus()}),h(d,()=>{n.value=null});const v=async()=>{p.value=!0,await X();try{const t=new P;t.addPassphrase(d.value),await i.unlock(t)||(n.value="The password is incorrect")}catch(t){V.error({error:t},"failed to unlock project"),n.value="An error occurred while unlocking the project"}finally{p.value=!1}},T=A(()=>[t=>!!t||"Password is required"]);return(t,e)=>o(i).unlockState?.type==="unlocked"?(f(),L(N,{key:0},{default:a(()=>[D(t.$slots,"default",{},void 0,!0)]),_:3})):t.canUnlock&&o(i).isUnlockImpossible?(f(),w("div",z,[s(x,{variant:"text"},{default:a(()=>[s(g,null,{default:a(()=>[s(j,{class:"text-center text-disabled text-uppercase"},{default:a(()=>[s(_,{color:"error"},{default:a(()=>e[1]||(e[1]=[r("mdi-lock")])),_:1,__:[1]}),e[2]||(e[2]=u("br",null,null,-1)),e[3]||(e[3]=r(" No unlock method available! ")),e[4]||(e[4]=u("br",null,null,-1)),e[5]||(e[5]=r(" The decryption of state is impossible! ")),e[6]||(e[6]=u("br",null,null,-1)),e[7]||(e[7]=r(" Try to restore the state from backup or ask for help... "))]),_:1,__:[2,3,4,5,6,7]}),e[8]||(e[8]=u("div",{class:"text-center mt-4"},[u("img",{src:Z,class:"mascot-image"})],-1))]),_:1,__:[8]})]),_:1})])):t.canUnlock?(f(),w("div",H,[s(x,{width:"460",variant:"text"},{default:a(()=>[s(g,null,{default:a(()=>[s(j,{class:"text-center text-disabled text-uppercase"},{default:a(()=>[s(_,null,{default:a(()=>e[9]||(e[9]=[r("mdi-lock")])),_:1,__:[9]}),e[10]||(e[10]=r(" The project is locked "))]),_:1,__:[10]}),s(o(Y),{ref_key:"passwordField",ref:m,modelValue:o(d),"onUpdate:modelValue":e[0]||(e[0]=U=>K(d)?d.value=U:null),class:"mt-4",label:"Password",hint:"Enter the password to unlock the project","persistent-hint":"",rules:o(T),"error-messages":o(n)?[o(n)]:[],onKeydown:E(v,["enter"])},null,8,["modelValue","rules","error-messages"])]),_:1}),s(R,null,{default:a(()=>[s($),s(W,{loading:o(p),disabled:o(p),onClick:v},{default:a(()=>e[11]||(e[11]=[r("Unlock")])),_:1,__:[11]},8,["loading","disabled"])]),_:1})]),_:1})])):(f(),w("div",O,[s(_,null,{default:a(()=>e[12]||(e[12]=[r("mdi-lock")])),_:1,__:[12]}),e[13]||(e[13]=r(" The project is locked "))]))}}),ae=J(Q,[["__scopeId","data-v-bd4f7d8c"]]);export{ae as P};
1
+ import{F as B,aX as F,r as y,aL as b,J as I,w as h,j as A,Z as L,L as w,G as o,W as f,a4 as N,a1 as a,X as s,aE as x,a2 as r,a0 as _,ab as D,ay as g,$ as u,aF as j,aY as E,b as K,aC as R,aD as $,ai as W,n as X}from"./B9WOzG0F.js";import{ag as q,l as V,s as G,_ as J}from"./DlgqOs51.js";import{D as P,a as M,_ as Y}from"./CFUixvV0.js";const Z=""+new URL("hira-unlock-impossible.B5Pl3pvF.png",import.meta.url).href,z={key:1,class:"password-prompt-container"},H={key:2,class:"password-prompt-container"},O={key:3,class:"mt-4 text-center text-uppercase text-disabled"},Q=B({__name:"ProjectContainer",props:{projectId:{},canUnlock:{type:Boolean}},async setup(C){let l,c;const m=F("passwordField"),d=y(""),n=y(null),p=y(!1),i=([l,c]=b(()=>q.async(C.projectId)),l=await l,c(),l),S=async()=>{const t=new P;t.addIdentity(new M);try{await i.unlock(t)}catch(e){V.error({error:e},"failed to unlock project with passkey"),n.value="An error occurred while unlocking the project with passkey"}},k=([l,c]=b(()=>G(()=>i.unlockState).not.toBeUndefined()),l=await l,c(),l);k.type==="locked"&&k.unlockSuite?.hasPasskey&&S(),I(()=>{m.value&&k.type==="locked"&&!k.unlockSuite?.hasPasskey&&m.value.textField?.focus()}),h(d,()=>{n.value=null});const v=async()=>{p.value=!0,await X();try{const t=new P;t.addPassphrase(d.value),await i.unlock(t)||(n.value="The password is incorrect")}catch(t){V.error({error:t},"failed to unlock project"),n.value="An error occurred while unlocking the project"}finally{p.value=!1}},T=A(()=>[t=>!!t||"Password is required"]);return(t,e)=>o(i).unlockState?.type==="unlocked"?(f(),L(N,{key:0},{default:a(()=>[D(t.$slots,"default",{},void 0,!0)]),_:3})):t.canUnlock&&o(i).isUnlockImpossible?(f(),w("div",z,[s(x,{variant:"text"},{default:a(()=>[s(g,null,{default:a(()=>[s(j,{class:"text-center text-disabled text-uppercase"},{default:a(()=>[s(_,{color:"error"},{default:a(()=>e[1]||(e[1]=[r("mdi-lock")])),_:1,__:[1]}),e[2]||(e[2]=u("br",null,null,-1)),e[3]||(e[3]=r(" No unlock method available! ")),e[4]||(e[4]=u("br",null,null,-1)),e[5]||(e[5]=r(" The decryption of state is impossible! ")),e[6]||(e[6]=u("br",null,null,-1)),e[7]||(e[7]=r(" Try to restore the state from backup or ask for help... "))]),_:1,__:[2,3,4,5,6,7]}),e[8]||(e[8]=u("div",{class:"text-center mt-4"},[u("img",{src:Z,class:"mascot-image"})],-1))]),_:1,__:[8]})]),_:1})])):t.canUnlock?(f(),w("div",H,[s(x,{width:"460",variant:"text"},{default:a(()=>[s(g,null,{default:a(()=>[s(j,{class:"text-center text-disabled text-uppercase"},{default:a(()=>[s(_,null,{default:a(()=>e[9]||(e[9]=[r("mdi-lock")])),_:1,__:[9]}),e[10]||(e[10]=r(" The project is locked "))]),_:1,__:[10]}),s(o(Y),{ref_key:"passwordField",ref:m,modelValue:o(d),"onUpdate:modelValue":e[0]||(e[0]=U=>K(d)?d.value=U:null),class:"mt-4",label:"Password",hint:"Enter the password to unlock the project","persistent-hint":"",rules:o(T),"error-messages":o(n)?[o(n)]:[],onKeydown:E(v,["enter"])},null,8,["modelValue","rules","error-messages"])]),_:1}),s(R,null,{default:a(()=>[s($),s(W,{loading:o(p),disabled:o(p),onClick:v},{default:a(()=>e[11]||(e[11]=[r("Unlock")])),_:1,__:[11]},8,["loading","disabled"])]),_:1})]),_:1})])):(f(),w("div",O,[s(_,null,{default:a(()=>e[12]||(e[12]=[r("mdi-lock")])),_:1,__:[12]}),e[13]||(e[13]=r(" The project is locked "))]))}}),ae=J(Q,[["__scopeId","data-v-bd4f7d8c"]]);export{ae as P};
@@ -1,4 +1,4 @@
1
- import{ak as pe,al as ye,am as et,I as Ce,E as Ee,_ as Be}from"./BhWccYlK.js";import{F as ae,r as Re,w as Ie,H as Te,L as F,W as D,a9 as _t,af as Pe,Z as Ae,_ as nt,G as k,$,X as H,a1 as Q,aZ as Ne,a3 as Mt,aD as Se,ai as ve,a0 as _e,a2 as Me,aE as be}from"./koatKMQr.js";const Le={"application/x-yaml":"devicon-plain:yaml"},qe={yaml:"devicon-plain:yaml",yml:"devicon-plain:yaml",zip:"devicon-plain:zip"};function De(e){const o=e.name.split(".").pop();return Le[e.contentType??""]??qe[o??""]??"mdi:file"}var j={},rt,bt;function Ue(){return bt||(bt=1,rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),rt}var ot={},U={},Lt;function V(){if(Lt)return U;Lt=1;let e;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return U.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},U.getSymbolTotalCodewords=function(n){return o[n]},U.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},U.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},U.isKanjiModeEnabled=function(){return typeof e<"u"},U.toSJIS=function(n){return e(n)},U}var it={},qt;function At(){return qt||(qt=1,function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,t){if(e.isValid(n))return n;try{return o(n)}catch{return t}}}(it)),it}var st,Dt;function Fe(){if(Dt)return st;Dt=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let n=0;n<i;n++)this.putBit((o>>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},st=e,st}var at,Ut;function ke(){if(Ut)return at;Ut=1;function e(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return e.prototype.set=function(o,i,n,t){const r=o*this.size+i;this.data[r]=n,t&&(this.reservedBit[r]=!0)},e.prototype.get=function(o,i){return this.data[o*this.size+i]},e.prototype.xor=function(o,i,n){this.data[o*this.size+i]^=n},e.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},at=e,at}var ut={},Ft;function Ve(){return Ft||(Ft=1,function(e){const o=V().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,r=o(n),s=r===145?26:Math.ceil((r-13)/(2*t-2))*2,a=[r-7];for(let u=1;u<t-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},e.getPositions=function(n){const t=[],r=e.getRowColCoords(n),s=r.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||t.push([r[a],r[u]]);return t}}(ut)),ut}var ct={},kt;function ze(){if(kt)return ct;kt=1;const e=V().getSymbolSize,o=7;return ct.getPositions=function(n){const t=e(n);return[[0,0],[t-o,0],[0,t-o]]},ct}var lt={},Vt;function Oe(){return Vt||(Vt=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const r=t.size;let s=0,a=0,u=0,c=null,d=null;for(let E=0;E<r;E++){a=u=0,c=d=null;for(let h=0;h<r;h++){let l=t.get(E,h);l===c?a++:(a>=5&&(s+=o.N1+(a-5)),c=l,a=1),l=t.get(h,E),l===d?u++:(u>=5&&(s+=o.N1+(u-5)),d=l,u=1)}a>=5&&(s+=o.N1+(a-5)),u>=5&&(s+=o.N1+(u-5))}return s},e.getPenaltyN2=function(t){const r=t.size;let s=0;for(let a=0;a<r-1;a++)for(let u=0;u<r-1;u++){const c=t.get(a,u)+t.get(a,u+1)+t.get(a+1,u)+t.get(a+1,u+1);(c===4||c===0)&&s++}return s*o.N2},e.getPenaltyN3=function(t){const r=t.size;let s=0,a=0,u=0;for(let c=0;c<r;c++){a=u=0;for(let d=0;d<r;d++)a=a<<1&2047|t.get(c,d),d>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|t.get(d,c),d>=10&&(u===1488||u===93)&&s++}return s*o.N3},e.getPenaltyN4=function(t){let r=0;const s=t.data.length;for(let u=0;u<s;u++)r+=t.data[u];return Math.abs(Math.ceil(r*100/s/5)-10)*o.N4};function i(n,t,r){switch(n){case e.Patterns.PATTERN000:return(t+r)%2===0;case e.Patterns.PATTERN001:return t%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(t+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(t,r){const s=r.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)r.isReserved(u,a)||r.xor(u,a,i(t,u,a))},e.getBestMask=function(t,r){const s=Object.keys(e.Patterns).length;let a=0,u=1/0;for(let c=0;c<s;c++){r(c),e.applyMask(c,t);const d=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(c,t),d<u&&(u=d,a=c)}return a}}(lt)),lt}var G={},zt;function ue(){if(zt)return G;zt=1;const e=At(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return G.getBlocksCount=function(t,r){switch(r){case e.L:return o[(t-1)*4+0];case e.M:return o[(t-1)*4+1];case e.Q:return o[(t-1)*4+2];case e.H:return o[(t-1)*4+3];default:return}},G.getTotalCodewordsCount=function(t,r){switch(r){case e.L:return i[(t-1)*4+0];case e.M:return i[(t-1)*4+1];case e.Q:return i[(t-1)*4+2];case e.H:return i[(t-1)*4+3];default:return}},G}var ft={},J={},Ot;function He(){if(Ot)return J;Ot=1;const e=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)e[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),J.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},J.exp=function(n){return e[n]},J.mul=function(n,t){return n===0||t===0?0:e[o[n]+o[t]]},J}var Ht;function je(){return Ht||(Ht=1,function(e){const o=He();e.mul=function(n,t){const r=new Uint8Array(n.length+t.length-1);for(let s=0;s<n.length;s++)for(let a=0;a<t.length;a++)r[s+a]^=o.mul(n[s],t[a]);return r},e.mod=function(n,t){let r=new Uint8Array(n);for(;r.length-t.length>=0;){const s=r[0];for(let u=0;u<t.length;u++)r[u]^=o.mul(t[u],s);let a=0;for(;a<r.length&&r[a]===0;)a++;r=r.slice(a)}return r},e.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let r=0;r<n;r++)t=e.mul(t,new Uint8Array([1,o.exp(r)]));return t}}(ft)),ft}var dt,jt;function Ke(){if(jt)return dt;jt=1;const e=je();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const r=e.mod(t,this.genPoly),s=this.degree-r.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(r,s),a}return r},dt=o,dt}var gt={},ht={},mt={},Kt;function ce(){return Kt||(Kt=1,mt.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),mt}var M={},Jt;function le(){if(Jt)return M;Jt=1;const e="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
1
+ import{ak as pe,al as ye,am as et,I as Ce,E as Ee,_ as Be}from"./DlgqOs51.js";import{F as ae,r as Re,w as Ie,H as Te,L as F,W as D,a9 as _t,af as Pe,Z as Ae,_ as nt,G as k,$,X as H,a1 as Q,aZ as Ne,a3 as Mt,aD as Se,ai as ve,a0 as _e,a2 as Me,aE as be}from"./B9WOzG0F.js";const Le={"application/x-yaml":"devicon-plain:yaml"},qe={yaml:"devicon-plain:yaml",yml:"devicon-plain:yaml",zip:"devicon-plain:zip"};function De(e){const o=e.name.split(".").pop();return Le[e.contentType??""]??qe[o??""]??"mdi:file"}var j={},rt,bt;function Ue(){return bt||(bt=1,rt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),rt}var ot={},U={},Lt;function V(){if(Lt)return U;Lt=1;let e;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return U.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},U.getSymbolTotalCodewords=function(n){return o[n]},U.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},U.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},U.isKanjiModeEnabled=function(){return typeof e<"u"},U.toSJIS=function(n){return e(n)},U}var it={},qt;function At(){return qt||(qt=1,function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,t){if(e.isValid(n))return n;try{return o(n)}catch{return t}}}(it)),it}var st,Dt;function Fe(){if(Dt)return st;Dt=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let n=0;n<i;n++)this.putBit((o>>>i-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},st=e,st}var at,Ut;function ke(){if(Ut)return at;Ut=1;function e(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return e.prototype.set=function(o,i,n,t){const r=o*this.size+i;this.data[r]=n,t&&(this.reservedBit[r]=!0)},e.prototype.get=function(o,i){return this.data[o*this.size+i]},e.prototype.xor=function(o,i,n){this.data[o*this.size+i]^=n},e.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},at=e,at}var ut={},Ft;function Ve(){return Ft||(Ft=1,function(e){const o=V().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,r=o(n),s=r===145?26:Math.ceil((r-13)/(2*t-2))*2,a=[r-7];for(let u=1;u<t-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},e.getPositions=function(n){const t=[],r=e.getRowColCoords(n),s=r.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||t.push([r[a],r[u]]);return t}}(ut)),ut}var ct={},kt;function ze(){if(kt)return ct;kt=1;const e=V().getSymbolSize,o=7;return ct.getPositions=function(n){const t=e(n);return[[0,0],[t-o,0],[0,t-o]]},ct}var lt={},Vt;function Oe(){return Vt||(Vt=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const r=t.size;let s=0,a=0,u=0,c=null,d=null;for(let E=0;E<r;E++){a=u=0,c=d=null;for(let h=0;h<r;h++){let l=t.get(E,h);l===c?a++:(a>=5&&(s+=o.N1+(a-5)),c=l,a=1),l=t.get(h,E),l===d?u++:(u>=5&&(s+=o.N1+(u-5)),d=l,u=1)}a>=5&&(s+=o.N1+(a-5)),u>=5&&(s+=o.N1+(u-5))}return s},e.getPenaltyN2=function(t){const r=t.size;let s=0;for(let a=0;a<r-1;a++)for(let u=0;u<r-1;u++){const c=t.get(a,u)+t.get(a,u+1)+t.get(a+1,u)+t.get(a+1,u+1);(c===4||c===0)&&s++}return s*o.N2},e.getPenaltyN3=function(t){const r=t.size;let s=0,a=0,u=0;for(let c=0;c<r;c++){a=u=0;for(let d=0;d<r;d++)a=a<<1&2047|t.get(c,d),d>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|t.get(d,c),d>=10&&(u===1488||u===93)&&s++}return s*o.N3},e.getPenaltyN4=function(t){let r=0;const s=t.data.length;for(let u=0;u<s;u++)r+=t.data[u];return Math.abs(Math.ceil(r*100/s/5)-10)*o.N4};function i(n,t,r){switch(n){case e.Patterns.PATTERN000:return(t+r)%2===0;case e.Patterns.PATTERN001:return t%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(t+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(t,r){const s=r.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)r.isReserved(u,a)||r.xor(u,a,i(t,u,a))},e.getBestMask=function(t,r){const s=Object.keys(e.Patterns).length;let a=0,u=1/0;for(let c=0;c<s;c++){r(c),e.applyMask(c,t);const d=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(c,t),d<u&&(u=d,a=c)}return a}}(lt)),lt}var G={},zt;function ue(){if(zt)return G;zt=1;const e=At(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return G.getBlocksCount=function(t,r){switch(r){case e.L:return o[(t-1)*4+0];case e.M:return o[(t-1)*4+1];case e.Q:return o[(t-1)*4+2];case e.H:return o[(t-1)*4+3];default:return}},G.getTotalCodewordsCount=function(t,r){switch(r){case e.L:return i[(t-1)*4+0];case e.M:return i[(t-1)*4+1];case e.Q:return i[(t-1)*4+2];case e.H:return i[(t-1)*4+3];default:return}},G}var ft={},J={},Ot;function He(){if(Ot)return J;Ot=1;const e=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)e[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),J.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},J.exp=function(n){return e[n]},J.mul=function(n,t){return n===0||t===0?0:e[o[n]+o[t]]},J}var Ht;function je(){return Ht||(Ht=1,function(e){const o=He();e.mul=function(n,t){const r=new Uint8Array(n.length+t.length-1);for(let s=0;s<n.length;s++)for(let a=0;a<t.length;a++)r[s+a]^=o.mul(n[s],t[a]);return r},e.mod=function(n,t){let r=new Uint8Array(n);for(;r.length-t.length>=0;){const s=r[0];for(let u=0;u<t.length;u++)r[u]^=o.mul(t[u],s);let a=0;for(;a<r.length&&r[a]===0;)a++;r=r.slice(a)}return r},e.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let r=0;r<n;r++)t=e.mul(t,new Uint8Array([1,o.exp(r)]));return t}}(ft)),ft}var dt,jt;function Ke(){if(jt)return dt;jt=1;const e=je();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const r=e.mod(t,this.genPoly),s=this.degree-r.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(r,s),a}return r},dt=o,dt}var gt={},ht={},mt={},Kt;function ce(){return Kt||(Kt=1,mt.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),mt}var M={},Jt;function le(){if(Jt)return M;Jt=1;const e="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
2
2
  ]))+`;M.KANJI=new RegExp(i,"g"),M.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),M.BYTE=new RegExp(n,"g"),M.NUMERIC=new RegExp(e,"g"),M.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),r=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return M.testKanji=function(u){return t.test(u)},M.testNumeric=function(u){return r.test(u)},M.testAlphanumeric=function(u){return s.test(u)},M}var Yt;function z(){return Yt||(Yt=1,function(e){const o=ce(),i=le();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!o.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.from=function(r,s){if(e.isValid(r))return r;try{return n(r)}catch{return s}}}(ht)),ht}var $t;function Je(){return $t||($t=1,function(e){const o=V(),i=ue(),n=At(),t=z(),r=ce(),s=7973,a=o.getBCHDigit(s);function u(h,l,A){for(let N=1;N<=40;N++)if(l<=e.getCapacity(N,A,h))return N}function c(h,l){return t.getCharCountIndicator(h,l)+4}function d(h,l){let A=0;return h.forEach(function(N){const v=c(N.mode,l);A+=v+N.getBitsLength()}),A}function E(h,l){for(let A=1;A<=40;A++)if(d(h,A)<=e.getCapacity(A,l,t.MIXED))return A}e.from=function(l,A){return r.isValid(l)?parseInt(l,10):A},e.getCapacity=function(l,A,N){if(!r.isValid(l))throw new Error("Invalid QR Code version");typeof N>"u"&&(N=t.BYTE);const v=o.getSymbolTotalCodewords(l),I=i.getTotalCodewordsCount(l,A),S=(v-I)*8;if(N===t.MIXED)return S;const T=S-c(N,l);switch(N){case t.NUMERIC:return Math.floor(T/10*3);case t.ALPHANUMERIC:return Math.floor(T/11*2);case t.KANJI:return Math.floor(T/13);case t.BYTE:default:return Math.floor(T/8)}},e.getBestVersionForData=function(l,A){let N;const v=n.from(A,n.M);if(Array.isArray(l)){if(l.length>1)return E(l,v);if(l.length===0)return 1;N=l[0]}else N=l;return u(N.mode,N.getLength(),v)},e.getEncodedBits=function(l){if(!r.isValid(l)||l<7)throw new Error("Invalid QR Code version");let A=l<<12;for(;o.getBCHDigit(A)-a>=0;)A^=s<<o.getBCHDigit(A)-a;return l<<12|A}}(gt)),gt}var wt={},Qt;function Ye(){if(Qt)return wt;Qt=1;const e=V(),o=1335,i=21522,n=e.getBCHDigit(o);return wt.getEncodedBits=function(r,s){const a=r.bit<<3|s;let u=a<<10;for(;e.getBCHDigit(u)-n>=0;)u^=o<<e.getBCHDigit(u)-n;return(a<<10|u)^i},wt}var pt={},yt,Gt;function $e(){if(Gt)return yt;Gt=1;const e=z();function o(i){this.mode=e.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let t,r,s;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),s=parseInt(r,10),n.put(s,10);const a=this.data.length-t;a>0&&(r=this.data.substr(t),s=parseInt(r,10),n.put(s,a*3+1))},yt=o,yt}var Ct,xt;function Qe(){if(xt)return Ct;xt=1;const e=z(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(n){this.mode=e.ALPHANUMERIC,this.data=n}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let s=o.indexOf(this.data[r])*45;s+=o.indexOf(this.data[r+1]),t.put(s,11)}this.data.length%2&&t.put(o.indexOf(this.data[r]),6)},Ct=i,Ct}var Et,Zt;function Ge(){if(Zt)return Et;Zt=1;const e=z();function o(i){this.mode=e.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(n){return n*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let n=0,t=this.data.length;n<t;n++)i.put(this.data[n],8)},Et=o,Et}var Bt,Wt;function xe(){if(Wt)return Bt;Wt=1;const e=z(),o=V();function i(n){this.mode=e.KANJI,this.data=n}return i.getBitsLength=function(t){return t*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let r=o.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),n.put(r,13)}},Bt=i,Bt}var Rt={exports:{}},Xt;function Ze(){return Xt||(Xt=1,function(e){var o={single_source_shortest_paths:function(i,n,t){var r={},s={};s[n]=0;var a=o.PriorityQueue.make();a.push(n,0);for(var u,c,d,E,h,l,A,N,v;!a.empty();){u=a.pop(),c=u.value,E=u.cost,h=i[c]||{};for(d in h)h.hasOwnProperty(d)&&(l=h[d],A=E+l,N=s[d],v=typeof s[d]>"u",(v||N>A)&&(s[d]=A,a.push(d,A),r[d]=c))}if(typeof t<"u"&&typeof s[t]>"u"){var I=["Could not find a path from ",n," to ",t,"."].join("");throw new Error(I)}return r},extract_shortest_path_from_predecessor_list:function(i,n){for(var t=[],r=n;r;)t.push(r),i[r],r=i[r];return t.reverse(),t},find_path:function(i,n,t){var r=o.single_source_shortest_paths(i,n,t);return o.extract_shortest_path_from_predecessor_list(r,t)},PriorityQueue:{make:function(i){var n=o.PriorityQueue,t={},r;i=i||{};for(r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t.queue=[],t.sorter=i.sorter||n.default_sorter,t},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var t={value:i,cost:n};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=o}(Rt)),Rt.exports}var te;function We(){return te||(te=1,function(e){const o=z(),i=$e(),n=Qe(),t=Ge(),r=xe(),s=le(),a=V(),u=Ze();function c(I){return unescape(encodeURIComponent(I)).length}function d(I,S,T){const B=[];let _;for(;(_=I.exec(T))!==null;)B.push({data:_[0],index:_.index,mode:S,length:_[0].length});return B}function E(I){const S=d(s.NUMERIC,o.NUMERIC,I),T=d(s.ALPHANUMERIC,o.ALPHANUMERIC,I);let B,_;return a.isKanjiModeEnabled()?(B=d(s.BYTE,o.BYTE,I),_=d(s.KANJI,o.KANJI,I)):(B=d(s.BYTE_KANJI,o.BYTE,I),_=[]),S.concat(T,B,_).sort(function(y,p){return y.index-p.index}).map(function(y){return{data:y.data,mode:y.mode,length:y.length}})}function h(I,S){switch(S){case o.NUMERIC:return i.getBitsLength(I);case o.ALPHANUMERIC:return n.getBitsLength(I);case o.KANJI:return r.getBitsLength(I);case o.BYTE:return t.getBitsLength(I)}}function l(I){return I.reduce(function(S,T){const B=S.length-1>=0?S[S.length-1]:null;return B&&B.mode===T.mode?(S[S.length-1].data+=T.data,S):(S.push(T),S)},[])}function A(I){const S=[];for(let T=0;T<I.length;T++){const B=I[T];switch(B.mode){case o.NUMERIC:S.push([B,{data:B.data,mode:o.ALPHANUMERIC,length:B.length},{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.ALPHANUMERIC:S.push([B,{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.KANJI:S.push([B,{data:B.data,mode:o.BYTE,length:c(B.data)}]);break;case o.BYTE:S.push([{data:B.data,mode:o.BYTE,length:c(B.data)}])}}return S}function N(I,S){const T={},B={start:{}};let _=["start"];for(let g=0;g<I.length;g++){const y=I[g],p=[];for(let f=0;f<y.length;f++){const R=y[f],m=""+g+f;p.push(m),T[m]={node:R,lastCount:0},B[m]={};for(let C=0;C<_.length;C++){const w=_[C];T[w]&&T[w].node.mode===R.mode?(B[w][m]=h(T[w].lastCount+R.length,R.mode)-h(T[w].lastCount,R.mode),T[w].lastCount+=R.length):(T[w]&&(T[w].lastCount=R.length),B[w][m]=h(R.length,R.mode)+4+o.getCharCountIndicator(R.mode,S))}}_=p}for(let g=0;g<_.length;g++)B[_[g]].end=0;return{map:B,table:T}}function v(I,S){let T;const B=o.getBestModeForData(I);if(T=o.from(S,B),T!==o.BYTE&&T.bit<B.bit)throw new Error('"'+I+'" cannot be encoded with mode '+o.toString(T)+`.
4
4
  Suggested mode is: `+o.toString(B));switch(T===o.KANJI&&!a.isKanjiModeEnabled()&&(T=o.BYTE),T){case o.NUMERIC:return new i(I);case o.ALPHANUMERIC:return new n(I);case o.KANJI:return new r(I);case o.BYTE:return new t(I)}}e.fromArray=function(S){return S.reduce(function(T,B){return typeof B=="string"?T.push(v(B,null)):B.data&&T.push(v(B.data,B.mode)),T},[])},e.fromString=function(S,T){const B=E(S,a.isKanjiModeEnabled()),_=A(B),g=N(_,T),y=u.find_path(g.map,"start","end"),p=[];for(let f=1;f<y.length-1;f++)p.push(g.table[y[f]].node);return e.fromArray(l(p))},e.rawSplit=function(S){return e.fromArray(E(S,a.isKanjiModeEnabled()))}}(pt)),pt}var ee;function Xe(){if(ee)return ot;ee=1;const e=V(),o=At(),i=Fe(),n=ke(),t=Ve(),r=ze(),s=Oe(),a=ue(),u=Ke(),c=Je(),d=Ye(),E=z(),h=We();function l(g,y){const p=g.size,f=r.getPositions(y);for(let R=0;R<f.length;R++){const m=f[R][0],C=f[R][1];for(let w=-1;w<=7;w++)if(!(m+w<=-1||p<=m+w))for(let P=-1;P<=7;P++)C+P<=-1||p<=C+P||(w>=0&&w<=6&&(P===0||P===6)||P>=0&&P<=6&&(w===0||w===6)||w>=2&&w<=4&&P>=2&&P<=4?g.set(m+w,C+P,!0,!0):g.set(m+w,C+P,!1,!0))}}function A(g){const y=g.size;for(let p=8;p<y-8;p++){const f=p%2===0;g.set(p,6,f,!0),g.set(6,p,f,!0)}}function N(g,y){const p=t.getPositions(y);for(let f=0;f<p.length;f++){const R=p[f][0],m=p[f][1];for(let C=-2;C<=2;C++)for(let w=-2;w<=2;w++)C===-2||C===2||w===-2||w===2||C===0&&w===0?g.set(R+C,m+w,!0,!0):g.set(R+C,m+w,!1,!0)}}function v(g,y){const p=g.size,f=c.getEncodedBits(y);let R,m,C;for(let w=0;w<18;w++)R=Math.floor(w/3),m=w%3+p-8-3,C=(f>>w&1)===1,g.set(R,m,C,!0),g.set(m,R,C,!0)}function I(g,y,p){const f=g.size,R=d.getEncodedBits(y,p);let m,C;for(m=0;m<15;m++)C=(R>>m&1)===1,m<6?g.set(m,8,C,!0):m<8?g.set(m+1,8,C,!0):g.set(f-15+m,8,C,!0),m<8?g.set(8,f-m-1,C,!0):m<9?g.set(8,15-m-1+1,C,!0):g.set(8,15-m-1,C,!0);g.set(f-8,8,1,!0)}function S(g,y){const p=g.size;let f=-1,R=p-1,m=7,C=0;for(let w=p-1;w>0;w-=2)for(w===6&&w--;;){for(let P=0;P<2;P++)if(!g.isReserved(R,w-P)){let q=!1;C<y.length&&(q=(y[C]>>>m&1)===1),g.set(R,w-P,q),m--,m===-1&&(C++,m=7)}if(R+=f,R<0||p<=R){R-=f,f=-f;break}}}function T(g,y,p){const f=new i;p.forEach(function(P){f.put(P.mode.bit,4),f.put(P.getLength(),E.getCharCountIndicator(P.mode,g)),P.write(f)});const R=e.getSymbolTotalCodewords(g),m=a.getTotalCodewordsCount(g,y),C=(R-m)*8;for(f.getLengthInBits()+4<=C&&f.put(0,4);f.getLengthInBits()%8!==0;)f.putBit(0);const w=(C-f.getLengthInBits())/8;for(let P=0;P<w;P++)f.put(P%2?17:236,8);return B(f,g,y)}function B(g,y,p){const f=e.getSymbolTotalCodewords(y),R=a.getTotalCodewordsCount(y,p),m=f-R,C=a.getBlocksCount(y,p),w=f%C,P=C-w,q=Math.floor(f/C),K=Math.floor(m/C),he=K+1,Nt=q-K,me=new u(Nt);let Z=0;const Y=new Array(C),St=new Array(C);let W=0;const we=new Uint8Array(g.buffer);for(let O=0;O<C;O++){const tt=O<P?K:he;Y[O]=we.slice(Z,Z+tt),St[O]=me.encode(Y[O]),Z+=tt,W=Math.max(W,tt)}const X=new Uint8Array(f);let vt=0,b,L;for(b=0;b<W;b++)for(L=0;L<C;L++)b<Y[L].length&&(X[vt++]=Y[L][b]);for(b=0;b<Nt;b++)for(L=0;L<C;L++)X[vt++]=St[L][b];return X}function _(g,y,p,f){let R;if(Array.isArray(g))R=h.fromArray(g);else if(typeof g=="string"){let q=y;if(!q){const K=h.rawSplit(g);q=c.getBestVersionForData(K,p)}R=h.fromString(g,q||40)}else throw new Error("Invalid data");const m=c.getBestVersionForData(R,p);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(!y)y=m;else if(y<m)throw new Error(`
@@ -1,4 +1,4 @@
1
- import{ai as Y,aj as ut}from"./BhWccYlK.js";import{F as je,av as Zt,aX as $e,Z as Pe,W as Ve,az as We,a1 as Jt,X as Xe,a0 as Ge,a2 as De,a3 as qe}from"./koatKMQr.js";const at=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ye(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ft(e,...t){if(!ye(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function It(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");V(e.outputLen),V(e.blockLen)}function At(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ye(e,t){ft(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function St(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ct(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Et(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function q(e,t){return e<<32-t|e>>>t}function K(e,t){return e<<t|e>>>32-t>>>0}const Ze=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Je(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Qe(e){for(let t=0;t<e.length;t++)e[t]=Je(e[t]);return e}const Qt=Ze?e=>e:Qe,pe=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",tn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function en(e){if(ft(e),pe)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=tn[e[n]];return t}const tt={_0:48,_9:57,A:65,F:70,a:97,f:102};function te(e){if(e>=tt._0&&e<=tt._9)return e-tt._0;if(e>=tt.A&&e<=tt.F)return e-(tt.A-10);if(e>=tt.a&&e<=tt.f)return e-(tt.a-10)}function ge(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(pe)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const i=te(e.charCodeAt(s)),c=te(e.charCodeAt(s+1));if(i===void 0||c===void 0){const f=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+f+'" at index '+s)}r[o]=i*16+c}return r}function we(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function xt(e){return typeof e=="string"&&(e=we(e)),ft(e),e}function ee(e){return typeof e=="string"&&(e=we(e)),ft(e),e}function xe(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class be{}function nn(e){const t=r=>e().update(xt(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function ot(e=32){if(at&&typeof at.getRandomValues=="function")return at.getRandomValues(new Uint8Array(e));if(at&&typeof at.randomBytes=="function")return Uint8Array.from(at.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class me extends be{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,It(t);const r=xt(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=t.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),ct(s)}update(t){return At(this),this.iHash.update(t),this}digestInto(t){At(this),ft(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:s,blockLen:i,outputLen:c}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=i,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const gt=(e,t,n)=>new me(e,t).update(n).digest();gt.create=(e,t)=>new me(e,t);function Ee(e,t,n){return It(e),n===void 0&&(n=new Uint8Array(e.outputLen)),gt(e,xt(n),xt(t))}const kt=Uint8Array.from([0]),ne=Uint8Array.of();function rn(e,t,n,r=32){It(e),V(r);const o=e.outputLen;if(r>255*o)throw new Error("Length should be <= 255*HashLen");const s=Math.ceil(r/o);n===void 0&&(n=ne);const i=new Uint8Array(s*o),c=gt.create(e,t),f=c._cloneInto(),h=new Uint8Array(c.outputLen);for(let a=0;a<s;a++)kt[0]=a+1,f.update(a===0?ne:h).update(n).update(kt).digestInto(h),i.set(h,o*a),c._cloneInto(f);return c.destroy(),f.destroy(),ct(h,kt),i.slice(0,r)}const dt=(e,t,n,r,o)=>rn(e,Ee(e,t,n),r,o);function sn(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),f=r?4:0,h=r?0:4;e.setUint32(t+f,i,r),e.setUint32(t+h,c,r)}function on(e,t,n){return e&t^~e&n}function cn(e,t,n){return e&t^e&n^t&n}class fn extends be{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Et(this.buffer)}update(t){At(this),t=xt(t),ft(t);const{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let i=0;i<s;){const c=Math.min(o-this.pos,s-i);if(c===o){const f=Et(t);for(;o<=s-i;i+=o)this.process(f,i);continue}r.set(t.subarray(i,i+c),this.pos),this.pos+=c,i+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){At(this),Ye(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,ct(this.buffer.subarray(i)),this.padOffset>o-i&&(this.process(r,0),i=0);for(let l=i;l<o;l++)n[l]=0;sn(r,o-8,BigInt(this.length*8),s),this.process(r,0);const c=Et(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=f/4,a=this.get();if(h>a.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<h;l++)c.setUint32(4*l,a[l],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:c}=this;return t.destroyed=i,t.finished=s,t.length=o,t.pos=c,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const nt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),an=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),rt=new Uint32Array(64);class ln extends fn{constructor(t=32){super(64,t,8,!1),this.A=nt[0]|0,this.B=nt[1]|0,this.C=nt[2]|0,this.D=nt[3]|0,this.E=nt[4]|0,this.F=nt[5]|0,this.G=nt[6]|0,this.H=nt[7]|0}get(){const{A:t,B:n,C:r,D:o,E:s,F:i,G:c,H:f}=this;return[t,n,r,o,s,i,c,f]}set(t,n,r,o,s,i,c,f){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=f|0}process(t,n){for(let l=0;l<16;l++,n+=4)rt[l]=t.getUint32(n,!1);for(let l=16;l<64;l++){const w=rt[l-15],g=rt[l-2],b=q(w,7)^q(w,18)^w>>>3,p=q(g,17)^q(g,19)^g>>>10;rt[l]=p+rt[l-7]+b+rt[l-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:f,G:h,H:a}=this;for(let l=0;l<64;l++){const w=q(c,6)^q(c,11)^q(c,25),g=a+w+on(c,f,h)+an[l]+rt[l]|0,p=(q(r,2)^q(r,13)^q(r,22))+cn(r,o,s)|0;a=h,h=f,f=c,c=i+g|0,i=s,s=o,o=r,r=g+p|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,f=f+this.F|0,h=h+this.G|0,a=a+this.H|0,this.set(r,o,s,i,c,f,h,a)}roundClean(){ct(rt)}destroy(){this.set(0,0,0,0,0,0,0,0),ct(this.buffer)}}const $t=nn(()=>new ln),et=$t;function hn(e,t,n,r){It(e);const o=xe({dkLen:32,asyncTick:10},r),{c:s,dkLen:i,asyncTick:c}=o;if(V(s),V(i),V(c),s<1)throw new Error("iterations (c) should be >= 1");const f=ee(t),h=ee(n),a=new Uint8Array(i),l=gt.create(e,f),w=l._cloneInto().update(h);return{c:s,dkLen:i,asyncTick:c,DK:a,PRF:l,PRFSalt:w}}function un(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),ct(o),n}function Ae(e,t,n,r){const{c:o,dkLen:s,DK:i,PRF:c,PRFSalt:f}=hn(e,t,n,r);let h;const a=new Uint8Array(4),l=Et(a),w=new Uint8Array(c.outputLen);for(let g=1,b=0;b<s;g++,b+=c.outputLen){const p=i.subarray(b,b+c.outputLen);l.setInt32(0,g,!1),(h=f._cloneInto(h)).update(a).digestInto(w),p.set(w.subarray(0,p.length));for(let y=1;y<o;y++){c._cloneInto(h).update(w).digestInto(w);for(let B=0;B<p.length;B++)p[B]^=w[B]}}return un(c,f,i,h,w)}function re(e,t,n,r,o,s){let i=e[t++]^n[r++],c=e[t++]^n[r++],f=e[t++]^n[r++],h=e[t++]^n[r++],a=e[t++]^n[r++],l=e[t++]^n[r++],w=e[t++]^n[r++],g=e[t++]^n[r++],b=e[t++]^n[r++],p=e[t++]^n[r++],y=e[t++]^n[r++],B=e[t++]^n[r++],M=e[t++]^n[r++],z=e[t++]^n[r++],O=e[t++]^n[r++],j=e[t++]^n[r++],v=i,H=c,R=f,C=h,_=a,S=l,k=w,d=g,x=b,m=p,I=y,E=B,A=M,u=z,U=O,L=j;for(let F=0;F<8;F+=2)_^=K(v+A|0,7),x^=K(_+v|0,9),A^=K(x+_|0,13),v^=K(A+x|0,18),m^=K(S+H|0,7),u^=K(m+S|0,9),H^=K(u+m|0,13),S^=K(H+u|0,18),U^=K(I+k|0,7),R^=K(U+I|0,9),k^=K(R+U|0,13),I^=K(k+R|0,18),C^=K(L+E|0,7),d^=K(C+L|0,9),E^=K(d+C|0,13),L^=K(E+d|0,18),H^=K(v+C|0,7),R^=K(H+v|0,9),C^=K(R+H|0,13),v^=K(C+R|0,18),k^=K(S+_|0,7),d^=K(k+S|0,9),_^=K(d+k|0,13),S^=K(_+d|0,18),E^=K(I+m|0,7),x^=K(E+I|0,9),m^=K(x+E|0,13),I^=K(m+x|0,18),A^=K(L+U|0,7),u^=K(A+L|0,9),U^=K(u+A|0,13),L^=K(U+u|0,18);o[s++]=i+v|0,o[s++]=c+H|0,o[s++]=f+R|0,o[s++]=h+C|0,o[s++]=a+_|0,o[s++]=l+S|0,o[s++]=w+k|0,o[s++]=g+d|0,o[s++]=b+x|0,o[s++]=p+m|0,o[s++]=y+I|0,o[s++]=B+E|0,o[s++]=M+A|0,o[s++]=z+u|0,o[s++]=O+U|0,o[s++]=j+L|0}function vt(e,t,n,r,o){let s=r+0,i=r+16*o;for(let c=0;c<16;c++)n[i+c]=e[t+(2*o-1)*16+c];for(let c=0;c<o;c++,s+=16,t+=16)re(n,i,e,t,n,s),c>0&&(i+=16),re(n,s,e,t+=16,n,i)}function dn(e,t,n){const r=xe({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:s,p:i,dkLen:c,asyncTick:f,maxmem:h,onProgress:a}=r;if(V(o),V(s),V(i),V(c),V(f),V(h),a!==void 0&&typeof a!="function")throw new Error("progressCb should be function");const l=128*s,w=l/4,g=Math.pow(2,32);if(o<=1||(o&o-1)!==0||o>g)throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");if(i<0||i>(g-1)*32/l)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(c<0||c>(g-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");if(l*(o+i)>h)throw new Error("Scrypt: memused is bigger than maxMem. Expected 128 * r * (N + p) > maxmem of "+h);const p=Ae($t,e,t,{c:1,dkLen:l*i}),y=St(p),B=St(new Uint8Array(l*o)),M=St(new Uint8Array(l));let z=()=>{};if(a){const O=2*o*i,j=Math.max(Math.floor(O/1e4),1);let v=0;z=()=>{v++,a&&(!(v%j)||v===O)&&a(v/O)}}return{N:o,r:s,p:i,dkLen:c,blockSize32:w,V:B,B32:y,B:p,tmp:M,blockMixCb:z,asyncTick:f}}function yn(e,t,n,r,o){const s=Ae($t,e,n,{c:1,dkLen:t});return ct(n,r,o),s}function Be(e,t,n){const{N:r,r:o,p:s,dkLen:i,blockSize32:c,V:f,B32:h,B:a,tmp:l,blockMixCb:w}=dn(e,t,n);Qt(h);for(let g=0;g<s;g++){const b=c*g;for(let p=0;p<c;p++)f[p]=h[b+p];for(let p=0,y=0;p<r-1;p++)vt(f,y,f,y+=c,o),w();vt(f,(r-1)*c,h,b,o),w();for(let p=0;p<r;p++){const y=h[b+c-16]%r;for(let B=0;B<c;B++)l[B]=h[b+B]^f[y*c+B];vt(l,0,h,b,o),w()}}return Qt(h),yn(e,i,a,f,l)}/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */function Ue(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ht(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function Kt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function $(e,...t){if(!Ue(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function pn(e,t){$(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function st(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function yt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function gn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}const wn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function xn(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Ft(e){if(typeof e=="string")e=xn(e);else if(Ue(e))e=Rt(e);else throw new Error("Uint8Array expected, got "+typeof e);return e}function bn(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function mn(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}const En=(e,t)=>{function n(r,...o){if($(r),!wn)throw new Error("Non little-endian hardware is not yet supported");if(e.nonceLength!==void 0){const a=o[0];if(!a)throw new Error("nonce / iv required");e.varSizeNonce?$(a):$(a,e.nonceLength)}const s=e.tagLength;s&&o[1]!==void 0&&$(o[1]);const i=t(r,...o),c=(a,l)=>{if(l!==void 0){if(a!==2)throw new Error("cipher output not supported");$(l)}};let f=!1;return{encrypt(a,l){if(f)throw new Error("cannot encrypt() twice with same key + nonce");return f=!0,$(a),c(i.encrypt.length,l),i.encrypt(a,l)},decrypt(a,l){if($(a),s&&a.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(i.decrypt.length,l),i.decrypt(a,l)}}}return Object.assign(n,e),n};function oe(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(n&&!Bn(t))throw new Error("invalid output, must be aligned");return t}function ie(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),f=4,h=0;e.setUint32(t+f,i,r),e.setUint32(t+h,c,r)}function An(e,t,n){Ht(n);const r=new Uint8Array(16),o=gn(r);return ie(o,0,BigInt(t),n),ie(o,8,BigInt(e),n),r}function Bn(e){return e.byteOffset%4===0}function Rt(e){return Uint8Array.from(e)}const Ie=e=>Uint8Array.from(e.split("").map(t=>t.charCodeAt(0))),Un=Ie("expand 16-byte k"),In=Ie("expand 32-byte k"),Ln=st(Un),Cn=st(In);function T(e,t){return e<<t|e>>>32-t}function Mt(e){return e.byteOffset%4===0}const bt=64,_n=16,Le=2**32-1,ce=new Uint32Array;function Sn(e,t,n,r,o,s,i,c){const f=o.length,h=new Uint8Array(bt),a=st(h),l=Mt(o)&&Mt(s),w=l?st(o):ce,g=l?st(s):ce;for(let b=0;b<f;i++){if(e(t,n,r,a,i,c),i>=Le)throw new Error("arx: counter overflow");const p=Math.min(bt,f-b);if(l&&p===bt){const y=b/4;if(b%4!==0)throw new Error("arx: invalid block position");for(let B=0,M;B<_n;B++)M=y+B,g[M]=w[M]^a[B];b+=bt;continue}for(let y=0,B;y<p;y++)B=b+y,s[B]=o[B]^h[y];b+=p}}function kn(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:s,rounds:i}=bn({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return Kt(o),Kt(i),Ht(s),Ht(n),(c,f,h,a,l=0)=>{$(c),$(f),$(h);const w=h.length;if(a===void 0&&(a=new Uint8Array(w)),$(a),Kt(l),l<0||l>=Le)throw new Error("arx: counter overflow");if(a.length<w)throw new Error(`arx: output (${a.length}) is shorter than data (${w})`);const g=[];let b=c.length,p,y;if(b===32)g.push(p=Rt(c)),y=Cn;else if(b===16&&n)p=new Uint8Array(32),p.set(c),p.set(c,16),y=Ln,g.push(p);else throw new Error(`arx: invalid 32-byte key, got length=${b}`);Mt(f)||g.push(f=Rt(f));const B=st(p);if(r){if(f.length!==24)throw new Error("arx: extended nonce must be 24 bytes");r(y,B,st(f.subarray(0,16)),B),f=f.subarray(16)}const M=16-o;if(M!==f.length)throw new Error(`arx: nonce must be ${M} or 16 bytes`);if(M!==12){const O=new Uint8Array(12);O.set(f,s?0:12-f.length),f=O,g.push(f)}const z=st(f);return Sn(e,y,B,z,h,a,l,i),yt(...g),a}}const N=(e,t)=>e[t++]&255|(e[t++]&255)<<8;class vn{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=Ft(t),$(t,32);const n=N(t,0),r=N(t,2),o=N(t,4),s=N(t,6),i=N(t,8),c=N(t,10),f=N(t,12),h=N(t,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|s<<9)&8191,this.r[4]=(s>>>4|i<<12)&255,this.r[5]=i>>>1&8190,this.r[6]=(i>>>14|c<<2)&8191,this.r[7]=(c>>>11|f<<5)&8065,this.r[8]=(f>>>8|h<<8)&8191,this.r[9]=h>>>5&127;for(let a=0;a<8;a++)this.pad[a]=N(t,16+2*a)}process(t,n,r=!1){const o=r?0:2048,{h:s,r:i}=this,c=i[0],f=i[1],h=i[2],a=i[3],l=i[4],w=i[5],g=i[6],b=i[7],p=i[8],y=i[9],B=N(t,n+0),M=N(t,n+2),z=N(t,n+4),O=N(t,n+6),j=N(t,n+8),v=N(t,n+10),H=N(t,n+12),R=N(t,n+14);let C=s[0]+(B&8191),_=s[1]+((B>>>13|M<<3)&8191),S=s[2]+((M>>>10|z<<6)&8191),k=s[3]+((z>>>7|O<<9)&8191),d=s[4]+((O>>>4|j<<12)&8191),x=s[5]+(j>>>1&8191),m=s[6]+((j>>>14|v<<2)&8191),I=s[7]+((v>>>11|H<<5)&8191),E=s[8]+((H>>>8|R<<8)&8191),A=s[9]+(R>>>5|o),u=0,U=u+C*c+_*(5*y)+S*(5*p)+k*(5*b)+d*(5*g);u=U>>>13,U&=8191,U+=x*(5*w)+m*(5*l)+I*(5*a)+E*(5*h)+A*(5*f),u+=U>>>13,U&=8191;let L=u+C*f+_*c+S*(5*y)+k*(5*p)+d*(5*b);u=L>>>13,L&=8191,L+=x*(5*g)+m*(5*w)+I*(5*l)+E*(5*a)+A*(5*h),u+=L>>>13,L&=8191;let F=u+C*h+_*f+S*c+k*(5*y)+d*(5*p);u=F>>>13,F&=8191,F+=x*(5*b)+m*(5*g)+I*(5*w)+E*(5*l)+A*(5*a),u+=F>>>13,F&=8191;let P=u+C*a+_*h+S*f+k*c+d*(5*y);u=P>>>13,P&=8191,P+=x*(5*p)+m*(5*b)+I*(5*g)+E*(5*w)+A*(5*l),u+=P>>>13,P&=8191;let Z=u+C*l+_*a+S*h+k*f+d*c;u=Z>>>13,Z&=8191,Z+=x*(5*y)+m*(5*p)+I*(5*b)+E*(5*g)+A*(5*w),u+=Z>>>13,Z&=8191;let X=u+C*w+_*l+S*a+k*h+d*f;u=X>>>13,X&=8191,X+=x*c+m*(5*y)+I*(5*p)+E*(5*b)+A*(5*g),u+=X>>>13,X&=8191;let G=u+C*g+_*w+S*l+k*a+d*h;u=G>>>13,G&=8191,G+=x*f+m*c+I*(5*y)+E*(5*p)+A*(5*b),u+=G>>>13,G&=8191;let D=u+C*b+_*g+S*w+k*l+d*a;u=D>>>13,D&=8191,D+=x*h+m*f+I*c+E*(5*y)+A*(5*p),u+=D>>>13,D&=8191;let J=u+C*p+_*b+S*g+k*w+d*l;u=J>>>13,J&=8191,J+=x*a+m*h+I*f+E*c+A*(5*y),u+=J>>>13,J&=8191;let Q=u+C*y+_*p+S*b+k*g+d*w;u=Q>>>13,Q&=8191,Q+=x*l+m*a+I*h+E*f+A*c,u+=Q>>>13,Q&=8191,u=(u<<2)+u|0,u=u+U|0,U=u&8191,u=u>>>13,L+=u,s[0]=U,s[1]=L,s[2]=F,s[3]=P,s[4]=Z,s[5]=X,s[6]=G,s[7]=D,s[8]=J,s[9]=Q}finalize(){const{h:t,pad:n}=this,r=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let c=2;c<10;c++)t[c]+=o,o=t[c]>>>13,t[c]&=8191;t[0]+=o*5,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=t[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let s=(o^1)-1;for(let c=0;c<10;c++)r[c]&=s;s=~s;for(let c=0;c<10;c++)t[c]=t[c]&s|r[c];t[0]=(t[0]|t[1]<<13)&65535,t[1]=(t[1]>>>3|t[2]<<10)&65535,t[2]=(t[2]>>>6|t[3]<<7)&65535,t[3]=(t[3]>>>9|t[4]<<4)&65535,t[4]=(t[4]>>>12|t[5]<<1|t[6]<<14)&65535,t[5]=(t[6]>>>2|t[7]<<11)&65535,t[6]=(t[7]>>>5|t[8]<<8)&65535,t[7]=(t[8]>>>8|t[9]<<5)&65535;let i=t[0]+n[0];t[0]=i&65535;for(let c=1;c<8;c++)i=(t[c]+n[c]|0)+(i>>>16)|0,t[c]=i&65535;yt(r)}update(t){se(this),t=Ft(t),$(t);const{buffer:n,blockLen:r}=this,o=t.length;for(let s=0;s<o;){const i=Math.min(r-this.pos,o-s);if(i===r){for(;r<=o-s;s+=r)this.process(t,s);continue}n.set(t.subarray(s,s+i),this.pos),this.pos+=i,s+=i,this.pos===r&&(this.process(n,0,!1),this.pos=0)}return this}destroy(){yt(this.h,this.r,this.buffer,this.pad)}digestInto(t){se(this),pn(t,this),this.finished=!0;const{buffer:n,h:r}=this;let{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let s=0;for(let i=0;i<8;i++)t[s++]=r[i]>>>0,t[s++]=r[i]>>>8;return t}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}}function Kn(e){const t=(r,o)=>e(o).update(Ft(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}const Tn=Kn(e=>new vn(e));function Hn(e,t,n,r,o,s=20){let i=e[0],c=e[1],f=e[2],h=e[3],a=t[0],l=t[1],w=t[2],g=t[3],b=t[4],p=t[5],y=t[6],B=t[7],M=o,z=n[0],O=n[1],j=n[2],v=i,H=c,R=f,C=h,_=a,S=l,k=w,d=g,x=b,m=p,I=y,E=B,A=M,u=z,U=O,L=j;for(let P=0;P<s;P+=2)v=v+_|0,A=T(A^v,16),x=x+A|0,_=T(_^x,12),v=v+_|0,A=T(A^v,8),x=x+A|0,_=T(_^x,7),H=H+S|0,u=T(u^H,16),m=m+u|0,S=T(S^m,12),H=H+S|0,u=T(u^H,8),m=m+u|0,S=T(S^m,7),R=R+k|0,U=T(U^R,16),I=I+U|0,k=T(k^I,12),R=R+k|0,U=T(U^R,8),I=I+U|0,k=T(k^I,7),C=C+d|0,L=T(L^C,16),E=E+L|0,d=T(d^E,12),C=C+d|0,L=T(L^C,8),E=E+L|0,d=T(d^E,7),v=v+S|0,L=T(L^v,16),I=I+L|0,S=T(S^I,12),v=v+S|0,L=T(L^v,8),I=I+L|0,S=T(S^I,7),H=H+k|0,A=T(A^H,16),E=E+A|0,k=T(k^E,12),H=H+k|0,A=T(A^H,8),E=E+A|0,k=T(k^E,7),R=R+d|0,u=T(u^R,16),x=x+u|0,d=T(d^x,12),R=R+d|0,u=T(u^R,8),x=x+u|0,d=T(d^x,7),C=C+_|0,U=T(U^C,16),m=m+U|0,_=T(_^m,12),C=C+_|0,U=T(U^C,8),m=m+U|0,_=T(_^m,7);let F=0;r[F++]=i+v|0,r[F++]=c+H|0,r[F++]=f+R|0,r[F++]=h+C|0,r[F++]=a+_|0,r[F++]=l+S|0,r[F++]=w+k|0,r[F++]=g+d|0,r[F++]=b+x|0,r[F++]=p+m|0,r[F++]=y+I|0,r[F++]=B+E|0,r[F++]=M+A|0,r[F++]=z+u|0,r[F++]=O+U|0,r[F++]=j+L|0}const Fn=kn(Hn,{counterRight:!1,counterLength:4,allowShortKeys:!1}),Rn=new Uint8Array(16),fe=(e,t)=>{e.update(t);const n=t.length%16;n&&e.update(Rn.subarray(n))},Mn=new Uint8Array(32);function ae(e,t,n,r,o){const s=e(t,n,Mn),i=Tn.create(s);o&&fe(i,o),fe(i,r);const c=An(r.length,o?o.length:0,!0);i.update(c);const f=i.digest();return yt(s,c),f}const On=e=>(t,n,r)=>({encrypt(s,i){const c=s.length;i=oe(c+16,i,!1),i.set(s);const f=i.subarray(0,-16);e(t,n,f,f,1);const h=ae(e,t,n,f,r);return i.set(h,c),yt(h),i},decrypt(s,i){i=oe(s.length-16,i,!1);const c=s.subarray(0,-16),f=s.subarray(-16),h=ae(e,t,n,c,r);if(!mn(f,h))throw new Error("invalid tag");return i.set(s.subarray(0,-16)),e(t,n,i,i,1),yt(h),i}}),pt=En({blockSize:64,nonceLength:12,tagLength:16},On(Fn));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ce=BigInt(0);function Nn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ce:BigInt("0x"+e)}function le(e){return ft(e),Nn(en(Uint8Array.from(e).reverse()))}function zn(e,t){return ge(e.toString(16).padStart(t*2,"0"))}function jn(e,t){return zn(e,t).reverse()}function he(e,t,n){let r;if(typeof t=="string")try{r=ge(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(ye(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=r.length;if(typeof n=="number"&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}const Tt=e=>typeof e=="bigint"&&Ce<=e;function $n(e,t,n){return Tt(e)&&Tt(t)&&Tt(n)&&t<=e&&e<n}function ue(e,t,n,r){if(!$n(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Pn(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(o,s,i){const c=e[o];if(i&&c===void 0)return;const f=typeof c;if(f!==s||c===null)throw new Error(`param "${o}" is invalid: expected ${s}, got ${f}`)}Object.entries(t).forEach(([o,s])=>r(o,s,!1)),Object.entries(n).forEach(([o,s])=>r(o,s,!0))}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _e=BigInt(0);BigInt(1);function Se(e,t){const n=e%t;return n>=_e?n:t+n}function W(e,t,n){let r=e;for(;t-- >_e;)r*=r,r%=n;return r}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wt=BigInt(0),lt=BigInt(1),mt=BigInt(2);function Vn(e){return Pn(e,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...e})}function Wn(e){const t=Vn(e),{P:n,type:r,adjustScalarBytes:o,powPminus2:s,randomBytes:i}=t,c=r==="x25519";if(!c&&r!=="x448")throw new Error("invalid type");const f=i||ot,h=c?255:448,a=c?32:56,l=BigInt(c?9:5),w=BigInt(c?121665:39081),g=c?mt**BigInt(254):mt**BigInt(447),b=c?BigInt(8)*mt**BigInt(251)-lt:BigInt(4)*mt**BigInt(445)-lt,p=g+b+lt,y=d=>Se(d,n),B=M(l);function M(d){return jn(y(d),a)}function z(d){const x=he("u coordinate",d,a);return c&&(x[31]&=127),y(le(x))}function O(d){return le(o(he("scalar",d,a)))}function j(d,x){const m=R(z(x),O(d));if(m===wt)throw new Error("invalid private or public key received");return M(m)}function v(d){return j(d,B)}function H(d,x,m){const I=y(d*(x-m));return x=y(x-I),m=y(m+I),{x_2:x,x_3:m}}function R(d,x){ue("u",d,wt,n),ue("scalar",x,g,p);const m=x,I=d;let E=lt,A=wt,u=d,U=lt,L=wt;for(let P=BigInt(h-1);P>=wt;P--){const Z=m>>P&lt;L^=Z,{x_2:E,x_3:u}=H(L,E,u),{x_2:A,x_3:U}=H(L,A,U),L=Z;const X=E+A,G=y(X*X),D=E-A,J=y(D*D),Q=G-J,Ne=u+U,ze=u-U,Gt=y(ze*X),Dt=y(Ne*D),qt=Gt+Dt,Yt=Gt-Dt;u=y(qt*qt),U=y(I*y(Yt*Yt)),E=y(G*J),A=y(Q*(G+y(w*Q)))}({x_2:E,x_3:u}=H(L,E,u)),{x_2:A,x_3:U}=H(L,A,U);const F=s(A);return y(E*F)}const C=(d=f(a))=>d,_={randomSecretKey:C,randomPrivateKey:C};function S(d){const x=_.randomSecretKey(d);return{secretKey:x,publicKey:v(x)}}const k={secret:a,public:a,seed:a};return{keygen:S,getSharedSecret:(d,x)=>j(d,x),getPublicKey:d=>v(d),scalarMult:j,scalarMultBase:v,utils:_,GuBytes:B.slice(),info:{type:"montgomery",lengths:k}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */BigInt(0);const Xn=BigInt(1),de=BigInt(2),Gn=BigInt(3),Dn=BigInt(5);BigInt(8);const ke={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function qn(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),s=ke.p,c=e*e%s*e%s,f=W(c,de,s)*c%s,h=W(f,Xn,s)*e%s,a=W(h,Dn,s)*h%s,l=W(a,t,s)*a%s,w=W(l,n,s)*l%s,g=W(w,r,s)*w%s,b=W(g,o,s)*g%s,p=W(b,o,s)*g%s,y=W(p,t,s)*a%s;return{pow_p_5_8:W(y,de,s)*e%s,b2:c}}function Yn(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Ot=(()=>{const e=ke.p;return Wn({P:e,type:"x25519",powPminus2:t=>{const{pow_p_5_8:n,b2:r}=qn(t);return Se(W(n,Gn,e)*r,e)},adjustScalarBytes:Yn})})(),ve=!1;async function Ke(e,t){try{return await e()}catch(n){if(n instanceof ReferenceError||n instanceof DOMException&&n.name==="NotSupportedError")return await t();throw n}}async function Pt(e,t){return await Ke(async()=>{const n=Nt(e)?e:await Jn(e),r=await crypto.subtle.importKey("raw",t,{name:"X25519"},ve,[]);return new Uint8Array(await crypto.subtle.deriveBits({name:"X25519",public:r},n,256))},()=>{if(Nt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Ot.scalarMult(e,t)})}async function Bt(e){return await Ke(async()=>Pt(e,Ot.GuBytes),()=>{if(Nt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Ot.scalarMultBase(e)})}const Zn=new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,110,4,34,4,32]);async function Jn(e){if(e.length!==32)throw new Error("X25519 private key must be 32 bytes");const t=new Uint8Array([...Zn,...e]);return crypto.subtle.importKey("pkcs8",t,{name:"X25519"},ve,["deriveBits"])}function Nt(e){return typeof CryptoKey<"u"&&e instanceof CryptoKey}class Qn{s;transcript=[];buf=new Uint8Array(0);constructor(t){this.s=t.getReader()}async readLine(){const t=[];for(;;){const n=this.buf.indexOf(10);if(n>=0)return t.push(this.buf.subarray(0,n)),this.transcript.push(this.buf.subarray(0,n+1)),this.buf=this.buf.subarray(n+1),tr(ht(t));this.buf.length>0&&(t.push(this.buf),this.transcript.push(this.buf));const r=await this.s.read();if(r.done)return this.buf=ht(t),null;this.buf=r.value}}close(){return this.s.releaseLock(),{rest:this.buf,transcript:ht(this.transcript)}}}function tr(e){return e.forEach(t=>{if(t<32||t>126)throw Error("invalid non-ASCII byte in header")}),new TextDecoder().decode(e)}function ht(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Ut(e,...t){return e.pipeThrough(new TransformStream({start(n){for(const r of t)n.enqueue(r)}}))}function zt(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function Te(e){if(!(e instanceof ReadableStream))throw new Error("readAll expects a ReadableStream<Uint8Array>");return new Uint8Array(await new Response(e).arrayBuffer())}async function er(e){if(!(e instanceof ReadableStream))throw new Error("readAllString expects a ReadableStream<Uint8Array>");return await new Response(e).text()}async function nr(e,t){const n=e.getReader(),r=[];let o=0;for(;o<t;){const{done:f,value:h}=await n.read();if(f)throw Error("stream ended before reading "+t+" bytes");r.push(h),o+=h.length}n.releaseLock();const s=ht(r),i=s.subarray(0,t),c=Ut(e,s.subarray(t));return{data:i,rest:c}}class Lt{args;body;constructor(t,n){this.args=t,this.body=n}}async function rr(e){const t=await e.readLine();if(t===null)throw Error("invalid stanza");const n=t.split(" ");if(n.length<2||n.shift()!=="->")return{next:t};for(const s of n)if(s.length===0)throw Error("invalid stanza");const r=[];for(;;){const s=await e.readLine();if(s===null)throw Error("invalid stanza");const i=Y.decode(s);if(i.length>48)throw Error("invalid stanza");if(r.push(i),i.length<48)break}const o=ht(r);return{s:new Lt(n,o)}}async function sr(e){const t=new Qn(e),n=await t.readLine();if(n!=="age-encryption.org/v1")throw Error("invalid version "+(n??"line"));const r=[];for(;;){const{s:o,next:s}=await rr(t);if(o!==void 0){r.push(o);continue}if(!s.startsWith("--- "))throw Error("invalid header");const i=Y.decode(s.slice(4)),{rest:c,transcript:f}=t.close(),h=f.slice(0,f.length-1-s.length+3);return{stanzas:r,headerNoMAC:h,MAC:i,headerSize:f.length,rest:Ut(e,c)}}}function He(e){const t=[];t.push(`age-encryption.org/v1
1
+ import{ai as Y,aj as ut}from"./DlgqOs51.js";import{F as je,av as Zt,aX as $e,Z as Pe,W as Ve,az as We,a1 as Jt,X as Xe,a0 as Ge,a2 as De,a3 as qe}from"./B9WOzG0F.js";const at=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ye(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ft(e,...t){if(!ye(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function It(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");V(e.outputLen),V(e.blockLen)}function At(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ye(e,t){ft(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function St(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ct(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Et(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function q(e,t){return e<<32-t|e>>>t}function K(e,t){return e<<t|e>>>32-t>>>0}const Ze=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function Je(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Qe(e){for(let t=0;t<e.length;t++)e[t]=Je(e[t]);return e}const Qt=Ze?e=>e:Qe,pe=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",tn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function en(e){if(ft(e),pe)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=tn[e[n]];return t}const tt={_0:48,_9:57,A:65,F:70,a:97,f:102};function te(e){if(e>=tt._0&&e<=tt._9)return e-tt._0;if(e>=tt.A&&e<=tt.F)return e-(tt.A-10);if(e>=tt.a&&e<=tt.f)return e-(tt.a-10)}function ge(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(pe)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let o=0,s=0;o<n;o++,s+=2){const i=te(e.charCodeAt(s)),c=te(e.charCodeAt(s+1));if(i===void 0||c===void 0){const f=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+f+'" at index '+s)}r[o]=i*16+c}return r}function we(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function xt(e){return typeof e=="string"&&(e=we(e)),ft(e),e}function ee(e){return typeof e=="string"&&(e=we(e)),ft(e),e}function xe(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class be{}function nn(e){const t=r=>e().update(xt(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function ot(e=32){if(at&&typeof at.getRandomValues=="function")return at.getRandomValues(new Uint8Array(e));if(at&&typeof at.randomBytes=="function")return Uint8Array.from(at.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class me extends be{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,It(t);const r=xt(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=t.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),ct(s)}update(t){return At(this),this.iHash.update(t),this}digestInto(t){At(this),ft(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:s,blockLen:i,outputLen:c}=this;return t=t,t.finished=o,t.destroyed=s,t.blockLen=i,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const gt=(e,t,n)=>new me(e,t).update(n).digest();gt.create=(e,t)=>new me(e,t);function Ee(e,t,n){return It(e),n===void 0&&(n=new Uint8Array(e.outputLen)),gt(e,xt(n),xt(t))}const kt=Uint8Array.from([0]),ne=Uint8Array.of();function rn(e,t,n,r=32){It(e),V(r);const o=e.outputLen;if(r>255*o)throw new Error("Length should be <= 255*HashLen");const s=Math.ceil(r/o);n===void 0&&(n=ne);const i=new Uint8Array(s*o),c=gt.create(e,t),f=c._cloneInto(),h=new Uint8Array(c.outputLen);for(let a=0;a<s;a++)kt[0]=a+1,f.update(a===0?ne:h).update(n).update(kt).digestInto(h),i.set(h,o*a),c._cloneInto(f);return c.destroy(),f.destroy(),ct(h,kt),i.slice(0,r)}const dt=(e,t,n,r,o)=>rn(e,Ee(e,t,n),r,o);function sn(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),f=r?4:0,h=r?0:4;e.setUint32(t+f,i,r),e.setUint32(t+h,c,r)}function on(e,t,n){return e&t^~e&n}function cn(e,t,n){return e&t^e&n^t&n}class fn extends be{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Et(this.buffer)}update(t){At(this),t=xt(t),ft(t);const{view:n,buffer:r,blockLen:o}=this,s=t.length;for(let i=0;i<s;){const c=Math.min(o-this.pos,s-i);if(c===o){const f=Et(t);for(;o<=s-i;i+=o)this.process(f,i);continue}r.set(t.subarray(i,i+c),this.pos),this.pos+=c,i+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){At(this),Ye(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,ct(this.buffer.subarray(i)),this.padOffset>o-i&&(this.process(r,0),i=0);for(let l=i;l<o;l++)n[l]=0;sn(r,o-8,BigInt(this.length*8),s),this.process(r,0);const c=Et(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=f/4,a=this.get();if(h>a.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<h;l++)c.setUint32(4*l,a[l],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:c}=this;return t.destroyed=i,t.finished=s,t.length=o,t.pos=c,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const nt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),an=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),rt=new Uint32Array(64);class ln extends fn{constructor(t=32){super(64,t,8,!1),this.A=nt[0]|0,this.B=nt[1]|0,this.C=nt[2]|0,this.D=nt[3]|0,this.E=nt[4]|0,this.F=nt[5]|0,this.G=nt[6]|0,this.H=nt[7]|0}get(){const{A:t,B:n,C:r,D:o,E:s,F:i,G:c,H:f}=this;return[t,n,r,o,s,i,c,f]}set(t,n,r,o,s,i,c,f){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=f|0}process(t,n){for(let l=0;l<16;l++,n+=4)rt[l]=t.getUint32(n,!1);for(let l=16;l<64;l++){const w=rt[l-15],g=rt[l-2],b=q(w,7)^q(w,18)^w>>>3,p=q(g,17)^q(g,19)^g>>>10;rt[l]=p+rt[l-7]+b+rt[l-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:f,G:h,H:a}=this;for(let l=0;l<64;l++){const w=q(c,6)^q(c,11)^q(c,25),g=a+w+on(c,f,h)+an[l]+rt[l]|0,p=(q(r,2)^q(r,13)^q(r,22))+cn(r,o,s)|0;a=h,h=f,f=c,c=i+g|0,i=s,s=o,o=r,r=g+p|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,f=f+this.F|0,h=h+this.G|0,a=a+this.H|0,this.set(r,o,s,i,c,f,h,a)}roundClean(){ct(rt)}destroy(){this.set(0,0,0,0,0,0,0,0),ct(this.buffer)}}const $t=nn(()=>new ln),et=$t;function hn(e,t,n,r){It(e);const o=xe({dkLen:32,asyncTick:10},r),{c:s,dkLen:i,asyncTick:c}=o;if(V(s),V(i),V(c),s<1)throw new Error("iterations (c) should be >= 1");const f=ee(t),h=ee(n),a=new Uint8Array(i),l=gt.create(e,f),w=l._cloneInto().update(h);return{c:s,dkLen:i,asyncTick:c,DK:a,PRF:l,PRFSalt:w}}function un(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),ct(o),n}function Ae(e,t,n,r){const{c:o,dkLen:s,DK:i,PRF:c,PRFSalt:f}=hn(e,t,n,r);let h;const a=new Uint8Array(4),l=Et(a),w=new Uint8Array(c.outputLen);for(let g=1,b=0;b<s;g++,b+=c.outputLen){const p=i.subarray(b,b+c.outputLen);l.setInt32(0,g,!1),(h=f._cloneInto(h)).update(a).digestInto(w),p.set(w.subarray(0,p.length));for(let y=1;y<o;y++){c._cloneInto(h).update(w).digestInto(w);for(let B=0;B<p.length;B++)p[B]^=w[B]}}return un(c,f,i,h,w)}function re(e,t,n,r,o,s){let i=e[t++]^n[r++],c=e[t++]^n[r++],f=e[t++]^n[r++],h=e[t++]^n[r++],a=e[t++]^n[r++],l=e[t++]^n[r++],w=e[t++]^n[r++],g=e[t++]^n[r++],b=e[t++]^n[r++],p=e[t++]^n[r++],y=e[t++]^n[r++],B=e[t++]^n[r++],M=e[t++]^n[r++],z=e[t++]^n[r++],O=e[t++]^n[r++],j=e[t++]^n[r++],v=i,H=c,R=f,C=h,_=a,S=l,k=w,d=g,x=b,m=p,I=y,E=B,A=M,u=z,U=O,L=j;for(let F=0;F<8;F+=2)_^=K(v+A|0,7),x^=K(_+v|0,9),A^=K(x+_|0,13),v^=K(A+x|0,18),m^=K(S+H|0,7),u^=K(m+S|0,9),H^=K(u+m|0,13),S^=K(H+u|0,18),U^=K(I+k|0,7),R^=K(U+I|0,9),k^=K(R+U|0,13),I^=K(k+R|0,18),C^=K(L+E|0,7),d^=K(C+L|0,9),E^=K(d+C|0,13),L^=K(E+d|0,18),H^=K(v+C|0,7),R^=K(H+v|0,9),C^=K(R+H|0,13),v^=K(C+R|0,18),k^=K(S+_|0,7),d^=K(k+S|0,9),_^=K(d+k|0,13),S^=K(_+d|0,18),E^=K(I+m|0,7),x^=K(E+I|0,9),m^=K(x+E|0,13),I^=K(m+x|0,18),A^=K(L+U|0,7),u^=K(A+L|0,9),U^=K(u+A|0,13),L^=K(U+u|0,18);o[s++]=i+v|0,o[s++]=c+H|0,o[s++]=f+R|0,o[s++]=h+C|0,o[s++]=a+_|0,o[s++]=l+S|0,o[s++]=w+k|0,o[s++]=g+d|0,o[s++]=b+x|0,o[s++]=p+m|0,o[s++]=y+I|0,o[s++]=B+E|0,o[s++]=M+A|0,o[s++]=z+u|0,o[s++]=O+U|0,o[s++]=j+L|0}function vt(e,t,n,r,o){let s=r+0,i=r+16*o;for(let c=0;c<16;c++)n[i+c]=e[t+(2*o-1)*16+c];for(let c=0;c<o;c++,s+=16,t+=16)re(n,i,e,t,n,s),c>0&&(i+=16),re(n,s,e,t+=16,n,i)}function dn(e,t,n){const r=xe({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:o,r:s,p:i,dkLen:c,asyncTick:f,maxmem:h,onProgress:a}=r;if(V(o),V(s),V(i),V(c),V(f),V(h),a!==void 0&&typeof a!="function")throw new Error("progressCb should be function");const l=128*s,w=l/4,g=Math.pow(2,32);if(o<=1||(o&o-1)!==0||o>g)throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");if(i<0||i>(g-1)*32/l)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(c<0||c>(g-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");if(l*(o+i)>h)throw new Error("Scrypt: memused is bigger than maxMem. Expected 128 * r * (N + p) > maxmem of "+h);const p=Ae($t,e,t,{c:1,dkLen:l*i}),y=St(p),B=St(new Uint8Array(l*o)),M=St(new Uint8Array(l));let z=()=>{};if(a){const O=2*o*i,j=Math.max(Math.floor(O/1e4),1);let v=0;z=()=>{v++,a&&(!(v%j)||v===O)&&a(v/O)}}return{N:o,r:s,p:i,dkLen:c,blockSize32:w,V:B,B32:y,B:p,tmp:M,blockMixCb:z,asyncTick:f}}function yn(e,t,n,r,o){const s=Ae($t,e,n,{c:1,dkLen:t});return ct(n,r,o),s}function Be(e,t,n){const{N:r,r:o,p:s,dkLen:i,blockSize32:c,V:f,B32:h,B:a,tmp:l,blockMixCb:w}=dn(e,t,n);Qt(h);for(let g=0;g<s;g++){const b=c*g;for(let p=0;p<c;p++)f[p]=h[b+p];for(let p=0,y=0;p<r-1;p++)vt(f,y,f,y+=c,o),w();vt(f,(r-1)*c,h,b,o),w();for(let p=0;p<r;p++){const y=h[b+c-16]%r;for(let B=0;B<c;B++)l[B]=h[b+B]^f[y*c+B];vt(l,0,h,b,o),w()}}return Qt(h),yn(e,i,a,f,l)}/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */function Ue(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ht(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function Kt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function $(e,...t){if(!Ue(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function se(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function pn(e,t){$(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function st(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function yt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function gn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}const wn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function xn(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Ft(e){if(typeof e=="string")e=xn(e);else if(Ue(e))e=Rt(e);else throw new Error("Uint8Array expected, got "+typeof e);return e}function bn(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function mn(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}const En=(e,t)=>{function n(r,...o){if($(r),!wn)throw new Error("Non little-endian hardware is not yet supported");if(e.nonceLength!==void 0){const a=o[0];if(!a)throw new Error("nonce / iv required");e.varSizeNonce?$(a):$(a,e.nonceLength)}const s=e.tagLength;s&&o[1]!==void 0&&$(o[1]);const i=t(r,...o),c=(a,l)=>{if(l!==void 0){if(a!==2)throw new Error("cipher output not supported");$(l)}};let f=!1;return{encrypt(a,l){if(f)throw new Error("cannot encrypt() twice with same key + nonce");return f=!0,$(a),c(i.encrypt.length,l),i.encrypt(a,l)},decrypt(a,l){if($(a),s&&a.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(i.decrypt.length,l),i.decrypt(a,l)}}}return Object.assign(n,e),n};function oe(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(n&&!Bn(t))throw new Error("invalid output, must be aligned");return t}function ie(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),f=4,h=0;e.setUint32(t+f,i,r),e.setUint32(t+h,c,r)}function An(e,t,n){Ht(n);const r=new Uint8Array(16),o=gn(r);return ie(o,0,BigInt(t),n),ie(o,8,BigInt(e),n),r}function Bn(e){return e.byteOffset%4===0}function Rt(e){return Uint8Array.from(e)}const Ie=e=>Uint8Array.from(e.split("").map(t=>t.charCodeAt(0))),Un=Ie("expand 16-byte k"),In=Ie("expand 32-byte k"),Ln=st(Un),Cn=st(In);function T(e,t){return e<<t|e>>>32-t}function Mt(e){return e.byteOffset%4===0}const bt=64,_n=16,Le=2**32-1,ce=new Uint32Array;function Sn(e,t,n,r,o,s,i,c){const f=o.length,h=new Uint8Array(bt),a=st(h),l=Mt(o)&&Mt(s),w=l?st(o):ce,g=l?st(s):ce;for(let b=0;b<f;i++){if(e(t,n,r,a,i,c),i>=Le)throw new Error("arx: counter overflow");const p=Math.min(bt,f-b);if(l&&p===bt){const y=b/4;if(b%4!==0)throw new Error("arx: invalid block position");for(let B=0,M;B<_n;B++)M=y+B,g[M]=w[M]^a[B];b+=bt;continue}for(let y=0,B;y<p;y++)B=b+y,s[B]=o[B]^h[y];b+=p}}function kn(e,t){const{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:s,rounds:i}=bn({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return Kt(o),Kt(i),Ht(s),Ht(n),(c,f,h,a,l=0)=>{$(c),$(f),$(h);const w=h.length;if(a===void 0&&(a=new Uint8Array(w)),$(a),Kt(l),l<0||l>=Le)throw new Error("arx: counter overflow");if(a.length<w)throw new Error(`arx: output (${a.length}) is shorter than data (${w})`);const g=[];let b=c.length,p,y;if(b===32)g.push(p=Rt(c)),y=Cn;else if(b===16&&n)p=new Uint8Array(32),p.set(c),p.set(c,16),y=Ln,g.push(p);else throw new Error(`arx: invalid 32-byte key, got length=${b}`);Mt(f)||g.push(f=Rt(f));const B=st(p);if(r){if(f.length!==24)throw new Error("arx: extended nonce must be 24 bytes");r(y,B,st(f.subarray(0,16)),B),f=f.subarray(16)}const M=16-o;if(M!==f.length)throw new Error(`arx: nonce must be ${M} or 16 bytes`);if(M!==12){const O=new Uint8Array(12);O.set(f,s?0:12-f.length),f=O,g.push(f)}const z=st(f);return Sn(e,y,B,z,h,a,l,i),yt(...g),a}}const N=(e,t)=>e[t++]&255|(e[t++]&255)<<8;class vn{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=Ft(t),$(t,32);const n=N(t,0),r=N(t,2),o=N(t,4),s=N(t,6),i=N(t,8),c=N(t,10),f=N(t,12),h=N(t,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|s<<9)&8191,this.r[4]=(s>>>4|i<<12)&255,this.r[5]=i>>>1&8190,this.r[6]=(i>>>14|c<<2)&8191,this.r[7]=(c>>>11|f<<5)&8065,this.r[8]=(f>>>8|h<<8)&8191,this.r[9]=h>>>5&127;for(let a=0;a<8;a++)this.pad[a]=N(t,16+2*a)}process(t,n,r=!1){const o=r?0:2048,{h:s,r:i}=this,c=i[0],f=i[1],h=i[2],a=i[3],l=i[4],w=i[5],g=i[6],b=i[7],p=i[8],y=i[9],B=N(t,n+0),M=N(t,n+2),z=N(t,n+4),O=N(t,n+6),j=N(t,n+8),v=N(t,n+10),H=N(t,n+12),R=N(t,n+14);let C=s[0]+(B&8191),_=s[1]+((B>>>13|M<<3)&8191),S=s[2]+((M>>>10|z<<6)&8191),k=s[3]+((z>>>7|O<<9)&8191),d=s[4]+((O>>>4|j<<12)&8191),x=s[5]+(j>>>1&8191),m=s[6]+((j>>>14|v<<2)&8191),I=s[7]+((v>>>11|H<<5)&8191),E=s[8]+((H>>>8|R<<8)&8191),A=s[9]+(R>>>5|o),u=0,U=u+C*c+_*(5*y)+S*(5*p)+k*(5*b)+d*(5*g);u=U>>>13,U&=8191,U+=x*(5*w)+m*(5*l)+I*(5*a)+E*(5*h)+A*(5*f),u+=U>>>13,U&=8191;let L=u+C*f+_*c+S*(5*y)+k*(5*p)+d*(5*b);u=L>>>13,L&=8191,L+=x*(5*g)+m*(5*w)+I*(5*l)+E*(5*a)+A*(5*h),u+=L>>>13,L&=8191;let F=u+C*h+_*f+S*c+k*(5*y)+d*(5*p);u=F>>>13,F&=8191,F+=x*(5*b)+m*(5*g)+I*(5*w)+E*(5*l)+A*(5*a),u+=F>>>13,F&=8191;let P=u+C*a+_*h+S*f+k*c+d*(5*y);u=P>>>13,P&=8191,P+=x*(5*p)+m*(5*b)+I*(5*g)+E*(5*w)+A*(5*l),u+=P>>>13,P&=8191;let Z=u+C*l+_*a+S*h+k*f+d*c;u=Z>>>13,Z&=8191,Z+=x*(5*y)+m*(5*p)+I*(5*b)+E*(5*g)+A*(5*w),u+=Z>>>13,Z&=8191;let X=u+C*w+_*l+S*a+k*h+d*f;u=X>>>13,X&=8191,X+=x*c+m*(5*y)+I*(5*p)+E*(5*b)+A*(5*g),u+=X>>>13,X&=8191;let G=u+C*g+_*w+S*l+k*a+d*h;u=G>>>13,G&=8191,G+=x*f+m*c+I*(5*y)+E*(5*p)+A*(5*b),u+=G>>>13,G&=8191;let D=u+C*b+_*g+S*w+k*l+d*a;u=D>>>13,D&=8191,D+=x*h+m*f+I*c+E*(5*y)+A*(5*p),u+=D>>>13,D&=8191;let J=u+C*p+_*b+S*g+k*w+d*l;u=J>>>13,J&=8191,J+=x*a+m*h+I*f+E*c+A*(5*y),u+=J>>>13,J&=8191;let Q=u+C*y+_*p+S*b+k*g+d*w;u=Q>>>13,Q&=8191,Q+=x*l+m*a+I*h+E*f+A*c,u+=Q>>>13,Q&=8191,u=(u<<2)+u|0,u=u+U|0,U=u&8191,u=u>>>13,L+=u,s[0]=U,s[1]=L,s[2]=F,s[3]=P,s[4]=Z,s[5]=X,s[6]=G,s[7]=D,s[8]=J,s[9]=Q}finalize(){const{h:t,pad:n}=this,r=new Uint16Array(10);let o=t[1]>>>13;t[1]&=8191;for(let c=2;c<10;c++)t[c]+=o,o=t[c]>>>13,t[c]&=8191;t[0]+=o*5,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=t[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let s=(o^1)-1;for(let c=0;c<10;c++)r[c]&=s;s=~s;for(let c=0;c<10;c++)t[c]=t[c]&s|r[c];t[0]=(t[0]|t[1]<<13)&65535,t[1]=(t[1]>>>3|t[2]<<10)&65535,t[2]=(t[2]>>>6|t[3]<<7)&65535,t[3]=(t[3]>>>9|t[4]<<4)&65535,t[4]=(t[4]>>>12|t[5]<<1|t[6]<<14)&65535,t[5]=(t[6]>>>2|t[7]<<11)&65535,t[6]=(t[7]>>>5|t[8]<<8)&65535,t[7]=(t[8]>>>8|t[9]<<5)&65535;let i=t[0]+n[0];t[0]=i&65535;for(let c=1;c<8;c++)i=(t[c]+n[c]|0)+(i>>>16)|0,t[c]=i&65535;yt(r)}update(t){se(this),t=Ft(t),$(t);const{buffer:n,blockLen:r}=this,o=t.length;for(let s=0;s<o;){const i=Math.min(r-this.pos,o-s);if(i===r){for(;r<=o-s;s+=r)this.process(t,s);continue}n.set(t.subarray(s,s+i),this.pos),this.pos+=i,s+=i,this.pos===r&&(this.process(n,0,!1),this.pos=0)}return this}destroy(){yt(this.h,this.r,this.buffer,this.pad)}digestInto(t){se(this),pn(t,this),this.finished=!0;const{buffer:n,h:r}=this;let{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let s=0;for(let i=0;i<8;i++)t[s++]=r[i]>>>0,t[s++]=r[i]>>>8;return t}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}}function Kn(e){const t=(r,o)=>e(o).update(Ft(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}const Tn=Kn(e=>new vn(e));function Hn(e,t,n,r,o,s=20){let i=e[0],c=e[1],f=e[2],h=e[3],a=t[0],l=t[1],w=t[2],g=t[3],b=t[4],p=t[5],y=t[6],B=t[7],M=o,z=n[0],O=n[1],j=n[2],v=i,H=c,R=f,C=h,_=a,S=l,k=w,d=g,x=b,m=p,I=y,E=B,A=M,u=z,U=O,L=j;for(let P=0;P<s;P+=2)v=v+_|0,A=T(A^v,16),x=x+A|0,_=T(_^x,12),v=v+_|0,A=T(A^v,8),x=x+A|0,_=T(_^x,7),H=H+S|0,u=T(u^H,16),m=m+u|0,S=T(S^m,12),H=H+S|0,u=T(u^H,8),m=m+u|0,S=T(S^m,7),R=R+k|0,U=T(U^R,16),I=I+U|0,k=T(k^I,12),R=R+k|0,U=T(U^R,8),I=I+U|0,k=T(k^I,7),C=C+d|0,L=T(L^C,16),E=E+L|0,d=T(d^E,12),C=C+d|0,L=T(L^C,8),E=E+L|0,d=T(d^E,7),v=v+S|0,L=T(L^v,16),I=I+L|0,S=T(S^I,12),v=v+S|0,L=T(L^v,8),I=I+L|0,S=T(S^I,7),H=H+k|0,A=T(A^H,16),E=E+A|0,k=T(k^E,12),H=H+k|0,A=T(A^H,8),E=E+A|0,k=T(k^E,7),R=R+d|0,u=T(u^R,16),x=x+u|0,d=T(d^x,12),R=R+d|0,u=T(u^R,8),x=x+u|0,d=T(d^x,7),C=C+_|0,U=T(U^C,16),m=m+U|0,_=T(_^m,12),C=C+_|0,U=T(U^C,8),m=m+U|0,_=T(_^m,7);let F=0;r[F++]=i+v|0,r[F++]=c+H|0,r[F++]=f+R|0,r[F++]=h+C|0,r[F++]=a+_|0,r[F++]=l+S|0,r[F++]=w+k|0,r[F++]=g+d|0,r[F++]=b+x|0,r[F++]=p+m|0,r[F++]=y+I|0,r[F++]=B+E|0,r[F++]=M+A|0,r[F++]=z+u|0,r[F++]=O+U|0,r[F++]=j+L|0}const Fn=kn(Hn,{counterRight:!1,counterLength:4,allowShortKeys:!1}),Rn=new Uint8Array(16),fe=(e,t)=>{e.update(t);const n=t.length%16;n&&e.update(Rn.subarray(n))},Mn=new Uint8Array(32);function ae(e,t,n,r,o){const s=e(t,n,Mn),i=Tn.create(s);o&&fe(i,o),fe(i,r);const c=An(r.length,o?o.length:0,!0);i.update(c);const f=i.digest();return yt(s,c),f}const On=e=>(t,n,r)=>({encrypt(s,i){const c=s.length;i=oe(c+16,i,!1),i.set(s);const f=i.subarray(0,-16);e(t,n,f,f,1);const h=ae(e,t,n,f,r);return i.set(h,c),yt(h),i},decrypt(s,i){i=oe(s.length-16,i,!1);const c=s.subarray(0,-16),f=s.subarray(-16),h=ae(e,t,n,c,r);if(!mn(f,h))throw new Error("invalid tag");return i.set(s.subarray(0,-16)),e(t,n,i,i,1),yt(h),i}}),pt=En({blockSize:64,nonceLength:12,tagLength:16},On(Fn));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ce=BigInt(0);function Nn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ce:BigInt("0x"+e)}function le(e){return ft(e),Nn(en(Uint8Array.from(e).reverse()))}function zn(e,t){return ge(e.toString(16).padStart(t*2,"0"))}function jn(e,t){return zn(e,t).reverse()}function he(e,t,n){let r;if(typeof t=="string")try{r=ge(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(ye(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=r.length;if(typeof n=="number"&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}const Tt=e=>typeof e=="bigint"&&Ce<=e;function $n(e,t,n){return Tt(e)&&Tt(t)&&Tt(n)&&t<=e&&e<n}function ue(e,t,n,r){if(!$n(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Pn(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(o,s,i){const c=e[o];if(i&&c===void 0)return;const f=typeof c;if(f!==s||c===null)throw new Error(`param "${o}" is invalid: expected ${s}, got ${f}`)}Object.entries(t).forEach(([o,s])=>r(o,s,!1)),Object.entries(n).forEach(([o,s])=>r(o,s,!0))}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _e=BigInt(0);BigInt(1);function Se(e,t){const n=e%t;return n>=_e?n:t+n}function W(e,t,n){let r=e;for(;t-- >_e;)r*=r,r%=n;return r}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const wt=BigInt(0),lt=BigInt(1),mt=BigInt(2);function Vn(e){return Pn(e,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...e})}function Wn(e){const t=Vn(e),{P:n,type:r,adjustScalarBytes:o,powPminus2:s,randomBytes:i}=t,c=r==="x25519";if(!c&&r!=="x448")throw new Error("invalid type");const f=i||ot,h=c?255:448,a=c?32:56,l=BigInt(c?9:5),w=BigInt(c?121665:39081),g=c?mt**BigInt(254):mt**BigInt(447),b=c?BigInt(8)*mt**BigInt(251)-lt:BigInt(4)*mt**BigInt(445)-lt,p=g+b+lt,y=d=>Se(d,n),B=M(l);function M(d){return jn(y(d),a)}function z(d){const x=he("u coordinate",d,a);return c&&(x[31]&=127),y(le(x))}function O(d){return le(o(he("scalar",d,a)))}function j(d,x){const m=R(z(x),O(d));if(m===wt)throw new Error("invalid private or public key received");return M(m)}function v(d){return j(d,B)}function H(d,x,m){const I=y(d*(x-m));return x=y(x-I),m=y(m+I),{x_2:x,x_3:m}}function R(d,x){ue("u",d,wt,n),ue("scalar",x,g,p);const m=x,I=d;let E=lt,A=wt,u=d,U=lt,L=wt;for(let P=BigInt(h-1);P>=wt;P--){const Z=m>>P&lt;L^=Z,{x_2:E,x_3:u}=H(L,E,u),{x_2:A,x_3:U}=H(L,A,U),L=Z;const X=E+A,G=y(X*X),D=E-A,J=y(D*D),Q=G-J,Ne=u+U,ze=u-U,Gt=y(ze*X),Dt=y(Ne*D),qt=Gt+Dt,Yt=Gt-Dt;u=y(qt*qt),U=y(I*y(Yt*Yt)),E=y(G*J),A=y(Q*(G+y(w*Q)))}({x_2:E,x_3:u}=H(L,E,u)),{x_2:A,x_3:U}=H(L,A,U);const F=s(A);return y(E*F)}const C=(d=f(a))=>d,_={randomSecretKey:C,randomPrivateKey:C};function S(d){const x=_.randomSecretKey(d);return{secretKey:x,publicKey:v(x)}}const k={secret:a,public:a,seed:a};return{keygen:S,getSharedSecret:(d,x)=>j(d,x),getPublicKey:d=>v(d),scalarMult:j,scalarMultBase:v,utils:_,GuBytes:B.slice(),info:{type:"montgomery",lengths:k}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */BigInt(0);const Xn=BigInt(1),de=BigInt(2),Gn=BigInt(3),Dn=BigInt(5);BigInt(8);const ke={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function qn(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),s=ke.p,c=e*e%s*e%s,f=W(c,de,s)*c%s,h=W(f,Xn,s)*e%s,a=W(h,Dn,s)*h%s,l=W(a,t,s)*a%s,w=W(l,n,s)*l%s,g=W(w,r,s)*w%s,b=W(g,o,s)*g%s,p=W(b,o,s)*g%s,y=W(p,t,s)*a%s;return{pow_p_5_8:W(y,de,s)*e%s,b2:c}}function Yn(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Ot=(()=>{const e=ke.p;return Wn({P:e,type:"x25519",powPminus2:t=>{const{pow_p_5_8:n,b2:r}=qn(t);return Se(W(n,Gn,e)*r,e)},adjustScalarBytes:Yn})})(),ve=!1;async function Ke(e,t){try{return await e()}catch(n){if(n instanceof ReferenceError||n instanceof DOMException&&n.name==="NotSupportedError")return await t();throw n}}async function Pt(e,t){return await Ke(async()=>{const n=Nt(e)?e:await Jn(e),r=await crypto.subtle.importKey("raw",t,{name:"X25519"},ve,[]);return new Uint8Array(await crypto.subtle.deriveBits({name:"X25519",public:r},n,256))},()=>{if(Nt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Ot.scalarMult(e,t)})}async function Bt(e){return await Ke(async()=>Pt(e,Ot.GuBytes),()=>{if(Nt(e))throw new Error("CryptoKey provided but X25519 WebCrypto is not supported");return Ot.scalarMultBase(e)})}const Zn=new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,110,4,34,4,32]);async function Jn(e){if(e.length!==32)throw new Error("X25519 private key must be 32 bytes");const t=new Uint8Array([...Zn,...e]);return crypto.subtle.importKey("pkcs8",t,{name:"X25519"},ve,["deriveBits"])}function Nt(e){return typeof CryptoKey<"u"&&e instanceof CryptoKey}class Qn{s;transcript=[];buf=new Uint8Array(0);constructor(t){this.s=t.getReader()}async readLine(){const t=[];for(;;){const n=this.buf.indexOf(10);if(n>=0)return t.push(this.buf.subarray(0,n)),this.transcript.push(this.buf.subarray(0,n+1)),this.buf=this.buf.subarray(n+1),tr(ht(t));this.buf.length>0&&(t.push(this.buf),this.transcript.push(this.buf));const r=await this.s.read();if(r.done)return this.buf=ht(t),null;this.buf=r.value}}close(){return this.s.releaseLock(),{rest:this.buf,transcript:ht(this.transcript)}}}function tr(e){return e.forEach(t=>{if(t<32||t>126)throw Error("invalid non-ASCII byte in header")}),new TextDecoder().decode(e)}function ht(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Ut(e,...t){return e.pipeThrough(new TransformStream({start(n){for(const r of t)n.enqueue(r)}}))}function zt(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function Te(e){if(!(e instanceof ReadableStream))throw new Error("readAll expects a ReadableStream<Uint8Array>");return new Uint8Array(await new Response(e).arrayBuffer())}async function er(e){if(!(e instanceof ReadableStream))throw new Error("readAllString expects a ReadableStream<Uint8Array>");return await new Response(e).text()}async function nr(e,t){const n=e.getReader(),r=[];let o=0;for(;o<t;){const{done:f,value:h}=await n.read();if(f)throw Error("stream ended before reading "+t+" bytes");r.push(h),o+=h.length}n.releaseLock();const s=ht(r),i=s.subarray(0,t),c=Ut(e,s.subarray(t));return{data:i,rest:c}}class Lt{args;body;constructor(t,n){this.args=t,this.body=n}}async function rr(e){const t=await e.readLine();if(t===null)throw Error("invalid stanza");const n=t.split(" ");if(n.length<2||n.shift()!=="->")return{next:t};for(const s of n)if(s.length===0)throw Error("invalid stanza");const r=[];for(;;){const s=await e.readLine();if(s===null)throw Error("invalid stanza");const i=Y.decode(s);if(i.length>48)throw Error("invalid stanza");if(r.push(i),i.length<48)break}const o=ht(r);return{s:new Lt(n,o)}}async function sr(e){const t=new Qn(e),n=await t.readLine();if(n!=="age-encryption.org/v1")throw Error("invalid version "+(n??"line"));const r=[];for(;;){const{s:o,next:s}=await rr(t);if(o!==void 0){r.push(o);continue}if(!s.startsWith("--- "))throw Error("invalid header");const i=Y.decode(s.slice(4)),{rest:c,transcript:f}=t.close(),h=f.slice(0,f.length-1-s.length+3);return{stanzas:r,headerNoMAC:h,MAC:i,headerSize:f.length,rest:Ut(e,c)}}}function He(e){const t=[];t.push(`age-encryption.org/v1
2
2
  `);for(const n of e){t.push("-> "+n.args.join(" ")+`
3
3
  `);for(let r=0;r<n.body.length;r+=48){let o=r+48;o>n.body.length&&(o=n.body.length),t.push(Y.encode(n.body.subarray(r,o))+`
4
4
  `)}n.body.length%48===0&&t.push(`
@@ -1,4 +1,4 @@
1
- import{V as vt}from"./DcrT2YVS.js";import{Y as R,F as It,G as q,H as $t,J as ot,S as u,K as h,L as C,M as F,N as L,O as _t,P as At,Q as Tt,R as jt,T as w,U as at,V as W,W as Bt,X as H,Z as X,$ as B,a0 as kt,a1 as xt,a2 as Ct,a3 as Ft,a4 as Lt,a5 as y,a6 as Mt,a7 as E,a8 as Pt,a9 as Z,aa as Dt,ab as Jt,ac as Ut,_ as Yt}from"./BhWccYlK.js";import{F as Kt,j as Vt,Z as Rt,W as qt,aT as Wt,a1 as k,$ as G,X as z,G as Q,aa as Ht,a2 as tt,a0 as Xt,a3 as et}from"./koatKMQr.js";import"./DDCXd-ua.js";const p={collection:"map",default:!0,nodeClass:R,tag:"tag:yaml.org,2002:map",resolve(t,e){return It(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>R.from(t,e,n)},b={collection:"seq",default:!0,nodeClass:q,tag:"tag:yaml.org,2002:seq",resolve(t,e){return $t(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>q.from(t,e,n)},v={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,s){return e=Object.assign({actualString:!0},e),ot(t,e,n,s)}},I={identify:t=>t==null,createNode:()=>new u(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new u(null),stringify:({source:t},e)=>typeof t=="string"&&I.test.test(t)?t:e.options.nullStr},M={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new u(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&M.test.test(t)){const s=t[0]==="t"||t[0]==="T";if(e===s)return t}return e?n.options.trueStr:n.options.falseStr}};function g({format:t,minFractionDigits:e,tag:n,value:s}){if(typeof s=="bigint")return String(s);const i=typeof s=="number"?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(s);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let f=e-(r.length-o-1);for(;f-- >0;)r+="0"}return r}const ft={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:g},lt={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():g(t)}},ct={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new u(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:g},$=t=>typeof t=="bigint"||Number.isInteger(t),P=(t,e,n,{intAsBigInt:s})=>s?BigInt(t):parseInt(t.substring(e),n);function ut(t,e,n){const{value:s}=t;return $(s)&&s>=0?n+s.toString(e):g(t)}const gt={identify:t=>$(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>P(t,2,8,n),stringify:t=>ut(t,8,"0o")},mt={identify:$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>P(t,0,10,n),stringify:g},dt={identify:t=>$(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>P(t,2,16,n),stringify:t=>ut(t,16,"0x")},Zt=[p,b,v,I,M,gt,mt,dt,ft,lt,ct];function nt(t){return typeof t=="bigint"||Number.isInteger(t)}const O=({value:t})=>JSON.stringify(t),Gt=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:O},{identify:t=>t==null,createNode:()=>new u(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:O},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:O},{identify:nt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>nt(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:O}],zt={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Qt=[p,b].concat(Gt,zt),D={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),s=new Uint8Array(n.length);for(let i=0;i<n.length;++i)s[i]=n.charCodeAt(i);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},s,i,r){if(!n)return"";const o=n;let f;if(typeof btoa=="function"){let a="";for(let l=0;l<o.length;++l)a+=String.fromCharCode(o[l]);f=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=u.BLOCK_LITERAL),e!==u.QUOTE_DOUBLE){const a=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),l=Math.ceil(f.length/a),c=new Array(l);for(let m=0,S=0;m<l;++m,S+=a)c[m]=f.substr(S,a);f=c.join(e===u.BLOCK_LITERAL?`
1
+ import{V as vt}from"./CoKQIzln.js";import{Y as R,F as It,G as q,H as $t,J as ot,S as u,K as h,L as C,M as F,N as L,O as _t,P as At,Q as Tt,R as jt,T as w,U as at,V as W,W as Bt,X as H,Z as X,$ as B,a0 as kt,a1 as xt,a2 as Ct,a3 as Ft,a4 as Lt,a5 as y,a6 as Mt,a7 as E,a8 as Pt,a9 as Z,aa as Dt,ab as Jt,ac as Ut,_ as Yt}from"./DlgqOs51.js";import{F as Kt,j as Vt,Z as Rt,W as qt,aT as Wt,a1 as k,$ as G,X as z,G as Q,aa as Ht,a2 as tt,a0 as Xt,a3 as et}from"./B9WOzG0F.js";import"./DqHZqf4r.js";const p={collection:"map",default:!0,nodeClass:R,tag:"tag:yaml.org,2002:map",resolve(t,e){return It(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>R.from(t,e,n)},b={collection:"seq",default:!0,nodeClass:q,tag:"tag:yaml.org,2002:seq",resolve(t,e){return $t(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>q.from(t,e,n)},v={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,s){return e=Object.assign({actualString:!0},e),ot(t,e,n,s)}},I={identify:t=>t==null,createNode:()=>new u(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new u(null),stringify:({source:t},e)=>typeof t=="string"&&I.test.test(t)?t:e.options.nullStr},M={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new u(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&M.test.test(t)){const s=t[0]==="t"||t[0]==="T";if(e===s)return t}return e?n.options.trueStr:n.options.falseStr}};function g({format:t,minFractionDigits:e,tag:n,value:s}){if(typeof s=="bigint")return String(s);const i=typeof s=="number"?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(s);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let f=e-(r.length-o-1);for(;f-- >0;)r+="0"}return r}const ft={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:g},lt={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():g(t)}},ct={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new u(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:g},$=t=>typeof t=="bigint"||Number.isInteger(t),P=(t,e,n,{intAsBigInt:s})=>s?BigInt(t):parseInt(t.substring(e),n);function ut(t,e,n){const{value:s}=t;return $(s)&&s>=0?n+s.toString(e):g(t)}const gt={identify:t=>$(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>P(t,2,8,n),stringify:t=>ut(t,8,"0o")},mt={identify:$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>P(t,0,10,n),stringify:g},dt={identify:t=>$(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>P(t,2,16,n),stringify:t=>ut(t,16,"0x")},Zt=[p,b,v,I,M,gt,mt,dt,ft,lt,ct];function nt(t){return typeof t=="bigint"||Number.isInteger(t)}const O=({value:t})=>JSON.stringify(t),Gt=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:O},{identify:t=>t==null,createNode:()=>new u(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:O},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:O},{identify:nt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>nt(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:O}],zt={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Qt=[p,b].concat(Gt,zt),D={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),s=new Uint8Array(n.length);for(let i=0;i<n.length;++i)s[i]=n.charCodeAt(i);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},s,i,r){if(!n)return"";const o=n;let f;if(typeof btoa=="function"){let a="";for(let l=0;l<o.length;++l)a+=String.fromCharCode(o[l]);f=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=u.BLOCK_LITERAL),e!==u.QUOTE_DOUBLE){const a=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),l=Math.ceil(f.length/a),c=new Array(l);for(let m=0,S=0;m<l;++m,S+=a)c[m]=f.substr(S,a);f=c.join(e===u.BLOCK_LITERAL?`
2
2
  `:" ")}return ot({comment:t,type:e,value:f},s,i,r)}};function yt({value:t,source:e},n){return e&&(t?ht:pt).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}const ht={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new u(!0),stringify:yt},pt={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new u(!1),stringify:yt},te={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:g},ee={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():g(t)}},ne={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new u(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const s=t.substring(n+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:g},N=t=>typeof t=="bigint"||Number.isInteger(t);function _(t,e,n,{intAsBigInt:s}){const i=t[0];if((i==="-"||i==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),s){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return i==="-"?BigInt(-1)*o:o}const r=parseInt(t,n);return i==="-"?-1*r:r}function J(t,e,n){const{value:s}=t;if(N(s)){const i=s.toString(e);return s<0?"-"+n+i.substr(1):n+i}return g(t)}const se={identify:N,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>_(t,2,2,n),stringify:t=>J(t,2,"0b")},ie={identify:N,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>_(t,1,8,n),stringify:t=>J(t,8,"0")},re={identify:N,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>_(t,0,10,n),stringify:g},oe={identify:N,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>_(t,2,16,n),stringify:t=>J(t,16,"0x")};function U(t,e){const n=t[0],s=n==="-"||n==="+"?t.substring(1):t,i=o=>e?BigInt(o):Number(o),r=s.replace(/_/g,"").split(":").reduce((o,f)=>o*i(60)+i(f),i(0));return n==="-"?i(-1)*r:r}function bt(t){let{value:e}=t,n=o=>o;if(typeof e=="bigint")n=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return g(t);let s="";e<0&&(s="-",e*=n(-1));const i=n(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),s+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Nt={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>U(t,n),stringify:bt},St={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>U(t,!1),stringify:bt},A={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(A.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,s,i,r,o,f]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let l=Date.UTC(n,s-1,i,r||0,o||0,f||0,a);const c=e[8];if(c&&c!=="Z"){let m=U(c,!1);Math.abs(m)<30&&(m*=60),l-=6e4*m}return new Date(l)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},st=[p,b,v,I,ht,pt,se,ie,re,oe,te,ee,ne,D,h,C,F,L,Nt,St,A],it=new Map([["core",Zt],["failsafe",[p,b,v]],["json",Qt],["yaml11",st],["yaml-1.1",st]]),rt={binary:D,bool:M,float:ct,floatExp:lt,floatNaN:ft,floatTime:St,int:mt,intHex:dt,intOct:gt,intTime:Nt,map:p,merge:h,null:I,omap:C,pairs:F,seq:b,set:L,timestamp:A},ae={"tag:yaml.org,2002:binary":D,"tag:yaml.org,2002:merge":h,"tag:yaml.org,2002:omap":C,"tag:yaml.org,2002:pairs":F,"tag:yaml.org,2002:set":L,"tag:yaml.org,2002:timestamp":A};function x(t,e,n){const s=it.get(e);if(s&&!t)return n&&!s.includes(h)?s.concat(h):s.slice();let i=s;if(!i)if(Array.isArray(t))i=[];else{const r=Array.from(it.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(t))for(const r of t)i=i.concat(r);else typeof t=="function"&&(i=t(i.slice()));return n&&(i=i.concat(h)),i.reduce((r,o)=>{const f=typeof o=="string"?rt[o]:o;if(!f){const a=JSON.stringify(o),l=Object.keys(rt).map(c=>JSON.stringify(c)).join(", ");throw new Error(`Unknown custom tag ${a}; use one of ${l}`)}return r.includes(f)||r.push(f),r},[])}const fe=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class Y{constructor({compat:e,customTags:n,merge:s,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:f}){this.compat=Array.isArray(e)?x(e,"compat"):e?x(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?ae:{},this.tags=x(n,this.name,s),this.toStringOptions=f??null,Object.defineProperty(this,_t,{value:p}),Object.defineProperty(this,At,{value:v}),Object.defineProperty(this,Tt,{value:b}),this.sortMapEntries=typeof o=="function"?o:o===!0?fe:null}clone(){const e=Object.create(Y.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function le(t,e){const n=[];let s=e.directives===!0;if(e.directives!==!1&&t.directives){const a=t.directives.toString(t);a?(n.push(a),s=!0):t.directives.docStart&&(s=!0)}s&&n.push("---");const i=jt(t,e),{commentString:r}=i.options;if(t.commentBefore){n.length!==1&&n.unshift("");const a=r(t.commentBefore);n.unshift(w(a,""))}let o=!1,f=null;if(t.contents){if(at(t.contents)){if(t.contents.spaceBefore&&s&&n.push(""),t.contents.commentBefore){const c=r(t.contents.commentBefore);n.push(w(c,""))}i.forceBlockIndent=!!t.comment,f=t.contents.comment}const a=f?void 0:()=>o=!0;let l=W(t.contents,i,()=>f=null,a);f&&(l+=Bt(l,"",r(f))),(l[0]==="|"||l[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(W(t.contents,i));if(t.directives?.docEnd)if(t.comment){const a=r(t.comment);a.includes(`
3
3
  `)?(n.push("..."),n.push(w(a,""))):n.push(`... ${a}`)}else n.push("...");else{let a=t.comment;a&&o&&(a=a.replace(/^\n+/,"")),a&&((!o||f)&&n[n.length-1]!==""&&n.push(""),n.push(w(r(a),"")))}return n.join(`
4
4
  `)+`
@@ -1 +1 @@
1
- import{q as p,s as d}from"./BhWccYlK.js";import"./DDCXd-ua.js";import{S as c}from"./DPWtH2b9.js";import{_ as g}from"./00PavPNr.js";import{F as l,aL as n,Z as f,W as u,a1 as y,G as e,X as P}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./DxOL29Up.js";import"./D2AD0cA7.js";import"./i3Pf1NPu.js";import"./_d0M4KuU.js";import"./BODfYi5x.js";import"./BeBKEPaV.js";import"./CasefD2V.js";import"./fqUPtzRv.js";const q=l({__name:"index",async setup(_){let i,a;const{settingsStore:t}=p(),{projectStore:o}=p();return o.initializing?([i,a]=n(()=>d(()=>o.initialized).toBe(!0)),await i,a(),o.addLibraryRoot()):([i,a]=n(()=>o.initialize1()),await i,a(),[i,a]=n(()=>o.initialize2()),await i,a()),t.secrets.load(),(j,s)=>(u(),f(e(c),{title:"Project Secrets",icon:"mdi-key-variant",description:"View and manage secrets for your project instances. Secrets contain sensitive data like passwords, API keys, and other confidential information."},{default:y(({height:m})=>[P(e(g),{search:e(t).secrets.search,"onUpdate:search":s[0]||(s[0]=r=>e(t).secrets.search=r),"sort-by":e(t).secrets.sortBy,"onUpdate:sortBy":s[1]||(s[1]=r=>e(t).secrets.sortBy=r),page:e(t).secrets.page,"onUpdate:page":s[2]||(s[2]=r=>e(t).secrets.page=r),"items-per-page":e(t).secrets.itemsPerPage,"onUpdate:itemsPerPage":s[3]||(s[3]=r=>e(t).secrets.itemsPerPage=r),"project-id":e(o).projectId,data:e(t).secrets.data,loading:e(t).secrets.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{q as default};
1
+ import{q as p,s as d}from"./DlgqOs51.js";import"./DqHZqf4r.js";import{S as c}from"./uwIuMFjJ.js";import{_ as g}from"./BVAgVeex.js";import{F as l,aL as n,Z as f,W as u,a1 as y,G as e,X as P}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CmuRgu4O.js";import"./PcM58xPJ.js";import"./16S73JW8.js";import"./CmFtdvwG.js";import"./0vdwhauO.js";import"./K7mdFSQD.js";import"./30BaVrUW.js";import"./D5PsJ332.js";const q=l({__name:"index",async setup(_){let i,a;const{settingsStore:t}=p(),{projectStore:o}=p();return o.initializing?([i,a]=n(()=>d(()=>o.initialized).toBe(!0)),await i,a(),o.addLibraryRoot()):([i,a]=n(()=>o.initialize1()),await i,a(),[i,a]=n(()=>o.initialize2()),await i,a()),t.secrets.load(),(j,s)=>(u(),f(e(c),{title:"Project Secrets",icon:"mdi-key-variant",description:"View and manage secrets for your project instances. Secrets contain sensitive data like passwords, API keys, and other confidential information."},{default:y(({height:m})=>[P(e(g),{search:e(t).secrets.search,"onUpdate:search":s[0]||(s[0]=r=>e(t).secrets.search=r),"sort-by":e(t).secrets.sortBy,"onUpdate:sortBy":s[1]||(s[1]=r=>e(t).secrets.sortBy=r),page:e(t).secrets.page,"onUpdate:page":s[2]||(s[2]=r=>e(t).secrets.page=r),"items-per-page":e(t).secrets.itemsPerPage,"onUpdate:itemsPerPage":s[3]||(s[3]=r=>e(t).secrets.itemsPerPage=r),"project-id":e(o).projectId,data:e(t).secrets.data,loading:e(t).secrets.isLoading,height:m},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}))}});export{q as default};
@@ -1 +1 @@
1
- import{S as h,b as r}from"./i3Pf1NPu.js";import"./BhWccYlK.js";import{_ as f}from"./_d0M4KuU.js";import"./DDCXd-ua.js";import{_ as P}from"./CasefD2V.js";import{F as y,aO as B,av as o,Z as c,W as v,G as i,a1 as m,X as l}from"./koatKMQr.js";const k=y({__name:"PagesTable",props:B({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const d=o(s,"search"),n=o(s,"sortBy"),p=o(s,"page"),g=o(s,"itemsPerPage"),u=[r.name,r.id,{key:"owner",title:"Owner"},r.createdAt,r.actions];return(t,a)=>(v(),c(i(h),{search:d.value,"onUpdate:search":a[0]||(a[0]=e=>d.value=e),"sort-by":n.value,"onUpdate:sortBy":a[1]||(a[1]=e=>n.value=e),page:p.value,"onUpdate:page":a[2]||(a[2]=e=>p.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.owner":m(({item:e})=>[l(i(f),{item:e},null,8,["item"])]),"item.actions":m(({item:e})=>[l(i(P),{"page-name":"settings.page-details","page-params":{projectId:t.projectId,pageId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{k as _};
1
+ import{S as h,b as r}from"./16S73JW8.js";import"./DlgqOs51.js";import{_ as f}from"./CmFtdvwG.js";import"./DqHZqf4r.js";import{_ as P}from"./30BaVrUW.js";import{F as y,aO as B,av as o,Z as c,W as v,G as i,a1 as m,X as l}from"./B9WOzG0F.js";const k=y({__name:"PagesTable",props:B({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(s){const d=o(s,"search"),n=o(s,"sortBy"),p=o(s,"page"),g=o(s,"itemsPerPage"),u=[r.name,r.id,{key:"owner",title:"Owner"},r.createdAt,r.actions];return(t,a)=>(v(),c(i(h),{search:d.value,"onUpdate:search":a[0]||(a[0]=e=>d.value=e),"sort-by":n.value,"onUpdate:sortBy":a[1]||(a[1]=e=>n.value=e),page:p.value,"onUpdate:page":a[2]||(a[2]=e=>p.value=e),"items-per-page":g.value,"onUpdate:itemsPerPage":a[3]||(a[3]=e=>g.value=e),headers:u,data:t.data,loading:t.loading,"hide-header":t.hideHeader,height:t.height},{"item.owner":m(({item:e})=>[l(i(f),{item:e},null,8,["item"])]),"item.actions":m(({item:e})=>[l(i(P),{"page-name":"settings.page-details","page-params":{projectId:t.projectId,pageId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{k as _};
@@ -1 +1 @@
1
- import{k as A,_ as B,f as E,u as F,l as z,n as x}from"./BhWccYlK.js";import{P as K}from"./CAEVHbCq.js";import{F as N,L as h,W as o,X as p,a1 as r,ab as M,C as U,w as R,j as G,$ as u,a9 as k,af as y,G as s,aA as w,_ as S,aK as X,aE as Z,ay as q,Z as m,a4 as H,a5 as $,ah as J,a0 as C,a2 as I,a3 as _,ac as V,ai as P}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./Bj2v5zwu.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(W){return A(W.projectId),(l,j)=>(o(),h("div",O,[p(K,{"project-id":l.projectId,"can-unlock":""},{default:r(()=>[M(l.$slots,"default",{},void 0,!0)]),_:3},8,["project-id"])]))}}),Y=B(Q,[["__scopeId","data-v-cbe63052"]]),ee={class:"data-settings-panel"},te={class:"panel-layout"},ae={class:"vertical-tabs"},se={class:"tab-section"},oe={class:"tab-label"},re={class:"tab-section"},ne={class:"tab-label"},ce={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(W){const l=E(),j=F(),n=U(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(z.info({from:n.value?.path,to:t.path},"settings route changed"),n.value=t),t?.name==="settings"&&await f(i.value.beforeGlobalTabs[0])},{immediate:!0});const i=G(()=>{const b=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),c=[],e=[];for(const a of b){const d=a.meta.tab;if(!d||!a.path.startsWith("/settings/"))continue;const T={name:a.name,icon:d.icon,label:d.label,order:d.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:d.subpages??[]};T.isProjectTab?e.push(T):c.push(T)}c.sort((a,d)=>a.order-d.order),e.sort((a,d)=>a.order-d.order);const g=c.filter(a=>a.order<90),L=c.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:L}}),v=t=>n.value&&(t.name===n.value.name||t.subpages.includes(n.value.name)),D=G(()=>i.value.beforeGlobalTabs.find(v)||i.value.projectTabs.find(v)),f=async t=>{if(!t.isProjectTab){await x({name:t.name});return}await x({name:t.name,params:{projectId:l.focusedProjectId}})};return R(()=>l.focusedProjectId,async(t,b)=>{const c=j.currentRoute.value;!c||t===b&&c.path.startsWith("/settings/projects/")||!c.path.startsWith("/settings/")||(t&&i.value.projectTabs.length>0?await f(D.value??i.value.projectTabs[0]):!t&&c.path.startsWith("/settings/projects/")&&await f(i.value.beforeGlobalTabs[0]))}),(t,b)=>{const c=J("RouterView");return o(),h("div",ee,[u("div",te,[u("div",ae,[u("div",se,[(o(!0),h(k,null,y(s(i).beforeGlobalTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),p(w,{class:"section-divider"}),u("div",re,[p(X,{modelValue:s(l).focusedProjectId,"onUpdate:modelValue":b[0]||(b[0]=e=>s(l).focusedProjectId=e),items:s(l).projects,label:"Project","item-title":"meta.title","item-value":"id",variant:"outlined",density:"compact",class:"project-selector","prepend-inner-icon":"mdi-folder-outline",clearable:"","hide-details":""},null,8,["modelValue","items"]),s(l).focusedProjectId?(o(!0),h(k,{key:0},y(s(i).projectTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",ne,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):S("",!0)]),p(w,{class:"section-divider"}),u("div",ce,[(o(!0),h(k,null,y(s(i).afterGlobalTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),u("div",ie,[p(Z,{class:"content-card",variant:"flat"},{default:r(()=>[p(q,{class:"content-card-text"},{default:r(()=>[s(n)?(o(),m(c,{key:0,route:s(n)},{default:r(({Component:e})=>[s(n).params.projectId?(o(),m(H,{key:0},{default:r(()=>[(o(),m(s(Y),{"project-id":s(n).params.projectId,key:s(n).params.projectId},{default:r(()=>[(o(),m($(e),{params:s(n).params},null,8,["params"]))]),_:2},1032,["project-id"]))]),_:2},1024)):(o(),m($(e),{key:1}))]),_:1},8,["route"])):S("",!0)]),_:1})]),_:1})])])])}}}),ve=B(de,[["__scopeId","data-v-60d93a31"]]);export{ve as default};
1
+ import{k as A,_ as B,f as E,u as F,l as z,n as x}from"./DlgqOs51.js";import{P as K}from"./C6uyQOiX.js";import{F as N,L as h,W as o,X as p,a1 as r,ab as M,C as U,w as R,j as G,$ as u,a9 as k,af as y,G as s,aA as w,_ as S,aK as X,aE as Z,ay as q,Z as m,a4 as H,a5 as $,ah as J,a0 as C,a2 as I,a3 as _,ac as V,ai as P}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CFUixvV0.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(W){return A(W.projectId),(l,j)=>(o(),h("div",O,[p(K,{"project-id":l.projectId,"can-unlock":""},{default:r(()=>[M(l.$slots,"default",{},void 0,!0)]),_:3},8,["project-id"])]))}}),Y=B(Q,[["__scopeId","data-v-cbe63052"]]),ee={class:"data-settings-panel"},te={class:"panel-layout"},ae={class:"vertical-tabs"},se={class:"tab-section"},oe={class:"tab-label"},re={class:"tab-section"},ne={class:"tab-label"},ce={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(W){const l=E(),j=F(),n=U(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(z.info({from:n.value?.path,to:t.path},"settings route changed"),n.value=t),t?.name==="settings"&&await f(i.value.beforeGlobalTabs[0])},{immediate:!0});const i=G(()=>{const b=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),c=[],e=[];for(const a of b){const d=a.meta.tab;if(!d||!a.path.startsWith("/settings/"))continue;const T={name:a.name,icon:d.icon,label:d.label,order:d.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:d.subpages??[]};T.isProjectTab?e.push(T):c.push(T)}c.sort((a,d)=>a.order-d.order),e.sort((a,d)=>a.order-d.order);const g=c.filter(a=>a.order<90),L=c.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:L}}),v=t=>n.value&&(t.name===n.value.name||t.subpages.includes(n.value.name)),D=G(()=>i.value.beforeGlobalTabs.find(v)||i.value.projectTabs.find(v)),f=async t=>{if(!t.isProjectTab){await x({name:t.name});return}await x({name:t.name,params:{projectId:l.focusedProjectId}})};return R(()=>l.focusedProjectId,async(t,b)=>{const c=j.currentRoute.value;!c||t===b&&c.path.startsWith("/settings/projects/")||!c.path.startsWith("/settings/")||(t&&i.value.projectTabs.length>0?await f(D.value??i.value.projectTabs[0]):!t&&c.path.startsWith("/settings/projects/")&&await f(i.value.beforeGlobalTabs[0]))}),(t,b)=>{const c=J("RouterView");return o(),h("div",ee,[u("div",te,[u("div",ae,[u("div",se,[(o(!0),h(k,null,y(s(i).beforeGlobalTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),p(w,{class:"section-divider"}),u("div",re,[p(X,{modelValue:s(l).focusedProjectId,"onUpdate:modelValue":b[0]||(b[0]=e=>s(l).focusedProjectId=e),items:s(l).projects,label:"Project","item-title":"meta.title","item-value":"id",variant:"outlined",density:"compact",class:"project-selector","prepend-inner-icon":"mdi-folder-outline",clearable:"","hide-details":""},null,8,["modelValue","items"]),s(l).focusedProjectId?(o(!0),h(k,{key:0},y(s(i).projectTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",ne,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):S("",!0)]),p(w,{class:"section-divider"}),u("div",ce,[(o(!0),h(k,null,y(s(i).afterGlobalTabs,e=>(o(),m(P,{key:e.name,variant:"text",class:V(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[p(C,{class:"tab-icon"},{default:r(()=>[I(_(e.icon),1)]),_:2},1024),u("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),u("div",ie,[p(Z,{class:"content-card",variant:"flat"},{default:r(()=>[p(q,{class:"content-card-text"},{default:r(()=>[s(n)?(o(),m(c,{key:0,route:s(n)},{default:r(({Component:e})=>[s(n).params.projectId?(o(),m(H,{key:0},{default:r(()=>[(o(),m(s(Y),{"project-id":s(n).params.projectId,key:s(n).params.projectId},{default:r(()=>[(o(),m($(e),{params:s(n).params},null,8,["params"]))]),_:2},1032,["project-id"]))]),_:2},1024)):(o(),m($(e),{key:1}))]),_:1},8,["route"])):S("",!0)]),_:1})]),_:1})])])])}}}),ve=B(de,[["__scopeId","data-v-60d93a31"]]);export{ve as default};
@@ -1 +1 @@
1
- import{I as F}from"./N0qQ3IYs.js";import{q as A,m as H,s as O,I as P,n as R}from"./BhWccYlK.js";import{F as U,aL as _,r as W,j,L as C,W as p,$ as o,X as f,aA as $,a1 as v,a0 as b,a3 as h,G as n,b as q,az as E,aN as G,a9 as M,a2 as X,Z as x,_ as S,ac as Z}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./DxOL29Up.js";import"./DjVGtenp.js";import"./0A0GXgOL.js";const J={class:"instances-tree"},K={class:"d-flex align-center justify-space-between mb-4"},Q={class:"d-flex align-center"},Y={class:"text-subtitle-1 font-weight-medium"},ee={style:{height:"calc(100vh - 220px)","overflow-y":"auto"}},te={class:"mr-2"},oe=["onClick"],ne={class:"d-flex flex-column flex-grow-1 mr-4"},ae={key:0,class:"text-caption text-medium-emphasis"},ue=U({__name:"index",async setup(ie){let c,l;const{projectStore:d,instancesStore:y,libraryStore:V,stateStore:I,validationStore:k,infoStore:r}=A();d.initializing?([c,l]=_(()=>O(()=>d.initialized).toBe(!0)),await c,l(),d.addLibraryRoot()):([c,l]=_(()=>d.initialize1()),await c,l(),[c,l]=_(()=>d.initialize2()),await c,l());const u=W(""),z=H(u,300),B=j(()=>{const t=[...y.instances.values()],a=z.value.toLowerCase().trim(),m=(a?t.filter(i=>i.id.includes(a)):t).map(i=>{const s=V.library.components[i.type];return{...i,meta:{title:s.meta.title,description:i.name,color:s.meta.color,icon:s.meta.icon??"iconamoon:component",iconColor:s.meta.iconColor,secondaryIcon:s.meta.secondaryIcon,secondaryIconColor:s.meta.secondaryIconColor}}}),N=m.filter(i=>!i.parentId),g=i=>i.map(s=>{const w=m.filter(L=>L.parentId===s.id);return{...s,children:w.length>0?g(w):void 0}});return g(N)}),T=j(()=>{if(!r.projectInfo)return[];const t=r.projectInfo;return[{id:t.id,meta:{title:t.meta.title||t.name,description:t.id,icon:t.meta.icon||"mdi-folder-outline",iconColor:t.meta.iconColor},children:B.value}]}),D=t=>{if(t.id===r.projectInfo?.id)return;const a=I.getInstanceState(t.id);a&&R({name:"settings.instance-details",params:{projectId:d.projectId,stateId:a.id}})};return(t,a)=>(p(),C(M,null,[a[2]||(a[2]=o("div",{class:"d-flex align-center justify-space-between"},[o("div",null,[o("h2",{class:"text-h5 font-weight-medium mb-1"},"Project Instances"),o("p",{class:"text-body-2 text-medium-emphasis ma-0"}," View and manage instances in your project. Instances are deployed components that make up your infrastructure. ")])],-1)),f($,{class:"mt-6 mb-6"}),o("div",J,[o("div",K,[o("div",Q,[f(b,{class:"mr-2"},{default:v(()=>a[1]||(a[1]=[X("mdi-format-list-bulleted")])),_:1,__:[1]}),o("span",Y,h(n(y).instances.size)+" instance"+h(n(y).instances.size===1?"":"s"),1)]),f(E,{modelValue:n(u),"onUpdate:modelValue":a[0]||(a[0]=e=>q(u)?u.value=e:null),"prepend-inner-icon":"mdi-magnify",placeholder:"Search instances...",variant:"outlined",density:"compact",clearable:"","hide-details":"",style:{"max-width":"300px"}},null,8,["modelValue"])]),o("div",ee,[f(G,{items:n(T),"item-title":"meta.title","item-value":"id","open-strategy":"multiple","select-strategy":"independent",density:"compact","indent-lines":"",opened:[n(r).projectInfo?.id]},{prepend:v(({item:e,isOpen:m})=>[o("div",te,[e.id!==n(r).projectInfo?.id?(p(),x(n(F),{key:0,state:n(I).instanceStates.get(e.id),"expected-input-hash":n(I).inputHashOutputs.get(e.id)?.inputHash,"validation-output":n(k).validationOutputs.get(e.id)},null,8,["state","expected-input-hash","validation-output"])):(p(),x(b,{key:1,icon:m?"mdi-folder-open-outline":"mdi-folder-outline",size:"20",color:e.meta.iconColor},null,8,["icon","color"]))])]),title:v(({item:e})=>[o("div",{class:"d-flex align-center flex-grow-1",style:{cursor:"pointer"},onClick:m=>D(e)},[e.meta.icon&&e.id!==n(r).projectInfo?.id?(p(),x(n(P),{key:0,icon:e.meta.icon,color:e.meta.iconColor,width:"24",class:"mr-3"},null,8,["icon","color"])):S("",!0),o("div",ne,[o("div",{class:Z(["font-weight-medium",e.id===n(r).projectInfo?.id?"text-h6":"text-body-1"])},h(e.meta.title||"Unnamed"),3),e.meta.description?(p(),C("div",ae,h(e.meta.description),1)):S("",!0)])],8,oe)]),_:1},8,["items","opened"])])])],64))}});export{ue as default};
1
+ import{I as F}from"./pD_CwtY4.js";import{q as A,m as H,s as O,I as P,n as R}from"./DlgqOs51.js";import{F as U,aL as _,r as W,j,L as C,W as p,$ as o,X as f,aA as $,a1 as v,a0 as b,a3 as h,G as n,b as q,az as E,aN as G,a9 as M,a2 as X,Z as x,_ as S,ac as Z}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./CmuRgu4O.js";import"./DUcPQWXO.js";import"./0A0GXgOL.js";const J={class:"instances-tree"},K={class:"d-flex align-center justify-space-between mb-4"},Q={class:"d-flex align-center"},Y={class:"text-subtitle-1 font-weight-medium"},ee={style:{height:"calc(100vh - 220px)","overflow-y":"auto"}},te={class:"mr-2"},oe=["onClick"],ne={class:"d-flex flex-column flex-grow-1 mr-4"},ae={key:0,class:"text-caption text-medium-emphasis"},ue=U({__name:"index",async setup(ie){let c,l;const{projectStore:d,instancesStore:y,libraryStore:V,stateStore:I,validationStore:k,infoStore:r}=A();d.initializing?([c,l]=_(()=>O(()=>d.initialized).toBe(!0)),await c,l(),d.addLibraryRoot()):([c,l]=_(()=>d.initialize1()),await c,l(),[c,l]=_(()=>d.initialize2()),await c,l());const u=W(""),z=H(u,300),B=j(()=>{const t=[...y.instances.values()],a=z.value.toLowerCase().trim(),m=(a?t.filter(i=>i.id.includes(a)):t).map(i=>{const s=V.library.components[i.type];return{...i,meta:{title:s.meta.title,description:i.name,color:s.meta.color,icon:s.meta.icon??"iconamoon:component",iconColor:s.meta.iconColor,secondaryIcon:s.meta.secondaryIcon,secondaryIconColor:s.meta.secondaryIconColor}}}),N=m.filter(i=>!i.parentId),g=i=>i.map(s=>{const w=m.filter(L=>L.parentId===s.id);return{...s,children:w.length>0?g(w):void 0}});return g(N)}),T=j(()=>{if(!r.projectInfo)return[];const t=r.projectInfo;return[{id:t.id,meta:{title:t.meta.title||t.name,description:t.id,icon:t.meta.icon||"mdi-folder-outline",iconColor:t.meta.iconColor},children:B.value}]}),D=t=>{if(t.id===r.projectInfo?.id)return;const a=I.getInstanceState(t.id);a&&R({name:"settings.instance-details",params:{projectId:d.projectId,stateId:a.id}})};return(t,a)=>(p(),C(M,null,[a[2]||(a[2]=o("div",{class:"d-flex align-center justify-space-between"},[o("div",null,[o("h2",{class:"text-h5 font-weight-medium mb-1"},"Project Instances"),o("p",{class:"text-body-2 text-medium-emphasis ma-0"}," View and manage instances in your project. Instances are deployed components that make up your infrastructure. ")])],-1)),f($,{class:"mt-6 mb-6"}),o("div",J,[o("div",K,[o("div",Q,[f(b,{class:"mr-2"},{default:v(()=>a[1]||(a[1]=[X("mdi-format-list-bulleted")])),_:1,__:[1]}),o("span",Y,h(n(y).instances.size)+" instance"+h(n(y).instances.size===1?"":"s"),1)]),f(E,{modelValue:n(u),"onUpdate:modelValue":a[0]||(a[0]=e=>q(u)?u.value=e:null),"prepend-inner-icon":"mdi-magnify",placeholder:"Search instances...",variant:"outlined",density:"compact",clearable:"","hide-details":"",style:{"max-width":"300px"}},null,8,["modelValue"])]),o("div",ee,[f(G,{items:n(T),"item-title":"meta.title","item-value":"id","open-strategy":"multiple","select-strategy":"independent",density:"compact","indent-lines":"",opened:[n(r).projectInfo?.id]},{prepend:v(({item:e,isOpen:m})=>[o("div",te,[e.id!==n(r).projectInfo?.id?(p(),x(n(F),{key:0,state:n(I).instanceStates.get(e.id),"expected-input-hash":n(I).inputHashOutputs.get(e.id)?.inputHash,"validation-output":n(k).validationOutputs.get(e.id)},null,8,["state","expected-input-hash","validation-output"])):(p(),x(b,{key:1,icon:m?"mdi-folder-open-outline":"mdi-folder-outline",size:"20",color:e.meta.iconColor},null,8,["icon","color"]))])]),title:v(({item:e})=>[o("div",{class:"d-flex align-center flex-grow-1",style:{cursor:"pointer"},onClick:m=>D(e)},[e.meta.icon&&e.id!==n(r).projectInfo?.id?(p(),x(n(P),{key:0,icon:e.meta.icon,color:e.meta.iconColor,width:"24",class:"mr-3"},null,8,["icon","color"])):S("",!0),o("div",ne,[o("div",{class:Z(["font-weight-medium",e.id===n(r).projectInfo?.id?"text-h6":"text-body-1"])},h(e.meta.title||"Unnamed"),3),e.meta.description?(p(),C("div",ae,h(e.meta.description),1)):S("",!0)])],8,oe)]),_:1},8,["items","opened"])])])],64))}});export{ue as default};
@@ -1 +1 @@
1
- import{_ as j,ag as g,ah as v,f as b}from"./BhWccYlK.js";import{P as I}from"./CAEVHbCq.js";import{a as k,o as w}from"./gt3opOQe.js";import{_ as h}from"./D2AD0cA7.js";import{F as p,j as P,Z as l,W as a,aE as $,a1 as u,$ as o,a3 as d,X as c,G as e,aL as x,L as r,ai as C,a9 as S,af as O}from"./koatKMQr.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./Bj2v5zwu.js";function U(s){return s.status!=="completed"&&s.status!=="failed"&&s.status!=="cancelled"}const A={class:"d-flex flex-column ga-2"},B={class:"d-flex align-center justify-space-between"},L={class:"text-truncate pr-2"},T={class:"text-caption text-medium-emphasis font-mono text-truncate"},V={class:"d-flex align-center justify-space-between"},N=p({__name:"OperationCard",props:{operation:{}},setup(s){return P(()=>U(s.operation)),(t,i)=>(a(),l($,{width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"}},{title:u(()=>[o("div",A,[o("div",B,[o("div",L,d(t.operation.meta.title||"Unnamed"),1),o("div",T,d(t.operation.id.slice(0,8)),1)]),o("div",V,[c(e(h),{status:t.operation.status,"status-map":e(k)},null,8,["status","status-map"]),c(e(h),{status:t.operation.type,"status-map":e(w)},null,8,["status","status-map"])])])]),_:1}))}}),E=j(N,[["__scopeId","data-v-2bd338c6"]]),F={class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},M={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},z={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},D={class:"d-flex flex-column gr-4 operation-list-container"},G=p({__name:"OperationList",props:{projectId:{}},async setup(s){let t,i;[t,i]=x(()=>g.async(s.projectId)),t=await t,i();const n=([t,i]=x(()=>v.async(s.projectId)),t=await t,i(),t),y=async()=>{await n.launchOperation({projectId:s.projectId,type:"update",instanceIds:n.instancesToAutoUpdate.map(_=>_.id)})};return(_,m)=>(a(),r("div",F,[c(C,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:e(n).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:y},{default:u(()=>[o("div",null,[m[0]||(m[0]=o("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),e(n).instancesToAutoUpdate.length>0?(a(),r("div",M,d(e(n).instancesToAutoUpdate.length)+" component(s) ",1)):(a(),r("div",z," nothing to update "))])]),_:1},8,["disabled"]),o("div",D,[(a(!0),r(S,null,O(e(n).operations,f=>(a(),l(E,{key:f.id,operation:f},null,8,["operation"]))),128))])]))}}),R=j(G,[["__scopeId","data-v-8c608480"]]),W={key:1,class:"mt-4 text-center text-uppercase text-disabled"},tt=p({__name:"operations",props:{params:{}},setup(s){const t=b();return(i,n)=>e(t).focusedProjectId?(a(),l(e(I),{key:e(t).focusedProjectId,"project-id":e(t).focusedProjectId},{default:u(()=>[c(e(R),{"project-id":e(t).focusedProjectId},null,8,["project-id"])]),_:1},8,["project-id"])):(a(),r("div",W,"No active project"))}});export{tt as default};
1
+ import{_ as j,ag as g,ah as v,f as b}from"./DlgqOs51.js";import{P as I}from"./C6uyQOiX.js";import{a as k,o as w}from"./gt3opOQe.js";import{_ as h}from"./PcM58xPJ.js";import{F as p,j as P,Z as l,W as a,aE as $,a1 as u,$ as o,a3 as d,X as c,G as e,aL as x,L as r,ai as C,a9 as S,af as O}from"./B9WOzG0F.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";import"./CFUixvV0.js";function U(s){return s.status!=="completed"&&s.status!=="failed"&&s.status!=="cancelled"}const A={class:"d-flex flex-column ga-2"},B={class:"d-flex align-center justify-space-between"},L={class:"text-truncate pr-2"},T={class:"text-caption text-medium-emphasis font-mono text-truncate"},V={class:"d-flex align-center justify-space-between"},N=p({__name:"OperationCard",props:{operation:{}},setup(s){return P(()=>U(s.operation)),(t,i)=>(a(),l($,{width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"}},{title:u(()=>[o("div",A,[o("div",B,[o("div",L,d(t.operation.meta.title||"Unnamed"),1),o("div",T,d(t.operation.id.slice(0,8)),1)]),o("div",V,[c(e(h),{status:t.operation.status,"status-map":e(k)},null,8,["status","status-map"]),c(e(h),{status:t.operation.type,"status-map":e(w)},null,8,["status","status-map"])])])]),_:1}))}}),E=j(N,[["__scopeId","data-v-2bd338c6"]]),F={class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},M={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},z={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},D={class:"d-flex flex-column gr-4 operation-list-container"},G=p({__name:"OperationList",props:{projectId:{}},async setup(s){let t,i;[t,i]=x(()=>g.async(s.projectId)),t=await t,i();const n=([t,i]=x(()=>v.async(s.projectId)),t=await t,i(),t),y=async()=>{await n.launchOperation({projectId:s.projectId,type:"update",instanceIds:n.instancesToAutoUpdate.map(_=>_.id)})};return(_,m)=>(a(),r("div",F,[c(C,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:e(n).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:y},{default:u(()=>[o("div",null,[m[0]||(m[0]=o("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),e(n).instancesToAutoUpdate.length>0?(a(),r("div",M,d(e(n).instancesToAutoUpdate.length)+" component(s) ",1)):(a(),r("div",z," nothing to update "))])]),_:1},8,["disabled"]),o("div",D,[(a(!0),r(S,null,O(e(n).operations,f=>(a(),l(E,{key:f.id,operation:f},null,8,["operation"]))),128))])]))}}),R=j(G,[["__scopeId","data-v-8c608480"]]),W={key:1,class:"mt-4 text-center text-uppercase text-disabled"},tt=p({__name:"operations",props:{params:{}},setup(s){const t=b();return(i,n)=>e(t).focusedProjectId?(a(),l(e(I),{key:e(t).focusedProjectId,"project-id":e(t).focusedProjectId},{default:u(()=>[c(e(R),{"project-id":e(t).focusedProjectId},null,8,["project-id"])]),_:1},8,["project-id"])):(a(),r("div",W,"No active project"))}});export{tt as default};