{"version":3,"sources":["jsdelivr-header.js","/npm/jeefo_css_preprocessor@0.0.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACGA,IAAI,OAAS,QAAQ,YAEjB,gBAAkB,WACrB,KAAK,WAAa,OAAO,OAAO,KACjC,EAEA,gBAAgB,UAAY,CAC3B,SAAW,SAAU,EAAM,GAE1B,OADA,KAAK,WAAW,GAAQ,EACjB,IACR,EAEA,QAAU,SAAU,GAMnB,IALA,IAGC,EAAG,EAAG,EAAQ,EAHX,EAAa,EAAM,MACtB,EAAa,EAAM,OACnB,EAAa,KAAK,WAGZ,KACN,OAAQ,EAAM,GAAG,MAChB,IAAK,OAIJ,IAFA,GADA,EAAe,EAAM,GAAG,cACP,OAEV,KACF,EAAW,EAAa,GAAG,WAC9B,EAAW,EAAa,GAAG,UAAU,EAAa,GAAI,EAAG,GAG3D,KAAK,QAAQ,EAAM,GAAG,OACtB,MACD,IAAK,WAIJ,IAFA,GADA,EAAS,EAAM,GAAG,QACF,OAET,KAIN,IAFA,GADA,EAAe,EAAO,GAAG,cACR,OAEV,KACF,EAAW,EAAa,GAAG,WAC9B,EAAW,EAAa,GAAG,UAAU,EAAa,GAAI,EAAG,GAOhE,EAEA,MAAQ,SAAU,EAAM,EAAO,GAC9B,OAAO,OAAO,EAAM,EAAO,EAC5B,EAEA,QAAU,SAAU,EAAO,GAG1B,IAFA,IAAI,EAAI,EAAG,EAAQ,EAAM,MAAO,EAAS,GAElC,EAAI,EAAM,SAAU,EACtB,GACH,GAAU,EAAM,GAAG,iBACf,EAAI,EAAI,EAAM,SACjB,GAAU,OAGX,GAAU,EAAM,GAAG,eAIrB,OAAO,CACR,GAGD,OAAO,QAAU","file":"/npm/jeefo_css_preprocessor@0.0.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/jeefo_css_preprocessor@0.0.4/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.\n* File Name   : index.js\n* Created at  : 2017-09-12\n* Updated at  : 2017-11-02\n* Author      : jeefo\n* Purpose     :\n* Description :\n_._._._._._._._._._._._._._._._._._._._._.*/\n\nvar parser = require(\"./parser\");\n\nvar CssPreprocessor = function () {\n\tthis.processors = Object.create(null);\n};\n\nCssPreprocessor.prototype = {\n\tregister : function (hash, handler) {\n\t\tthis.processors[hash] = handler;\n\t\treturn this;\n\t},\n\n\tprocess : function (scope) {\n\t\tvar rules      = scope.rules,\n\t\t\ti          = rules.length,\n\t\t\tprocessors = this.processors,\n\t\t\tj, k, frames, declarations;\n\n\t\twhile (i--) {\n\t\t\tswitch (rules[i].type) {\n\t\t\t\tcase \"Rule\" :\n\t\t\t\t\tdeclarations = rules[i].declarations;\n\t\t\t\t\tj = declarations.length;\n\n\t\t\t\t\twhile (j--) {\n\t\t\t\t\t\tif (processors[declarations[j].property]) {\n\t\t\t\t\t\t\tprocessors[declarations[j].property](declarations[j], j, declarations);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.process(rules[i].scope);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Keyframe\" :\n\t\t\t\t\tframes = rules[i].frames;\n\t\t\t\t\tj      = frames.length;\n\n\t\t\t\t\twhile (j--) {\n\t\t\t\t\t\tdeclarations = frames[i].declarations;\n\t\t\t\t\t\tk = declarations.length;\n\n\t\t\t\t\t\twhile (k--) {\n\t\t\t\t\t\t\tif (processors[declarations[k].property]) {\n\t\t\t\t\t\t\t\tprocessors[declarations[k].property](declarations[k], k, declarations);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t},\n\n\tparse : function (code, scope, tab_space) {\n\t\treturn parser(code, scope, tab_space);\n\t},\n\n\tcompile : function (scope, is_beauty) {\n\t\tvar i = 0, rules = scope.rules, result = '';\n\n\t\tfor (; i < rules.length; ++i) {\n\t\t\tif (is_beauty) {\n\t\t\t\tresult += rules[i].compile_beauty();\n\t\t\t\tif (i + 1 < rules.length) {\n\t\t\t\t\tresult += '\\n';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult += rules[i].compile_ugly();\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n};\n\nmodule.exports = CssPreprocessor;\n"]}