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,OAEpD,IACF,EAAS,IAAM,GAGG,iBAAiB,cAAc,EAAU,EAC/D,IACA,EAAO,YAAc,WAAa,eAAe,GAAa,IAE9D,IAII,EAAe,EAEnB,OADA,EAAa,cALO,SAAuB,GACzC,OAAO,EAAc,GAAc,WAAM,EAAQ,EACnD,EAIO,CACT,CACF,CACF,CAEA,IAAI,eAAiB,SAAwB,GAC3C,MAA4B,iBAAd,EAAyB,EAAY,EAAU,aAAe,EAAU,MAAQ,QAChG,EAEA,QAAQ,UAAY,UACpB,QAAQ,aAAe","file":"/npm/@emotion/primitives-core@11.13.2/dist/emotion-primitives-core.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@emotion/primitives-core@11.13.2/dist/emotion-primitives-core.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar transform = require('css-to-react-native');\nvar React = require('react');\nvar react = require('@emotion/react');\n\nfunction _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }\n\nfunction _interopNamespace(e) {\n  if (e && e.__esModule) return e;\n  var n = Object.create(null);\n  if (e) {\n    Object.keys(e).forEach(function (k) {\n      if (k !== 'default') {\n        var d = Object.getOwnPropertyDescriptor(e, k);\n        Object.defineProperty(n, k, d.get ? d : {\n          enumerable: true,\n          get: function () { return e[k]; }\n        });\n      }\n    });\n  }\n  n[\"default\"] = e;\n  return Object.freeze(n);\n}\n\nvar transform__default = /*#__PURE__*/_interopDefault(transform);\nvar React__namespace = /*#__PURE__*/_interopNamespace(React);\n\nfunction interleave(vals) {\n  var strings = vals[0];\n  var finalArray = [strings[0]];\n\n  for (var i = 1, len = vals.length; i < len; i++) {\n    finalArray.push(vals[i]);\n\n    if (strings[i] !== undefined) {\n      finalArray.push(strings[i]);\n    }\n  }\n\n  return finalArray;\n}\n\n// they're reset on every call to css\n// this is done so we don't create a new\n// handleInterpolation function on every css call\n\nvar styles;\nvar generated = {};\nvar buffer = '';\nvar lastType;\n\nfunction handleInterpolation(interpolation, i, arr) {\n  var type = typeof interpolation;\n\n  if (type === 'string') {\n    // strip comments\n    interpolation = interpolation.replace(/\\/\\*[\\s\\S]*?\\*\\/|\\/\\/.*$/gm, '');\n  }\n\n  if (type === 'function') {\n    if (this === undefined) ; else {\n      handleInterpolation.call(this, interpolation(this), i, arr);\n    }\n\n    return;\n  }\n\n  var isIrrelevant = interpolation == null || type === 'boolean';\n  var isRnStyle = type === 'object' && !Array.isArray(interpolation) || type === 'number';\n\n  if (lastType === 'string' && (isRnStyle || isIrrelevant)) {\n    var converted = convertStyles(buffer);\n\n    if (converted !== undefined) {\n      styles.push(converted);\n    }\n\n    buffer = '';\n  }\n\n  if (isIrrelevant) {\n    return;\n  }\n\n  if (type === 'string') {\n    buffer += interpolation;\n\n    if (arr.length - 1 === i) {\n      var _converted = convertStyles(buffer);\n\n      if (_converted !== undefined) {\n        styles.push(_converted);\n      }\n\n      buffer = '';\n    }\n  }\n\n  if (isRnStyle) {\n    styles.push(interpolation);\n  }\n\n  if (Array.isArray(interpolation)) {\n    interpolation.forEach(handleInterpolation, this);\n  }\n\n  lastType = type;\n} // Use platform specific StyleSheet method for creating the styles.\n// This enables us to use the css``/css({}) in any environment (Native | Sketch | Web)\n\n\nfunction createCss(StyleSheet) {\n  return function css() {\n    var prevBuffer = buffer;\n    var vals; // these are declared earlier\n    // this is done so we don't create a new\n    // handleInterpolation function on every css call\n\n    styles = [];\n    buffer = '';\n    lastType = undefined;\n\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    if (args[0] == null || args[0].raw === undefined) {\n      vals = args;\n    } else {\n      vals = interleave(args);\n    }\n\n    try {\n      vals.forEach(handleInterpolation, this);\n    } finally {\n      buffer = prevBuffer;\n    }\n\n    var hash = JSON.stringify(styles);\n\n    if (!generated[hash]) {\n      var styleSheet = StyleSheet.create({\n        generated: StyleSheet.flatten(styles)\n      });\n      generated[hash] = styleSheet.generated;\n    }\n\n    return generated[hash];\n  };\n}\nvar propertyValuePattern = /\\s*([^\\s]+)\\s*:\\s*(.+?)\\s*$/;\n\nfunction convertPropertyValue(style) {\n  // Get prop name and prop value\n  var match = propertyValuePattern.exec(style); // match[2] will be \" \" in cases where there is no value\n  // but there is whitespace, e.g. \"color: \"\n\n  if (match !== null && match[2] !== ' ') {\n    // the first value in the array will\n    // be the whole string so we remove it\n    match.shift(); // yes i know this looks funny\n\n    this.push(match);\n  }\n}\n\nfunction convertStyles(str) {\n  if (str.trim() === '') return;\n  var stylePairs = [];\n  var parsedString = str.split(';');\n  parsedString.forEach(convertPropertyValue, stylePairs);\n\n  try {\n    return transform__default[\"default\"](stylePairs);\n  } catch (error) {\n    var msg = error == null ? void 0 : error.message;\n\n    if (msg && msg.includes('Failed to parse declaration')) {\n      var values = msg.replace('Failed to parse declaration ', '').replace(/\"/g, '').trim().split(':');\n      var errorMsg = \"'\" + values[0] + \"' shorthand property requires units for example - \" + values[0] + \": 20px or \" + values[0] + \": 10px 20px 40px 50px\";\n      console.error(errorMsg);\n    }\n  }\n}\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(prop) {\n  return prop !== 'theme' && prop !== 'as';\n};\n\nfunction createStyled(StyleSheet, options) {\n  var _options$getShouldFor;\n\n  var getShouldForwardProp = (_options$getShouldFor = options == null ? void 0 : options.getShouldForwardProp) != null ? _options$getShouldFor : function () {\n    return testOmitPropsOnComponent;\n  };\n  var css = createCss(StyleSheet);\n  return function createEmotion(component, options) {\n    var shouldForwardProp = options && options.shouldForwardProp ? options.shouldForwardProp : undefined;\n    var defaultShouldForwardProp = shouldForwardProp || getShouldForwardProp(component);\n    var shouldUseAs = !defaultShouldForwardProp('as');\n    return function createStyledComponent() {\n      var styles;\n\n      for (var _len = arguments.length, rawStyles = new Array(_len), _key = 0; _key < _len; _key++) {\n        rawStyles[_key] = arguments[_key];\n      }\n\n      if (rawStyles[0] == null || rawStyles[0].raw === undefined) {\n        styles = rawStyles;\n      } else {\n        styles = interleave(rawStyles);\n      } // do we really want to use the same infra as the web since it only really uses theming?\n\n\n      var Styled = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {\n        var finalTag = shouldUseAs && props.as || component;\n        var mergedProps = props;\n\n        if (props.theme == null) {\n          mergedProps = {};\n\n          for (var key in props) {\n            mergedProps[key] = props[key];\n          }\n\n          mergedProps.theme = React__namespace.useContext(react.ThemeContext);\n        }\n\n        var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getShouldForwardProp(finalTag) : defaultShouldForwardProp;\n        var newProps = {};\n\n        for (var _key2 in props) {\n          if (shouldUseAs && _key2 === 'as') continue;\n\n          if (finalShouldForwardProp(_key2)) {\n            newProps[_key2] = props[_key2];\n          }\n        }\n\n        newProps.style = [css.apply(mergedProps, styles), props.style];\n\n        if (ref) {\n          newProps.ref = ref;\n        }\n\n        return /*#__PURE__*/React__namespace.createElement(finalTag, newProps);\n      });\n      Styled.displayName = \"emotion(\" + getDisplayName(component) + \")\";\n\n      var withComponent = function withComponent(newComponent) {\n        return createEmotion(newComponent).apply(void 0, styles);\n      };\n\n      var castedStyled = Styled;\n      castedStyled.withComponent = withComponent;\n      return castedStyled;\n    };\n  };\n}\n\nvar getDisplayName = function getDisplayName(primitive) {\n  return typeof primitive === 'string' ? primitive : primitive.displayName || primitive.name || 'Styled';\n};\n\nexports.createCss = createCss;\nexports.createStyled = createStyled;\n"]}