const a=s=>{var t,e,n;return((n=(e=(t=s==null?void 0:s.resources)==null?void 0:t.instances)==null?void 0:e.filter(c=>c.startsWith("/1.0/instances/")).map(c=>c.split("/")[3]).pop())==null?void 0:n.split("?")[0])??""},l=s=>{var e;const t=((e=s==null?void 0:s.resources)==null?void 0:e.instances_snapshots)??[];return t.length?t[0].split("/")[5].split("?")[0]:""},i=s=>{var e;const t=((e=s==null?void 0:s.resources)==null?void 0:e.storage_volume_snapshots)??[];return t.length?t[0].split("/")[8].split("?")[0]:""},u=s=>{var t,e,n;return((n=(e=(t=s.resources)==null?void 0:t.instances)==null?void 0:e.filter(c=>c.startsWith("/1.0/instances/")).map(c=>c.split("project=")[1]).pop())==null?void 0:n.split("&")[0])??"default"},m=(s,t,e)=>t.find(n=>{const c=u(n),r=a(n);return c==s.project&&r==s.name&&e==n.description});export{l as a,u as b,i as c,m as f,a as g};
