import{d2 as y,p as l,d3 as m,g as u,ax as g,c3 as d,bz as f,X as b}from"./index-dP1W1_bd.js";import{c}from"./complement-D_Q2yZKt.js";const o=y({String:"string",Integer:"integer",Float:"number",Boolean:"boolean","Array of Float":"arraynumber","Array of Integer":"arrayinteger","Array of String":"arraystring","Array of Boolean":"arrayboolean"}),q=a=>a.reduce((e,{name:r,description:t,required:p,type:i})=>{if(r==="")return e;const s=i[0];if(s.includes("Array")){const n=s.slice(s.lastIndexOf(" ")+1);e.properties[r]={description:t,type:"array",items:{type:o.getByKey(n)}}}else e.properties[r]={type:o.getByKey(s),...t?{description:t}:{description:""}};return p&&e.required.push(r),e},{properties:{},required:[]}),x=a=>Object.entries(a.properties).map(([e,{description:r,type:t,items:p}])=>({name:e,type:[o.getByValue(t+(p?p.type:""))],required:a.required.includes(e),description:r??""})),j=l(b("properties"),f,g(d(["type","description","items"])),m(c(u)));export{q as a,j,x as m,o as p};
