{"version":3,"sources":["jsdelivr-header.js","/npm/alphach@0.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,SAAS,KAAK,EAAS,GAEtB,OAAO,EAAQ,QADA,sEACgB,oBAAoB,KACpD,CAEA,SAAS,MAAM,EAAS,GACvB,MAAM,EAAa,EAAQ,MAAM,EAAG,GAEpC,GACM,QADE,EAEN,OAAO,KAAK,EAAS,GAErB,MAAM,IAAI,MAAM,GAAG,0CAEtB,CAEA,OAAO,QAAU","file":"/npm/alphach@0.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/alphach@0.0.1/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","function rgba(cstring, alpha) {\n\tconst regexp = /rgba?\\((\\d+){1,3},\\s*(\\d+){1,3},\\s*(\\d+){1,3}(,\\s*([0-9.]){1,3})*\\)/;\n\treturn cstring.replace(regexp, `rgba($1, $2, $3, ${alpha})`)\n}\n\nfunction color(cstring, alpha) {\n\tconst colorModel = cstring.slice(0, 3);\n\n\tswitch (colorModel) {\n\t\tcase 'rgb':\n\t\t\treturn rgba(cstring, alpha);\n\t\tdefault:\n\t\t\tthrow new Error(`${colorModel} color model isn\\'t currently supported`);\n\t}\n}\n\nmodule.exports = color;\n"]}