import{__require as e}from"../../picocolors/picocolors.mjs";import{__require as r}from"./tokenize.mjs";var n,o;function t(){if(o)return n;o=1;let t,l=e(),i=r();const a={";":l.yellow,":":l.yellow,"(":l.cyan,")":l.cyan,"[":l.yellow,"]":l.yellow,"{":l.yellow,"}":l.yellow,"at-word":l.cyan,brackets:l.cyan,call:l.cyan,class:l.yellow,comment:l.gray,hash:l.magenta,string:l.green};function c([e,r],n){if("word"===e){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!n.endOfFile()){let e=n.nextToken();if(n.back(e),"brackets"===e[0]||"("===e[0])return"call"}return e}function s(e){let r=i(new t(e),{ignoreErrors:!0}),n="";for(;!r.endOfFile();){let e=r.nextToken(),o=a[c(e,r)];n+=o?e[1].split(/\r?\n/).map(e=>o(e)).join("\n"):e[1]}return n}return s.registerInput=function(e){t=e},n=s}export{t as __require};