UNPKG

storybook

Version:

Storybook: Develop, document, and test UI components in isolation

937 lines (932 loc) • 2.43 MB
import CJS_COMPAT_NODE_URL_e6wt3b00afv from 'node:url'; import CJS_COMPAT_NODE_PATH_e6wt3b00afv from 'node:path'; import CJS_COMPAT_NODE_MODULE_e6wt3b00afv from "node:module"; var __filename = CJS_COMPAT_NODE_URL_e6wt3b00afv.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_e6wt3b00afv.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_e6wt3b00afv.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ import { require_lib, require_src } from "./chunk-VVZFLDFE.js"; import { require_picocolors } from "./chunk-25S2XFFS.js"; import { __commonJS, __require, __toESM } from "./chunk-LF7MVXPB.js"; // ../../node_modules/@babel/types/lib/utils/shallowEqual.js var require_shallowEqual = __commonJS({ "../../node_modules/@babel/types/lib/utils/shallowEqual.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); exports.default = shallowEqual; function shallowEqual(actual, expected) { let keys = Object.keys(expected); for (let key of keys) if (actual[key] !== expected[key]) return !1; return !0; } } }); // ../../node_modules/@babel/types/lib/utils/deprecationWarning.js var require_deprecationWarning = __commonJS({ "../../node_modules/@babel/types/lib/utils/deprecationWarning.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); exports.default = deprecationWarning; var warnings = /* @__PURE__ */ new Set(); function deprecationWarning(oldName, newName, prefix = "", cacheKey = oldName) { if (warnings.has(cacheKey)) return; warnings.add(cacheKey); let { internal, trace } = captureShortStackTrace(1, 2); internal || console.warn(`${prefix}\`${oldName}\` has been deprecated, please migrate to \`${newName}\` ${trace}`); } function captureShortStackTrace(skip, length) { let { stackTraceLimit, prepareStackTrace } = Error, stackTrace; if (Error.stackTraceLimit = 1 + skip + length, Error.prepareStackTrace = function(err, stack) { stackTrace = stack; }, new Error().stack, Error.stackTraceLimit = stackTraceLimit, Error.prepareStackTrace = prepareStackTrace, !stackTrace) return { internal: !1, trace: "" }; let shortStackTrace = stackTrace.slice(1 + skip, 1 + skip + length); return { internal: /[\\/]@babel[\\/]/.test(shortStackTrace[1].getFileName()), trace: shortStackTrace.map((frame) => ` at ${frame}`).join(` `) }; } } }); // ../../node_modules/@babel/types/lib/validators/generated/index.js var require_generated = __commonJS({ "../../node_modules/@babel/types/lib/validators/generated/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }); exports.isAccessor = isAccessor; exports.isAnyTypeAnnotation = isAnyTypeAnnotation; exports.isArgumentPlaceholder = isArgumentPlaceholder; exports.isArrayExpression = isArrayExpression; exports.isArrayPattern = isArrayPattern; exports.isArrayTypeAnnotation = isArrayTypeAnnotation; exports.isArrowFunctionExpression = isArrowFunctionExpression; exports.isAssignmentExpression = isAssignmentExpression; exports.isAssignmentPattern = isAssignmentPattern; exports.isAwaitExpression = isAwaitExpression; exports.isBigIntLiteral = isBigIntLiteral; exports.isBinary = isBinary; exports.isBinaryExpression = isBinaryExpression; exports.isBindExpression = isBindExpression; exports.isBlock = isBlock; exports.isBlockParent = isBlockParent; exports.isBlockStatement = isBlockStatement; exports.isBooleanLiteral = isBooleanLiteral; exports.isBooleanLiteralTypeAnnotation = isBooleanLiteralTypeAnnotation; exports.isBooleanTypeAnnotation = isBooleanTypeAnnotation; exports.isBreakStatement = isBreakStatement; exports.isCallExpression = isCallExpression; exports.isCatchClause = isCatchClause; exports.isClass = isClass; exports.isClassAccessorProperty = isClassAccessorProperty; exports.isClassBody = isClassBody; exports.isClassDeclaration = isClassDeclaration; exports.isClassExpression = isClassExpression; exports.isClassImplements = isClassImplements; exports.isClassMethod = isClassMethod; exports.isClassPrivateMethod = isClassPrivateMethod; exports.isClassPrivateProperty = isClassPrivateProperty; exports.isClassProperty = isClassProperty; exports.isCompletionStatement = isCompletionStatement; exports.isConditional = isConditional; exports.isConditionalExpression = isConditionalExpression; exports.isContinueStatement = isContinueStatement; exports.isDebuggerStatement = isDebuggerStatement; exports.isDecimalLiteral = isDecimalLiteral; exports.isDeclaration = isDeclaration; exports.isDeclareClass = isDeclareClass; exports.isDeclareExportAllDeclaration = isDeclareExportAllDeclaration; exports.isDeclareExportDeclaration = isDeclareExportDeclaration; exports.isDeclareFunction = isDeclareFunction; exports.isDeclareInterface = isDeclareInterface; exports.isDeclareModule = isDeclareModule; exports.isDeclareModuleExports = isDeclareModuleExports; exports.isDeclareOpaqueType = isDeclareOpaqueType; exports.isDeclareTypeAlias = isDeclareTypeAlias; exports.isDeclareVariable = isDeclareVariable; exports.isDeclaredPredicate = isDeclaredPredicate; exports.isDecorator = isDecorator; exports.isDirective = isDirective; exports.isDirectiveLiteral = isDirectiveLiteral; exports.isDoExpression = isDoExpression; exports.isDoWhileStatement = isDoWhileStatement; exports.isEmptyStatement = isEmptyStatement; exports.isEmptyTypeAnnotation = isEmptyTypeAnnotation; exports.isEnumBody = isEnumBody; exports.isEnumBooleanBody = isEnumBooleanBody; exports.isEnumBooleanMember = isEnumBooleanMember; exports.isEnumDeclaration = isEnumDeclaration; exports.isEnumDefaultedMember = isEnumDefaultedMember; exports.isEnumMember = isEnumMember; exports.isEnumNumberBody = isEnumNumberBody; exports.isEnumNumberMember = isEnumNumberMember; exports.isEnumStringBody = isEnumStringBody; exports.isEnumStringMember = isEnumStringMember; exports.isEnumSymbolBody = isEnumSymbolBody; exports.isExistsTypeAnnotation = isExistsTypeAnnotation; exports.isExportAllDeclaration = isExportAllDeclaration; exports.isExportDeclaration = isExportDeclaration; exports.isExportDefaultDeclaration = isExportDefaultDeclaration; exports.isExportDefaultSpecifier = isExportDefaultSpecifier; exports.isExportNamedDeclaration = isExportNamedDeclaration; exports.isExportNamespaceSpecifier = isExportNamespaceSpecifier; exports.isExportSpecifier = isExportSpecifier; exports.isExpression = isExpression; exports.isExpressionStatement = isExpressionStatement; exports.isExpressionWrapper = isExpressionWrapper; exports.isFile = isFile; exports.isFlow = isFlow; exports.isFlowBaseAnnotation = isFlowBaseAnnotation; exports.isFlowDeclaration = isFlowDeclaration; exports.isFlowPredicate = isFlowPredicate; exports.isFlowType = isFlowType; exports.isFor = isFor; exports.isForInStatement = isForInStatement; exports.isForOfStatement = isForOfStatement; exports.isForStatement = isForStatement; exports.isForXStatement = isForXStatement; exports.isFunction = isFunction; exports.isFunctionDeclaration = isFunctionDeclaration; exports.isFunctionExpression = isFunctionExpression; exports.isFunctionParameter = isFunctionParameter; exports.isFunctionParent = isFunctionParent; exports.isFunctionTypeAnnotation = isFunctionTypeAnnotation; exports.isFunctionTypeParam = isFunctionTypeParam; exports.isGenericTypeAnnotation = isGenericTypeAnnotation; exports.isIdentifier = isIdentifier; exports.isIfStatement = isIfStatement; exports.isImmutable = isImmutable; exports.isImport = isImport; exports.isImportAttribute = isImportAttribute; exports.isImportDeclaration = isImportDeclaration; exports.isImportDefaultSpecifier = isImportDefaultSpecifier; exports.isImportExpression = isImportExpression; exports.isImportNamespaceSpecifier = isImportNamespaceSpecifier; exports.isImportOrExportDeclaration = isImportOrExportDeclaration; exports.isImportSpecifier = isImportSpecifier; exports.isIndexedAccessType = isIndexedAccessType; exports.isInferredPredicate = isInferredPredicate; exports.isInterfaceDeclaration = isInterfaceDeclaration; exports.isInterfaceExtends = isInterfaceExtends; exports.isInterfaceTypeAnnotation = isInterfaceTypeAnnotation; exports.isInterpreterDirective = isInterpreterDirective; exports.isIntersectionTypeAnnotation = isIntersectionTypeAnnotation; exports.isJSX = isJSX; exports.isJSXAttribute = isJSXAttribute; exports.isJSXClosingElement = isJSXClosingElement; exports.isJSXClosingFragment = isJSXClosingFragment; exports.isJSXElement = isJSXElement; exports.isJSXEmptyExpression = isJSXEmptyExpression; exports.isJSXExpressionContainer = isJSXExpressionContainer; exports.isJSXFragment = isJSXFragment; exports.isJSXIdentifier = isJSXIdentifier; exports.isJSXMemberExpression = isJSXMemberExpression; exports.isJSXNamespacedName = isJSXNamespacedName; exports.isJSXOpeningElement = isJSXOpeningElement; exports.isJSXOpeningFragment = isJSXOpeningFragment; exports.isJSXSpreadAttribute = isJSXSpreadAttribute; exports.isJSXSpreadChild = isJSXSpreadChild; exports.isJSXText = isJSXText; exports.isLVal = isLVal; exports.isLabeledStatement = isLabeledStatement; exports.isLiteral = isLiteral; exports.isLogicalExpression = isLogicalExpression; exports.isLoop = isLoop; exports.isMemberExpression = isMemberExpression; exports.isMetaProperty = isMetaProperty; exports.isMethod = isMethod; exports.isMiscellaneous = isMiscellaneous; exports.isMixedTypeAnnotation = isMixedTypeAnnotation; exports.isModuleDeclaration = isModuleDeclaration; exports.isModuleExpression = isModuleExpression; exports.isModuleSpecifier = isModuleSpecifier; exports.isNewExpression = isNewExpression; exports.isNoop = isNoop; exports.isNullLiteral = isNullLiteral; exports.isNullLiteralTypeAnnotation = isNullLiteralTypeAnnotation; exports.isNullableTypeAnnotation = isNullableTypeAnnotation; exports.isNumberLiteral = isNumberLiteral; exports.isNumberLiteralTypeAnnotation = isNumberLiteralTypeAnnotation; exports.isNumberTypeAnnotation = isNumberTypeAnnotation; exports.isNumericLiteral = isNumericLiteral; exports.isObjectExpression = isObjectExpression; exports.isObjectMember = isObjectMember; exports.isObjectMethod = isObjectMethod; exports.isObjectPattern = isObjectPattern; exports.isObjectProperty = isObjectProperty; exports.isObjectTypeAnnotation = isObjectTypeAnnotation; exports.isObjectTypeCallProperty = isObjectTypeCallProperty; exports.isObjectTypeIndexer = isObjectTypeIndexer; exports.isObjectTypeInternalSlot = isObjectTypeInternalSlot; exports.isObjectTypeProperty = isObjectTypeProperty; exports.isObjectTypeSpreadProperty = isObjectTypeSpreadProperty; exports.isOpaqueType = isOpaqueType; exports.isOptionalCallExpression = isOptionalCallExpression; exports.isOptionalIndexedAccessType = isOptionalIndexedAccessType; exports.isOptionalMemberExpression = isOptionalMemberExpression; exports.isParenthesizedExpression = isParenthesizedExpression; exports.isPattern = isPattern; exports.isPatternLike = isPatternLike; exports.isPipelineBareFunction = isPipelineBareFunction; exports.isPipelinePrimaryTopicReference = isPipelinePrimaryTopicReference; exports.isPipelineTopicExpression = isPipelineTopicExpression; exports.isPlaceholder = isPlaceholder; exports.isPrivate = isPrivate; exports.isPrivateName = isPrivateName; exports.isProgram = isProgram; exports.isProperty = isProperty; exports.isPureish = isPureish; exports.isQualifiedTypeIdentifier = isQualifiedTypeIdentifier; exports.isRecordExpression = isRecordExpression; exports.isRegExpLiteral = isRegExpLiteral; exports.isRegexLiteral = isRegexLiteral; exports.isRestElement = isRestElement; exports.isRestProperty = isRestProperty; exports.isReturnStatement = isReturnStatement; exports.isScopable = isScopable; exports.isSequenceExpression = isSequenceExpression; exports.isSpreadElement = isSpreadElement; exports.isSpreadProperty = isSpreadProperty; exports.isStandardized = isStandardized; exports.isStatement = isStatement; exports.isStaticBlock = isStaticBlock; exports.isStringLiteral = isStringLiteral; exports.isStringLiteralTypeAnnotation = isStringLiteralTypeAnnotation; exports.isStringTypeAnnotation = isStringTypeAnnotation; exports.isSuper = isSuper; exports.isSwitchCase = isSwitchCase; exports.isSwitchStatement = isSwitchStatement; exports.isSymbolTypeAnnotation = isSymbolTypeAnnotation; exports.isTSAnyKeyword = isTSAnyKeyword; exports.isTSArrayType = isTSArrayType; exports.isTSAsExpression = isTSAsExpression; exports.isTSBaseType = isTSBaseType; exports.isTSBigIntKeyword = isTSBigIntKeyword; exports.isTSBooleanKeyword = isTSBooleanKeyword; exports.isTSCallSignatureDeclaration = isTSCallSignatureDeclaration; exports.isTSConditionalType = isTSConditionalType; exports.isTSConstructSignatureDeclaration = isTSConstructSignatureDeclaration; exports.isTSConstructorType = isTSConstructorType; exports.isTSDeclareFunction = isTSDeclareFunction; exports.isTSDeclareMethod = isTSDeclareMethod; exports.isTSEntityName = isTSEntityName; exports.isTSEnumBody = isTSEnumBody; exports.isTSEnumDeclaration = isTSEnumDeclaration; exports.isTSEnumMember = isTSEnumMember; exports.isTSExportAssignment = isTSExportAssignment; exports.isTSExpressionWithTypeArguments = isTSExpressionWithTypeArguments; exports.isTSExternalModuleReference = isTSExternalModuleReference; exports.isTSFunctionType = isTSFunctionType; exports.isTSImportEqualsDeclaration = isTSImportEqualsDeclaration; exports.isTSImportType = isTSImportType; exports.isTSIndexSignature = isTSIndexSignature; exports.isTSIndexedAccessType = isTSIndexedAccessType; exports.isTSInferType = isTSInferType; exports.isTSInstantiationExpression = isTSInstantiationExpression; exports.isTSInterfaceBody = isTSInterfaceBody; exports.isTSInterfaceDeclaration = isTSInterfaceDeclaration; exports.isTSIntersectionType = isTSIntersectionType; exports.isTSIntrinsicKeyword = isTSIntrinsicKeyword; exports.isTSLiteralType = isTSLiteralType; exports.isTSMappedType = isTSMappedType; exports.isTSMethodSignature = isTSMethodSignature; exports.isTSModuleBlock = isTSModuleBlock; exports.isTSModuleDeclaration = isTSModuleDeclaration; exports.isTSNamedTupleMember = isTSNamedTupleMember; exports.isTSNamespaceExportDeclaration = isTSNamespaceExportDeclaration; exports.isTSNeverKeyword = isTSNeverKeyword; exports.isTSNonNullExpression = isTSNonNullExpression; exports.isTSNullKeyword = isTSNullKeyword; exports.isTSNumberKeyword = isTSNumberKeyword; exports.isTSObjectKeyword = isTSObjectKeyword; exports.isTSOptionalType = isTSOptionalType; exports.isTSParameterProperty = isTSParameterProperty; exports.isTSParenthesizedType = isTSParenthesizedType; exports.isTSPropertySignature = isTSPropertySignature; exports.isTSQualifiedName = isTSQualifiedName; exports.isTSRestType = isTSRestType; exports.isTSSatisfiesExpression = isTSSatisfiesExpression; exports.isTSStringKeyword = isTSStringKeyword; exports.isTSSymbolKeyword = isTSSymbolKeyword; exports.isTSTemplateLiteralType = isTSTemplateLiteralType; exports.isTSThisType = isTSThisType; exports.isTSTupleType = isTSTupleType; exports.isTSType = isTSType; exports.isTSTypeAliasDeclaration = isTSTypeAliasDeclaration; exports.isTSTypeAnnotation = isTSTypeAnnotation; exports.isTSTypeAssertion = isTSTypeAssertion; exports.isTSTypeElement = isTSTypeElement; exports.isTSTypeLiteral = isTSTypeLiteral; exports.isTSTypeOperator = isTSTypeOperator; exports.isTSTypeParameter = isTSTypeParameter; exports.isTSTypeParameterDeclaration = isTSTypeParameterDeclaration; exports.isTSTypeParameterInstantiation = isTSTypeParameterInstantiation; exports.isTSTypePredicate = isTSTypePredicate; exports.isTSTypeQuery = isTSTypeQuery; exports.isTSTypeReference = isTSTypeReference; exports.isTSUndefinedKeyword = isTSUndefinedKeyword; exports.isTSUnionType = isTSUnionType; exports.isTSUnknownKeyword = isTSUnknownKeyword; exports.isTSVoidKeyword = isTSVoidKeyword; exports.isTaggedTemplateExpression = isTaggedTemplateExpression; exports.isTemplateElement = isTemplateElement; exports.isTemplateLiteral = isTemplateLiteral; exports.isTerminatorless = isTerminatorless; exports.isThisExpression = isThisExpression; exports.isThisTypeAnnotation = isThisTypeAnnotation; exports.isThrowStatement = isThrowStatement; exports.isTopicReference = isTopicReference; exports.isTryStatement = isTryStatement; exports.isTupleExpression = isTupleExpression; exports.isTupleTypeAnnotation = isTupleTypeAnnotation; exports.isTypeAlias = isTypeAlias; exports.isTypeAnnotation = isTypeAnnotation; exports.isTypeCastExpression = isTypeCastExpression; exports.isTypeParameter = isTypeParameter; exports.isTypeParameterDeclaration = isTypeParameterDeclaration; exports.isTypeParameterInstantiation = isTypeParameterInstantiation; exports.isTypeScript = isTypeScript; exports.isTypeofTypeAnnotation = isTypeofTypeAnnotation; exports.isUnaryExpression = isUnaryExpression; exports.isUnaryLike = isUnaryLike; exports.isUnionTypeAnnotation = isUnionTypeAnnotation; exports.isUpdateExpression = isUpdateExpression; exports.isUserWhitespacable = isUserWhitespacable; exports.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier; exports.isVariableDeclaration = isVariableDeclaration; exports.isVariableDeclarator = isVariableDeclarator; exports.isVariance = isVariance; exports.isVoidPattern = isVoidPattern; exports.isVoidTypeAnnotation = isVoidTypeAnnotation; exports.isWhile = isWhile; exports.isWhileStatement = isWhileStatement; exports.isWithStatement = isWithStatement; exports.isYieldExpression = isYieldExpression; var _shallowEqual = require_shallowEqual(), _deprecationWarning = require_deprecationWarning(); function isArrayExpression(node, opts) { return !node || node.type !== "ArrayExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isAssignmentExpression(node, opts) { return !node || node.type !== "AssignmentExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBinaryExpression(node, opts) { return !node || node.type !== "BinaryExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isInterpreterDirective(node, opts) { return !node || node.type !== "InterpreterDirective" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDirective(node, opts) { return !node || node.type !== "Directive" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDirectiveLiteral(node, opts) { return !node || node.type !== "DirectiveLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBlockStatement(node, opts) { return !node || node.type !== "BlockStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBreakStatement(node, opts) { return !node || node.type !== "BreakStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isCallExpression(node, opts) { return !node || node.type !== "CallExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isCatchClause(node, opts) { return !node || node.type !== "CatchClause" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isConditionalExpression(node, opts) { return !node || node.type !== "ConditionalExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isContinueStatement(node, opts) { return !node || node.type !== "ContinueStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDebuggerStatement(node, opts) { return !node || node.type !== "DebuggerStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDoWhileStatement(node, opts) { return !node || node.type !== "DoWhileStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEmptyStatement(node, opts) { return !node || node.type !== "EmptyStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExpressionStatement(node, opts) { return !node || node.type !== "ExpressionStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isFile(node, opts) { return !node || node.type !== "File" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isForInStatement(node, opts) { return !node || node.type !== "ForInStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isForStatement(node, opts) { return !node || node.type !== "ForStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isFunctionDeclaration(node, opts) { return !node || node.type !== "FunctionDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isFunctionExpression(node, opts) { return !node || node.type !== "FunctionExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isIdentifier(node, opts) { return !node || node.type !== "Identifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isIfStatement(node, opts) { return !node || node.type !== "IfStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isLabeledStatement(node, opts) { return !node || node.type !== "LabeledStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isStringLiteral(node, opts) { return !node || node.type !== "StringLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNumericLiteral(node, opts) { return !node || node.type !== "NumericLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNullLiteral(node, opts) { return !node || node.type !== "NullLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBooleanLiteral(node, opts) { return !node || node.type !== "BooleanLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isRegExpLiteral(node, opts) { return !node || node.type !== "RegExpLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isLogicalExpression(node, opts) { return !node || node.type !== "LogicalExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isMemberExpression(node, opts) { return !node || node.type !== "MemberExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNewExpression(node, opts) { return !node || node.type !== "NewExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isProgram(node, opts) { return !node || node.type !== "Program" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectExpression(node, opts) { return !node || node.type !== "ObjectExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectMethod(node, opts) { return !node || node.type !== "ObjectMethod" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectProperty(node, opts) { return !node || node.type !== "ObjectProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isRestElement(node, opts) { return !node || node.type !== "RestElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isReturnStatement(node, opts) { return !node || node.type !== "ReturnStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSequenceExpression(node, opts) { return !node || node.type !== "SequenceExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isParenthesizedExpression(node, opts) { return !node || node.type !== "ParenthesizedExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSwitchCase(node, opts) { return !node || node.type !== "SwitchCase" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSwitchStatement(node, opts) { return !node || node.type !== "SwitchStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isThisExpression(node, opts) { return !node || node.type !== "ThisExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isThrowStatement(node, opts) { return !node || node.type !== "ThrowStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTryStatement(node, opts) { return !node || node.type !== "TryStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isUnaryExpression(node, opts) { return !node || node.type !== "UnaryExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isUpdateExpression(node, opts) { return !node || node.type !== "UpdateExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isVariableDeclaration(node, opts) { return !node || node.type !== "VariableDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isVariableDeclarator(node, opts) { return !node || node.type !== "VariableDeclarator" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isWhileStatement(node, opts) { return !node || node.type !== "WhileStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isWithStatement(node, opts) { return !node || node.type !== "WithStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isAssignmentPattern(node, opts) { return !node || node.type !== "AssignmentPattern" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isArrayPattern(node, opts) { return !node || node.type !== "ArrayPattern" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isArrowFunctionExpression(node, opts) { return !node || node.type !== "ArrowFunctionExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassBody(node, opts) { return !node || node.type !== "ClassBody" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassExpression(node, opts) { return !node || node.type !== "ClassExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassDeclaration(node, opts) { return !node || node.type !== "ClassDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportAllDeclaration(node, opts) { return !node || node.type !== "ExportAllDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportDefaultDeclaration(node, opts) { return !node || node.type !== "ExportDefaultDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportNamedDeclaration(node, opts) { return !node || node.type !== "ExportNamedDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportSpecifier(node, opts) { return !node || node.type !== "ExportSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isForOfStatement(node, opts) { return !node || node.type !== "ForOfStatement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportDeclaration(node, opts) { return !node || node.type !== "ImportDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportDefaultSpecifier(node, opts) { return !node || node.type !== "ImportDefaultSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportNamespaceSpecifier(node, opts) { return !node || node.type !== "ImportNamespaceSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportSpecifier(node, opts) { return !node || node.type !== "ImportSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportExpression(node, opts) { return !node || node.type !== "ImportExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isMetaProperty(node, opts) { return !node || node.type !== "MetaProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassMethod(node, opts) { return !node || node.type !== "ClassMethod" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectPattern(node, opts) { return !node || node.type !== "ObjectPattern" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSpreadElement(node, opts) { return !node || node.type !== "SpreadElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSuper(node, opts) { return !node || node.type !== "Super" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTaggedTemplateExpression(node, opts) { return !node || node.type !== "TaggedTemplateExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTemplateElement(node, opts) { return !node || node.type !== "TemplateElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTemplateLiteral(node, opts) { return !node || node.type !== "TemplateLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isYieldExpression(node, opts) { return !node || node.type !== "YieldExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isAwaitExpression(node, opts) { return !node || node.type !== "AwaitExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImport(node, opts) { return !node || node.type !== "Import" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBigIntLiteral(node, opts) { return !node || node.type !== "BigIntLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportNamespaceSpecifier(node, opts) { return !node || node.type !== "ExportNamespaceSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isOptionalMemberExpression(node, opts) { return !node || node.type !== "OptionalMemberExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isOptionalCallExpression(node, opts) { return !node || node.type !== "OptionalCallExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassProperty(node, opts) { return !node || node.type !== "ClassProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassAccessorProperty(node, opts) { return !node || node.type !== "ClassAccessorProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassPrivateProperty(node, opts) { return !node || node.type !== "ClassPrivateProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassPrivateMethod(node, opts) { return !node || node.type !== "ClassPrivateMethod" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isPrivateName(node, opts) { return !node || node.type !== "PrivateName" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isStaticBlock(node, opts) { return !node || node.type !== "StaticBlock" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isImportAttribute(node, opts) { return !node || node.type !== "ImportAttribute" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isAnyTypeAnnotation(node, opts) { return !node || node.type !== "AnyTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isArrayTypeAnnotation(node, opts) { return !node || node.type !== "ArrayTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBooleanTypeAnnotation(node, opts) { return !node || node.type !== "BooleanTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBooleanLiteralTypeAnnotation(node, opts) { return !node || node.type !== "BooleanLiteralTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNullLiteralTypeAnnotation(node, opts) { return !node || node.type !== "NullLiteralTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isClassImplements(node, opts) { return !node || node.type !== "ClassImplements" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareClass(node, opts) { return !node || node.type !== "DeclareClass" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareFunction(node, opts) { return !node || node.type !== "DeclareFunction" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareInterface(node, opts) { return !node || node.type !== "DeclareInterface" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareModule(node, opts) { return !node || node.type !== "DeclareModule" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareModuleExports(node, opts) { return !node || node.type !== "DeclareModuleExports" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareTypeAlias(node, opts) { return !node || node.type !== "DeclareTypeAlias" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareOpaqueType(node, opts) { return !node || node.type !== "DeclareOpaqueType" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareVariable(node, opts) { return !node || node.type !== "DeclareVariable" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareExportDeclaration(node, opts) { return !node || node.type !== "DeclareExportDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclareExportAllDeclaration(node, opts) { return !node || node.type !== "DeclareExportAllDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDeclaredPredicate(node, opts) { return !node || node.type !== "DeclaredPredicate" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExistsTypeAnnotation(node, opts) { return !node || node.type !== "ExistsTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isFunctionTypeAnnotation(node, opts) { return !node || node.type !== "FunctionTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isFunctionTypeParam(node, opts) { return !node || node.type !== "FunctionTypeParam" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isGenericTypeAnnotation(node, opts) { return !node || node.type !== "GenericTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isInferredPredicate(node, opts) { return !node || node.type !== "InferredPredicate" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isInterfaceExtends(node, opts) { return !node || node.type !== "InterfaceExtends" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isInterfaceDeclaration(node, opts) { return !node || node.type !== "InterfaceDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isInterfaceTypeAnnotation(node, opts) { return !node || node.type !== "InterfaceTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isIntersectionTypeAnnotation(node, opts) { return !node || node.type !== "IntersectionTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isMixedTypeAnnotation(node, opts) { return !node || node.type !== "MixedTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEmptyTypeAnnotation(node, opts) { return !node || node.type !== "EmptyTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNullableTypeAnnotation(node, opts) { return !node || node.type !== "NullableTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNumberLiteralTypeAnnotation(node, opts) { return !node || node.type !== "NumberLiteralTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNumberTypeAnnotation(node, opts) { return !node || node.type !== "NumberTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeAnnotation(node, opts) { return !node || node.type !== "ObjectTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeInternalSlot(node, opts) { return !node || node.type !== "ObjectTypeInternalSlot" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeCallProperty(node, opts) { return !node || node.type !== "ObjectTypeCallProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeIndexer(node, opts) { return !node || node.type !== "ObjectTypeIndexer" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeProperty(node, opts) { return !node || node.type !== "ObjectTypeProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isObjectTypeSpreadProperty(node, opts) { return !node || node.type !== "ObjectTypeSpreadProperty" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isOpaqueType(node, opts) { return !node || node.type !== "OpaqueType" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isQualifiedTypeIdentifier(node, opts) { return !node || node.type !== "QualifiedTypeIdentifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isStringLiteralTypeAnnotation(node, opts) { return !node || node.type !== "StringLiteralTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isStringTypeAnnotation(node, opts) { return !node || node.type !== "StringTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isSymbolTypeAnnotation(node, opts) { return !node || node.type !== "SymbolTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isThisTypeAnnotation(node, opts) { return !node || node.type !== "ThisTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTupleTypeAnnotation(node, opts) { return !node || node.type !== "TupleTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeofTypeAnnotation(node, opts) { return !node || node.type !== "TypeofTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeAlias(node, opts) { return !node || node.type !== "TypeAlias" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeAnnotation(node, opts) { return !node || node.type !== "TypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeCastExpression(node, opts) { return !node || node.type !== "TypeCastExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeParameter(node, opts) { return !node || node.type !== "TypeParameter" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeParameterDeclaration(node, opts) { return !node || node.type !== "TypeParameterDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTypeParameterInstantiation(node, opts) { return !node || node.type !== "TypeParameterInstantiation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isUnionTypeAnnotation(node, opts) { return !node || node.type !== "UnionTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isVariance(node, opts) { return !node || node.type !== "Variance" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isVoidTypeAnnotation(node, opts) { return !node || node.type !== "VoidTypeAnnotation" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumDeclaration(node, opts) { return !node || node.type !== "EnumDeclaration" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumBooleanBody(node, opts) { return !node || node.type !== "EnumBooleanBody" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumNumberBody(node, opts) { return !node || node.type !== "EnumNumberBody" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumStringBody(node, opts) { return !node || node.type !== "EnumStringBody" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumSymbolBody(node, opts) { return !node || node.type !== "EnumSymbolBody" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumBooleanMember(node, opts) { return !node || node.type !== "EnumBooleanMember" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumNumberMember(node, opts) { return !node || node.type !== "EnumNumberMember" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumStringMember(node, opts) { return !node || node.type !== "EnumStringMember" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isEnumDefaultedMember(node, opts) { return !node || node.type !== "EnumDefaultedMember" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isIndexedAccessType(node, opts) { return !node || node.type !== "IndexedAccessType" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isOptionalIndexedAccessType(node, opts) { return !node || node.type !== "OptionalIndexedAccessType" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXAttribute(node, opts) { return !node || node.type !== "JSXAttribute" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXClosingElement(node, opts) { return !node || node.type !== "JSXClosingElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXElement(node, opts) { return !node || node.type !== "JSXElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXEmptyExpression(node, opts) { return !node || node.type !== "JSXEmptyExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXExpressionContainer(node, opts) { return !node || node.type !== "JSXExpressionContainer" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXSpreadChild(node, opts) { return !node || node.type !== "JSXSpreadChild" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXIdentifier(node, opts) { return !node || node.type !== "JSXIdentifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXMemberExpression(node, opts) { return !node || node.type !== "JSXMemberExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXNamespacedName(node, opts) { return !node || node.type !== "JSXNamespacedName" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXOpeningElement(node, opts) { return !node || node.type !== "JSXOpeningElement" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXSpreadAttribute(node, opts) { return !node || node.type !== "JSXSpreadAttribute" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXText(node, opts) { return !node || node.type !== "JSXText" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXFragment(node, opts) { return !node || node.type !== "JSXFragment" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXOpeningFragment(node, opts) { return !node || node.type !== "JSXOpeningFragment" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isJSXClosingFragment(node, opts) { return !node || node.type !== "JSXClosingFragment" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isNoop(node, opts) { return !node || node.type !== "Noop" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isPlaceholder(node, opts) { return !node || node.type !== "Placeholder" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isV8IntrinsicIdentifier(node, opts) { return !node || node.type !== "V8IntrinsicIdentifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isArgumentPlaceholder(node, opts) { return !node || node.type !== "ArgumentPlaceholder" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isBindExpression(node, opts) { return !node || node.type !== "BindExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDecorator(node, opts) { return !node || node.type !== "Decorator" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDoExpression(node, opts) { return !node || node.type !== "DoExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isExportDefaultSpecifier(node, opts) { return !node || node.type !== "ExportDefaultSpecifier" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isRecordExpression(node, opts) { return !node || node.type !== "RecordExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isTupleExpression(node, opts) { return !node || node.type !== "TupleExpression" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts); } function isDecimalLiteral(node, opts) { return !node || node.type !== "DecimalLiteral" ? !1 : opts == null || (0, _shallowEqual.default)(node, opts);