import{__exports as s}from"../../../_virtual/isStyledComponent.mjs";import{__require as e}from"../../typescript/lib/typescript.mjs";var r;function i(){if(r)return s;r=1;let i=e();function t(s){return i.isIdentifier(s)&&"styled"===s.text}return s.isStyledComponent=function(s){if(i.isTaggedTemplateExpression(s)){if(i.isPropertyAccessExpression(s.tag))return t(s.tag.expression);if(i.isCallExpression(s.tag))return!!t(s.tag.expression)||(!!(i.isPropertyAccessExpression(s.tag.expression)&&i.isPropertyAccessExpression(s.tag.expression.expression)&&t(s.tag.expression.expression.expression))||!!(i.isPropertyAccessExpression(s.tag.expression)&&i.isCallExpression(s.tag.expression.expression)&&t(s.tag.expression.expression.expression)));if(i.isIdentifier(s.tag))return"css"===s.tag.text||"createGlobalStyle"===s.tag.text}return!!(i.isCallExpression(s)&&i.isPropertyAccessExpression(s.expression)&&t(s.expression.expression)&&i.isArrowFunction(s.arguments[0])&&(i.isNoSubstitutionTemplateLiteral(s.arguments[0].body)||i.isTemplateExpression(s.arguments[0].body)))||!!(i.isCallExpression(s)&&i.isCallExpression(s.expression)&&t(s.expression.expression)&&i.isArrowFunction(s.arguments[0])&&(i.isNoSubstitutionTemplateLiteral(s.arguments[0].body)||i.isTemplateExpression(s.arguments[0].body)))},s}export{i as __require};