{"version":3,"file":"splitVarName.cjs","sources":["../../src/util/splitVarName.ts"],"sourcesContent":["export function splitVarName(str: string) {\n\tconst res: string[][] = [];\n\tlet currGroup: string[] = [];\n\tlet currStr = '';\n\n\tconst isASymbol = (char: string) => '-!$%^&*()_+|~=`{}[]:;<>?,. '.includes(char);\n\n\tfor (const char of str) {\n\t\tconst currentlyInASymbolSection = isASymbol(currStr[0]!);\n\t\tconst charIsASymbol = isASymbol(char);\n\n\t\tif (currStr.length && currentlyInASymbolSection !== charIsASymbol) {\n\t\t\tif (char === '.') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcurrGroup.push(currStr);\n\t\t\tcurrStr = char;\n\n\t\t\tif (!charIsASymbol) {\n\t\t\t\tres.push(currGroup);\n\t\t\t\tcurrGroup = [];\n\t\t\t}\n\t\t} else {\n\t\t\tcurrStr += char;\n\t\t}\n\t}\n\tcurrGroup.push(currStr);\n\tres.push(currGroup);\n\n\treturn res;\n}\n"],"names":[],"mappings":";;;;AAAO,SAAS,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAC,CAAC,KAAK,CAAC,EAAE,EAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;;;;"}