var e=new Set(`INSERT.INTO.UPDATE.DELETE.SET.WHERE.FROM.AND.OR.NOT.IN.VALUES.SELECT.CREATE.ALTER.DROP.TABLE.INDEX.ON.AS.IS.NULL.DEFAULT.PRIMARY.KEY.FOREIGN.REFERENCES.CASCADE.EXISTS.IF.BEGIN.COMMIT.REPLACE.GROUP.BY.ORDER.LIMIT.HAVING.JOIN.LEFT.RIGHT.INNER.LIKE.BETWEEN.DISTINCT.UNION.ALL.CASE.WHEN.THEN.ELSE.END.ASC.DESC.OFFSET.ROLLBACK.WITH`.split(`.`)),t=[[/^--[^\n]*/,`comment`],[/^'(?:[^']|'')*'/,`string`],[/^\d+(?:\.\d+)?/,`number`],[/^[a-zA-Z_]\w*/,`word`],[/^(?:<>|!=|<=|>=|\|\||[=<>])/,`operator`],[/^[(),;.]/,`punctuation`],[/^\s+/,`whitespace`]],n=[[/^"(?:[^"\\]|\\.)*"\s*(?=:)/,`key`],[/^"(?:[^"\\]|\\.)*"/,`string`],[/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/,`number`],[/^(?:true|false|null)\b/,`literal`],[/^[{}[\]:,]/,`punctuation`],[/^\s+/,`whitespace`]];function r(e,t){let n=[],r=0;for(;r<e.length;){let i=!1,a=e.slice(r);for(let[e,o]of t){let t=e.exec(a);if(t){n.push({type:o,text:t[0]}),r+=t[0].length,i=!0;break}}i||(n.push({type:`text`,text:e[r]}),r+=1)}return n}function i(n){return r(n,t).map(t=>t.type===`word`?{type:e.has(t.text.toUpperCase())?`keyword`:`identifier`,text:t.text}:t)}function a(e){return r(e,n)}function o(e,t){if(!e)return[];switch(t){case`sql`:return i(e);case`json`:return a(e);default:return[{type:`text`,text:e}]}}var s=[{name:`Default`,dark:{bg:`#171717`,text:`#cdd6f4`,keyword:`#89b4fa`,identifier:`#a6e3a1`,string:`#cdd6f4`,number:`#fab387`,comment:`#6c7086`,operator:`#89dceb`,punctuation:`#7f849c`,key:`#89b4fa`,literal:`#89dceb`},light:{bg:`#ffffff`,text:`#4c4f69`,keyword:`#1e66f5`,identifier:`#40a02b`,string:`#4c4f69`,number:`#fe640b`,comment:`#9ca0b0`,operator:`#04a5e5`,punctuation:`#8c8fa1`,key:`#1e66f5`,literal:`#04a5e5`}}];function c(e){return s.find(t=>t.name===e)??s[0]}export{s as n,o as r,c as t};