{"dependencies":[{"name":"./processColor","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":14,"column":0},"end":{"line":14,"column":42}}],"key":"eUlcwF2XkbyXt6yUtZqHPlaBUq8=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return processBoxShadow;\n }\n });\n var _processColor = require(_dependencyMap[0], \"./processColor\");\n var processColor = _interopDefault(_processColor);\n function processBoxShadow(rawBoxShadows) {\n var result = [];\n if (rawBoxShadows == null) {\n return result;\n }\n var boxShadowList = typeof rawBoxShadows === 'string' ? parseBoxShadowString(rawBoxShadows.replace(/\\n/g, ' ')) : rawBoxShadows;\n for (var rawBoxShadow of boxShadowList) {\n var parsedBoxShadow = {\n offsetX: 0,\n offsetY: 0\n };\n var value = void 0;\n for (var arg in rawBoxShadow) {\n switch (arg) {\n case 'offsetX':\n value = typeof rawBoxShadow.offsetX === 'string' ? parseLength(rawBoxShadow.offsetX) : rawBoxShadow.offsetX;\n if (value == null) {\n return [];\n }\n parsedBoxShadow.offsetX = value;\n break;\n case 'offsetY':\n value = typeof rawBoxShadow.offsetY === 'string' ? parseLength(rawBoxShadow.offsetY) : rawBoxShadow.offsetY;\n if (value == null) {\n return [];\n }\n parsedBoxShadow.offsetY = value;\n break;\n case 'spreadDistance':\n value = typeof rawBoxShadow.spreadDistance === 'string' ? parseLength(rawBoxShadow.spreadDistance) : rawBoxShadow.spreadDistance;\n if (value == null) {\n return [];\n }\n parsedBoxShadow.spreadDistance = value;\n break;\n case 'blurRadius':\n value = typeof rawBoxShadow.blurRadius === 'string' ? parseLength(rawBoxShadow.blurRadius) : rawBoxShadow.blurRadius;\n if (value == null || value < 0) {\n return [];\n }\n parsedBoxShadow.blurRadius = value;\n break;\n case 'color':\n var color = (0, processColor.default)(rawBoxShadow.color);\n if (color == null) {\n return [];\n }\n parsedBoxShadow.color = color;\n break;\n case 'inset':\n parsedBoxShadow.inset = rawBoxShadow.inset;\n }\n }\n result.push(parsedBoxShadow);\n }\n return result;\n }\n function parseBoxShadowString(rawBoxShadows) {\n var result = [];\n for (var rawBoxShadow of rawBoxShadows.split(/,(?![^()]*\\))/).map(function (bS) {\n return bS.trim();\n }).filter(function (bS) {\n return bS !== '';\n })) {\n var boxShadow = {\n offsetX: 0,\n offsetY: 0\n };\n var offsetX = void 0;\n var offsetY = void 0;\n var keywordDetectedAfterLength = false;\n var lengthCount = 0;\n var args = rawBoxShadow.split(/\\s+(?![^(]*\\))/);\n for (var arg of args) {\n var processedColor = (0, processColor.default)(arg);\n if (processedColor != null) {\n if (boxShadow.color != null) {\n return [];\n }\n if (offsetX != null) {\n keywordDetectedAfterLength = true;\n }\n boxShadow.color = arg;\n continue;\n }\n if (arg === 'inset') {\n if (boxShadow.inset != null) {\n return [];\n }\n if (offsetX != null) {\n keywordDetectedAfterLength = true;\n }\n boxShadow.inset = true;\n continue;\n }\n switch (lengthCount) {\n case 0:\n offsetX = arg;\n lengthCount++;\n break;\n case 1:\n if (keywordDetectedAfterLength) {\n return [];\n }\n offsetY = arg;\n lengthCount++;\n break;\n case 2:\n if (keywordDetectedAfterLength) {\n return [];\n }\n boxShadow.blurRadius = arg;\n lengthCount++;\n break;\n case 3:\n if (keywordDetectedAfterLength) {\n return [];\n }\n boxShadow.spreadDistance = arg;\n lengthCount++;\n break;\n default:\n return [];\n }\n }\n if (offsetX == null || offsetY == null) {\n return [];\n }\n boxShadow.offsetX = offsetX;\n boxShadow.offsetY = offsetY;\n result.push(boxShadow);\n }\n return result;\n }\n function parseLength(length) {\n var argsWithUnitsRegex = /([+-]?\\d*(\\.\\d+)?)([\\w\\W]+)?/g;\n var match = argsWithUnitsRegex.exec(length);\n if (!match || Number.isNaN(match[1])) {\n return null;\n }\n if (match[3] != null && match[3] !== 'px') {\n return null;\n }\n if (match[3] == null && match[1] !== '0') {\n return null;\n }\n return Number(match[1]);\n }\n});","lineCount":168,"map":[[12,2,25,15,"Object"],[12,8,25,15],[12,9,25,15,"defineProperty"],[12,23,25,15],[12,24,25,15,"exports"],[12,31,25,15],[13,4,25,15,"enumerable"],[13,14,25,15],[14,4,25,15,"get"],[14,7,25,15],[14,18,25,15,"get"],[14,19,25,15],[15,6,25,15],[15,13,25,15,"processBoxShadow"],[15,29,25,15],[16,4,25,15],[17,2,25,15],[18,2,14,0],[18,6,14,0,"_processColor"],[18,19,14,0],[18,22,14,0,"require"],[18,29,14,0],[18,30,14,0,"_dependencyMap"],[18,44,14,0],[19,2,14,0],[19,6,14,0,"processColor"],[19,18,14,0],[19,21,14,0,"_interopDefault"],[19,36,14,0],[19,37,14,0,"_processColor"],[19,50,14,0],[20,2,25,15],[20,11,25,24,"processBoxShadow"],[20,27,25,40,"processBoxShadow"],[20,28,26,2,"rawBoxShadows"],[20,41,26,59],[20,43,27,26],[21,4,28,2],[21,8,28,8,"result"],[21,14,28,38],[21,17,28,41],[21,19,28,43],[22,4,29,2],[22,8,29,6,"rawBoxShadows"],[22,21,29,19],[22,25,29,23],[22,29,29,27],[22,31,29,29],[23,6,30,4],[23,13,30,11,"result"],[23,19,30,17],[24,4,31,2],[25,4,33,2],[25,8,33,8,"boxShadowList"],[25,21,33,21],[25,24,34,4],[25,31,34,11,"rawBoxShadows"],[25,44,34,24],[25,49,34,29],[25,57,34,37],[25,60,35,8,"parseBoxShadowString"],[25,80,35,28],[25,81,35,29,"rawBoxShadows"],[25,94,35,42],[25,95,35,43,"replace"],[25,102,35,50],[25,103,35,51],[25,108,35,56],[25,110,35,58],[25,113,35,61],[25,114,35,62],[25,115,35,63],[25,118,36,8,"rawBoxShadows"],[25,131,36,21],[26,4,38,2],[26,9,38,7],[26,13,38,13,"rawBoxShadow"],[26,25,38,25],[26,29,38,29,"boxShadowList"],[26,42,38,42],[26,44,38,44],[27,6,39,4],[27,10,39,10,"parsedBoxShadow"],[27,25,39,42],[27,28,39,45],[28,8,40,6,"offsetX"],[28,15,40,13],[28,17,40,15],[28,18,40,16],[29,8,41,6,"offsetY"],[29,15,41,13],[29,17,41,15],[30,6,42,4],[30,7,42,5],[31,6,44,4],[31,10,44,8,"value"],[31,15,44,13],[32,6,45,4],[32,11,45,9],[32,15,45,15,"arg"],[32,18,45,18],[32,22,45,22,"rawBoxShadow"],[32,34,45,34],[32,36,45,36],[33,8,46,6],[33,16,46,14,"arg"],[33,19,46,17],[34,10,47,8],[34,15,47,13],[34,24,47,22],[35,12,48,10,"value"],[35,17,48,15],[35,20,49,12],[35,27,49,19,"rawBoxShadow"],[35,39,49,31],[35,40,49,32,"offsetX"],[35,47,49,39],[35,52,49,44],[35,60,49,52],[35,63,50,16,"parseLength"],[35,74,50,27],[35,75,50,28,"rawBoxShadow"],[35,87,50,40],[35,88,50,41,"offsetX"],[35,95,50,48],[35,96,50,49],[35,99,51,16,"rawBoxShadow"],[35,111,51,28],[35,112,51,29,"offsetX"],[35,119,51,36],[36,12,52,10],[36,16,52,14,"value"],[36,21,52,19],[36,25,52,23],[36,29,52,27],[36,31,52,29],[37,14,53,12],[37,21,53,19],[37,23,53,21],[38,12,54,10],[39,12,56,10,"parsedBoxShadow"],[39,27,56,25],[39,28,56,26,"offsetX"],[39,35,56,33],[39,38,56,36,"value"],[39,43,56,41],[40,12,57,10],[41,10,58,8],[41,15,58,13],[41,24,58,22],[42,12,59,10,"value"],[42,17,59,15],[42,20,60,12],[42,27,60,19,"rawBoxShadow"],[42,39,60,31],[42,40,60,32,"offsetY"],[42,47,60,39],[42,52,60,44],[42,60,60,52],[42,63,61,16,"parseLength"],[42,74,61,27],[42,75,61,28,"rawBoxShadow"],[42,87,61,40],[42,88,61,41,"offsetY"],[42,95,61,48],[42,96,61,49],[42,99,62,16,"rawBoxShadow"],[42,111,62,28],[42,112,62,29,"offsetY"],[42,119,62,36],[43,12,63,10],[43,16,63,14,"value"],[43,21,63,19],[43,25,63,23],[43,29,63,27],[43,31,63,29],[44,14,64,12],[44,21,64,19],[44,23,64,21],[45,12,65,10],[46,12,67,10,"parsedBoxShadow"],[46,27,67,25],[46,28,67,26,"offsetY"],[46,35,67,33],[46,38,67,36,"value"],[46,43,67,41],[47,12,68,10],[48,10,69,8],[48,15,69,13],[48,31,69,29],[49,12,70,10,"value"],[49,17,70,15],[49,20,71,12],[49,27,71,19,"rawBoxShadow"],[49,39,71,31],[49,40,71,32,"spreadDistance"],[49,54,71,46],[49,59,71,51],[49,67,71,59],[49,70,72,16,"parseLength"],[49,81,72,27],[49,82,72,28,"rawBoxShadow"],[49,94,72,40],[49,95,72,41,"spreadDistance"],[49,109,72,55],[49,110,72,56],[49,113,73,16,"rawBoxShadow"],[49,125,73,28],[49,126,73,29,"spreadDistance"],[49,140,73,43],[50,12,74,10],[50,16,74,14,"value"],[50,21,74,19],[50,25,74,23],[50,29,74,27],[50,31,74,29],[51,14,75,12],[51,21,75,19],[51,23,75,21],[52,12,76,10],[53,12,78,10,"parsedBoxShadow"],[53,27,78,25],[53,28,78,26,"spreadDistance"],[53,42,78,40],[53,45,78,43,"value"],[53,50,78,48],[54,12,79,10],[55,10,80,8],[55,15,80,13],[55,27,80,25],[56,12,81,10,"value"],[56,17,81,15],[56,20,82,12],[56,27,82,19,"rawBoxShadow"],[56,39,82,31],[56,40,82,32,"blurRadius"],[56,50,82,42],[56,55,82,47],[56,63,82,55],[56,66,83,16,"parseLength"],[56,77,83,27],[56,78,83,28,"rawBoxShadow"],[56,90,83,40],[56,91,83,41,"blurRadius"],[56,101,83,51],[56,102,83,52],[56,105,84,16,"rawBoxShadow"],[56,117,84,28],[56,118,84,29,"blurRadius"],[56,128,84,39],[57,12,85,10],[57,16,85,14,"value"],[57,21,85,19],[57,25,85,23],[57,29,85,27],[57,33,85,31,"value"],[57,38,85,36],[57,41,85,39],[57,42,85,40],[57,44,85,42],[58,14,86,12],[58,21,86,19],[58,23,86,21],[59,12,87,10],[60,12,89,10,"parsedBoxShadow"],[60,27,89,25],[60,28,89,26,"blurRadius"],[60,38,89,36],[60,41,89,39,"value"],[60,46,89,44],[61,12,90,10],[62,10,91,8],[62,15,91,13],[62,22,91,20],[63,12,92,10],[63,16,92,16,"color"],[63,21,92,21],[63,24,92,24],[63,28,92,24,"processColor"],[63,40,92,36],[63,41,92,36,"default"],[63,48,92,36],[63,50,92,37,"rawBoxShadow"],[63,62,92,49],[63,63,92,50,"color"],[63,68,92,55],[63,69,92,56],[64,12,93,10],[64,16,93,14,"color"],[64,21,93,19],[64,25,93,23],[64,29,93,27],[64,31,93,29],[65,14,94,12],[65,21,94,19],[65,23,94,21],[66,12,95,10],[67,12,97,10,"parsedBoxShadow"],[67,27,97,25],[67,28,97,26,"color"],[67,33,97,31],[67,36,97,34,"color"],[67,41,97,39],[68,12,98,10],[69,10,99,8],[69,15,99,13],[69,22,99,20],[70,12,100,10,"parsedBoxShadow"],[70,27,100,25],[70,28,100,26,"inset"],[70,33,100,31],[70,36,100,34,"rawBoxShadow"],[70,48,100,46],[70,49,100,47,"inset"],[70,54,100,52],[71,8,101,6],[72,6,102,4],[73,6,103,4,"result"],[73,12,103,10],[73,13,103,11,"push"],[73,17,103,15],[73,18,103,16,"parsedBoxShadow"],[73,33,103,31],[73,34,103,32],[74,4,104,2],[75,4,105,2],[75,11,105,9,"result"],[75,17,105,15],[76,2,106,0],[77,2,108,0],[77,11,108,9,"parseBoxShadowString"],[77,31,108,29,"parseBoxShadowString"],[77,32,108,30,"rawBoxShadows"],[77,45,108,51],[77,47,108,76],[78,4,109,2],[78,8,109,6,"result"],[78,14,109,35],[78,17,109,38],[78,19,109,40],[79,4,111,2],[79,9,111,7],[79,13,111,13,"rawBoxShadow"],[79,25,111,25],[79,29,111,29,"rawBoxShadows"],[79,42,111,42],[79,43,112,5,"split"],[79,48,112,10],[79,49,112,11],[79,64,112,26],[79,65,112,27],[79,66,113,5,"map"],[79,69,113,8],[79,70,113,9],[79,80,113,9,"bS"],[79,82,113,11],[80,6,113,11],[80,13,113,15,"bS"],[80,15,113,17],[80,16,113,18,"trim"],[80,20,113,22],[80,21,113,23],[80,22,113,24],[81,4,113,24],[81,6,113,25],[81,7,114,5,"filter"],[81,13,114,11],[81,14,114,12],[81,24,114,12,"bS"],[81,26,114,14],[82,6,114,14],[82,13,114,18,"bS"],[82,15,114,20],[82,20,114,25],[82,22,114,27],[83,4,114,27],[83,6,114,28],[83,8,114,30],[84,6,115,4],[84,10,115,10,"boxShadow"],[84,19,115,35],[84,22,115,38],[85,8,116,6,"offsetX"],[85,15,116,13],[85,17,116,15],[85,18,116,16],[86,8,117,6,"offsetY"],[86,15,117,13],[86,17,117,15],[87,6,118,4],[87,7,118,5],[88,6,119,4],[88,10,119,8,"offsetX"],[88,17,119,32],[89,6,120,4],[89,10,120,8,"offsetY"],[89,17,120,32],[90,6,121,4],[90,10,121,8,"keywordDetectedAfterLength"],[90,36,121,34],[90,39,121,37],[90,44,121,42],[91,6,123,4],[91,10,123,8,"lengthCount"],[91,21,123,19],[91,24,123,22],[91,25,123,23],[92,6,126,4],[92,10,126,10,"args"],[92,14,126,14],[92,17,126,17,"rawBoxShadow"],[92,29,126,29],[92,30,126,30,"split"],[92,35,126,35],[92,36,126,36],[92,52,126,52],[92,53,126,53],[93,6,127,4],[93,11,127,9],[93,15,127,15,"arg"],[93,18,127,18],[93,22,127,22,"args"],[93,26,127,26],[93,28,127,28],[94,8,128,6],[94,12,128,12,"processedColor"],[94,26,128,26],[94,29,128,29],[94,33,128,29,"processColor"],[94,45,128,41],[94,46,128,41,"default"],[94,53,128,41],[94,55,128,42,"arg"],[94,58,128,45],[94,59,128,46],[95,8,129,6],[95,12,129,10,"processedColor"],[95,26,129,24],[95,30,129,28],[95,34,129,32],[95,36,129,34],[96,10,130,8],[96,14,130,12,"boxShadow"],[96,23,130,21],[96,24,130,22,"color"],[96,29,130,27],[96,33,130,31],[96,37,130,35],[96,39,130,37],[97,12,131,10],[97,19,131,17],[97,21,131,19],[98,10,132,8],[99,10,133,8],[99,14,133,12,"offsetX"],[99,21,133,19],[99,25,133,23],[99,29,133,27],[99,31,133,29],[100,12,134,10,"keywordDetectedAfterLength"],[100,38,134,36],[100,41,134,39],[100,45,134,43],[101,10,135,8],[102,10,136,8,"boxShadow"],[102,19,136,17],[102,20,136,18,"color"],[102,25,136,23],[102,28,136,26,"arg"],[102,31,136,29],[103,10,137,8],[104,8,138,6],[105,8,140,6],[105,12,140,10,"arg"],[105,15,140,13],[105,20,140,18],[105,27,140,25],[105,29,140,27],[106,10,141,8],[106,14,141,12,"boxShadow"],[106,23,141,21],[106,24,141,22,"inset"],[106,29,141,27],[106,33,141,31],[106,37,141,35],[106,39,141,37],[107,12,142,10],[107,19,142,17],[107,21,142,19],[108,10,143,8],[109,10,144,8],[109,14,144,12,"offsetX"],[109,21,144,19],[109,25,144,23],[109,29,144,27],[109,31,144,29],[110,12,145,10,"keywordDetectedAfterLength"],[110,38,145,36],[110,41,145,39],[110,45,145,43],[111,10,146,8],[112,10,147,8,"boxShadow"],[112,19,147,17],[112,20,147,18,"inset"],[112,25,147,23],[112,28,147,26],[112,32,147,30],[113,10,148,8],[114,8,149,6],[115,8,151,6],[115,16,151,14,"lengthCount"],[115,27,151,25],[116,10,152,8],[116,15,152,13],[116,16,152,14],[117,12,153,10,"offsetX"],[117,19,153,17],[117,22,153,20,"arg"],[117,25,153,23],[118,12,154,10,"lengthCount"],[118,23,154,21],[118,25,154,23],[119,12,155,10],[120,10,156,8],[120,15,156,13],[120,16,156,14],[121,12,157,10],[121,16,157,14,"keywordDetectedAfterLength"],[121,42,157,40],[121,44,157,42],[122,14,158,12],[122,21,158,19],[122,23,158,21],[123,12,159,10],[124,12,160,10,"offsetY"],[124,19,160,17],[124,22,160,20,"arg"],[124,25,160,23],[125,12,161,10,"lengthCount"],[125,23,161,21],[125,25,161,23],[126,12,162,10],[127,10,163,8],[127,15,163,13],[127,16,163,14],[128,12,164,10],[128,16,164,14,"keywordDetectedAfterLength"],[128,42,164,40],[128,44,164,42],[129,14,165,12],[129,21,165,19],[129,23,165,21],[130,12,166,10],[131,12,167,10,"boxShadow"],[131,21,167,19],[131,22,167,20,"blurRadius"],[131,32,167,30],[131,35,167,33,"arg"],[131,38,167,36],[132,12,168,10,"lengthCount"],[132,23,168,21],[132,25,168,23],[133,12,169,10],[134,10,170,8],[134,15,170,13],[134,16,170,14],[135,12,171,10],[135,16,171,14,"keywordDetectedAfterLength"],[135,42,171,40],[135,44,171,42],[136,14,172,12],[136,21,172,19],[136,23,172,21],[137,12,173,10],[138,12,174,10,"boxShadow"],[138,21,174,19],[138,22,174,20,"spreadDistance"],[138,36,174,34],[138,39,174,37,"arg"],[138,42,174,40],[139,12,175,10,"lengthCount"],[139,23,175,21],[139,25,175,23],[140,12,176,10],[141,10,177,8],[142,12,178,10],[142,19,178,17],[142,21,178,19],[143,8,179,6],[144,6,180,4],[145,6,182,4],[145,10,182,8,"offsetX"],[145,17,182,15],[145,21,182,19],[145,25,182,23],[145,29,182,27,"offsetY"],[145,36,182,34],[145,40,182,38],[145,44,182,42],[145,46,182,44],[146,8,183,6],[146,15,183,13],[146,17,183,15],[147,6,184,4],[148,6,186,4,"boxShadow"],[148,15,186,13],[148,16,186,14,"offsetX"],[148,23,186,21],[148,26,186,24,"offsetX"],[148,33,186,31],[149,6,187,4,"boxShadow"],[149,15,187,13],[149,16,187,14,"offsetY"],[149,23,187,21],[149,26,187,24,"offsetY"],[149,33,187,31],[150,6,189,4,"result"],[150,12,189,10],[150,13,189,11,"push"],[150,17,189,15],[150,18,189,16,"boxShadow"],[150,27,189,25],[150,28,189,26],[151,4,190,2],[152,4,191,2],[152,11,191,9,"result"],[152,17,191,15],[153,2,192,0],[154,2,194,0],[154,11,194,9,"parseLength"],[154,22,194,20,"parseLength"],[154,23,194,21,"length"],[154,29,194,35],[154,31,194,46],[155,4,196,2],[155,8,196,8,"argsWithUnitsRegex"],[155,26,196,26],[155,29,196,29],[155,60,196,60],[156,4,197,2],[156,8,197,8,"match"],[156,13,197,13],[156,16,197,16,"argsWithUnitsRegex"],[156,34,197,34],[156,35,197,35,"exec"],[156,39,197,39],[156,40,197,40,"length"],[156,46,197,46],[156,47,197,47],[157,4,199,2],[157,8,199,6],[157,9,199,7,"match"],[157,14,199,12],[157,18,199,16,"Number"],[157,24,199,22],[157,25,199,23,"isNaN"],[157,30,199,28],[157,31,199,29,"match"],[157,36,199,34],[157,37,199,35],[157,38,199,36],[157,39,199,37],[157,40,199,38],[157,42,199,40],[158,6,200,4],[158,13,200,11],[158,17,200,15],[159,4,201,2],[160,4,203,2],[160,8,203,6,"match"],[160,13,203,11],[160,14,203,12],[160,15,203,13],[160,16,203,14],[160,20,203,18],[160,24,203,22],[160,28,203,26,"match"],[160,33,203,31],[160,34,203,32],[160,35,203,33],[160,36,203,34],[160,41,203,39],[160,45,203,43],[160,47,203,45],[161,6,204,4],[161,13,204,11],[161,17,204,15],[162,4,205,2],[163,4,207,2],[163,8,207,6,"match"],[163,13,207,11],[163,14,207,12],[163,15,207,13],[163,16,207,14],[163,20,207,18],[163,24,207,22],[163,28,207,26,"match"],[163,33,207,31],[163,34,207,32],[163,35,207,33],[163,36,207,34],[163,41,207,39],[163,44,207,42],[163,46,207,44],[164,6,208,4],[164,13,208,11],[164,17,208,15],[165,4,209,2],[166,4,211,2],[166,11,211,9,"Number"],[166,17,211,15],[166,18,211,16,"match"],[166,23,211,21],[166,24,211,22],[166,25,211,23],[166,26,211,24],[166,27,211,25],[167,2,212,0],[168,0,212,1],[168,3]],"functionMap":{"names":["","processBoxShadow","parseBoxShadowString","rawBoxShadows.split.map$argument_0","rawBoxShadows.split.map.filter$argument_0","parseLength"],"mappings":"AAA;eCwB;CDiF;AEE;SCK,eD;YEC,eF;CF8E;AKE"},"hasCjsExports":false},"type":"js/module"}]}