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