{"version":3,"file":"style-to-js-dxvl1blT.js","sources":["../../node_modules/style-to-js/cjs/utilities.js","../../node_modules/style-to-js/cjs/index.js"],"sourcesContent":["\"use strict\";\nexports.__esModule = true;\nexports.camelCase = void 0;\nvar CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;\nvar HYPHEN_REGEX = /-([a-z])/g;\nvar NO_HYPHEN_REGEX = /^[^-]+$/;\nvar VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;\nvar MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;\nvar skipCamelCase = function (property) {\n return !property ||\n NO_HYPHEN_REGEX.test(property) ||\n CUSTOM_PROPERTY_REGEX.test(property);\n};\nvar capitalize = function (match, character) {\n return character.toUpperCase();\n};\nvar trimHyphen = function (match, prefix) { return \"\".concat(prefix, \"-\"); };\nvar camelCase = function (property, options) {\n if (options === void 0) { options = {}; }\n if (skipCamelCase(property)) {\n return property;\n }\n property = property.toLowerCase();\n if (options.reactCompat) {\n property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);\n }\n else {\n property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);\n }\n return property.replace(HYPHEN_REGEX, capitalize);\n};\nexports.camelCase = camelCase;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nexports.__esModule = true;\nvar style_to_object_1 = __importDefault(require(\"style-to-object\"));\nvar utilities_1 = require(\"./utilities\");\nfunction StyleToJS(style, options) {\n var output = {};\n if (!style || typeof style !== 'string') {\n return output;\n }\n (0, style_to_object_1[\"default\"])(style, function (property, value) {\n if (property && value) {\n output[(0, utilities_1.camelCase)(property, options)] = value;\n }\n });\n return output;\n}\nexports[\"default\"] = StyleToJS;\n"],"names":["utilities","CUSTOM_PROPERTY_REGEX","HYPHEN_REGEX","NO_HYPHEN_REGEX","VENDOR_PREFIX_REGEX","MS_VENDOR_PREFIX_REGEX","skipCamelCase","property","capitalize","match","character","trimHyphen","prefix","camelCase","options","__importDefault","this","mod","exports","style_to_object_1","require$$0","utilities_1","require$$1","StyleToJS","style","output","value"],"mappings":"kbACAA,EAAO,WAAc,GACJA,EAAA,UAAG,OACpB,IAAIC,EAAwB,oBACxBC,EAAe,YACfC,EAAkB,UAClBC,EAAsB,6BACtBC,EAAyB,UACzBC,EAAgB,SAAUC,EAAU,CACpC,MAAO,CAACA,GACJJ,EAAgB,KAAKI,CAAQ,GAC7BN,EAAsB,KAAKM,CAAQ,CAC3C,EACIC,EAAa,SAAUC,EAAOC,EAAW,CACzC,OAAOA,EAAU,YAAa,CAClC,EACIC,EAAa,SAAUF,EAAOG,EAAQ,CAAE,MAAO,GAAG,OAAOA,EAAQ,GAAG,CAAI,EACxEC,EAAY,SAAUN,EAAUO,EAAS,CAEzC,OADIA,IAAY,SAAUA,EAAU,CAAA,GAChCR,EAAcC,CAAQ,EACfA,GAEXA,EAAWA,EAAS,YAAa,EAC7BO,EAAQ,YACRP,EAAWA,EAAS,QAAQF,EAAwBM,CAAU,EAG9DJ,EAAWA,EAAS,QAAQH,EAAqBO,CAAU,EAExDJ,EAAS,QAAQL,EAAcM,CAAU,EACpD,EACAR,EAAA,UAAoBa,eC9BpB,IAAIE,EAAmBC,GAAQA,EAAK,iBAAoB,SAAUC,EAAK,CACnE,OAAQA,GAAOA,EAAI,WAAcA,EAAM,CAAE,QAAWA,CAAK,CAC5D,EACDC,EAAA,WAAqB,GACrB,IAAIC,EAAoBJ,EAAgBK,CAA0B,EAC9DC,EAAcC,EAClB,SAASC,EAAUC,EAAOV,EAAS,CAC/B,IAAIW,EAAS,CAAE,EACf,MAAI,CAACD,GAAS,OAAOA,GAAU,aAG3BL,EAAkB,SAAYK,EAAO,SAAUjB,EAAUmB,EAAO,CAC5DnB,GAAYmB,IACZD,KAAWJ,EAAY,WAAWd,EAAUO,CAAO,CAAC,EAAIY,EAEpE,CAAK,EACMD,EAEXP,EAAQ,QAAaK","x_google_ignoreList":[0,1]}