{"version":3,"sources":["jsdelivr-header.js","/npm/@pigment-css/react@0.0.31/src/sx.js","/npm/@pigment-css/react@0.0.31/src/keyframes.js","/npm/@pigment-css/react@0.0.31/src/createUseThemeProps.js","/npm/@pigment-css/react@0.0.31/src/createExtendSxProp.js","/npm/@pigment-css/react@0.0.31/src/useTheme.js","/npm/@pigment-css/react@0.0.31/src/globalCss.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNe,SAAR,GAAoB,GAAe,UAAE,EAAA,MAAW,IACrD,IAAI,EAAU,GACV,EAAS,GAEb,SAAS,EAAU,GACb,IACF,GAAW,GAAsB,iBAAZ,EAAuB,EAAU,EAAQ,aAC9D,EAAS,mEACJ,GACC,GAA8B,iBAAZ,EAAuB,EAAQ,UAAO,GAEhE,CAGE,MAAM,QAAQ,GACF,EAAA,QAAS,IACrB,EAAU,KAGZ,EAAU,GAGZ,MAAM,EAAY,GAYX,OAVH,GACK,OAAA,QAAQ,GAAQ,QAAQ,EAAE,GAAc,EAAO,OAExC,EAAA,KAAK,KADI,iBAAV,GAAsB,EACC,EAEA,GAAG,QAKlC,CACL,UAAW,GAAG,EAAQ,SAAS,EAAY,IAAI,IAAc,KAC7D,MAAO,mEACF,GACA,GAGT,CCpCe,SAAR,YACD,GAAgC,oBAAzB,qBAGX,MAAM,IAAI,MACR,uQAEJ,CCLe,SAAR,oBAAqC,GAC1C,OAAO,UAAuB,MAAE,IAC1B,GAA8B,iBAAvB,EAEF,OAAA,EAET,MAAM,EAAe,EAGf,EAAS,gCAAK,GAAA,GAiCb,OA/BP,OAAO,KAAK,GAAc,QAAS,IACjC,GAAI,EAAS,WAAW,MAAM,wBAC5B,EAAO,GAAY,gEAAA,GACd,EAAa,IACb,EAAO,SAAQ,GAEX,EAAS,WAAW,MAAM,iCAAkC,CACrE,MAAM,EAAmB,EAAa,IAAa,GAC7C,EAAY,EAAM,GACjB,EAAA,GAAY,GAEd,GAAc,OAAO,KAAK,GAGnB,GAAqB,OAAO,KAAK,IAIpC,EAAA,GAAY,gCAAK,GAAA,GACxB,OAAO,KAAK,GAAkB,QAAS,IAC9B,EAAA,GAAU,GAAgB,4BAC/B,EAAiB,GACjB,EAAU,OANd,EAAO,GAAY,EAHnB,EAAO,GAAY,CAYrB,WACyC,IAAhC,EAAO,KACT,EAAA,GAAY,EAAa,MAI7B,CAAA,CAEX,CC7CA,SAAS,aAAa,GACpB,OAAO,gCAAK,GAAA,EACd,CACe,SAAR,qBACE,OAAA,YACT,CCNe,SAAR,WACD,GAAgC,oBAAzB,qBAGX,MAAM,IAAI,MACR,sQAEJ,CCPe,SAAR,YACD,GAAgC,oBAAzB,qBAGX,MAAM,IAAI,MACR,uQAEJ,C","file":"/npm/@pigment-css/react@0.0.31/build/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@pigment-css/react@0.0.31/build/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","export default function sx(transformedSx, { className, style }) {\n  let sxClass = '';\n  let sxVars = {};\n\n  function iterateSx(element) {\n    if (element) {\n      sxClass += `${typeof element === 'string' ? element : element.className} `;\n      sxVars = {\n        ...sxVars,\n        ...(element && typeof element !== 'string' ? element.vars : undefined),\n      };\n    }\n  }\n\n  if (Array.isArray(transformedSx)) {\n    transformedSx.forEach((element) => {\n      iterateSx(element);\n    });\n  } else {\n    iterateSx(transformedSx);\n  }\n\n  const varStyles = {};\n\n  if (sxVars) {\n    Object.entries(sxVars).forEach(([cssVariable, [value, isUnitLess]]) => {\n      if (typeof value === 'string' || isUnitLess) {\n        varStyles[`--${cssVariable}`] = value;\n      } else {\n        varStyles[`--${cssVariable}`] = `${value}px`;\n      }\n    });\n  }\n\n  return {\n    className: `${sxClass.trim()}${className ? ` ${className}` : ''}`,\n    style: {\n      ...varStyles,\n      ...style,\n    },\n  };\n}\n","/**\n * `__wyw_dynamic_import` is a special global var that is set during the evaluation phase by wyw.\n * So during eval phase, it can happen that some code is calling the runtime function.\n * We do not want to throw error in that case as we want the evaluation to happen.\n */\nexport default function keyframes() {\n  if (typeof __wyw_dynamic_import !== 'undefined') {\n    return;\n  }\n  throw new Error(\n    `${process.env.PACKAGE_NAME}: You were trying to call \"keyframes\" function without configuring your bundler. Make sure to install the bundler specific plugin and use it. @pigment-css/vite-plugin for Vite integration or @pigment-css/nextjs-plugin for Next.js integration.`,\n  );\n}\n","import { internal_resolveProps as resolveProps } from '@mui/utils';\n\n/**\n * Runtime function for creating `useThemeProps`.\n * In the codebase, the first argument will be a string that represent the component slug (should match one of the `theme.components.*`).\n * Then, the transformation will replace the first argument with the `defaultProps` object if provided.\n */\nexport default function createUseThemeProps(nameOrDefaultProps) {\n  return function useThemeProps({ props }) {\n    if (typeof nameOrDefaultProps === 'string') {\n      // if no default props provided in the theme, return the props as is.\n      return props;\n    }\n    const defaultProps = nameOrDefaultProps;\n    // The same logic as in packages/mui-utils/src/resolveProps.ts\n    // TODO: consider reusing the logic from the utils package\n    const output = { ...props };\n\n    Object.keys(defaultProps).forEach((propName) => {\n      if (propName.toString().match(/^(components|slots)$/)) {\n        output[propName] = {\n          ...defaultProps[propName],\n          ...output[propName],\n        };\n      } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n        const defaultSlotProps = defaultProps[propName] || {};\n        const slotProps = props[propName];\n        output[propName] = {};\n\n        if (!slotProps || !Object.keys(slotProps)) {\n          // Reduce the iteration if the slot props is empty\n          output[propName] = defaultSlotProps;\n        } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n          // Reduce the iteration if the default slot props is empty\n          output[propName] = slotProps;\n        } else {\n          output[propName] = { ...slotProps };\n          Object.keys(defaultSlotProps).forEach((slotPropName) => {\n            output[propName][slotPropName] = resolveProps(\n              defaultSlotProps[slotPropName],\n              slotProps[slotPropName],\n            );\n          });\n        }\n      } else if (output[propName] === undefined) {\n        output[propName] = defaultProps[propName];\n      }\n    });\n\n    return output;\n  };\n}\n","/**\n * Runtime function for creating `extendSxProp`.\n *\n * This is a placeholder for the runtime function for replacing the `extendSxProp` in Material UI\n * to reduce bundle size only. DO NOT use it in your codebase.\n */\nfunction extendSxProp(props) {\n  return { ...props };\n}\nexport default function createExtendSxProp() {\n  return extendSxProp;\n}\n","/**\n * `__wyw_dynamic_import` is a special global var that is set during the evaluation phase by wyw.\n * So during eval phase, it can happen that some code is calling the runtime function.\n * We do not want to throw error in that case as we want the evaluation to happen.\n */\nexport default function useTheme() {\n  if (typeof __wyw_dynamic_import !== 'undefined') {\n    return;\n  }\n  throw new Error(\n    `${process.env.PACKAGE_NAME}: You were trying to call \"useTheme\" function without configuring your bundler. Make sure to install the bundler specific plugin and use it. @pigment-css/vite-plugin for Vite integration or @pigment-css/nextjs-plugin for Next.js integration.`,\n  );\n}\n","/**\n * `__wyw_dynamic_import` is a special global var that is set during the evaluation phase by wyw.\n * So during eval phase, it can happen that some code is calling the runtime function.\n * We do not want to throw error in that case as we want the evaluation to happen.\n */\nexport default function globalCss() {\n  if (typeof __wyw_dynamic_import !== 'undefined') {\n    return;\n  }\n  throw new Error(\n    `${process.env.PACKAGE_NAME}: You were trying to call \"globalCss\" function without configuring your bundler. Make sure to install the bundler specific plugin and use it. @pigment-css/vite-plugin for Vite integration or @pigment-css/nextjs-plugin for Next.js integration.`,\n  );\n}\n"]}