const e=require("./Enum.js"),t=require("./Utility.js");function n(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function r(r,i,a,o){switch(r.type){case e.LAYER:if(r.children.length)break;case e.IMPORT:case e.NAMESPACE:case e.DECLARATION:return r.return=r.return||r.value;case e.COMMENT:return``;case e.KEYFRAMES:return r.return=r.value+`{`+n(r.children,o)+`}`;case e.RULESET:if(!t.strlen(r.value=r.props.join(`,`)))return``}return t.strlen(a=n(r.children,o))?r.return=r.value+`{`+a+`}`:``}exports.serialize=n,exports.stringify=r;