@highstate/designer 0.14.1 → 0.16.0

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 (86) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{SucuqcV1.js → 1tLku4p4.js} +1 -1
  3. package/.output/public/_nuxt/{htyOXo2B.js → 3S_Hvfyp.js} +1 -1
  4. package/.output/public/_nuxt/{D9yrQeKB.js → 6rhfNDFy.js} +1 -1
  5. package/.output/public/_nuxt/{CiW4qRt5.js → B-yYAAPq.js} +1 -1
  6. package/.output/public/_nuxt/{8hNo2oxe.js → BIOIQ_52.js} +1 -1
  7. package/.output/public/_nuxt/{luRfMbTH.js → BJnkbWC7.js} +1 -1
  8. package/.output/public/_nuxt/{DazHGnQt.js → BUPqLUAZ.js} +1 -1
  9. package/.output/public/_nuxt/{D9ayVCRO.js → BavYQnib.js} +1 -1
  10. package/.output/public/_nuxt/{BQKBEqPh.js → BceuRD9k.js} +1 -1
  11. package/.output/public/_nuxt/{CodzMKzx.js → BdXRWuy9.js} +1 -1
  12. package/.output/public/_nuxt/{DIo7DiTh.js → BeKEYITx.js} +1 -1
  13. package/.output/public/_nuxt/{B0CZVjFF.js → BmQB8QIV.js} +1 -1
  14. package/.output/public/_nuxt/{DwgroK_o.js → Bnjar8Ng.js} +1 -1
  15. package/.output/public/_nuxt/{C1OzDFAd.js → Bptgb1gA.js} +1 -1
  16. package/.output/public/_nuxt/{DbcOKM93.js → C-uxl13K.js} +1 -1
  17. package/.output/public/_nuxt/{DA8LIUWa.js → C1GhOuZs.js} +1 -1
  18. package/.output/public/_nuxt/{BktRuikR.js → C1J_OMUi.js} +1 -1
  19. package/.output/public/_nuxt/{MBzYIBwY.js → C4dJ9Dp2.js} +1 -1
  20. package/.output/public/_nuxt/{AlZVL3pR.js → C6-lnLL6.js} +1 -1
  21. package/.output/public/_nuxt/{xiAiC-VY.js → CBPt1P_2.js} +1 -1
  22. package/.output/public/_nuxt/{B7HXz7Pj.js → CE3CDIR2.js} +1 -1
  23. package/.output/public/_nuxt/{Bi--9362.js → CKy1dYPy.js} +1 -1
  24. package/.output/public/_nuxt/{BxDN7GvZ.js → CLIJZ9Kg.js} +1 -1
  25. package/.output/public/_nuxt/{CgmzNBdw.js → CLTVhdbR.js} +1 -1
  26. package/.output/public/_nuxt/{CDPBuKr5.js → CLeQ9Bcu.js} +1 -1
  27. package/.output/public/_nuxt/{BCAAo2Xs.js → CPKj8JP2.js} +1 -1
  28. package/.output/public/_nuxt/{DAbczt3Y.js → CS3ere4C.js} +1 -1
  29. package/.output/public/_nuxt/{BC4bzN3h.js → CdGLXhPg.js} +1 -1
  30. package/.output/public/_nuxt/{WyI18QTo.js → CepWdzo5.js} +1 -1
  31. package/.output/public/_nuxt/{CnrObePb.js → CoYigVp_.js} +1 -1
  32. package/.output/public/_nuxt/{BBhg39jC.js → CsTvCpCJ.js} +1 -1
  33. package/.output/public/_nuxt/{B3_RfxPY.js → Csm9hFeJ.js} +1 -1
  34. package/.output/public/_nuxt/{HXyjJC-p.js → Csn2or63.js} +1 -1
  35. package/.output/public/_nuxt/{CuLjlXlo.js → CvADjhb_.js} +1 -1
  36. package/.output/public/_nuxt/{BaNZZ_dQ.js → CwAz_yUW.js} +1 -1
  37. package/.output/public/_nuxt/{CYdh-fCb.js → CzJ8MBTn.js} +1 -1
  38. package/.output/public/_nuxt/{BJeaBD25.js → D04V0T-m.js} +1 -1
  39. package/.output/public/_nuxt/{Bu-pZzEo.js → D0iwnhl3.js} +1 -1
  40. package/.output/public/_nuxt/{BQe-EN0e.js → D1TQbbYZ.js} +1 -1
  41. package/.output/public/_nuxt/{Clpw7Yi1.js → D51fBQV9.js} +1 -1
  42. package/.output/public/_nuxt/{DaZa-Z5n.js → D5VXvr1H.js} +1 -1
  43. package/.output/public/_nuxt/{Be3bUPYU.js → D9ViHMSV.js} +1 -1
  44. package/.output/public/_nuxt/{DfRNGSx_.js → DBjl4B0h.js} +1 -1
  45. package/.output/public/_nuxt/{B8cfqe27.js → DDcqy5JD.js} +1 -1
  46. package/.output/public/_nuxt/{c7cuww2j.js → DM6la2tX.js} +1 -1
  47. package/.output/public/_nuxt/{DTEvwfme.js → DNi5T6Bz.js} +1 -1
  48. package/.output/public/_nuxt/{rtii14lI.js → DZ0fvG7S.js} +1 -1
  49. package/.output/public/_nuxt/{CXHtlxuP.js → DZspzRjr.js} +1 -1
  50. package/.output/public/_nuxt/{CM0USXxa.js → D_5dPpJ9.js} +1 -1
  51. package/.output/public/_nuxt/{CAWn6QGE.js → Dd7ny--8.js} +1 -1
  52. package/.output/public/_nuxt/{Doe3qPsx.js → DgZq65QT.js} +1 -1
  53. package/.output/public/_nuxt/{BYmHaUHG.js → DgpMfa-V.js} +1 -1
  54. package/.output/public/_nuxt/{DZALWWcz.js → DhwaHwNH.js} +1 -1
  55. package/.output/public/_nuxt/{B0MclPaN.js → Dixpqgkd.js} +1 -1
  56. package/.output/public/_nuxt/{CBhhCAGJ.js → DjP-kB7A.js} +1 -1
  57. package/.output/public/_nuxt/{BcIhEyqj.js → Djce7N1i.js} +1 -1
  58. package/.output/public/_nuxt/{CBZUZSSS.js → DoeXbUr0.js} +1 -1
  59. package/.output/public/_nuxt/{CZeOmOJM.js → Du4ruqK9.js} +1 -1
  60. package/.output/public/_nuxt/{C492izQx.js → DxFGiSHR.js} +8 -8
  61. package/.output/public/_nuxt/{Xt7jYYu7.js → DxKH2jsE.js} +1 -1
  62. package/.output/public/_nuxt/{yQo4vWqK.js → DyB4Tpuu.js} +1 -1
  63. package/.output/public/_nuxt/{B13CirDR.js → HNDpeavD.js} +1 -1
  64. package/.output/public/_nuxt/{DeyR_GFX.js → Kb4BC6jz.js} +1 -1
  65. package/.output/public/_nuxt/{C-Sr9OUA.js → Kyz67XTE.js} +1 -1
  66. package/.output/public/_nuxt/{3xoHIewA.js → QxvOf-5m.js} +5 -5
  67. package/.output/public/_nuxt/{6pS6ZuG3.js → Rb838hxx.js} +1 -1
  68. package/.output/public/_nuxt/{gPpeS_SO.js → Wbsxx-up.js} +1 -1
  69. package/.output/public/_nuxt/{CqbFpzKO.js → X-jnPjW0.js} +1 -1
  70. package/.output/public/_nuxt/builds/latest.json +1 -1
  71. package/.output/public/_nuxt/builds/meta/f71bbcb3-c7c7-4169-a22c-1e2ac56d5bc1.json +1 -0
  72. package/.output/public/_nuxt/error-404.h4BWQQPs.css +1 -0
  73. package/.output/public/_nuxt/error-500.B72O9eXJ.css +1 -0
  74. package/.output/public/_nuxt/{bgIcLC22.js → kx1IlZcH.js} +1 -1
  75. package/.output/public/_nuxt/{DdSZEM1_.js → mLnnohuA.js} +1 -1
  76. package/.output/public/_nuxt/{LXHlNQaX.js → o6wvFceq.js} +1 -1
  77. package/.output/public/_nuxt/{8KpM6cBw.js → yDlPYID3.js} +1 -1
  78. package/.output/public/_nuxt/{yaml.worker-B7qHIEmf.js → yaml.worker-CQ6dFw39.js} +10 -10
  79. package/.output/server/index.mjs +1502 -1509
  80. package/.output/server/index.mjs.map +1 -1
  81. package/.output/server/package.json +1 -1
  82. package/package.json +4 -4
  83. package/.output/public/_nuxt/builds/meta/75b718b3-e0c1-41f8-b851-4838bf76ab25.json +0 -1
  84. package/.output/public/_nuxt/builds/meta/b37593b3-3391-4d00-8433-5fbcef99d5df.json +0 -1
  85. package/.output/public/_nuxt/error-404.CtwfpkiA.css +0 -1
  86. package/.output/public/_nuxt/error-500.OXvA_D27.css +0 -1
