import{tokenize as e}from"../tokenizer/index.mjs";import{createParser as r}from"../parser/create.mjs";import{createGenerator as t}from"../generator/create.mjs";import{createConvertor as o}from"../convertor/create.mjs";import{createWalker as n}from"../walker/create.mjs";import{Lexer as i}from"../lexer/Lexer.mjs";import s from"./config/mix.mjs";function m(a){const c=r(a),f=n(a),l=t(a),{fromPlainObject:p,toPlainObject:d}=o(f),u={lexer:null,createLexer:e=>new i(e,u,u.lexer.structure),tokenize:e,parse:c,generate:l,walk:f,find:f.find,findLast:f.findLast,findAll:f.findAll,fromPlainObject:p,toPlainObject:d,fork(e){const r=s({},a);return m("function"==typeof e?e(r):s(r,e))}};return u.lexer=new i({generic:a.generic,cssWideKeywords:a.cssWideKeywords,units:a.units,types:a.types,atrules:a.atrules,properties:a.properties,node:a.node},u),u}const a=e=>m(s({},e));export{a as default};