@@ -1,4 +1,4 @@
1
- import{av as Pe,aw as pi,ax as kn,ay as wi,az as xn,aA as bi,l as ki,_ as Z,aB as Sn,aC as se,aD as De,aE as $n,aF as Cn,aG as xi,aH as Si,aI as $i,aJ as Ci,aK as ee,aL as Nt,aM as Ii,aN as Vi,ao as Ai,aO as In,aP as Mi,i as Ae,aQ as Je,aR as Ni,aS as Ei,ad as Ri,I as Vn,aT as An,aq as zi,aU as Oi,aV as Bi,aW as Ze}from"#entry";import{E as U,g as z,K as R,W as v,a9 as D,af as ot,b4 as Ti,_ as O,aa as xt,Z as I,aE as Le,F as m,a1 as w,X as $,ab as Q,a0 as K,a2 as L,$ as W,ac as wt,t as Tt,G as Mn,ae as Fi,a7 as Nn,r as Ft,p as Hi,a3 as J,i as Pi,ak as It,a8 as Ht,a5 as Di,H as Li,b5 as Ui,al as zt,aT as En,aO as bt,av as Wt,az as Rn,b6 as qi,b7 as Xi,aK as zn,b8 as Yi,w as Wi,a as On,aw as Bn,aA as kt,ay as ve,ax as Gi,b as Me,aM as Tn,aC as ye,aD as Pt,ai as it,n as le,aI as ji,a$ as Ki,aH as Ji,aP as Dt,aS as Zi,aj as Fn,aW as Qi}from"./C492izQx.js";import{t as Qe,a as _i,C as Hn,_ as to}from"./luRfMbTH.js";import{V as _e}from"./DfRNGSx_.js";import{I as eo}from"./CgmzNBdw.js";import{_ as no}from"./c7cuww2j.js";function io(t,e){let n=e.length-t.length;if(n===1){let[i,...o]=e;return Qe(i,{lazy:t,lazyArgs:o})}if(n===0){let i={lazy:t,lazyArgs:e};return Object.assign(o=>Qe(o,i),i)}throw Error("Wrong number of arguments")}function oo(...t){return io(ao,t)}function ao(){let t=new Set;return e=>t.has(e)?_i:(t.add(e),{done:!1,hasNext:!0,next:e})}function ro(t,e,n){const i=Array.from({length:n},()=>[]),o=e,r=-(o*(n-1))/2,s=Array.from({length:n},(l,d)=>r+d*o),u=[];for(let l=0;l<t.length-1;l++){const d=t[l],f=t[l+1],g=f[0]-d[0],C=f[1]-d[1],S=Math.sqrt(g*g+C*C);let N=-C,y=g;S!==0&&(N/=S,y/=S),u.push({x:N,y})}function c(l,d,f,g){const C=l[0],S=l[1],N=d[0],y=d[1],x=f[0],E=f[1],B=g[0],F=g[1],H=(C-N)*(E-F)-(S-y)*(x-B);if(H===0)return null;const P=((C-x)*(E-F)-(S-E)*(x-B))/H;return[C+P*(N-C),S+P*(y-S)]}for(let l=0;l<n;l++)for(let d=0;d<t.length;d++){const f=t[d];let g=0,C=0;if(d===0)g=u[0].x*s[l],C=u[0].y*s[l];else if(d===t.length-1)g=u[u.length-1].x*s[l],C=u[u.length-1].y*s[l];else{const S=u[d-1],N=u[d],y=t[d-1],x=t[d+1],E=[y[0]+S.x*s[l],y[1]+S.y*s[l]],B=[f[0]+S.x*s[l],f[1]+S.y*s[l]],F=[f[0]+N.x*s[l],f[1]+N.y*s[l]],H=[x[0]+N.x*s[l],x[1]+N.y*s[l]],P=c(E,B,F,H);P?(g=P[0]-f[0],C=P[1]-f[1]):(g=(S.x+N.x)/2*s[l],C=(S.y+N.y)/2*s[l])}i[l].push(`${f[0]+g},${f[1]+C}`)}return i}const so=["points","stroke"],lo=["points"],Kt=3,uo=U({__name:"CustomEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},inputResolverOutputs:{},components:{},entities:{}},setup(t){Ti(x=>({c5384110:Kt}));const e=Pe(),{inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s,inputNodeType:u}=pi(e,{source:t.source,target:t.target,sourceHandle:t.sourceHandleId,targetHandle:t.targetHandleId}),c=z(()=>{if(u==="outputs"){const E=t.components[n.type].outputs[s];return{all:E?[E.type]:[]}}if(i&&n){const E=t.components[n.type].inputs[s];return{all:E?[E.type]:[]}}if(a&&n&&s)return{all:(kn(t.inputResolverOutputs,n.id)[s]??[]).map(E=>E.type)};if(a&&n)return{all:xn(t.inputResolverOutputs,n.id).map(x=>x.type),visible:wi(t.inputResolverOutputs,n.id).map(x=>x.type)};if(i&&o){const E=t.components[i.type].outputs[r];return{all:E?[E.type]:[]}}if(a&&o)return{all:bi(t.inputResolverOutputs,a.id).flat().map(x=>x.type)};throw ki.error({msg:"unexpected connection in CustomEdge",inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s}),new Error("Invalid connection")}),l=z(()=>oo(c.value.all).map(x=>t.entities[x])),d=z(()=>a?c.value.visible?c.value.visible.length===0:c.value.all.length===0:!1),f=z(()=>d.value?1:l.value.length),g=x=>d.value?"#9E9E9E":l.value[x%l.value.length].meta.color??"#607D8B",C=x=>d.value?!0:c.value.visible?c.value.visible.includes(l.value[x].type):!0,S=(x,E)=>x[0]===E[0]&&x[1]===E[1],N=z(()=>{if(!t.data.points)return[];const x=[t.sourceX,t.sourceY],E=[t.targetX,t.targetY],B=[...t.data.points];return(!B[0]||!S(B[0],x))&&B.unshift(x),(!B[B.length-1]||!S(B[B.length-1],E))&&B.push(E),ro(B,Kt,f.value)}),y=x=>{const B=1/f.value;return`-${x*B}s`};return(x,E)=>(v(),R(D,null,[(v(!0),R(D,null,ot(N.value,(B,F)=>(v(),R(D,{key:`static-${F}`},[C(F)?(v(),R("polyline",{key:0,points:B.join(" "),stroke:g(F),fill:"none","stroke-width":Kt,style:{opacity:"0.8"}},null,8,so)):O("",!0)],64))),128)),(v(!0),R(D,null,ot(N.value,(B,F)=>(v(),R(D,{key:`highlight-${F}`},[C(F)?(v(),R("polyline",{key:0,points:B.join(" "),stroke:"white",fill:"none","stroke-width":Kt,class:"highlight-polyline animated-highlight",style:xt({animationDelay:y(F)})},null,12,lo)):O("",!0)],64))),128))],64))}}),co=Z(uo,[["__scopeId","data-v-4bf748bc"]]);function fo(t,e){const n={borderRadius:"4px",overflow:"visible"};switch(e){case"blueprint-valid":return{...n,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{...n,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 t?{...n,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:n}const ho=U({__name:"HubCard",props:{selected:{type:Boolean},blueprintStatus:{}},setup(t){return(e,n)=>(v(),I(Le,{variant:"flat",style:xt(m(fo)(t.selected,t.blueprintStatus)),color:"#2d2d2d"},{default:w(()=>[$(K,{class:"ma-2",size:74},{default:w(()=>[...n[0]||(n[0]=[L("mdi-router",-1)])]),_:1}),Q(e.$slots,"default")]),_:3},8,["style"]))}}),mo=U({__name:"HubNodeHandle",props:{side:{},handleColor:{},isValidConnection:{type:Function}},setup(t){return(e,n)=>(v(),R(D,null,[$(m(Sn),{id:"",type:t.side==="left"?"target":"source",position:t.side==="left"?m(se).Left:m(se).Right,class:wt(["handle",[t.side==="left"?"left-handle":"right-handle"]]),"is-valid-connection":t.isValidConnection},null,8,["type","position","class","is-valid-connection"]),W("div",{class:wt(["handle-dot",[t.side==="left"?"handle-dot-left":"handle-dot-right"]]),style:xt({backgroundColor:t.handleColor})},null,6)],64))}}),tn=Z(mo,[["__scopeId","data-v-1aff1180"]]),go={class:"handles"},vo=U({__name:"HubNode",props:{hub:{},isValidConnection:{type:Function}},emits:["contextmenu"],setup(t,{emit:e}){const n=e,{vueFlowStore:i,selection:o}=De(),a=$n(),r=z(()=>Cn(a.node,i));return(s,u)=>(v(),I(ho,{class:"hub-card",selected:m(o).isNodeSelected(m(a).node),"blueprint-status":m(r),onContextmenu:u[0]||(u[0]=c=>n("contextmenu",c))},{default:w(()=>[Q(s.$slots,"default",{},void 0,!0),W("div",go,[$(tn,{"handle-color":"#3F51B5",side:"left","is-valid-connection":t.isValidConnection},null,8,["is-valid-connection"]),$(tn,{"handle-color":"#3F51B5",side:"right","is-valid-connection":t.isValidConnection},null,8,["is-valid-connection"])])]),_:3},8,["selected","blueprint-status"]))}}),eu=Z(vo,[["__scopeId","data-v-79b30d7c"]]),yo=U({__name:"SelectionRectangle",props:{selectionMode:{default:"add"},selectionArea:{}},setup(t){const e=z(()=>{if(!t.selectionArea)return;const n={left:t.selectionArea.x+"px",top:t.selectionArea.y+"px",width:t.selectionArea.width+"px",height:t.selectionArea.height+"px"};return t.selectionMode==="add"?{...n,border:"2px dashed #2196F3",background:"rgba(33, 150, 243, 0.1)"}:{...n,border:"2px dashed #F44336",background:"rgba(244, 67, 54, 0.1)"}});return(n,i)=>m(e)?(v(),R("div",{key:0,class:"selection-rectangle",style:xt(m(e))},null,4)):O("",!0)}}),po=Z(yo,[["__scopeId","data-v-6118cbbb"]]);var ht=(t=>(t.Lines="lines",t.Dots="dots",t))(ht||{});const Pn=function({dimensions:t,size:e,color:n}){return Mn("path",{stroke:n,"stroke-width":e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})},Dn=function({radius:t,color:e}){return Mn("circle",{cx:t,cy:t,r:t,fill:e})};ht.Lines+"",ht.Dots+"";const wo={[ht.Dots]:"#81818a",[ht.Lines]:"#eee"},bo=["id","x","y","width","height","patternTransform"],ko={key:2,height:"100",width:"100"},xo=["fill"],So=["x","y","fill"],$o={name:"Background",compatConfig:{MODE:3}},Co=U({...$o,props:{id:{},variant:{default:()=>ht.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(t){const{id:e,viewport:n}=Pe(),i=z(()=>{const r=n.value.zoom,[s,u]=Array.isArray(t.gap)?t.gap:[t.gap,t.gap],c=[s*r||1,u*r||1],l=t.size*r,[d,f]=Array.isArray(t.offset)?t.offset:[t.offset,t.offset],g=[d*r||1+c[0]/2,f*r||1+c[1]/2];return{scaledGap:c,offset:g,size:l}}),o=Tt(()=>`pattern-${e}${t.id?`-${t.id}`:""}`),a=Tt(()=>t.color||t.patternColor||wo[t.variant||ht.Dots]);return(r,s)=>(v(),R("svg",{class:"vue-flow__background vue-flow__container",style:xt({height:`${r.height>100?100:r.height}%`,width:`${r.width>100?100:r.width}%`})},[Q(r.$slots,"pattern-container",{id:o.value},()=>[W("pattern",{id:o.value,x:m(n).x%i.value.scaledGap[0],y:m(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[Q(r.$slots,"pattern",{},()=>[r.variant===m(ht).Lines?(v(),I(m(Pn),{key:0,size:r.lineWidth,color:a.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):r.variant===m(ht).Dots?(v(),I(m(Dn),{key:1,color:a.value,radius:i.value.size/2},null,8,["color","radius"])):O("",!0),r.bgColor?(v(),R("svg",ko,[W("rect",{width:"100%",height:"100%",fill:r.bgColor},null,8,xo)])):O("",!0)])],8,bo)]),W("rect",{x:r.x,y:r.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,So),Q(r.$slots,"default",{id:o.value})],4))}});var Io={value:()=>{}};function Ue(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ne(n)}function ne(t){this._=t}function Vo(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ne.prototype=Ue.prototype={constructor:ne,on:function(t,e){var n=this._,i=Vo(t+"",n),o,a=-1,r=i.length;if(arguments.length<2){for(;++a<r;)if((o=(t=i[a]).type)&&(o=Ao(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<r;)if(o=(t=i[a]).type)n[o]=en(n[o],t.name,e);else if(e==null)for(o in n)n[o]=en(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ne(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,a;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],i=0,o=a.length;i<o;++i)a[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,n)}};function Ao(t,e){for(var n=0,i=t.length,o;n<i;++n)if((o=t[n]).name===e)return o.value}function en(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=Io,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Ne="http://www.w3.org/1999/xhtml";const nn={svg:"http://www.w3.org/2000/svg",xhtml:Ne,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pe(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),nn.hasOwnProperty(e)?{space:nn[e],local:t}:t}function Mo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ne&&e.documentElement.namespaceURI===Ne?e.createElement(t):e.createElementNS(n,t)}}function No(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ln(t){var e=pe(t);return(e.local?No:Mo)(e)}function Eo(){}function qe(t){return t==null?Eo:function(){return this.querySelector(t)}}function Ro(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=new Array(r),u,c,l=0;l<r;++l)(u=a[l])&&(c=t.call(u,u.__data__,l,a))&&("__data__"in u&&(c.__data__=u.__data__),s[l]=c);return new at(i,this._parents)}function zo(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Oo(){return[]}function Un(t){return t==null?Oo:function(){return this.querySelectorAll(t)}}function Bo(t){return function(){return zo(t.apply(this,arguments))}}function To(t){typeof t=="function"?t=Bo(t):t=Un(t);for(var e=this._groups,n=e.length,i=[],o=[],a=0;a<n;++a)for(var r=e[a],s=r.length,u,c=0;c<s;++c)(u=r[c])&&(i.push(t.call(u,u.__data__,c,r)),o.push(u));return new at(i,o)}function qn(t){return function(){return this.matches(t)}}function Xn(t){return function(e){return e.matches(t)}}var Fo=Array.prototype.find;function Ho(t){return function(){return Fo.call(this.children,t)}}function Po(){return this.firstElementChild}function Do(t){return this.select(t==null?Po:Ho(typeof t=="function"?t:Xn(t)))}var Lo=Array.prototype.filter;function Uo(){return Array.from(this.children)}function qo(t){return function(){return Lo.call(this.children,t)}}function Xo(t){return this.selectAll(t==null?Uo:qo(typeof t=="function"?t:Xn(t)))}function Yo(t){typeof t!="function"&&(t=qn(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=[],u,c=0;c<r;++c)(u=a[c])&&t.call(u,u.__data__,c,a)&&s.push(u);return new at(i,this._parents)}function Yn(t){return new Array(t.length)}function Wo(){return new at(this._enter||this._groups.map(Yn),this._parents)}function ue(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ue.prototype={constructor:ue,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Go(t){return function(){return t}}function jo(t,e,n,i,o,a){for(var r=0,s,u=e.length,c=a.length;r<c;++r)(s=e[r])?(s.__data__=a[r],i[r]=s):n[r]=new ue(t,a[r]);for(;r<u;++r)(s=e[r])&&(o[r]=s)}function Ko(t,e,n,i,o,a,r){var s,u,c=new Map,l=e.length,d=a.length,f=new Array(l),g;for(s=0;s<l;++s)(u=e[s])&&(f[s]=g=r.call(u,u.__data__,s,e)+"",c.has(g)?o[s]=u:c.set(g,u));for(s=0;s<d;++s)g=r.call(t,a[s],s,a)+"",(u=c.get(g))?(i[s]=u,u.__data__=a[s],c.delete(g)):n[s]=new ue(t,a[s]);for(s=0;s<l;++s)(u=e[s])&&c.get(f[s])===u&&(o[s]=u)}function Jo(t){return t.__data__}function Zo(t,e){if(!arguments.length)return Array.from(this,Jo);var n=e?Ko:jo,i=this._parents,o=this._groups;typeof t!="function"&&(t=Go(t));for(var a=o.length,r=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var l=i[c],d=o[c],f=d.length,g=Qo(t.call(l,l&&l.__data__,c,i)),C=g.length,S=s[c]=new Array(C),N=r[c]=new Array(C),y=u[c]=new Array(f);n(l,d,S,N,y,g,e);for(var x=0,E=0,B,F;x<C;++x)if(B=S[x]){for(x>=E&&(E=x+1);!(F=N[E])&&++E<C;);B._next=F||null}}return r=new at(r,i),r._enter=s,r._exit=u,r}function Qo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function _o(){return new at(this._exit||this._groups.map(Yn),this._parents)}function ta(t,e,n){var i=this.enter(),o=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?a.remove():n(a),i&&o?i.merge(o).order():o}function ea(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,a=i.length,r=Math.min(o,a),s=new Array(o),u=0;u<r;++u)for(var c=n[u],l=i[u],d=c.length,f=s[u]=new Array(d),g,C=0;C<d;++C)(g=c[C]||l[C])&&(f[C]=g);for(;u<o;++u)s[u]=n[u];return new at(s,this._parents)}function na(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],o=i.length-1,a=i[o],r;--o>=0;)(r=i[o])&&(a&&r.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(r,a),a=r);return this}function ia(t){t||(t=oa);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var r=n[a],s=r.length,u=o[a]=new Array(s),c,l=0;l<s;++l)(c=r[l])&&(u[l]=c);u.sort(e)}return new at(o,this._parents).order()}function oa(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function aa(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ra(){return Array.from(this)}function sa(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var r=i[o];if(r)return r}return null}function la(){let t=0;for(const e of this)++t;return t}function ua(){return!this.node()}function ca(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o=e[n],a=0,r=o.length,s;a<r;++a)(s=o[a])&&t.call(s,s.__data__,a,o);return this}function da(t){return function(){this.removeAttribute(t)}}function fa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ha(t,e){return function(){this.setAttribute(t,e)}}function ma(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ga(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function va(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ya(t,e){var n=pe(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?fa:da:typeof e=="function"?n.local?va:ga:n.local?ma:ha)(n,e))}function Wn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pa(t){return function(){this.style.removeProperty(t)}}function wa(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ba(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function ka(t,e,n){return arguments.length>1?this.each((e==null?pa:typeof e=="function"?ba:wa)(t,e,n??"")):At(this.node(),t)}function At(t,e){return t.style.getPropertyValue(e)||Wn(t).getComputedStyle(t,null).getPropertyValue(e)}function xa(t){return function(){delete this[t]}}function Sa(t,e){return function(){this[t]=e}}function $a(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ca(t,e){return arguments.length>1?this.each((e==null?xa:typeof e=="function"?$a:Sa)(t,e)):this.node()[t]}function Gn(t){return t.trim().split(/^|\s+/)}function Xe(t){return t.classList||new jn(t)}function jn(t){this._node=t,this._names=Gn(t.getAttribute("class")||"")}jn.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Kn(t,e){for(var n=Xe(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function Jn(t,e){for(var n=Xe(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function Ia(t){return function(){Kn(this,t)}}function Va(t){return function(){Jn(this,t)}}function Aa(t,e){return function(){(e.apply(this,arguments)?Kn:Jn)(this,t)}}function Ma(t,e){var n=Gn(t+"");if(arguments.length<2){for(var i=Xe(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?Aa:e?Ia:Va)(n,e))}function Na(){this.textContent=""}function Ea(t){return function(){this.textContent=t}}function Ra(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function za(t){return arguments.length?this.each(t==null?Na:(typeof t=="function"?Ra:Ea)(t)):this.node().textContent}function Oa(){this.innerHTML=""}function Ba(t){return function(){this.innerHTML=t}}function Ta(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Fa(t){return arguments.length?this.each(t==null?Oa:(typeof t=="function"?Ta:Ba)(t)):this.node().innerHTML}function Ha(){this.nextSibling&&this.parentNode.appendChild(this)}function Pa(){return this.each(Ha)}function Da(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function La(){return this.each(Da)}function Ua(t){var e=typeof t=="function"?t:Ln(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function qa(){return null}function Xa(t,e){var n=typeof t=="function"?t:Ln(t),i=e==null?qa:typeof e=="function"?e:qe(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Ya(){var t=this.parentNode;t&&t.removeChild(this)}function Wa(){return this.each(Ya)}function Ga(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ja(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ka(t){return this.select(t?ja:Ga)}function Ja(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Za(t){return function(e){t.call(this,e,this.__data__)}}function Qa(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function _a(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,o=e.length,a;n<o;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++i]=a;++i?e.length=i:delete this.__on}}}function tr(t,e,n){return function(){var i=this.__on,o,a=Za(e);if(i){for(var r=0,s=i.length;r<s;++r)if((o=i[r]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=e;return}}this.addEventListener(t.type,a,n),o={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(o):this.__on=[o]}}function er(t,e,n){var i=Qa(t+""),o,a=i.length,r;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,l;u<c;++u)for(o=0,l=s[u];o<a;++o)if((r=i[o]).type===l.type&&r.name===l.name)return l.value}return}for(s=e?tr:_a,o=0;o<a;++o)this.each(s(i[o],e,n));return this}function Zn(t,e,n){var i=Wn(t),o=i.CustomEvent;typeof o=="function"?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function nr(t,e){return function(){return Zn(this,t,e)}}function ir(t,e){return function(){return Zn(this,t,e.apply(this,arguments))}}function or(t,e){return this.each((typeof e=="function"?ir:nr)(t,e))}function*ar(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length,r;o<a;++o)(r=i[o])&&(yield r)}var Qn=[null];function at(t,e){this._groups=t,this._parents=e}function Gt(){return new at([[document.documentElement]],Qn)}function rr(){return this}at.prototype=Gt.prototype={constructor:at,select:Ro,selectAll:To,selectChild:Do,selectChildren:Xo,filter:Yo,data:Zo,enter:Wo,exit:_o,join:ta,merge:ea,selection:rr,order:na,sort:ia,call:aa,nodes:ra,node:sa,size:la,empty:ua,each:ca,attr:ya,style:ka,property:Ca,classed:Ma,text:za,html:Fa,raise:Pa,lower:La,append:Ua,insert:Xa,remove:Wa,clone:Ka,datum:Ja,on:er,dispatch:or,[Symbol.iterator]:ar};function pt(t){return typeof t=="string"?new at([[document.querySelector(t)]],[document.documentElement]):new at([[t]],Qn)}function sr(t){let e;for(;e=t.sourceEvent;)t=e;return t}function vt(t,e){if(t=sr(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}const Ee={capture:!0,passive:!1};function Re(t){t.preventDefault(),t.stopImmediatePropagation()}function lr(t){var e=t.document.documentElement,n=pt(t).on("dragstart.drag",Re,Ee);"onselectstart"in e?n.on("selectstart.drag",Re,Ee):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ur(t,e){var n=t.document.documentElement,i=pt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Re,Ee),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Ye(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function _n(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function jt(){}var Lt=.7,ce=1/Lt,Vt="\\s*([+-]?\\d+)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cr=/^#([0-9a-f]{3,8})$/,dr=new RegExp(`^rgb\\(${Vt},${Vt},${Vt}\\)$`),fr=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),hr=new RegExp(`^rgba\\(${Vt},${Vt},${Vt},${Ut}\\)$`),mr=new RegExp(`^rgba\\(${ut},${ut},${ut},${Ut}\\)$`),gr=new RegExp(`^hsl\\(${Ut},${ut},${ut}\\)$`),vr=new RegExp(`^hsla\\(${Ut},${ut},${ut},${Ut}\\)$`),on={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ye(jt,qt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:an,formatHex:an,formatHex8:yr,formatHsl:pr,formatRgb:rn,toString:rn});function an(){return this.rgb().formatHex()}function yr(){return this.rgb().formatHex8()}function pr(){return ti(this).formatHsl()}function rn(){return this.rgb().formatRgb()}function qt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=cr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?sn(e):n===3?new _(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Jt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Jt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=dr.exec(t))?new _(e[1],e[2],e[3],1):(e=fr.exec(t))?new _(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=hr.exec(t))?Jt(e[1],e[2],e[3],e[4]):(e=mr.exec(t))?Jt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=gr.exec(t))?cn(e[1],e[2]/100,e[3]/100,1):(e=vr.exec(t))?cn(e[1],e[2]/100,e[3]/100,e[4]):on.hasOwnProperty(t)?sn(on[t]):t==="transparent"?new _(NaN,NaN,NaN,0):null}function sn(t){return new _(t>>16&255,t>>8&255,t&255,1)}function Jt(t,e,n,i){return i<=0&&(t=e=n=NaN),new _(t,e,n,i)}function wr(t){return t instanceof jt||(t=qt(t)),t?(t=t.rgb(),new _(t.r,t.g,t.b,t.opacity)):new _}function ze(t,e,n,i){return arguments.length===1?wr(t):new _(t,e,n,i??1)}function _(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Ye(_,ze,_n(jt,{brighter(t){return t=t==null?ce:Math.pow(ce,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Lt:Math.pow(Lt,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _($t(this.r),$t(this.g),$t(this.b),de(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ln,formatHex:ln,formatHex8:br,formatRgb:un,toString:un}));function ln(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function br(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function un(){const t=de(this.opacity);return`${t===1?"rgb(":"rgba("}${$t(this.r)}, ${$t(this.g)}, ${$t(this.b)}${t===1?")":`, ${t})`}`}function de(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function $t(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function St(t){return t=$t(t),(t<16?"0":"")+t.toString(16)}function cn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,i)}function ti(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof jt||(t=qt(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),a=Math.max(e,n,i),r=NaN,s=a-o,u=(a+o)/2;return s?(e===a?r=(n-i)/s+(n<i)*6:n===a?r=(i-e)/s+2:r=(e-n)/s+4,s/=u<.5?a+o:2-a-o,r*=60):s=u>0&&u<1?0:r,new st(r,s,u,t.opacity)}function kr(t,e,n,i){return arguments.length===1?ti(t):new st(t,e,n,i??1)}function st(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Ye(st,kr,_n(jt,{brighter(t){return t=t==null?ce:Math.pow(ce,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Lt:Math.pow(Lt,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i;return new _(Ce(t>=240?t-240:t+120,o,i),Ce(t,o,i),Ce(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new st(dn(this.h),Zt(this.s),Zt(this.l),de(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=de(this.opacity);return`${t===1?"hsl(":"hsla("}${dn(this.h)}, ${Zt(this.s)*100}%, ${Zt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function dn(t){return t=(t||0)%360,t<0?t+360:t}function Zt(t){return Math.max(0,Math.min(1,t||0))}function Ce(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ei=t=>()=>t;function xr(t,e){return function(n){return t+n*e}}function Sr(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function $r(t){return(t=+t)==1?ni:function(e,n){return n-e?Sr(e,n,t):ei(isNaN(e)?n:e)}}function ni(t,e){var n=e-t;return n?xr(t,n):ei(isNaN(t)?e:t)}const fn=(function t(e){var n=$r(e);function i(o,a){var r=n((o=ze(o)).r,(a=ze(a)).r),s=n(o.g,a.g),u=n(o.b,a.b),c=ni(o.opacity,a.opacity);return function(l){return o.r=r(l),o.g=s(l),o.b=u(l),o.opacity=c(l),o+""}}return i.gamma=t,i})(1);function yt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Oe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ie=new RegExp(Oe.source,"g");function Cr(t){return function(){return t}}function Ir(t){return function(e){return t(e)+""}}function Vr(t,e){var n=Oe.lastIndex=Ie.lastIndex=0,i,o,a,r=-1,s=[],u=[];for(t=t+"",e=e+"";(i=Oe.exec(t))&&(o=Ie.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),s[r]?s[r]+=a:s[++r]=a),(i=i[0])===(o=o[0])?s[r]?s[r]+=o:s[++r]=o:(s[++r]=null,u.push({i:r,x:yt(i,o)})),n=Ie.lastIndex;return n<e.length&&(a=e.slice(n),s[r]?s[r]+=a:s[++r]=a),s.length<2?u[0]?Ir(u[0].x):Cr(e):(e=u.length,function(c){for(var l=0,d;l<e;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}var hn=180/Math.PI,Be={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ii(t,e,n,i,o,a){var r,s,u;return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),t*i<e*n&&(t=-t,e=-e,u=-u,r=-r),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*hn,skewX:Math.atan(u)*hn,scaleX:r,scaleY:s}}var Qt;function Ar(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Be:ii(e.a,e.b,e.c,e.d,e.e,e.f)}function Mr(t){return t==null||(Qt||(Qt=document.createElementNS("http://www.w3.org/2000/svg","g")),Qt.setAttribute("transform",t),!(t=Qt.transform.baseVal.consolidate()))?Be:(t=t.matrix,ii(t.a,t.b,t.c,t.d,t.e,t.f))}function oi(t,e,n,i){function o(c){return c.length?c.pop()+" ":""}function a(c,l,d,f,g,C){if(c!==d||l!==f){var S=g.push("translate(",null,e,null,n);C.push({i:S-4,x:yt(c,d)},{i:S-2,x:yt(l,f)})}else(d||f)&&g.push("translate("+d+e+f+n)}function r(c,l,d,f){c!==l?(c-l>180?l+=360:l-c>180&&(c+=360),f.push({i:d.push(o(d)+"rotate(",null,i)-2,x:yt(c,l)})):l&&d.push(o(d)+"rotate("+l+i)}function s(c,l,d,f){c!==l?f.push({i:d.push(o(d)+"skewX(",null,i)-2,x:yt(c,l)}):l&&d.push(o(d)+"skewX("+l+i)}function u(c,l,d,f,g,C){if(c!==d||l!==f){var S=g.push(o(g)+"scale(",null,",",null,")");C.push({i:S-4,x:yt(c,d)},{i:S-2,x:yt(l,f)})}else(d!==1||f!==1)&&g.push(o(g)+"scale("+d+","+f+")")}return function(c,l){var d=[],f=[];return c=t(c),l=t(l),a(c.translateX,c.translateY,l.translateX,l.translateY,d,f),r(c.rotate,l.rotate,d,f),s(c.skewX,l.skewX,d,f),u(c.scaleX,c.scaleY,l.scaleX,l.scaleY,d,f),c=l=null,function(g){for(var C=-1,S=f.length,N;++C<S;)d[(N=f[C]).i]=N.x(g);return d.join("")}}}var Nr=oi(Ar,"px, ","px)","deg)"),Er=oi(Mr,", ",")",")"),Rr=1e-12;function mn(t){return((t=Math.exp(t))+1/t)/2}function zr(t){return((t=Math.exp(t))-1/t)/2}function Or(t){return((t=Math.exp(2*t))-1)/(t+1)}const Br=(function t(e,n,i){function o(a,r){var s=a[0],u=a[1],c=a[2],l=r[0],d=r[1],f=r[2],g=l-s,C=d-u,S=g*g+C*C,N,y;if(S<Rr)y=Math.log(f/c)/e,N=function(P){return[s+P*g,u+P*C,c*Math.exp(e*P*y)]};else{var x=Math.sqrt(S),E=(f*f-c*c+i*S)/(2*c*n*x),B=(f*f-c*c-i*S)/(2*f*n*x),F=Math.log(Math.sqrt(E*E+1)-E),H=Math.log(Math.sqrt(B*B+1)-B);y=(H-F)/e,N=function(P){var tt=P*y,dt=mn(F),G=c/(n*x)*(dt*Or(e*tt+F)-zr(F));return[s+G*g,u+G*C,c*dt/mn(e*tt+F)]}}return N.duration=y*1e3*e/Math.SQRT2,N}return o.rho=function(a){var r=Math.max(.001,+a),s=r*r,u=s*s;return t(r,s,u)},o})(Math.SQRT2,2,4);var Mt=0,Ot=0,Et=0,ai=1e3,fe,Bt,he=0,Ct=0,we=0,Xt=typeof performance=="object"&&performance.now?performance:Date,ri=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function We(){return Ct||(ri(Tr),Ct=Xt.now()+we)}function Tr(){Ct=0}function me(){this._call=this._time=this._next=null}me.prototype=si.prototype={constructor:me,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?We():+n)+(e==null?0:+e),!this._next&&Bt!==this&&(Bt?Bt._next=this:fe=this,Bt=this),this._call=t,this._time=n,Te()},stop:function(){this._call&&(this._call=null,this._time=1/0,Te())}};function si(t,e,n){var i=new me;return i.restart(t,e,n),i}function Fr(){We(),++Mt;for(var t=fe,e;t;)(e=Ct-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Mt}function gn(){Ct=(he=Xt.now())+we,Mt=Ot=0;try{Fr()}finally{Mt=0,Pr(),Ct=0}}function Hr(){var t=Xt.now(),e=t-he;e>ai&&(we-=e,he=t)}function Pr(){for(var t,e=fe,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:fe=n);Bt=t,Te(i)}function Te(t){if(!Mt){Ot&&(Ot=clearTimeout(Ot));var e=t-Ct;e>24?(t<1/0&&(Ot=setTimeout(gn,t-Xt.now()-we)),Et&&(Et=clearInterval(Et))):(Et||(he=Xt.now(),Et=setInterval(Hr,ai)),Mt=1,ri(gn))}}function vn(t,e,n){var i=new me;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,n),i}var Dr=Ue("start","end","cancel","interrupt"),Lr=[],li=0,yn=1,Fe=2,ie=3,pn=4,He=5,oe=6;function be(t,e,n,i,o,a){var r=t.__transition;if(!r)t.__transition={};else if(n in r)return;Ur(t,n,{name:e,index:i,group:o,on:Dr,tween:Lr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:li})}function Ge(t,e){var n=lt(t,e);if(n.state>li)throw new Error("too late; already scheduled");return n}function ct(t,e){var n=lt(t,e);if(n.state>ie)throw new Error("too late; already running");return n}function lt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ur(t,e,n){var i=t.__transition,o;i[e]=n,n.timer=si(a,0,n.time);function a(c){n.state=yn,n.timer.restart(r,n.delay,n.time),n.delay<=c&&r(c-n.delay)}function r(c){var l,d,f,g;if(n.state!==yn)return u();for(l in i)if(g=i[l],g.name===n.name){if(g.state===ie)return vn(r);g.state===pn?(g.state=oe,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete i[l]):+l<e&&(g.state=oe,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete i[l])}if(vn(function(){n.state===ie&&(n.state=pn,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Fe,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Fe){for(n.state=ie,o=new Array(f=n.tween.length),l=0,d=-1;l<f;++l)(g=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(o[++d]=g);o.length=d+1}}function s(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=He,1),d=-1,f=o.length;++d<f;)o[d].call(t,l);n.state===He&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=oe,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function ae(t,e){var n=t.__transition,i,o,a=!0,r;if(n){e=e==null?null:e+"";for(r in n){if((i=n[r]).name!==e){a=!1;continue}o=i.state>Fe&&i.state<He,i.state=oe,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[r]}a&&delete t.__transition}}function qr(t){return this.each(function(){ae(this,t)})}function Xr(t,e){var n,i;return function(){var o=ct(this,t),a=o.tween;if(a!==n){i=n=a;for(var r=0,s=i.length;r<s;++r)if(i[r].name===e){i=i.slice(),i.splice(r,1);break}}o.tween=i}}function Yr(t,e,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=ct(this,t),r=a.tween;if(r!==i){o=(i=r).slice();for(var s={name:e,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===e){o[u]=s;break}u===c&&o.push(s)}a.tween=o}}function Wr(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=lt(this.node(),n).tween,o=0,a=i.length,r;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((e==null?Xr:Yr)(n,t,e))}function je(t,e,n){var i=t._id;return t.each(function(){var o=ct(this,i);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return lt(o,i).value[e]}}function ui(t,e){var n;return(typeof e=="number"?yt:e instanceof qt?fn:(n=qt(e))?(e=n,fn):Vr)(t,e)}function Gr(t){return function(){this.removeAttribute(t)}}function jr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kr(t,e,n){var i,o=n+"",a;return function(){var r=this.getAttribute(t);return r===o?null:r===i?a:a=e(i=r,n)}}function Jr(t,e,n){var i,o=n+"",a;return function(){var r=this.getAttributeNS(t.space,t.local);return r===o?null:r===i?a:a=e(i=r,n)}}function Zr(t,e,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttribute(t):(r=this.getAttribute(t),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s)))}}function Qr(t,e,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttributeNS(t.space,t.local):(r=this.getAttributeNS(t.space,t.local),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s)))}}function _r(t,e){var n=pe(t),i=n==="transform"?Er:ui;return this.attrTween(t,typeof e=="function"?(n.local?Qr:Zr)(n,i,je(this,"attr."+t,e)):e==null?(n.local?jr:Gr)(n):(n.local?Jr:Kr)(n,i,e))}function ts(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function es(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ns(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&es(t,a)),n}return o._value=e,o}function is(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&ts(t,a)),n}return o._value=e,o}function os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=pe(t);return this.tween(n,(i.local?ns:is)(i,e))}function as(t,e){return function(){Ge(this,t).delay=+e.apply(this,arguments)}}function rs(t,e){return e=+e,function(){Ge(this,t).delay=e}}function ss(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?as:rs)(e,t)):lt(this.node(),e).delay}function ls(t,e){return function(){ct(this,t).duration=+e.apply(this,arguments)}}function us(t,e){return e=+e,function(){ct(this,t).duration=e}}function cs(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ls:us)(e,t)):lt(this.node(),e).duration}function ds(t,e){if(typeof e!="function")throw new Error;return function(){ct(this,t).ease=e}}function fs(t){var e=this._id;return arguments.length?this.each(ds(e,t)):lt(this.node(),e).ease}function hs(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ct(this,t).ease=n}}function ms(t){if(typeof t!="function")throw new Error;return this.each(hs(this._id,t))}function gs(t){typeof t!="function"&&(t=qn(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=[],u,c=0;c<r;++c)(u=a[c])&&t.call(u,u.__data__,c,a)&&s.push(u);return new gt(i,this._parents,this._name,this._id)}function vs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),r=new Array(i),s=0;s<a;++s)for(var u=e[s],c=n[s],l=u.length,d=r[s]=new Array(l),f,g=0;g<l;++g)(f=u[g]||c[g])&&(d[g]=f);for(;s<i;++s)r[s]=e[s];return new gt(r,this._parents,this._name,this._id)}function ys(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ps(t,e,n){var i,o,a=ys(e)?Ge:ct;return function(){var r=a(this,t),s=r.on;s!==i&&(o=(i=s).copy()).on(e,n),r.on=o}}function ws(t,e){var n=this._id;return arguments.length<2?lt(this.node(),n).on.on(t):this.each(ps(n,t,e))}function bs(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ks(){return this.on("end.remove",bs(this._id))}function xs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qe(t));for(var i=this._groups,o=i.length,a=new Array(o),r=0;r<o;++r)for(var s=i[r],u=s.length,c=a[r]=new Array(u),l,d,f=0;f<u;++f)(l=s[f])&&(d=t.call(l,l.__data__,f,s))&&("__data__"in l&&(d.__data__=l.__data__),c[f]=d,be(c[f],e,n,f,c,lt(l,n)));return new gt(a,this._parents,e,n)}function Ss(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Un(t));for(var i=this._groups,o=i.length,a=[],r=[],s=0;s<o;++s)for(var u=i[s],c=u.length,l,d=0;d<c;++d)if(l=u[d]){for(var f=t.call(l,l.__data__,d,u),g,C=lt(l,n),S=0,N=f.length;S<N;++S)(g=f[S])&&be(g,e,n,S,f,C);a.push(f),r.push(l)}return new gt(a,r,e,n)}var $s=Gt.prototype.constructor;function Cs(){return new $s(this._groups,this._parents)}function Is(t,e){var n,i,o;return function(){var a=At(this,t),r=(this.style.removeProperty(t),At(this,t));return a===r?null:a===n&&r===i?o:o=e(n=a,i=r)}}function ci(t){return function(){this.style.removeProperty(t)}}function Vs(t,e,n){var i,o=n+"",a;return function(){var r=At(this,t);return r===o?null:r===i?a:a=e(i=r,n)}}function As(t,e,n){var i,o,a;return function(){var r=At(this,t),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(t),At(this,t))),r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s))}}function Ms(t,e){var n,i,o,a="style."+e,r="end."+a,s;return function(){var u=ct(this,t),c=u.on,l=u.value[a]==null?s||(s=ci(e)):void 0;(c!==n||o!==l)&&(i=(n=c).copy()).on(r,o=l),u.on=i}}function Ns(t,e,n){var i=(t+="")=="transform"?Nr:ui;return e==null?this.styleTween(t,Is(t,i)).on("end.style."+t,ci(t)):typeof e=="function"?this.styleTween(t,As(t,i,je(this,"style."+t,e))).each(Ms(this._id,t)):this.styleTween(t,Vs(t,i,e),n).on("end.style."+t,null)}function Es(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Rs(t,e,n){var i,o;function a(){var r=e.apply(this,arguments);return r!==o&&(i=(o=r)&&Es(t,r,n)),i}return a._value=e,a}function zs(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Rs(t,e,n??""))}function Os(t){return function(){this.textContent=t}}function Bs(t){return function(){var e=t(this);this.textContent=e??""}}function Ts(t){return this.tween("text",typeof t=="function"?Bs(je(this,"text",t)):Os(t==null?"":t+""))}function Fs(t){return function(e){this.textContent=t.call(this,e)}}function Hs(t){var e,n;function i(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&Fs(o)),e}return i._value=t,i}function Ps(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Hs(t))}function Ds(){for(var t=this._name,e=this._id,n=di(),i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,c=0;c<s;++c)if(u=r[c]){var l=lt(u,e);be(u,t,n,c,r,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new gt(i,this._parents,t,n)}function Ls(){var t,e,n=this,i=n._id,o=n.size();return new Promise(function(a,r){var s={value:r},u={value:function(){--o===0&&a()}};n.each(function(){var c=ct(this,i),l=c.on;l!==t&&(e=(t=l).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),c.on=e}),o===0&&a()})}var Us=0;function gt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function di(){return++Us}var ft=Gt.prototype;gt.prototype={constructor:gt,select:xs,selectAll:Ss,selectChild:ft.selectChild,selectChildren:ft.selectChildren,filter:gs,merge:vs,selection:Cs,transition:Ds,call:ft.call,nodes:ft.nodes,node:ft.node,size:ft.size,empty:ft.empty,each:ft.each,on:ws,attr:_r,attrTween:os,style:Ns,styleTween:zs,text:Ts,textTween:Ps,remove:ks,tween:Wr,delay:ss,duration:cs,ease:fs,easeVarying:ms,end:Ls,[Symbol.iterator]:ft[Symbol.iterator]};function qs(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xs={time:null,delay:0,duration:250,ease:qs};function Ys(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ws(t){var e,n;t instanceof gt?(e=t._id,t=t._name):(e=di(),(n=Xs).time=We(),t=t==null?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,c=0;c<s;++c)(u=r[c])&&be(u,t,e,c,r,n||Ys(u,e));return new gt(i,this._parents,t,e)}Gt.prototype.interrupt=qr;Gt.prototype.transition=Ws;const _t=t=>()=>t;function Gs(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function mt(t,e,n){this.k=t,this.x=e,this.y=n}mt.prototype={constructor:mt,scale:function(t){return t===1?this:new mt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new mt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ke=new mt(1,0,0);mt.prototype;function Ve(t){t.stopImmediatePropagation()}function Rt(t){t.preventDefault(),t.stopImmediatePropagation()}function js(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Ks(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function wn(){return this.__zoom||Ke}function Js(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Zs(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qs(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1];return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>a?(a+r)/2:Math.min(0,a)||Math.max(0,r))}function _s(){var t=js,e=Ks,n=Qs,i=Js,o=Zs,a=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Br,c=Ue("start","zoom","end"),l,d,f,g=500,C=150,S=0,N=10;function y(h){h.property("__zoom",wn).on("wheel.zoom",tt,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",G).filter(o).on("touchstart.zoom",ke).on("touchmove.zoom",xe).on("touchend.zoom touchcancel.zoom",Se).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(h,A,p,M){var b=h.selection?h.selection():h;b.property("__zoom",wn),h!==b?F(h,A,p,M):b.interrupt().each(function(){H(this,arguments).event(M).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},y.scaleBy=function(h,A,p,M){y.scaleTo(h,function(){var b=this.__zoom.k,V=typeof A=="function"?A.apply(this,arguments):A;return b*V},p,M)},y.scaleTo=function(h,A,p,M){y.transform(h,function(){var b=e.apply(this,arguments),V=this.__zoom,k=p==null?B(b):typeof p=="function"?p.apply(this,arguments):p,T=V.invert(k),q=typeof A=="function"?A.apply(this,arguments):A;return n(E(x(V,q),k,T),b,r)},p,M)},y.translateBy=function(h,A,p,M){y.transform(h,function(){return n(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof p=="function"?p.apply(this,arguments):p),e.apply(this,arguments),r)},null,M)},y.translateTo=function(h,A,p,M,b){y.transform(h,function(){var V=e.apply(this,arguments),k=this.__zoom,T=M==null?B(V):typeof M=="function"?M.apply(this,arguments):M;return n(Ke.translate(T[0],T[1]).scale(k.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof p=="function"?-p.apply(this,arguments):-p),V,r)},M,b)};function x(h,A){return A=Math.max(a[0],Math.min(a[1],A)),A===h.k?h:new mt(A,h.x,h.y)}function E(h,A,p){var M=A[0]-p[0]*h.k,b=A[1]-p[1]*h.k;return M===h.x&&b===h.y?h:new mt(h.k,M,b)}function B(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function F(h,A,p,M){h.on("start.zoom",function(){H(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(M).end()}).tween("zoom",function(){var b=this,V=arguments,k=H(b,V).event(M),T=e.apply(b,V),q=p==null?B(T):typeof p=="function"?p.apply(b,V):p,X=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),Y=b.__zoom,j=typeof A=="function"?A.apply(b,V):A,et=u(Y.invert(q).concat(X/Y.k),j.invert(q).concat(X/j.k));return function(nt){if(nt===1)nt=j;else{var rt=et(nt),$e=X/rt[2];nt=new mt($e,q[0]-rt[0]*$e,q[1]-rt[1]*$e)}k.zoom(null,nt)}})}function H(h,A,p){return!p&&h.__zooming||new P(h,A)}function P(h,A){this.that=h,this.args=A,this.active=0,this.sourceEvent=null,this.extent=e.apply(h,A),this.taps=0}P.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,A){return this.mouse&&h!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var A=pt(this.that).datum();c.call(h,this.that,new Gs(h,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:c}),A)}};function tt(h,...A){if(!t.apply(this,arguments))return;var p=H(this,A).event(h),M=this.__zoom,b=Math.max(a[0],Math.min(a[1],M.k*Math.pow(2,i.apply(this,arguments)))),V=vt(h);if(p.wheel)(p.mouse[0][0]!==V[0]||p.mouse[0][1]!==V[1])&&(p.mouse[1]=M.invert(p.mouse[0]=V)),clearTimeout(p.wheel);else{if(M.k===b)return;p.mouse=[V,M.invert(V)],ae(this),p.start()}Rt(h),p.wheel=setTimeout(k,C),p.zoom("mouse",n(E(x(M,b),p.mouse[0],p.mouse[1]),p.extent,r));function k(){p.wheel=null,p.end()}}function dt(h,...A){if(f||!t.apply(this,arguments))return;var p=h.currentTarget,M=H(this,A,!0).event(h),b=pt(h.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",X,!0),V=vt(h,p),k=h.clientX,T=h.clientY;lr(h.view),Ve(h),M.mouse=[V,this.__zoom.invert(V)],ae(this),M.start();function q(Y){if(Rt(Y),!M.moved){var j=Y.clientX-k,et=Y.clientY-T;M.moved=j*j+et*et>S}M.event(Y).zoom("mouse",n(E(M.that.__zoom,M.mouse[0]=vt(Y,p),M.mouse[1]),M.extent,r))}function X(Y){b.on("mousemove.zoom mouseup.zoom",null),ur(Y.view,M.moved),Rt(Y),M.event(Y).end()}}function G(h,...A){if(t.apply(this,arguments)){var p=this.__zoom,M=vt(h.changedTouches?h.changedTouches[0]:h,this),b=p.invert(M),V=p.k*(h.shiftKey?.5:2),k=n(E(x(p,V),M,b),e.apply(this,A),r);Rt(h),s>0?pt(this).transition().duration(s).call(F,k,M,h):pt(this).call(y.transform,k,M,h)}}function ke(h,...A){if(t.apply(this,arguments)){var p=h.touches,M=p.length,b=H(this,A,h.changedTouches.length===M).event(h),V,k,T,q;for(Ve(h),k=0;k<M;++k)T=p[k],q=vt(T,this),q=[q,this.__zoom.invert(q),T.identifier],b.touch0?!b.touch1&&b.touch0[2]!==q[2]&&(b.touch1=q,b.taps=0):(b.touch0=q,V=!0,b.taps=1+!!l);l&&(l=clearTimeout(l)),V&&(b.taps<2&&(d=q[0],l=setTimeout(function(){l=null},g)),ae(this),b.start())}}function xe(h,...A){if(this.__zooming){var p=H(this,A).event(h),M=h.changedTouches,b=M.length,V,k,T,q;for(Rt(h),V=0;V<b;++V)k=M[V],T=vt(k,this),p.touch0&&p.touch0[2]===k.identifier?p.touch0[0]=T:p.touch1&&p.touch1[2]===k.identifier&&(p.touch1[0]=T);if(k=p.that.__zoom,p.touch1){var X=p.touch0[0],Y=p.touch0[1],j=p.touch1[0],et=p.touch1[1],nt=(nt=j[0]-X[0])*nt+(nt=j[1]-X[1])*nt,rt=(rt=et[0]-Y[0])*rt+(rt=et[1]-Y[1])*rt;k=x(k,Math.sqrt(nt/rt)),T=[(X[0]+j[0])/2,(X[1]+j[1])/2],q=[(Y[0]+et[0])/2,(Y[1]+et[1])/2]}else if(p.touch0)T=p.touch0[0],q=p.touch0[1];else return;p.zoom("touch",n(E(k,T,q),p.extent,r))}}function Se(h,...A){if(this.__zooming){var p=H(this,A).event(h),M=h.changedTouches,b=M.length,V,k;for(Ve(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),V=0;V<b;++V)k=M[V],p.touch0&&p.touch0[2]===k.identifier?delete p.touch0:p.touch1&&p.touch1[2]===k.identifier&&delete p.touch1;if(p.touch1&&!p.touch0&&(p.touch0=p.touch1,delete p.touch1),p.touch0)p.touch0[1]=this.__zoom.invert(p.touch0[0]);else if(p.end(),p.taps===2&&(k=vt(k,this),Math.hypot(d[0]-k[0],d[1]-k[1])<N)){var T=pt(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return y.wheelDelta=function(h){return arguments.length?(i=typeof h=="function"?h:_t(+h),y):i},y.filter=function(h){return arguments.length?(t=typeof h=="function"?h:_t(!!h),y):t},y.touchable=function(h){return arguments.length?(o=typeof h=="function"?h:_t(!!h),y):o},y.extent=function(h){return arguments.length?(e=typeof h=="function"?h:_t([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),y):e},y.scaleExtent=function(h){return arguments.length?(a[0]=+h[0],a[1]=+h[1],y):[a[0],a[1]]},y.translateExtent=function(h){return arguments.length?(r[0][0]=+h[0][0],r[1][0]=+h[1][0],r[0][1]=+h[0][1],r[1][1]=+h[1][1],y):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},y.constrain=function(h){return arguments.length?(n=h,y):n},y.duration=function(h){return arguments.length?(s=+h,y):s},y.interpolate=function(h){return arguments.length?(u=h,y):u},y.on=function(){var h=c.on.apply(c,arguments);return h===c?y:h},y.clickDistance=function(h){return arguments.length?(S=(h=+h)*h,y):Math.sqrt(S)},y.tapDistance=function(h){return arguments.length?(N=+h,y):N},y}const fi=Symbol("MiniMapSlots"),tl=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],el={name:"MiniMapNode",compatConfig:{MODE:3},inheritAttrs:!1},nl=U({...el,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(t,{emit:e}){const n=t,i=Pi(fi),o=Nn(),a=Tt(()=>o.style??{});function r(d){e("click",d)}function s(d){e("dblclick",d)}function u(d){e("mouseenter",d)}function c(d){e("mousemove",d)}function l(d){e("mouseleave",d)}return(d,f)=>!d.hidden&&d.dimensions.width!==0&&d.dimensions.height!==0?(v(),R(D,{key:0},[m(i)[`node-${n.type}`]?(v(),I(Di(m(i)[`node-${n.type}`]),It(Ht({key:0},{...n,...d.$attrs})),null,16)):(v(),R("rect",Ht({key:1,id:d.id},d.$attrs,{class:["vue-flow__minimap-node",{selected:d.selected,dragging:d.dragging}],x:d.position.x,y:d.position.y,rx:d.borderRadius,ry:d.borderRadius,width:d.dimensions.width,height:d.dimensions.height,fill:d.color||a.value.background||a.value.backgroundColor,stroke:d.strokeColor,"stroke-width":d.strokeWidth,"shape-rendering":d.shapeRendering,onClick:r,onDblclick:s,onMouseenter:u,onMousemove:c,onMouseleave:l}),null,16,tl))],64)):O("",!0)}}),il=["width","height","viewBox","aria-labelledby"],ol=["id"],al=["d","fill","stroke","stroke-width"],rl={name:"MiniMap",compatConfig:{MODE:3}},sl=U({...rl,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(t,{emit:e}){const n=Fi(),i=Nn(),o=200,a=150,{id:r,edges:s,viewport:u,translateExtent:c,dimensions:l,emits:d,d3Selection:f,d3Zoom:g,getNodesInitialized:C}=Pe(),S=Ft();Li(fi,n);const N=Tt(()=>{var b;return t.width??((b=i.style)==null?void 0:b.width)??o}),y=Tt(()=>{var b;return t.height??((b=i.style)==null?void 0:b.height)??a}),x=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision",E=z(()=>typeof t.nodeColor=="string"?()=>t.nodeColor:t.nodeColor),B=z(()=>typeof t.nodeStrokeColor=="string"?()=>t.nodeStrokeColor:t.nodeStrokeColor),F=z(()=>typeof t.nodeClassName=="string"?()=>t.nodeClassName:typeof t.nodeClassName=="function"?t.nodeClassName:()=>""),H=z(()=>xi(C.value.filter(b=>!b.hidden))),P=z(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:l.value.width/u.value.zoom,height:l.value.height/u.value.zoom})),tt=z(()=>C.value&&C.value.length?Si(H.value,P.value):P.value),dt=z(()=>{const b=tt.value.width/N.value,V=tt.value.height/y.value;return Math.max(b,V)}),G=z(()=>{const b=dt.value*N.value,V=dt.value*y.value,k=t.offsetScale*dt.value;return{offset:k,x:tt.value.x-(b-tt.value.width)/2-k,y:tt.value.y-(V-tt.value.height)/2-k,width:b+k*2,height:V+k*2}}),ke=z(()=>!G.value.x||!G.value.y?"":`
1
+ import{av as Pe,aw as pi,ax as kn,ay as wi,az as xn,aA as bi,l as ki,_ as Z,aB as Sn,aC as se,aD as De,aE as $n,aF as Cn,aG as xi,aH as Si,aI as $i,aJ as Ci,aK as ee,aL as Nt,aM as Ii,aN as Vi,ao as Ai,aO as In,aP as Mi,i as Ae,aQ as Je,aR as Ni,aS as Ei,ad as Ri,I as Vn,aT as An,aq as zi,aU as Oi,aV as Bi,aW as Ze}from"#entry";import{E as U,g as z,K as R,W as v,a9 as D,af as ot,b4 as Ti,_ as O,aa as xt,Z as I,aE as Le,F as m,a1 as w,X as $,ab as Q,a0 as K,a2 as L,$ as W,ac as wt,t as Tt,G as Mn,ae as Fi,a7 as Nn,r as Ft,p as Hi,a3 as J,i as Pi,ak as It,a8 as Ht,a5 as Di,H as Li,b5 as Ui,al as zt,aT as En,aO as bt,av as Wt,az as Rn,b6 as qi,b7 as Xi,aK as zn,b8 as Yi,w as Wi,a as On,aw as Bn,aA as kt,ay as ve,ax as Gi,b as Me,aM as Tn,aC as ye,aD as Pt,ai as it,n as le,aI as ji,a$ as Ki,aH as Ji,aP as Dt,aS as Zi,aj as Fn,aW as Qi}from"./DxFGiSHR.js";import{t as Qe,a as _i,C as Hn,_ as to}from"./BJnkbWC7.js";import{V as _e}from"./DBjl4B0h.js";import{I as eo}from"./CLTVhdbR.js";import{_ as no}from"./DM6la2tX.js";function io(t,e){let n=e.length-t.length;if(n===1){let[i,...o]=e;return Qe(i,{lazy:t,lazyArgs:o})}if(n===0){let i={lazy:t,lazyArgs:e};return Object.assign(o=>Qe(o,i),i)}throw Error("Wrong number of arguments")}function oo(...t){return io(ao,t)}function ao(){let t=new Set;return e=>t.has(e)?_i:(t.add(e),{done:!1,hasNext:!0,next:e})}function ro(t,e,n){const i=Array.from({length:n},()=>[]),o=e,r=-(o*(n-1))/2,s=Array.from({length:n},(l,d)=>r+d*o),u=[];for(let l=0;l<t.length-1;l++){const d=t[l],f=t[l+1],g=f[0]-d[0],C=f[1]-d[1],S=Math.sqrt(g*g+C*C);let N=-C,y=g;S!==0&&(N/=S,y/=S),u.push({x:N,y})}function c(l,d,f,g){const C=l[0],S=l[1],N=d[0],y=d[1],x=f[0],E=f[1],B=g[0],F=g[1],H=(C-N)*(E-F)-(S-y)*(x-B);if(H===0)return null;const P=((C-x)*(E-F)-(S-E)*(x-B))/H;return[C+P*(N-C),S+P*(y-S)]}for(let l=0;l<n;l++)for(let d=0;d<t.length;d++){const f=t[d];let g=0,C=0;if(d===0)g=u[0].x*s[l],C=u[0].y*s[l];else if(d===t.length-1)g=u[u.length-1].x*s[l],C=u[u.length-1].y*s[l];else{const S=u[d-1],N=u[d],y=t[d-1],x=t[d+1],E=[y[0]+S.x*s[l],y[1]+S.y*s[l]],B=[f[0]+S.x*s[l],f[1]+S.y*s[l]],F=[f[0]+N.x*s[l],f[1]+N.y*s[l]],H=[x[0]+N.x*s[l],x[1]+N.y*s[l]],P=c(E,B,F,H);P?(g=P[0]-f[0],C=P[1]-f[1]):(g=(S.x+N.x)/2*s[l],C=(S.y+N.y)/2*s[l])}i[l].push(`${f[0]+g},${f[1]+C}`)}return i}const so=["points","stroke"],lo=["points"],Kt=3,uo=U({__name:"CustomEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{},inputResolverOutputs:{},components:{},entities:{}},setup(t){Ti(x=>({c5384110:Kt}));const e=Pe(),{inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s,inputNodeType:u}=pi(e,{source:t.source,target:t.target,sourceHandle:t.sourceHandleId,targetHandle:t.targetHandleId}),c=z(()=>{if(u==="outputs"){const E=t.components[n.type].outputs[s];return{all:E?[E.type]:[]}}if(i&&n){const E=t.components[n.type].inputs[s];return{all:E?[E.type]:[]}}if(a&&n&&s)return{all:(kn(t.inputResolverOutputs,n.id)[s]??[]).map(E=>E.type)};if(a&&n)return{all:xn(t.inputResolverOutputs,n.id).map(x=>x.type),visible:wi(t.inputResolverOutputs,n.id).map(x=>x.type)};if(i&&o){const E=t.components[i.type].outputs[r];return{all:E?[E.type]:[]}}if(a&&o)return{all:bi(t.inputResolverOutputs,a.id).flat().map(x=>x.type)};throw ki.error({msg:"unexpected connection in CustomEdge",inputInstance:n,outputInstance:i,inputHub:o,outputHub:a,outputKey:r,inputKey:s}),new Error("Invalid connection")}),l=z(()=>oo(c.value.all).map(x=>t.entities[x])),d=z(()=>a?c.value.visible?c.value.visible.length===0:c.value.all.length===0:!1),f=z(()=>d.value?1:l.value.length),g=x=>d.value?"#9E9E9E":l.value[x%l.value.length].meta.color??"#607D8B",C=x=>d.value?!0:c.value.visible?c.value.visible.includes(l.value[x].type):!0,S=(x,E)=>x[0]===E[0]&&x[1]===E[1],N=z(()=>{if(!t.data.points)return[];const x=[t.sourceX,t.sourceY],E=[t.targetX,t.targetY],B=[...t.data.points];return(!B[0]||!S(B[0],x))&&B.unshift(x),(!B[B.length-1]||!S(B[B.length-1],E))&&B.push(E),ro(B,Kt,f.value)}),y=x=>{const B=1/f.value;return`-${x*B}s`};return(x,E)=>(v(),R(D,null,[(v(!0),R(D,null,ot(N.value,(B,F)=>(v(),R(D,{key:`static-${F}`},[C(F)?(v(),R("polyline",{key:0,points:B.join(" "),stroke:g(F),fill:"none","stroke-width":Kt,style:{opacity:"0.8"}},null,8,so)):O("",!0)],64))),128)),(v(!0),R(D,null,ot(N.value,(B,F)=>(v(),R(D,{key:`highlight-${F}`},[C(F)?(v(),R("polyline",{key:0,points:B.join(" "),stroke:"white",fill:"none","stroke-width":Kt,class:"highlight-polyline animated-highlight",style:xt({animationDelay:y(F)})},null,12,lo)):O("",!0)],64))),128))],64))}}),co=Z(uo,[["__scopeId","data-v-4bf748bc"]]);function fo(t,e){const n={borderRadius:"4px",overflow:"visible"};switch(e){case"blueprint-valid":return{...n,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{...n,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 t?{...n,outline:"2px solid #2196F3",boxShadow:"0 0 8px rgba(33, 150, 243, 0.4)"}:n}const ho=U({__name:"HubCard",props:{selected:{type:Boolean},blueprintStatus:{}},setup(t){return(e,n)=>(v(),I(Le,{variant:"flat",style:xt(m(fo)(t.selected,t.blueprintStatus)),color:"#2d2d2d"},{default:w(()=>[$(K,{class:"ma-2",size:74},{default:w(()=>[...n[0]||(n[0]=[L("mdi-router",-1)])]),_:1}),Q(e.$slots,"default")]),_:3},8,["style"]))}}),mo=U({__name:"HubNodeHandle",props:{side:{},handleColor:{},isValidConnection:{type:Function}},setup(t){return(e,n)=>(v(),R(D,null,[$(m(Sn),{id:"",type:t.side==="left"?"target":"source",position:t.side==="left"?m(se).Left:m(se).Right,class:wt(["handle",[t.side==="left"?"left-handle":"right-handle"]]),"is-valid-connection":t.isValidConnection},null,8,["type","position","class","is-valid-connection"]),W("div",{class:wt(["handle-dot",[t.side==="left"?"handle-dot-left":"handle-dot-right"]]),style:xt({backgroundColor:t.handleColor})},null,6)],64))}}),tn=Z(mo,[["__scopeId","data-v-1aff1180"]]),go={class:"handles"},vo=U({__name:"HubNode",props:{hub:{},isValidConnection:{type:Function}},emits:["contextmenu"],setup(t,{emit:e}){const n=e,{vueFlowStore:i,selection:o}=De(),a=$n(),r=z(()=>Cn(a.node,i));return(s,u)=>(v(),I(ho,{class:"hub-card",selected:m(o).isNodeSelected(m(a).node),"blueprint-status":m(r),onContextmenu:u[0]||(u[0]=c=>n("contextmenu",c))},{default:w(()=>[Q(s.$slots,"default",{},void 0,!0),W("div",go,[$(tn,{"handle-color":"#3F51B5",side:"left","is-valid-connection":t.isValidConnection},null,8,["is-valid-connection"]),$(tn,{"handle-color":"#3F51B5",side:"right","is-valid-connection":t.isValidConnection},null,8,["is-valid-connection"])])]),_:3},8,["selected","blueprint-status"]))}}),eu=Z(vo,[["__scopeId","data-v-79b30d7c"]]),yo=U({__name:"SelectionRectangle",props:{selectionMode:{default:"add"},selectionArea:{}},setup(t){const e=z(()=>{if(!t.selectionArea)return;const n={left:t.selectionArea.x+"px",top:t.selectionArea.y+"px",width:t.selectionArea.width+"px",height:t.selectionArea.height+"px"};return t.selectionMode==="add"?{...n,border:"2px dashed #2196F3",background:"rgba(33, 150, 243, 0.1)"}:{...n,border:"2px dashed #F44336",background:"rgba(244, 67, 54, 0.1)"}});return(n,i)=>m(e)?(v(),R("div",{key:0,class:"selection-rectangle",style:xt(m(e))},null,4)):O("",!0)}}),po=Z(yo,[["__scopeId","data-v-6118cbbb"]]);var ht=(t=>(t.Lines="lines",t.Dots="dots",t))(ht||{});const Pn=function({dimensions:t,size:e,color:n}){return Mn("path",{stroke:n,"stroke-width":e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})},Dn=function({radius:t,color:e}){return Mn("circle",{cx:t,cy:t,r:t,fill:e})};ht.Lines+"",ht.Dots+"";const wo={[ht.Dots]:"#81818a",[ht.Lines]:"#eee"},bo=["id","x","y","width","height","patternTransform"],ko={key:2,height:"100",width:"100"},xo=["fill"],So=["x","y","fill"],$o={name:"Background",compatConfig:{MODE:3}},Co=U({...$o,props:{id:{},variant:{default:()=>ht.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(t){const{id:e,viewport:n}=Pe(),i=z(()=>{const r=n.value.zoom,[s,u]=Array.isArray(t.gap)?t.gap:[t.gap,t.gap],c=[s*r||1,u*r||1],l=t.size*r,[d,f]=Array.isArray(t.offset)?t.offset:[t.offset,t.offset],g=[d*r||1+c[0]/2,f*r||1+c[1]/2];return{scaledGap:c,offset:g,size:l}}),o=Tt(()=>`pattern-${e}${t.id?`-${t.id}`:""}`),a=Tt(()=>t.color||t.patternColor||wo[t.variant||ht.Dots]);return(r,s)=>(v(),R("svg",{class:"vue-flow__background vue-flow__container",style:xt({height:`${r.height>100?100:r.height}%`,width:`${r.width>100?100:r.width}%`})},[Q(r.$slots,"pattern-container",{id:o.value},()=>[W("pattern",{id:o.value,x:m(n).x%i.value.scaledGap[0],y:m(n).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[Q(r.$slots,"pattern",{},()=>[r.variant===m(ht).Lines?(v(),I(m(Pn),{key:0,size:r.lineWidth,color:a.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):r.variant===m(ht).Dots?(v(),I(m(Dn),{key:1,color:a.value,radius:i.value.size/2},null,8,["color","radius"])):O("",!0),r.bgColor?(v(),R("svg",ko,[W("rect",{width:"100%",height:"100%",fill:r.bgColor},null,8,xo)])):O("",!0)])],8,bo)]),W("rect",{x:r.x,y:r.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,So),Q(r.$slots,"default",{id:o.value})],4))}});var Io={value:()=>{}};function Ue(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ne(n)}function ne(t){this._=t}function Vo(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ne.prototype=Ue.prototype={constructor:ne,on:function(t,e){var n=this._,i=Vo(t+"",n),o,a=-1,r=i.length;if(arguments.length<2){for(;++a<r;)if((o=(t=i[a]).type)&&(o=Ao(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<r;)if(o=(t=i[a]).type)n[o]=en(n[o],t.name,e);else if(e==null)for(o in n)n[o]=en(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ne(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,a;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],i=0,o=a.length;i<o;++i)a[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,n)}};function Ao(t,e){for(var n=0,i=t.length,o;n<i;++n)if((o=t[n]).name===e)return o.value}function en(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=Io,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Ne="http://www.w3.org/1999/xhtml";const nn={svg:"http://www.w3.org/2000/svg",xhtml:Ne,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pe(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),nn.hasOwnProperty(e)?{space:nn[e],local:t}:t}function Mo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ne&&e.documentElement.namespaceURI===Ne?e.createElement(t):e.createElementNS(n,t)}}function No(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ln(t){var e=pe(t);return(e.local?No:Mo)(e)}function Eo(){}function qe(t){return t==null?Eo:function(){return this.querySelector(t)}}function Ro(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=new Array(r),u,c,l=0;l<r;++l)(u=a[l])&&(c=t.call(u,u.__data__,l,a))&&("__data__"in u&&(c.__data__=u.__data__),s[l]=c);return new at(i,this._parents)}function zo(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Oo(){return[]}function Un(t){return t==null?Oo:function(){return this.querySelectorAll(t)}}function Bo(t){return function(){return zo(t.apply(this,arguments))}}function To(t){typeof t=="function"?t=Bo(t):t=Un(t);for(var e=this._groups,n=e.length,i=[],o=[],a=0;a<n;++a)for(var r=e[a],s=r.length,u,c=0;c<s;++c)(u=r[c])&&(i.push(t.call(u,u.__data__,c,r)),o.push(u));return new at(i,o)}function qn(t){return function(){return this.matches(t)}}function Xn(t){return function(e){return e.matches(t)}}var Fo=Array.prototype.find;function Ho(t){return function(){return Fo.call(this.children,t)}}function Po(){return this.firstElementChild}function Do(t){return this.select(t==null?Po:Ho(typeof t=="function"?t:Xn(t)))}var Lo=Array.prototype.filter;function Uo(){return Array.from(this.children)}function qo(t){return function(){return Lo.call(this.children,t)}}function Xo(t){return this.selectAll(t==null?Uo:qo(typeof t=="function"?t:Xn(t)))}function Yo(t){typeof t!="function"&&(t=qn(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=[],u,c=0;c<r;++c)(u=a[c])&&t.call(u,u.__data__,c,a)&&s.push(u);return new at(i,this._parents)}function Yn(t){return new Array(t.length)}function Wo(){return new at(this._enter||this._groups.map(Yn),this._parents)}function ue(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ue.prototype={constructor:ue,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Go(t){return function(){return t}}function jo(t,e,n,i,o,a){for(var r=0,s,u=e.length,c=a.length;r<c;++r)(s=e[r])?(s.__data__=a[r],i[r]=s):n[r]=new ue(t,a[r]);for(;r<u;++r)(s=e[r])&&(o[r]=s)}function Ko(t,e,n,i,o,a,r){var s,u,c=new Map,l=e.length,d=a.length,f=new Array(l),g;for(s=0;s<l;++s)(u=e[s])&&(f[s]=g=r.call(u,u.__data__,s,e)+"",c.has(g)?o[s]=u:c.set(g,u));for(s=0;s<d;++s)g=r.call(t,a[s],s,a)+"",(u=c.get(g))?(i[s]=u,u.__data__=a[s],c.delete(g)):n[s]=new ue(t,a[s]);for(s=0;s<l;++s)(u=e[s])&&c.get(f[s])===u&&(o[s]=u)}function Jo(t){return t.__data__}function Zo(t,e){if(!arguments.length)return Array.from(this,Jo);var n=e?Ko:jo,i=this._parents,o=this._groups;typeof t!="function"&&(t=Go(t));for(var a=o.length,r=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var l=i[c],d=o[c],f=d.length,g=Qo(t.call(l,l&&l.__data__,c,i)),C=g.length,S=s[c]=new Array(C),N=r[c]=new Array(C),y=u[c]=new Array(f);n(l,d,S,N,y,g,e);for(var x=0,E=0,B,F;x<C;++x)if(B=S[x]){for(x>=E&&(E=x+1);!(F=N[E])&&++E<C;);B._next=F||null}}return r=new at(r,i),r._enter=s,r._exit=u,r}function Qo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function _o(){return new at(this._exit||this._groups.map(Yn),this._parents)}function ta(t,e,n){var i=this.enter(),o=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?a.remove():n(a),i&&o?i.merge(o).order():o}function ea(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,a=i.length,r=Math.min(o,a),s=new Array(o),u=0;u<r;++u)for(var c=n[u],l=i[u],d=c.length,f=s[u]=new Array(d),g,C=0;C<d;++C)(g=c[C]||l[C])&&(f[C]=g);for(;u<o;++u)s[u]=n[u];return new at(s,this._parents)}function na(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],o=i.length-1,a=i[o],r;--o>=0;)(r=i[o])&&(a&&r.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(r,a),a=r);return this}function ia(t){t||(t=oa);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a){for(var r=n[a],s=r.length,u=o[a]=new Array(s),c,l=0;l<s;++l)(c=r[l])&&(u[l]=c);u.sort(e)}return new at(o,this._parents).order()}function oa(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function aa(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ra(){return Array.from(this)}function sa(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var r=i[o];if(r)return r}return null}function la(){let t=0;for(const e of this)++t;return t}function ua(){return!this.node()}function ca(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o=e[n],a=0,r=o.length,s;a<r;++a)(s=o[a])&&t.call(s,s.__data__,a,o);return this}function da(t){return function(){this.removeAttribute(t)}}function fa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ha(t,e){return function(){this.setAttribute(t,e)}}function ma(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ga(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function va(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ya(t,e){var n=pe(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?fa:da:typeof e=="function"?n.local?va:ga:n.local?ma:ha)(n,e))}function Wn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pa(t){return function(){this.style.removeProperty(t)}}function wa(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ba(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function ka(t,e,n){return arguments.length>1?this.each((e==null?pa:typeof e=="function"?ba:wa)(t,e,n??"")):At(this.node(),t)}function At(t,e){return t.style.getPropertyValue(e)||Wn(t).getComputedStyle(t,null).getPropertyValue(e)}function xa(t){return function(){delete this[t]}}function Sa(t,e){return function(){this[t]=e}}function $a(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ca(t,e){return arguments.length>1?this.each((e==null?xa:typeof e=="function"?$a:Sa)(t,e)):this.node()[t]}function Gn(t){return t.trim().split(/^|\s+/)}function Xe(t){return t.classList||new jn(t)}function jn(t){this._node=t,this._names=Gn(t.getAttribute("class")||"")}jn.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Kn(t,e){for(var n=Xe(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function Jn(t,e){for(var n=Xe(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function Ia(t){return function(){Kn(this,t)}}function Va(t){return function(){Jn(this,t)}}function Aa(t,e){return function(){(e.apply(this,arguments)?Kn:Jn)(this,t)}}function Ma(t,e){var n=Gn(t+"");if(arguments.length<2){for(var i=Xe(this.node()),o=-1,a=n.length;++o<a;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?Aa:e?Ia:Va)(n,e))}function Na(){this.textContent=""}function Ea(t){return function(){this.textContent=t}}function Ra(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function za(t){return arguments.length?this.each(t==null?Na:(typeof t=="function"?Ra:Ea)(t)):this.node().textContent}function Oa(){this.innerHTML=""}function Ba(t){return function(){this.innerHTML=t}}function Ta(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Fa(t){return arguments.length?this.each(t==null?Oa:(typeof t=="function"?Ta:Ba)(t)):this.node().innerHTML}function Ha(){this.nextSibling&&this.parentNode.appendChild(this)}function Pa(){return this.each(Ha)}function Da(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function La(){return this.each(Da)}function Ua(t){var e=typeof t=="function"?t:Ln(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function qa(){return null}function Xa(t,e){var n=typeof t=="function"?t:Ln(t),i=e==null?qa:typeof e=="function"?e:qe(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Ya(){var t=this.parentNode;t&&t.removeChild(this)}function Wa(){return this.each(Ya)}function Ga(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ja(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ka(t){return this.select(t?ja:Ga)}function Ja(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Za(t){return function(e){t.call(this,e,this.__data__)}}function Qa(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function _a(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,o=e.length,a;n<o;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++i]=a;++i?e.length=i:delete this.__on}}}function tr(t,e,n){return function(){var i=this.__on,o,a=Za(e);if(i){for(var r=0,s=i.length;r<s;++r)if((o=i[r]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=e;return}}this.addEventListener(t.type,a,n),o={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(o):this.__on=[o]}}function er(t,e,n){var i=Qa(t+""),o,a=i.length,r;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,l;u<c;++u)for(o=0,l=s[u];o<a;++o)if((r=i[o]).type===l.type&&r.name===l.name)return l.value}return}for(s=e?tr:_a,o=0;o<a;++o)this.each(s(i[o],e,n));return this}function Zn(t,e,n){var i=Wn(t),o=i.CustomEvent;typeof o=="function"?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function nr(t,e){return function(){return Zn(this,t,e)}}function ir(t,e){return function(){return Zn(this,t,e.apply(this,arguments))}}function or(t,e){return this.each((typeof e=="function"?ir:nr)(t,e))}function*ar(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,a=i.length,r;o<a;++o)(r=i[o])&&(yield r)}var Qn=[null];function at(t,e){this._groups=t,this._parents=e}function Gt(){return new at([[document.documentElement]],Qn)}function rr(){return this}at.prototype=Gt.prototype={constructor:at,select:Ro,selectAll:To,selectChild:Do,selectChildren:Xo,filter:Yo,data:Zo,enter:Wo,exit:_o,join:ta,merge:ea,selection:rr,order:na,sort:ia,call:aa,nodes:ra,node:sa,size:la,empty:ua,each:ca,attr:ya,style:ka,property:Ca,classed:Ma,text:za,html:Fa,raise:Pa,lower:La,append:Ua,insert:Xa,remove:Wa,clone:Ka,datum:Ja,on:er,dispatch:or,[Symbol.iterator]:ar};function pt(t){return typeof t=="string"?new at([[document.querySelector(t)]],[document.documentElement]):new at([[t]],Qn)}function sr(t){let e;for(;e=t.sourceEvent;)t=e;return t}function vt(t,e){if(t=sr(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}const Ee={capture:!0,passive:!1};function Re(t){t.preventDefault(),t.stopImmediatePropagation()}function lr(t){var e=t.document.documentElement,n=pt(t).on("dragstart.drag",Re,Ee);"onselectstart"in e?n.on("selectstart.drag",Re,Ee):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ur(t,e){var n=t.document.documentElement,i=pt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Re,Ee),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Ye(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function _n(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function jt(){}var Lt=.7,ce=1/Lt,Vt="\\s*([+-]?\\d+)\\s*",Ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cr=/^#([0-9a-f]{3,8})$/,dr=new RegExp(`^rgb\\(${Vt},${Vt},${Vt}\\)$`),fr=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),hr=new RegExp(`^rgba\\(${Vt},${Vt},${Vt},${Ut}\\)$`),mr=new RegExp(`^rgba\\(${ut},${ut},${ut},${Ut}\\)$`),gr=new RegExp(`^hsl\\(${Ut},${ut},${ut}\\)$`),vr=new RegExp(`^hsla\\(${Ut},${ut},${ut},${Ut}\\)$`),on={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ye(jt,qt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:an,formatHex:an,formatHex8:yr,formatHsl:pr,formatRgb:rn,toString:rn});function an(){return this.rgb().formatHex()}function yr(){return this.rgb().formatHex8()}function pr(){return ti(this).formatHsl()}function rn(){return this.rgb().formatRgb()}function qt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=cr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?sn(e):n===3?new _(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Jt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Jt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=dr.exec(t))?new _(e[1],e[2],e[3],1):(e=fr.exec(t))?new _(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=hr.exec(t))?Jt(e[1],e[2],e[3],e[4]):(e=mr.exec(t))?Jt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=gr.exec(t))?cn(e[1],e[2]/100,e[3]/100,1):(e=vr.exec(t))?cn(e[1],e[2]/100,e[3]/100,e[4]):on.hasOwnProperty(t)?sn(on[t]):t==="transparent"?new _(NaN,NaN,NaN,0):null}function sn(t){return new _(t>>16&255,t>>8&255,t&255,1)}function Jt(t,e,n,i){return i<=0&&(t=e=n=NaN),new _(t,e,n,i)}function wr(t){return t instanceof jt||(t=qt(t)),t?(t=t.rgb(),new _(t.r,t.g,t.b,t.opacity)):new _}function ze(t,e,n,i){return arguments.length===1?wr(t):new _(t,e,n,i??1)}function _(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Ye(_,ze,_n(jt,{brighter(t){return t=t==null?ce:Math.pow(ce,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Lt:Math.pow(Lt,t),new _(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _($t(this.r),$t(this.g),$t(this.b),de(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ln,formatHex:ln,formatHex8:br,formatRgb:un,toString:un}));function ln(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function br(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function un(){const t=de(this.opacity);return`${t===1?"rgb(":"rgba("}${$t(this.r)}, ${$t(this.g)}, ${$t(this.b)}${t===1?")":`, ${t})`}`}function de(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function $t(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function St(t){return t=$t(t),(t<16?"0":"")+t.toString(16)}function cn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,i)}function ti(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof jt||(t=qt(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),a=Math.max(e,n,i),r=NaN,s=a-o,u=(a+o)/2;return s?(e===a?r=(n-i)/s+(n<i)*6:n===a?r=(i-e)/s+2:r=(e-n)/s+4,s/=u<.5?a+o:2-a-o,r*=60):s=u>0&&u<1?0:r,new st(r,s,u,t.opacity)}function kr(t,e,n,i){return arguments.length===1?ti(t):new st(t,e,n,i??1)}function st(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Ye(st,kr,_n(jt,{brighter(t){return t=t==null?ce:Math.pow(ce,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Lt:Math.pow(Lt,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i;return new _(Ce(t>=240?t-240:t+120,o,i),Ce(t,o,i),Ce(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new st(dn(this.h),Zt(this.s),Zt(this.l),de(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=de(this.opacity);return`${t===1?"hsl(":"hsla("}${dn(this.h)}, ${Zt(this.s)*100}%, ${Zt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function dn(t){return t=(t||0)%360,t<0?t+360:t}function Zt(t){return Math.max(0,Math.min(1,t||0))}function Ce(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ei=t=>()=>t;function xr(t,e){return function(n){return t+n*e}}function Sr(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function $r(t){return(t=+t)==1?ni:function(e,n){return n-e?Sr(e,n,t):ei(isNaN(e)?n:e)}}function ni(t,e){var n=e-t;return n?xr(t,n):ei(isNaN(t)?e:t)}const fn=(function t(e){var n=$r(e);function i(o,a){var r=n((o=ze(o)).r,(a=ze(a)).r),s=n(o.g,a.g),u=n(o.b,a.b),c=ni(o.opacity,a.opacity);return function(l){return o.r=r(l),o.g=s(l),o.b=u(l),o.opacity=c(l),o+""}}return i.gamma=t,i})(1);function yt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Oe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ie=new RegExp(Oe.source,"g");function Cr(t){return function(){return t}}function Ir(t){return function(e){return t(e)+""}}function Vr(t,e){var n=Oe.lastIndex=Ie.lastIndex=0,i,o,a,r=-1,s=[],u=[];for(t=t+"",e=e+"";(i=Oe.exec(t))&&(o=Ie.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),s[r]?s[r]+=a:s[++r]=a),(i=i[0])===(o=o[0])?s[r]?s[r]+=o:s[++r]=o:(s[++r]=null,u.push({i:r,x:yt(i,o)})),n=Ie.lastIndex;return n<e.length&&(a=e.slice(n),s[r]?s[r]+=a:s[++r]=a),s.length<2?u[0]?Ir(u[0].x):Cr(e):(e=u.length,function(c){for(var l=0,d;l<e;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}var hn=180/Math.PI,Be={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ii(t,e,n,i,o,a){var r,s,u;return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),t*i<e*n&&(t=-t,e=-e,u=-u,r=-r),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*hn,skewX:Math.atan(u)*hn,scaleX:r,scaleY:s}}var Qt;function Ar(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Be:ii(e.a,e.b,e.c,e.d,e.e,e.f)}function Mr(t){return t==null||(Qt||(Qt=document.createElementNS("http://www.w3.org/2000/svg","g")),Qt.setAttribute("transform",t),!(t=Qt.transform.baseVal.consolidate()))?Be:(t=t.matrix,ii(t.a,t.b,t.c,t.d,t.e,t.f))}function oi(t,e,n,i){function o(c){return c.length?c.pop()+" ":""}function a(c,l,d,f,g,C){if(c!==d||l!==f){var S=g.push("translate(",null,e,null,n);C.push({i:S-4,x:yt(c,d)},{i:S-2,x:yt(l,f)})}else(d||f)&&g.push("translate("+d+e+f+n)}function r(c,l,d,f){c!==l?(c-l>180?l+=360:l-c>180&&(c+=360),f.push({i:d.push(o(d)+"rotate(",null,i)-2,x:yt(c,l)})):l&&d.push(o(d)+"rotate("+l+i)}function s(c,l,d,f){c!==l?f.push({i:d.push(o(d)+"skewX(",null,i)-2,x:yt(c,l)}):l&&d.push(o(d)+"skewX("+l+i)}function u(c,l,d,f,g,C){if(c!==d||l!==f){var S=g.push(o(g)+"scale(",null,",",null,")");C.push({i:S-4,x:yt(c,d)},{i:S-2,x:yt(l,f)})}else(d!==1||f!==1)&&g.push(o(g)+"scale("+d+","+f+")")}return function(c,l){var d=[],f=[];return c=t(c),l=t(l),a(c.translateX,c.translateY,l.translateX,l.translateY,d,f),r(c.rotate,l.rotate,d,f),s(c.skewX,l.skewX,d,f),u(c.scaleX,c.scaleY,l.scaleX,l.scaleY,d,f),c=l=null,function(g){for(var C=-1,S=f.length,N;++C<S;)d[(N=f[C]).i]=N.x(g);return d.join("")}}}var Nr=oi(Ar,"px, ","px)","deg)"),Er=oi(Mr,", ",")",")"),Rr=1e-12;function mn(t){return((t=Math.exp(t))+1/t)/2}function zr(t){return((t=Math.exp(t))-1/t)/2}function Or(t){return((t=Math.exp(2*t))-1)/(t+1)}const Br=(function t(e,n,i){function o(a,r){var s=a[0],u=a[1],c=a[2],l=r[0],d=r[1],f=r[2],g=l-s,C=d-u,S=g*g+C*C,N,y;if(S<Rr)y=Math.log(f/c)/e,N=function(P){return[s+P*g,u+P*C,c*Math.exp(e*P*y)]};else{var x=Math.sqrt(S),E=(f*f-c*c+i*S)/(2*c*n*x),B=(f*f-c*c-i*S)/(2*f*n*x),F=Math.log(Math.sqrt(E*E+1)-E),H=Math.log(Math.sqrt(B*B+1)-B);y=(H-F)/e,N=function(P){var tt=P*y,dt=mn(F),G=c/(n*x)*(dt*Or(e*tt+F)-zr(F));return[s+G*g,u+G*C,c*dt/mn(e*tt+F)]}}return N.duration=y*1e3*e/Math.SQRT2,N}return o.rho=function(a){var r=Math.max(.001,+a),s=r*r,u=s*s;return t(r,s,u)},o})(Math.SQRT2,2,4);var Mt=0,Ot=0,Et=0,ai=1e3,fe,Bt,he=0,Ct=0,we=0,Xt=typeof performance=="object"&&performance.now?performance:Date,ri=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function We(){return Ct||(ri(Tr),Ct=Xt.now()+we)}function Tr(){Ct=0}function me(){this._call=this._time=this._next=null}me.prototype=si.prototype={constructor:me,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?We():+n)+(e==null?0:+e),!this._next&&Bt!==this&&(Bt?Bt._next=this:fe=this,Bt=this),this._call=t,this._time=n,Te()},stop:function(){this._call&&(this._call=null,this._time=1/0,Te())}};function si(t,e,n){var i=new me;return i.restart(t,e,n),i}function Fr(){We(),++Mt;for(var t=fe,e;t;)(e=Ct-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Mt}function gn(){Ct=(he=Xt.now())+we,Mt=Ot=0;try{Fr()}finally{Mt=0,Pr(),Ct=0}}function Hr(){var t=Xt.now(),e=t-he;e>ai&&(we-=e,he=t)}function Pr(){for(var t,e=fe,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:fe=n);Bt=t,Te(i)}function Te(t){if(!Mt){Ot&&(Ot=clearTimeout(Ot));var e=t-Ct;e>24?(t<1/0&&(Ot=setTimeout(gn,t-Xt.now()-we)),Et&&(Et=clearInterval(Et))):(Et||(he=Xt.now(),Et=setInterval(Hr,ai)),Mt=1,ri(gn))}}function vn(t,e,n){var i=new me;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,n),i}var Dr=Ue("start","end","cancel","interrupt"),Lr=[],li=0,yn=1,Fe=2,ie=3,pn=4,He=5,oe=6;function be(t,e,n,i,o,a){var r=t.__transition;if(!r)t.__transition={};else if(n in r)return;Ur(t,n,{name:e,index:i,group:o,on:Dr,tween:Lr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:li})}function Ge(t,e){var n=lt(t,e);if(n.state>li)throw new Error("too late; already scheduled");return n}function ct(t,e){var n=lt(t,e);if(n.state>ie)throw new Error("too late; already running");return n}function lt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ur(t,e,n){var i=t.__transition,o;i[e]=n,n.timer=si(a,0,n.time);function a(c){n.state=yn,n.timer.restart(r,n.delay,n.time),n.delay<=c&&r(c-n.delay)}function r(c){var l,d,f,g;if(n.state!==yn)return u();for(l in i)if(g=i[l],g.name===n.name){if(g.state===ie)return vn(r);g.state===pn?(g.state=oe,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete i[l]):+l<e&&(g.state=oe,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete i[l])}if(vn(function(){n.state===ie&&(n.state=pn,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Fe,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Fe){for(n.state=ie,o=new Array(f=n.tween.length),l=0,d=-1;l<f;++l)(g=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(o[++d]=g);o.length=d+1}}function s(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=He,1),d=-1,f=o.length;++d<f;)o[d].call(t,l);n.state===He&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=oe,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function ae(t,e){var n=t.__transition,i,o,a=!0,r;if(n){e=e==null?null:e+"";for(r in n){if((i=n[r]).name!==e){a=!1;continue}o=i.state>Fe&&i.state<He,i.state=oe,i.timer.stop(),i.on.call(o?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[r]}a&&delete t.__transition}}function qr(t){return this.each(function(){ae(this,t)})}function Xr(t,e){var n,i;return function(){var o=ct(this,t),a=o.tween;if(a!==n){i=n=a;for(var r=0,s=i.length;r<s;++r)if(i[r].name===e){i=i.slice(),i.splice(r,1);break}}o.tween=i}}function Yr(t,e,n){var i,o;if(typeof n!="function")throw new Error;return function(){var a=ct(this,t),r=a.tween;if(r!==i){o=(i=r).slice();for(var s={name:e,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===e){o[u]=s;break}u===c&&o.push(s)}a.tween=o}}function Wr(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=lt(this.node(),n).tween,o=0,a=i.length,r;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((e==null?Xr:Yr)(n,t,e))}function je(t,e,n){var i=t._id;return t.each(function(){var o=ct(this,i);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return lt(o,i).value[e]}}function ui(t,e){var n;return(typeof e=="number"?yt:e instanceof qt?fn:(n=qt(e))?(e=n,fn):Vr)(t,e)}function Gr(t){return function(){this.removeAttribute(t)}}function jr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kr(t,e,n){var i,o=n+"",a;return function(){var r=this.getAttribute(t);return r===o?null:r===i?a:a=e(i=r,n)}}function Jr(t,e,n){var i,o=n+"",a;return function(){var r=this.getAttributeNS(t.space,t.local);return r===o?null:r===i?a:a=e(i=r,n)}}function Zr(t,e,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttribute(t):(r=this.getAttribute(t),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s)))}}function Qr(t,e,n){var i,o,a;return function(){var r,s=n(this),u;return s==null?void this.removeAttributeNS(t.space,t.local):(r=this.getAttributeNS(t.space,t.local),u=s+"",r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s)))}}function _r(t,e){var n=pe(t),i=n==="transform"?Er:ui;return this.attrTween(t,typeof e=="function"?(n.local?Qr:Zr)(n,i,je(this,"attr."+t,e)):e==null?(n.local?jr:Gr)(n):(n.local?Jr:Kr)(n,i,e))}function ts(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function es(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ns(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&es(t,a)),n}return o._value=e,o}function is(t,e){var n,i;function o(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&ts(t,a)),n}return o._value=e,o}function os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=pe(t);return this.tween(n,(i.local?ns:is)(i,e))}function as(t,e){return function(){Ge(this,t).delay=+e.apply(this,arguments)}}function rs(t,e){return e=+e,function(){Ge(this,t).delay=e}}function ss(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?as:rs)(e,t)):lt(this.node(),e).delay}function ls(t,e){return function(){ct(this,t).duration=+e.apply(this,arguments)}}function us(t,e){return e=+e,function(){ct(this,t).duration=e}}function cs(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ls:us)(e,t)):lt(this.node(),e).duration}function ds(t,e){if(typeof e!="function")throw new Error;return function(){ct(this,t).ease=e}}function fs(t){var e=this._id;return arguments.length?this.each(ds(e,t)):lt(this.node(),e).ease}function hs(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ct(this,t).ease=n}}function ms(t){if(typeof t!="function")throw new Error;return this.each(hs(this._id,t))}function gs(t){typeof t!="function"&&(t=qn(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var a=e[o],r=a.length,s=i[o]=[],u,c=0;c<r;++c)(u=a[c])&&t.call(u,u.__data__,c,a)&&s.push(u);return new gt(i,this._parents,this._name,this._id)}function vs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),r=new Array(i),s=0;s<a;++s)for(var u=e[s],c=n[s],l=u.length,d=r[s]=new Array(l),f,g=0;g<l;++g)(f=u[g]||c[g])&&(d[g]=f);for(;s<i;++s)r[s]=e[s];return new gt(r,this._parents,this._name,this._id)}function ys(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ps(t,e,n){var i,o,a=ys(e)?Ge:ct;return function(){var r=a(this,t),s=r.on;s!==i&&(o=(i=s).copy()).on(e,n),r.on=o}}function ws(t,e){var n=this._id;return arguments.length<2?lt(this.node(),n).on.on(t):this.each(ps(n,t,e))}function bs(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ks(){return this.on("end.remove",bs(this._id))}function xs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qe(t));for(var i=this._groups,o=i.length,a=new Array(o),r=0;r<o;++r)for(var s=i[r],u=s.length,c=a[r]=new Array(u),l,d,f=0;f<u;++f)(l=s[f])&&(d=t.call(l,l.__data__,f,s))&&("__data__"in l&&(d.__data__=l.__data__),c[f]=d,be(c[f],e,n,f,c,lt(l,n)));return new gt(a,this._parents,e,n)}function Ss(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Un(t));for(var i=this._groups,o=i.length,a=[],r=[],s=0;s<o;++s)for(var u=i[s],c=u.length,l,d=0;d<c;++d)if(l=u[d]){for(var f=t.call(l,l.__data__,d,u),g,C=lt(l,n),S=0,N=f.length;S<N;++S)(g=f[S])&&be(g,e,n,S,f,C);a.push(f),r.push(l)}return new gt(a,r,e,n)}var $s=Gt.prototype.constructor;function Cs(){return new $s(this._groups,this._parents)}function Is(t,e){var n,i,o;return function(){var a=At(this,t),r=(this.style.removeProperty(t),At(this,t));return a===r?null:a===n&&r===i?o:o=e(n=a,i=r)}}function ci(t){return function(){this.style.removeProperty(t)}}function Vs(t,e,n){var i,o=n+"",a;return function(){var r=At(this,t);return r===o?null:r===i?a:a=e(i=r,n)}}function As(t,e,n){var i,o,a;return function(){var r=At(this,t),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(t),At(this,t))),r===u?null:r===i&&u===o?a:(o=u,a=e(i=r,s))}}function Ms(t,e){var n,i,o,a="style."+e,r="end."+a,s;return function(){var u=ct(this,t),c=u.on,l=u.value[a]==null?s||(s=ci(e)):void 0;(c!==n||o!==l)&&(i=(n=c).copy()).on(r,o=l),u.on=i}}function Ns(t,e,n){var i=(t+="")=="transform"?Nr:ui;return e==null?this.styleTween(t,Is(t,i)).on("end.style."+t,ci(t)):typeof e=="function"?this.styleTween(t,As(t,i,je(this,"style."+t,e))).each(Ms(this._id,t)):this.styleTween(t,Vs(t,i,e),n).on("end.style."+t,null)}function Es(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Rs(t,e,n){var i,o;function a(){var r=e.apply(this,arguments);return r!==o&&(i=(o=r)&&Es(t,r,n)),i}return a._value=e,a}function zs(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Rs(t,e,n??""))}function Os(t){return function(){this.textContent=t}}function Bs(t){return function(){var e=t(this);this.textContent=e??""}}function Ts(t){return this.tween("text",typeof t=="function"?Bs(je(this,"text",t)):Os(t==null?"":t+""))}function Fs(t){return function(e){this.textContent=t.call(this,e)}}function Hs(t){var e,n;function i(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&Fs(o)),e}return i._value=t,i}function Ps(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Hs(t))}function Ds(){for(var t=this._name,e=this._id,n=di(),i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,c=0;c<s;++c)if(u=r[c]){var l=lt(u,e);be(u,t,n,c,r,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new gt(i,this._parents,t,n)}function Ls(){var t,e,n=this,i=n._id,o=n.size();return new Promise(function(a,r){var s={value:r},u={value:function(){--o===0&&a()}};n.each(function(){var c=ct(this,i),l=c.on;l!==t&&(e=(t=l).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),c.on=e}),o===0&&a()})}var Us=0;function gt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function di(){return++Us}var ft=Gt.prototype;gt.prototype={constructor:gt,select:xs,selectAll:Ss,selectChild:ft.selectChild,selectChildren:ft.selectChildren,filter:gs,merge:vs,selection:Cs,transition:Ds,call:ft.call,nodes:ft.nodes,node:ft.node,size:ft.size,empty:ft.empty,each:ft.each,on:ws,attr:_r,attrTween:os,style:Ns,styleTween:zs,text:Ts,textTween:Ps,remove:ks,tween:Wr,delay:ss,duration:cs,ease:fs,easeVarying:ms,end:Ls,[Symbol.iterator]:ft[Symbol.iterator]};function qs(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xs={time:null,delay:0,duration:250,ease:qs};function Ys(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ws(t){var e,n;t instanceof gt?(e=t._id,t=t._name):(e=di(),(n=Xs).time=We(),t=t==null?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var r=i[a],s=r.length,u,c=0;c<s;++c)(u=r[c])&&be(u,t,e,c,r,n||Ys(u,e));return new gt(i,this._parents,t,e)}Gt.prototype.interrupt=qr;Gt.prototype.transition=Ws;const _t=t=>()=>t;function Gs(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function mt(t,e,n){this.k=t,this.x=e,this.y=n}mt.prototype={constructor:mt,scale:function(t){return t===1?this:new mt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new mt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ke=new mt(1,0,0);mt.prototype;function Ve(t){t.stopImmediatePropagation()}function Rt(t){t.preventDefault(),t.stopImmediatePropagation()}function js(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Ks(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function wn(){return this.__zoom||Ke}function Js(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Zs(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qs(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1];return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>a?(a+r)/2:Math.min(0,a)||Math.max(0,r))}function _s(){var t=js,e=Ks,n=Qs,i=Js,o=Zs,a=[0,1/0],r=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Br,c=Ue("start","zoom","end"),l,d,f,g=500,C=150,S=0,N=10;function y(h){h.property("__zoom",wn).on("wheel.zoom",tt,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",G).filter(o).on("touchstart.zoom",ke).on("touchmove.zoom",xe).on("touchend.zoom touchcancel.zoom",Se).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(h,A,p,M){var b=h.selection?h.selection():h;b.property("__zoom",wn),h!==b?F(h,A,p,M):b.interrupt().each(function(){H(this,arguments).event(M).start().zoom(null,typeof A=="function"?A.apply(this,arguments):A).end()})},y.scaleBy=function(h,A,p,M){y.scaleTo(h,function(){var b=this.__zoom.k,V=typeof A=="function"?A.apply(this,arguments):A;return b*V},p,M)},y.scaleTo=function(h,A,p,M){y.transform(h,function(){var b=e.apply(this,arguments),V=this.__zoom,k=p==null?B(b):typeof p=="function"?p.apply(this,arguments):p,T=V.invert(k),q=typeof A=="function"?A.apply(this,arguments):A;return n(E(x(V,q),k,T),b,r)},p,M)},y.translateBy=function(h,A,p,M){y.transform(h,function(){return n(this.__zoom.translate(typeof A=="function"?A.apply(this,arguments):A,typeof p=="function"?p.apply(this,arguments):p),e.apply(this,arguments),r)},null,M)},y.translateTo=function(h,A,p,M,b){y.transform(h,function(){var V=e.apply(this,arguments),k=this.__zoom,T=M==null?B(V):typeof M=="function"?M.apply(this,arguments):M;return n(Ke.translate(T[0],T[1]).scale(k.k).translate(typeof A=="function"?-A.apply(this,arguments):-A,typeof p=="function"?-p.apply(this,arguments):-p),V,r)},M,b)};function x(h,A){return A=Math.max(a[0],Math.min(a[1],A)),A===h.k?h:new mt(A,h.x,h.y)}function E(h,A,p){var M=A[0]-p[0]*h.k,b=A[1]-p[1]*h.k;return M===h.x&&b===h.y?h:new mt(h.k,M,b)}function B(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function F(h,A,p,M){h.on("start.zoom",function(){H(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(M).end()}).tween("zoom",function(){var b=this,V=arguments,k=H(b,V).event(M),T=e.apply(b,V),q=p==null?B(T):typeof p=="function"?p.apply(b,V):p,X=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),Y=b.__zoom,j=typeof A=="function"?A.apply(b,V):A,et=u(Y.invert(q).concat(X/Y.k),j.invert(q).concat(X/j.k));return function(nt){if(nt===1)nt=j;else{var rt=et(nt),$e=X/rt[2];nt=new mt($e,q[0]-rt[0]*$e,q[1]-rt[1]*$e)}k.zoom(null,nt)}})}function H(h,A,p){return!p&&h.__zooming||new P(h,A)}function P(h,A){this.that=h,this.args=A,this.active=0,this.sourceEvent=null,this.extent=e.apply(h,A),this.taps=0}P.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,A){return this.mouse&&h!=="mouse"&&(this.mouse[1]=A.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=A.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=A.invert(this.touch1[0])),this.that.__zoom=A,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var A=pt(this.that).datum();c.call(h,this.that,new Gs(h,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:c}),A)}};function tt(h,...A){if(!t.apply(this,arguments))return;var p=H(this,A).event(h),M=this.__zoom,b=Math.max(a[0],Math.min(a[1],M.k*Math.pow(2,i.apply(this,arguments)))),V=vt(h);if(p.wheel)(p.mouse[0][0]!==V[0]||p.mouse[0][1]!==V[1])&&(p.mouse[1]=M.invert(p.mouse[0]=V)),clearTimeout(p.wheel);else{if(M.k===b)return;p.mouse=[V,M.invert(V)],ae(this),p.start()}Rt(h),p.wheel=setTimeout(k,C),p.zoom("mouse",n(E(x(M,b),p.mouse[0],p.mouse[1]),p.extent,r));function k(){p.wheel=null,p.end()}}function dt(h,...A){if(f||!t.apply(this,arguments))return;var p=h.currentTarget,M=H(this,A,!0).event(h),b=pt(h.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",X,!0),V=vt(h,p),k=h.clientX,T=h.clientY;lr(h.view),Ve(h),M.mouse=[V,this.__zoom.invert(V)],ae(this),M.start();function q(Y){if(Rt(Y),!M.moved){var j=Y.clientX-k,et=Y.clientY-T;M.moved=j*j+et*et>S}M.event(Y).zoom("mouse",n(E(M.that.__zoom,M.mouse[0]=vt(Y,p),M.mouse[1]),M.extent,r))}function X(Y){b.on("mousemove.zoom mouseup.zoom",null),ur(Y.view,M.moved),Rt(Y),M.event(Y).end()}}function G(h,...A){if(t.apply(this,arguments)){var p=this.__zoom,M=vt(h.changedTouches?h.changedTouches[0]:h,this),b=p.invert(M),V=p.k*(h.shiftKey?.5:2),k=n(E(x(p,V),M,b),e.apply(this,A),r);Rt(h),s>0?pt(this).transition().duration(s).call(F,k,M,h):pt(this).call(y.transform,k,M,h)}}function ke(h,...A){if(t.apply(this,arguments)){var p=h.touches,M=p.length,b=H(this,A,h.changedTouches.length===M).event(h),V,k,T,q;for(Ve(h),k=0;k<M;++k)T=p[k],q=vt(T,this),q=[q,this.__zoom.invert(q),T.identifier],b.touch0?!b.touch1&&b.touch0[2]!==q[2]&&(b.touch1=q,b.taps=0):(b.touch0=q,V=!0,b.taps=1+!!l);l&&(l=clearTimeout(l)),V&&(b.taps<2&&(d=q[0],l=setTimeout(function(){l=null},g)),ae(this),b.start())}}function xe(h,...A){if(this.__zooming){var p=H(this,A).event(h),M=h.changedTouches,b=M.length,V,k,T,q;for(Rt(h),V=0;V<b;++V)k=M[V],T=vt(k,this),p.touch0&&p.touch0[2]===k.identifier?p.touch0[0]=T:p.touch1&&p.touch1[2]===k.identifier&&(p.touch1[0]=T);if(k=p.that.__zoom,p.touch1){var X=p.touch0[0],Y=p.touch0[1],j=p.touch1[0],et=p.touch1[1],nt=(nt=j[0]-X[0])*nt+(nt=j[1]-X[1])*nt,rt=(rt=et[0]-Y[0])*rt+(rt=et[1]-Y[1])*rt;k=x(k,Math.sqrt(nt/rt)),T=[(X[0]+j[0])/2,(X[1]+j[1])/2],q=[(Y[0]+et[0])/2,(Y[1]+et[1])/2]}else if(p.touch0)T=p.touch0[0],q=p.touch0[1];else return;p.zoom("touch",n(E(k,T,q),p.extent,r))}}function Se(h,...A){if(this.__zooming){var p=H(this,A).event(h),M=h.changedTouches,b=M.length,V,k;for(Ve(h),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),V=0;V<b;++V)k=M[V],p.touch0&&p.touch0[2]===k.identifier?delete p.touch0:p.touch1&&p.touch1[2]===k.identifier&&delete p.touch1;if(p.touch1&&!p.touch0&&(p.touch0=p.touch1,delete p.touch1),p.touch0)p.touch0[1]=this.__zoom.invert(p.touch0[0]);else if(p.end(),p.taps===2&&(k=vt(k,this),Math.hypot(d[0]-k[0],d[1]-k[1])<N)){var T=pt(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return y.wheelDelta=function(h){return arguments.length?(i=typeof h=="function"?h:_t(+h),y):i},y.filter=function(h){return arguments.length?(t=typeof h=="function"?h:_t(!!h),y):t},y.touchable=function(h){return arguments.length?(o=typeof h=="function"?h:_t(!!h),y):o},y.extent=function(h){return arguments.length?(e=typeof h=="function"?h:_t([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),y):e},y.scaleExtent=function(h){return arguments.length?(a[0]=+h[0],a[1]=+h[1],y):[a[0],a[1]]},y.translateExtent=function(h){return arguments.length?(r[0][0]=+h[0][0],r[1][0]=+h[1][0],r[0][1]=+h[0][1],r[1][1]=+h[1][1],y):[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},y.constrain=function(h){return arguments.length?(n=h,y):n},y.duration=function(h){return arguments.length?(s=+h,y):s},y.interpolate=function(h){return arguments.length?(u=h,y):u},y.on=function(){var h=c.on.apply(c,arguments);return h===c?y:h},y.clickDistance=function(h){return arguments.length?(S=(h=+h)*h,y):Math.sqrt(S)},y.tapDistance=function(h){return arguments.length?(N=+h,y):N},y}const fi=Symbol("MiniMapSlots"),tl=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],el={name:"MiniMapNode",compatConfig:{MODE:3},inheritAttrs:!1},nl=U({...el,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(t,{emit:e}){const n=t,i=Pi(fi),o=Nn(),a=Tt(()=>o.style??{});function r(d){e("click",d)}function s(d){e("dblclick",d)}function u(d){e("mouseenter",d)}function c(d){e("mousemove",d)}function l(d){e("mouseleave",d)}return(d,f)=>!d.hidden&&d.dimensions.width!==0&&d.dimensions.height!==0?(v(),R(D,{key:0},[m(i)[`node-${n.type}`]?(v(),I(Di(m(i)[`node-${n.type}`]),It(Ht({key:0},{...n,...d.$attrs})),null,16)):(v(),R("rect",Ht({key:1,id:d.id},d.$attrs,{class:["vue-flow__minimap-node",{selected:d.selected,dragging:d.dragging}],x:d.position.x,y:d.position.y,rx:d.borderRadius,ry:d.borderRadius,width:d.dimensions.width,height:d.dimensions.height,fill:d.color||a.value.background||a.value.backgroundColor,stroke:d.strokeColor,"stroke-width":d.strokeWidth,"shape-rendering":d.shapeRendering,onClick:r,onDblclick:s,onMouseenter:u,onMousemove:c,onMouseleave:l}),null,16,tl))],64)):O("",!0)}}),il=["width","height","viewBox","aria-labelledby"],ol=["id"],al=["d","fill","stroke","stroke-width"],rl={name:"MiniMap",compatConfig:{MODE:3}},sl=U({...rl,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(t,{emit:e}){const n=Fi(),i=Nn(),o=200,a=150,{id:r,edges:s,viewport:u,translateExtent:c,dimensions:l,emits:d,d3Selection:f,d3Zoom:g,getNodesInitialized:C}=Pe(),S=Ft();Li(fi,n);const N=Tt(()=>{var b;return t.width??((b=i.style)==null?void 0:b.width)??o}),y=Tt(()=>{var b;return t.height??((b=i.style)==null?void 0:b.height)??a}),x=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision",E=z(()=>typeof t.nodeColor=="string"?()=>t.nodeColor:t.nodeColor),B=z(()=>typeof t.nodeStrokeColor=="string"?()=>t.nodeStrokeColor:t.nodeStrokeColor),F=z(()=>typeof t.nodeClassName=="string"?()=>t.nodeClassName:typeof t.nodeClassName=="function"?t.nodeClassName:()=>""),H=z(()=>xi(C.value.filter(b=>!b.hidden))),P=z(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:l.value.width/u.value.zoom,height:l.value.height/u.value.zoom})),tt=z(()=>C.value&&C.value.length?Si(H.value,P.value):P.value),dt=z(()=>{const b=tt.value.width/N.value,V=tt.value.height/y.value;return Math.max(b,V)}),G=z(()=>{const b=dt.value*N.value,V=dt.value*y.value,k=t.offsetScale*dt.value;return{offset:k,x:tt.value.x-(b-tt.value.width)/2-k,y:tt.value.y-(V-tt.value.height)/2-k,width:b+k*2,height:V+k*2}}),ke=z(()=>!G.value.x||!G.value.y?"":`
2
2
  M${G.value.x-G.value.offset},${G.value.y-G.value.offset}
3
3
  h${G.value.width+G.value.offset*2}
4
4
  v${G.value.height+G.value.offset*2}
@@ -1 +1 @@
1
- import{I as t}from"#entry";import{E as s,g as a,Z as n,W as i,F as c,a0 as l}from"./C492izQx.js";const I=s({__name:"GenericIcon",props:{icon:{},size:{default:16},color:{},customIcon:{}},setup(o){const e=a(()=>o.size-4);return(r,m)=>o.customIcon?(i(),n(c(t),{key:0,class:"mr-2",icon:o.customIcon,width:c(e),height:c(e),color:o.color},null,8,["icon","width","height","color"])):(i(),n(l,{key:1,icon:o.icon,size:o.size,color:o.color},null,8,["icon","size","color"]))}});export{I as _};
1
+ import{I as t}from"#entry";import{E as s,g as a,Z as n,W as i,F as c,a0 as l}from"./DxFGiSHR.js";const I=s({__name:"GenericIcon",props:{icon:{},size:{default:16},color:{},customIcon:{}},setup(o){const e=a(()=>o.size-4);return(r,m)=>o.customIcon?(i(),n(c(t),{key:0,class:"mr-2",icon:o.customIcon,width:c(e),height:c(e),color:o.color},null,8,["icon","width","height","color"])):(i(),n(l,{key:1,icon:o.icon,size:o.size,color:o.color},null,8,["icon","size","color"]))}});export{I as _};
@@ -1 +1 @@
1
- import{_ as o,e as s}from"#entry";import{K as a,W as i,$ as t,a3 as r}from"./C492izQx.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,g)=>(i(),a("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.statusCode)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusMessage)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},k=o(f,[["__scopeId","data-v-f9d2dcc9"]]);export{k as default};
1
+ import{_ as o,e as s}from"#entry";import{K as a,W as i,$ as t,a3 as r}from"./DxFGiSHR.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(m,g)=>(i(),a("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.statusCode)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusMessage)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},k=o(f,[["__scopeId","data-v-e1dadccc"]]);export{k as default};
@@ -1 +1 @@
1
- import{ad as v,_ as x}from"#entry";import{E as m,K as f,W as p,$ as u,X as l,a3 as n,F as s,ai as _,a1 as c,a0 as h,a2 as d,aj as y}from"./C492izQx.js";import"./MBzYIBwY.js";const $=e=>e?e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Unknown",g=e=>{if(!e)return"Unknown";const o=Date.now()-e.getTime(),t=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o/(1e3*60*60)),i=Math.floor(o/(1e3*60));return t>0?`${t} day${t===1?"":"s"} ago`:a>0?`${a} hour${a===1?"":"s"} ago`:i>0?`${i} minute${i===1?"":"s"} ago`:"Just now"},T=e=>`${e.slice(0,8)}...${e.slice(-8)}`,C={class:"d-flex align-center"},b={class:"text-caption text-medium-emphasis font-mono mr-2"},w=m({__name:"IdTableCell",props:{value:{},truncate:{type:Boolean,default:!0},copyFullText:{default:"Copy full ID"}},setup(e){const{copy:r}=v();return(o,t)=>(p(),f("div",C,[u("code",b,n(e.truncate?s(T)(e.value):e.value),1),l(_,{icon:"mdi-content-copy",variant:"text",size:"x-small",onClick:t[0]||(t[0]=a=>s(r)(e.value))},{default:c(()=>[l(h,{size:"16"},{default:c(()=>[...t[1]||(t[1]=[d("mdi-content-copy",-1)])]),_:1}),l(y,{activator:"parent",location:"top"},{default:c(()=>[d(n(e.copyFullText),1)]),_:1})]),_:1})]))}}),F=x(w,[["__scopeId","data-v-0dcfb73b"]]),I={class:"text-body-2"},V={class:"text-caption text-medium-emphasis"},M=m({__name:"TimeTableCell",props:{value:{}},setup(e){return(r,o)=>(p(),f("div",null,[u("div",I,n(s($)(e.value)),1),u("div",V,n(s(g)(e.value)),1)]))}});export{F as I,M as _};
1
+ import{ad as v,_ as x}from"#entry";import{E as m,K as f,W as p,$ as u,X as l,a3 as n,F as s,ai as _,a1 as c,a0 as h,a2 as d,aj as y}from"./DxFGiSHR.js";import"./C4dJ9Dp2.js";const $=e=>e?e.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Unknown",g=e=>{if(!e)return"Unknown";const o=Date.now()-e.getTime(),t=Math.floor(o/(1e3*60*60*24)),a=Math.floor(o/(1e3*60*60)),i=Math.floor(o/(1e3*60));return t>0?`${t} day${t===1?"":"s"} ago`:a>0?`${a} hour${a===1?"":"s"} ago`:i>0?`${i} minute${i===1?"":"s"} ago`:"Just now"},T=e=>`${e.slice(0,8)}...${e.slice(-8)}`,C={class:"d-flex align-center"},b={class:"text-caption text-medium-emphasis font-mono mr-2"},w=m({__name:"IdTableCell",props:{value:{},truncate:{type:Boolean,default:!0},copyFullText:{default:"Copy full ID"}},setup(e){const{copy:r}=v();return(o,t)=>(p(),f("div",C,[u("code",b,n(e.truncate?s(T)(e.value):e.value),1),l(_,{icon:"mdi-content-copy",variant:"text",size:"x-small",onClick:t[0]||(t[0]=a=>s(r)(e.value))},{default:c(()=>[l(h,{size:"16"},{default:c(()=>[...t[1]||(t[1]=[d("mdi-content-copy",-1)])]),_:1}),l(y,{activator:"parent",location:"top"},{default:c(()=>[d(n(e.copyFullText),1)]),_:1})]),_:1})]))}}),F=x(w,[["__scopeId","data-v-0dcfb73b"]]),I={class:"text-body-2"},V={class:"text-caption text-medium-emphasis"},M=m({__name:"TimeTableCell",props:{value:{}},setup(e){return(r,o)=>(p(),f("div",null,[u("div",I,n(s($)(e.value)),1),u("div",V,n(s(g)(e.value)),1)]))}});export{F as I,M as _};
@@ -1 +1 @@
1
- import{q as n,t as d,s as u}from"#entry";import{_ as f,I as y}from"./rtii14lI.js";import{S as _}from"./MBzYIBwY.js";import{D as I,a as A}from"./B3_RfxPY.js";import{_ as K}from"./yQo4vWqK.js";import{E as v,aL as o,Z as g,W as k,a1 as l,F as e,X as s}from"./C492izQx.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./c7cuww2j.js";import"./Clpw7Yi1.js";import"./CodzMKzx.js";const E=v({__name:"[apiKeyId]",props:{params:{}},async setup(c){let t,a;const{settingsStore:m}=n(),{projectStore:r}=n();r.initializing?([t,a]=o(()=>u(()=>r.initialized).toBe(!0)),await t,a(),r.addLibraryRoot()):([t,a]=o(()=>r.initialize1()),await t,a(),[t,a]=o(()=>r.initialize2()),await t,a());const i=([t,a]=o(()=>m.getApiKeyDetails(c.params.apiKeyId)),t=await t,a(),t);if(!i)throw d({statusCode:404,statusMessage:"API Key not found"});const p=[{key:"apiKeyId",label:"API Key ID"},{key:"serviceAccount",label:"Service Account"},{key:"createdAt",label:"Created"}];return(w,C)=>(k(),g(e(I),null,{default:l(()=>[s(_,{meta:e(i).meta,"fallback-icon":"mdi-key-variant",title:e(i).meta.title||`API Key ${e(i).id.slice(-8)}`,description:e(i).meta.description},null,8,["meta","title","description"]),s(e(A),{title:"API Key Details",items:p},{"item.apiKeyId":l(()=>[s(e(y),{value:e(i).id},null,8,["value"])]),"item.serviceAccount":l(()=>[s(e(K),{item:e(i)},null,8,["item"])]),"item.createdAt":l(()=>[s(e(f),{value:e(i).createdAt},null,8,["value"])]),_:1})]),_:1}))}});export{E as default};
1
+ import{q as n,t as d,s as u}from"#entry";import{_ as f,I as y}from"./DZ0fvG7S.js";import{S as _}from"./C4dJ9Dp2.js";import{D as I,a as A}from"./Csm9hFeJ.js";import{_ as K}from"./DyB4Tpuu.js";import{E as v,aL as o,Z as g,W as k,a1 as l,F as e,X as s}from"./DxFGiSHR.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./DM6la2tX.js";import"./D51fBQV9.js";import"./BdXRWuy9.js";const E=v({__name:"[apiKeyId]",props:{params:{}},async setup(c){let t,a;const{settingsStore:m}=n(),{projectStore:r}=n();r.initializing?([t,a]=o(()=>u(()=>r.initialized).toBe(!0)),await t,a(),r.addLibraryRoot()):([t,a]=o(()=>r.initialize1()),await t,a(),[t,a]=o(()=>r.initialize2()),await t,a());const i=([t,a]=o(()=>m.getApiKeyDetails(c.params.apiKeyId)),t=await t,a(),t);if(!i)throw d({statusCode:404,statusMessage:"API Key not found"});const p=[{key:"apiKeyId",label:"API Key ID"},{key:"serviceAccount",label:"Service Account"},{key:"createdAt",label:"Created"}];return(w,C)=>(k(),g(e(I),null,{default:l(()=>[s(_,{meta:e(i).meta,"fallback-icon":"mdi-key-variant",title:e(i).meta.title||`API Key ${e(i).id.slice(-8)}`,description:e(i).meta.description},null,8,["meta","title","description"]),s(e(A),{title:"API Key Details",items:p},{"item.apiKeyId":l(()=>[s(e(y),{value:e(i).id},null,8,["value"])]),"item.serviceAccount":l(()=>[s(e(K),{item:e(i)},null,8,["item"])]),"item.createdAt":l(()=>[s(e(f),{value:e(i).createdAt},null,8,["value"])]),_:1})]),_:1}))}});export{E as default};
@@ -1 +1 @@
1
- import{ah as j,_ as y,ai as w,f as C}from"#entry";import{P as k}from"./CZeOmOJM.js";import{E as _,r as h,aW as $,g as I,K as c,W as i,X as n,aE as O,aX as S,a1 as f,$ as r,a3 as m,F as t,b as A,aA as M,aL as P,ai as T,a9 as U,af as B,Z as g}from"./C492izQx.js";import{a as V,o as L}from"./M3Z1JMP1.js";import{_ as E,a as F}from"./AlZVL3pR.js";import{_ as v}from"./Clpw7Yi1.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./DazHGnQt.js";import"./CgmzNBdw.js";const N={class:"d-flex flex-column ga-4"},z={class:"d-flex align-center justify-space-between"},D={class:"text-truncate pr-2",style:{"font-size":"16px","font-weight":"500"}},R={class:"text-caption text-medium-emphasis font-mono text-truncate"},W={class:"d-flex align-center justify-space-between"},X=_({__name:"OperationCard",props:{operation:{},operationsStore:{}},setup(a){const e=h(!1),o=h(!1),s=$("contextMenu"),d=I(()=>!j(a.operation.status)),p=async l=>{s.value&&await s.value.showContextMenu(l)},u=async()=>{if(!(!d.value||o.value)){o.value=!0;try{await a.operationsStore.cancelOperation(a.operation.id),e.value=!1}finally{o.value=!1}}};return(l,x)=>(i(),c("div",null,[n(O,{width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"},onContextmenu:S(p,["prevent"])},{title:f(()=>[r("div",N,[r("div",z,[r("div",D,m(a.operation.meta.title),1),r("div",R,m(a.operation.id.slice(0,8)),1)]),r("div",W,[n(t(v),{status:a.operation.status,"status-map":t(V)},null,8,["status","status-map"]),n(t(v),{status:a.operation.type,"status-map":t(L)},null,8,["status","status-map"])])])]),_:1}),n(t(E),{ref_key:"contextMenu",ref:s,visible:t(e),"onUpdate:visible":x[0]||(x[0]=b=>A(e)?e.value=b:null),title:a.operation.meta.title,subtitle:a.operation.id},{default:f(()=>[n(M),n(t(F),{title:"Cancel",icon:"mdi-cancel",color:"error",disabled:!t(d)||t(o),loading:t(o),onClick:u},null,8,["disabled","loading"])]),_:1},8,["visible","title","subtitle"])]))}}),K=y(X,[["__scopeId","data-v-ef13af79"]]),Z={class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},q={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},G={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},H={class:"d-flex flex-column gr-4 operation-list-container"},J=_({__name:"OperationList",props:{projectId:{}},async setup(a){let e,o;const s=([e,o]=P(()=>w.async(a.projectId)),e=await e,o(),e),d=async()=>{await s.launchOperation({projectId:a.projectId,meta:{title:`Auto Update ${s.instancesToAutoUpdate.length} instance(s)`,description:"The operation was started by clicking the auto update button in the operation panel."},type:"update",instanceIds:s.instancesToAutoUpdate.map(p=>p.id)})};return(p,u)=>(i(),c("div",Z,[n(T,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:t(s).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:d},{default:f(()=>[r("div",null,[u[0]||(u[0]=r("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),t(s).instancesToAutoUpdate.length>0?(i(),c("div",q,m(t(s).instancesToAutoUpdate.length)+" component(s) ",1)):(i(),c("div",G," nothing to update "))])]),_:1},8,["disabled"]),r("div",H,[(i(!0),c(U,null,B(t(s).operations,l=>(i(),g(K,{key:l.id,operation:l,"operations-store":t(s)},null,8,["operation","operations-store"]))),128))])]))}}),Q=y(J,[["__scopeId","data-v-35c1dff8"]]),Y={key:1,class:"mt-4 text-center text-uppercase text-disabled"},dt=_({__name:"operations",props:{params:{}},setup(a){const e=C();return(o,s)=>t(e).focusedProjectId?(i(),g(t(k),{key:t(e).focusedProjectId,"project-id":t(e).focusedProjectId},{default:f(()=>[n(t(Q),{"project-id":t(e).focusedProjectId},null,8,["project-id"])]),_:1},8,["project-id"])):(i(),c("div",Y,"No active project"))}});export{dt as default};
1
+ import{ah as j,_ as y,ai as w,f as C}from"#entry";import{P as k}from"./Du4ruqK9.js";import{E as _,r as h,aW as $,g as I,K as c,W as i,X as n,aE as O,aX as S,a1 as f,$ as r,a3 as m,F as t,b as A,aA as M,aL as P,ai as T,a9 as U,af as B,Z as g}from"./DxFGiSHR.js";import{a as V,o as L}from"./M3Z1JMP1.js";import{_ as E,a as F}from"./C6-lnLL6.js";import{_ as v}from"./D51fBQV9.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./BUPqLUAZ.js";import"./CLTVhdbR.js";const N={class:"d-flex flex-column ga-4"},z={class:"d-flex align-center justify-space-between"},D={class:"text-truncate pr-2",style:{"font-size":"16px","font-weight":"500"}},R={class:"text-caption text-medium-emphasis font-mono text-truncate"},W={class:"d-flex align-center justify-space-between"},X=_({__name:"OperationCard",props:{operation:{},operationsStore:{}},setup(a){const e=h(!1),o=h(!1),s=$("contextMenu"),d=I(()=>!j(a.operation.status)),p=async l=>{s.value&&await s.value.showContextMenu(l)},u=async()=>{if(!(!d.value||o.value)){o.value=!0;try{await a.operationsStore.cancelOperation(a.operation.id),e.value=!1}finally{o.value=!1}}};return(l,x)=>(i(),c("div",null,[n(O,{width:360,class:"operation-card",color:"#2d2d2d",variant:"flat",style:{"border-radius":"4px"},onContextmenu:S(p,["prevent"])},{title:f(()=>[r("div",N,[r("div",z,[r("div",D,m(a.operation.meta.title),1),r("div",R,m(a.operation.id.slice(0,8)),1)]),r("div",W,[n(t(v),{status:a.operation.status,"status-map":t(V)},null,8,["status","status-map"]),n(t(v),{status:a.operation.type,"status-map":t(L)},null,8,["status","status-map"])])])]),_:1}),n(t(E),{ref_key:"contextMenu",ref:s,visible:t(e),"onUpdate:visible":x[0]||(x[0]=b=>A(e)?e.value=b:null),title:a.operation.meta.title,subtitle:a.operation.id},{default:f(()=>[n(M),n(t(F),{title:"Cancel",icon:"mdi-cancel",color:"error",disabled:!t(d)||t(o),loading:t(o),onClick:u},null,8,["disabled","loading"])]),_:1},8,["visible","title","subtitle"])]))}}),K=y(X,[["__scopeId","data-v-ef13af79"]]),Z={class:"d-flex flex-column pl-4 pr-4 gr-4 pt-4 align-center sidebar-container"},q={key:0,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},G={key:1,class:"d-flex text-disabled text-subtitle-1",style:{"line-height":"1"}},H={class:"d-flex flex-column gr-4 operation-list-container"},J=_({__name:"OperationList",props:{projectId:{}},async setup(a){let e,o;const s=([e,o]=P(()=>w.async(a.projectId)),e=await e,o(),e),d=async()=>{await s.launchOperation({projectId:a.projectId,meta:{title:`Auto Update ${s.instancesToAutoUpdate.length} instance(s)`,description:"The operation was started by clicking the auto update button in the operation panel."},type:"update",instanceIds:s.instancesToAutoUpdate.map(p=>p.id)})};return(p,u)=>(i(),c("div",Z,[n(T,{"prepend-icon":"mdi-auto-fix",color:"primary",size:"large",width:"360px",disabled:t(s).instancesToAutoUpdate.length===0,title:"Ебанёт?",onClick:d},{default:f(()=>[r("div",null,[u[0]||(u[0]=r("div",{class:"d-flex",style:{"line-height":"1"}},"auto update",-1)),t(s).instancesToAutoUpdate.length>0?(i(),c("div",q,m(t(s).instancesToAutoUpdate.length)+" component(s) ",1)):(i(),c("div",G," nothing to update "))])]),_:1},8,["disabled"]),r("div",H,[(i(!0),c(U,null,B(t(s).operations,l=>(i(),g(K,{key:l.id,operation:l,"operations-store":t(s)},null,8,["operation","operations-store"]))),128))])]))}}),Q=y(J,[["__scopeId","data-v-35c1dff8"]]),Y={key:1,class:"mt-4 text-center text-uppercase text-disabled"},dt=_({__name:"operations",props:{params:{}},setup(a){const e=C();return(o,s)=>t(e).focusedProjectId?(i(),g(t(k),{key:t(e).focusedProjectId,"project-id":t(e).focusedProjectId},{default:f(()=>[n(t(Q),{"project-id":t(e).focusedProjectId},null,8,["project-id"])]),_:1},8,["project-id"])):(i(),c("div",Y,"No active project"))}});export{dt as default};
@@ -1 +1 @@
1
- import{S as h,b as s}from"./CBhhCAGJ.js";import{E as u}from"#entry";import"./MBzYIBwY.js";import{I as c}from"./rtii14lI.js";import{_ as f}from"./BC4bzN3h.js";import{E as y,aO as P,av as i,Z as v,W as B,F as r,a1 as o,X as g,a2 as b,a3 as I}from"./C492izQx.js";const S=y({__name:"ArtifactsTable",props:P({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(a){const d=i(a,"search"),l=i(a,"sortBy"),n=i(a,"page"),m=i(a,"itemsPerPage"),p=[s.name,s.id,{key:"hash",title:"Hash"},{key:"size",title:"Size"},s.createdAt,s.actions];return(M,t)=>(B(),v(r(h),{search:d.value,"onUpdate:search":t[0]||(t[0]=e=>d.value=e),"sort-by":l.value,"onUpdate:sortBy":t[1]||(t[1]=e=>l.value=e),page:n.value,"onUpdate:page":t[2]||(t[2]=e=>n.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>m.value=e),headers:p,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.hash":o(({item:e})=>[g(r(c),{value:e.hash,"copy-full-text":"Copy full hash"},null,8,["value"])]),"item.size":o(({item:e})=>[b(I(r(u)(e.size)),1)]),"item.actions":o(({item:e})=>[g(r(f),{"page-name":"settings.artifact-details","page-params":{projectId:a.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 h,b as s}from"./DjP-kB7A.js";import{E as u}from"#entry";import"./C4dJ9Dp2.js";import{I as c}from"./DZ0fvG7S.js";import{_ as f}from"./CdGLXhPg.js";import{E as y,aO as P,av as i,Z as v,W as B,F as r,a1 as o,X as g,a2 as b,a3 as I}from"./DxFGiSHR.js";const S=y({__name:"ArtifactsTable",props:P({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(a){const d=i(a,"search"),l=i(a,"sortBy"),n=i(a,"page"),m=i(a,"itemsPerPage"),p=[s.name,s.id,{key:"hash",title:"Hash"},{key:"size",title:"Size"},s.createdAt,s.actions];return(M,t)=>(B(),v(r(h),{search:d.value,"onUpdate:search":t[0]||(t[0]=e=>d.value=e),"sort-by":l.value,"onUpdate:sortBy":t[1]||(t[1]=e=>l.value=e),page:n.value,"onUpdate:page":t[2]||(t[2]=e=>n.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>m.value=e),headers:p,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.hash":o(({item:e})=>[g(r(c),{value:e.hash,"copy-full-text":"Copy full hash"},null,8,["value"])]),"item.size":o(({item:e})=>[b(I(r(u)(e.size)),1)]),"item.actions":o(({item:e})=>[g(r(f),{"page-name":"settings.artifact-details","page-params":{projectId:a.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 D,s as N}from"#entry";import"./MBzYIBwY.js";import{S as E}from"./8hNo2oxe.js";import{b as P,S as H}from"./CBhhCAGJ.js";import{u as R}from"./M3Z1JMP1.js";import{_ as W}from"./Clpw7Yi1.js";import{_ as q}from"./BC4bzN3h.js";import{E as V,aO as U,av as M,r as k,w as K,Z as w,W as b,a1 as l,aw as S,X as o,ay as j,_ as $,F as t,aB as T,a2 as v,a3 as A,aC as I,aD as z,ai as C,aE as L,a0 as O,aF as X,$ as B,aL as x,K as Z,b as F,a9 as G}from"./C492izQx.js";import{_ as J,c as Q}from"./DbcOKM93.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./c7cuww2j.js";import"./rtii14lI.js";import"./DazHGnQt.js";const Y=V({__name:"CreateUnlockMethodDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:U(["created"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=g,{settingsStore:c}=D(),p=k(!1),u=k(!1),m=k(null),h=k(),e=k({type:"password",title:"",description:"",password:"",confirmPassword:""}),i=()=>{n.value=!1,h.value?.resetForm(),m.value=null},y=async()=>{if(p.value){u.value=!0,m.value=null;try{const a=await Q(e.value);await c.addUnlockMethod(a),n.value=!1,h.value?.resetForm(),m.value=null,s("created")}catch(a){console.error("Failed to create unlock method:",a),m.value="Some error occurred"}finally{u.value=!1}}};return K(n,a=>{a||(h.value?.resetForm(),m.value=null)}),(a,d)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":d[2]||(d[2]=f=>n.value=f),"max-width":"600px"},{default:l(()=>[o(L,{title:"Create Unlock Method"},{default:l(()=>[o(j,null,{default:l(()=>[o(J,{ref_key:"unlockMethodForm",ref:h,"onUpdate:valid":d[0]||(d[0]=f=>p.value=f),"onUpdate:form":d[1]||(d[1]=f=>e.value=f)},null,512),t(m)?(b(),w(T,{key:0,type:"error",density:"compact",class:"mb-4"},{default:l(()=>[v(A(t(m)),1)]),_:1})):$("",!0)]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(u),onClick:i},{default:l(()=>[...d[3]||(d[3]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"primary",disabled:!t(p),loading:t(u),onClick:y},{default:l(()=>[...d[4]||(d[4]=[v(" Create ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),_={class:"mb-3"},ee=V({__name:"DeleteUnlockMethodDialog",props:U({unlockMethod:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:U(["confirm"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=r,c=g,p=k(!1),u=()=>{s.unlockMethod&&c("confirm",s.unlockMethod)},m=()=>{n.value=!1};return(h,e)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),"max-width":"500px"},{default:l(()=>[r.unlockMethod?(b(),w(L,{key:0},{default:l(()=>[o(X,{class:"d-flex align-center"},{default:l(()=>[o(O,{class:"mr-2 text-error"},{default:l(()=>[...e[1]||(e[1]=[v("mdi-alert-circle-outline",-1)])]),_:1}),e[2]||(e[2]=v(" Delete Unlock Method ",-1))]),_:1}),o(j,null,{default:l(()=>[B("p",_,[e[3]||(e[3]=v(" Are you sure you want to delete the unlock method ",-1)),B("strong",null,'"'+A(r.unlockMethod.meta.title)+'"',1),e[4]||(e[4]=v(" ? ",-1))]),o(T,{type:"warning",density:"compact"},{default:l(()=>[...e[5]||(e[5]=[B("strong",null,"Warning:",-1),v(" Deleting this unlock method will permanently remove your ability to unlock the project using this method. Make sure you have at least one other unlock method configured before proceeding. ",-1)])]),_:1})]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(p),onClick:m},{default:l(()=>[...e[6]||(e[6]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"error",loading:t(p),onClick:u},{default:l(()=>[...e[7]||(e[7]=[v("Delete",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})):$("",!0)]),_:1},8,["modelValue"]))}}),te={class:"d-flex align-center gap-1"},ae=V({__name:"UnlockMethodsTable",props:U({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:U(["delete"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(r,{emit:g}){const n=g,s=M(r,"search"),c=M(r,"sortBy"),p=M(r,"page"),u=M(r,"itemsPerPage"),m=[{key:"type",title:"Type"},P.name,P.id,P.createdAt,P.actions];return(h,e)=>(b(),w(t(H),{search:s.value,"onUpdate:search":e[0]||(e[0]=i=>s.value=i),"sort-by":c.value,"onUpdate:sortBy":e[1]||(e[1]=i=>c.value=i),page:p.value,"onUpdate:page":e[2]||(e[2]=i=>p.value=i),"items-per-page":u.value,"onUpdate:itemsPerPage":e[3]||(e[3]=i=>u.value=i),headers:m,data:r.data,loading:r.loading,"hide-header":r.hideHeader,height:r.height},{"item.type":l(({item:i})=>[o(t(W),{status:i.type,"status-map":t(R)},null,8,["status","status-map"])]),"item.actions":l(({item:i})=>[B("div",te,[o(t(q),{"page-name":"settings.unlock-method-details","page-params":{projectId:r.projectId,unlockMethodId:i.id}},null,8,["page-params"]),o(C,{variant:"text",icon:"mdi-delete",size:"small",color:"error",onClick:y=>n("delete",i)},null,8,["onClick"])])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ke=V({__name:"index",async setup(r){let g,n;const{settingsStore:s}=D(),{projectStore:c}=D();c.initializing?([g,n]=x(()=>N(()=>c.initialized).toBe(!0)),await g,n(),c.addLibraryRoot()):([g,n]=x(()=>c.initialize1()),await g,n(),[g,n]=x(()=>c.initialize2()),await g,n()),s.unlockMethods.load();const p=k(!1),u=k(!1),m=k(null),h=k(!1),e=y=>{m.value=y,u.value=!0},i=async y=>{h.value=!0;try{await s.removeUnlockMethod(y.id),u.value=!1,m.value=null}catch(a){console.error("Failed to delete unlock method:",a)}finally{h.value=!1}};return(y,a)=>(b(),Z(G,null,[o(t(E),{title:"Unlock Methods",icon:"mdi-lock-open-outline",description:"Manage the methods used to unlock and access this project's encrypted data."},{actions:l(()=>[o(C,{color:"primary","prepend-icon":"mdi-plus",onClick:a[0]||(a[0]=d=>p.value=!0)},{default:l(()=>[...a[7]||(a[7]=[v(" Add Unlock Method ",-1)])]),_:1})]),default:l(({height:d})=>[o(t(ae),{search:t(s).unlockMethods.search,"onUpdate:search":a[1]||(a[1]=f=>t(s).unlockMethods.search=f),"sort-by":t(s).unlockMethods.sortBy,"onUpdate:sortBy":a[2]||(a[2]=f=>t(s).unlockMethods.sortBy=f),page:t(s).unlockMethods.page,"onUpdate:page":a[3]||(a[3]=f=>t(s).unlockMethods.page=f),"items-per-page":t(s).unlockMethods.itemsPerPage,"onUpdate:itemsPerPage":a[4]||(a[4]=f=>t(s).unlockMethods.itemsPerPage=f),"project-id":t(c).projectId,data:t(s).unlockMethods.data,loading:t(s).unlockMethods.isLoading,height:d,onDelete:e},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}),o(t(Y),{visible:t(p),"onUpdate:visible":a[5]||(a[5]=d=>F(p)?p.value=d:null)},null,8,["visible"]),o(t(ee),{visible:t(u),"onUpdate:visible":a[6]||(a[6]=d=>F(u)?u.value=d:null),"unlock-method":t(m),onConfirm:i},null,8,["visible","unlock-method"])],64))}});export{ke as default};
1
+ import{q as D,s as N}from"#entry";import"./C4dJ9Dp2.js";import{S as E}from"./BIOIQ_52.js";import{b as P,S as H}from"./DjP-kB7A.js";import{u as R}from"./M3Z1JMP1.js";import{_ as W}from"./D51fBQV9.js";import{_ as q}from"./CdGLXhPg.js";import{E as V,aO as U,av as M,r as k,w as K,Z as w,W as b,a1 as l,aw as S,X as o,ay as j,_ as $,F as t,aB as T,a2 as v,a3 as A,aC as I,aD as z,ai as C,aE as L,a0 as O,aF as X,$ as B,aL as x,K as Z,b as F,a9 as G}from"./DxFGiSHR.js";import{_ as J,c as Q}from"./C-uxl13K.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./DM6la2tX.js";import"./DZ0fvG7S.js";import"./BUPqLUAZ.js";const Y=V({__name:"CreateUnlockMethodDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:U(["created"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=g,{settingsStore:c}=D(),p=k(!1),u=k(!1),m=k(null),h=k(),e=k({type:"password",title:"",description:"",password:"",confirmPassword:""}),i=()=>{n.value=!1,h.value?.resetForm(),m.value=null},y=async()=>{if(p.value){u.value=!0,m.value=null;try{const a=await Q(e.value);await c.addUnlockMethod(a),n.value=!1,h.value?.resetForm(),m.value=null,s("created")}catch(a){console.error("Failed to create unlock method:",a),m.value="Some error occurred"}finally{u.value=!1}}};return K(n,a=>{a||(h.value?.resetForm(),m.value=null)}),(a,d)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":d[2]||(d[2]=f=>n.value=f),"max-width":"600px"},{default:l(()=>[o(L,{title:"Create Unlock Method"},{default:l(()=>[o(j,null,{default:l(()=>[o(J,{ref_key:"unlockMethodForm",ref:h,"onUpdate:valid":d[0]||(d[0]=f=>p.value=f),"onUpdate:form":d[1]||(d[1]=f=>e.value=f)},null,512),t(m)?(b(),w(T,{key:0,type:"error",density:"compact",class:"mb-4"},{default:l(()=>[v(A(t(m)),1)]),_:1})):$("",!0)]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(u),onClick:i},{default:l(()=>[...d[3]||(d[3]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"primary",disabled:!t(p),loading:t(u),onClick:y},{default:l(()=>[...d[4]||(d[4]=[v(" Create ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),_={class:"mb-3"},ee=V({__name:"DeleteUnlockMethodDialog",props:U({unlockMethod:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:U(["confirm"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=r,c=g,p=k(!1),u=()=>{s.unlockMethod&&c("confirm",s.unlockMethod)},m=()=>{n.value=!1};return(h,e)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),"max-width":"500px"},{default:l(()=>[r.unlockMethod?(b(),w(L,{key:0},{default:l(()=>[o(X,{class:"d-flex align-center"},{default:l(()=>[o(O,{class:"mr-2 text-error"},{default:l(()=>[...e[1]||(e[1]=[v("mdi-alert-circle-outline",-1)])]),_:1}),e[2]||(e[2]=v(" Delete Unlock Method ",-1))]),_:1}),o(j,null,{default:l(()=>[B("p",_,[e[3]||(e[3]=v(" Are you sure you want to delete the unlock method ",-1)),B("strong",null,'"'+A(r.unlockMethod.meta.title)+'"',1),e[4]||(e[4]=v(" ? ",-1))]),o(T,{type:"warning",density:"compact"},{default:l(()=>[...e[5]||(e[5]=[B("strong",null,"Warning:",-1),v(" Deleting this unlock method will permanently remove your ability to unlock the project using this method. Make sure you have at least one other unlock method configured before proceeding. ",-1)])]),_:1})]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(p),onClick:m},{default:l(()=>[...e[6]||(e[6]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"error",loading:t(p),onClick:u},{default:l(()=>[...e[7]||(e[7]=[v("Delete",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})):$("",!0)]),_:1},8,["modelValue"]))}}),te={class:"d-flex align-center gap-1"},ae=V({__name:"UnlockMethodsTable",props:U({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:U(["delete"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(r,{emit:g}){const n=g,s=M(r,"search"),c=M(r,"sortBy"),p=M(r,"page"),u=M(r,"itemsPerPage"),m=[{key:"type",title:"Type"},P.name,P.id,P.createdAt,P.actions];return(h,e)=>(b(),w(t(H),{search:s.value,"onUpdate:search":e[0]||(e[0]=i=>s.value=i),"sort-by":c.value,"onUpdate:sortBy":e[1]||(e[1]=i=>c.value=i),page:p.value,"onUpdate:page":e[2]||(e[2]=i=>p.value=i),"items-per-page":u.value,"onUpdate:itemsPerPage":e[3]||(e[3]=i=>u.value=i),headers:m,data:r.data,loading:r.loading,"hide-header":r.hideHeader,height:r.height},{"item.type":l(({item:i})=>[o(t(W),{status:i.type,"status-map":t(R)},null,8,["status","status-map"])]),"item.actions":l(({item:i})=>[B("div",te,[o(t(q),{"page-name":"settings.unlock-method-details","page-params":{projectId:r.projectId,unlockMethodId:i.id}},null,8,["page-params"]),o(C,{variant:"text",icon:"mdi-delete",size:"small",color:"error",onClick:y=>n("delete",i)},null,8,["onClick"])])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ke=V({__name:"index",async setup(r){let g,n;const{settingsStore:s}=D(),{projectStore:c}=D();c.initializing?([g,n]=x(()=>N(()=>c.initialized).toBe(!0)),await g,n(),c.addLibraryRoot()):([g,n]=x(()=>c.initialize1()),await g,n(),[g,n]=x(()=>c.initialize2()),await g,n()),s.unlockMethods.load();const p=k(!1),u=k(!1),m=k(null),h=k(!1),e=y=>{m.value=y,u.value=!0},i=async y=>{h.value=!0;try{await s.removeUnlockMethod(y.id),u.value=!1,m.value=null}catch(a){console.error("Failed to delete unlock method:",a)}finally{h.value=!1}};return(y,a)=>(b(),Z(G,null,[o(t(E),{title:"Unlock Methods",icon:"mdi-lock-open-outline",description:"Manage the methods used to unlock and access this project's encrypted data."},{actions:l(()=>[o(C,{color:"primary","prepend-icon":"mdi-plus",onClick:a[0]||(a[0]=d=>p.value=!0)},{default:l(()=>[...a[7]||(a[7]=[v(" Add Unlock Method ",-1)])]),_:1})]),default:l(({height:d})=>[o(t(ae),{search:t(s).unlockMethods.search,"onUpdate:search":a[1]||(a[1]=f=>t(s).unlockMethods.search=f),"sort-by":t(s).unlockMethods.sortBy,"onUpdate:sortBy":a[2]||(a[2]=f=>t(s).unlockMethods.sortBy=f),page:t(s).unlockMethods.page,"onUpdate:page":a[3]||(a[3]=f=>t(s).unlockMethods.page=f),"items-per-page":t(s).unlockMethods.itemsPerPage,"onUpdate:itemsPerPage":a[4]||(a[4]=f=>t(s).unlockMethods.itemsPerPage=f),"project-id":t(c).projectId,data:t(s).unlockMethods.data,loading:t(s).unlockMethods.isLoading,height:d,onDelete:e},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}),o(t(Y),{visible:t(p),"onUpdate:visible":a[5]||(a[5]=d=>F(p)?p.value=d:null)},null,8,["visible"]),o(t(ee),{visible:t(u),"onUpdate:visible":a[6]||(a[6]=d=>F(u)?u.value=d:null),"unlock-method":t(m),onConfirm:i},null,8,["visible","unlock-method"])],64))}});export{ke as default};
@@ -1,2 +1,2 @@
1
- import{ae as I,af as z,ag as P,s as N,_ as L,f as B}from"#entry";import{P as T}from"./CZeOmOJM.js";import{_ as D,t as O}from"./luRfMbTH.js";import{s as F}from"./oZs8U75K.js";import{E as x,g as S,K as p,W as s,X as b,F as a,a1 as u,Z as d,_ as y,aj as A,$ as g,a3 as _,aP as E,a8 as U,a2 as W,aL as h,az as K,a9 as C,af as k,aS as R,a4 as X}from"./C492izQx.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./DazHGnQt.js";const w={asc:(e,t)=>e>t,desc:(e,t)=>e<t};function Z(e,t){let[n,...r]=t;if(!q(n)){let o=j(...r);return e(n,o)}let i=j(n,...r);return o=>e(o,i)}function j(e,t,...n){let r=typeof e=="function"?e:e[0],i=typeof e=="function"?"asc":e[1],{[i]:o}=w,l=t===void 0?void 0:j(t,...n);return(c,m)=>{let f=r(c),v=r(m);return o(f,v)?1:o(v,f)?-1:l?.(c,m)??0}}function q(e){if($(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[t,n,...r]=e;return $(t)&&typeof n=="string"&&n in w&&r.length===0}const $=e=>typeof e=="function"&&e.length===1;function G(...e){return I(H,e)}const H=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r,e);if(o!==void 0){let l=n[o];l===void 0?n[o]=[i]:l.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};function J(...e){return I(M,e,Q)}const M=(e,t)=>e.map(t),Q=e=>(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)});function V(...e){return Z(Y,e)}const Y=(e,t)=>[...e].sort(t),ee="Components with version v0 are unstable and may be broken or disappear without warning.",te=x({__name:"ComponentTemplate",props:{component:{}},setup(e){const t=r=>{F(r.dataTransfer,e.component.type)},n=S(()=>{try{const[,r]=z(e.component.type);return r===0}catch{return!1}});return(r,i)=>(s(),p("div",{draggable:"true",style:{cursor:"grab"},onDragstart:t},[b(a(D),{component:e.component,text:e.component.meta.description?.split(`
1
+ import{ae as I,af as z,ag as P,s as N,_ as L,f as B}from"#entry";import{P as T}from"./Du4ruqK9.js";import{_ as D,t as O}from"./BJnkbWC7.js";import{s as F}from"./oZs8U75K.js";import{E as x,g as S,K as p,W as s,X as b,F as a,a1 as u,Z as d,_ as y,aj as A,$ as g,a3 as _,aP as E,a8 as U,a2 as W,aL as h,az as K,a9 as C,af as k,aS as R,a4 as X}from"./DxFGiSHR.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./BUPqLUAZ.js";const w={asc:(e,t)=>e>t,desc:(e,t)=>e<t};function Z(e,t){let[n,...r]=t;if(!q(n)){let o=j(...r);return e(n,o)}let i=j(n,...r);return o=>e(o,i)}function j(e,t,...n){let r=typeof e=="function"?e:e[0],i=typeof e=="function"?"asc":e[1],{[i]:o}=w,l=t===void 0?void 0:j(t,...n);return(c,m)=>{let f=r(c),v=r(m);return o(f,v)?1:o(v,f)?-1:l?.(c,m)??0}}function q(e){if($(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[t,n,...r]=e;return $(t)&&typeof n=="string"&&n in w&&r.length===0}const $=e=>typeof e=="function"&&e.length===1;function G(...e){return I(H,e)}const H=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r,e);if(o!==void 0){let l=n[o];l===void 0?n[o]=[i]:l.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};function J(...e){return I(M,e,Q)}const M=(e,t)=>e.map(t),Q=e=>(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)});function V(...e){return Z(Y,e)}const Y=(e,t)=>[...e].sort(t),ee="Components with version v0 are unstable and may be broken or disappear without warning.",te=x({__name:"ComponentTemplate",props:{component:{}},setup(e){const t=r=>{F(r.dataTransfer,e.component.type)},n=S(()=>{try{const[,r]=z(e.component.type);return r===0}catch{return!1}});return(r,i)=>(s(),p("div",{draggable:"true",style:{cursor:"grab"},onDragstart:t},[b(a(D),{component:e.component,text:e.component.meta.description?.split(`
2
2
  `)[0]},{append:u(()=>[a(n)?(s(),d(A,{key:0,location:"top"},{activator:u(({props:o})=>[b(E,U(o,{color:"warning",label:"",size:"small",variant:"flat"}),{default:u(()=>[...i[0]||(i[0]=[W("unstable",-1)])]),_:1},16)]),default:u(()=>[g("span",null,_(ee))]),_:1})):y("",!0)]),_:1},8,["component","text"])],32))}}),re={class:"d-flex flex-column mt-4 pl-4 pr-4 gr-4 sidebar-container"},ne={class:"d-flex flex-column align-center gr-4 component-list-container"},oe={class:"text-uppercase text-disabled"},ae={key:0,class:"text-center text-uppercase text-disabled"},se={key:1,class:"mb-2 text-center text-uppercase text-disabled"},ie=x({__name:"ComponentList",props:{projectId:{}},async setup(e){let t,n;const r=([t,n]=h(()=>P.async(e.projectId)),t=await t,n(),t);[t,n]=h(()=>N(()=>r.initialized).toBe(!0)),await t,n();const i=S(()=>r.initialized?O(r.library.filteredComponents,G(o=>o.meta.category??"Uncategorized"),o=>Object.entries(o),V(([o])=>o==="Uncategorized"?"z":o),J(([o,l])=>[o,V(l,c=>c.meta.title??c.type)])):[]);return(o,l)=>(s(),p("div",re,[a(r)?(s(),d(K,{key:0,modelValue:a(r).library.search,"onUpdate:modelValue":l[0]||(l[0]=c=>a(r).library.search=c),class:"search",variant:"outlined",density:"compact",placeholder:"Search components","hide-details":""},null,8,["modelValue"])):y("",!0),g("div",ne,[(s(!0),p(C,null,k(a(i),([c,m])=>(s(),p("div",{key:c,class:"d-flex flex-column gr-4"},[g("div",oe,_(c)+" ("+_(m.length)+")",1),(s(!0),p(C,null,k(m,f=>(s(),d(te,{key:f.type,component:f},null,8,["component"]))),128))]))),128)),(a(r).library.filteredComponents.length??0)===0?(s(),p("div",ae," No components found ")):y("",!0)]),(a(r).library.filteredComponents.length??0)>0?(s(),p("div",se," Found "+_(a(r).library.filteredComponents.length)+" component(s) ",1)):y("",!0)]))}}),ce=L(ie,[["__scopeId","data-v-45cff09f"]]),le=x({__name:"ComponentListWrapper",props:{projectId:{}},async setup(e){let t,n;const r=([t,n]=h(()=>P.async(e.projectId)),t=await t,n(),t);return(i,o)=>(s(),d(a(T),{"project-id":e.projectId},{default:u(()=>[a(r).loading||a(r).initialized&&a(r).library.isReloading?(s(),d(R,{key:0,indeterminate:!0,color:"primary",height:"4",absolute:"",location:"bottom"})):y("",!0),(s(),d(ce,{key:e.projectId,"project-id":e.projectId},null,8,["project-id"]))]),_:1},8,["project-id"]))}}),pe={key:1,class:"mt-4 text-center text-uppercase text-disabled"},ge=x({__name:"components",props:{params:{}},setup(e){const t=B();return(n,r)=>a(t).focusedProjectId?(s(),d(X,{key:a(t).focusedProjectId},{default:u(()=>[b(a(le),{"project-id":a(t).focusedProjectId},null,8,["project-id"])]),_:1})):(s(),p("div",pe,"No active project"))}});export{ge as default};
@@ -1,4 +1,4 @@
1
- import{V as vt}from"./DfRNGSx_.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 At,P as Tt,Q as _t,R as jt,T as w,U as at,V as W,W as xt,X as H,Z as X,$ as x,a0 as Bt,a1 as kt,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"#entry";import{E as Kt,g as Vt,Z as Rt,W as qt,aT as Wt,a1 as B,$ as z,X as G,F as Q,aa as Ht,a2 as tt,a0 as Xt,a3 as et}from"./C492izQx.js";import"./MBzYIBwY.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,i){return e=Object.assign({actualString:!0},e),ot(t,e,n,i)}},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 i=t[0]==="t"||t[0]==="T";if(e===i)return t}return e?n.options.trueStr:n.options.falseStr}};function g({format:t,minFractionDigits:e,tag:n,value:i}){if(typeof i=="bigint")return String(i);const s=typeof i=="number"?i:Number(i);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let r=JSON.stringify(i);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:i})=>i?BigInt(t):parseInt(t.substring(e),n);function ut(t,e,n){const{value:i}=t;return $(i)&&i>=0?n+i.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),zt=[{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}],Gt={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Qt=[p,b].concat(zt,Gt),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,"")),i=new Uint8Array(n.length);for(let s=0;s<n.length;++s)i[s]=n.charCodeAt(s);return i}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},i,s,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(i.options.lineWidth-i.indent.length,i.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"./DBjl4B0h.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 At,P as Tt,Q as _t,R as jt,T as w,U as at,V as W,W as xt,X as H,Z as X,$ as x,a0 as Bt,a1 as kt,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"#entry";import{E as Kt,g as Vt,Z as Rt,W as qt,aT as Wt,a1 as B,$ as z,X as G,F as Q,aa as Ht,a2 as tt,a0 as Xt,a3 as et}from"./DxFGiSHR.js";import"./C4dJ9Dp2.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,i){return e=Object.assign({actualString:!0},e),ot(t,e,n,i)}},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 i=t[0]==="t"||t[0]==="T";if(e===i)return t}return e?n.options.trueStr:n.options.falseStr}};function g({format:t,minFractionDigits:e,tag:n,value:i}){if(typeof i=="bigint")return String(i);const s=typeof i=="number"?i:Number(i);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let r=JSON.stringify(i);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:i})=>i?BigInt(t):parseInt(t.substring(e),n);function ut(t,e,n){const{value:i}=t;return $(i)&&i>=0?n+i.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),zt=[{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}],Gt={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Qt=[p,b].concat(zt,Gt),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,"")),i=new Uint8Array(n.length);for(let s=0;s<n.length;++s)i[s]=n.charCodeAt(s);return i}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},i,s,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(i.options.lineWidth-i.indent.length,i.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},i,s,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 i=t.substring(n+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length)}return e},stringify:g},N=t=>typeof t=="bigint"||Number.isInteger(t);function A(t,e,n,{intAsBigInt:i}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),i){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 s==="-"?BigInt(-1)*o:o}const r=parseInt(t,n);return s==="-"?-1*r:r}function J(t,e,n){const{value:i}=t;if(N(i)){const s=i.toString(e);return i<0?"-"+n+s.substr(1):n+s}return g(t)}const ie={identify:N,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>A(t,2,2,n),stringify:t=>J(t,2,"0b")},se={identify:N,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>A(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)=>A(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)=>A(t,2,16,n),stringify:t=>J(t,16,"0x")};function U(t,e){const n=t[0],i=n==="-"||n==="+"?t.substring(1):t,s=o=>e?BigInt(o):Number(o),r=i.replace(/_/g,"").split(":").reduce((o,f)=>o*s(60)+s(f),s(0));return n==="-"?s(-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 i="";e<0&&(i="-",e*=n(-1));const s=n(60),r=[e%s];return e<60?r.unshift(0):(e=(e-r[0])/s,r.unshift(e%s),e>=60&&(e=(e-r[0])/s,r.unshift(e))),i+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},T={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(T.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,i,s,r,o,f]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let l=Date.UTC(n,i-1,s,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$/,"")??""},it=[p,b,v,I,ht,pt,ie,se,re,oe,te,ee,ne,D,h,C,F,L,Nt,St,T],st=new Map([["core",Zt],["failsafe",[p,b,v]],["json",Qt],["yaml11",it],["yaml-1.1",it]]),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:T},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":T};function k(t,e,n){const i=st.get(e);if(i&&!t)return n&&!i.includes(h)?i.concat(h):i.slice();let s=i;if(!s)if(Array.isArray(t))s=[];else{const r=Array.from(st.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)s=s.concat(r);else typeof t=="function"&&(s=t(s.slice()));return n&&(s=s.concat(h)),s.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:i,resolveKnownTags:s,schema:r,sortMapEntries:o,toStringDefaults:f}){this.compat=Array.isArray(e)?k(e,"compat"):e?k(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=s?ae:{},this.tags=k(n,this.name,i),this.toStringOptions=f??null,Object.defineProperty(this,At,{value:p}),Object.defineProperty(this,Tt,{value:v}),Object.defineProperty(this,_t,{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 i=e.directives===!0;if(e.directives!==!1&&t.directives){const a=t.directives.toString(t);a?(n.push(a),i=!0):t.directives.docStart&&(i=!0)}i&&n.push("---");const s=jt(t,e),{commentString:r}=s.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&&i&&n.push(""),t.contents.commentBefore){const c=r(t.contents.commentBefore);n.push(w(c,""))}s.forceBlockIndent=!!t.comment,f=t.contents.comment}const a=f?void 0:()=>o=!0;let l=W(t.contents,s,()=>f=null,a);f&&(l+=xt(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,s));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{k as A,_ as B,f as F,u as K,l as L,n as W}from"#entry";import{P as z}from"./CZeOmOJM.js";import{E as N,K as h,W as o,X as u,a1 as r,ab as M,B as U,w as R,g as w,$ as d,a9 as y,af as C,F as s,aA as G,_ as S,aK as X,aE as Z,ay as q,Z as m,a4 as H,a5 as $,ah as J,a0 as I,a2 as V,a3 as _,ac as P,ai as x}from"./C492izQx.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./DazHGnQt.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(T){return A(T.projectId),(p,j)=>(o(),h("div",O,[u(z,{"project-id":T.projectId,"can-unlock":""},{default:r(()=>[M(p.$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"},ce={class:"tab-label"},ne={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(T){const p=F(),j=K(),c=U(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(L.info({from:c.value?.path,to:t.path},"settings route changed"),c.value=t),t?.name==="settings"&&await f(l.value.beforeGlobalTabs[0])},{immediate:!0});const l=w(()=>{const b=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),n=[],e=[];for(const a of b){const i=a.meta.tab;if(!i||!a.path.startsWith("/settings/"))continue;const k={name:a.name,icon:i.icon,label:i.label,order:i.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:i.subpages??[]};k.isProjectTab?e.push(k):n.push(k)}n.sort((a,i)=>a.order-i.order),e.sort((a,i)=>a.order-i.order);const g=n.filter(a=>a.order<90),E=n.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:E}}),v=t=>c.value&&(t.name===c.value.name||t.subpages.includes(c.value.name)),D=w(()=>l.value.beforeGlobalTabs.find(v)||l.value.projectTabs.find(v)),f=async t=>{if(!t.isProjectTab){await W({name:t.name});return}await W({name:t.name,params:{projectId:p.focusedProjectId}})};return R(()=>p.focusedProjectId,async(t,b)=>{const n=j.currentRoute.value;!n||t===b&&n.path.startsWith("/settings/projects/")||!n.path.startsWith("/settings/")||(t&&l.value.projectTabs.length>0?await f(D.value??l.value.projectTabs[0]):!t&&n.path.startsWith("/settings/projects/")&&await f(l.value.beforeGlobalTabs[0]))}),(t,b)=>{const n=J("RouterView");return o(),h("div",ee,[d("div",te,[d("div",ae,[d("div",se,[(o(!0),h(y,null,C(s(l).beforeGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),u(G,{class:"section-divider"}),d("div",re,[u(X,{modelValue:s(p).focusedProjectId,"onUpdate:modelValue":b[0]||(b[0]=e=>s(p).focusedProjectId=e),items:s(p).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(p).focusedProjectId?(o(!0),h(y,{key:0},C(s(l).projectTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",ce,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):S("",!0)]),u(G,{class:"section-divider"}),d("div",ne,[(o(!0),h(y,null,C(s(l).afterGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),d("div",ie,[u(Z,{class:"content-card",variant:"flat"},{default:r(()=>[u(q,{class:"content-card-text"},{default:r(()=>[s(c)?(o(),m(n,{key:0,route:s(c)},{default:r(({Component:e})=>[s(c).params.projectId?(o(),m(H,{key:0},{default:r(()=>[(o(),m(s(Y),{"project-id":s(c).params.projectId,key:s(c).params.projectId},{default:r(()=>[(o(),m($(e),{params:s(c).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-ee43cb94"]]);export{ve as default};
1
+ import{k as A,_ as B,f as F,u as K,l as L,n as W}from"#entry";import{P as z}from"./Du4ruqK9.js";import{E as N,K as h,W as o,X as u,a1 as r,ab as M,B as U,w as R,g as w,$ as d,a9 as y,af as C,F as s,aA as G,_ as S,aK as X,aE as Z,ay as q,Z as m,a4 as H,a5 as $,ah as J,a0 as I,a2 as V,a3 as _,ac as P,ai as x}from"./DxFGiSHR.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./BUPqLUAZ.js";const O={class:"tab-wrapper"},Q=N({__name:"ProjectTabWrapper",props:{projectId:{}},setup(T){return A(T.projectId),(p,j)=>(o(),h("div",O,[u(z,{"project-id":T.projectId,"can-unlock":""},{default:r(()=>[M(p.$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"},ce={class:"tab-label"},ne={class:"tab-section"},le={class:"tab-label"},ie={class:"content-area"},de=N({__name:"settings",setup(T){const p=F(),j=K(),c=U(null);R(j.currentRoute,async t=>{t.path.startsWith("/settings/")&&(L.info({from:c.value?.path,to:t.path},"settings route changed"),c.value=t),t?.name==="settings"&&await f(l.value.beforeGlobalTabs[0])},{immediate:!0});const l=w(()=>{const b=j.getRoutes().filter(a=>a.path.startsWith("/settings/")&&a.path!=="/settings"&&a.meta?.tab),n=[],e=[];for(const a of b){const i=a.meta.tab;if(!i||!a.path.startsWith("/settings/"))continue;const k={name:a.name,icon:i.icon,label:i.label,order:i.order||50,isProjectTab:a.path.startsWith("/settings/projects/"),subpages:i.subpages??[]};k.isProjectTab?e.push(k):n.push(k)}n.sort((a,i)=>a.order-i.order),e.sort((a,i)=>a.order-i.order);const g=n.filter(a=>a.order<90),E=n.filter(a=>a.order>=90);return{beforeGlobalTabs:g,projectTabs:e,afterGlobalTabs:E}}),v=t=>c.value&&(t.name===c.value.name||t.subpages.includes(c.value.name)),D=w(()=>l.value.beforeGlobalTabs.find(v)||l.value.projectTabs.find(v)),f=async t=>{if(!t.isProjectTab){await W({name:t.name});return}await W({name:t.name,params:{projectId:p.focusedProjectId}})};return R(()=>p.focusedProjectId,async(t,b)=>{const n=j.currentRoute.value;!n||t===b&&n.path.startsWith("/settings/projects/")||!n.path.startsWith("/settings/")||(t&&l.value.projectTabs.length>0?await f(D.value??l.value.projectTabs[0]):!t&&n.path.startsWith("/settings/projects/")&&await f(l.value.beforeGlobalTabs[0]))}),(t,b)=>{const n=J("RouterView");return o(),h("div",ee,[d("div",te,[d("div",ae,[d("div",se,[(o(!0),h(y,null,C(s(l).beforeGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",oe,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))]),u(G,{class:"section-divider"}),d("div",re,[u(X,{modelValue:s(p).focusedProjectId,"onUpdate:modelValue":b[0]||(b[0]=e=>s(p).focusedProjectId=e),items:s(p).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(p).focusedProjectId?(o(!0),h(y,{key:0},C(s(l).projectTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",ce,_(e.label),1)]),_:2},1032,["class","onClick"]))),128)):S("",!0)]),u(G,{class:"section-divider"}),d("div",ne,[(o(!0),h(y,null,C(s(l).afterGlobalTabs,e=>(o(),m(x,{key:e.name,variant:"text",class:P(["tab-item",{active:v(e)}]),onClick:g=>f(e)},{default:r(()=>[u(I,{class:"tab-icon"},{default:r(()=>[V(_(e.icon),1)]),_:2},1024),d("span",le,_(e.label),1)]),_:2},1032,["class","onClick"]))),128))])]),d("div",ie,[u(Z,{class:"content-card",variant:"flat"},{default:r(()=>[u(q,{class:"content-card-text"},{default:r(()=>[s(c)?(o(),m(n,{key:0,route:s(c)},{default:r(({Component:e})=>[s(c).params.projectId?(o(),m(H,{key:0},{default:r(()=>[(o(),m(s(Y),{"project-id":s(c).params.projectId,key:s(c).params.projectId},{default:r(()=>[(o(),m($(e),{params:s(c).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-ee43cb94"]]);export{ve as default};
@@ -1,2 +1,2 @@
1
- import{I as x,_ as b}from"#entry";import{_ as k,I as B}from"./rtii14lI.js";import{E as S,aO as V,av as r,ae as I,K as c,W as d,_ as l,$ as i,Z as m,X as u,a0 as C,a1 as o,a2 as w,a3 as n,az as A,aU as D,aV as M,af as T,F as U,ab as N,ak as H,al as $}from"./C492izQx.js";import"./MBzYIBwY.js";const Q={name:{key:"meta.title",title:"Name & Description"},id:{key:"id",title:"ID"},createdAt:{key:"createdAt",title:"Created"},actions:{key:"actions",title:"Actions",align:"center"}},z={class:"settings-table-container"},E={key:0,class:"table-header"},F={class:"d-flex align-center"},K={class:"text-subtitle-1 font-weight-medium"},L={class:"table-wrapper"},O={class:"d-flex align-center"},R={class:"d-flex flex-column"},W={class:"text-body-1 font-weight-medium"},X={key:0,class:"text-caption text-medium-emphasis"},Z=S({__name:"SettingsDataTable",props:V({headers:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},hideSearch:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(t){const h=r(t,"search"),g=r(t,"sortBy"),y=r(t,"page"),f=r(t,"itemsPerPage"),v=I();return(p,a)=>(d(),c("div",z,[t.hideHeader?l("",!0):(d(),c("div",E,[i("div",F,[u(C,{class:"mr-2"},{default:o(()=>[...a[4]||(a[4]=[w("mdi-format-list-bulleted",-1)])]),_:1}),i("span",K,n(t.data.total)+" item"+n(t.data.total===1?"":"s"),1)]),t.hideSearch?l("",!0):(d(),m(A,{key:0,modelValue:h.value,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),"prepend-inner-icon":"mdi-magnify",placeholder:"Search",variant:"outlined",density:"compact",clearable:"","hide-details":"",style:{"max-width":"300px"}},null,8,["modelValue"]))])),i("div",L,[u(D,{headers:t.headers,items:t.data.items,"items-length":t.data.total,loading:t.loading,page:y.value,"onUpdate:page":a[1]||(a[1]=e=>y.value=e),"items-per-page":f.value,"onUpdate:itemsPerPage":a[2]||(a[2]=e=>f.value=e),"sort-by":g.value,"onUpdate:sortBy":a[3]||(a[3]=e=>g.value=e),"item-value":"id",class:"data-table","fixed-header":"",height:t.height},M({"item.meta.title":o(({item:e})=>[i("div",O,[e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon?(d(),m(U(x),{key:0,icon:e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon,color:e.meta.iconColor??(e.meta.icon?void 0:t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIconColor),width:"24",class:"mr-4"},null,8,["icon","color"])):l("",!0),i("div",R,[i("div",W,n(e.meta.title||"Unnamed"),1),e.meta.description?(d(),c("div",X,n(e.meta.description.split(`
1
+ import{I as x,_ as b}from"#entry";import{_ as k,I as B}from"./DZ0fvG7S.js";import{E as S,aO as V,av as r,ae as I,K as c,W as d,_ as l,$ as i,Z as m,X as u,a0 as C,a1 as o,a2 as w,a3 as n,az as A,aU as D,aV as M,af as T,F as U,ab as N,ak as H,al as $}from"./DxFGiSHR.js";import"./C4dJ9Dp2.js";const Q={name:{key:"meta.title",title:"Name & Description"},id:{key:"id",title:"ID"},createdAt:{key:"createdAt",title:"Created"},actions:{key:"actions",title:"Actions",align:"center"}},z={class:"settings-table-container"},E={key:0,class:"table-header"},F={class:"d-flex align-center"},K={class:"text-subtitle-1 font-weight-medium"},L={class:"table-wrapper"},O={class:"d-flex align-center"},R={class:"d-flex flex-column"},W={class:"text-body-1 font-weight-medium"},X={key:0,class:"text-caption text-medium-emphasis"},Z=S({__name:"SettingsDataTable",props:V({headers:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},hideSearch:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(t){const h=r(t,"search"),g=r(t,"sortBy"),y=r(t,"page"),f=r(t,"itemsPerPage"),v=I();return(p,a)=>(d(),c("div",z,[t.hideHeader?l("",!0):(d(),c("div",E,[i("div",F,[u(C,{class:"mr-2"},{default:o(()=>[...a[4]||(a[4]=[w("mdi-format-list-bulleted",-1)])]),_:1}),i("span",K,n(t.data.total)+" item"+n(t.data.total===1?"":"s"),1)]),t.hideSearch?l("",!0):(d(),m(A,{key:0,modelValue:h.value,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),"prepend-inner-icon":"mdi-magnify",placeholder:"Search",variant:"outlined",density:"compact",clearable:"","hide-details":"",style:{"max-width":"300px"}},null,8,["modelValue"]))])),i("div",L,[u(D,{headers:t.headers,items:t.data.items,"items-length":t.data.total,loading:t.loading,page:y.value,"onUpdate:page":a[1]||(a[1]=e=>y.value=e),"items-per-page":f.value,"onUpdate:itemsPerPage":a[2]||(a[2]=e=>f.value=e),"sort-by":g.value,"onUpdate:sortBy":a[3]||(a[3]=e=>g.value=e),"item-value":"id",class:"data-table","fixed-header":"",height:t.height},M({"item.meta.title":o(({item:e})=>[i("div",O,[e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon?(d(),m(U(x),{key:0,icon:e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon,color:e.meta.iconColor??(e.meta.icon?void 0:t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIconColor),width:"24",class:"mr-4"},null,8,["icon","color"])):l("",!0),i("div",R,[i("div",W,n(e.meta.title||"Unnamed"),1),e.meta.description?(d(),c("div",X,n(e.meta.description.split(`
2
2
  `)[0]),1)):l("",!0)])])]),"item.id":o(({item:e})=>[u(B,{value:e.id},null,8,["value"])]),"item.createdAt":o(({item:e})=>[e.createdAt?(d(),m(k,{key:0,value:e.createdAt},null,8,["value"])):l("",!0)]),"no-data":o(()=>[a[5]||(a[5]=i("div",{class:"text-center py-4"},[i("div",{class:"text-h6 text-medium-emphasis"},"No data available")],-1))]),_:2},[T(v,(e,s)=>({name:s,fn:o(P=>[N(p.$slots,s,H($(P)),void 0,!0)])}))]),1032,["headers","items","items-length","loading","page","items-per-page","sort-by","height"])])]))}}),Y=b(Z,[["__scopeId","data-v-d8ca3f82"]]);export{Y as S,Q as b};