"use strict";
var mO = Object.create;
var xa = Object.defineProperty;
var yO = Object.getOwnPropertyDescriptor;
var gO = Object.getOwnPropertyNames;
var bO = Object.getPrototypeOf, EO = Object.prototype.hasOwnProperty;
var i = (e, t) => xa(e, "name", { value: t, configurable: !0 });
var P = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), TO = (e, t) => {
for (var r in t)
xa(e, r, { get: t[r], enumerable: !0 });
}, A1 = (e, t, r, n) => {
if (t && typeof t == "object" || typeof t == "function")
for (let s of gO(t))
!EO.call(e, s) && s !== r && xa(e, s, { get: () => t[s], enumerable: !(n = yO(t, s)) || n.enumerable });
return e;
};
var sn = (e, t, r) => (r = e != null ? mO(bO(e)) : {}, A1(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
t || !e || !e.__esModule ? xa(r, "default", { value: e, enumerable: !0 }) : r,
e
)), SO = (e) => A1(xa({}, "__esModule", { value: !0 }), e);
// ../node_modules/@babel/types/lib/utils/shallowEqual.js
var ol = P((Kp) => {
"use strict";
Object.defineProperty(Kp, "__esModule", {
value: !0
});
Kp.default = xO;
function xO(e, t) {
let r = Object.keys(t);
for (let n of r)
if (e[n] !== t[n])
return !1;
return !0;
}
i(xO, "shallowEqual");
});
// ../node_modules/@babel/types/lib/utils/deprecationWarning.js
var va = P((Gp) => {
"use strict";
Object.defineProperty(Gp, "__esModule", {
value: !0
});
Gp.default = vO;
var C1 = /* @__PURE__ */ new Set();
function vO(e, t, r = "") {
if (C1.has(e)) return;
C1.add(e);
let {
internal: n,
trace: s
} = PO(1, 2);
n || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${s}`);
}
i(vO, "deprecationWarning");
function PO(e, t) {
let {
stackTraceLimit: r,
prepareStackTrace: n
} = Error, s;
if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, l) {
s = l;
}, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = n, !s) return {
internal: !1,
trace: ""
};
let a = s.slice(1 + e, 1 + e + t);
return {
internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()),
trace: a.map((o) => ` at ${o}`).join(`
`)
};
}
i(PO, "captureShortStackTrace");
});
// ../node_modules/@babel/types/lib/validators/generated/index.js
var Tt = P((T) => {
"use strict";
Object.defineProperty(T, "__esModule", {
value: !0
});
T.isAccessor = qF;
T.isAnyTypeAnnotation = a3;
T.isArgumentPlaceholder = FB;
T.isArrayExpression = AO;
T.isArrayPattern = vN;
T.isArrayTypeAnnotation = o3;
T.isArrowFunctionExpression = PN;
T.isAssignmentExpression = CO;
T.isAssignmentPattern = xN;
T.isAwaitExpression = HN;
T.isBigIntLiteral = JN;
T.isBinary = uF;
T.isBinaryExpression = DO;
T.isBindExpression = jB;
T.isBlock = fF;
T.isBlockParent = pF;
T.isBlockStatement = OO;
T.isBooleanLiteral = QO;
T.isBooleanLiteralTypeAnnotation = u3;
T.isBooleanTypeAnnotation = l3;
T.isBreakStatement = NO;
T.isCallExpression = BO;
T.isCatchClause = kO;
T.isClass = LF;
T.isClassAccessorProperty = e3;
T.isClassBody = AN;
T.isClassDeclaration = DN;
T.isClassExpression = CN;
T.isClassImplements = p3;
T.isClassMethod = RN;
T.isClassPrivateMethod = r3;
T.isClassPrivateProperty = t3;
T.isClassProperty = ZN;
T.isCompletionStatement = mF;
T.isConditional = yF;
T.isConditionalExpression = FO;
T.isContinueStatement = jO;
T.isDebuggerStatement = LO;
T.isDecimalLiteral = VB;
T.isDeclaration = AF;
T.isDeclareClass = f3;
T.isDeclareExportAllDeclaration = S3;
T.isDeclareExportDeclaration = T3;
T.isDeclareFunction = d3;
T.isDeclareInterface = h3;
T.isDeclareModule = m3;
T.isDeclareModuleExports = y3;
T.isDeclareOpaqueType = b3;
T.isDeclareTypeAlias = g3;
T.isDeclareVariable = E3;
T.isDeclaredPredicate = x3;
T.isDecorator = LB;
T.isDirective = IO;
T.isDirectiveLiteral = _O;
T.isDoExpression = MB;
T.isDoWhileStatement = MO;
T.isEmptyStatement = RO;
T.isEmptyTypeAnnotation = B3;
T.isEnumBody = HF;
T.isEnumBooleanBody = oB;
T.isEnumBooleanMember = pB;
T.isEnumDeclaration = aB;
T.isEnumDefaultedMember = hB;
T.isEnumMember = YF;
T.isEnumNumberBody = lB;
T.isEnumNumberMember = fB;
T.isEnumStringBody = uB;
T.isEnumStringMember = dB;
T.isEnumSymbolBody = cB;
T.isExistsTypeAnnotation = v3;
T.isExportAllDeclaration = wN;
T.isExportDeclaration = MF;
T.isExportDefaultDeclaration = IN;
T.isExportDefaultSpecifier = RB;
T.isExportNamedDeclaration = _N;
T.isExportNamespaceSpecifier = XN;
T.isExportSpecifier = ON;
T.isExpression = lF;
T.isExpressionStatement = qO;
T.isExpressionWrapper = EF;
T.isFile = UO;
T.isFlow = VF;
T.isFlowBaseAnnotation = WF;
T.isFlowDeclaration = KF;
T.isFlowPredicate = GF;
T.isFlowType = $F;
T.isFor = TF;
T.isForInStatement = VO;
T.isForOfStatement = NN;
T.isForStatement = $O;
T.isForXStatement = SF;
T.isFunction = xF;
T.isFunctionDeclaration = WO;
T.isFunctionExpression = KO;
T.isFunctionParent = vF;
T.isFunctionTypeAnnotation = P3;
T.isFunctionTypeParam = A3;
T.isGenericTypeAnnotation = C3;
T.isIdentifier = GO;
T.isIfStatement = HO;
T.isImmutable = _F;
T.isImport = YN;
T.isImportAttribute = i3;
T.isImportDeclaration = BN;
T.isImportDefaultSpecifier = kN;
T.isImportExpression = LN;
T.isImportNamespaceSpecifier = FN;
T.isImportOrExportDeclaration = D1;
T.isImportSpecifier = jN;
T.isIndexedAccessType = mB;
T.isInferredPredicate = D3;
T.isInterfaceDeclaration = I3;
T.isInterfaceExtends = w3;
T.isInterfaceTypeAnnotation = _3;
T.isInterpreterDirective = wO;
T.isIntersectionTypeAnnotation = O3;
T.isJSX = JF;
T.isJSXAttribute = gB;
T.isJSXClosingElement = bB;
T.isJSXClosingFragment = OB;
T.isJSXElement = EB;
T.isJSXEmptyExpression = TB;
T.isJSXExpressionContainer = SB;
T.isJSXFragment = IB;
T.isJSXIdentifier = vB;
T.isJSXMemberExpression = PB;
T.isJSXNamespacedName = AB;
T.isJSXOpeningElement = CB;
T.isJSXOpeningFragment = _B;
T.isJSXSpreadAttribute = DB;
T.isJSXSpreadChild = xB;
T.isJSXText = wB;
T.isLVal = DF;
T.isLabeledStatement = YO;
T.isLiteral = IF;
T.isLogicalExpression = eN;
T.isLoop = gF;
T.isMemberExpression = tN;
T.isMetaProperty = MN;
T.isMethod = NF;
T.isMiscellaneous = XF;
T.isMixedTypeAnnotation = N3;
T.isModuleDeclaration = i4;
T.isModuleExpression = $B;
T.isModuleSpecifier = RF;
T.isNewExpression = rN;
T.isNoop = NB;
T.isNullLiteral = zO;
T.isNullLiteralTypeAnnotation = c3;
T.isNullableTypeAnnotation = k3;
T.isNumberLiteral = t4;
T.isNumberLiteralTypeAnnotation = F3;
T.isNumberTypeAnnotation = j3;
T.isNumericLiteral = XO;
T.isObjectExpression = sN;
T.isObjectMember = BF;
T.isObjectMethod = iN;
T.isObjectPattern = qN;
T.isObjectProperty = aN;
T.isObjectTypeAnnotation = L3;
T.isObjectTypeCallProperty = R3;
T.isObjectTypeIndexer = q3;
T.isObjectTypeInternalSlot = M3;
T.isObjectTypeProperty = U3;
T.isObjectTypeSpreadProperty = V3;
T.isOpaqueType = $3;
T.isOptionalCallExpression = QN;
T.isOptionalIndexedAccessType = yB;
T.isOptionalMemberExpression = zN;
T.isParenthesizedExpression = cN;
T.isPattern = jF;
T.isPatternLike = CF;
T.isPipelineBareFunction = GB;
T.isPipelinePrimaryTopicReference = HB;
T.isPipelineTopicExpression = KB;
T.isPlaceholder = BB;
T.isPrivate = UF;
T.isPrivateName = n3;
T.isProgram = nN;
T.isProperty = kF;
T.isPureish = PF;
T.isQualifiedTypeIdentifier = W3;
T.isRecordExpression = qB;
T.isRegExpLiteral = ZO;
T.isRegexLiteral = r4;
T.isRestElement = oN;
T.isRestProperty = n4;
T.isReturnStatement = lN;
T.isScopable = cF;
T.isSequenceExpression = uN;
T.isSpreadElement = UN;
T.isSpreadProperty = s4;
T.isStandardized = oF;
T.isStatement = dF;
T.isStaticBlock = s3;
T.isStringLiteral = JO;
T.isStringLiteralTypeAnnotation = K3;
T.isStringTypeAnnotation = G3;
T.isSuper = VN;
T.isSwitchCase = pN;
T.isSwitchStatement = fN;
T.isSymbolTypeAnnotation = H3;
T.isTSAnyKeyword = nk;
T.isTSArrayType = vk;
T.isTSAsExpression = $k;
T.isTSBaseType = e4;
T.isTSBigIntKeyword = ik;
T.isTSBooleanKeyword = sk;
T.isTSCallSignatureDeclaration = QB;
T.isTSConditionalType = _k;
T.isTSConstructSignatureDeclaration = ZB;
T.isTSConstructorType = bk;
T.isTSDeclareFunction = JB;
T.isTSDeclareMethod = XB;
T.isTSEntityName = wF;
T.isTSEnumBody = Gk;
T.isTSEnumDeclaration = Hk;
T.isTSEnumMember = Yk;
T.isTSExportAssignment = tF;
T.isTSExpressionWithTypeArguments = Mk;
T.isTSExternalModuleReference = Zk;
T.isTSFunctionType = gk;
T.isTSImportEqualsDeclaration = Qk;
T.isTSImportType = zk;
T.isTSIndexSignature = rk;
T.isTSIndexedAccessType = kk;
T.isTSInferType = Ok;
T.isTSInstantiationExpression = Vk;
T.isTSInterfaceBody = qk;
T.isTSInterfaceDeclaration = Rk;
T.isTSIntersectionType = Ik;
T.isTSIntrinsicKeyword = ak;
T.isTSLiteralType = Lk;
T.isTSMappedType = Fk;
T.isTSMethodSignature = tk;
T.isTSModuleBlock = Xk;
T.isTSModuleDeclaration = Jk;
T.isTSNamedTupleMember = Dk;
T.isTSNamespaceExportDeclaration = rF;
T.isTSNeverKeyword = ok;
T.isTSNonNullExpression = eF;
T.isTSNullKeyword = lk;
T.isTSNumberKeyword = uk;
T.isTSObjectKeyword = ck;
T.isTSOptionalType = Ak;
T.isTSParameterProperty = YB;
T.isTSParenthesizedType = Nk;
T.isTSPropertySignature = ek;
T.isTSQualifiedName = zB;
T.isTSRestType = Ck;
T.isTSSatisfiesExpression = Wk;
T.isTSStringKeyword = pk;
T.isTSSymbolKeyword = fk;
T.isTSTemplateLiteralType = jk;
T.isTSThisType = yk;
T.isTSTupleType = Pk;
T.isTSType = ZF;
T.isTSTypeAliasDeclaration = Uk;
T.isTSTypeAnnotation = nF;
T.isTSTypeAssertion = Kk;
T.isTSTypeElement = QF;
T.isTSTypeLiteral = xk;
T.isTSTypeOperator = Bk;
T.isTSTypeParameter = aF;
T.isTSTypeParameterDeclaration = iF;
T.isTSTypeParameterInstantiation = sF;
T.isTSTypePredicate = Tk;
T.isTSTypeQuery = Sk;
T.isTSTypeReference = Ek;
T.isTSUndefinedKeyword = dk;
T.isTSUnionType = wk;
T.isTSUnknownKeyword = hk;
T.isTSVoidKeyword = mk;
T.isTaggedTemplateExpression = $N;
T.isTemplateElement = WN;
T.isTemplateLiteral = KN;
T.isTerminatorless = hF;
T.isThisExpression = dN;
T.isThisTypeAnnotation = Y3;
T.isThrowStatement = hN;
T.isTopicReference = WB;
T.isTryStatement = mN;
T.isTupleExpression = UB;
T.isTupleTypeAnnotation = J3;
T.isTypeAlias = z3;
T.isTypeAnnotation = Q3;
T.isTypeCastExpression = Z3;
T.isTypeParameter = eB;
T.isTypeParameterDeclaration = tB;
T.isTypeParameterInstantiation = rB;
T.isTypeScript = zF;
T.isTypeofTypeAnnotation = X3;
T.isUnaryExpression = yN;
T.isUnaryLike = FF;
T.isUnionTypeAnnotation = nB;
T.isUpdateExpression = gN;
T.isUserWhitespacable = OF;
T.isV8IntrinsicIdentifier = kB;
T.isVariableDeclaration = bN;
T.isVariableDeclarator = EN;
T.isVariance = sB;
T.isVoidTypeAnnotation = iB;
T.isWhile = bF;
T.isWhileStatement = TN;
T.isWithStatement = SN;
T.isYieldExpression = GN;
var v = ol(), Pa = va();
function AO(e, t) {
return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(AO, "isArrayExpression");
function CO(e, t) {
return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(CO, "isAssignmentExpression");
function DO(e, t) {
return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(DO, "isBinaryExpression");
function wO(e, t) {
return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, v.default)(e, t);
}
i(wO, "isInterpreterDirective");
function IO(e, t) {
return !e || e.type !== "Directive" ? !1 : t == null || (0, v.default)(e, t);
}
i(IO, "isDirective");
function _O(e, t) {
return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(_O, "isDirectiveLiteral");
function OO(e, t) {
return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(OO, "isBlockStatement");
function NO(e, t) {
return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(NO, "isBreakStatement");
function BO(e, t) {
return !e || e.type !== "CallExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(BO, "isCallExpression");
function kO(e, t) {
return !e || e.type !== "CatchClause" ? !1 : t == null || (0, v.default)(e, t);
}
i(kO, "isCatchClause");
function FO(e, t) {
return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(FO, "isConditionalExpression");
function jO(e, t) {
return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(jO, "isContinueStatement");
function LO(e, t) {
return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(LO, "isDebuggerStatement");
function MO(e, t) {
return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(MO, "isDoWhileStatement");
function RO(e, t) {
return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(RO, "isEmptyStatement");
function qO(e, t) {
return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(qO, "isExpressionStatement");
function UO(e, t) {
return !e || e.type !== "File" ? !1 : t == null || (0, v.default)(e, t);
}
i(UO, "isFile");
function VO(e, t) {
return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(VO, "isForInStatement");
function $O(e, t) {
return !e || e.type !== "ForStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i($O, "isForStatement");
function WO(e, t) {
return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(WO, "isFunctionDeclaration");
function KO(e, t) {
return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(KO, "isFunctionExpression");
function GO(e, t) {
return !e || e.type !== "Identifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(GO, "isIdentifier");
function HO(e, t) {
return !e || e.type !== "IfStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(HO, "isIfStatement");
function YO(e, t) {
return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(YO, "isLabeledStatement");
function JO(e, t) {
return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(JO, "isStringLiteral");
function XO(e, t) {
return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(XO, "isNumericLiteral");
function zO(e, t) {
return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(zO, "isNullLiteral");
function QO(e, t) {
return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(QO, "isBooleanLiteral");
function ZO(e, t) {
return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZO, "isRegExpLiteral");
function eN(e, t) {
return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(eN, "isLogicalExpression");
function tN(e, t) {
return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(tN, "isMemberExpression");
function rN(e, t) {
return !e || e.type !== "NewExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(rN, "isNewExpression");
function nN(e, t) {
return !e || e.type !== "Program" ? !1 : t == null || (0, v.default)(e, t);
}
i(nN, "isProgram");
function sN(e, t) {
return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(sN, "isObjectExpression");
function iN(e, t) {
return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(iN, "isObjectMethod");
function aN(e, t) {
return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(aN, "isObjectProperty");
function oN(e, t) {
return !e || e.type !== "RestElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(oN, "isRestElement");
function lN(e, t) {
return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(lN, "isReturnStatement");
function uN(e, t) {
return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(uN, "isSequenceExpression");
function cN(e, t) {
return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(cN, "isParenthesizedExpression");
function pN(e, t) {
return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, v.default)(e, t);
}
i(pN, "isSwitchCase");
function fN(e, t) {
return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(fN, "isSwitchStatement");
function dN(e, t) {
return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(dN, "isThisExpression");
function hN(e, t) {
return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(hN, "isThrowStatement");
function mN(e, t) {
return !e || e.type !== "TryStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(mN, "isTryStatement");
function yN(e, t) {
return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(yN, "isUnaryExpression");
function gN(e, t) {
return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(gN, "isUpdateExpression");
function bN(e, t) {
return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(bN, "isVariableDeclaration");
function EN(e, t) {
return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, v.default)(e, t);
}
i(EN, "isVariableDeclarator");
function TN(e, t) {
return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(TN, "isWhileStatement");
function SN(e, t) {
return !e || e.type !== "WithStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(SN, "isWithStatement");
function xN(e, t) {
return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(xN, "isAssignmentPattern");
function vN(e, t) {
return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(vN, "isArrayPattern");
function PN(e, t) {
return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(PN, "isArrowFunctionExpression");
function AN(e, t) {
return !e || e.type !== "ClassBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(AN, "isClassBody");
function CN(e, t) {
return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(CN, "isClassExpression");
function DN(e, t) {
return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(DN, "isClassDeclaration");
function wN(e, t) {
return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(wN, "isExportAllDeclaration");
function IN(e, t) {
return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(IN, "isExportDefaultDeclaration");
function _N(e, t) {
return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(_N, "isExportNamedDeclaration");
function ON(e, t) {
return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(ON, "isExportSpecifier");
function NN(e, t) {
return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(NN, "isForOfStatement");
function BN(e, t) {
return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(BN, "isImportDeclaration");
function kN(e, t) {
return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(kN, "isImportDefaultSpecifier");
function FN(e, t) {
return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(FN, "isImportNamespaceSpecifier");
function jN(e, t) {
return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(jN, "isImportSpecifier");
function LN(e, t) {
return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(LN, "isImportExpression");
function MN(e, t) {
return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(MN, "isMetaProperty");
function RN(e, t) {
return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(RN, "isClassMethod");
function qN(e, t) {
return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(qN, "isObjectPattern");
function UN(e, t) {
return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(UN, "isSpreadElement");
function VN(e, t) {
return !e || e.type !== "Super" ? !1 : t == null || (0, v.default)(e, t);
}
i(VN, "isSuper");
function $N(e, t) {
return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i($N, "isTaggedTemplateExpression");
function WN(e, t) {
return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(WN, "isTemplateElement");
function KN(e, t) {
return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(KN, "isTemplateLiteral");
function GN(e, t) {
return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(GN, "isYieldExpression");
function HN(e, t) {
return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(HN, "isAwaitExpression");
function YN(e, t) {
return !e || e.type !== "Import" ? !1 : t == null || (0, v.default)(e, t);
}
i(YN, "isImport");
function JN(e, t) {
return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(JN, "isBigIntLiteral");
function XN(e, t) {
return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(XN, "isExportNamespaceSpecifier");
function zN(e, t) {
return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(zN, "isOptionalMemberExpression");
function QN(e, t) {
return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(QN, "isOptionalCallExpression");
function ZN(e, t) {
return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZN, "isClassProperty");
function e3(e, t) {
return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(e3, "isClassAccessorProperty");
function t3(e, t) {
return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(t3, "isClassPrivateProperty");
function r3(e, t) {
return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(r3, "isClassPrivateMethod");
function n3(e, t) {
return !e || e.type !== "PrivateName" ? !1 : t == null || (0, v.default)(e, t);
}
i(n3, "isPrivateName");
function s3(e, t) {
return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, v.default)(e, t);
}
i(s3, "isStaticBlock");
function i3(e, t) {
return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(i3, "isImportAttribute");
function a3(e, t) {
return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(a3, "isAnyTypeAnnotation");
function o3(e, t) {
return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(o3, "isArrayTypeAnnotation");
function l3(e, t) {
return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(l3, "isBooleanTypeAnnotation");
function u3(e, t) {
return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(u3, "isBooleanLiteralTypeAnnotation");
function c3(e, t) {
return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(c3, "isNullLiteralTypeAnnotation");
function p3(e, t) {
return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, v.default)(e, t);
}
i(p3, "isClassImplements");
function f3(e, t) {
return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, v.default)(e, t);
}
i(f3, "isDeclareClass");
function d3(e, t) {
return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(d3, "isDeclareFunction");
function h3(e, t) {
return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, v.default)(e, t);
}
i(h3, "isDeclareInterface");
function m3(e, t) {
return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, v.default)(e, t);
}
i(m3, "isDeclareModule");
function y3(e, t) {
return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, v.default)(e, t);
}
i(y3, "isDeclareModuleExports");
function g3(e, t) {
return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, v.default)(e, t);
}
i(g3, "isDeclareTypeAlias");
function b3(e, t) {
return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, v.default)(e, t);
}
i(b3, "isDeclareOpaqueType");
function E3(e, t) {
return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, v.default)(e, t);
}
i(E3, "isDeclareVariable");
function T3(e, t) {
return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(T3, "isDeclareExportDeclaration");
function S3(e, t) {
return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(S3, "isDeclareExportAllDeclaration");
function x3(e, t) {
return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(x3, "isDeclaredPredicate");
function v3(e, t) {
return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(v3, "isExistsTypeAnnotation");
function P3(e, t) {
return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(P3, "isFunctionTypeAnnotation");
function A3(e, t) {
return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, v.default)(e, t);
}
i(A3, "isFunctionTypeParam");
function C3(e, t) {
return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(C3, "isGenericTypeAnnotation");
function D3(e, t) {
return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(D3, "isInferredPredicate");
function w3(e, t) {
return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, v.default)(e, t);
}
i(w3, "isInterfaceExtends");
function I3(e, t) {
return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(I3, "isInterfaceDeclaration");
function _3(e, t) {
return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(_3, "isInterfaceTypeAnnotation");
function O3(e, t) {
return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(O3, "isIntersectionTypeAnnotation");
function N3(e, t) {
return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(N3, "isMixedTypeAnnotation");
function B3(e, t) {
return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(B3, "isEmptyTypeAnnotation");
function k3(e, t) {
return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(k3, "isNullableTypeAnnotation");
function F3(e, t) {
return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(F3, "isNumberLiteralTypeAnnotation");
function j3(e, t) {
return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(j3, "isNumberTypeAnnotation");
function L3(e, t) {
return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(L3, "isObjectTypeAnnotation");
function M3(e, t) {
return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, v.default)(e, t);
}
i(M3, "isObjectTypeInternalSlot");
function R3(e, t) {
return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(R3, "isObjectTypeCallProperty");
function q3(e, t) {
return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, v.default)(e, t);
}
i(q3, "isObjectTypeIndexer");
function U3(e, t) {
return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(U3, "isObjectTypeProperty");
function V3(e, t) {
return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(V3, "isObjectTypeSpreadProperty");
function $3(e, t) {
return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, v.default)(e, t);
}
i($3, "isOpaqueType");
function W3(e, t) {
return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(W3, "isQualifiedTypeIdentifier");
function K3(e, t) {
return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(K3, "isStringLiteralTypeAnnotation");
function G3(e, t) {
return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(G3, "isStringTypeAnnotation");
function H3(e, t) {
return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(H3, "isSymbolTypeAnnotation");
function Y3(e, t) {
return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(Y3, "isThisTypeAnnotation");
function J3(e, t) {
return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(J3, "isTupleTypeAnnotation");
function X3(e, t) {
return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(X3, "isTypeofTypeAnnotation");
function z3(e, t) {
return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, v.default)(e, t);
}
i(z3, "isTypeAlias");
function Q3(e, t) {
return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(Q3, "isTypeAnnotation");
function Z3(e, t) {
return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Z3, "isTypeCastExpression");
function eB(e, t) {
return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, v.default)(e, t);
}
i(eB, "isTypeParameter");
function tB(e, t) {
return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(tB, "isTypeParameterDeclaration");
function rB(e, t) {
return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, v.default)(e, t);
}
i(rB, "isTypeParameterInstantiation");
function nB(e, t) {
return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(nB, "isUnionTypeAnnotation");
function sB(e, t) {
return !e || e.type !== "Variance" ? !1 : t == null || (0, v.default)(e, t);
}
i(sB, "isVariance");
function iB(e, t) {
return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(iB, "isVoidTypeAnnotation");
function aB(e, t) {
return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(aB, "isEnumDeclaration");
function oB(e, t) {
return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(oB, "isEnumBooleanBody");
function lB(e, t) {
return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(lB, "isEnumNumberBody");
function uB(e, t) {
return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(uB, "isEnumStringBody");
function cB(e, t) {
return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(cB, "isEnumSymbolBody");
function pB(e, t) {
return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(pB, "isEnumBooleanMember");
function fB(e, t) {
return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(fB, "isEnumNumberMember");
function dB(e, t) {
return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(dB, "isEnumStringMember");
function hB(e, t) {
return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(hB, "isEnumDefaultedMember");
function mB(e, t) {
return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(mB, "isIndexedAccessType");
function yB(e, t) {
return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(yB, "isOptionalIndexedAccessType");
function gB(e, t) {
return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(gB, "isJSXAttribute");
function bB(e, t) {
return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(bB, "isJSXClosingElement");
function EB(e, t) {
return !e || e.type !== "JSXElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(EB, "isJSXElement");
function TB(e, t) {
return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(TB, "isJSXEmptyExpression");
function SB(e, t) {
return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, v.default)(e, t);
}
i(SB, "isJSXExpressionContainer");
function xB(e, t) {
return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, v.default)(e, t);
}
i(xB, "isJSXSpreadChild");
function vB(e, t) {
return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(vB, "isJSXIdentifier");
function PB(e, t) {
return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(PB, "isJSXMemberExpression");
function AB(e, t) {
return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, v.default)(e, t);
}
i(AB, "isJSXNamespacedName");
function CB(e, t) {
return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(CB, "isJSXOpeningElement");
function DB(e, t) {
return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(DB, "isJSXSpreadAttribute");
function wB(e, t) {
return !e || e.type !== "JSXText" ? !1 : t == null || (0, v.default)(e, t);
}
i(wB, "isJSXText");
function IB(e, t) {
return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(IB, "isJSXFragment");
function _B(e, t) {
return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(_B, "isJSXOpeningFragment");
function OB(e, t) {
return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(OB, "isJSXClosingFragment");
function NB(e, t) {
return !e || e.type !== "Noop" ? !1 : t == null || (0, v.default)(e, t);
}
i(NB, "isNoop");
function BB(e, t) {
return !e || e.type !== "Placeholder" ? !1 : t == null || (0, v.default)(e, t);
}
i(BB, "isPlaceholder");
function kB(e, t) {
return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(kB, "isV8IntrinsicIdentifier");
function FB(e, t) {
return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, v.default)(e, t);
}
i(FB, "isArgumentPlaceholder");
function jB(e, t) {
return !e || e.type !== "BindExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(jB, "isBindExpression");
function LB(e, t) {
return !e || e.type !== "Decorator" ? !1 : t == null || (0, v.default)(e, t);
}
i(LB, "isDecorator");
function MB(e, t) {
return !e || e.type !== "DoExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(MB, "isDoExpression");
function RB(e, t) {
return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(RB, "isExportDefaultSpecifier");
function qB(e, t) {
return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(qB, "isRecordExpression");
function UB(e, t) {
return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(UB, "isTupleExpression");
function VB(e, t) {
return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(VB, "isDecimalLiteral");
function $B(e, t) {
return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i($B, "isModuleExpression");
function WB(e, t) {
return !e || e.type !== "TopicReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(WB, "isTopicReference");
function KB(e, t) {
return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(KB, "isPipelineTopicExpression");
function GB(e, t) {
return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(GB, "isPipelineBareFunction");
function HB(e, t) {
return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(HB, "isPipelinePrimaryTopicReference");
function YB(e, t) {
return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(YB, "isTSParameterProperty");
function JB(e, t) {
return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(JB, "isTSDeclareFunction");
function XB(e, t) {
return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(XB, "isTSDeclareMethod");
function zB(e, t) {
return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, v.default)(e, t);
}
i(zB, "isTSQualifiedName");
function QB(e, t) {
return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(QB, "isTSCallSignatureDeclaration");
function ZB(e, t) {
return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZB, "isTSConstructSignatureDeclaration");
function ek(e, t) {
return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(ek, "isTSPropertySignature");
function tk(e, t) {
return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(tk, "isTSMethodSignature");
function rk(e, t) {
return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(rk, "isTSIndexSignature");
function nk(e, t) {
return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(nk, "isTSAnyKeyword");
function sk(e, t) {
return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(sk, "isTSBooleanKeyword");
function ik(e, t) {
return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ik, "isTSBigIntKeyword");
function ak(e, t) {
return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ak, "isTSIntrinsicKeyword");
function ok(e, t) {
return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ok, "isTSNeverKeyword");
function lk(e, t) {
return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(lk, "isTSNullKeyword");
function uk(e, t) {
return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(uk, "isTSNumberKeyword");
function ck(e, t) {
return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ck, "isTSObjectKeyword");
function pk(e, t) {
return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(pk, "isTSStringKeyword");
function fk(e, t) {
return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(fk, "isTSSymbolKeyword");
function dk(e, t) {
return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(dk, "isTSUndefinedKeyword");
function hk(e, t) {
return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(hk, "isTSUnknownKeyword");
function mk(e, t) {
return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(mk, "isTSVoidKeyword");
function yk(e, t) {
return !e || e.type !== "TSThisType" ? !1 : t == null || (0, v.default)(e, t);
}
i(yk, "isTSThisType");
function gk(e, t) {
return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(gk, "isTSFunctionType");
function bk(e, t) {
return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, v.default)(e, t);
}
i(bk, "isTSConstructorType");
function Ek(e, t) {
return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ek, "isTSTypeReference");
function Tk(e, t) {
return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(Tk, "isTSTypePredicate");
function Sk(e, t) {
return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, v.default)(e, t);
}
i(Sk, "isTSTypeQuery");
function xk(e, t) {
return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(xk, "isTSTypeLiteral");
function vk(e, t) {
return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, v.default)(e, t);
}
i(vk, "isTSArrayType");
function Pk(e, t) {
return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Pk, "isTSTupleType");
function Ak(e, t) {
return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ak, "isTSOptionalType");
function Ck(e, t) {
return !e || e.type !== "TSRestType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ck, "isTSRestType");
function Dk(e, t) {
return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(Dk, "isTSNamedTupleMember");
function wk(e, t) {
return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(wk, "isTSUnionType");
function Ik(e, t) {
return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ik, "isTSIntersectionType");
function _k(e, t) {
return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, v.default)(e, t);
}
i(_k, "isTSConditionalType");
function Ok(e, t) {
return !e || e.type !== "TSInferType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ok, "isTSInferType");
function Nk(e, t) {
return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Nk, "isTSParenthesizedType");
function Bk(e, t) {
return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, v.default)(e, t);
}
i(Bk, "isTSTypeOperator");
function kk(e, t) {
return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(kk, "isTSIndexedAccessType");
function Fk(e, t) {
return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Fk, "isTSMappedType");
function jk(e, t) {
return !e || e.type !== "TSTemplateLiteralType" ? !1 : t == null || (0, v.default)(e, t);
}
i(jk, "isTSTemplateLiteralType");
function Lk(e, t) {
return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Lk, "isTSLiteralType");
function Mk(e, t) {
return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, v.default)(e, t);
}
i(Mk, "isTSExpressionWithTypeArguments");
function Rk(e, t) {
return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Rk, "isTSInterfaceDeclaration");
function qk(e, t) {
return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(qk, "isTSInterfaceBody");
function Uk(e, t) {
return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Uk, "isTSTypeAliasDeclaration");
function Vk(e, t) {
return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Vk, "isTSInstantiationExpression");
function $k(e, t) {
return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i($k, "isTSAsExpression");
function Wk(e, t) {
return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Wk, "isTSSatisfiesExpression");
function Kk(e, t) {
return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, v.default)(e, t);
}
i(Kk, "isTSTypeAssertion");
function Gk(e, t) {
return !e || e.type !== "TSEnumBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(Gk, "isTSEnumBody");
function Hk(e, t) {
return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Hk, "isTSEnumDeclaration");
function Yk(e, t) {
return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(Yk, "isTSEnumMember");
function Jk(e, t) {
return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Jk, "isTSModuleDeclaration");
function Xk(e, t) {
return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, v.default)(e, t);
}
i(Xk, "isTSModuleBlock");
function zk(e, t) {
return !e || e.type !== "TSImportType" ? !1 : t == null || (0, v.default)(e, t);
}
i(zk, "isTSImportType");
function Qk(e, t) {
return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Qk, "isTSImportEqualsDeclaration");
function Zk(e, t) {
return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(Zk, "isTSExternalModuleReference");
function eF(e, t) {
return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(eF, "isTSNonNullExpression");
function tF(e, t) {
return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, v.default)(e, t);
}
i(tF, "isTSExportAssignment");
function rF(e, t) {
return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(rF, "isTSNamespaceExportDeclaration");
function nF(e, t) {
return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(nF, "isTSTypeAnnotation");
function sF(e, t) {
return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, v.default)(e, t);
}
i(sF, "isTSTypeParameterInstantiation");
function iF(e, t) {
return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(iF, "isTSTypeParameterDeclaration");
function aF(e, t) {
return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, v.default)(e, t);
}
i(aF, "isTSTypeParameter");
function oF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ArrayExpression":
case "AssignmentExpression":
case "BinaryExpression":
case "InterpreterDirective":
case "Directive":
case "DirectiveLiteral":
case "BlockStatement":
case "BreakStatement":
case "CallExpression":
case "CatchClause":
case "ConditionalExpression":
case "ContinueStatement":
case "DebuggerStatement":
case "DoWhileStatement":
case "EmptyStatement":
case "ExpressionStatement":
case "File":
case "ForInStatement":
case "ForStatement":
case "FunctionDeclaration":
case "FunctionExpression":
case "Identifier":
case "IfStatement":
case "LabeledStatement":
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "RegExpLiteral":
case "LogicalExpression":
case "MemberExpression":
case "NewExpression":
case "Program":
case "ObjectExpression":
case "ObjectMethod":
case "ObjectProperty":
case "RestElement":
case "ReturnStatement":
case "SequenceExpression":
case "ParenthesizedExpression":
case "SwitchCase":
case "SwitchStatement":
case "ThisExpression":
case "ThrowStatement":
case "TryStatement":
case "UnaryExpression":
case "UpdateExpression":
case "VariableDeclaration":
case "VariableDeclarator":
case "WhileStatement":
case "WithStatement":
case "AssignmentPattern":
case "ArrayPattern":
case "ArrowFunctionExpression":
case "ClassBody":
case "ClassExpression":
case "ClassDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ExportSpecifier":
case "ForOfStatement":
case "ImportDeclaration":
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
case "ImportExpression":
case "MetaProperty":
case "ClassMethod":
case "ObjectPattern":
case "SpreadElement":
case "Super":
case "TaggedTemplateExpression":
case "TemplateElement":
case "TemplateLiteral":
case "YieldExpression":
case "AwaitExpression":
case "Import":
case "BigIntLiteral":
case "ExportNamespaceSpecifier":
case "OptionalMemberExpression":
case "OptionalCallExpression":
case "ClassProperty":
case "ClassAccessorProperty":
case "ClassPrivateProperty":
case "ClassPrivateMethod":
case "PrivateName":
case "StaticBlock":
case "ImportAttribute":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Identifier":
case "StringLiteral":
case "BlockStatement":
case "ClassBody":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(oF, "isStandardized");
function lF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ArrayExpression":
case "AssignmentExpression":
case "BinaryExpression":
case "CallExpression":
case "ConditionalExpression":
case "FunctionExpression":
case "Identifier":
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "RegExpLiteral":
case "LogicalExpression":
case "MemberExpression":
case "NewExpression":
case "ObjectExpression":
case "SequenceExpression":
case "ParenthesizedExpression":
case "ThisExpression":
case "UnaryExpression":
case "UpdateExpression":
case "ArrowFunctionExpression":
case "ClassExpression":
case "ImportExpression":
case "MetaProperty":
case "Super":
case "TaggedTemplateExpression":
case "TemplateLiteral":
case "YieldExpression":
case "AwaitExpression":
case "Import":
case "BigIntLiteral":
case "OptionalMemberExpression":
case "OptionalCallExpression":
case "TypeCastExpression":
case "JSXElement":
case "JSXFragment":
case "BindExpression":
case "DoExpression":
case "RecordExpression":
case "TupleExpression":
case "DecimalLiteral":
case "ModuleExpression":
case "TopicReference":
case "PipelineTopicExpression":
case "PipelineBareFunction":
case "PipelinePrimaryTopicReference":
case "TSInstantiationExpression":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Expression":
case "Identifier":
case "StringLiteral":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(lF, "isExpression");
function uF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BinaryExpression":
case "LogicalExpression":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(uF, "isBinary");
function cF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BlockStatement":
case "CatchClause":
case "DoWhileStatement":
case "ForInStatement":
case "ForStatement":
case "FunctionDeclaration":
case "FunctionExpression":
case "Program":
case "ObjectMethod":
case "SwitchStatement":
case "WhileStatement":
case "ArrowFunctionExpression":
case "ClassExpression":
case "ClassDeclaration":
case "ForOfStatement":
case "ClassMethod":
case "ClassPrivateMethod":
case "StaticBlock":
case "TSModuleBlock":
break;
case "Placeholder":
if (e.expectedNode === "BlockStatement") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(cF, "isScopable");
function pF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BlockStatement":
case "CatchClause":
case "DoWhileStatement":
case "ForInStatement":
case "ForStatement":
case "FunctionDeclaration":
case "FunctionExpression":
case "Program":
case "ObjectMethod":
case "SwitchStatement":
case "WhileStatement":
case "ArrowFunctionExpression":
case "ForOfStatement":
case "ClassMethod":
case "ClassPrivateMethod":
case "StaticBlock":
case "TSModuleBlock":
break;
case "Placeholder":
if (e.expectedNode === "BlockStatement") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(pF, "isBlockParent");
function fF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BlockStatement":
case "Program":
case "TSModuleBlock":
break;
case "Placeholder":
if (e.expectedNode === "BlockStatement") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(fF, "isBlock");
function dF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BlockStatement":
case "BreakStatement":
case "ContinueStatement":
case "DebuggerStatement":
case "DoWhileStatement":
case "EmptyStatement":
case "ExpressionStatement":
case "ForInStatement":
case "ForStatement":
case "FunctionDeclaration":
case "IfStatement":
case "LabeledStatement":
case "ReturnStatement":
case "SwitchStatement":
case "ThrowStatement":
case "TryStatement":
case "VariableDeclaration":
case "WhileStatement":
case "WithStatement":
case "ClassDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ForOfStatement":
case "ImportDeclaration":
case "DeclareClass":
case "DeclareFunction":
case "DeclareInterface":
case "DeclareModule":
case "DeclareModuleExports":
case "DeclareTypeAlias":
case "DeclareOpaqueType":
case "DeclareVariable":
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
case "InterfaceDeclaration":
case "OpaqueType":
case "TypeAlias":
case "EnumDeclaration":
case "TSDeclareFunction":
case "TSInterfaceDeclaration":
case "TSTypeAliasDeclaration":
case "TSEnumDeclaration":
case "TSModuleDeclaration":
case "TSImportEqualsDeclaration":
case "TSExportAssignment":
case "TSNamespaceExportDeclaration":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Statement":
case "Declaration":
case "BlockStatement":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(dF, "isStatement");
function hF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BreakStatement":
case "ContinueStatement":
case "ReturnStatement":
case "ThrowStatement":
case "YieldExpression":
case "AwaitExpression":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(hF, "isTerminatorless");
function mF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BreakStatement":
case "ContinueStatement":
case "ReturnStatement":
case "ThrowStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(mF, "isCompletionStatement");
function yF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ConditionalExpression":
case "IfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(yF, "isConditional");
function gF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DoWhileStatement":
case "ForInStatement":
case "ForStatement":
case "WhileStatement":
case "ForOfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(gF, "isLoop");
function bF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DoWhileStatement":
case "WhileStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(bF, "isWhile");
function EF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExpressionStatement":
case "ParenthesizedExpression":
case "TypeCastExpression":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(EF, "isExpressionWrapper");
function TF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ForInStatement":
case "ForStatement":
case "ForOfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(TF, "isFor");
function SF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ForInStatement":
case "ForOfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(SF, "isForXStatement");
function xF(e, t) {
if (!e) return !1;
switch (e.type) {
case "FunctionDeclaration":
case "FunctionExpression":
case "ObjectMethod":
case "ArrowFunctionExpression":
case "ClassMethod":
case "ClassPrivateMethod":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(xF, "isFunction");
function vF(e, t) {
if (!e) return !1;
switch (e.type) {
case "FunctionDeclaration":
case "FunctionExpression":
case "ObjectMethod":
case "ArrowFunctionExpression":
case "ClassMethod":
case "ClassPrivateMethod":
case "StaticBlock":
case "TSModuleBlock":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(vF, "isFunctionParent");
function PF(e, t) {
if (!e) return !1;
switch (e.type) {
case "FunctionDeclaration":
case "FunctionExpression":
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "RegExpLiteral":
case "ArrowFunctionExpression":
case "BigIntLiteral":
case "DecimalLiteral":
break;
case "Placeholder":
if (e.expectedNode === "StringLiteral") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(PF, "isPureish");
function AF(e, t) {
if (!e) return !1;
switch (e.type) {
case "FunctionDeclaration":
case "VariableDeclaration":
case "ClassDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ImportDeclaration":
case "DeclareClass":
case "DeclareFunction":
case "DeclareInterface":
case "DeclareModule":
case "DeclareModuleExports":
case "DeclareTypeAlias":
case "DeclareOpaqueType":
case "DeclareVariable":
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
case "InterfaceDeclaration":
case "OpaqueType":
case "TypeAlias":
case "EnumDeclaration":
case "TSDeclareFunction":
case "TSInterfaceDeclaration":
case "TSTypeAliasDeclaration":
case "TSEnumDeclaration":
case "TSModuleDeclaration":
case "TSImportEqualsDeclaration":
break;
case "Placeholder":
if (e.expectedNode === "Declaration") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(AF, "isDeclaration");
function CF(e, t) {
if (!e) return !1;
switch (e.type) {
case "Identifier":
case "RestElement":
case "AssignmentPattern":
case "ArrayPattern":
case "ObjectPattern":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Pattern":
case "Identifier":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(CF, "isPatternLike");
function DF(e, t) {
if (!e) return !1;
switch (e.type) {
case "Identifier":
case "MemberExpression":
case "RestElement":
case "AssignmentPattern":
case "ArrayPattern":
case "ObjectPattern":
case "TSParameterProperty":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Pattern":
case "Identifier":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(DF, "isLVal");
function wF(e, t) {
if (!e) return !1;
switch (e.type) {
case "Identifier":
case "TSQualifiedName":
break;
case "Placeholder":
if (e.expectedNode === "Identifier") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(wF, "isTSEntityName");
function IF(e, t) {
if (!e) return !1;
switch (e.type) {
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "RegExpLiteral":
case "TemplateLiteral":
case "BigIntLiteral":
case "DecimalLiteral":
break;
case "Placeholder":
if (e.expectedNode === "StringLiteral") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(IF, "isLiteral");
function _F(e, t) {
if (!e) return !1;
switch (e.type) {
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "BigIntLiteral":
case "JSXAttribute":
case "JSXClosingElement":
case "JSXElement":
case "JSXExpressionContainer":
case "JSXSpreadChild":
case "JSXOpeningElement":
case "JSXText":
case "JSXFragment":
case "JSXOpeningFragment":
case "JSXClosingFragment":
case "DecimalLiteral":
break;
case "Placeholder":
if (e.expectedNode === "StringLiteral") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(_F, "isImmutable");
function OF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectMethod":
case "ObjectProperty":
case "ObjectTypeInternalSlot":
case "ObjectTypeCallProperty":
case "ObjectTypeIndexer":
case "ObjectTypeProperty":
case "ObjectTypeSpreadProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(OF, "isUserWhitespacable");
function NF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectMethod":
case "ClassMethod":
case "ClassPrivateMethod":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(NF, "isMethod");
function BF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectMethod":
case "ObjectProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(BF, "isObjectMember");
function kF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectProperty":
case "ClassProperty":
case "ClassAccessorProperty":
case "ClassPrivateProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(kF, "isProperty");
function FF(e, t) {
if (!e) return !1;
switch (e.type) {
case "UnaryExpression":
case "SpreadElement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(FF, "isUnaryLike");
function jF(e, t) {
if (!e) return !1;
switch (e.type) {
case "AssignmentPattern":
case "ArrayPattern":
case "ObjectPattern":
break;
case "Placeholder":
if (e.expectedNode === "Pattern") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(jF, "isPattern");
function LF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassExpression":
case "ClassDeclaration":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(LF, "isClass");
function D1(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ImportDeclaration":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(D1, "isImportOrExportDeclaration");
function MF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(MF, "isExportDeclaration");
function RF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExportSpecifier":
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
case "ExportNamespaceSpecifier":
case "ExportDefaultSpecifier":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(RF, "isModuleSpecifier");
function qF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassAccessorProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(qF, "isAccessor");
function UF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassPrivateProperty":
case "ClassPrivateMethod":
case "PrivateName":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(UF, "isPrivate");
function VF(e, t) {
if (!e) return !1;
switch (e.type) {
case "AnyTypeAnnotation":
case "ArrayTypeAnnotation":
case "BooleanTypeAnnotation":
case "BooleanLiteralTypeAnnotation":
case "NullLiteralTypeAnnotation":
case "ClassImplements":
case "DeclareClass":
case "DeclareFunction":
case "DeclareInterface":
case "DeclareModule":
case "DeclareModuleExports":
case "DeclareTypeAlias":
case "DeclareOpaqueType":
case "DeclareVariable":
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
case "DeclaredPredicate":
case "ExistsTypeAnnotation":
case "FunctionTypeAnnotation":
case "FunctionTypeParam":
case "GenericTypeAnnotation":
case "InferredPredicate":
case "InterfaceExtends":
case "InterfaceDeclaration":
case "InterfaceTypeAnnotation":
case "IntersectionTypeAnnotation":
case "MixedTypeAnnotation":
case "EmptyTypeAnnotation":
case "NullableTypeAnnotation":
case "NumberLiteralTypeAnnotation":
case "NumberTypeAnnotation":
case "ObjectTypeAnnotation":
case "ObjectTypeInternalSlot":
case "ObjectTypeCallProperty":
case "ObjectTypeIndexer":
case "ObjectTypeProperty":
case "ObjectTypeSpreadProperty":
case "OpaqueType":
case "QualifiedTypeIdentifier":
case "StringLiteralTypeAnnotation":
case "StringTypeAnnotation":
case "SymbolTypeAnnotation":
case "ThisTypeAnnotation":
case "TupleTypeAnnotation":
case "TypeofTypeAnnotation":
case "TypeAlias":
case "TypeAnnotation":
case "TypeCastExpression":
case "TypeParameter":
case "TypeParameterDeclaration":
case "TypeParameterInstantiation":
case "UnionTypeAnnotation":
case "Variance":
case "VoidTypeAnnotation":
case "EnumDeclaration":
case "EnumBooleanBody":
case "EnumNumberBody":
case "EnumStringBody":
case "EnumSymbolBody":
case "EnumBooleanMember":
case "EnumNumberMember":
case "EnumStringMember":
case "EnumDefaultedMember":
case "IndexedAccessType":
case "OptionalIndexedAccessType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(VF, "isFlow");
function $F(e, t) {
if (!e) return !1;
switch (e.type) {
case "AnyTypeAnnotation":
case "ArrayTypeAnnotation":
case "BooleanTypeAnnotation":
case "BooleanLiteralTypeAnnotation":
case "NullLiteralTypeAnnotation":
case "ExistsTypeAnnotation":
case "FunctionTypeAnnotation":
case "GenericTypeAnnotation":
case "InterfaceTypeAnnotation":
case "IntersectionTypeAnnotation":
case "MixedTypeAnnotation":
case "EmptyTypeAnnotation":
case "NullableTypeAnnotation":
case "NumberLiteralTypeAnnotation":
case "NumberTypeAnnotation":
case "ObjectTypeAnnotation":
case "StringLiteralTypeAnnotation":
case "StringTypeAnnotation":
case "SymbolTypeAnnotation":
case "ThisTypeAnnotation":
case "TupleTypeAnnotation":
case "TypeofTypeAnnotation":
case "UnionTypeAnnotation":
case "VoidTypeAnnotation":
case "IndexedAccessType":
case "OptionalIndexedAccessType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i($F, "isFlowType");
function WF(e, t) {
if (!e) return !1;
switch (e.type) {
case "AnyTypeAnnotation":
case "BooleanTypeAnnotation":
case "NullLiteralTypeAnnotation":
case "MixedTypeAnnotation":
case "EmptyTypeAnnotation":
case "NumberTypeAnnotation":
case "StringTypeAnnotation":
case "SymbolTypeAnnotation":
case "ThisTypeAnnotation":
case "VoidTypeAnnotation":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(WF, "isFlowBaseAnnotation");
function KF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DeclareClass":
case "DeclareFunction":
case "DeclareInterface":
case "DeclareModule":
case "DeclareModuleExports":
case "DeclareTypeAlias":
case "DeclareOpaqueType":
case "DeclareVariable":
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
case "InterfaceDeclaration":
case "OpaqueType":
case "TypeAlias":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(KF, "isFlowDeclaration");
function GF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DeclaredPredicate":
case "InferredPredicate":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(GF, "isFlowPredicate");
function HF(e, t) {
if (!e) return !1;
switch (e.type) {
case "EnumBooleanBody":
case "EnumNumberBody":
case "EnumStringBody":
case "EnumSymbolBody":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(HF, "isEnumBody");
function YF(e, t) {
if (!e) return !1;
switch (e.type) {
case "EnumBooleanMember":
case "EnumNumberMember":
case "EnumStringMember":
case "EnumDefaultedMember":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(YF, "isEnumMember");
function JF(e, t) {
if (!e) return !1;
switch (e.type) {
case "JSXAttribute":
case "JSXClosingElement":
case "JSXElement":
case "JSXEmptyExpression":
case "JSXExpressionContainer":
case "JSXSpreadChild":
case "JSXIdentifier":
case "JSXMemberExpression":
case "JSXNamespacedName":
case "JSXOpeningElement":
case "JSXSpreadAttribute":
case "JSXText":
case "JSXFragment":
case "JSXOpeningFragment":
case "JSXClosingFragment":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(JF, "isJSX");
function XF(e, t) {
if (!e) return !1;
switch (e.type) {
case "Noop":
case "Placeholder":
case "V8IntrinsicIdentifier":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(XF, "isMiscellaneous");
function zF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSParameterProperty":
case "TSDeclareFunction":
case "TSDeclareMethod":
case "TSQualifiedName":
case "TSCallSignatureDeclaration":
case "TSConstructSignatureDeclaration":
case "TSPropertySignature":
case "TSMethodSignature":
case "TSIndexSignature":
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSFunctionType":
case "TSConstructorType":
case "TSTypeReference":
case "TSTypePredicate":
case "TSTypeQuery":
case "TSTypeLiteral":
case "TSArrayType":
case "TSTupleType":
case "TSOptionalType":
case "TSRestType":
case "TSNamedTupleMember":
case "TSUnionType":
case "TSIntersectionType":
case "TSConditionalType":
case "TSInferType":
case "TSParenthesizedType":
case "TSTypeOperator":
case "TSIndexedAccessType":
case "TSMappedType":
case "TSTemplateLiteralType":
case "TSLiteralType":
case "TSExpressionWithTypeArguments":
case "TSInterfaceDeclaration":
case "TSInterfaceBody":
case "TSTypeAliasDeclaration":
case "TSInstantiationExpression":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSEnumBody":
case "TSEnumDeclaration":
case "TSEnumMember":
case "TSModuleDeclaration":
case "TSModuleBlock":
case "TSImportType":
case "TSImportEqualsDeclaration":
case "TSExternalModuleReference":
case "TSNonNullExpression":
case "TSExportAssignment":
case "TSNamespaceExportDeclaration":
case "TSTypeAnnotation":
case "TSTypeParameterInstantiation":
case "TSTypeParameterDeclaration":
case "TSTypeParameter":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(zF, "isTypeScript");
function QF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSCallSignatureDeclaration":
case "TSConstructSignatureDeclaration":
case "TSPropertySignature":
case "TSMethodSignature":
case "TSIndexSignature":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(QF, "isTSTypeElement");
function ZF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSFunctionType":
case "TSConstructorType":
case "TSTypeReference":
case "TSTypePredicate":
case "TSTypeQuery":
case "TSTypeLiteral":
case "TSArrayType":
case "TSTupleType":
case "TSOptionalType":
case "TSRestType":
case "TSUnionType":
case "TSIntersectionType":
case "TSConditionalType":
case "TSInferType":
case "TSParenthesizedType":
case "TSTypeOperator":
case "TSIndexedAccessType":
case "TSMappedType":
case "TSTemplateLiteralType":
case "TSLiteralType":
case "TSExpressionWithTypeArguments":
case "TSImportType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(ZF, "isTSType");
function e4(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSTemplateLiteralType":
case "TSLiteralType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(e4, "isTSBaseType");
function t4(e, t) {
return (0, Pa.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(t4, "isNumberLiteral");
function r4(e, t) {
return (0, Pa.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(r4, "isRegexLiteral");
function n4(e, t) {
return (0, Pa.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(n4, "isRestProperty");
function s4(e, t) {
return (0, Pa.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(s4, "isSpreadProperty");
function i4(e, t) {
return (0, Pa.default)("isModuleDeclaration", "isImportOrExportDeclaration"), D1(e, t);
}
i(i4, "isModuleDeclaration");
});
// ../node_modules/@babel/types/lib/validators/matchesPattern.js
var Yp = P((Hp) => {
"use strict";
Object.defineProperty(Hp, "__esModule", {
value: !0
});
Hp.default = a4;
var Aa = Tt();
function a4(e, t, r) {
if (!(0, Aa.isMemberExpression)(e)) return !1;
let n = Array.isArray(t) ? t : t.split("."), s = [], a;
for (a = e; (0, Aa.isMemberExpression)(a); a = a.object)
s.push(a.property);
if (s.push(a), s.length < n.length || !r && s.length > n.length) return !1;
for (let o = 0, l = s.length - 1; o < n.length; o++, l--) {
let u = s[l], c;
if ((0, Aa.isIdentifier)(u))
c = u.name;
else if ((0, Aa.isStringLiteral)(u))
c = u.value;
else if ((0, Aa.isThisExpression)(u))
c = "this";
else
return !1;
if (n[o] !== c) return !1;
}
return !0;
}
i(a4, "matchesPattern");
});
// ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js
var Xp = P((Jp) => {
"use strict";
Object.defineProperty(Jp, "__esModule", {
value: !0
});
Jp.default = l4;
var o4 = Yp();
function l4(e, t) {
let r = e.split(".");
return (n) => (0, o4.default)(n, r, t);
}
i(l4, "buildMatchMemberExpression");
});
// ../node_modules/@babel/types/lib/validators/react/isReactComponent.js
var w1 = P((ll) => {
"use strict";
Object.defineProperty(ll, "__esModule", {
value: !0
});
ll.default = void 0;
var u4 = Xp(), c4 = (0, u4.default)("React.Component"), _be = ll.default = c4;
});
// ../node_modules/@babel/types/lib/validators/react/isCompatTag.js
var I1 = P((zp) => {
"use strict";
Object.defineProperty(zp, "__esModule", {
value: !0
});
zp.default = p4;
function p4(e) {
return !!e && /^[a-z]/.test(e);
}
i(p4, "isCompatTag");
});
// ../node_modules/@babel/types/lib/validators/isType.js
var ul = P((Qp) => {
"use strict";
Object.defineProperty(Qp, "__esModule", {
value: !0
});
Qp.default = f4;
var _1 = wr();
function f4(e, t) {
if (e === t) return !0;
if (e == null || _1.ALIAS_KEYS[t]) return !1;
let r = _1.FLIPPED_ALIAS_KEYS[t];
return !!(r != null && r.includes(e));
}
i(f4, "isType");
});
// ../node_modules/@babel/types/lib/validators/isPlaceholderType.js
var ef = P((Zp) => {
"use strict";
Object.defineProperty(Zp, "__esModule", {
value: !0
});
Zp.default = h4;
var d4 = wr();
function h4(e, t) {
if (e === t) return !0;
let r = d4.PLACEHOLDERS_ALIAS[e];
return !!(r != null && r.includes(t));
}
i(h4, "isPlaceholderType");
});
// ../node_modules/@babel/types/lib/validators/is.js
var bi = P((tf) => {
"use strict";
Object.defineProperty(tf, "__esModule", {
value: !0
});
tf.default = E4;
var m4 = ol(), y4 = ul(), g4 = ef(), b4 = wr();
function E4(e, t, r) {
return t ? (0, y4.default)(t.type, e) ? r === void 0 ? !0 : (0, m4.default)(t, r) : !r && t.type === "Placeholder" && e in b4.FLIPPED_ALIAS_KEYS ?
(0, g4.default)(t.expectedNode, e) : !1 : !1;
}
i(E4, "is");
});
// ../node_modules/@babel/helper-validator-identifier/lib/identifier.js
var F1 = P((Ca) => {
"use strict";
Object.defineProperty(Ca, "__esModule", {
value: !0
});
Ca.isIdentifierChar = k1;
Ca.isIdentifierName = v4;
Ca.isIdentifierStart = B1;
var nf = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\
-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\
\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\
\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\
\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\
\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\
-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",
O1 = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\
\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\
\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\
-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\
-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", T4 = new RegExp("[" + nf + "]"), S4 = new RegExp("[" + nf + O1 + "]");
nf = O1 = null;
var N1 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157,
19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5,
3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7,
2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17,
47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64,
6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45,
52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2,
1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29,
113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071,
18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12,
65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991,
84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30,
2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3,
0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2,
2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153,
7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], x4 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0,
166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2,
9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68,
8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14,
5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2,
7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0,
7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4,
4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10,
9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
function rf(e, t) {
let r = 65536;
for (let n = 0, s = t.length; n < s; n += 2) {
if (r += t[n], r > e) return !1;
if (r += t[n + 1], r >= e) return !0;
}
return !1;
}
i(rf, "isInAstralSet");
function B1(e) {
return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && T4.test(String.fromCharCode(e)) :
rf(e, N1);
}
i(B1, "isIdentifierStart");
function k1(e) {
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && S4.test(
String.fromCharCode(e)) : rf(e, N1) || rf(e, x4);
}
i(k1, "isIdentifierChar");
function v4(e) {
let t = !0;
for (let r = 0; r < e.length; r++) {
let n = e.charCodeAt(r);
if ((n & 64512) === 55296 && r + 1 < e.length) {
let s = e.charCodeAt(++r);
(s & 64512) === 56320 && (n = 65536 + ((n & 1023) << 10) + (s & 1023));
}
if (t) {
if (t = !1, !B1(n))
return !1;
} else if (!k1(n))
return !1;
}
return !t;
}
i(v4, "isIdentifierName");
});
// ../node_modules/@babel/helper-validator-identifier/lib/keyword.js
var R1 = P((_s) => {
"use strict";
Object.defineProperty(_s, "__esModule", {
value: !0
});
_s.isKeyword = w4;
_s.isReservedWord = j1;
_s.isStrictBindOnlyReservedWord = M1;
_s.isStrictBindReservedWord = D4;
_s.isStrictReservedWord = L1;
var sf = {
keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\
ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false",
"in", "instanceof", "typeof", "void", "delete"],
strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
strictBind: ["eval", "arguments"]
}, P4 = new Set(sf.keyword), A4 = new Set(sf.strict), C4 = new Set(sf.strictBind);
function j1(e, t) {
return t && e === "await" || e === "enum";
}
i(j1, "isReservedWord");
function L1(e, t) {
return j1(e, t) || A4.has(e);
}
i(L1, "isStrictReservedWord");
function M1(e) {
return C4.has(e);
}
i(M1, "isStrictBindOnlyReservedWord");
function D4(e, t) {
return L1(e, t) || M1(e);
}
i(D4, "isStrictBindReservedWord");
function w4(e) {
return P4.has(e);
}
i(w4, "isKeyword");
});
// ../node_modules/@babel/helper-validator-identifier/lib/index.js
var Ei = P((an) => {
"use strict";
Object.defineProperty(an, "__esModule", {
value: !0
});
Object.defineProperty(an, "isIdentifierChar", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return af.isIdentifierChar;
}, "get")
});
Object.defineProperty(an, "isIdentifierName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return af.isIdentifierName;
}, "get")
});
Object.defineProperty(an, "isIdentifierStart", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return af.isIdentifierStart;
}, "get")
});
Object.defineProperty(an, "isKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isKeyword;
}, "get")
});
Object.defineProperty(an, "isReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictBindOnlyReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictBindOnlyReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictBindReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictBindReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictReservedWord;
}, "get")
});
var af = F1(), Da = R1();
});
// ../node_modules/@babel/types/lib/validators/isValidIdentifier.js
var Ti = P((lf) => {
"use strict";
Object.defineProperty(lf, "__esModule", {
value: !0
});
lf.default = I4;
var of = Ei();
function I4(e, t = !0) {
return typeof e != "string" || t && ((0, of.isKeyword)(e) || (0, of.isStrictReservedWord)(e, !0)) ? !1 : (0, of.isIdentifierName)(e);
}
i(I4, "isValidIdentifier");
});
// ../node_modules/@babel/helper-string-parser/lib/index.js
var $1 = P((wa) => {
"use strict";
Object.defineProperty(wa, "__esModule", {
value: !0
});
wa.readCodePoint = V1;
wa.readInt = U1;
wa.readStringContents = O4;
var _4 = /* @__PURE__ */ i(function(t) {
return t >= 48 && t <= 57;
}, "isDigit"), q1 = {
decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]),
hex: /* @__PURE__ */ new Set([46, 88, 95, 120])
}, cl = {
bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"),
oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"),
dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"),
hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex")
};
function O4(e, t, r, n, s, a) {
let o = r, l = n, u = s, c = "", p = null, f = r, {
length: h
} = t;
for (; ; ) {
if (r >= h) {
a.unterminated(o, l, u), c += t.slice(f, r);
break;
}
let y = t.charCodeAt(r);
if (N4(e, y, t, r)) {
c += t.slice(f, r);
break;
}
if (y === 92) {
c += t.slice(f, r);
let E = B4(t, r, n, s, e === "template", a);
E.ch === null && !p ? p = {
pos: r,
lineStart: n,
curLine: s
} : c += E.ch, {
pos: r,
lineStart: n,
curLine: s
} = E, f = r;
} else y === 8232 || y === 8233 ? (++r, ++s, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(f, r) + `
`, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++s, f = n = r) : a.unterminated(o, l, u) : ++r;
}
return {
pos: r,
str: c,
firstInvalidLoc: p,
lineStart: n,
curLine: s,
containsInvalid: !!p
};
}
i(O4, "readStringContents");
function N4(e, t, r, n) {
return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39);
}
i(N4, "isStringEnd");
function B4(e, t, r, n, s, a) {
let o = !s;
t++;
let l = /* @__PURE__ */ i((c) => ({
pos: t,
ch: c,
lineStart: r,
curLine: n
}), "res"), u = e.charCodeAt(t++);
switch (u) {
case 110:
return l(`
`);
case 114:
return l("\r");
case 120: {
let c;
return {
code: c,
pos: t
} = uf(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c));
}
case 117: {
let c;
return {
code: c,
pos: t
} = V1(e, t, r, n, o, a), l(c === null ? null : String.fromCodePoint(c));
}
case 116:
return l(" ");
case 98:
return l("\b");
case 118:
return l("\v");
case 102:
return l("\f");
case 13:
e.charCodeAt(t) === 10 && ++t;
case 10:
r = t, ++n;
case 8232:
case 8233:
return l("");
case 56:
case 57:
if (s)
return l(null);
a.strictNumericEscape(t - 1, r, n);
default:
if (u >= 48 && u <= 55) {
let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8);
h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1;
let y = e.charCodeAt(t);
if (f !== "0" || y === 56 || y === 57) {
if (s)
return l(null);
a.strictNumericEscape(c, r, n);
}
return l(String.fromCharCode(h));
}
return l(String.fromCharCode(u));
}
}
i(B4, "readEscapedChar");
function uf(e, t, r, n, s, a, o, l) {
let u = t, c;
return {
n: c,
pos: t
} = U1(e, t, r, n, 16, s, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), {
code: c,
pos: t
};
}
i(uf, "readHexChar");
function U1(e, t, r, n, s, a, o, l, u, c) {
let p = t, f = s === 16 ? q1.hex : q1.decBinOct, h = s === 16 ? cl.hex : s === 10 ? cl.dec : s === 8 ? cl.oct : cl.bin, y = !1, E = 0;
for (let d = 0, g = a ?? 1 / 0; d < g; ++d) {
let C = e.charCodeAt(t), _;
if (C === 95 && l !== "bail") {
let O = e.charCodeAt(t - 1), B = e.charCodeAt(t + 1);
if (l) {
if (Number.isNaN(B) || !h(B) || f.has(O) || f.has(B)) {
if (c) return {
n: null,
pos: t
};
u.unexpectedNumericSeparator(t, r, n);
}
} else {
if (c) return {
n: null,
pos: t
};
u.numericSeparatorInEscapeSequence(t, r, n);
}
++t;
continue;
}
if (C >= 97 ? _ = C - 97 + 10 : C >= 65 ? _ = C - 65 + 10 : _4(C) ? _ = C - 48 : _ = 1 / 0, _ >= s) {
if (_ <= 9 && c)
return {
n: null,
pos: t
};
if (_ <= 9 && u.invalidDigit(t, r, n, s))
_ = 0;
else if (o)
_ = 0, y = !0;
else
break;
}
++t, E = E * s + _;
}
return t === p || a != null && t - p !== a || y ? {
n: null,
pos: t
} : {
n: E,
pos: t
};
}
i(U1, "readInt");
function V1(e, t, r, n, s, a) {
let o = e.charCodeAt(t), l;
if (o === 123) {
if (++t, {
code: l,
pos: t
} = uf(e, t, r, n, e.indexOf("}", t) - t, !0, s, a), ++t, l !== null && l > 1114111)
if (s)
a.invalidCodePoint(t, r, n);
else
return {
code: null,
pos: t
};
} else
({
code: l,
pos: t
} = uf(e, t, r, n, 4, !1, s, a));
return {
code: l,
pos: t
};
}
i(V1, "readCodePoint");
});
// ../node_modules/@babel/types/lib/constants/index.js
var Si = P((Le) => {
"use strict";
Object.defineProperty(Le, "__esModule", {
value: !0
});
Le.UPDATE_OPERATORS = Le.UNARY_OPERATORS = Le.STRING_UNARY_OPERATORS = Le.STATEMENT_OR_BLOCK_KEYS = Le.NUMBER_UNARY_OPERATORS = Le.NUMBER_BINARY_OPERATORS =
Le.LOGICAL_OPERATORS = Le.INHERIT_KEYS = Le.FOR_INIT_KEYS = Le.FLATTENABLE_KEYS = Le.EQUALITY_BINARY_OPERATORS = Le.COMPARISON_BINARY_OPERATORS =
Le.COMMENT_KEYS = Le.BOOLEAN_UNARY_OPERATORS = Le.BOOLEAN_NUMBER_BINARY_OPERATORS = Le.BOOLEAN_BINARY_OPERATORS = Le.BINARY_OPERATORS = Le.
ASSIGNMENT_OPERATORS = void 0;
var Xbe = Le.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], zbe = Le.FLATTENABLE_KEYS = ["body", "expressions"], Qbe = Le.
FOR_INIT_KEYS = ["left", "init"], Zbe = Le.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], k4 = Le.LOGICAL_OPERATORS =
["||", "&&", "??"], e1e = Le.UPDATE_OPERATORS = ["++", "--"], F4 = Le.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], j4 = Le.EQUALITY_BINARY_OPERATORS =
["==", "===", "!=", "!=="], L4 = Le.COMPARISON_BINARY_OPERATORS = [...j4, "in", "instanceof"], M4 = Le.BOOLEAN_BINARY_OPERATORS = [...L4, ...F4],
W1 = Le.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], t1e = Le.BINARY_OPERATORS = ["+", ...W1, ...M4,
"|>"], r1e = Le.ASSIGNMENT_OPERATORS = ["=", "+=", ...W1.map((e) => e + "="), ...k4.map((e) => e + "=")], R4 = Le.BOOLEAN_UNARY_OPERATORS =
["delete", "!"], q4 = Le.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], U4 = Le.STRING_UNARY_OPERATORS = ["typeof"], n1e = Le.UNARY_OPERATORS =
["void", "throw", ...R4, ...q4, ...U4], s1e = Le.INHERIT_KEYS = {
optional: ["typeAnnotation", "typeParameters", "returnType"],
force: ["start", "loc", "end"]
};
Le.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), Le.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local bi\
nding");
});
// ../node_modules/@babel/types/lib/definitions/utils.js
var on = P((Ge) => {
"use strict";
Object.defineProperty(Ge, "__esModule", {
value: !0
});
Ge.allExpandedTypes = Ge.VISITOR_KEYS = Ge.NODE_PARENT_VALIDATIONS = Ge.NODE_FIELDS = Ge.FLIPPED_ALIAS_KEYS = Ge.DEPRECATED_KEYS = Ge.BUILDER_KEYS =
Ge.ALIAS_KEYS = void 0;
Ge.arrayOf = G1;
Ge.arrayOfType = H1;
Ge.assertEach = Y1;
Ge.assertNodeOrValueType = e8;
Ge.assertNodeType = fl;
Ge.assertOneOf = Q4;
Ge.assertOptionalChainStart = r8;
Ge.assertShape = t8;
Ge.assertValueType = df;
Ge.chain = J1;
Ge.default = X1;
Ge.defineAliasedType = i8;
Ge.validate = ff;
Ge.validateArrayOfType = z4;
Ge.validateOptional = J4;
Ge.validateOptionalType = X4;
Ge.validateType = Y4;
var K1 = bi(), Ia = dl(), V4 = Ge.VISITOR_KEYS = {}, $4 = Ge.ALIAS_KEYS = {}, cf = Ge.FLIPPED_ALIAS_KEYS = {}, W4 = Ge.NODE_FIELDS = {}, K4 = Ge.
BUILDER_KEYS = {}, G4 = Ge.DEPRECATED_KEYS = {}, H4 = Ge.NODE_PARENT_VALIDATIONS = {};
function pl(e) {
return Array.isArray(e) ? "array" : e === null ? "null" : typeof e;
}
i(pl, "getType");
function ff(e) {
return {
validate: e
};
}
i(ff, "validate");
function Y4(...e) {
return ff(fl(...e));
}
i(Y4, "validateType");
function J4(e) {
return {
validate: e,
optional: !0
};
}
i(J4, "validateOptional");
function X4(...e) {
return {
validate: fl(...e),
optional: !0
};
}
i(X4, "validateOptionalType");
function G1(e) {
return J1(df("array"), Y1(e));
}
i(G1, "arrayOf");
function H1(...e) {
return G1(fl(...e));
}
i(H1, "arrayOfType");
function z4(...e) {
return ff(H1(...e));
}
i(z4, "validateArrayOfType");
function Y1(e) {
let t = process.env.BABEL_TYPES_8_BREAKING ? Ia.validateChild : () => {
};
function r(n, s, a) {
if (!Array.isArray(a)) return;
let o = 0, l = {
toString() {
return `${s}[${o}]`;
}
};
for (; o < a.length; o++) {
let u = a[o];
e(n, l, u), t(n, l, u);
}
}
return i(r, "validator"), r.each = e, r;
}
i(Y1, "assertEach");
function Q4(...e) {
function t(r, n, s) {
if (!e.includes(s))
throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`);
}
return i(t, "validate"), t.oneOf = e, t;
}
i(Q4, "assertOneOf");
var Z4 = Ge.allExpandedTypes = [];
function fl(...e) {
let t = /* @__PURE__ */ new Set();
Z4.push({
types: e,
set: t
});
function r(n, s, a) {
let o = a?.type;
if (o != null) {
if (t.has(o)) {
(0, Ia.validateChild)(n, s, a);
return;
}
if (o === "Placeholder") {
for (let l of e)
if ((0, K1.default)(l, a)) {
(0, Ia.validateChild)(n, s, a);
return;
}
}
}
throw new TypeError(`Property ${s} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`);
}
return i(r, "validate"), r.oneOfNodeTypes = e, r;
}
i(fl, "assertNodeType");
function e8(...e) {
function t(r, n, s) {
let a = pl(s);
for (let o of e)
if (a === o || (0, K1.default)(o, s)) {
(0, Ia.validateChild)(r, n, s);
return;
}
throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.
type)}`);
}
return i(t, "validate"), t.oneOfNodeOrValueTypes = e, t;
}
i(e8, "assertNodeOrValueType");
function df(e) {
function t(r, n, s) {
if (pl(s) !== e)
throw new TypeError(`Property ${n} expected type of ${e} but got ${pl(s)}`);
}
return i(t, "validate"), t.type = e, t;
}
i(df, "assertValueType");
function t8(e) {
let t = Object.keys(e);
function r(n, s, a) {
let o = [];
for (let l of t)
try {
(0, Ia.validateField)(n, l, a[l], e[l]);
} catch (u) {
if (u instanceof TypeError) {
o.push(u.message);
continue;
}
throw u;
}
if (o.length)
throw new TypeError(`Property ${s} of ${n.type} expected to have the following:
${o.join(`
`)}`);
}
return i(r, "validate"), r.shapeOf = e, r;
}
i(t8, "assertShape");
function r8() {
function e(t) {
var r;
let n = t;
for (; t; ) {
let {
type: s
} = n;
if (s === "OptionalCallExpression") {
if (n.optional) return;
n = n.callee;
continue;
}
if (s === "OptionalMemberExpression") {
if (n.optional) return;
n = n.object;
continue;
}
break;
}
throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chai\
n from ${(r = n) == null ? void 0 : r.type}`);
}
return i(e, "validate"), e;
}
i(r8, "assertOptionalChainStart");
function J1(...e) {
function t(...r) {
for (let n of e)
n(...r);
}
if (i(t, "validate"), t.chainOf = e, e.length >= 2 && "type" in e[0] && e[0].type === "array" && !("each" in e[1]))
throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');
return t;
}
i(J1, "chain");
var n8 = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]), s8 = /* @__PURE__ */ new Set(
["default", "optional", "deprecated", "validate"]), pf = {};
function i8(...e) {
return (t, r = {}) => {
let n = r.aliases;
if (!n) {
var s;
r.inherits && (n = (s = pf[r.inherits].aliases) == null ? void 0 : s.slice()), n ?? (n = []), r.aliases = n;
}
let a = e.filter((o) => !n.includes(o));
n.unshift(...a), X1(t, r);
};
}
i(i8, "defineAliasedType");
function X1(e, t = {}) {
let r = t.inherits && pf[t.inherits] || {}, n = t.fields;
if (!n && (n = {}, r.fields)) {
let l = Object.getOwnPropertyNames(r.fields);
for (let u of l) {
let c = r.fields[u], p = c.default;
if (Array.isArray(p) ? p.length > 0 : p && typeof p == "object")
throw new Error("field defaults can only be primitives or empty arrays currently");
n[u] = {
default: Array.isArray(p) ? [] : p,
optional: c.optional,
deprecated: c.deprecated,
validate: c.validate
};
}
}
let s = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || [];
for (let l of Object.keys(t))
if (!n8.has(l))
throw new Error(`Unknown type option "${l}" on ${e}`);
t.deprecatedAlias && (G4[t.deprecatedAlias] = e);
for (let l of s.concat(o))
n[l] = n[l] || {};
for (let l of Object.keys(n)) {
let u = n[l];
u.default !== void 0 && !o.includes(l) && (u.optional = !0), u.default === void 0 ? u.default = null : !u.validate && u.default != null &&
(u.validate = df(pl(u.default)));
for (let c of Object.keys(u))
if (!s8.has(c))
throw new Error(`Unknown field key "${c}" on ${e}.${l}`);
}
V4[e] = t.visitor = s, K4[e] = t.builder = o, W4[e] = t.fields = n, $4[e] = t.aliases = a, a.forEach((l) => {
cf[l] = cf[l] || [], cf[l].push(e);
}), t.validate && (H4[e] = t.validate), pf[e] = t;
}
i(X1, "defineType");
});
// ../node_modules/@babel/types/lib/definitions/core.js
var Oa = P((Jt) => {
"use strict";
Object.defineProperty(Jt, "__esModule", {
value: !0
});
Jt.patternLikeCommon = Jt.importAttributes = Jt.functionTypeAnnotationCommon = Jt.functionDeclarationCommon = Jt.functionCommon = Jt.classMethodOrPropertyCommon =
Jt.classMethodOrDeclareMethodCommon = void 0;
var rr = bi(), a8 = Ti(), z1 = Ei(), o8 = $1(), _a = Si(), D = on(), re = (0, D.defineAliasedType)("Standardized");
re("ArrayExpression", {
fields: {
elements: {
validate: (0, D.arrayOf)((0, D.assertNodeOrValueType)("null", "Expression", "SpreadElement")),
default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : []
}
},
visitor: ["elements"],
aliases: ["Expression"]
});
re("AssignmentExpression", {
fields: {
operator: {
validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function() {
let e = (0, D.assertOneOf)(..._a.ASSIGNMENT_OPERATORS), t = (0, D.assertOneOf)("=");
return function(r, n, s) {
((0, rr.default)("Pattern", r.left) ? t : e)(r, n, s);
};
}(), {
type: "string"
}) : (0, D.assertValueType)("string")
},
left: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\
ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)(
"LVal", "OptionalMemberExpression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
},
builder: ["operator", "left", "right"],
visitor: ["left", "right"],
aliases: ["Expression"]
});
re("BinaryExpression", {
builder: ["operator", "left", "right"],
fields: {
operator: {
validate: (0, D.assertOneOf)(..._a.BINARY_OPERATORS)
},
left: {
validate: function() {
let e = (0, D.assertNodeType)("Expression"), t = (0, D.assertNodeType)("Expression", "PrivateName");
return Object.assign(function(n, s, a) {
(n.operator === "in" ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "PrivateName"]
});
}()
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
},
visitor: ["left", "right"],
aliases: ["Binary", "Expression"]
});
re("InterpreterDirective", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
}
});
re("Directive", {
visitor: ["value"],
fields: {
value: {
validate: (0, D.assertNodeType)("DirectiveLiteral")
}
}
});
re("DirectiveLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
}
});
re("BlockStatement", {
builder: ["body", "directives"],
visitor: ["directives", "body"],
fields: {
directives: {
validate: (0, D.arrayOfType)("Directive"),
default: []
},
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "Block", "Statement"]
});
re("BreakStatement", {
visitor: ["label"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
},
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
});
re("CallExpression", {
visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
builder: ["callee", "arguments"],
aliases: ["Expression"],
fields: Object.assign({
callee: {
validate: (0, D.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier")
},
arguments: (0, D.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
typeArguments: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
})
});
re("CatchClause", {
visitor: ["param", "body"],
fields: {
param: {
validate: (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
},
aliases: ["Scopable", "BlockParent"]
});
re("ConditionalExpression", {
visitor: ["test", "consequent", "alternate"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
consequent: {
validate: (0, D.assertNodeType)("Expression")
},
alternate: {
validate: (0, D.assertNodeType)("Expression")
}
},
aliases: ["Expression", "Conditional"]
});
re("ContinueStatement", {
visitor: ["label"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
},
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
});
re("DebuggerStatement", {
aliases: ["Statement"]
});
re("DoWhileStatement", {
builder: ["test", "body"],
visitor: ["body", "test"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
},
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
});
re("EmptyStatement", {
aliases: ["Statement"]
});
re("ExpressionStatement", {
visitor: ["expression"],
fields: {
expression: {
validate: (0, D.assertNodeType)("Expression")
}
},
aliases: ["Statement", "ExpressionWrapper"]
});
re("File", {
builder: ["program", "comments", "tokens"],
visitor: ["program"],
fields: {
program: {
validate: (0, D.assertNodeType)("Program")
},
comments: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertEach)((0, D.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign(
() => {
}, {
each: {
oneOfNodeTypes: ["CommentBlock", "CommentLine"]
}
}),
optional: !0
},
tokens: {
validate: (0, D.assertEach)(Object.assign(() => {
}, {
type: "any"
})),
optional: !0
}
}
});
re("ForInStatement", {
visitor: ["left", "right", "body"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
fields: {
left: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\
Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)("Var\
iableDeclaration", "LVal")
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("ForStatement", {
visitor: ["init", "test", "update", "body"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
fields: {
init: {
validate: (0, D.assertNodeType)("VariableDeclaration", "Expression"),
optional: !0
},
test: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
update: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
var xi = /* @__PURE__ */ i(() => ({
params: (0, D.validateArrayOfType)("Identifier", "Pattern", "RestElement"),
generator: {
default: !1
},
async: {
default: !1
}
}), "functionCommon");
Jt.functionCommon = xi;
var Os = /* @__PURE__ */ i(() => ({
returnType: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
}
}), "functionTypeAnnotationCommon");
Jt.functionTypeAnnotationCommon = Os;
var Q1 = /* @__PURE__ */ i(() => Object.assign({}, xi(), {
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
}), "functionDeclarationCommon");
Jt.functionDeclarationCommon = Q1;
re("FunctionDeclaration", {
builder: ["id", "params", "body", "generator", "async"],
visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"],
fields: Object.assign({}, Q1(), Os(), {
body: {
validate: (0, D.assertNodeType)("BlockStatement")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
}),
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"],
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
(0, rr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id);
};
}() : void 0
});
re("FunctionExpression", {
inherits: "FunctionDeclaration",
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
fields: Object.assign({}, xi(), Os(), {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
})
});
var vi = /* @__PURE__ */ i(() => ({
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
}), "patternLikeCommon");
Jt.patternLikeCommon = vi;
re("Identifier", {
builder: ["name"],
visitor: ["typeAnnotation", "decorators"],
aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"],
fields: Object.assign({}, vi(), {
name: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("string"), Object.assign(function(e, t, r) {
if (!(0, a8.default)(r, !1))
throw new TypeError(`"${r}" is not a valid identifier name`);
}, {
type: "string"
})) : (0, D.assertValueType)("string")
}
}),
validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t, r) {
let n = /\.(\w+)$/.exec(t.toString());
if (!n) return;
let [, s] = n, a = {
computed: !1
};
if (s === "property") {
if ((0, rr.default)("MemberExpression", e, a) || (0, rr.default)("OptionalMemberExpression", e, a)) return;
} else if (s === "key") {
if ((0, rr.default)("Property", e, a) || (0, rr.default)("Method", e, a)) return;
} else if (s === "exported") {
if ((0, rr.default)("ExportSpecifier", e)) return;
} else if (s === "imported") {
if ((0, rr.default)("ImportSpecifier", e, {
imported: r
})) return;
} else if (s === "meta" && (0, rr.default)("MetaProperty", e, {
meta: r
}))
return;
if (((0, z1.isKeyword)(r.name) || (0, z1.isReservedWord)(r.name, !1)) && r.name !== "this")
throw new TypeError(`"${r.name}" is not a valid identifier`);
} : void 0
});
re("IfStatement", {
visitor: ["test", "consequent", "alternate"],
aliases: ["Statement", "Conditional"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
consequent: {
validate: (0, D.assertNodeType)("Statement")
},
alternate: {
optional: !0,
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("LabeledStatement", {
visitor: ["label", "body"],
aliases: ["Statement"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("StringLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("NumericLiteral", {
builder: ["value"],
deprecatedAlias: "NumberLiteral",
fields: {
value: {
validate: (0, D.chain)((0, D.assertValueType)("number"), Object.assign(function(e, t, r) {
if (1 / r < 0 || !Number.isFinite(r)) {
let n = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`);
}
}, {
type: "number"
}))
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("NullLiteral", {
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("BooleanLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("boolean")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("RegExpLiteral", {
builder: ["pattern", "flags"],
deprecatedAlias: "RegexLiteral",
aliases: ["Expression", "Pureish", "Literal"],
fields: {
pattern: {
validate: (0, D.assertValueType)("string")
},
flags: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("string"), Object.assign(function(e, t, r) {
let n = /[^gimsuy]/.exec(r);
if (n)
throw new TypeError(`"${n[0]}" is not a valid RegExp flag`);
}, {
type: "string"
})) : (0, D.assertValueType)("string"),
default: ""
}
}
});
re("LogicalExpression", {
builder: ["operator", "left", "right"],
visitor: ["left", "right"],
aliases: ["Binary", "Expression"],
fields: {
operator: {
validate: (0, D.assertOneOf)(..._a.LOGICAL_OPERATORS)
},
left: {
validate: (0, D.assertNodeType)("Expression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("MemberExpression", {
builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]],
visitor: ["object", "property"],
aliases: ["Expression", "LVal"],
fields: Object.assign({
object: {
validate: (0, D.assertNodeType)("Expression", "Super")
},
property: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "PrivateName"), t = (0, D.assertNodeType)("Expression"), r = /* @__PURE__ */ i(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, "validator");
return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r;
}()
},
computed: {
default: !1
}
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
})
});
re("NewExpression", {
inherits: "CallExpression"
});
re("Program", {
visitor: ["directives", "body"],
builder: ["body", "directives", "sourceType", "interpreter"],
fields: {
sourceType: {
validate: (0, D.assertOneOf)("script", "module"),
default: "script"
},
interpreter: {
validate: (0, D.assertNodeType)("InterpreterDirective"),
default: null,
optional: !0
},
directives: {
validate: (0, D.arrayOfType)("Directive"),
default: []
},
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "Block"]
});
re("ObjectExpression", {
visitor: ["properties"],
aliases: ["Expression"],
fields: {
properties: (0, D.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement")
}
});
re("ObjectMethod", {
builder: ["kind", "key", "params", "body", "computed", "generator", "async"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
fields: Object.assign({}, xi(), Os(), {
kind: Object.assign({
validate: (0, D.assertOneOf)("method", "get", "set")
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
default: "method"
}),
computed: {
default: !1
},
key: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, D.assertNodeType)("Expres\
sion"), r = /* @__PURE__ */ i(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, "validator");
return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r;
}()
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
}),
aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
});
re("ObjectProperty", {
builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]],
fields: {
computed: {
default: !1
},
key: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, D.
assertNodeType)("Expression");
return Object.assign(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"]
});
}()
},
value: {
validate: (0, D.assertNodeType)("Expression", "PatternLike")
},
shorthand: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), Object.assign(function(e, t, r) {
if (r) {
if (e.computed)
throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
if (!(0, rr.default)("Identifier", e.key))
throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
}
}, {
type: "boolean"
})) : (0, D.assertValueType)("boolean"),
default: !1
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
},
visitor: ["key", "value", "decorators"],
aliases: ["UserWhitespacable", "Property", "ObjectMember"],
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\
ion"), t = (0, D.assertNodeType)("Expression");
return function(r, n, s) {
((0, rr.default)("ObjectPattern", r) ? e : t)(s, "value", s.value);
};
}() : void 0
});
re("RestElement", {
visitor: ["argument", "typeAnnotation"],
builder: ["argument"],
aliases: ["LVal", "PatternLike"],
deprecatedAlias: "RestProperty",
fields: Object.assign({}, vi(), {
argument: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\
n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)("LVal")
}
}),
validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t) {
let r = /(\w+)\[(\d+)\]/.exec(t.toString());
if (!r) throw new Error("Internal Babel error: malformed key.");
let [, n, s] = r;
if (e[n].length > +s + 1)
throw new TypeError(`RestElement must be last element of ${n}`);
} : void 0
});
re("ReturnStatement", {
visitor: ["argument"],
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
}
}
});
re("SequenceExpression", {
visitor: ["expressions"],
fields: {
expressions: (0, D.validateArrayOfType)("Expression")
},
aliases: ["Expression"]
});
re("ParenthesizedExpression", {
visitor: ["expression"],
aliases: ["Expression", "ExpressionWrapper"],
fields: {
expression: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("SwitchCase", {
visitor: ["test", "consequent"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
consequent: (0, D.validateArrayOfType)("Statement")
}
});
re("SwitchStatement", {
visitor: ["discriminant", "cases"],
aliases: ["Statement", "BlockParent", "Scopable"],
fields: {
discriminant: {
validate: (0, D.assertNodeType)("Expression")
},
cases: (0, D.validateArrayOfType)("SwitchCase")
}
});
re("ThisExpression", {
aliases: ["Expression"]
});
re("ThrowStatement", {
visitor: ["argument"],
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("TryStatement", {
visitor: ["block", "handler", "finalizer"],
aliases: ["Statement"],
fields: {
block: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("BlockStatement"), Object.assign(function(e) {
if (!e.handler && !e.finalizer)
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
}, {
oneOfNodeTypes: ["BlockStatement"]
})) : (0, D.assertNodeType)("BlockStatement")
},
handler: {
optional: !0,
validate: (0, D.assertNodeType)("CatchClause")
},
finalizer: {
optional: !0,
validate: (0, D.assertNodeType)("BlockStatement")
}
}
});
re("UnaryExpression", {
builder: ["operator", "argument", "prefix"],
fields: {
prefix: {
default: !0
},
argument: {
validate: (0, D.assertNodeType)("Expression")
},
operator: {
validate: (0, D.assertOneOf)(..._a.UNARY_OPERATORS)
}
},
visitor: ["argument"],
aliases: ["UnaryLike", "Expression"]
});
re("UpdateExpression", {
builder: ["operator", "argument", "prefix"],
fields: {
prefix: {
default: !1
},
argument: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "MemberExpression") : (0, D.assertNodeType)("Expr\
ession")
},
operator: {
validate: (0, D.assertOneOf)(..._a.UPDATE_OPERATORS)
}
},
visitor: ["argument"],
aliases: ["Expression"]
});
re("VariableDeclaration", {
builder: ["kind", "declarations"],
visitor: ["declarations"],
aliases: ["Statement", "Declaration"],
fields: {
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
kind: {
validate: (0, D.assertOneOf)("var", "let", "const", "using", "await using")
},
declarations: (0, D.validateArrayOfType)("VariableDeclarator")
},
validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
if ((0, rr.default)("ForXStatement", t, {
left: n
})) {
if (n.declarations.length !== 1)
throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`);
} else
n.declarations.forEach((s) => {
s.init || e(s, "id", s.id);
});
};
})() : void 0
});
re("VariableDeclarator", {
visitor: ["id", "init"],
fields: {
id: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern") : (0, D.assertNodeType)(
"LVal")
},
definite: {
optional: !0,
validate: (0, D.assertValueType)("boolean")
},
init: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("WhileStatement", {
visitor: ["test", "body"],
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("WithStatement", {
visitor: ["object", "body"],
aliases: ["Statement"],
fields: {
object: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("AssignmentPattern", {
visitor: ["left", "right", "decorators"],
builder: ["left", "right"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, vi(), {
left: {
validate: (0, D.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\
ression", "TSTypeAssertion", "TSNonNullExpression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
})
});
re("ArrayPattern", {
visitor: ["elements", "typeAnnotation"],
builder: ["elements"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, vi(), {
elements: {
validate: (0, D.chain)((0, D.assertValueType)("array"), (0, D.assertEach)((0, D.assertNodeOrValueType)("null", "PatternLike", "LVal")))
}
})
});
re("ArrowFunctionExpression", {
builder: ["params", "body", "async"],
visitor: ["typeParameters", "params", "predicate", "returnType", "body"],
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
fields: Object.assign({}, xi(), Os(), {
expression: {
validate: (0, D.assertValueType)("boolean")
},
body: {
validate: (0, D.assertNodeType)("BlockStatement", "Expression")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
})
});
re("ClassBody", {
visitor: ["body"],
fields: {
body: (0, D.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty",
"TSDeclareMethod", "TSIndexSignature", "StaticBlock")
}
});
re("ClassExpression", {
builder: ["id", "superClass", "body", "decorators"],
visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"],
aliases: ["Scopable", "Class", "Expression"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("ClassBody")
},
superClass: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
},
superTypeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
},
implements: {
validate: (0, D.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
mixins: {
validate: (0, D.assertNodeType)("InterfaceExtends"),
optional: !0
}
}
});
re("ClassDeclaration", {
inherits: "ClassExpression",
aliases: ["Scopable", "Class", "Statement", "Declaration"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("ClassBody")
},
superClass: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
},
superTypeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
},
implements: {
validate: (0, D.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
mixins: {
validate: (0, D.assertNodeType)("InterfaceExtends"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
abstract: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
},
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
(0, rr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id);
};
}() : void 0
});
var hf = Jt.importAttributes = {
attributes: {
optional: !0,
validate: (0, D.arrayOfType)("ImportAttribute")
},
assertions: {
deprecated: !0,
optional: !0,
validate: (0, D.arrayOfType)("ImportAttribute")
}
};
re("ExportAllDeclaration", {
builder: ["source"],
visitor: ["source", "attributes", "assertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: Object.assign({
source: {
validate: (0, D.assertNodeType)("StringLiteral")
},
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("type", "value"))
}, hf)
});
re("ExportDefaultDeclaration", {
visitor: ["declaration"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: {
declaration: (0, D.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"),
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("value"))
}
});
re("ExportNamedDeclaration", {
builder: ["declaration", "specifiers", "source"],
visitor: process.env ? ["declaration", "specifiers", "source", "attributes"] : ["declaration", "specifiers", "source", "attributes", "as\
sertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: Object.assign({
declaration: {
optional: !0,
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("Declaration"), Object.assign(function(e, t, r) {
if (r && e.specifiers.length)
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
if (r && e.source)
throw new TypeError("Cannot export a declaration from a source");
}, {
oneOfNodeTypes: ["Declaration"]
})) : (0, D.assertNodeType)("Declaration")
}
}, hf, {
specifiers: {
default: [],
validate: (0, D.arrayOf)(function() {
let e = (0, D.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, D.assertNodeType)(
"ExportSpecifier");
return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(r, n, s) {
(r.source ? e : t)(r, n, s);
}, {
oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"]
}) : e;
}())
},
source: {
validate: (0, D.assertNodeType)("StringLiteral"),
optional: !0
},
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("type", "value"))
})
});
re("ExportSpecifier", {
visitor: ["local", "exported"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
},
exported: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
exportKind: {
validate: (0, D.assertOneOf)("type", "value"),
optional: !0
}
}
});
re("ForOfStatement", {
visitor: ["left", "right", "body"],
builder: ["left", "right", "body", "await"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
fields: {
left: {
validate: function() {
if (!process.env.BABEL_TYPES_8_BREAKING)
return (0, D.assertNodeType)("VariableDeclaration", "LVal");
let e = (0, D.assertNodeType)("VariableDeclaration"), t = (0, D.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\
ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
return Object.assign(function(r, n, s) {
(0, rr.default)("VariableDeclaration", s) ? e(r, n, s) : t(r, n, s);
}, {
oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TS\
SatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"]
});
}()
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
},
await: {
default: !1
}
}
});
re("ImportDeclaration", {
builder: ["specifiers", "source"],
visitor: ["specifiers", "source", "attributes", "assertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
fields: Object.assign({}, hf, {
module: {
optional: !0,
validate: (0, D.assertValueType)("boolean")
},
phase: {
default: null,
validate: (0, D.assertOneOf)("source", "defer")
},
specifiers: (0, D.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"),
source: {
validate: (0, D.assertNodeType)("StringLiteral")
},
importKind: {
validate: (0, D.assertOneOf)("type", "typeof", "value"),
optional: !0
}
})
});
re("ImportDefaultSpecifier", {
visitor: ["local"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("ImportNamespaceSpecifier", {
visitor: ["local"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("ImportSpecifier", {
visitor: ["imported", "local"],
builder: ["local", "imported"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
},
imported: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
importKind: {
validate: (0, D.assertOneOf)("type", "typeof", "value"),
optional: !0
}
}
});
re("ImportExpression", {
visitor: ["source", "options"],
aliases: ["Expression"],
fields: {
phase: {
default: null,
validate: (0, D.assertOneOf)("source", "defer")
},
source: {
validate: (0, D.assertNodeType)("Expression")
},
options: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
}
}
});
re("MetaProperty", {
visitor: ["meta", "property"],
aliases: ["Expression"],
fields: {
meta: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("Identifier"), Object.assign(function(e, t, r) {
let n;
switch (r.name) {
case "function":
n = "sent";
break;
case "new":
n = "target";
break;
case "import":
n = "meta";
break;
}
if (!(0, rr.default)("Identifier", e.property, {
name: n
}))
throw new TypeError("Unrecognised MetaProperty");
}, {
oneOfNodeTypes: ["Identifier"]
})) : (0, D.assertNodeType)("Identifier")
},
property: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
var hl = /* @__PURE__ */ i(() => ({
abstract: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
accessibility: {
validate: (0, D.assertOneOf)("public", "private", "protected"),
optional: !0
},
static: {
default: !1
},
override: {
default: !1
},
computed: {
default: !1
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
key: {
validate: (0, D.chain)(function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, D.assertNodeType)("Expressi\
on");
return function(r, n, s) {
(r.computed ? t : e)(r, n, s);
};
}(), (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression"))
}
}), "classMethodOrPropertyCommon");
Jt.classMethodOrPropertyCommon = hl;
var mf = /* @__PURE__ */ i(() => Object.assign({}, xi(), hl(), {
params: (0, D.validateArrayOfType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"),
kind: {
validate: (0, D.assertOneOf)("get", "set", "method", "constructor"),
default: "method"
},
access: {
validate: (0, D.chain)((0, D.assertValueType)("string"), (0, D.assertOneOf)("public", "private", "protected")),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
}), "classMethodOrDeclareMethodCommon");
Jt.classMethodOrDeclareMethodCommon = mf;
re("ClassMethod", {
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
fields: Object.assign({}, mf(), Os(), {
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
})
});
re("ObjectPattern", {
visitor: ["properties", "typeAnnotation", "decorators"],
builder: ["properties"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, vi(), {
properties: (0, D.validateArrayOfType)("RestElement", "ObjectProperty")
})
});
re("SpreadElement", {
visitor: ["argument"],
aliases: ["UnaryLike"],
deprecatedAlias: "SpreadProperty",
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("Super", {
aliases: ["Expression"]
});
re("TaggedTemplateExpression", {
visitor: ["tag", "typeParameters", "quasi"],
builder: ["tag", "quasi"],
aliases: ["Expression"],
fields: {
tag: {
validate: (0, D.assertNodeType)("Expression")
},
quasi: {
validate: (0, D.assertNodeType)("TemplateLiteral")
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
}
}
});
re("TemplateElement", {
builder: ["value", "tail"],
fields: {
value: {
validate: (0, D.chain)((0, D.assertShape)({
raw: {
validate: (0, D.assertValueType)("string")
},
cooked: {
validate: (0, D.assertValueType)("string"),
optional: !0
}
}), /* @__PURE__ */ i(function(t) {
let r = t.value.raw, n = !1, s = /* @__PURE__ */ i(() => {
throw new Error("Internal @babel/types error.");
}, "error"), {
str: a,
firstInvalidLoc: o
} = (0, o8.readStringContents)("template", r, 0, 0, 0, {
unterminated() {
n = !0;
},
strictNumericEscape: s,
invalidEscapeSequence: s,
numericSeparatorInEscapeSequence: s,
unexpectedNumericSeparator: s,
invalidDigit: s,
invalidCodePoint: s
});
if (!n) throw new Error("Invalid raw");
t.value.cooked = o ? null : a;
}, "templateElementCookedValidator"))
},
tail: {
default: !1
}
}
});
re("TemplateLiteral", {
visitor: ["quasis", "expressions"],
aliases: ["Expression", "Literal"],
fields: {
quasis: (0, D.validateArrayOfType)("TemplateElement"),
expressions: {
validate: (0, D.chain)((0, D.assertValueType)("array"), (0, D.assertEach)((0, D.assertNodeType)("Expression", "TSType")), function(e, t, r) {
if (e.quasis.length !== r.length + 1)
throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
Expected ${r.length + 1} quasis but got ${e.quasis.length}`);
})
}
}
});
re("YieldExpression", {
builder: ["argument", "delegate"],
visitor: ["argument"],
aliases: ["Expression", "Terminatorless"],
fields: {
delegate: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), Object.assign(function(e, t, r) {
if (r && !e.argument)
throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
}, {
type: "boolean"
})) : (0, D.assertValueType)("boolean"),
default: !1
},
argument: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("AwaitExpression", {
builder: ["argument"],
visitor: ["argument"],
aliases: ["Expression", "Terminatorless"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("Import", {
aliases: ["Expression"]
});
re("BigIntLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("ExportNamespaceSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("OptionalMemberExpression", {
builder: ["object", "property", "computed", "optional"],
visitor: ["object", "property"],
aliases: ["Expression"],
fields: {
object: {
validate: (0, D.assertNodeType)("Expression")
},
property: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier"), t = (0, D.assertNodeType)("Expression");
return Object.assign(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "Identifier"]
});
}()
},
computed: {
default: !1
},
optional: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), (0, D.assertOptionalChainStart)()) : (0, D.
assertValueType)("boolean")
}
}
});
re("OptionalCallExpression", {
visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
builder: ["callee", "arguments", "optional"],
aliases: ["Expression"],
fields: Object.assign({
callee: {
validate: (0, D.assertNodeType)("Expression")
},
arguments: (0, D.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
optional: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), (0, D.assertOptionalChainStart)()) : (0, D.
assertValueType)("boolean")
},
typeArguments: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
typeParameters: {
validate: (0, D.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
})
});
re("ClassProperty", {
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
aliases: ["Property"],
fields: Object.assign({}, hl(), {
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
})
});
re("ClassAccessorProperty", {
visitor: ["decorators", "key", "typeAnnotation", "value"],
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
aliases: ["Property", "Accessor"],
fields: Object.assign({}, hl(), {
key: {
validate: (0, D.chain)(function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, D.assertNodeType)(
"Expression");
return function(r, n, s) {
(r.computed ? t : e)(r, n, s);
};
}(), (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName"))
},
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
})
});
re("ClassPrivateProperty", {
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
builder: ["key", "value", "decorators", "static"],
aliases: ["Property", "Private"],
fields: {
key: {
validate: (0, D.assertNodeType)("PrivateName")
},
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
static: {
validate: (0, D.assertValueType)("boolean"),
default: !1
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
}
});
re("ClassPrivateMethod", {
builder: ["kind", "key", "params", "body", "static"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
fields: Object.assign({}, mf(), Os(), {
kind: {
validate: (0, D.assertOneOf)("get", "set", "method"),
default: "method"
},
key: {
validate: (0, D.assertNodeType)("PrivateName")
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
})
});
re("PrivateName", {
visitor: ["id"],
aliases: ["Private"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("StaticBlock", {
visitor: ["body"],
fields: {
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "FunctionParent"]
});
re("ImportAttribute", {
visitor: ["key", "value"],
fields: {
key: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
value: {
validate: (0, D.assertNodeType)("StringLiteral")
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/flow.js
var eE = P(() => {
"use strict";
var Z1 = Oa(), L = on(), de = (0, L.defineAliasedType)("Flow"), yf = /* @__PURE__ */ i((e) => {
let t = e === "DeclareClass";
de(e, {
builder: ["id", "typeParameters", "extends", "body"],
visitor: ["id", "typeParameters", "extends", ...t ? ["mixins", "implements"] : [], "body"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: Object.assign({
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends"))
}, t ? {
mixins: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")),
implements: (0, L.validateOptional)((0, L.arrayOfType)("ClassImplements"))
} : {}, {
body: (0, L.validateType)("ObjectTypeAnnotation")
})
});
}, "defineInterfaceishType");
de("AnyTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("ArrayTypeAnnotation", {
visitor: ["elementType"],
aliases: ["FlowType"],
fields: {
elementType: (0, L.validateType)("FlowType")
}
});
de("BooleanTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("BooleanLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("NullLiteralTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("ClassImplements", {
visitor: ["id", "typeParameters"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
yf("DeclareClass");
de("DeclareFunction", {
builder: ["id"],
visitor: ["id", "predicate"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
predicate: (0, L.validateOptionalType)("DeclaredPredicate")
}
});
yf("DeclareInterface");
de("DeclareModule", {
builder: ["id", "body", "kind"],
visitor: ["id", "body"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier", "StringLiteral"),
body: (0, L.validateType)("BlockStatement"),
kind: (0, L.validateOptional)((0, L.assertOneOf)("CommonJS", "ES"))
}
});
de("DeclareModuleExports", {
visitor: ["typeAnnotation"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
typeAnnotation: (0, L.validateType)("TypeAnnotation")
}
});
de("DeclareTypeAlias", {
visitor: ["id", "typeParameters", "right"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
right: (0, L.validateType)("FlowType")
}
});
de("DeclareOpaqueType", {
visitor: ["id", "typeParameters", "supertype"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
supertype: (0, L.validateOptionalType)("FlowType"),
impltype: (0, L.validateOptionalType)("FlowType")
}
});
de("DeclareVariable", {
visitor: ["id"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier")
}
});
de("DeclareExportDeclaration", {
visitor: ["declaration", "specifiers", "source", "attributes"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: Object.assign({
declaration: (0, L.validateOptionalType)("Flow"),
specifiers: (0, L.validateOptional)((0, L.arrayOfType)("ExportSpecifier", "ExportNamespaceSpecifier")),
source: (0, L.validateOptionalType)("StringLiteral"),
default: (0, L.validateOptional)((0, L.assertValueType)("boolean"))
}, Z1.importAttributes)
});
de("DeclareExportAllDeclaration", {
visitor: ["source", "attributes"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: Object.assign({
source: (0, L.validateType)("StringLiteral"),
exportKind: (0, L.validateOptional)((0, L.assertOneOf)("type", "value"))
}, Z1.importAttributes)
});
de("DeclaredPredicate", {
visitor: ["value"],
aliases: ["FlowPredicate"],
fields: {
value: (0, L.validateType)("Flow")
}
});
de("ExistsTypeAnnotation", {
aliases: ["FlowType"]
});
de("FunctionTypeAnnotation", {
builder: ["typeParameters", "params", "rest", "returnType"],
visitor: ["typeParameters", "this", "params", "rest", "returnType"],
aliases: ["FlowType"],
fields: {
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
params: (0, L.validateArrayOfType)("FunctionTypeParam"),
rest: (0, L.validateOptionalType)("FunctionTypeParam"),
this: (0, L.validateOptionalType)("FunctionTypeParam"),
returnType: (0, L.validateType)("FlowType")
}
});
de("FunctionTypeParam", {
visitor: ["name", "typeAnnotation"],
fields: {
name: (0, L.validateOptionalType)("Identifier"),
typeAnnotation: (0, L.validateType)("FlowType"),
optional: (0, L.validateOptional)((0, L.assertValueType)("boolean"))
}
});
de("GenericTypeAnnotation", {
visitor: ["id", "typeParameters"],
aliases: ["FlowType"],
fields: {
id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
de("InferredPredicate", {
aliases: ["FlowPredicate"]
});
de("InterfaceExtends", {
visitor: ["id", "typeParameters"],
fields: {
id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
yf("InterfaceDeclaration");
de("InterfaceTypeAnnotation", {
visitor: ["extends", "body"],
aliases: ["FlowType"],
fields: {
extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")),
body: (0, L.validateType)("ObjectTypeAnnotation")
}
});
de("IntersectionTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
de("MixedTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("EmptyTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("NullableTypeAnnotation", {
visitor: ["typeAnnotation"],
aliases: ["FlowType"],
fields: {
typeAnnotation: (0, L.validateType)("FlowType")
}
});
de("NumberLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("number"))
}
});
de("NumberTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("ObjectTypeAnnotation", {
visitor: ["properties", "indexers", "callProperties", "internalSlots"],
aliases: ["FlowType"],
builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"],
fields: {
properties: (0, L.validate)((0, L.arrayOfType)("ObjectTypeProperty", "ObjectTypeSpreadProperty")),
indexers: {
validate: (0, L.arrayOfType)("ObjectTypeIndexer"),
optional: !0,
default: []
},
callProperties: {
validate: (0, L.arrayOfType)("ObjectTypeCallProperty"),
optional: !0,
default: []
},
internalSlots: {
validate: (0, L.arrayOfType)("ObjectTypeInternalSlot"),
optional: !0,
default: []
},
exact: {
validate: (0, L.assertValueType)("boolean"),
default: !1
},
inexact: (0, L.validateOptional)((0, L.assertValueType)("boolean"))
}
});
de("ObjectTypeInternalSlot", {
visitor: ["id", "value"],
builder: ["id", "value", "optional", "static", "method"],
aliases: ["UserWhitespacable"],
fields: {
id: (0, L.validateType)("Identifier"),
value: (0, L.validateType)("FlowType"),
optional: (0, L.validate)((0, L.assertValueType)("boolean")),
static: (0, L.validate)((0, L.assertValueType)("boolean")),
method: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("ObjectTypeCallProperty", {
visitor: ["value"],
aliases: ["UserWhitespacable"],
fields: {
value: (0, L.validateType)("FlowType"),
static: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("ObjectTypeIndexer", {
visitor: ["variance", "id", "key", "value"],
builder: ["id", "key", "value", "variance"],
aliases: ["UserWhitespacable"],
fields: {
id: (0, L.validateOptionalType)("Identifier"),
key: (0, L.validateType)("FlowType"),
value: (0, L.validateType)("FlowType"),
static: (0, L.validate)((0, L.assertValueType)("boolean")),
variance: (0, L.validateOptionalType)("Variance")
}
});
de("ObjectTypeProperty", {
visitor: ["key", "value", "variance"],
aliases: ["UserWhitespacable"],
fields: {
key: (0, L.validateType)("Identifier", "StringLiteral"),
value: (0, L.validateType)("FlowType"),
kind: (0, L.validate)((0, L.assertOneOf)("init", "get", "set")),
static: (0, L.validate)((0, L.assertValueType)("boolean")),
proto: (0, L.validate)((0, L.assertValueType)("boolean")),
optional: (0, L.validate)((0, L.assertValueType)("boolean")),
variance: (0, L.validateOptionalType)("Variance"),
method: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("ObjectTypeSpreadProperty", {
visitor: ["argument"],
aliases: ["UserWhitespacable"],
fields: {
argument: (0, L.validateType)("FlowType")
}
});
de("OpaqueType", {
visitor: ["id", "typeParameters", "supertype", "impltype"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
supertype: (0, L.validateOptionalType)("FlowType"),
impltype: (0, L.validateType)("FlowType")
}
});
de("QualifiedTypeIdentifier", {
visitor: ["qualification", "id"],
builder: ["id", "qualification"],
fields: {
id: (0, L.validateType)("Identifier"),
qualification: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier")
}
});
de("StringLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("string"))
}
});
de("StringTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("SymbolTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("ThisTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("TupleTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
de("TypeofTypeAnnotation", {
visitor: ["argument"],
aliases: ["FlowType"],
fields: {
argument: (0, L.validateType)("FlowType")
}
});
de("TypeAlias", {
visitor: ["id", "typeParameters", "right"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
right: (0, L.validateType)("FlowType")
}
});
de("TypeAnnotation", {
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, L.validateType)("FlowType")
}
});
de("TypeCastExpression", {
visitor: ["expression", "typeAnnotation"],
aliases: ["ExpressionWrapper", "Expression"],
fields: {
expression: (0, L.validateType)("Expression"),
typeAnnotation: (0, L.validateType)("TypeAnnotation")
}
});
de("TypeParameter", {
visitor: ["bound", "default", "variance"],
fields: {
name: (0, L.validate)((0, L.assertValueType)("string")),
bound: (0, L.validateOptionalType)("TypeAnnotation"),
default: (0, L.validateOptionalType)("FlowType"),
variance: (0, L.validateOptionalType)("Variance")
}
});
de("TypeParameterDeclaration", {
visitor: ["params"],
fields: {
params: (0, L.validate)((0, L.arrayOfType)("TypeParameter"))
}
});
de("TypeParameterInstantiation", {
visitor: ["params"],
fields: {
params: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
de("UnionTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
de("Variance", {
builder: ["kind"],
fields: {
kind: (0, L.validate)((0, L.assertOneOf)("minus", "plus"))
}
});
de("VoidTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
de("EnumDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "body"],
fields: {
id: (0, L.validateType)("Identifier"),
body: (0, L.validateType)("EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody")
}
});
de("EnumBooleanBody", {
aliases: ["EnumBody"],
visitor: ["members"],
fields: {
explicitType: (0, L.validate)((0, L.assertValueType)("boolean")),
members: (0, L.validateArrayOfType)("EnumBooleanMember"),
hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("EnumNumberBody", {
aliases: ["EnumBody"],
visitor: ["members"],
fields: {
explicitType: (0, L.validate)((0, L.assertValueType)("boolean")),
members: (0, L.validateArrayOfType)("EnumNumberMember"),
hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("EnumStringBody", {
aliases: ["EnumBody"],
visitor: ["members"],
fields: {
explicitType: (0, L.validate)((0, L.assertValueType)("boolean")),
members: (0, L.validateArrayOfType)("EnumStringMember", "EnumDefaultedMember"),
hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("EnumSymbolBody", {
aliases: ["EnumBody"],
visitor: ["members"],
fields: {
members: (0, L.validateArrayOfType)("EnumDefaultedMember"),
hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
de("EnumBooleanMember", {
aliases: ["EnumMember"],
builder: ["id"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("BooleanLiteral")
}
});
de("EnumNumberMember", {
aliases: ["EnumMember"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("NumericLiteral")
}
});
de("EnumStringMember", {
aliases: ["EnumMember"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("StringLiteral")
}
});
de("EnumDefaultedMember", {
aliases: ["EnumMember"],
visitor: ["id"],
fields: {
id: (0, L.validateType)("Identifier")
}
});
de("IndexedAccessType", {
visitor: ["objectType", "indexType"],
aliases: ["FlowType"],
fields: {
objectType: (0, L.validateType)("FlowType"),
indexType: (0, L.validateType)("FlowType")
}
});
de("OptionalIndexedAccessType", {
visitor: ["objectType", "indexType"],
aliases: ["FlowType"],
fields: {
objectType: (0, L.validateType)("FlowType"),
indexType: (0, L.validateType)("FlowType"),
optional: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
});
// ../node_modules/@babel/types/lib/definitions/jsx.js
var tE = P(() => {
"use strict";
var mt = on(), nr = (0, mt.defineAliasedType)("JSX");
nr("JSXAttribute", {
visitor: ["name", "value"],
aliases: ["Immutable"],
fields: {
name: {
validate: (0, mt.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
},
value: {
optional: !0,
validate: (0, mt.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer")
}
}
});
nr("JSXClosingElement", {
visitor: ["name"],
aliases: ["Immutable"],
fields: {
name: {
validate: (0, mt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
}
}
});
nr("JSXElement", {
builder: ["openingElement", "closingElement", "children", "selfClosing"],
visitor: ["openingElement", "children", "closingElement"],
aliases: ["Immutable", "Expression"],
fields: Object.assign({
openingElement: {
validate: (0, mt.assertNodeType)("JSXOpeningElement")
},
closingElement: {
optional: !0,
validate: (0, mt.assertNodeType)("JSXClosingElement")
},
children: (0, mt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")
}, {
selfClosing: {
validate: (0, mt.assertValueType)("boolean"),
optional: !0
}
})
});
nr("JSXEmptyExpression", {});
nr("JSXExpressionContainer", {
visitor: ["expression"],
aliases: ["Immutable"],
fields: {
expression: {
validate: (0, mt.assertNodeType)("Expression", "JSXEmptyExpression")
}
}
});
nr("JSXSpreadChild", {
visitor: ["expression"],
aliases: ["Immutable"],
fields: {
expression: {
validate: (0, mt.assertNodeType)("Expression")
}
}
});
nr("JSXIdentifier", {
builder: ["name"],
fields: {
name: {
validate: (0, mt.assertValueType)("string")
}
}
});
nr("JSXMemberExpression", {
visitor: ["object", "property"],
fields: {
object: {
validate: (0, mt.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
},
property: {
validate: (0, mt.assertNodeType)("JSXIdentifier")
}
}
});
nr("JSXNamespacedName", {
visitor: ["namespace", "name"],
fields: {
namespace: {
validate: (0, mt.assertNodeType)("JSXIdentifier")
},
name: {
validate: (0, mt.assertNodeType)("JSXIdentifier")
}
}
});
nr("JSXOpeningElement", {
builder: ["name", "attributes", "selfClosing"],
visitor: ["name", "typeParameters", "typeArguments", "attributes"],
aliases: ["Immutable"],
fields: Object.assign({
name: {
validate: (0, mt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
},
selfClosing: {
default: !1
},
attributes: (0, mt.validateArrayOfType)("JSXAttribute", "JSXSpreadAttribute"),
typeArguments: {
validate: (0, mt.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
typeParameters: {
validate: (0, mt.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
})
});
nr("JSXSpreadAttribute", {
visitor: ["argument"],
fields: {
argument: {
validate: (0, mt.assertNodeType)("Expression")
}
}
});
nr("JSXText", {
aliases: ["Immutable"],
builder: ["value"],
fields: {
value: {
validate: (0, mt.assertValueType)("string")
}
}
});
nr("JSXFragment", {
builder: ["openingFragment", "closingFragment", "children"],
visitor: ["openingFragment", "children", "closingFragment"],
aliases: ["Immutable", "Expression"],
fields: {
openingFragment: {
validate: (0, mt.assertNodeType)("JSXOpeningFragment")
},
closingFragment: {
validate: (0, mt.assertNodeType)("JSXClosingFragment")
},
children: (0, mt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")
}
});
nr("JSXOpeningFragment", {
aliases: ["Immutable"]
});
nr("JSXClosingFragment", {
aliases: ["Immutable"]
});
});
// ../node_modules/@babel/types/lib/definitions/placeholders.js
var Ef = P((zn) => {
"use strict";
Object.defineProperty(zn, "__esModule", {
value: !0
});
zn.PLACEHOLDERS_FLIPPED_ALIAS = zn.PLACEHOLDERS_ALIAS = zn.PLACEHOLDERS = void 0;
var l8 = on(), u8 = zn.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBo\
dy", "Pattern"], bf = zn.PLACEHOLDERS_ALIAS = {
Declaration: ["Statement"],
Pattern: ["PatternLike", "LVal"]
};
for (let e of u8) {
let t = l8.ALIAS_KEYS[e];
t != null && t.length && (bf[e] = t);
}
var gf = zn.PLACEHOLDERS_FLIPPED_ALIAS = {};
Object.keys(bf).forEach((e) => {
bf[e].forEach((t) => {
hasOwnProperty.call(gf, t) || (gf[t] = []), gf[t].push(e);
});
});
});
// ../node_modules/@babel/types/lib/definitions/misc.js
var rE = P(() => {
"use strict";
var ml = on(), c8 = Ef(), p8 = Oa(), Tf = (0, ml.defineAliasedType)("Miscellaneous");
Tf("Noop", {
visitor: []
});
Tf("Placeholder", {
visitor: [],
builder: ["expectedNode", "name"],
fields: Object.assign({
name: {
validate: (0, ml.assertNodeType)("Identifier")
},
expectedNode: {
validate: (0, ml.assertOneOf)(...c8.PLACEHOLDERS)
}
}, (0, p8.patternLikeCommon)())
});
Tf("V8IntrinsicIdentifier", {
builder: ["name"],
fields: {
name: {
validate: (0, ml.assertValueType)("string")
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/experimental.js
var nE = P(() => {
"use strict";
var pt = on();
(0, pt.default)("ArgumentPlaceholder", {});
(0, pt.default)("BindExpression", {
visitor: ["object", "callee"],
aliases: ["Expression"],
fields: process.env.BABEL_TYPES_8_BREAKING ? {
object: {
validate: (0, pt.assertNodeType)("Expression")
},
callee: {
validate: (0, pt.assertNodeType)("Expression")
}
} : {
object: {
validate: Object.assign(() => {
}, {
oneOfNodeTypes: ["Expression"]
})
},
callee: {
validate: Object.assign(() => {
}, {
oneOfNodeTypes: ["Expression"]
})
}
}
});
(0, pt.default)("Decorator", {
visitor: ["expression"],
fields: {
expression: {
validate: (0, pt.assertNodeType)("Expression")
}
}
});
(0, pt.default)("DoExpression", {
visitor: ["body"],
builder: ["body", "async"],
aliases: ["Expression"],
fields: {
body: {
validate: (0, pt.assertNodeType)("BlockStatement")
},
async: {
validate: (0, pt.assertValueType)("boolean"),
default: !1
}
}
});
(0, pt.default)("ExportDefaultSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, pt.assertNodeType)("Identifier")
}
}
});
(0, pt.default)("RecordExpression", {
visitor: ["properties"],
aliases: ["Expression"],
fields: {
properties: (0, pt.validateArrayOfType)("ObjectProperty", "SpreadElement")
}
});
(0, pt.default)("TupleExpression", {
fields: {
elements: {
validate: (0, pt.arrayOfType)("Expression", "SpreadElement"),
default: []
}
},
visitor: ["elements"],
aliases: ["Expression"]
});
(0, pt.default)("DecimalLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, pt.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
(0, pt.default)("ModuleExpression", {
visitor: ["body"],
fields: {
body: {
validate: (0, pt.assertNodeType)("Program")
}
},
aliases: ["Expression"]
});
(0, pt.default)("TopicReference", {
aliases: ["Expression"]
});
(0, pt.default)("PipelineTopicExpression", {
builder: ["expression"],
visitor: ["expression"],
fields: {
expression: {
validate: (0, pt.assertNodeType)("Expression")
}
},
aliases: ["Expression"]
});
(0, pt.default)("PipelineBareFunction", {
builder: ["callee"],
visitor: ["callee"],
fields: {
callee: {
validate: (0, pt.assertNodeType)("Expression")
}
},
aliases: ["Expression"]
});
(0, pt.default)("PipelinePrimaryTopicReference", {
aliases: ["Expression"]
});
});
// ../node_modules/@babel/types/lib/definitions/typescript.js
var pE = P(() => {
"use strict";
var q = on(), sE = Oa(), f8 = bi(), Pe = (0, q.defineAliasedType)("TypeScript"), pr = (0, q.assertValueType)("boolean"), iE = /* @__PURE__ */ i(
() => ({
returnType: {
validate: (0, q.assertNodeType)("TSTypeAnnotation", "Noop"),
optional: !0
},
typeParameters: {
validate: (0, q.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
optional: !0
}
}), "tSFunctionTypeAnnotationCommon");
Pe("TSParameterProperty", {
aliases: ["LVal"],
visitor: ["parameter"],
fields: {
accessibility: {
validate: (0, q.assertOneOf)("public", "private", "protected"),
optional: !0
},
readonly: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
parameter: {
validate: (0, q.assertNodeType)("Identifier", "AssignmentPattern")
},
override: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
decorators: {
validate: (0, q.arrayOfType)("Decorator"),
optional: !0
}
}
});
Pe("TSDeclareFunction", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "params", "returnType"],
fields: Object.assign({}, (0, sE.functionDeclarationCommon)(), iE())
});
Pe("TSDeclareMethod", {
visitor: ["decorators", "key", "typeParameters", "params", "returnType"],
fields: Object.assign({}, (0, sE.classMethodOrDeclareMethodCommon)(), iE())
});
Pe("TSQualifiedName", {
aliases: ["TSEntityName"],
visitor: ["left", "right"],
fields: {
left: (0, q.validateType)("TSEntityName"),
right: (0, q.validateType)("Identifier")
}
});
var yl = /* @__PURE__ */ i(() => ({
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
parameters: (0, q.validateArrayOfType)("ArrayPattern", "Identifier", "ObjectPattern", "RestElement"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation")
}), "signatureDeclarationCommon"), aE = {
aliases: ["TSTypeElement"],
visitor: ["typeParameters", "parameters", "typeAnnotation"],
fields: yl()
};
Pe("TSCallSignatureDeclaration", aE);
Pe("TSConstructSignatureDeclaration", aE);
var oE = /* @__PURE__ */ i(() => ({
key: (0, q.validateType)("Expression"),
computed: {
default: !1
},
optional: (0, q.validateOptional)(pr)
}), "namedTypeElementCommon");
Pe("TSPropertySignature", {
aliases: ["TSTypeElement"],
visitor: ["key", "typeAnnotation"],
fields: Object.assign({}, oE(), {
readonly: (0, q.validateOptional)(pr),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"),
kind: {
optional: !0,
validate: (0, q.assertOneOf)("get", "set")
}
})
});
Pe("TSMethodSignature", {
aliases: ["TSTypeElement"],
visitor: ["key", "typeParameters", "parameters", "typeAnnotation"],
fields: Object.assign({}, yl(), oE(), {
kind: {
validate: (0, q.assertOneOf)("method", "get", "set")
}
})
});
Pe("TSIndexSignature", {
aliases: ["TSTypeElement"],
visitor: ["parameters", "typeAnnotation"],
fields: {
readonly: (0, q.validateOptional)(pr),
static: (0, q.validateOptional)(pr),
parameters: (0, q.validateArrayOfType)("Identifier"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation")
}
});
var d8 = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword",
"TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"];
for (let e of d8)
Pe(e, {
aliases: ["TSType", "TSBaseType"],
visitor: [],
fields: {}
});
Pe("TSThisType", {
aliases: ["TSType", "TSBaseType"],
visitor: [],
fields: {}
});
var lE = {
aliases: ["TSType"],
visitor: ["typeParameters", "parameters", "typeAnnotation"]
};
Pe("TSFunctionType", Object.assign({}, lE, {
fields: yl()
}));
Pe("TSConstructorType", Object.assign({}, lE, {
fields: Object.assign({}, yl(), {
abstract: (0, q.validateOptional)(pr)
})
}));
Pe("TSTypeReference", {
aliases: ["TSType"],
visitor: ["typeName", "typeParameters"],
fields: {
typeName: (0, q.validateType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Pe("TSTypePredicate", {
aliases: ["TSType"],
visitor: ["parameterName", "typeAnnotation"],
builder: ["parameterName", "typeAnnotation", "asserts"],
fields: {
parameterName: (0, q.validateType)("Identifier", "TSThisType"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"),
asserts: (0, q.validateOptional)(pr)
}
});
Pe("TSTypeQuery", {
aliases: ["TSType"],
visitor: ["exprName", "typeParameters"],
fields: {
exprName: (0, q.validateType)("TSEntityName", "TSImportType"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Pe("TSTypeLiteral", {
aliases: ["TSType"],
visitor: ["members"],
fields: {
members: (0, q.validateArrayOfType)("TSTypeElement")
}
});
Pe("TSArrayType", {
aliases: ["TSType"],
visitor: ["elementType"],
fields: {
elementType: (0, q.validateType)("TSType")
}
});
Pe("TSTupleType", {
aliases: ["TSType"],
visitor: ["elementTypes"],
fields: {
elementTypes: (0, q.validateArrayOfType)("TSType", "TSNamedTupleMember")
}
});
Pe("TSOptionalType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Pe("TSRestType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Pe("TSNamedTupleMember", {
visitor: ["label", "elementType"],
builder: ["label", "elementType", "optional"],
fields: {
label: (0, q.validateType)("Identifier"),
optional: {
validate: pr,
default: !1
},
elementType: (0, q.validateType)("TSType")
}
});
var uE = {
aliases: ["TSType"],
visitor: ["types"],
fields: {
types: (0, q.validateArrayOfType)("TSType")
}
};
Pe("TSUnionType", uE);
Pe("TSIntersectionType", uE);
Pe("TSConditionalType", {
aliases: ["TSType"],
visitor: ["checkType", "extendsType", "trueType", "falseType"],
fields: {
checkType: (0, q.validateType)("TSType"),
extendsType: (0, q.validateType)("TSType"),
trueType: (0, q.validateType)("TSType"),
falseType: (0, q.validateType)("TSType")
}
});
Pe("TSInferType", {
aliases: ["TSType"],
visitor: ["typeParameter"],
fields: {
typeParameter: (0, q.validateType)("TSTypeParameter")
}
});
Pe("TSParenthesizedType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Pe("TSTypeOperator", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
operator: (0, q.validate)((0, q.assertValueType)("string")),
typeAnnotation: (0, q.validateType)("TSType")
}
});
Pe("TSIndexedAccessType", {
aliases: ["TSType"],
visitor: ["objectType", "indexType"],
fields: {
objectType: (0, q.validateType)("TSType"),
indexType: (0, q.validateType)("TSType")
}
});
Pe("TSMappedType", {
aliases: ["TSType"],
visitor: ["typeParameter", "nameType", "typeAnnotation"],
builder: ["typeParameter", "typeAnnotation", "nameType"],
fields: Object.assign({}, {
typeParameter: (0, q.validateType)("TSTypeParameter")
}, {
readonly: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")),
optional: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")),
typeAnnotation: (0, q.validateOptionalType)("TSType"),
nameType: (0, q.validateOptionalType)("TSType")
})
});
Pe("TSTemplateLiteralType", {
aliases: ["TSType", "TSBaseType"],
visitor: ["quasis", "types"],
fields: {
quasis: (0, q.validateArrayOfType)("TemplateElement"),
types: {
validate: (0, q.chain)((0, q.assertValueType)("array"), (0, q.assertEach)((0, q.assertNodeType)("TSType")), function(e, t, r) {
if (e.quasis.length !== r.length + 1)
throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
Expected ${r.length + 1} quasis but got ${e.quasis.length}`);
})
}
}
});
Pe("TSLiteralType", {
aliases: ["TSType", "TSBaseType"],
visitor: ["literal"],
fields: {
literal: {
validate: function() {
let e = (0, q.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, q.assertOneOf)("-"), r = (0, q.assertNodeType)("NumericL\
iteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
function n(s, a, o) {
(0, f8.default)("UnaryExpression", o) ? (t(o, "operator", o.operator), e(o, "argument", o.argument)) : r(s, a, o);
}
return i(n, "validator"), n.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiter\
al", "UnaryExpression"], n;
}()
}
}
});
Pe("TSExpressionWithTypeArguments", {
aliases: ["TSType"],
visitor: ["expression", "typeParameters"],
fields: {
expression: (0, q.validateType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Pe("TSInterfaceDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "extends", "body"],
fields: {
declare: (0, q.validateOptional)(pr),
id: (0, q.validateType)("Identifier"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
extends: (0, q.validateOptional)((0, q.arrayOfType)("TSExpressionWithTypeArguments")),
body: (0, q.validateType)("TSInterfaceBody")
}
});
Pe("TSInterfaceBody", {
visitor: ["body"],
fields: {
body: (0, q.validateArrayOfType)("TSTypeElement")
}
});
Pe("TSTypeAliasDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "typeAnnotation"],
fields: {
declare: (0, q.validateOptional)(pr),
id: (0, q.validateType)("Identifier"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
typeAnnotation: (0, q.validateType)("TSType")
}
});
Pe("TSInstantiationExpression", {
aliases: ["Expression"],
visitor: ["expression", "typeParameters"],
fields: {
expression: (0, q.validateType)("Expression"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
var cE = {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["expression", "typeAnnotation"],
fields: {
expression: (0, q.validateType)("Expression"),
typeAnnotation: (0, q.validateType)("TSType")
}
};
Pe("TSAsExpression", cE);
Pe("TSSatisfiesExpression", cE);
Pe("TSTypeAssertion", {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["typeAnnotation", "expression"],
fields: {
typeAnnotation: (0, q.validateType)("TSType"),
expression: (0, q.validateType)("Expression")
}
});
Pe("TSEnumBody", {
visitor: ["members"],
fields: {
members: (0, q.validateArrayOfType)("TSEnumMember")
}
});
Pe("TSEnumDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "members"],
fields: {
declare: (0, q.validateOptional)(pr),
const: (0, q.validateOptional)(pr),
id: (0, q.validateType)("Identifier"),
members: (0, q.validateArrayOfType)("TSEnumMember"),
initializer: (0, q.validateOptionalType)("Expression"),
body: (0, q.validateOptionalType)("TSEnumBody")
}
});
Pe("TSEnumMember", {
visitor: ["id", "initializer"],
fields: {
id: (0, q.validateType)("Identifier", "StringLiteral"),
initializer: (0, q.validateOptionalType)("Expression")
}
});
Pe("TSModuleDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "body"],
fields: Object.assign({
kind: {
validate: (0, q.assertOneOf)("global", "module", "namespace")
},
declare: (0, q.validateOptional)(pr)
}, {
global: (0, q.validateOptional)(pr)
}, {
id: (0, q.validateType)("Identifier", "StringLiteral"),
body: (0, q.validateType)("TSModuleBlock", "TSModuleDeclaration")
})
});
Pe("TSModuleBlock", {
aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"],
visitor: ["body"],
fields: {
body: (0, q.validateArrayOfType)("Statement")
}
});
Pe("TSImportType", {
aliases: ["TSType"],
builder: ["argument", "qualifier", "typeParameters"],
visitor: ["argument", "options", "qualifier", "typeParameters"],
fields: {
argument: (0, q.validateType)("StringLiteral"),
qualifier: (0, q.validateOptionalType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation"),
options: {
validate: (0, q.assertNodeType)("Expression"),
optional: !0
}
}
});
Pe("TSImportEqualsDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "moduleReference"],
fields: Object.assign({}, {
isExport: (0, q.validate)(pr)
}, {
id: (0, q.validateType)("Identifier"),
moduleReference: (0, q.validateType)("TSEntityName", "TSExternalModuleReference"),
importKind: {
validate: (0, q.assertOneOf)("type", "value"),
optional: !0
}
})
});
Pe("TSExternalModuleReference", {
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("StringLiteral")
}
});
Pe("TSNonNullExpression", {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("Expression")
}
});
Pe("TSExportAssignment", {
aliases: ["Statement"],
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("Expression")
}
});
Pe("TSNamespaceExportDeclaration", {
aliases: ["Statement"],
visitor: ["id"],
fields: {
id: (0, q.validateType)("Identifier")
}
});
Pe("TSTypeAnnotation", {
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: {
validate: (0, q.assertNodeType)("TSType")
}
}
});
Pe("TSTypeParameterInstantiation", {
visitor: ["params"],
fields: {
params: (0, q.validateArrayOfType)("TSType")
}
});
Pe("TSTypeParameterDeclaration", {
visitor: ["params"],
fields: {
params: (0, q.validateArrayOfType)("TSTypeParameter")
}
});
Pe("TSTypeParameter", {
builder: ["constraint", "default", "name"],
visitor: ["constraint", "default"],
fields: {
name: {
validate: (0, q.assertValueType)("string")
},
in: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
out: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
const: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
constraint: {
validate: (0, q.assertNodeType)("TSType"),
optional: !0
},
default: {
validate: (0, q.assertNodeType)("TSType"),
optional: !0
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js
var fE = P((gl) => {
"use strict";
Object.defineProperty(gl, "__esModule", {
value: !0
});
gl.DEPRECATED_ALIASES = void 0;
var v1e = gl.DEPRECATED_ALIASES = {
ModuleDeclaration: "ImportOrExportDeclaration"
};
});
// ../node_modules/@babel/types/lib/definitions/index.js
var wr = P((sr) => {
"use strict";
Object.defineProperty(sr, "__esModule", {
value: !0
});
Object.defineProperty(sr, "ALIAS_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.ALIAS_KEYS;
}, "get")
});
Object.defineProperty(sr, "BUILDER_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.BUILDER_KEYS;
}, "get")
});
Object.defineProperty(sr, "DEPRECATED_ALIASES", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Sf.DEPRECATED_ALIASES;
}, "get")
});
Object.defineProperty(sr, "DEPRECATED_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.DEPRECATED_KEYS;
}, "get")
});
Object.defineProperty(sr, "FLIPPED_ALIAS_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.FLIPPED_ALIAS_KEYS;
}, "get")
});
Object.defineProperty(sr, "NODE_FIELDS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.NODE_FIELDS;
}, "get")
});
Object.defineProperty(sr, "NODE_PARENT_VALIDATIONS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.NODE_PARENT_VALIDATIONS;
}, "get")
});
Object.defineProperty(sr, "PLACEHOLDERS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xf.PLACEHOLDERS;
}, "get")
});
Object.defineProperty(sr, "PLACEHOLDERS_ALIAS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xf.PLACEHOLDERS_ALIAS;
}, "get")
});
Object.defineProperty(sr, "PLACEHOLDERS_FLIPPED_ALIAS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xf.PLACEHOLDERS_FLIPPED_ALIAS;
}, "get")
});
sr.TYPES = void 0;
Object.defineProperty(sr, "VISITOR_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fr.VISITOR_KEYS;
}, "get")
});
Oa();
eE();
tE();
rE();
nE();
pE();
var fr = on(), xf = Ef(), Sf = fE();
Object.keys(Sf.DEPRECATED_ALIASES).forEach((e) => {
fr.FLIPPED_ALIAS_KEYS[e] = fr.FLIPPED_ALIAS_KEYS[Sf.DEPRECATED_ALIASES[e]];
});
for (let {
types: e,
set: t
} of fr.allExpandedTypes)
for (let r of e) {
let n = fr.FLIPPED_ALIAS_KEYS[r];
n ? n.forEach(t.add, t) : t.add(r);
}
var A1e = sr.TYPES = [].concat(Object.keys(fr.VISITOR_KEYS), Object.keys(fr.FLIPPED_ALIAS_KEYS), Object.keys(fr.DEPRECATED_KEYS));
});
// ../node_modules/@babel/types/lib/validators/validate.js
var dl = P((Pi) => {
"use strict";
Object.defineProperty(Pi, "__esModule", {
value: !0
});
Pi.default = h8;
Pi.validateChild = hE;
Pi.validateField = dE;
Pi.validateInternal = m8;
var Na = wr();
function h8(e, t, r) {
if (!e) return;
let n = Na.NODE_FIELDS[e.type];
if (!n) return;
let s = n[t];
dE(e, t, r, s), hE(e, t, r);
}
i(h8, "validate");
function m8(e, t, r, n, s) {
if (e != null && e.validate && !(e.optional && n == null) && (e.validate(t, r, n), s)) {
var a;
let o = n.type;
if (o == null) return;
(a = Na.NODE_PARENT_VALIDATIONS[o]) == null || a.call(Na.NODE_PARENT_VALIDATIONS, t, r, n);
}
}
i(m8, "validateInternal");
function dE(e, t, r, n) {
n != null && n.validate && (n.optional && r == null || n.validate(e, t, r));
}
i(dE, "validateField");
function hE(e, t, r) {
var n;
let s = r?.type;
s != null && ((n = Na.NODE_PARENT_VALIDATIONS[s]) == null || n.call(Na.NODE_PARENT_VALIDATIONS, e, t, r));
}
i(hE, "validateChild");
});
// ../node_modules/@babel/types/lib/builders/generated/lowercase.js
var vf = P((b) => {
"use strict";
Object.defineProperty(b, "__esModule", {
value: !0
});
b.anyTypeAnnotation = J6;
b.argumentPlaceholder = PL;
b.arrayExpression = b8;
b.arrayPattern = d6;
b.arrayTypeAnnotation = X6;
b.arrowFunctionExpression = h6;
b.assignmentExpression = E8;
b.assignmentPattern = f6;
b.awaitExpression = j6;
b.bigIntLiteral = M6;
b.binaryExpression = T8;
b.bindExpression = AL;
b.blockStatement = P8;
b.booleanLiteral = W8;
b.booleanLiteralTypeAnnotation = Q6;
b.booleanTypeAnnotation = z6;
b.breakStatement = A8;
b.callExpression = C8;
b.catchClause = D8;
b.classAccessorProperty = $6;
b.classBody = m6;
b.classDeclaration = g6;
b.classExpression = y6;
b.classImplements = ej;
b.classMethod = I6;
b.classPrivateMethod = K6;
b.classPrivateProperty = W6;
b.classProperty = V6;
b.conditionalExpression = w8;
b.continueStatement = I8;
b.debuggerStatement = _8;
b.decimalLiteral = OL;
b.declareClass = tj;
b.declareExportAllDeclaration = cj;
b.declareExportDeclaration = uj;
b.declareFunction = rj;
b.declareInterface = nj;
b.declareModule = sj;
b.declareModuleExports = ij;
b.declareOpaqueType = oj;
b.declareTypeAlias = aj;
b.declareVariable = lj;
b.declaredPredicate = pj;
b.decorator = CL;
b.directive = x8;
b.directiveLiteral = v8;
b.doExpression = DL;
b.doWhileStatement = O8;
b.emptyStatement = N8;
b.emptyTypeAnnotation = xj;
b.enumBooleanBody = Xj;
b.enumBooleanMember = eL;
b.enumDeclaration = Jj;
b.enumDefaultedMember = nL;
b.enumNumberBody = zj;
b.enumNumberMember = tL;
b.enumStringBody = Qj;
b.enumStringMember = rL;
b.enumSymbolBody = Zj;
b.existsTypeAnnotation = fj;
b.exportAllDeclaration = b6;
b.exportDefaultDeclaration = E6;
b.exportDefaultSpecifier = wL;
b.exportNamedDeclaration = T6;
b.exportNamespaceSpecifier = R6;
b.exportSpecifier = S6;
b.expressionStatement = B8;
b.file = k8;
b.forInStatement = F8;
b.forOfStatement = x6;
b.forStatement = j8;
b.functionDeclaration = L8;
b.functionExpression = M8;
b.functionTypeAnnotation = dj;
b.functionTypeParam = hj;
b.genericTypeAnnotation = mj;
b.identifier = R8;
b.ifStatement = q8;
b.import = L6;
b.importAttribute = Y6;
b.importDeclaration = v6;
b.importDefaultSpecifier = P6;
b.importExpression = D6;
b.importNamespaceSpecifier = A6;
b.importSpecifier = C6;
b.indexedAccessType = sL;
b.inferredPredicate = yj;
b.interfaceDeclaration = bj;
b.interfaceExtends = gj;
b.interfaceTypeAnnotation = Ej;
b.interpreterDirective = S8;
b.intersectionTypeAnnotation = Tj;
b.jSXAttribute = b.jsxAttribute = aL;
b.jSXClosingElement = b.jsxClosingElement = oL;
b.jSXClosingFragment = b.jsxClosingFragment = TL;
b.jSXElement = b.jsxElement = lL;
b.jSXEmptyExpression = b.jsxEmptyExpression = uL;
b.jSXExpressionContainer = b.jsxExpressionContainer = cL;
b.jSXFragment = b.jsxFragment = bL;
b.jSXIdentifier = b.jsxIdentifier = fL;
b.jSXMemberExpression = b.jsxMemberExpression = dL;
b.jSXNamespacedName = b.jsxNamespacedName = hL;
b.jSXOpeningElement = b.jsxOpeningElement = mL;
b.jSXOpeningFragment = b.jsxOpeningFragment = EL;
b.jSXSpreadAttribute = b.jsxSpreadAttribute = yL;
b.jSXSpreadChild = b.jsxSpreadChild = pL;
b.jSXText = b.jsxText = gL;
b.labeledStatement = U8;
b.logicalExpression = K8;
b.memberExpression = G8;
b.metaProperty = w6;
b.mixedTypeAnnotation = Sj;
b.moduleExpression = NL;
b.newExpression = H8;
b.noop = SL;
b.nullLiteral = $8;
b.nullLiteralTypeAnnotation = Z6;
b.nullableTypeAnnotation = vj;
b.numberLiteral = XM;
b.numberLiteralTypeAnnotation = Pj;
b.numberTypeAnnotation = Aj;
b.numericLiteral = mE;
b.objectExpression = J8;
b.objectMethod = X8;
b.objectPattern = _6;
b.objectProperty = z8;
b.objectTypeAnnotation = Cj;
b.objectTypeCallProperty = wj;
b.objectTypeIndexer = Ij;
b.objectTypeInternalSlot = Dj;
b.objectTypeProperty = _j;
b.objectTypeSpreadProperty = Oj;
b.opaqueType = Nj;
b.optionalCallExpression = U6;
b.optionalIndexedAccessType = iL;
b.optionalMemberExpression = q6;
b.parenthesizedExpression = e6;
b.pipelineBareFunction = FL;
b.pipelinePrimaryTopicReference = jL;
b.pipelineTopicExpression = kL;
b.placeholder = xL;
b.privateName = G6;
b.program = Y8;
b.qualifiedTypeIdentifier = Bj;
b.recordExpression = IL;
b.regExpLiteral = yE;
b.regexLiteral = zM;
b.restElement = gE;
b.restProperty = QM;
b.returnStatement = Q8;
b.sequenceExpression = Z8;
b.spreadElement = bE;
b.spreadProperty = ZM;
b.staticBlock = H6;
b.stringLiteral = V8;
b.stringLiteralTypeAnnotation = kj;
b.stringTypeAnnotation = Fj;
b.super = O6;
b.switchCase = t6;
b.switchStatement = r6;
b.symbolTypeAnnotation = jj;
b.taggedTemplateExpression = N6;
b.templateElement = B6;
b.templateLiteral = k6;
b.thisExpression = n6;
b.thisTypeAnnotation = Lj;
b.throwStatement = s6;
b.topicReference = BL;
b.tryStatement = i6;
b.tSAnyKeyword = b.tsAnyKeyword = GL;
b.tSArrayType = b.tsArrayType = fM;
b.tSAsExpression = b.tsAsExpression = NM;
b.tSBigIntKeyword = b.tsBigIntKeyword = YL;
b.tSBooleanKeyword = b.tsBooleanKeyword = HL;
b.tSCallSignatureDeclaration = b.tsCallSignatureDeclaration = UL;
b.tSConditionalType = b.tsConditionalType = EM;
b.tSConstructSignatureDeclaration = b.tsConstructSignatureDeclaration = VL;
b.tSConstructorType = b.tsConstructorType = oM;
b.tSDeclareFunction = b.tsDeclareFunction = ML;
b.tSDeclareMethod = b.tsDeclareMethod = RL;
b.tSEnumBody = b.tsEnumBody = FM;
b.tSEnumDeclaration = b.tsEnumDeclaration = jM;
b.tSEnumMember = b.tsEnumMember = LM;
b.tSExportAssignment = b.tsExportAssignment = WM;
b.tSExpressionWithTypeArguments = b.tsExpressionWithTypeArguments = DM;
b.tSExternalModuleReference = b.tsExternalModuleReference = VM;
b.tSFunctionType = b.tsFunctionType = aM;
b.tSImportEqualsDeclaration = b.tsImportEqualsDeclaration = UM;
b.tSImportType = b.tsImportType = qM;
b.tSIndexSignature = b.tsIndexSignature = KL;
b.tSIndexedAccessType = b.tsIndexedAccessType = vM;
b.tSInferType = b.tsInferType = TM;
b.tSInstantiationExpression = b.tsInstantiationExpression = OM;
b.tSInterfaceBody = b.tsInterfaceBody = IM;
b.tSInterfaceDeclaration = b.tsInterfaceDeclaration = wM;
b.tSIntersectionType = b.tsIntersectionType = bM;
b.tSIntrinsicKeyword = b.tsIntrinsicKeyword = JL;
b.tSLiteralType = b.tsLiteralType = CM;
b.tSMappedType = b.tsMappedType = PM;
b.tSMethodSignature = b.tsMethodSignature = WL;
b.tSModuleBlock = b.tsModuleBlock = RM;
b.tSModuleDeclaration = b.tsModuleDeclaration = MM;
b.tSNamedTupleMember = b.tsNamedTupleMember = yM;
b.tSNamespaceExportDeclaration = b.tsNamespaceExportDeclaration = KM;
b.tSNeverKeyword = b.tsNeverKeyword = XL;
b.tSNonNullExpression = b.tsNonNullExpression = $M;
b.tSNullKeyword = b.tsNullKeyword = zL;
b.tSNumberKeyword = b.tsNumberKeyword = QL;
b.tSObjectKeyword = b.tsObjectKeyword = ZL;
b.tSOptionalType = b.tsOptionalType = hM;
b.tSParameterProperty = b.tsParameterProperty = LL;
b.tSParenthesizedType = b.tsParenthesizedType = SM;
b.tSPropertySignature = b.tsPropertySignature = $L;
b.tSQualifiedName = b.tsQualifiedName = qL;
b.tSRestType = b.tsRestType = mM;
b.tSSatisfiesExpression = b.tsSatisfiesExpression = BM;
b.tSStringKeyword = b.tsStringKeyword = eM;
b.tSSymbolKeyword = b.tsSymbolKeyword = tM;
b.tSTemplateLiteralType = b.tsTemplateLiteralType = AM;
b.tSThisType = b.tsThisType = iM;
b.tSTupleType = b.tsTupleType = dM;
b.tSTypeAliasDeclaration = b.tsTypeAliasDeclaration = _M;
b.tSTypeAnnotation = b.tsTypeAnnotation = GM;
b.tSTypeAssertion = b.tsTypeAssertion = kM;
b.tSTypeLiteral = b.tsTypeLiteral = pM;
b.tSTypeOperator = b.tsTypeOperator = xM;
b.tSTypeParameter = b.tsTypeParameter = JM;
b.tSTypeParameterDeclaration = b.tsTypeParameterDeclaration = YM;
b.tSTypeParameterInstantiation = b.tsTypeParameterInstantiation = HM;
b.tSTypePredicate = b.tsTypePredicate = uM;
b.tSTypeQuery = b.tsTypeQuery = cM;
b.tSTypeReference = b.tsTypeReference = lM;
b.tSUndefinedKeyword = b.tsUndefinedKeyword = rM;
b.tSUnionType = b.tsUnionType = gM;
b.tSUnknownKeyword = b.tsUnknownKeyword = nM;
b.tSVoidKeyword = b.tsVoidKeyword = sM;
b.tupleExpression = _L;
b.tupleTypeAnnotation = Mj;
b.typeAlias = qj;
b.typeAnnotation = Uj;
b.typeCastExpression = Vj;
b.typeParameter = $j;
b.typeParameterDeclaration = Wj;
b.typeParameterInstantiation = Kj;
b.typeofTypeAnnotation = Rj;
b.unaryExpression = a6;
b.unionTypeAnnotation = Gj;
b.updateExpression = o6;
b.v8IntrinsicIdentifier = vL;
b.variableDeclaration = l6;
b.variableDeclarator = u6;
b.variance = Hj;
b.voidTypeAnnotation = Yj;
b.whileStatement = c6;
b.withStatement = p6;
b.yieldExpression = F6;
var y8 = dl(), bl = va(), g8 = on(), {
validateInternal: m
} = y8, {
NODE_FIELDS: k
} = g8;
function b8(e = []) {
let t = {
type: "ArrayExpression",
elements: e
}, r = k.ArrayExpression;
return m(r.elements, t, "elements", e, 1), t;
}
i(b8, "arrayExpression");
function E8(e, t, r) {
let n = {
type: "AssignmentExpression",
operator: e,
left: t,
right: r
}, s = k.AssignmentExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i(E8, "assignmentExpression");
function T8(e, t, r) {
let n = {
type: "BinaryExpression",
operator: e,
left: t,
right: r
}, s = k.BinaryExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i(T8, "binaryExpression");
function S8(e) {
let t = {
type: "InterpreterDirective",
value: e
}, r = k.InterpreterDirective;
return m(r.value, t, "value", e), t;
}
i(S8, "interpreterDirective");
function x8(e) {
let t = {
type: "Directive",
value: e
}, r = k.Directive;
return m(r.value, t, "value", e, 1), t;
}
i(x8, "directive");
function v8(e) {
let t = {
type: "DirectiveLiteral",
value: e
}, r = k.DirectiveLiteral;
return m(r.value, t, "value", e), t;
}
i(v8, "directiveLiteral");
function P8(e, t = []) {
let r = {
type: "BlockStatement",
body: e,
directives: t
}, n = k.BlockStatement;
return m(n.body, r, "body", e, 1), m(n.directives, r, "directives", t, 1), r;
}
i(P8, "blockStatement");
function A8(e = null) {
let t = {
type: "BreakStatement",
label: e
}, r = k.BreakStatement;
return m(r.label, t, "label", e, 1), t;
}
i(A8, "breakStatement");
function C8(e, t) {
let r = {
type: "CallExpression",
callee: e,
arguments: t
}, n = k.CallExpression;
return m(n.callee, r, "callee", e, 1), m(n.arguments, r, "arguments", t, 1), r;
}
i(C8, "callExpression");
function D8(e = null, t) {
let r = {
type: "CatchClause",
param: e,
body: t
}, n = k.CatchClause;
return m(n.param, r, "param", e, 1), m(n.body, r, "body", t, 1), r;
}
i(D8, "catchClause");
function w8(e, t, r) {
let n = {
type: "ConditionalExpression",
test: e,
consequent: t,
alternate: r
}, s = k.ConditionalExpression;
return m(s.test, n, "test", e, 1), m(s.consequent, n, "consequent", t, 1), m(s.alternate, n, "alternate", r, 1), n;
}
i(w8, "conditionalExpression");
function I8(e = null) {
let t = {
type: "ContinueStatement",
label: e
}, r = k.ContinueStatement;
return m(r.label, t, "label", e, 1), t;
}
i(I8, "continueStatement");
function _8() {
return {
type: "DebuggerStatement"
};
}
i(_8, "debuggerStatement");
function O8(e, t) {
let r = {
type: "DoWhileStatement",
test: e,
body: t
}, n = k.DoWhileStatement;
return m(n.test, r, "test", e, 1), m(n.body, r, "body", t, 1), r;
}
i(O8, "doWhileStatement");
function N8() {
return {
type: "EmptyStatement"
};
}
i(N8, "emptyStatement");
function B8(e) {
let t = {
type: "ExpressionStatement",
expression: e
}, r = k.ExpressionStatement;
return m(r.expression, t, "expression", e, 1), t;
}
i(B8, "expressionStatement");
function k8(e, t = null, r = null) {
let n = {
type: "File",
program: e,
comments: t,
tokens: r
}, s = k.File;
return m(s.program, n, "program", e, 1), m(s.comments, n, "comments", t, 1), m(s.tokens, n, "tokens", r), n;
}
i(k8, "file");
function F8(e, t, r) {
let n = {
type: "ForInStatement",
left: e,
right: t,
body: r
}, s = k.ForInStatement;
return m(s.left, n, "left", e, 1), m(s.right, n, "right", t, 1), m(s.body, n, "body", r, 1), n;
}
i(F8, "forInStatement");
function j8(e = null, t = null, r = null, n) {
let s = {
type: "ForStatement",
init: e,
test: t,
update: r,
body: n
}, a = k.ForStatement;
return m(a.init, s, "init", e, 1), m(a.test, s, "test", t, 1), m(a.update, s, "update", r, 1), m(a.body, s, "body", n, 1), s;
}
i(j8, "forStatement");
function L8(e = null, t, r, n = !1, s = !1) {
let a = {
type: "FunctionDeclaration",
id: e,
params: t,
body: r,
generator: n,
async: s
}, o = k.FunctionDeclaration;
return m(o.id, a, "id", e, 1), m(o.params, a, "params", t, 1), m(o.body, a, "body", r, 1), m(o.generator, a, "generator", n), m(o.async,
a, "async", s), a;
}
i(L8, "functionDeclaration");
function M8(e = null, t, r, n = !1, s = !1) {
let a = {
type: "FunctionExpression",
id: e,
params: t,
body: r,
generator: n,
async: s
}, o = k.FunctionExpression;
return m(o.id, a, "id", e, 1), m(o.params, a, "params", t, 1), m(o.body, a, "body", r, 1), m(o.generator, a, "generator", n), m(o.async,
a, "async", s), a;
}
i(M8, "functionExpression");
function R8(e) {
let t = {
type: "Identifier",
name: e
}, r = k.Identifier;
return m(r.name, t, "name", e), t;
}
i(R8, "identifier");
function q8(e, t, r = null) {
let n = {
type: "IfStatement",
test: e,
consequent: t,
alternate: r
}, s = k.IfStatement;
return m(s.test, n, "test", e, 1), m(s.consequent, n, "consequent", t, 1), m(s.alternate, n, "alternate", r, 1), n;
}
i(q8, "ifStatement");
function U8(e, t) {
let r = {
type: "LabeledStatement",
label: e,
body: t
}, n = k.LabeledStatement;
return m(n.label, r, "label", e, 1), m(n.body, r, "body", t, 1), r;
}
i(U8, "labeledStatement");
function V8(e) {
let t = {
type: "StringLiteral",
value: e
}, r = k.StringLiteral;
return m(r.value, t, "value", e), t;
}
i(V8, "stringLiteral");
function mE(e) {
let t = {
type: "NumericLiteral",
value: e
}, r = k.NumericLiteral;
return m(r.value, t, "value", e), t;
}
i(mE, "numericLiteral");
function $8() {
return {
type: "NullLiteral"
};
}
i($8, "nullLiteral");
function W8(e) {
let t = {
type: "BooleanLiteral",
value: e
}, r = k.BooleanLiteral;
return m(r.value, t, "value", e), t;
}
i(W8, "booleanLiteral");
function yE(e, t = "") {
let r = {
type: "RegExpLiteral",
pattern: e,
flags: t
}, n = k.RegExpLiteral;
return m(n.pattern, r, "pattern", e), m(n.flags, r, "flags", t), r;
}
i(yE, "regExpLiteral");
function K8(e, t, r) {
let n = {
type: "LogicalExpression",
operator: e,
left: t,
right: r
}, s = k.LogicalExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i(K8, "logicalExpression");
function G8(e, t, r = !1, n = null) {
let s = {
type: "MemberExpression",
object: e,
property: t,
computed: r,
optional: n
}, a = k.MemberExpression;
return m(a.object, s, "object", e, 1), m(a.property, s, "property", t, 1), m(a.computed, s, "computed", r), m(a.optional, s, "optional",
n), s;
}
i(G8, "memberExpression");
function H8(e, t) {
let r = {
type: "NewExpression",
callee: e,
arguments: t
}, n = k.NewExpression;
return m(n.callee, r, "callee", e, 1), m(n.arguments, r, "arguments", t, 1), r;
}
i(H8, "newExpression");
function Y8(e, t = [], r = "script", n = null) {
let s = {
type: "Program",
body: e,
directives: t,
sourceType: r,
interpreter: n
}, a = k.Program;
return m(a.body, s, "body", e, 1), m(a.directives, s, "directives", t, 1), m(a.sourceType, s, "sourceType", r), m(a.interpreter, s, "int\
erpreter", n, 1), s;
}
i(Y8, "program");
function J8(e) {
let t = {
type: "ObjectExpression",
properties: e
}, r = k.ObjectExpression;
return m(r.properties, t, "properties", e, 1), t;
}
i(J8, "objectExpression");
function X8(e = "method", t, r, n, s = !1, a = !1, o = !1) {
let l = {
type: "ObjectMethod",
kind: e,
key: t,
params: r,
body: n,
computed: s,
generator: a,
async: o
}, u = k.ObjectMethod;
return m(u.kind, l, "kind", e), m(u.key, l, "key", t, 1), m(u.params, l, "params", r, 1), m(u.body, l, "body", n, 1), m(u.computed, l, "\
computed", s), m(u.generator, l, "generator", a), m(u.async, l, "async", o), l;
}
i(X8, "objectMethod");
function z8(e, t, r = !1, n = !1, s = null) {
let a = {
type: "ObjectProperty",
key: e,
value: t,
computed: r,
shorthand: n,
decorators: s
}, o = k.ObjectProperty;
return m(o.key, a, "key", e, 1), m(o.value, a, "value", t, 1), m(o.computed, a, "computed", r), m(o.shorthand, a, "shorthand", n), m(o.decorators,
a, "decorators", s, 1), a;
}
i(z8, "objectProperty");
function gE(e) {
let t = {
type: "RestElement",
argument: e
}, r = k.RestElement;
return m(r.argument, t, "argument", e, 1), t;
}
i(gE, "restElement");
function Q8(e = null) {
let t = {
type: "ReturnStatement",
argument: e
}, r = k.ReturnStatement;
return m(r.argument, t, "argument", e, 1), t;
}
i(Q8, "returnStatement");
function Z8(e) {
let t = {
type: "SequenceExpression",
expressions: e
}, r = k.SequenceExpression;
return m(r.expressions, t, "expressions", e, 1), t;
}
i(Z8, "sequenceExpression");
function e6(e) {
let t = {
type: "ParenthesizedExpression",
expression: e
}, r = k.ParenthesizedExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i(e6, "parenthesizedExpression");
function t6(e = null, t) {
let r = {
type: "SwitchCase",
test: e,
consequent: t
}, n = k.SwitchCase;
return m(n.test, r, "test", e, 1), m(n.consequent, r, "consequent", t, 1), r;
}
i(t6, "switchCase");
function r6(e, t) {
let r = {
type: "SwitchStatement",
discriminant: e,
cases: t
}, n = k.SwitchStatement;
return m(n.discriminant, r, "discriminant", e, 1), m(n.cases, r, "cases", t, 1), r;
}
i(r6, "switchStatement");
function n6() {
return {
type: "ThisExpression"
};
}
i(n6, "thisExpression");
function s6(e) {
let t = {
type: "ThrowStatement",
argument: e
}, r = k.ThrowStatement;
return m(r.argument, t, "argument", e, 1), t;
}
i(s6, "throwStatement");
function i6(e, t = null, r = null) {
let n = {
type: "TryStatement",
block: e,
handler: t,
finalizer: r
}, s = k.TryStatement;
return m(s.block, n, "block", e, 1), m(s.handler, n, "handler", t, 1), m(s.finalizer, n, "finalizer", r, 1), n;
}
i(i6, "tryStatement");
function a6(e, t, r = !0) {
let n = {
type: "UnaryExpression",
operator: e,
argument: t,
prefix: r
}, s = k.UnaryExpression;
return m(s.operator, n, "operator", e), m(s.argument, n, "argument", t, 1), m(s.prefix, n, "prefix", r), n;
}
i(a6, "unaryExpression");
function o6(e, t, r = !1) {
let n = {
type: "UpdateExpression",
operator: e,
argument: t,
prefix: r
}, s = k.UpdateExpression;
return m(s.operator, n, "operator", e), m(s.argument, n, "argument", t, 1), m(s.prefix, n, "prefix", r), n;
}
i(o6, "updateExpression");
function l6(e, t) {
let r = {
type: "VariableDeclaration",
kind: e,
declarations: t
}, n = k.VariableDeclaration;
return m(n.kind, r, "kind", e), m(n.declarations, r, "declarations", t, 1), r;
}
i(l6, "variableDeclaration");
function u6(e, t = null) {
let r = {
type: "VariableDeclarator",
id: e,
init: t
}, n = k.VariableDeclarator;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(u6, "variableDeclarator");
function c6(e, t) {
let r = {
type: "WhileStatement",
test: e,
body: t
}, n = k.WhileStatement;
return m(n.test, r, "test", e, 1), m(n.body, r, "body", t, 1), r;
}
i(c6, "whileStatement");
function p6(e, t) {
let r = {
type: "WithStatement",
object: e,
body: t
}, n = k.WithStatement;
return m(n.object, r, "object", e, 1), m(n.body, r, "body", t, 1), r;
}
i(p6, "withStatement");
function f6(e, t) {
let r = {
type: "AssignmentPattern",
left: e,
right: t
}, n = k.AssignmentPattern;
return m(n.left, r, "left", e, 1), m(n.right, r, "right", t, 1), r;
}
i(f6, "assignmentPattern");
function d6(e) {
let t = {
type: "ArrayPattern",
elements: e
}, r = k.ArrayPattern;
return m(r.elements, t, "elements", e, 1), t;
}
i(d6, "arrayPattern");
function h6(e, t, r = !1) {
let n = {
type: "ArrowFunctionExpression",
params: e,
body: t,
async: r,
expression: null
}, s = k.ArrowFunctionExpression;
return m(s.params, n, "params", e, 1), m(s.body, n, "body", t, 1), m(s.async, n, "async", r), n;
}
i(h6, "arrowFunctionExpression");
function m6(e) {
let t = {
type: "ClassBody",
body: e
}, r = k.ClassBody;
return m(r.body, t, "body", e, 1), t;
}
i(m6, "classBody");
function y6(e = null, t = null, r, n = null) {
let s = {
type: "ClassExpression",
id: e,
superClass: t,
body: r,
decorators: n
}, a = k.ClassExpression;
return m(a.id, s, "id", e, 1), m(a.superClass, s, "superClass", t, 1), m(a.body, s, "body", r, 1), m(a.decorators, s, "decorators", n, 1),
s;
}
i(y6, "classExpression");
function g6(e = null, t = null, r, n = null) {
let s = {
type: "ClassDeclaration",
id: e,
superClass: t,
body: r,
decorators: n
}, a = k.ClassDeclaration;
return m(a.id, s, "id", e, 1), m(a.superClass, s, "superClass", t, 1), m(a.body, s, "body", r, 1), m(a.decorators, s, "decorators", n, 1),
s;
}
i(g6, "classDeclaration");
function b6(e) {
let t = {
type: "ExportAllDeclaration",
source: e
}, r = k.ExportAllDeclaration;
return m(r.source, t, "source", e, 1), t;
}
i(b6, "exportAllDeclaration");
function E6(e) {
let t = {
type: "ExportDefaultDeclaration",
declaration: e
}, r = k.ExportDefaultDeclaration;
return m(r.declaration, t, "declaration", e, 1), t;
}
i(E6, "exportDefaultDeclaration");
function T6(e = null, t = [], r = null) {
let n = {
type: "ExportNamedDeclaration",
declaration: e,
specifiers: t,
source: r
}, s = k.ExportNamedDeclaration;
return m(s.declaration, n, "declaration", e, 1), m(s.specifiers, n, "specifiers", t, 1), m(s.source, n, "source", r, 1), n;
}
i(T6, "exportNamedDeclaration");
function S6(e, t) {
let r = {
type: "ExportSpecifier",
local: e,
exported: t
}, n = k.ExportSpecifier;
return m(n.local, r, "local", e, 1), m(n.exported, r, "exported", t, 1), r;
}
i(S6, "exportSpecifier");
function x6(e, t, r, n = !1) {
let s = {
type: "ForOfStatement",
left: e,
right: t,
body: r,
await: n
}, a = k.ForOfStatement;
return m(a.left, s, "left", e, 1), m(a.right, s, "right", t, 1), m(a.body, s, "body", r, 1), m(a.await, s, "await", n), s;
}
i(x6, "forOfStatement");
function v6(e, t) {
let r = {
type: "ImportDeclaration",
specifiers: e,
source: t
}, n = k.ImportDeclaration;
return m(n.specifiers, r, "specifiers", e, 1), m(n.source, r, "source", t, 1), r;
}
i(v6, "importDeclaration");
function P6(e) {
let t = {
type: "ImportDefaultSpecifier",
local: e
}, r = k.ImportDefaultSpecifier;
return m(r.local, t, "local", e, 1), t;
}
i(P6, "importDefaultSpecifier");
function A6(e) {
let t = {
type: "ImportNamespaceSpecifier",
local: e
}, r = k.ImportNamespaceSpecifier;
return m(r.local, t, "local", e, 1), t;
}
i(A6, "importNamespaceSpecifier");
function C6(e, t) {
let r = {
type: "ImportSpecifier",
local: e,
imported: t
}, n = k.ImportSpecifier;
return m(n.local, r, "local", e, 1), m(n.imported, r, "imported", t, 1), r;
}
i(C6, "importSpecifier");
function D6(e, t = null) {
let r = {
type: "ImportExpression",
source: e,
options: t
}, n = k.ImportExpression;
return m(n.source, r, "source", e, 1), m(n.options, r, "options", t, 1), r;
}
i(D6, "importExpression");
function w6(e, t) {
let r = {
type: "MetaProperty",
meta: e,
property: t
}, n = k.MetaProperty;
return m(n.meta, r, "meta", e, 1), m(n.property, r, "property", t, 1), r;
}
i(w6, "metaProperty");
function I6(e = "method", t, r, n, s = !1, a = !1, o = !1, l = !1) {
let u = {
type: "ClassMethod",
kind: e,
key: t,
params: r,
body: n,
computed: s,
static: a,
generator: o,
async: l
}, c = k.ClassMethod;
return m(c.kind, u, "kind", e), m(c.key, u, "key", t, 1), m(c.params, u, "params", r, 1), m(c.body, u, "body", n, 1), m(c.computed, u, "\
computed", s), m(c.static, u, "static", a), m(c.generator, u, "generator", o), m(c.async, u, "async", l), u;
}
i(I6, "classMethod");
function _6(e) {
let t = {
type: "ObjectPattern",
properties: e
}, r = k.ObjectPattern;
return m(r.properties, t, "properties", e, 1), t;
}
i(_6, "objectPattern");
function bE(e) {
let t = {
type: "SpreadElement",
argument: e
}, r = k.SpreadElement;
return m(r.argument, t, "argument", e, 1), t;
}
i(bE, "spreadElement");
function O6() {
return {
type: "Super"
};
}
i(O6, "_super");
function N6(e, t) {
let r = {
type: "TaggedTemplateExpression",
tag: e,
quasi: t
}, n = k.TaggedTemplateExpression;
return m(n.tag, r, "tag", e, 1), m(n.quasi, r, "quasi", t, 1), r;
}
i(N6, "taggedTemplateExpression");
function B6(e, t = !1) {
let r = {
type: "TemplateElement",
value: e,
tail: t
}, n = k.TemplateElement;
return m(n.value, r, "value", e), m(n.tail, r, "tail", t), r;
}
i(B6, "templateElement");
function k6(e, t) {
let r = {
type: "TemplateLiteral",
quasis: e,
expressions: t
}, n = k.TemplateLiteral;
return m(n.quasis, r, "quasis", e, 1), m(n.expressions, r, "expressions", t, 1), r;
}
i(k6, "templateLiteral");
function F6(e = null, t = !1) {
let r = {
type: "YieldExpression",
argument: e,
delegate: t
}, n = k.YieldExpression;
return m(n.argument, r, "argument", e, 1), m(n.delegate, r, "delegate", t), r;
}
i(F6, "yieldExpression");
function j6(e) {
let t = {
type: "AwaitExpression",
argument: e
}, r = k.AwaitExpression;
return m(r.argument, t, "argument", e, 1), t;
}
i(j6, "awaitExpression");
function L6() {
return {
type: "Import"
};
}
i(L6, "_import");
function M6(e) {
let t = {
type: "BigIntLiteral",
value: e
}, r = k.BigIntLiteral;
return m(r.value, t, "value", e), t;
}
i(M6, "bigIntLiteral");
function R6(e) {
let t = {
type: "ExportNamespaceSpecifier",
exported: e
}, r = k.ExportNamespaceSpecifier;
return m(r.exported, t, "exported", e, 1), t;
}
i(R6, "exportNamespaceSpecifier");
function q6(e, t, r = !1, n) {
let s = {
type: "OptionalMemberExpression",
object: e,
property: t,
computed: r,
optional: n
}, a = k.OptionalMemberExpression;
return m(a.object, s, "object", e, 1), m(a.property, s, "property", t, 1), m(a.computed, s, "computed", r), m(a.optional, s, "optional",
n), s;
}
i(q6, "optionalMemberExpression");
function U6(e, t, r) {
let n = {
type: "OptionalCallExpression",
callee: e,
arguments: t,
optional: r
}, s = k.OptionalCallExpression;
return m(s.callee, n, "callee", e, 1), m(s.arguments, n, "arguments", t, 1), m(s.optional, n, "optional", r), n;
}
i(U6, "optionalCallExpression");
function V6(e, t = null, r = null, n = null, s = !1, a = !1) {
let o = {
type: "ClassProperty",
key: e,
value: t,
typeAnnotation: r,
decorators: n,
computed: s,
static: a
}, l = k.ClassProperty;
return m(l.key, o, "key", e, 1), m(l.value, o, "value", t, 1), m(l.typeAnnotation, o, "typeAnnotation", r, 1), m(l.decorators, o, "decor\
ators", n, 1), m(l.computed, o, "computed", s), m(l.static, o, "static", a), o;
}
i(V6, "classProperty");
function $6(e, t = null, r = null, n = null, s = !1, a = !1) {
let o = {
type: "ClassAccessorProperty",
key: e,
value: t,
typeAnnotation: r,
decorators: n,
computed: s,
static: a
}, l = k.ClassAccessorProperty;
return m(l.key, o, "key", e, 1), m(l.value, o, "value", t, 1), m(l.typeAnnotation, o, "typeAnnotation", r, 1), m(l.decorators, o, "decor\
ators", n, 1), m(l.computed, o, "computed", s), m(l.static, o, "static", a), o;
}
i($6, "classAccessorProperty");
function W6(e, t = null, r = null, n = !1) {
let s = {
type: "ClassPrivateProperty",
key: e,
value: t,
decorators: r,
static: n
}, a = k.ClassPrivateProperty;
return m(a.key, s, "key", e, 1), m(a.value, s, "value", t, 1), m(a.decorators, s, "decorators", r, 1), m(a.static, s, "static", n), s;
}
i(W6, "classPrivateProperty");
function K6(e = "method", t, r, n, s = !1) {
let a = {
type: "ClassPrivateMethod",
kind: e,
key: t,
params: r,
body: n,
static: s
}, o = k.ClassPrivateMethod;
return m(o.kind, a, "kind", e), m(o.key, a, "key", t, 1), m(o.params, a, "params", r, 1), m(o.body, a, "body", n, 1), m(o.static, a, "st\
atic", s), a;
}
i(K6, "classPrivateMethod");
function G6(e) {
let t = {
type: "PrivateName",
id: e
}, r = k.PrivateName;
return m(r.id, t, "id", e, 1), t;
}
i(G6, "privateName");
function H6(e) {
let t = {
type: "StaticBlock",
body: e
}, r = k.StaticBlock;
return m(r.body, t, "body", e, 1), t;
}
i(H6, "staticBlock");
function Y6(e, t) {
let r = {
type: "ImportAttribute",
key: e,
value: t
}, n = k.ImportAttribute;
return m(n.key, r, "key", e, 1), m(n.value, r, "value", t, 1), r;
}
i(Y6, "importAttribute");
function J6() {
return {
type: "AnyTypeAnnotation"
};
}
i(J6, "anyTypeAnnotation");
function X6(e) {
let t = {
type: "ArrayTypeAnnotation",
elementType: e
}, r = k.ArrayTypeAnnotation;
return m(r.elementType, t, "elementType", e, 1), t;
}
i(X6, "arrayTypeAnnotation");
function z6() {
return {
type: "BooleanTypeAnnotation"
};
}
i(z6, "booleanTypeAnnotation");
function Q6(e) {
let t = {
type: "BooleanLiteralTypeAnnotation",
value: e
}, r = k.BooleanLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(Q6, "booleanLiteralTypeAnnotation");
function Z6() {
return {
type: "NullLiteralTypeAnnotation"
};
}
i(Z6, "nullLiteralTypeAnnotation");
function ej(e, t = null) {
let r = {
type: "ClassImplements",
id: e,
typeParameters: t
}, n = k.ClassImplements;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(ej, "classImplements");
function tj(e, t = null, r = null, n) {
let s = {
type: "DeclareClass",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.DeclareClass;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(tj, "declareClass");
function rj(e) {
let t = {
type: "DeclareFunction",
id: e
}, r = k.DeclareFunction;
return m(r.id, t, "id", e, 1), t;
}
i(rj, "declareFunction");
function nj(e, t = null, r = null, n) {
let s = {
type: "DeclareInterface",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.DeclareInterface;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(nj, "declareInterface");
function sj(e, t, r = null) {
let n = {
type: "DeclareModule",
id: e,
body: t,
kind: r
}, s = k.DeclareModule;
return m(s.id, n, "id", e, 1), m(s.body, n, "body", t, 1), m(s.kind, n, "kind", r), n;
}
i(sj, "declareModule");
function ij(e) {
let t = {
type: "DeclareModuleExports",
typeAnnotation: e
}, r = k.DeclareModuleExports;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(ij, "declareModuleExports");
function aj(e, t = null, r) {
let n = {
type: "DeclareTypeAlias",
id: e,
typeParameters: t,
right: r
}, s = k.DeclareTypeAlias;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.right, n, "right", r, 1), n;
}
i(aj, "declareTypeAlias");
function oj(e, t = null, r = null) {
let n = {
type: "DeclareOpaqueType",
id: e,
typeParameters: t,
supertype: r
}, s = k.DeclareOpaqueType;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.supertype, n, "supertype", r, 1), n;
}
i(oj, "declareOpaqueType");
function lj(e) {
let t = {
type: "DeclareVariable",
id: e
}, r = k.DeclareVariable;
return m(r.id, t, "id", e, 1), t;
}
i(lj, "declareVariable");
function uj(e = null, t = null, r = null, n = null) {
let s = {
type: "DeclareExportDeclaration",
declaration: e,
specifiers: t,
source: r,
attributes: n
}, a = k.DeclareExportDeclaration;
return m(a.declaration, s, "declaration", e, 1), m(a.specifiers, s, "specifiers", t, 1), m(a.source, s, "source", r, 1), m(a.attributes,
s, "attributes", n, 1), s;
}
i(uj, "declareExportDeclaration");
function cj(e, t = null) {
let r = {
type: "DeclareExportAllDeclaration",
source: e,
attributes: t
}, n = k.DeclareExportAllDeclaration;
return m(n.source, r, "source", e, 1), m(n.attributes, r, "attributes", t, 1), r;
}
i(cj, "declareExportAllDeclaration");
function pj(e) {
let t = {
type: "DeclaredPredicate",
value: e
}, r = k.DeclaredPredicate;
return m(r.value, t, "value", e, 1), t;
}
i(pj, "declaredPredicate");
function fj() {
return {
type: "ExistsTypeAnnotation"
};
}
i(fj, "existsTypeAnnotation");
function dj(e = null, t, r = null, n) {
let s = {
type: "FunctionTypeAnnotation",
typeParameters: e,
params: t,
rest: r,
returnType: n
}, a = k.FunctionTypeAnnotation;
return m(a.typeParameters, s, "typeParameters", e, 1), m(a.params, s, "params", t, 1), m(a.rest, s, "rest", r, 1), m(a.returnType, s, "r\
eturnType", n, 1), s;
}
i(dj, "functionTypeAnnotation");
function hj(e = null, t) {
let r = {
type: "FunctionTypeParam",
name: e,
typeAnnotation: t
}, n = k.FunctionTypeParam;
return m(n.name, r, "name", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(hj, "functionTypeParam");
function mj(e, t = null) {
let r = {
type: "GenericTypeAnnotation",
id: e,
typeParameters: t
}, n = k.GenericTypeAnnotation;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(mj, "genericTypeAnnotation");
function yj() {
return {
type: "InferredPredicate"
};
}
i(yj, "inferredPredicate");
function gj(e, t = null) {
let r = {
type: "InterfaceExtends",
id: e,
typeParameters: t
}, n = k.InterfaceExtends;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(gj, "interfaceExtends");
function bj(e, t = null, r = null, n) {
let s = {
type: "InterfaceDeclaration",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.InterfaceDeclaration;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(bj, "interfaceDeclaration");
function Ej(e = null, t) {
let r = {
type: "InterfaceTypeAnnotation",
extends: e,
body: t
}, n = k.InterfaceTypeAnnotation;
return m(n.extends, r, "extends", e, 1), m(n.body, r, "body", t, 1), r;
}
i(Ej, "interfaceTypeAnnotation");
function Tj(e) {
let t = {
type: "IntersectionTypeAnnotation",
types: e
}, r = k.IntersectionTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(Tj, "intersectionTypeAnnotation");
function Sj() {
return {
type: "MixedTypeAnnotation"
};
}
i(Sj, "mixedTypeAnnotation");
function xj() {
return {
type: "EmptyTypeAnnotation"
};
}
i(xj, "emptyTypeAnnotation");
function vj(e) {
let t = {
type: "NullableTypeAnnotation",
typeAnnotation: e
}, r = k.NullableTypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(vj, "nullableTypeAnnotation");
function Pj(e) {
let t = {
type: "NumberLiteralTypeAnnotation",
value: e
}, r = k.NumberLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(Pj, "numberLiteralTypeAnnotation");
function Aj() {
return {
type: "NumberTypeAnnotation"
};
}
i(Aj, "numberTypeAnnotation");
function Cj(e, t = [], r = [], n = [], s = !1) {
let a = {
type: "ObjectTypeAnnotation",
properties: e,
indexers: t,
callProperties: r,
internalSlots: n,
exact: s
}, o = k.ObjectTypeAnnotation;
return m(o.properties, a, "properties", e, 1), m(o.indexers, a, "indexers", t, 1), m(o.callProperties, a, "callProperties", r, 1), m(o.internalSlots,
a, "internalSlots", n, 1), m(o.exact, a, "exact", s), a;
}
i(Cj, "objectTypeAnnotation");
function Dj(e, t, r, n, s) {
let a = {
type: "ObjectTypeInternalSlot",
id: e,
value: t,
optional: r,
static: n,
method: s
}, o = k.ObjectTypeInternalSlot;
return m(o.id, a, "id", e, 1), m(o.value, a, "value", t, 1), m(o.optional, a, "optional", r), m(o.static, a, "static", n), m(o.method, a,
"method", s), a;
}
i(Dj, "objectTypeInternalSlot");
function wj(e) {
let t = {
type: "ObjectTypeCallProperty",
value: e,
static: null
}, r = k.ObjectTypeCallProperty;
return m(r.value, t, "value", e, 1), t;
}
i(wj, "objectTypeCallProperty");
function Ij(e = null, t, r, n = null) {
let s = {
type: "ObjectTypeIndexer",
id: e,
key: t,
value: r,
variance: n,
static: null
}, a = k.ObjectTypeIndexer;
return m(a.id, s, "id", e, 1), m(a.key, s, "key", t, 1), m(a.value, s, "value", r, 1), m(a.variance, s, "variance", n, 1), s;
}
i(Ij, "objectTypeIndexer");
function _j(e, t, r = null) {
let n = {
type: "ObjectTypeProperty",
key: e,
value: t,
variance: r,
kind: null,
method: null,
optional: null,
proto: null,
static: null
}, s = k.ObjectTypeProperty;
return m(s.key, n, "key", e, 1), m(s.value, n, "value", t, 1), m(s.variance, n, "variance", r, 1), n;
}
i(_j, "objectTypeProperty");
function Oj(e) {
let t = {
type: "ObjectTypeSpreadProperty",
argument: e
}, r = k.ObjectTypeSpreadProperty;
return m(r.argument, t, "argument", e, 1), t;
}
i(Oj, "objectTypeSpreadProperty");
function Nj(e, t = null, r = null, n) {
let s = {
type: "OpaqueType",
id: e,
typeParameters: t,
supertype: r,
impltype: n
}, a = k.OpaqueType;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.supertype, s, "supertype", r, 1), m(a.impltype, s, "i\
mpltype", n, 1), s;
}
i(Nj, "opaqueType");
function Bj(e, t) {
let r = {
type: "QualifiedTypeIdentifier",
id: e,
qualification: t
}, n = k.QualifiedTypeIdentifier;
return m(n.id, r, "id", e, 1), m(n.qualification, r, "qualification", t, 1), r;
}
i(Bj, "qualifiedTypeIdentifier");
function kj(e) {
let t = {
type: "StringLiteralTypeAnnotation",
value: e
}, r = k.StringLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(kj, "stringLiteralTypeAnnotation");
function Fj() {
return {
type: "StringTypeAnnotation"
};
}
i(Fj, "stringTypeAnnotation");
function jj() {
return {
type: "SymbolTypeAnnotation"
};
}
i(jj, "symbolTypeAnnotation");
function Lj() {
return {
type: "ThisTypeAnnotation"
};
}
i(Lj, "thisTypeAnnotation");
function Mj(e) {
let t = {
type: "TupleTypeAnnotation",
types: e
}, r = k.TupleTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(Mj, "tupleTypeAnnotation");
function Rj(e) {
let t = {
type: "TypeofTypeAnnotation",
argument: e
}, r = k.TypeofTypeAnnotation;
return m(r.argument, t, "argument", e, 1), t;
}
i(Rj, "typeofTypeAnnotation");
function qj(e, t = null, r) {
let n = {
type: "TypeAlias",
id: e,
typeParameters: t,
right: r
}, s = k.TypeAlias;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.right, n, "right", r, 1), n;
}
i(qj, "typeAlias");
function Uj(e) {
let t = {
type: "TypeAnnotation",
typeAnnotation: e
}, r = k.TypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(Uj, "typeAnnotation");
function Vj(e, t) {
let r = {
type: "TypeCastExpression",
expression: e,
typeAnnotation: t
}, n = k.TypeCastExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(Vj, "typeCastExpression");
function $j(e = null, t = null, r = null) {
let n = {
type: "TypeParameter",
bound: e,
default: t,
variance: r,
name: null
}, s = k.TypeParameter;
return m(s.bound, n, "bound", e, 1), m(s.default, n, "default", t, 1), m(s.variance, n, "variance", r, 1), n;
}
i($j, "typeParameter");
function Wj(e) {
let t = {
type: "TypeParameterDeclaration",
params: e
}, r = k.TypeParameterDeclaration;
return m(r.params, t, "params", e, 1), t;
}
i(Wj, "typeParameterDeclaration");
function Kj(e) {
let t = {
type: "TypeParameterInstantiation",
params: e
}, r = k.TypeParameterInstantiation;
return m(r.params, t, "params", e, 1), t;
}
i(Kj, "typeParameterInstantiation");
function Gj(e) {
let t = {
type: "UnionTypeAnnotation",
types: e
}, r = k.UnionTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(Gj, "unionTypeAnnotation");
function Hj(e) {
let t = {
type: "Variance",
kind: e
}, r = k.Variance;
return m(r.kind, t, "kind", e), t;
}
i(Hj, "variance");
function Yj() {
return {
type: "VoidTypeAnnotation"
};
}
i(Yj, "voidTypeAnnotation");
function Jj(e, t) {
let r = {
type: "EnumDeclaration",
id: e,
body: t
}, n = k.EnumDeclaration;
return m(n.id, r, "id", e, 1), m(n.body, r, "body", t, 1), r;
}
i(Jj, "enumDeclaration");
function Xj(e) {
let t = {
type: "EnumBooleanBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumBooleanBody;
return m(r.members, t, "members", e, 1), t;
}
i(Xj, "enumBooleanBody");
function zj(e) {
let t = {
type: "EnumNumberBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumNumberBody;
return m(r.members, t, "members", e, 1), t;
}
i(zj, "enumNumberBody");
function Qj(e) {
let t = {
type: "EnumStringBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumStringBody;
return m(r.members, t, "members", e, 1), t;
}
i(Qj, "enumStringBody");
function Zj(e) {
let t = {
type: "EnumSymbolBody",
members: e,
hasUnknownMembers: null
}, r = k.EnumSymbolBody;
return m(r.members, t, "members", e, 1), t;
}
i(Zj, "enumSymbolBody");
function eL(e) {
let t = {
type: "EnumBooleanMember",
id: e,
init: null
}, r = k.EnumBooleanMember;
return m(r.id, t, "id", e, 1), t;
}
i(eL, "enumBooleanMember");
function tL(e, t) {
let r = {
type: "EnumNumberMember",
id: e,
init: t
}, n = k.EnumNumberMember;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(tL, "enumNumberMember");
function rL(e, t) {
let r = {
type: "EnumStringMember",
id: e,
init: t
}, n = k.EnumStringMember;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(rL, "enumStringMember");
function nL(e) {
let t = {
type: "EnumDefaultedMember",
id: e
}, r = k.EnumDefaultedMember;
return m(r.id, t, "id", e, 1), t;
}
i(nL, "enumDefaultedMember");
function sL(e, t) {
let r = {
type: "IndexedAccessType",
objectType: e,
indexType: t
}, n = k.IndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(sL, "indexedAccessType");
function iL(e, t) {
let r = {
type: "OptionalIndexedAccessType",
objectType: e,
indexType: t,
optional: null
}, n = k.OptionalIndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(iL, "optionalIndexedAccessType");
function aL(e, t = null) {
let r = {
type: "JSXAttribute",
name: e,
value: t
}, n = k.JSXAttribute;
return m(n.name, r, "name", e, 1), m(n.value, r, "value", t, 1), r;
}
i(aL, "jsxAttribute");
function oL(e) {
let t = {
type: "JSXClosingElement",
name: e
}, r = k.JSXClosingElement;
return m(r.name, t, "name", e, 1), t;
}
i(oL, "jsxClosingElement");
function lL(e, t = null, r, n = null) {
let s = {
type: "JSXElement",
openingElement: e,
closingElement: t,
children: r,
selfClosing: n
}, a = k.JSXElement;
return m(a.openingElement, s, "openingElement", e, 1), m(a.closingElement, s, "closingElement", t, 1), m(a.children, s, "children", r, 1),
m(a.selfClosing, s, "selfClosing", n), s;
}
i(lL, "jsxElement");
function uL() {
return {
type: "JSXEmptyExpression"
};
}
i(uL, "jsxEmptyExpression");
function cL(e) {
let t = {
type: "JSXExpressionContainer",
expression: e
}, r = k.JSXExpressionContainer;
return m(r.expression, t, "expression", e, 1), t;
}
i(cL, "jsxExpressionContainer");
function pL(e) {
let t = {
type: "JSXSpreadChild",
expression: e
}, r = k.JSXSpreadChild;
return m(r.expression, t, "expression", e, 1), t;
}
i(pL, "jsxSpreadChild");
function fL(e) {
let t = {
type: "JSXIdentifier",
name: e
}, r = k.JSXIdentifier;
return m(r.name, t, "name", e), t;
}
i(fL, "jsxIdentifier");
function dL(e, t) {
let r = {
type: "JSXMemberExpression",
object: e,
property: t
}, n = k.JSXMemberExpression;
return m(n.object, r, "object", e, 1), m(n.property, r, "property", t, 1), r;
}
i(dL, "jsxMemberExpression");
function hL(e, t) {
let r = {
type: "JSXNamespacedName",
namespace: e,
name: t
}, n = k.JSXNamespacedName;
return m(n.namespace, r, "namespace", e, 1), m(n.name, r, "name", t, 1), r;
}
i(hL, "jsxNamespacedName");
function mL(e, t, r = !1) {
let n = {
type: "JSXOpeningElement",
name: e,
attributes: t,
selfClosing: r
}, s = k.JSXOpeningElement;
return m(s.name, n, "name", e, 1), m(s.attributes, n, "attributes", t, 1), m(s.selfClosing, n, "selfClosing", r), n;
}
i(mL, "jsxOpeningElement");
function yL(e) {
let t = {
type: "JSXSpreadAttribute",
argument: e
}, r = k.JSXSpreadAttribute;
return m(r.argument, t, "argument", e, 1), t;
}
i(yL, "jsxSpreadAttribute");
function gL(e) {
let t = {
type: "JSXText",
value: e
}, r = k.JSXText;
return m(r.value, t, "value", e), t;
}
i(gL, "jsxText");
function bL(e, t, r) {
let n = {
type: "JSXFragment",
openingFragment: e,
closingFragment: t,
children: r
}, s = k.JSXFragment;
return m(s.openingFragment, n, "openingFragment", e, 1), m(s.closingFragment, n, "closingFragment", t, 1), m(s.children, n, "children", r,
1), n;
}
i(bL, "jsxFragment");
function EL() {
return {
type: "JSXOpeningFragment"
};
}
i(EL, "jsxOpeningFragment");
function TL() {
return {
type: "JSXClosingFragment"
};
}
i(TL, "jsxClosingFragment");
function SL() {
return {
type: "Noop"
};
}
i(SL, "noop");
function xL(e, t) {
let r = {
type: "Placeholder",
expectedNode: e,
name: t
}, n = k.Placeholder;
return m(n.expectedNode, r, "expectedNode", e), m(n.name, r, "name", t, 1), r;
}
i(xL, "placeholder");
function vL(e) {
let t = {
type: "V8IntrinsicIdentifier",
name: e
}, r = k.V8IntrinsicIdentifier;
return m(r.name, t, "name", e), t;
}
i(vL, "v8IntrinsicIdentifier");
function PL() {
return {
type: "ArgumentPlaceholder"
};
}
i(PL, "argumentPlaceholder");
function AL(e, t) {
let r = {
type: "BindExpression",
object: e,
callee: t
}, n = k.BindExpression;
return m(n.object, r, "object", e, 1), m(n.callee, r, "callee", t, 1), r;
}
i(AL, "bindExpression");
function CL(e) {
let t = {
type: "Decorator",
expression: e
}, r = k.Decorator;
return m(r.expression, t, "expression", e, 1), t;
}
i(CL, "decorator");
function DL(e, t = !1) {
let r = {
type: "DoExpression",
body: e,
async: t
}, n = k.DoExpression;
return m(n.body, r, "body", e, 1), m(n.async, r, "async", t), r;
}
i(DL, "doExpression");
function wL(e) {
let t = {
type: "ExportDefaultSpecifier",
exported: e
}, r = k.ExportDefaultSpecifier;
return m(r.exported, t, "exported", e, 1), t;
}
i(wL, "exportDefaultSpecifier");
function IL(e) {
let t = {
type: "RecordExpression",
properties: e
}, r = k.RecordExpression;
return m(r.properties, t, "properties", e, 1), t;
}
i(IL, "recordExpression");
function _L(e = []) {
let t = {
type: "TupleExpression",
elements: e
}, r = k.TupleExpression;
return m(r.elements, t, "elements", e, 1), t;
}
i(_L, "tupleExpression");
function OL(e) {
let t = {
type: "DecimalLiteral",
value: e
}, r = k.DecimalLiteral;
return m(r.value, t, "value", e), t;
}
i(OL, "decimalLiteral");
function NL(e) {
let t = {
type: "ModuleExpression",
body: e
}, r = k.ModuleExpression;
return m(r.body, t, "body", e, 1), t;
}
i(NL, "moduleExpression");
function BL() {
return {
type: "TopicReference"
};
}
i(BL, "topicReference");
function kL(e) {
let t = {
type: "PipelineTopicExpression",
expression: e
}, r = k.PipelineTopicExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i(kL, "pipelineTopicExpression");
function FL(e) {
let t = {
type: "PipelineBareFunction",
callee: e
}, r = k.PipelineBareFunction;
return m(r.callee, t, "callee", e, 1), t;
}
i(FL, "pipelineBareFunction");
function jL() {
return {
type: "PipelinePrimaryTopicReference"
};
}
i(jL, "pipelinePrimaryTopicReference");
function LL(e) {
let t = {
type: "TSParameterProperty",
parameter: e
}, r = k.TSParameterProperty;
return m(r.parameter, t, "parameter", e, 1), t;
}
i(LL, "tsParameterProperty");
function ML(e = null, t = null, r, n = null) {
let s = {
type: "TSDeclareFunction",
id: e,
typeParameters: t,
params: r,
returnType: n
}, a = k.TSDeclareFunction;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.params, s, "params", r, 1), m(a.returnType, s, "retur\
nType", n, 1), s;
}
i(ML, "tsDeclareFunction");
function RL(e = null, t, r = null, n, s = null) {
let a = {
type: "TSDeclareMethod",
decorators: e,
key: t,
typeParameters: r,
params: n,
returnType: s
}, o = k.TSDeclareMethod;
return m(o.decorators, a, "decorators", e, 1), m(o.key, a, "key", t, 1), m(o.typeParameters, a, "typeParameters", r, 1), m(o.params, a, "\
params", n, 1), m(o.returnType, a, "returnType", s, 1), a;
}
i(RL, "tsDeclareMethod");
function qL(e, t) {
let r = {
type: "TSQualifiedName",
left: e,
right: t
}, n = k.TSQualifiedName;
return m(n.left, r, "left", e, 1), m(n.right, r, "right", t, 1), r;
}
i(qL, "tsQualifiedName");
function UL(e = null, t, r = null) {
let n = {
type: "TSCallSignatureDeclaration",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSCallSignatureDeclaration;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(UL, "tsCallSignatureDeclaration");
function VL(e = null, t, r = null) {
let n = {
type: "TSConstructSignatureDeclaration",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSConstructSignatureDeclaration;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(VL, "tsConstructSignatureDeclaration");
function $L(e, t = null) {
let r = {
type: "TSPropertySignature",
key: e,
typeAnnotation: t
}, n = k.TSPropertySignature;
return m(n.key, r, "key", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i($L, "tsPropertySignature");
function WL(e, t = null, r, n = null) {
let s = {
type: "TSMethodSignature",
key: e,
typeParameters: t,
parameters: r,
typeAnnotation: n,
kind: null
}, a = k.TSMethodSignature;
return m(a.key, s, "key", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.parameters, s, "parameters", r, 1), m(a.typeAnnotation,
s, "typeAnnotation", n, 1), s;
}
i(WL, "tsMethodSignature");
function KL(e, t = null) {
let r = {
type: "TSIndexSignature",
parameters: e,
typeAnnotation: t
}, n = k.TSIndexSignature;
return m(n.parameters, r, "parameters", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(KL, "tsIndexSignature");
function GL() {
return {
type: "TSAnyKeyword"
};
}
i(GL, "tsAnyKeyword");
function HL() {
return {
type: "TSBooleanKeyword"
};
}
i(HL, "tsBooleanKeyword");
function YL() {
return {
type: "TSBigIntKeyword"
};
}
i(YL, "tsBigIntKeyword");
function JL() {
return {
type: "TSIntrinsicKeyword"
};
}
i(JL, "tsIntrinsicKeyword");
function XL() {
return {
type: "TSNeverKeyword"
};
}
i(XL, "tsNeverKeyword");
function zL() {
return {
type: "TSNullKeyword"
};
}
i(zL, "tsNullKeyword");
function QL() {
return {
type: "TSNumberKeyword"
};
}
i(QL, "tsNumberKeyword");
function ZL() {
return {
type: "TSObjectKeyword"
};
}
i(ZL, "tsObjectKeyword");
function eM() {
return {
type: "TSStringKeyword"
};
}
i(eM, "tsStringKeyword");
function tM() {
return {
type: "TSSymbolKeyword"
};
}
i(tM, "tsSymbolKeyword");
function rM() {
return {
type: "TSUndefinedKeyword"
};
}
i(rM, "tsUndefinedKeyword");
function nM() {
return {
type: "TSUnknownKeyword"
};
}
i(nM, "tsUnknownKeyword");
function sM() {
return {
type: "TSVoidKeyword"
};
}
i(sM, "tsVoidKeyword");
function iM() {
return {
type: "TSThisType"
};
}
i(iM, "tsThisType");
function aM(e = null, t, r = null) {
let n = {
type: "TSFunctionType",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSFunctionType;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(aM, "tsFunctionType");
function oM(e = null, t, r = null) {
let n = {
type: "TSConstructorType",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSConstructorType;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(oM, "tsConstructorType");
function lM(e, t = null) {
let r = {
type: "TSTypeReference",
typeName: e,
typeParameters: t
}, n = k.TSTypeReference;
return m(n.typeName, r, "typeName", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(lM, "tsTypeReference");
function uM(e, t = null, r = null) {
let n = {
type: "TSTypePredicate",
parameterName: e,
typeAnnotation: t,
asserts: r
}, s = k.TSTypePredicate;
return m(s.parameterName, n, "parameterName", e, 1), m(s.typeAnnotation, n, "typeAnnotation", t, 1), m(s.asserts, n, "asserts", r), n;
}
i(uM, "tsTypePredicate");
function cM(e, t = null) {
let r = {
type: "TSTypeQuery",
exprName: e,
typeParameters: t
}, n = k.TSTypeQuery;
return m(n.exprName, r, "exprName", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(cM, "tsTypeQuery");
function pM(e) {
let t = {
type: "TSTypeLiteral",
members: e
}, r = k.TSTypeLiteral;
return m(r.members, t, "members", e, 1), t;
}
i(pM, "tsTypeLiteral");
function fM(e) {
let t = {
type: "TSArrayType",
elementType: e
}, r = k.TSArrayType;
return m(r.elementType, t, "elementType", e, 1), t;
}
i(fM, "tsArrayType");
function dM(e) {
let t = {
type: "TSTupleType",
elementTypes: e
}, r = k.TSTupleType;
return m(r.elementTypes, t, "elementTypes", e, 1), t;
}
i(dM, "tsTupleType");
function hM(e) {
let t = {
type: "TSOptionalType",
typeAnnotation: e
}, r = k.TSOptionalType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(hM, "tsOptionalType");
function mM(e) {
let t = {
type: "TSRestType",
typeAnnotation: e
}, r = k.TSRestType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(mM, "tsRestType");
function yM(e, t, r = !1) {
let n = {
type: "TSNamedTupleMember",
label: e,
elementType: t,
optional: r
}, s = k.TSNamedTupleMember;
return m(s.label, n, "label", e, 1), m(s.elementType, n, "elementType", t, 1), m(s.optional, n, "optional", r), n;
}
i(yM, "tsNamedTupleMember");
function gM(e) {
let t = {
type: "TSUnionType",
types: e
}, r = k.TSUnionType;
return m(r.types, t, "types", e, 1), t;
}
i(gM, "tsUnionType");
function bM(e) {
let t = {
type: "TSIntersectionType",
types: e
}, r = k.TSIntersectionType;
return m(r.types, t, "types", e, 1), t;
}
i(bM, "tsIntersectionType");
function EM(e, t, r, n) {
let s = {
type: "TSConditionalType",
checkType: e,
extendsType: t,
trueType: r,
falseType: n
}, a = k.TSConditionalType;
return m(a.checkType, s, "checkType", e, 1), m(a.extendsType, s, "extendsType", t, 1), m(a.trueType, s, "trueType", r, 1), m(a.falseType,
s, "falseType", n, 1), s;
}
i(EM, "tsConditionalType");
function TM(e) {
let t = {
type: "TSInferType",
typeParameter: e
}, r = k.TSInferType;
return m(r.typeParameter, t, "typeParameter", e, 1), t;
}
i(TM, "tsInferType");
function SM(e) {
let t = {
type: "TSParenthesizedType",
typeAnnotation: e
}, r = k.TSParenthesizedType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(SM, "tsParenthesizedType");
function xM(e) {
let t = {
type: "TSTypeOperator",
typeAnnotation: e,
operator: null
}, r = k.TSTypeOperator;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(xM, "tsTypeOperator");
function vM(e, t) {
let r = {
type: "TSIndexedAccessType",
objectType: e,
indexType: t
}, n = k.TSIndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(vM, "tsIndexedAccessType");
function PM(e, t = null, r = null) {
let n = {
type: "TSMappedType",
typeParameter: e,
typeAnnotation: t,
nameType: r
}, s = k.TSMappedType;
return m(s.typeParameter, n, "typeParameter", e, 1), m(s.typeAnnotation, n, "typeAnnotation", t, 1), m(s.nameType, n, "nameType", r, 1),
n;
}
i(PM, "tsMappedType");
function AM(e, t) {
let r = {
type: "TSTemplateLiteralType",
quasis: e,
types: t
}, n = k.TSTemplateLiteralType;
return m(n.quasis, r, "quasis", e, 1), m(n.types, r, "types", t, 1), r;
}
i(AM, "tsTemplateLiteralType");
function CM(e) {
let t = {
type: "TSLiteralType",
literal: e
}, r = k.TSLiteralType;
return m(r.literal, t, "literal", e, 1), t;
}
i(CM, "tsLiteralType");
function DM(e, t = null) {
let r = {
type: "TSExpressionWithTypeArguments",
expression: e,
typeParameters: t
}, n = k.TSExpressionWithTypeArguments;
return m(n.expression, r, "expression", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(DM, "tsExpressionWithTypeArguments");
function wM(e, t = null, r = null, n) {
let s = {
type: "TSInterfaceDeclaration",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.TSInterfaceDeclaration;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(wM, "tsInterfaceDeclaration");
function IM(e) {
let t = {
type: "TSInterfaceBody",
body: e
}, r = k.TSInterfaceBody;
return m(r.body, t, "body", e, 1), t;
}
i(IM, "tsInterfaceBody");
function _M(e, t = null, r) {
let n = {
type: "TSTypeAliasDeclaration",
id: e,
typeParameters: t,
typeAnnotation: r
}, s = k.TSTypeAliasDeclaration;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r, 1), n;
}
i(_M, "tsTypeAliasDeclaration");
function OM(e, t = null) {
let r = {
type: "TSInstantiationExpression",
expression: e,
typeParameters: t
}, n = k.TSInstantiationExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(OM, "tsInstantiationExpression");
function NM(e, t) {
let r = {
type: "TSAsExpression",
expression: e,
typeAnnotation: t
}, n = k.TSAsExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(NM, "tsAsExpression");
function BM(e, t) {
let r = {
type: "TSSatisfiesExpression",
expression: e,
typeAnnotation: t
}, n = k.TSSatisfiesExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(BM, "tsSatisfiesExpression");
function kM(e, t) {
let r = {
type: "TSTypeAssertion",
typeAnnotation: e,
expression: t
}, n = k.TSTypeAssertion;
return m(n.typeAnnotation, r, "typeAnnotation", e, 1), m(n.expression, r, "expression", t, 1), r;
}
i(kM, "tsTypeAssertion");
function FM(e) {
let t = {
type: "TSEnumBody",
members: e
}, r = k.TSEnumBody;
return m(r.members, t, "members", e, 1), t;
}
i(FM, "tsEnumBody");
function jM(e, t) {
let r = {
type: "TSEnumDeclaration",
id: e,
members: t
}, n = k.TSEnumDeclaration;
return m(n.id, r, "id", e, 1), m(n.members, r, "members", t, 1), r;
}
i(jM, "tsEnumDeclaration");
function LM(e, t = null) {
let r = {
type: "TSEnumMember",
id: e,
initializer: t
}, n = k.TSEnumMember;
return m(n.id, r, "id", e, 1), m(n.initializer, r, "initializer", t, 1), r;
}
i(LM, "tsEnumMember");
function MM(e, t) {
let r = {
type: "TSModuleDeclaration",
id: e,
body: t,
kind: null
}, n = k.TSModuleDeclaration;
return m(n.id, r, "id", e, 1), m(n.body, r, "body", t, 1), r;
}
i(MM, "tsModuleDeclaration");
function RM(e) {
let t = {
type: "TSModuleBlock",
body: e
}, r = k.TSModuleBlock;
return m(r.body, t, "body", e, 1), t;
}
i(RM, "tsModuleBlock");
function qM(e, t = null, r = null) {
let n = {
type: "TSImportType",
argument: e,
qualifier: t,
typeParameters: r
}, s = k.TSImportType;
return m(s.argument, n, "argument", e, 1), m(s.qualifier, n, "qualifier", t, 1), m(s.typeParameters, n, "typeParameters", r, 1), n;
}
i(qM, "tsImportType");
function UM(e, t) {
let r = {
type: "TSImportEqualsDeclaration",
id: e,
moduleReference: t,
isExport: null
}, n = k.TSImportEqualsDeclaration;
return m(n.id, r, "id", e, 1), m(n.moduleReference, r, "moduleReference", t, 1), r;
}
i(UM, "tsImportEqualsDeclaration");
function VM(e) {
let t = {
type: "TSExternalModuleReference",
expression: e
}, r = k.TSExternalModuleReference;
return m(r.expression, t, "expression", e, 1), t;
}
i(VM, "tsExternalModuleReference");
function $M(e) {
let t = {
type: "TSNonNullExpression",
expression: e
}, r = k.TSNonNullExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i($M, "tsNonNullExpression");
function WM(e) {
let t = {
type: "TSExportAssignment",
expression: e
}, r = k.TSExportAssignment;
return m(r.expression, t, "expression", e, 1), t;
}
i(WM, "tsExportAssignment");
function KM(e) {
let t = {
type: "TSNamespaceExportDeclaration",
id: e
}, r = k.TSNamespaceExportDeclaration;
return m(r.id, t, "id", e, 1), t;
}
i(KM, "tsNamespaceExportDeclaration");
function GM(e) {
let t = {
type: "TSTypeAnnotation",
typeAnnotation: e
}, r = k.TSTypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(GM, "tsTypeAnnotation");
function HM(e) {
let t = {
type: "TSTypeParameterInstantiation",
params: e
}, r = k.TSTypeParameterInstantiation;
return m(r.params, t, "params", e, 1), t;
}
i(HM, "tsTypeParameterInstantiation");
function YM(e) {
let t = {
type: "TSTypeParameterDeclaration",
params: e
}, r = k.TSTypeParameterDeclaration;
return m(r.params, t, "params", e, 1), t;
}
i(YM, "tsTypeParameterDeclaration");
function JM(e = null, t = null, r) {
let n = {
type: "TSTypeParameter",
constraint: e,
default: t,
name: r
}, s = k.TSTypeParameter;
return m(s.constraint, n, "constraint", e, 1), m(s.default, n, "default", t, 1), m(s.name, n, "name", r), n;
}
i(JM, "tsTypeParameter");
function XM(e) {
return (0, bl.default)("NumberLiteral", "NumericLiteral", "The node type "), mE(e);
}
i(XM, "NumberLiteral");
function zM(e, t = "") {
return (0, bl.default)("RegexLiteral", "RegExpLiteral", "The node type "), yE(e, t);
}
i(zM, "RegexLiteral");
function QM(e) {
return (0, bl.default)("RestProperty", "RestElement", "The node type "), gE(e);
}
i(QM, "RestProperty");
function ZM(e) {
return (0, bl.default)("SpreadProperty", "SpreadElement", "The node type "), bE(e);
}
i(ZM, "SpreadProperty");
});
// ../node_modules/@babel/types/lib/builders/generated/uppercase.js
var EE = P((w) => {
"use strict";
Object.defineProperty(w, "__esModule", {
value: !0
});
Object.defineProperty(w, "AnyTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.anyTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ArgumentPlaceholder", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.argumentPlaceholder;
}, "get")
});
Object.defineProperty(w, "ArrayExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayExpression;
}, "get")
});
Object.defineProperty(w, "ArrayPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayPattern;
}, "get")
});
Object.defineProperty(w, "ArrayTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ArrowFunctionExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrowFunctionExpression;
}, "get")
});
Object.defineProperty(w, "AssignmentExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.assignmentExpression;
}, "get")
});
Object.defineProperty(w, "AssignmentPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.assignmentPattern;
}, "get")
});
Object.defineProperty(w, "AwaitExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.awaitExpression;
}, "get")
});
Object.defineProperty(w, "BigIntLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.bigIntLiteral;
}, "get")
});
Object.defineProperty(w, "BinaryExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.binaryExpression;
}, "get")
});
Object.defineProperty(w, "BindExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.bindExpression;
}, "get")
});
Object.defineProperty(w, "BlockStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.blockStatement;
}, "get")
});
Object.defineProperty(w, "BooleanLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanLiteral;
}, "get")
});
Object.defineProperty(w, "BooleanLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "BooleanTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "BreakStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.breakStatement;
}, "get")
});
Object.defineProperty(w, "CallExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.callExpression;
}, "get")
});
Object.defineProperty(w, "CatchClause", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.catchClause;
}, "get")
});
Object.defineProperty(w, "ClassAccessorProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classAccessorProperty;
}, "get")
});
Object.defineProperty(w, "ClassBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classBody;
}, "get")
});
Object.defineProperty(w, "ClassDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classDeclaration;
}, "get")
});
Object.defineProperty(w, "ClassExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classExpression;
}, "get")
});
Object.defineProperty(w, "ClassImplements", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classImplements;
}, "get")
});
Object.defineProperty(w, "ClassMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classMethod;
}, "get")
});
Object.defineProperty(w, "ClassPrivateMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classPrivateMethod;
}, "get")
});
Object.defineProperty(w, "ClassPrivateProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classPrivateProperty;
}, "get")
});
Object.defineProperty(w, "ClassProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classProperty;
}, "get")
});
Object.defineProperty(w, "ConditionalExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.conditionalExpression;
}, "get")
});
Object.defineProperty(w, "ContinueStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.continueStatement;
}, "get")
});
Object.defineProperty(w, "DebuggerStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.debuggerStatement;
}, "get")
});
Object.defineProperty(w, "DecimalLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.decimalLiteral;
}, "get")
});
Object.defineProperty(w, "DeclareClass", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareClass;
}, "get")
});
Object.defineProperty(w, "DeclareExportAllDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareExportAllDeclaration;
}, "get")
});
Object.defineProperty(w, "DeclareExportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareExportDeclaration;
}, "get")
});
Object.defineProperty(w, "DeclareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareFunction;
}, "get")
});
Object.defineProperty(w, "DeclareInterface", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareInterface;
}, "get")
});
Object.defineProperty(w, "DeclareModule", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareModule;
}, "get")
});
Object.defineProperty(w, "DeclareModuleExports", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareModuleExports;
}, "get")
});
Object.defineProperty(w, "DeclareOpaqueType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareOpaqueType;
}, "get")
});
Object.defineProperty(w, "DeclareTypeAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareTypeAlias;
}, "get")
});
Object.defineProperty(w, "DeclareVariable", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareVariable;
}, "get")
});
Object.defineProperty(w, "DeclaredPredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declaredPredicate;
}, "get")
});
Object.defineProperty(w, "Decorator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.decorator;
}, "get")
});
Object.defineProperty(w, "Directive", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.directive;
}, "get")
});
Object.defineProperty(w, "DirectiveLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.directiveLiteral;
}, "get")
});
Object.defineProperty(w, "DoExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.doExpression;
}, "get")
});
Object.defineProperty(w, "DoWhileStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.doWhileStatement;
}, "get")
});
Object.defineProperty(w, "EmptyStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.emptyStatement;
}, "get")
});
Object.defineProperty(w, "EmptyTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.emptyTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "EnumBooleanBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumBooleanBody;
}, "get")
});
Object.defineProperty(w, "EnumBooleanMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumBooleanMember;
}, "get")
});
Object.defineProperty(w, "EnumDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumDeclaration;
}, "get")
});
Object.defineProperty(w, "EnumDefaultedMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumDefaultedMember;
}, "get")
});
Object.defineProperty(w, "EnumNumberBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumNumberBody;
}, "get")
});
Object.defineProperty(w, "EnumNumberMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumNumberMember;
}, "get")
});
Object.defineProperty(w, "EnumStringBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumStringBody;
}, "get")
});
Object.defineProperty(w, "EnumStringMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumStringMember;
}, "get")
});
Object.defineProperty(w, "EnumSymbolBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumSymbolBody;
}, "get")
});
Object.defineProperty(w, "ExistsTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.existsTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ExportAllDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportAllDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportDefaultDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportDefaultDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportDefaultSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportDefaultSpecifier;
}, "get")
});
Object.defineProperty(w, "ExportNamedDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportNamedDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportNamespaceSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportNamespaceSpecifier;
}, "get")
});
Object.defineProperty(w, "ExportSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportSpecifier;
}, "get")
});
Object.defineProperty(w, "ExpressionStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.expressionStatement;
}, "get")
});
Object.defineProperty(w, "File", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.file;
}, "get")
});
Object.defineProperty(w, "ForInStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forInStatement;
}, "get")
});
Object.defineProperty(w, "ForOfStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forOfStatement;
}, "get")
});
Object.defineProperty(w, "ForStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forStatement;
}, "get")
});
Object.defineProperty(w, "FunctionDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionDeclaration;
}, "get")
});
Object.defineProperty(w, "FunctionExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionExpression;
}, "get")
});
Object.defineProperty(w, "FunctionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "FunctionTypeParam", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionTypeParam;
}, "get")
});
Object.defineProperty(w, "GenericTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.genericTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "Identifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.identifier;
}, "get")
});
Object.defineProperty(w, "IfStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.ifStatement;
}, "get")
});
Object.defineProperty(w, "Import", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.import;
}, "get")
});
Object.defineProperty(w, "ImportAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importAttribute;
}, "get")
});
Object.defineProperty(w, "ImportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importDeclaration;
}, "get")
});
Object.defineProperty(w, "ImportDefaultSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importDefaultSpecifier;
}, "get")
});
Object.defineProperty(w, "ImportExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importExpression;
}, "get")
});
Object.defineProperty(w, "ImportNamespaceSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importNamespaceSpecifier;
}, "get")
});
Object.defineProperty(w, "ImportSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importSpecifier;
}, "get")
});
Object.defineProperty(w, "IndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.indexedAccessType;
}, "get")
});
Object.defineProperty(w, "InferredPredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.inferredPredicate;
}, "get")
});
Object.defineProperty(w, "InterfaceDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceDeclaration;
}, "get")
});
Object.defineProperty(w, "InterfaceExtends", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceExtends;
}, "get")
});
Object.defineProperty(w, "InterfaceTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "InterpreterDirective", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interpreterDirective;
}, "get")
});
Object.defineProperty(w, "IntersectionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.intersectionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "JSXAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxAttribute;
}, "get")
});
Object.defineProperty(w, "JSXClosingElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxClosingElement;
}, "get")
});
Object.defineProperty(w, "JSXClosingFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxClosingFragment;
}, "get")
});
Object.defineProperty(w, "JSXElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxElement;
}, "get")
});
Object.defineProperty(w, "JSXEmptyExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxEmptyExpression;
}, "get")
});
Object.defineProperty(w, "JSXExpressionContainer", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxExpressionContainer;
}, "get")
});
Object.defineProperty(w, "JSXFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxFragment;
}, "get")
});
Object.defineProperty(w, "JSXIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxIdentifier;
}, "get")
});
Object.defineProperty(w, "JSXMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxMemberExpression;
}, "get")
});
Object.defineProperty(w, "JSXNamespacedName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxNamespacedName;
}, "get")
});
Object.defineProperty(w, "JSXOpeningElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxOpeningElement;
}, "get")
});
Object.defineProperty(w, "JSXOpeningFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxOpeningFragment;
}, "get")
});
Object.defineProperty(w, "JSXSpreadAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxSpreadAttribute;
}, "get")
});
Object.defineProperty(w, "JSXSpreadChild", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxSpreadChild;
}, "get")
});
Object.defineProperty(w, "JSXText", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxText;
}, "get")
});
Object.defineProperty(w, "LabeledStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.labeledStatement;
}, "get")
});
Object.defineProperty(w, "LogicalExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.logicalExpression;
}, "get")
});
Object.defineProperty(w, "MemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.memberExpression;
}, "get")
});
Object.defineProperty(w, "MetaProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.metaProperty;
}, "get")
});
Object.defineProperty(w, "MixedTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.mixedTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ModuleExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.moduleExpression;
}, "get")
});
Object.defineProperty(w, "NewExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.newExpression;
}, "get")
});
Object.defineProperty(w, "Noop", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.noop;
}, "get")
});
Object.defineProperty(w, "NullLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullLiteral;
}, "get")
});
Object.defineProperty(w, "NullLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NullableTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullableTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumberLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberLiteral;
}, "get")
});
Object.defineProperty(w, "NumberLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumberTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumericLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numericLiteral;
}, "get")
});
Object.defineProperty(w, "ObjectExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectExpression;
}, "get")
});
Object.defineProperty(w, "ObjectMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectMethod;
}, "get")
});
Object.defineProperty(w, "ObjectPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectPattern;
}, "get")
});
Object.defineProperty(w, "ObjectProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ObjectTypeCallProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeCallProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeIndexer", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeIndexer;
}, "get")
});
Object.defineProperty(w, "ObjectTypeInternalSlot", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeInternalSlot;
}, "get")
});
Object.defineProperty(w, "ObjectTypeProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeSpreadProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeSpreadProperty;
}, "get")
});
Object.defineProperty(w, "OpaqueType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.opaqueType;
}, "get")
});
Object.defineProperty(w, "OptionalCallExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalCallExpression;
}, "get")
});
Object.defineProperty(w, "OptionalIndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalIndexedAccessType;
}, "get")
});
Object.defineProperty(w, "OptionalMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalMemberExpression;
}, "get")
});
Object.defineProperty(w, "ParenthesizedExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.parenthesizedExpression;
}, "get")
});
Object.defineProperty(w, "PipelineBareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelineBareFunction;
}, "get")
});
Object.defineProperty(w, "PipelinePrimaryTopicReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelinePrimaryTopicReference;
}, "get")
});
Object.defineProperty(w, "PipelineTopicExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelineTopicExpression;
}, "get")
});
Object.defineProperty(w, "Placeholder", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.placeholder;
}, "get")
});
Object.defineProperty(w, "PrivateName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.privateName;
}, "get")
});
Object.defineProperty(w, "Program", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.program;
}, "get")
});
Object.defineProperty(w, "QualifiedTypeIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.qualifiedTypeIdentifier;
}, "get")
});
Object.defineProperty(w, "RecordExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.recordExpression;
}, "get")
});
Object.defineProperty(w, "RegExpLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.regExpLiteral;
}, "get")
});
Object.defineProperty(w, "RegexLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.regexLiteral;
}, "get")
});
Object.defineProperty(w, "RestElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.restElement;
}, "get")
});
Object.defineProperty(w, "RestProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.restProperty;
}, "get")
});
Object.defineProperty(w, "ReturnStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.returnStatement;
}, "get")
});
Object.defineProperty(w, "SequenceExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.sequenceExpression;
}, "get")
});
Object.defineProperty(w, "SpreadElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.spreadElement;
}, "get")
});
Object.defineProperty(w, "SpreadProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.spreadProperty;
}, "get")
});
Object.defineProperty(w, "StaticBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.staticBlock;
}, "get")
});
Object.defineProperty(w, "StringLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringLiteral;
}, "get")
});
Object.defineProperty(w, "StringLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "StringTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "Super", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.super;
}, "get")
});
Object.defineProperty(w, "SwitchCase", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.switchCase;
}, "get")
});
Object.defineProperty(w, "SwitchStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.switchStatement;
}, "get")
});
Object.defineProperty(w, "SymbolTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.symbolTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TSAnyKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsAnyKeyword;
}, "get")
});
Object.defineProperty(w, "TSArrayType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsArrayType;
}, "get")
});
Object.defineProperty(w, "TSAsExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsAsExpression;
}, "get")
});
Object.defineProperty(w, "TSBigIntKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsBigIntKeyword;
}, "get")
});
Object.defineProperty(w, "TSBooleanKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsBooleanKeyword;
}, "get")
});
Object.defineProperty(w, "TSCallSignatureDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsCallSignatureDeclaration;
}, "get")
});
Object.defineProperty(w, "TSConditionalType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConditionalType;
}, "get")
});
Object.defineProperty(w, "TSConstructSignatureDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConstructSignatureDeclaration;
}, "get")
});
Object.defineProperty(w, "TSConstructorType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConstructorType;
}, "get")
});
Object.defineProperty(w, "TSDeclareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsDeclareFunction;
}, "get")
});
Object.defineProperty(w, "TSDeclareMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsDeclareMethod;
}, "get")
});
Object.defineProperty(w, "TSEnumBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumBody;
}, "get")
});
Object.defineProperty(w, "TSEnumDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumDeclaration;
}, "get")
});
Object.defineProperty(w, "TSEnumMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumMember;
}, "get")
});
Object.defineProperty(w, "TSExportAssignment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExportAssignment;
}, "get")
});
Object.defineProperty(w, "TSExpressionWithTypeArguments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExpressionWithTypeArguments;
}, "get")
});
Object.defineProperty(w, "TSExternalModuleReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExternalModuleReference;
}, "get")
});
Object.defineProperty(w, "TSFunctionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsFunctionType;
}, "get")
});
Object.defineProperty(w, "TSImportEqualsDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsImportEqualsDeclaration;
}, "get")
});
Object.defineProperty(w, "TSImportType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsImportType;
}, "get")
});
Object.defineProperty(w, "TSIndexSignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIndexSignature;
}, "get")
});
Object.defineProperty(w, "TSIndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIndexedAccessType;
}, "get")
});
Object.defineProperty(w, "TSInferType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInferType;
}, "get")
});
Object.defineProperty(w, "TSInstantiationExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInstantiationExpression;
}, "get")
});
Object.defineProperty(w, "TSInterfaceBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInterfaceBody;
}, "get")
});
Object.defineProperty(w, "TSInterfaceDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInterfaceDeclaration;
}, "get")
});
Object.defineProperty(w, "TSIntersectionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIntersectionType;
}, "get")
});
Object.defineProperty(w, "TSIntrinsicKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIntrinsicKeyword;
}, "get")
});
Object.defineProperty(w, "TSLiteralType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsLiteralType;
}, "get")
});
Object.defineProperty(w, "TSMappedType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsMappedType;
}, "get")
});
Object.defineProperty(w, "TSMethodSignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsMethodSignature;
}, "get")
});
Object.defineProperty(w, "TSModuleBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsModuleBlock;
}, "get")
});
Object.defineProperty(w, "TSModuleDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsModuleDeclaration;
}, "get")
});
Object.defineProperty(w, "TSNamedTupleMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNamedTupleMember;
}, "get")
});
Object.defineProperty(w, "TSNamespaceExportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNamespaceExportDeclaration;
}, "get")
});
Object.defineProperty(w, "TSNeverKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNeverKeyword;
}, "get")
});
Object.defineProperty(w, "TSNonNullExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNonNullExpression;
}, "get")
});
Object.defineProperty(w, "TSNullKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNullKeyword;
}, "get")
});
Object.defineProperty(w, "TSNumberKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNumberKeyword;
}, "get")
});
Object.defineProperty(w, "TSObjectKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsObjectKeyword;
}, "get")
});
Object.defineProperty(w, "TSOptionalType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsOptionalType;
}, "get")
});
Object.defineProperty(w, "TSParameterProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsParameterProperty;
}, "get")
});
Object.defineProperty(w, "TSParenthesizedType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsParenthesizedType;
}, "get")
});
Object.defineProperty(w, "TSPropertySignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsPropertySignature;
}, "get")
});
Object.defineProperty(w, "TSQualifiedName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsQualifiedName;
}, "get")
});
Object.defineProperty(w, "TSRestType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsRestType;
}, "get")
});
Object.defineProperty(w, "TSSatisfiesExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsSatisfiesExpression;
}, "get")
});
Object.defineProperty(w, "TSStringKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsStringKeyword;
}, "get")
});
Object.defineProperty(w, "TSSymbolKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsSymbolKeyword;
}, "get")
});
Object.defineProperty(w, "TSTemplateLiteralType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTemplateLiteralType;
}, "get")
});
Object.defineProperty(w, "TSThisType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsThisType;
}, "get")
});
Object.defineProperty(w, "TSTupleType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTupleType;
}, "get")
});
Object.defineProperty(w, "TSTypeAliasDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAliasDeclaration;
}, "get")
});
Object.defineProperty(w, "TSTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TSTypeAssertion", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAssertion;
}, "get")
});
Object.defineProperty(w, "TSTypeLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeLiteral;
}, "get")
});
Object.defineProperty(w, "TSTypeOperator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeOperator;
}, "get")
});
Object.defineProperty(w, "TSTypeParameter", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameter;
}, "get")
});
Object.defineProperty(w, "TSTypeParameterDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameterDeclaration;
}, "get")
});
Object.defineProperty(w, "TSTypeParameterInstantiation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameterInstantiation;
}, "get")
});
Object.defineProperty(w, "TSTypePredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypePredicate;
}, "get")
});
Object.defineProperty(w, "TSTypeQuery", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeQuery;
}, "get")
});
Object.defineProperty(w, "TSTypeReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeReference;
}, "get")
});
Object.defineProperty(w, "TSUndefinedKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUndefinedKeyword;
}, "get")
});
Object.defineProperty(w, "TSUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUnionType;
}, "get")
});
Object.defineProperty(w, "TSUnknownKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUnknownKeyword;
}, "get")
});
Object.defineProperty(w, "TSVoidKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsVoidKeyword;
}, "get")
});
Object.defineProperty(w, "TaggedTemplateExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.taggedTemplateExpression;
}, "get")
});
Object.defineProperty(w, "TemplateElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.templateElement;
}, "get")
});
Object.defineProperty(w, "TemplateLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.templateLiteral;
}, "get")
});
Object.defineProperty(w, "ThisExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.thisExpression;
}, "get")
});
Object.defineProperty(w, "ThisTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.thisTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ThrowStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.throwStatement;
}, "get")
});
Object.defineProperty(w, "TopicReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.topicReference;
}, "get")
});
Object.defineProperty(w, "TryStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tryStatement;
}, "get")
});
Object.defineProperty(w, "TupleExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tupleExpression;
}, "get")
});
Object.defineProperty(w, "TupleTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tupleTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TypeAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeAlias;
}, "get")
});
Object.defineProperty(w, "TypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeAnnotation;
}, "get")
});
Object.defineProperty(w, "TypeCastExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeCastExpression;
}, "get")
});
Object.defineProperty(w, "TypeParameter", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameter;
}, "get")
});
Object.defineProperty(w, "TypeParameterDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameterDeclaration;
}, "get")
});
Object.defineProperty(w, "TypeParameterInstantiation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameterInstantiation;
}, "get")
});
Object.defineProperty(w, "TypeofTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeofTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "UnaryExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.unaryExpression;
}, "get")
});
Object.defineProperty(w, "UnionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.unionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "UpdateExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.updateExpression;
}, "get")
});
Object.defineProperty(w, "V8IntrinsicIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.v8IntrinsicIdentifier;
}, "get")
});
Object.defineProperty(w, "VariableDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variableDeclaration;
}, "get")
});
Object.defineProperty(w, "VariableDeclarator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variableDeclarator;
}, "get")
});
Object.defineProperty(w, "Variance", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variance;
}, "get")
});
Object.defineProperty(w, "VoidTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.voidTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "WhileStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.whileStatement;
}, "get")
});
Object.defineProperty(w, "WithStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.withStatement;
}, "get")
});
Object.defineProperty(w, "YieldExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.yieldExpression;
}, "get")
});
var I = vf();
});
// ../node_modules/@babel/types/lib/builders/generated/index.js
var dr = P((Qn) => {
"use strict";
Object.defineProperty(Qn, "__esModule", {
value: !0
});
var Pf = vf();
Object.keys(Pf).forEach(function(e) {
e === "default" || e === "__esModule" || e in Qn && Qn[e] === Pf[e] || Object.defineProperty(Qn, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Pf[e];
}, "get")
});
});
var Af = EE();
Object.keys(Af).forEach(function(e) {
e === "default" || e === "__esModule" || e in Qn && Qn[e] === Af[e] || Object.defineProperty(Qn, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Af[e];
}, "get")
});
});
});
// ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js
var TE = P((Cf) => {
"use strict";
Object.defineProperty(Cf, "__esModule", {
value: !0
});
Cf.default = r5;
var e5 = dr(), t5 = Ce();
function r5(e, t) {
let r = e.value.split(/\r\n|\n|\r/), n = 0;
for (let a = 0; a < r.length; a++)
/[^ \t]/.exec(r[a]) && (n = a);
let s = "";
for (let a = 0; a < r.length; a++) {
let o = r[a], l = a === 0, u = a === r.length - 1, c = a === n, p = o.replace(/\t/g, " ");
l || (p = p.replace(/^ +/, "")), u || (p = p.replace(/ +$/, "")), p && (c || (p += " "), s += p);
}
s && t.push((0, t5.inherits)((0, e5.stringLiteral)(s), e));
}
i(r5, "cleanJSXElementLiteralChild");
});
// ../node_modules/@babel/types/lib/builders/react/buildChildren.js
var SE = P((wf) => {
"use strict";
Object.defineProperty(wf, "__esModule", {
value: !0
});
wf.default = s5;
var Df = Tt(), n5 = TE();
function s5(e) {
let t = [];
for (let r = 0; r < e.children.length; r++) {
let n = e.children[r];
if ((0, Df.isJSXText)(n)) {
(0, n5.default)(n, t);
continue;
}
(0, Df.isJSXExpressionContainer)(n) && (n = n.expression), !(0, Df.isJSXEmptyExpression)(n) && t.push(n);
}
return t;
}
i(s5, "buildChildren");
});
// ../node_modules/@babel/types/lib/validators/isNode.js
var _f = P((If) => {
"use strict";
Object.defineProperty(If, "__esModule", {
value: !0
});
If.default = a5;
var i5 = wr();
function a5(e) {
return !!(e && i5.VISITOR_KEYS[e.type]);
}
i(a5, "isNode");
});
// ../node_modules/@babel/types/lib/asserts/assertNode.js
var xE = P((Of) => {
"use strict";
Object.defineProperty(Of, "__esModule", {
value: !0
});
Of.default = l5;
var o5 = _f();
function l5(e) {
if (!(0, o5.default)(e)) {
var t;
let r = (t = e?.type) != null ? t : JSON.stringify(e);
throw new TypeError(`Not a valid node of type "${r}"`);
}
}
i(l5, "assertNode");
});
// ../node_modules/@babel/types/lib/asserts/generated/index.js
var vE = P((S) => {
"use strict";
Object.defineProperty(S, "__esModule", {
value: !0
});
S.assertAccessor = CU;
S.assertAnyTypeAnnotation = K7;
S.assertArgumentPlaceholder = T9;
S.assertArrayExpression = c5;
S.assertArrayPattern = l7;
S.assertArrayTypeAnnotation = G7;
S.assertArrowFunctionExpression = u7;
S.assertAssignmentExpression = p5;
S.assertAssignmentPattern = o7;
S.assertAwaitExpression = N7;
S.assertBigIntLiteral = k7;
S.assertBinary = Yq;
S.assertBinaryExpression = f5;
S.assertBindExpression = S9;
S.assertBlock = zq;
S.assertBlockParent = Xq;
S.assertBlockStatement = y5;
S.assertBooleanLiteral = L5;
S.assertBooleanLiteralTypeAnnotation = Y7;
S.assertBooleanTypeAnnotation = H7;
S.assertBreakStatement = g5;
S.assertCallExpression = b5;
S.assertCatchClause = E5;
S.assertClass = xU;
S.assertClassAccessorProperty = R7;
S.assertClassBody = c7;
S.assertClassDeclaration = f7;
S.assertClassExpression = p7;
S.assertClassImplements = X7;
S.assertClassMethod = P7;
S.assertClassPrivateMethod = U7;
S.assertClassPrivateProperty = q7;
S.assertClassProperty = M7;
S.assertCompletionStatement = eU;
S.assertConditional = tU;
S.assertConditionalExpression = T5;
S.assertContinueStatement = S5;
S.assertDebuggerStatement = x5;
S.assertDecimalLiteral = D9;
S.assertDeclaration = cU;
S.assertDeclareClass = z7;
S.assertDeclareExportAllDeclaration = aR;
S.assertDeclareExportDeclaration = iR;
S.assertDeclareFunction = Q7;
S.assertDeclareInterface = Z7;
S.assertDeclareModule = eR;
S.assertDeclareModuleExports = tR;
S.assertDeclareOpaqueType = nR;
S.assertDeclareTypeAlias = rR;
S.assertDeclareVariable = sR;
S.assertDeclaredPredicate = oR;
S.assertDecorator = x9;
S.assertDirective = h5;
S.assertDirectiveLiteral = m5;
S.assertDoExpression = v9;
S.assertDoWhileStatement = v5;
S.assertEmptyStatement = P5;
S.assertEmptyTypeAnnotation = bR;
S.assertEnumBody = BU;
S.assertEnumBooleanBody = GR;
S.assertEnumBooleanMember = XR;
S.assertEnumDeclaration = KR;
S.assertEnumDefaultedMember = ZR;
S.assertEnumMember = kU;
S.assertEnumNumberBody = HR;
S.assertEnumNumberMember = zR;
S.assertEnumStringBody = YR;
S.assertEnumStringMember = QR;
S.assertEnumSymbolBody = JR;
S.assertExistsTypeAnnotation = lR;
S.assertExportAllDeclaration = d7;
S.assertExportDeclaration = PU;
S.assertExportDefaultDeclaration = h7;
S.assertExportDefaultSpecifier = P9;
S.assertExportNamedDeclaration = m7;
S.assertExportNamespaceSpecifier = F7;
S.assertExportSpecifier = y7;
S.assertExpression = Hq;
S.assertExpressionStatement = A5;
S.assertExpressionWrapper = sU;
S.assertFile = C5;
S.assertFlow = wU;
S.assertFlowBaseAnnotation = _U;
S.assertFlowDeclaration = OU;
S.assertFlowPredicate = NU;
S.assertFlowType = IU;
S.assertFor = iU;
S.assertForInStatement = D5;
S.assertForOfStatement = g7;
S.assertForStatement = w5;
S.assertForXStatement = aU;
S.assertFunction = oU;
S.assertFunctionDeclaration = I5;
S.assertFunctionExpression = _5;
S.assertFunctionParent = lU;
S.assertFunctionTypeAnnotation = uR;
S.assertFunctionTypeParam = cR;
S.assertGenericTypeAnnotation = pR;
S.assertIdentifier = O5;
S.assertIfStatement = N5;
S.assertImmutable = mU;
S.assertImport = B7;
S.assertImportAttribute = W7;
S.assertImportDeclaration = b7;
S.assertImportDefaultSpecifier = E7;
S.assertImportExpression = x7;
S.assertImportNamespaceSpecifier = T7;
S.assertImportOrExportDeclaration = vU;
S.assertImportSpecifier = S7;
S.assertIndexedAccessType = e9;
S.assertInferredPredicate = fR;
S.assertInterfaceDeclaration = hR;
S.assertInterfaceExtends = dR;
S.assertInterfaceTypeAnnotation = mR;
S.assertInterpreterDirective = d5;
S.assertIntersectionTypeAnnotation = yR;
S.assertJSX = FU;
S.assertJSXAttribute = r9;
S.assertJSXClosingElement = n9;
S.assertJSXClosingFragment = y9;
S.assertJSXElement = s9;
S.assertJSXEmptyExpression = i9;
S.assertJSXExpressionContainer = a9;
S.assertJSXFragment = h9;
S.assertJSXIdentifier = l9;
S.assertJSXMemberExpression = u9;
S.assertJSXNamespacedName = c9;
S.assertJSXOpeningElement = p9;
S.assertJSXOpeningFragment = m9;
S.assertJSXSpreadAttribute = f9;
S.assertJSXSpreadChild = o9;
S.assertJSXText = d9;
S.assertLVal = fU;
S.assertLabeledStatement = B5;
S.assertLiteral = hU;
S.assertLogicalExpression = R5;
S.assertLoop = rU;
S.assertMemberExpression = q5;
S.assertMetaProperty = v7;
S.assertMethod = gU;
S.assertMiscellaneous = jU;
S.assertMixedTypeAnnotation = gR;
S.assertModuleDeclaration = KU;
S.assertModuleExpression = w9;
S.assertModuleSpecifier = AU;
S.assertNewExpression = U5;
S.assertNoop = g9;
S.assertNullLiteral = j5;
S.assertNullLiteralTypeAnnotation = J7;
S.assertNullableTypeAnnotation = ER;
S.assertNumberLiteral = UU;
S.assertNumberLiteralTypeAnnotation = TR;
S.assertNumberTypeAnnotation = SR;
S.assertNumericLiteral = F5;
S.assertObjectExpression = $5;
S.assertObjectMember = bU;
S.assertObjectMethod = W5;
S.assertObjectPattern = A7;
S.assertObjectProperty = K5;
S.assertObjectTypeAnnotation = xR;
S.assertObjectTypeCallProperty = PR;
S.assertObjectTypeIndexer = AR;
S.assertObjectTypeInternalSlot = vR;
S.assertObjectTypeProperty = CR;
S.assertObjectTypeSpreadProperty = DR;
S.assertOpaqueType = wR;
S.assertOptionalCallExpression = L7;
S.assertOptionalIndexedAccessType = t9;
S.assertOptionalMemberExpression = j7;
S.assertParenthesizedExpression = J5;
S.assertPattern = SU;
S.assertPatternLike = pU;
S.assertPipelineBareFunction = O9;
S.assertPipelinePrimaryTopicReference = N9;
S.assertPipelineTopicExpression = _9;
S.assertPlaceholder = b9;
S.assertPrivate = DU;
S.assertPrivateName = V7;
S.assertProgram = V5;
S.assertProperty = EU;
S.assertPureish = uU;
S.assertQualifiedTypeIdentifier = IR;
S.assertRecordExpression = A9;
S.assertRegExpLiteral = M5;
S.assertRegexLiteral = VU;
S.assertRestElement = G5;
S.assertRestProperty = $U;
S.assertReturnStatement = H5;
S.assertScopable = Jq;
S.assertSequenceExpression = Y5;
S.assertSpreadElement = C7;
S.assertSpreadProperty = WU;
S.assertStandardized = Gq;
S.assertStatement = Qq;
S.assertStaticBlock = $7;
S.assertStringLiteral = k5;
S.assertStringLiteralTypeAnnotation = _R;
S.assertStringTypeAnnotation = OR;
S.assertSuper = D7;
S.assertSwitchCase = X5;
S.assertSwitchStatement = z5;
S.assertSymbolTypeAnnotation = NR;
S.assertTSAnyKeyword = V9;
S.assertTSArrayType = lq;
S.assertTSAsExpression = wq;
S.assertTSBaseType = qU;
S.assertTSBigIntKeyword = W9;
S.assertTSBooleanKeyword = $9;
S.assertTSCallSignatureDeclaration = L9;
S.assertTSConditionalType = mq;
S.assertTSConstructSignatureDeclaration = M9;
S.assertTSConstructorType = nq;
S.assertTSDeclareFunction = k9;
S.assertTSDeclareMethod = F9;
S.assertTSEntityName = dU;
S.assertTSEnumBody = Oq;
S.assertTSEnumDeclaration = Nq;
S.assertTSEnumMember = Bq;
S.assertTSExportAssignment = qq;
S.assertTSExpressionWithTypeArguments = vq;
S.assertTSExternalModuleReference = Mq;
S.assertTSFunctionType = rq;
S.assertTSImportEqualsDeclaration = Lq;
S.assertTSImportType = jq;
S.assertTSIndexSignature = U9;
S.assertTSIndexedAccessType = Eq;
S.assertTSInferType = yq;
S.assertTSInstantiationExpression = Dq;
S.assertTSInterfaceBody = Aq;
S.assertTSInterfaceDeclaration = Pq;
S.assertTSIntersectionType = hq;
S.assertTSIntrinsicKeyword = K9;
S.assertTSLiteralType = xq;
S.assertTSMappedType = Tq;
S.assertTSMethodSignature = q9;
S.assertTSModuleBlock = Fq;
S.assertTSModuleDeclaration = kq;
S.assertTSNamedTupleMember = fq;
S.assertTSNamespaceExportDeclaration = Uq;
S.assertTSNeverKeyword = G9;
S.assertTSNonNullExpression = Rq;
S.assertTSNullKeyword = H9;
S.assertTSNumberKeyword = Y9;
S.assertTSObjectKeyword = J9;
S.assertTSOptionalType = cq;
S.assertTSParameterProperty = B9;
S.assertTSParenthesizedType = gq;
S.assertTSPropertySignature = R9;
S.assertTSQualifiedName = j9;
S.assertTSRestType = pq;
S.assertTSSatisfiesExpression = Iq;
S.assertTSStringKeyword = X9;
S.assertTSSymbolKeyword = z9;
S.assertTSTemplateLiteralType = Sq;
S.assertTSThisType = tq;
S.assertTSTupleType = uq;
S.assertTSType = RU;
S.assertTSTypeAliasDeclaration = Cq;
S.assertTSTypeAnnotation = Vq;
S.assertTSTypeAssertion = _q;
S.assertTSTypeElement = MU;
S.assertTSTypeLiteral = oq;
S.assertTSTypeOperator = bq;
S.assertTSTypeParameter = Kq;
S.assertTSTypeParameterDeclaration = Wq;
S.assertTSTypeParameterInstantiation = $q;
S.assertTSTypePredicate = iq;
S.assertTSTypeQuery = aq;
S.assertTSTypeReference = sq;
S.assertTSUndefinedKeyword = Q9;
S.assertTSUnionType = dq;
S.assertTSUnknownKeyword = Z9;
S.assertTSVoidKeyword = eq;
S.assertTaggedTemplateExpression = w7;
S.assertTemplateElement = I7;
S.assertTemplateLiteral = _7;
S.assertTerminatorless = Zq;
S.assertThisExpression = Q5;
S.assertThisTypeAnnotation = BR;
S.assertThrowStatement = Z5;
S.assertTopicReference = I9;
S.assertTryStatement = e7;
S.assertTupleExpression = C9;
S.assertTupleTypeAnnotation = kR;
S.assertTypeAlias = jR;
S.assertTypeAnnotation = LR;
S.assertTypeCastExpression = MR;
S.assertTypeParameter = RR;
S.assertTypeParameterDeclaration = qR;
S.assertTypeParameterInstantiation = UR;
S.assertTypeScript = LU;
S.assertTypeofTypeAnnotation = FR;
S.assertUnaryExpression = t7;
S.assertUnaryLike = TU;
S.assertUnionTypeAnnotation = VR;
S.assertUpdateExpression = r7;
S.assertUserWhitespacable = yU;
S.assertV8IntrinsicIdentifier = E9;
S.assertVariableDeclaration = n7;
S.assertVariableDeclarator = s7;
S.assertVariance = $R;
S.assertVoidTypeAnnotation = WR;
S.assertWhile = nU;
S.assertWhileStatement = i7;
S.assertWithStatement = a7;
S.assertYieldExpression = O7;
var u5 = bi(), Ba = va();
function x(e, t, r) {
if (!(0, u5.default)(e, t, r))
throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`);
}
i(x, "assert");
function c5(e, t) {
x("ArrayExpression", e, t);
}
i(c5, "assertArrayExpression");
function p5(e, t) {
x("AssignmentExpression", e, t);
}
i(p5, "assertAssignmentExpression");
function f5(e, t) {
x("BinaryExpression", e, t);
}
i(f5, "assertBinaryExpression");
function d5(e, t) {
x("InterpreterDirective", e, t);
}
i(d5, "assertInterpreterDirective");
function h5(e, t) {
x("Directive", e, t);
}
i(h5, "assertDirective");
function m5(e, t) {
x("DirectiveLiteral", e, t);
}
i(m5, "assertDirectiveLiteral");
function y5(e, t) {
x("BlockStatement", e, t);
}
i(y5, "assertBlockStatement");
function g5(e, t) {
x("BreakStatement", e, t);
}
i(g5, "assertBreakStatement");
function b5(e, t) {
x("CallExpression", e, t);
}
i(b5, "assertCallExpression");
function E5(e, t) {
x("CatchClause", e, t);
}
i(E5, "assertCatchClause");
function T5(e, t) {
x("ConditionalExpression", e, t);
}
i(T5, "assertConditionalExpression");
function S5(e, t) {
x("ContinueStatement", e, t);
}
i(S5, "assertContinueStatement");
function x5(e, t) {
x("DebuggerStatement", e, t);
}
i(x5, "assertDebuggerStatement");
function v5(e, t) {
x("DoWhileStatement", e, t);
}
i(v5, "assertDoWhileStatement");
function P5(e, t) {
x("EmptyStatement", e, t);
}
i(P5, "assertEmptyStatement");
function A5(e, t) {
x("ExpressionStatement", e, t);
}
i(A5, "assertExpressionStatement");
function C5(e, t) {
x("File", e, t);
}
i(C5, "assertFile");
function D5(e, t) {
x("ForInStatement", e, t);
}
i(D5, "assertForInStatement");
function w5(e, t) {
x("ForStatement", e, t);
}
i(w5, "assertForStatement");
function I5(e, t) {
x("FunctionDeclaration", e, t);
}
i(I5, "assertFunctionDeclaration");
function _5(e, t) {
x("FunctionExpression", e, t);
}
i(_5, "assertFunctionExpression");
function O5(e, t) {
x("Identifier", e, t);
}
i(O5, "assertIdentifier");
function N5(e, t) {
x("IfStatement", e, t);
}
i(N5, "assertIfStatement");
function B5(e, t) {
x("LabeledStatement", e, t);
}
i(B5, "assertLabeledStatement");
function k5(e, t) {
x("StringLiteral", e, t);
}
i(k5, "assertStringLiteral");
function F5(e, t) {
x("NumericLiteral", e, t);
}
i(F5, "assertNumericLiteral");
function j5(e, t) {
x("NullLiteral", e, t);
}
i(j5, "assertNullLiteral");
function L5(e, t) {
x("BooleanLiteral", e, t);
}
i(L5, "assertBooleanLiteral");
function M5(e, t) {
x("RegExpLiteral", e, t);
}
i(M5, "assertRegExpLiteral");
function R5(e, t) {
x("LogicalExpression", e, t);
}
i(R5, "assertLogicalExpression");
function q5(e, t) {
x("MemberExpression", e, t);
}
i(q5, "assertMemberExpression");
function U5(e, t) {
x("NewExpression", e, t);
}
i(U5, "assertNewExpression");
function V5(e, t) {
x("Program", e, t);
}
i(V5, "assertProgram");
function $5(e, t) {
x("ObjectExpression", e, t);
}
i($5, "assertObjectExpression");
function W5(e, t) {
x("ObjectMethod", e, t);
}
i(W5, "assertObjectMethod");
function K5(e, t) {
x("ObjectProperty", e, t);
}
i(K5, "assertObjectProperty");
function G5(e, t) {
x("RestElement", e, t);
}
i(G5, "assertRestElement");
function H5(e, t) {
x("ReturnStatement", e, t);
}
i(H5, "assertReturnStatement");
function Y5(e, t) {
x("SequenceExpression", e, t);
}
i(Y5, "assertSequenceExpression");
function J5(e, t) {
x("ParenthesizedExpression", e, t);
}
i(J5, "assertParenthesizedExpression");
function X5(e, t) {
x("SwitchCase", e, t);
}
i(X5, "assertSwitchCase");
function z5(e, t) {
x("SwitchStatement", e, t);
}
i(z5, "assertSwitchStatement");
function Q5(e, t) {
x("ThisExpression", e, t);
}
i(Q5, "assertThisExpression");
function Z5(e, t) {
x("ThrowStatement", e, t);
}
i(Z5, "assertThrowStatement");
function e7(e, t) {
x("TryStatement", e, t);
}
i(e7, "assertTryStatement");
function t7(e, t) {
x("UnaryExpression", e, t);
}
i(t7, "assertUnaryExpression");
function r7(e, t) {
x("UpdateExpression", e, t);
}
i(r7, "assertUpdateExpression");
function n7(e, t) {
x("VariableDeclaration", e, t);
}
i(n7, "assertVariableDeclaration");
function s7(e, t) {
x("VariableDeclarator", e, t);
}
i(s7, "assertVariableDeclarator");
function i7(e, t) {
x("WhileStatement", e, t);
}
i(i7, "assertWhileStatement");
function a7(e, t) {
x("WithStatement", e, t);
}
i(a7, "assertWithStatement");
function o7(e, t) {
x("AssignmentPattern", e, t);
}
i(o7, "assertAssignmentPattern");
function l7(e, t) {
x("ArrayPattern", e, t);
}
i(l7, "assertArrayPattern");
function u7(e, t) {
x("ArrowFunctionExpression", e, t);
}
i(u7, "assertArrowFunctionExpression");
function c7(e, t) {
x("ClassBody", e, t);
}
i(c7, "assertClassBody");
function p7(e, t) {
x("ClassExpression", e, t);
}
i(p7, "assertClassExpression");
function f7(e, t) {
x("ClassDeclaration", e, t);
}
i(f7, "assertClassDeclaration");
function d7(e, t) {
x("ExportAllDeclaration", e, t);
}
i(d7, "assertExportAllDeclaration");
function h7(e, t) {
x("ExportDefaultDeclaration", e, t);
}
i(h7, "assertExportDefaultDeclaration");
function m7(e, t) {
x("ExportNamedDeclaration", e, t);
}
i(m7, "assertExportNamedDeclaration");
function y7(e, t) {
x("ExportSpecifier", e, t);
}
i(y7, "assertExportSpecifier");
function g7(e, t) {
x("ForOfStatement", e, t);
}
i(g7, "assertForOfStatement");
function b7(e, t) {
x("ImportDeclaration", e, t);
}
i(b7, "assertImportDeclaration");
function E7(e, t) {
x("ImportDefaultSpecifier", e, t);
}
i(E7, "assertImportDefaultSpecifier");
function T7(e, t) {
x("ImportNamespaceSpecifier", e, t);
}
i(T7, "assertImportNamespaceSpecifier");
function S7(e, t) {
x("ImportSpecifier", e, t);
}
i(S7, "assertImportSpecifier");
function x7(e, t) {
x("ImportExpression", e, t);
}
i(x7, "assertImportExpression");
function v7(e, t) {
x("MetaProperty", e, t);
}
i(v7, "assertMetaProperty");
function P7(e, t) {
x("ClassMethod", e, t);
}
i(P7, "assertClassMethod");
function A7(e, t) {
x("ObjectPattern", e, t);
}
i(A7, "assertObjectPattern");
function C7(e, t) {
x("SpreadElement", e, t);
}
i(C7, "assertSpreadElement");
function D7(e, t) {
x("Super", e, t);
}
i(D7, "assertSuper");
function w7(e, t) {
x("TaggedTemplateExpression", e, t);
}
i(w7, "assertTaggedTemplateExpression");
function I7(e, t) {
x("TemplateElement", e, t);
}
i(I7, "assertTemplateElement");
function _7(e, t) {
x("TemplateLiteral", e, t);
}
i(_7, "assertTemplateLiteral");
function O7(e, t) {
x("YieldExpression", e, t);
}
i(O7, "assertYieldExpression");
function N7(e, t) {
x("AwaitExpression", e, t);
}
i(N7, "assertAwaitExpression");
function B7(e, t) {
x("Import", e, t);
}
i(B7, "assertImport");
function k7(e, t) {
x("BigIntLiteral", e, t);
}
i(k7, "assertBigIntLiteral");
function F7(e, t) {
x("ExportNamespaceSpecifier", e, t);
}
i(F7, "assertExportNamespaceSpecifier");
function j7(e, t) {
x("OptionalMemberExpression", e, t);
}
i(j7, "assertOptionalMemberExpression");
function L7(e, t) {
x("OptionalCallExpression", e, t);
}
i(L7, "assertOptionalCallExpression");
function M7(e, t) {
x("ClassProperty", e, t);
}
i(M7, "assertClassProperty");
function R7(e, t) {
x("ClassAccessorProperty", e, t);
}
i(R7, "assertClassAccessorProperty");
function q7(e, t) {
x("ClassPrivateProperty", e, t);
}
i(q7, "assertClassPrivateProperty");
function U7(e, t) {
x("ClassPrivateMethod", e, t);
}
i(U7, "assertClassPrivateMethod");
function V7(e, t) {
x("PrivateName", e, t);
}
i(V7, "assertPrivateName");
function $7(e, t) {
x("StaticBlock", e, t);
}
i($7, "assertStaticBlock");
function W7(e, t) {
x("ImportAttribute", e, t);
}
i(W7, "assertImportAttribute");
function K7(e, t) {
x("AnyTypeAnnotation", e, t);
}
i(K7, "assertAnyTypeAnnotation");
function G7(e, t) {
x("ArrayTypeAnnotation", e, t);
}
i(G7, "assertArrayTypeAnnotation");
function H7(e, t) {
x("BooleanTypeAnnotation", e, t);
}
i(H7, "assertBooleanTypeAnnotation");
function Y7(e, t) {
x("BooleanLiteralTypeAnnotation", e, t);
}
i(Y7, "assertBooleanLiteralTypeAnnotation");
function J7(e, t) {
x("NullLiteralTypeAnnotation", e, t);
}
i(J7, "assertNullLiteralTypeAnnotation");
function X7(e, t) {
x("ClassImplements", e, t);
}
i(X7, "assertClassImplements");
function z7(e, t) {
x("DeclareClass", e, t);
}
i(z7, "assertDeclareClass");
function Q7(e, t) {
x("DeclareFunction", e, t);
}
i(Q7, "assertDeclareFunction");
function Z7(e, t) {
x("DeclareInterface", e, t);
}
i(Z7, "assertDeclareInterface");
function eR(e, t) {
x("DeclareModule", e, t);
}
i(eR, "assertDeclareModule");
function tR(e, t) {
x("DeclareModuleExports", e, t);
}
i(tR, "assertDeclareModuleExports");
function rR(e, t) {
x("DeclareTypeAlias", e, t);
}
i(rR, "assertDeclareTypeAlias");
function nR(e, t) {
x("DeclareOpaqueType", e, t);
}
i(nR, "assertDeclareOpaqueType");
function sR(e, t) {
x("DeclareVariable", e, t);
}
i(sR, "assertDeclareVariable");
function iR(e, t) {
x("DeclareExportDeclaration", e, t);
}
i(iR, "assertDeclareExportDeclaration");
function aR(e, t) {
x("DeclareExportAllDeclaration", e, t);
}
i(aR, "assertDeclareExportAllDeclaration");
function oR(e, t) {
x("DeclaredPredicate", e, t);
}
i(oR, "assertDeclaredPredicate");
function lR(e, t) {
x("ExistsTypeAnnotation", e, t);
}
i(lR, "assertExistsTypeAnnotation");
function uR(e, t) {
x("FunctionTypeAnnotation", e, t);
}
i(uR, "assertFunctionTypeAnnotation");
function cR(e, t) {
x("FunctionTypeParam", e, t);
}
i(cR, "assertFunctionTypeParam");
function pR(e, t) {
x("GenericTypeAnnotation", e, t);
}
i(pR, "assertGenericTypeAnnotation");
function fR(e, t) {
x("InferredPredicate", e, t);
}
i(fR, "assertInferredPredicate");
function dR(e, t) {
x("InterfaceExtends", e, t);
}
i(dR, "assertInterfaceExtends");
function hR(e, t) {
x("InterfaceDeclaration", e, t);
}
i(hR, "assertInterfaceDeclaration");
function mR(e, t) {
x("InterfaceTypeAnnotation", e, t);
}
i(mR, "assertInterfaceTypeAnnotation");
function yR(e, t) {
x("IntersectionTypeAnnotation", e, t);
}
i(yR, "assertIntersectionTypeAnnotation");
function gR(e, t) {
x("MixedTypeAnnotation", e, t);
}
i(gR, "assertMixedTypeAnnotation");
function bR(e, t) {
x("EmptyTypeAnnotation", e, t);
}
i(bR, "assertEmptyTypeAnnotation");
function ER(e, t) {
x("NullableTypeAnnotation", e, t);
}
i(ER, "assertNullableTypeAnnotation");
function TR(e, t) {
x("NumberLiteralTypeAnnotation", e, t);
}
i(TR, "assertNumberLiteralTypeAnnotation");
function SR(e, t) {
x("NumberTypeAnnotation", e, t);
}
i(SR, "assertNumberTypeAnnotation");
function xR(e, t) {
x("ObjectTypeAnnotation", e, t);
}
i(xR, "assertObjectTypeAnnotation");
function vR(e, t) {
x("ObjectTypeInternalSlot", e, t);
}
i(vR, "assertObjectTypeInternalSlot");
function PR(e, t) {
x("ObjectTypeCallProperty", e, t);
}
i(PR, "assertObjectTypeCallProperty");
function AR(e, t) {
x("ObjectTypeIndexer", e, t);
}
i(AR, "assertObjectTypeIndexer");
function CR(e, t) {
x("ObjectTypeProperty", e, t);
}
i(CR, "assertObjectTypeProperty");
function DR(e, t) {
x("ObjectTypeSpreadProperty", e, t);
}
i(DR, "assertObjectTypeSpreadProperty");
function wR(e, t) {
x("OpaqueType", e, t);
}
i(wR, "assertOpaqueType");
function IR(e, t) {
x("QualifiedTypeIdentifier", e, t);
}
i(IR, "assertQualifiedTypeIdentifier");
function _R(e, t) {
x("StringLiteralTypeAnnotation", e, t);
}
i(_R, "assertStringLiteralTypeAnnotation");
function OR(e, t) {
x("StringTypeAnnotation", e, t);
}
i(OR, "assertStringTypeAnnotation");
function NR(e, t) {
x("SymbolTypeAnnotation", e, t);
}
i(NR, "assertSymbolTypeAnnotation");
function BR(e, t) {
x("ThisTypeAnnotation", e, t);
}
i(BR, "assertThisTypeAnnotation");
function kR(e, t) {
x("TupleTypeAnnotation", e, t);
}
i(kR, "assertTupleTypeAnnotation");
function FR(e, t) {
x("TypeofTypeAnnotation", e, t);
}
i(FR, "assertTypeofTypeAnnotation");
function jR(e, t) {
x("TypeAlias", e, t);
}
i(jR, "assertTypeAlias");
function LR(e, t) {
x("TypeAnnotation", e, t);
}
i(LR, "assertTypeAnnotation");
function MR(e, t) {
x("TypeCastExpression", e, t);
}
i(MR, "assertTypeCastExpression");
function RR(e, t) {
x("TypeParameter", e, t);
}
i(RR, "assertTypeParameter");
function qR(e, t) {
x("TypeParameterDeclaration", e, t);
}
i(qR, "assertTypeParameterDeclaration");
function UR(e, t) {
x("TypeParameterInstantiation", e, t);
}
i(UR, "assertTypeParameterInstantiation");
function VR(e, t) {
x("UnionTypeAnnotation", e, t);
}
i(VR, "assertUnionTypeAnnotation");
function $R(e, t) {
x("Variance", e, t);
}
i($R, "assertVariance");
function WR(e, t) {
x("VoidTypeAnnotation", e, t);
}
i(WR, "assertVoidTypeAnnotation");
function KR(e, t) {
x("EnumDeclaration", e, t);
}
i(KR, "assertEnumDeclaration");
function GR(e, t) {
x("EnumBooleanBody", e, t);
}
i(GR, "assertEnumBooleanBody");
function HR(e, t) {
x("EnumNumberBody", e, t);
}
i(HR, "assertEnumNumberBody");
function YR(e, t) {
x("EnumStringBody", e, t);
}
i(YR, "assertEnumStringBody");
function JR(e, t) {
x("EnumSymbolBody", e, t);
}
i(JR, "assertEnumSymbolBody");
function XR(e, t) {
x("EnumBooleanMember", e, t);
}
i(XR, "assertEnumBooleanMember");
function zR(e, t) {
x("EnumNumberMember", e, t);
}
i(zR, "assertEnumNumberMember");
function QR(e, t) {
x("EnumStringMember", e, t);
}
i(QR, "assertEnumStringMember");
function ZR(e, t) {
x("EnumDefaultedMember", e, t);
}
i(ZR, "assertEnumDefaultedMember");
function e9(e, t) {
x("IndexedAccessType", e, t);
}
i(e9, "assertIndexedAccessType");
function t9(e, t) {
x("OptionalIndexedAccessType", e, t);
}
i(t9, "assertOptionalIndexedAccessType");
function r9(e, t) {
x("JSXAttribute", e, t);
}
i(r9, "assertJSXAttribute");
function n9(e, t) {
x("JSXClosingElement", e, t);
}
i(n9, "assertJSXClosingElement");
function s9(e, t) {
x("JSXElement", e, t);
}
i(s9, "assertJSXElement");
function i9(e, t) {
x("JSXEmptyExpression", e, t);
}
i(i9, "assertJSXEmptyExpression");
function a9(e, t) {
x("JSXExpressionContainer", e, t);
}
i(a9, "assertJSXExpressionContainer");
function o9(e, t) {
x("JSXSpreadChild", e, t);
}
i(o9, "assertJSXSpreadChild");
function l9(e, t) {
x("JSXIdentifier", e, t);
}
i(l9, "assertJSXIdentifier");
function u9(e, t) {
x("JSXMemberExpression", e, t);
}
i(u9, "assertJSXMemberExpression");
function c9(e, t) {
x("JSXNamespacedName", e, t);
}
i(c9, "assertJSXNamespacedName");
function p9(e, t) {
x("JSXOpeningElement", e, t);
}
i(p9, "assertJSXOpeningElement");
function f9(e, t) {
x("JSXSpreadAttribute", e, t);
}
i(f9, "assertJSXSpreadAttribute");
function d9(e, t) {
x("JSXText", e, t);
}
i(d9, "assertJSXText");
function h9(e, t) {
x("JSXFragment", e, t);
}
i(h9, "assertJSXFragment");
function m9(e, t) {
x("JSXOpeningFragment", e, t);
}
i(m9, "assertJSXOpeningFragment");
function y9(e, t) {
x("JSXClosingFragment", e, t);
}
i(y9, "assertJSXClosingFragment");
function g9(e, t) {
x("Noop", e, t);
}
i(g9, "assertNoop");
function b9(e, t) {
x("Placeholder", e, t);
}
i(b9, "assertPlaceholder");
function E9(e, t) {
x("V8IntrinsicIdentifier", e, t);
}
i(E9, "assertV8IntrinsicIdentifier");
function T9(e, t) {
x("ArgumentPlaceholder", e, t);
}
i(T9, "assertArgumentPlaceholder");
function S9(e, t) {
x("BindExpression", e, t);
}
i(S9, "assertBindExpression");
function x9(e, t) {
x("Decorator", e, t);
}
i(x9, "assertDecorator");
function v9(e, t) {
x("DoExpression", e, t);
}
i(v9, "assertDoExpression");
function P9(e, t) {
x("ExportDefaultSpecifier", e, t);
}
i(P9, "assertExportDefaultSpecifier");
function A9(e, t) {
x("RecordExpression", e, t);
}
i(A9, "assertRecordExpression");
function C9(e, t) {
x("TupleExpression", e, t);
}
i(C9, "assertTupleExpression");
function D9(e, t) {
x("DecimalLiteral", e, t);
}
i(D9, "assertDecimalLiteral");
function w9(e, t) {
x("ModuleExpression", e, t);
}
i(w9, "assertModuleExpression");
function I9(e, t) {
x("TopicReference", e, t);
}
i(I9, "assertTopicReference");
function _9(e, t) {
x("PipelineTopicExpression", e, t);
}
i(_9, "assertPipelineTopicExpression");
function O9(e, t) {
x("PipelineBareFunction", e, t);
}
i(O9, "assertPipelineBareFunction");
function N9(e, t) {
x("PipelinePrimaryTopicReference", e, t);
}
i(N9, "assertPipelinePrimaryTopicReference");
function B9(e, t) {
x("TSParameterProperty", e, t);
}
i(B9, "assertTSParameterProperty");
function k9(e, t) {
x("TSDeclareFunction", e, t);
}
i(k9, "assertTSDeclareFunction");
function F9(e, t) {
x("TSDeclareMethod", e, t);
}
i(F9, "assertTSDeclareMethod");
function j9(e, t) {
x("TSQualifiedName", e, t);
}
i(j9, "assertTSQualifiedName");
function L9(e, t) {
x("TSCallSignatureDeclaration", e, t);
}
i(L9, "assertTSCallSignatureDeclaration");
function M9(e, t) {
x("TSConstructSignatureDeclaration", e, t);
}
i(M9, "assertTSConstructSignatureDeclaration");
function R9(e, t) {
x("TSPropertySignature", e, t);
}
i(R9, "assertTSPropertySignature");
function q9(e, t) {
x("TSMethodSignature", e, t);
}
i(q9, "assertTSMethodSignature");
function U9(e, t) {
x("TSIndexSignature", e, t);
}
i(U9, "assertTSIndexSignature");
function V9(e, t) {
x("TSAnyKeyword", e, t);
}
i(V9, "assertTSAnyKeyword");
function $9(e, t) {
x("TSBooleanKeyword", e, t);
}
i($9, "assertTSBooleanKeyword");
function W9(e, t) {
x("TSBigIntKeyword", e, t);
}
i(W9, "assertTSBigIntKeyword");
function K9(e, t) {
x("TSIntrinsicKeyword", e, t);
}
i(K9, "assertTSIntrinsicKeyword");
function G9(e, t) {
x("TSNeverKeyword", e, t);
}
i(G9, "assertTSNeverKeyword");
function H9(e, t) {
x("TSNullKeyword", e, t);
}
i(H9, "assertTSNullKeyword");
function Y9(e, t) {
x("TSNumberKeyword", e, t);
}
i(Y9, "assertTSNumberKeyword");
function J9(e, t) {
x("TSObjectKeyword", e, t);
}
i(J9, "assertTSObjectKeyword");
function X9(e, t) {
x("TSStringKeyword", e, t);
}
i(X9, "assertTSStringKeyword");
function z9(e, t) {
x("TSSymbolKeyword", e, t);
}
i(z9, "assertTSSymbolKeyword");
function Q9(e, t) {
x("TSUndefinedKeyword", e, t);
}
i(Q9, "assertTSUndefinedKeyword");
function Z9(e, t) {
x("TSUnknownKeyword", e, t);
}
i(Z9, "assertTSUnknownKeyword");
function eq(e, t) {
x("TSVoidKeyword", e, t);
}
i(eq, "assertTSVoidKeyword");
function tq(e, t) {
x("TSThisType", e, t);
}
i(tq, "assertTSThisType");
function rq(e, t) {
x("TSFunctionType", e, t);
}
i(rq, "assertTSFunctionType");
function nq(e, t) {
x("TSConstructorType", e, t);
}
i(nq, "assertTSConstructorType");
function sq(e, t) {
x("TSTypeReference", e, t);
}
i(sq, "assertTSTypeReference");
function iq(e, t) {
x("TSTypePredicate", e, t);
}
i(iq, "assertTSTypePredicate");
function aq(e, t) {
x("TSTypeQuery", e, t);
}
i(aq, "assertTSTypeQuery");
function oq(e, t) {
x("TSTypeLiteral", e, t);
}
i(oq, "assertTSTypeLiteral");
function lq(e, t) {
x("TSArrayType", e, t);
}
i(lq, "assertTSArrayType");
function uq(e, t) {
x("TSTupleType", e, t);
}
i(uq, "assertTSTupleType");
function cq(e, t) {
x("TSOptionalType", e, t);
}
i(cq, "assertTSOptionalType");
function pq(e, t) {
x("TSRestType", e, t);
}
i(pq, "assertTSRestType");
function fq(e, t) {
x("TSNamedTupleMember", e, t);
}
i(fq, "assertTSNamedTupleMember");
function dq(e, t) {
x("TSUnionType", e, t);
}
i(dq, "assertTSUnionType");
function hq(e, t) {
x("TSIntersectionType", e, t);
}
i(hq, "assertTSIntersectionType");
function mq(e, t) {
x("TSConditionalType", e, t);
}
i(mq, "assertTSConditionalType");
function yq(e, t) {
x("TSInferType", e, t);
}
i(yq, "assertTSInferType");
function gq(e, t) {
x("TSParenthesizedType", e, t);
}
i(gq, "assertTSParenthesizedType");
function bq(e, t) {
x("TSTypeOperator", e, t);
}
i(bq, "assertTSTypeOperator");
function Eq(e, t) {
x("TSIndexedAccessType", e, t);
}
i(Eq, "assertTSIndexedAccessType");
function Tq(e, t) {
x("TSMappedType", e, t);
}
i(Tq, "assertTSMappedType");
function Sq(e, t) {
x("TSTemplateLiteralType", e, t);
}
i(Sq, "assertTSTemplateLiteralType");
function xq(e, t) {
x("TSLiteralType", e, t);
}
i(xq, "assertTSLiteralType");
function vq(e, t) {
x("TSExpressionWithTypeArguments", e, t);
}
i(vq, "assertTSExpressionWithTypeArguments");
function Pq(e, t) {
x("TSInterfaceDeclaration", e, t);
}
i(Pq, "assertTSInterfaceDeclaration");
function Aq(e, t) {
x("TSInterfaceBody", e, t);
}
i(Aq, "assertTSInterfaceBody");
function Cq(e, t) {
x("TSTypeAliasDeclaration", e, t);
}
i(Cq, "assertTSTypeAliasDeclaration");
function Dq(e, t) {
x("TSInstantiationExpression", e, t);
}
i(Dq, "assertTSInstantiationExpression");
function wq(e, t) {
x("TSAsExpression", e, t);
}
i(wq, "assertTSAsExpression");
function Iq(e, t) {
x("TSSatisfiesExpression", e, t);
}
i(Iq, "assertTSSatisfiesExpression");
function _q(e, t) {
x("TSTypeAssertion", e, t);
}
i(_q, "assertTSTypeAssertion");
function Oq(e, t) {
x("TSEnumBody", e, t);
}
i(Oq, "assertTSEnumBody");
function Nq(e, t) {
x("TSEnumDeclaration", e, t);
}
i(Nq, "assertTSEnumDeclaration");
function Bq(e, t) {
x("TSEnumMember", e, t);
}
i(Bq, "assertTSEnumMember");
function kq(e, t) {
x("TSModuleDeclaration", e, t);
}
i(kq, "assertTSModuleDeclaration");
function Fq(e, t) {
x("TSModuleBlock", e, t);
}
i(Fq, "assertTSModuleBlock");
function jq(e, t) {
x("TSImportType", e, t);
}
i(jq, "assertTSImportType");
function Lq(e, t) {
x("TSImportEqualsDeclaration", e, t);
}
i(Lq, "assertTSImportEqualsDeclaration");
function Mq(e, t) {
x("TSExternalModuleReference", e, t);
}
i(Mq, "assertTSExternalModuleReference");
function Rq(e, t) {
x("TSNonNullExpression", e, t);
}
i(Rq, "assertTSNonNullExpression");
function qq(e, t) {
x("TSExportAssignment", e, t);
}
i(qq, "assertTSExportAssignment");
function Uq(e, t) {
x("TSNamespaceExportDeclaration", e, t);
}
i(Uq, "assertTSNamespaceExportDeclaration");
function Vq(e, t) {
x("TSTypeAnnotation", e, t);
}
i(Vq, "assertTSTypeAnnotation");
function $q(e, t) {
x("TSTypeParameterInstantiation", e, t);
}
i($q, "assertTSTypeParameterInstantiation");
function Wq(e, t) {
x("TSTypeParameterDeclaration", e, t);
}
i(Wq, "assertTSTypeParameterDeclaration");
function Kq(e, t) {
x("TSTypeParameter", e, t);
}
i(Kq, "assertTSTypeParameter");
function Gq(e, t) {
x("Standardized", e, t);
}
i(Gq, "assertStandardized");
function Hq(e, t) {
x("Expression", e, t);
}
i(Hq, "assertExpression");
function Yq(e, t) {
x("Binary", e, t);
}
i(Yq, "assertBinary");
function Jq(e, t) {
x("Scopable", e, t);
}
i(Jq, "assertScopable");
function Xq(e, t) {
x("BlockParent", e, t);
}
i(Xq, "assertBlockParent");
function zq(e, t) {
x("Block", e, t);
}
i(zq, "assertBlock");
function Qq(e, t) {
x("Statement", e, t);
}
i(Qq, "assertStatement");
function Zq(e, t) {
x("Terminatorless", e, t);
}
i(Zq, "assertTerminatorless");
function eU(e, t) {
x("CompletionStatement", e, t);
}
i(eU, "assertCompletionStatement");
function tU(e, t) {
x("Conditional", e, t);
}
i(tU, "assertConditional");
function rU(e, t) {
x("Loop", e, t);
}
i(rU, "assertLoop");
function nU(e, t) {
x("While", e, t);
}
i(nU, "assertWhile");
function sU(e, t) {
x("ExpressionWrapper", e, t);
}
i(sU, "assertExpressionWrapper");
function iU(e, t) {
x("For", e, t);
}
i(iU, "assertFor");
function aU(e, t) {
x("ForXStatement", e, t);
}
i(aU, "assertForXStatement");
function oU(e, t) {
x("Function", e, t);
}
i(oU, "assertFunction");
function lU(e, t) {
x("FunctionParent", e, t);
}
i(lU, "assertFunctionParent");
function uU(e, t) {
x("Pureish", e, t);
}
i(uU, "assertPureish");
function cU(e, t) {
x("Declaration", e, t);
}
i(cU, "assertDeclaration");
function pU(e, t) {
x("PatternLike", e, t);
}
i(pU, "assertPatternLike");
function fU(e, t) {
x("LVal", e, t);
}
i(fU, "assertLVal");
function dU(e, t) {
x("TSEntityName", e, t);
}
i(dU, "assertTSEntityName");
function hU(e, t) {
x("Literal", e, t);
}
i(hU, "assertLiteral");
function mU(e, t) {
x("Immutable", e, t);
}
i(mU, "assertImmutable");
function yU(e, t) {
x("UserWhitespacable", e, t);
}
i(yU, "assertUserWhitespacable");
function gU(e, t) {
x("Method", e, t);
}
i(gU, "assertMethod");
function bU(e, t) {
x("ObjectMember", e, t);
}
i(bU, "assertObjectMember");
function EU(e, t) {
x("Property", e, t);
}
i(EU, "assertProperty");
function TU(e, t) {
x("UnaryLike", e, t);
}
i(TU, "assertUnaryLike");
function SU(e, t) {
x("Pattern", e, t);
}
i(SU, "assertPattern");
function xU(e, t) {
x("Class", e, t);
}
i(xU, "assertClass");
function vU(e, t) {
x("ImportOrExportDeclaration", e, t);
}
i(vU, "assertImportOrExportDeclaration");
function PU(e, t) {
x("ExportDeclaration", e, t);
}
i(PU, "assertExportDeclaration");
function AU(e, t) {
x("ModuleSpecifier", e, t);
}
i(AU, "assertModuleSpecifier");
function CU(e, t) {
x("Accessor", e, t);
}
i(CU, "assertAccessor");
function DU(e, t) {
x("Private", e, t);
}
i(DU, "assertPrivate");
function wU(e, t) {
x("Flow", e, t);
}
i(wU, "assertFlow");
function IU(e, t) {
x("FlowType", e, t);
}
i(IU, "assertFlowType");
function _U(e, t) {
x("FlowBaseAnnotation", e, t);
}
i(_U, "assertFlowBaseAnnotation");
function OU(e, t) {
x("FlowDeclaration", e, t);
}
i(OU, "assertFlowDeclaration");
function NU(e, t) {
x("FlowPredicate", e, t);
}
i(NU, "assertFlowPredicate");
function BU(e, t) {
x("EnumBody", e, t);
}
i(BU, "assertEnumBody");
function kU(e, t) {
x("EnumMember", e, t);
}
i(kU, "assertEnumMember");
function FU(e, t) {
x("JSX", e, t);
}
i(FU, "assertJSX");
function jU(e, t) {
x("Miscellaneous", e, t);
}
i(jU, "assertMiscellaneous");
function LU(e, t) {
x("TypeScript", e, t);
}
i(LU, "assertTypeScript");
function MU(e, t) {
x("TSTypeElement", e, t);
}
i(MU, "assertTSTypeElement");
function RU(e, t) {
x("TSType", e, t);
}
i(RU, "assertTSType");
function qU(e, t) {
x("TSBaseType", e, t);
}
i(qU, "assertTSBaseType");
function UU(e, t) {
(0, Ba.default)("assertNumberLiteral", "assertNumericLiteral"), x("NumberLiteral", e, t);
}
i(UU, "assertNumberLiteral");
function VU(e, t) {
(0, Ba.default)("assertRegexLiteral", "assertRegExpLiteral"), x("RegexLiteral", e, t);
}
i(VU, "assertRegexLiteral");
function $U(e, t) {
(0, Ba.default)("assertRestProperty", "assertRestElement"), x("RestProperty", e, t);
}
i($U, "assertRestProperty");
function WU(e, t) {
(0, Ba.default)("assertSpreadProperty", "assertSpreadElement"), x("SpreadProperty", e, t);
}
i(WU, "assertSpreadProperty");
function KU(e, t) {
(0, Ba.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), x("ModuleDeclaration", e, t);
}
i(KU, "assertModuleDeclaration");
});
// ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
var PE = P((El) => {
"use strict";
Object.defineProperty(El, "__esModule", {
value: !0
});
El.default = void 0;
var $r = dr(), G1e = El.default = GU;
function GU(e) {
switch (e) {
case "string":
return (0, $r.stringTypeAnnotation)();
case "number":
return (0, $r.numberTypeAnnotation)();
case "undefined":
return (0, $r.voidTypeAnnotation)();
case "boolean":
return (0, $r.booleanTypeAnnotation)();
case "function":
return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Function"));
case "object":
return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Object"));
case "symbol":
return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Symbol"));
case "bigint":
return (0, $r.anyTypeAnnotation)();
}
throw new Error("Invalid typeof value: " + e);
}
i(GU, "createTypeAnnotationBasedOnTypeof");
});
// ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js
var Bf = P((Nf) => {
"use strict";
Object.defineProperty(Nf, "__esModule", {
value: !0
});
Nf.default = CE;
var ka = Tt();
function AE(e) {
return (0, ka.isIdentifier)(e) ? e.name : `${e.id.name}.${AE(e.qualification)}`;
}
i(AE, "getQualifiedName");
function CE(e) {
let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = [];
for (let o = 0; o < t.length; o++) {
let l = t[o];
if (l && !a.includes(l)) {
if ((0, ka.isAnyTypeAnnotation)(l))
return [l];
if ((0, ka.isFlowBaseAnnotation)(l)) {
n.set(l.type, l);
continue;
}
if ((0, ka.isUnionTypeAnnotation)(l)) {
s.has(l.types) || (t.push(...l.types), s.add(l.types));
continue;
}
if ((0, ka.isGenericTypeAnnotation)(l)) {
let u = AE(l.id);
if (r.has(u)) {
let c = r.get(u);
c.typeParameters ? l.typeParameters && (c.typeParameters.params.push(...l.typeParameters.params), c.typeParameters.params = CE(c.
typeParameters.params)) : c = l.typeParameters;
} else
r.set(u, l);
continue;
}
a.push(l);
}
}
for (let [, o] of n)
a.push(o);
for (let [, o] of r)
a.push(o);
return a;
}
i(CE, "removeTypeDuplicates");
});
// ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js
var DE = P((kf) => {
"use strict";
Object.defineProperty(kf, "__esModule", {
value: !0
});
kf.default = JU;
var HU = dr(), YU = Bf();
function JU(e) {
let t = (0, YU.default)(e);
return t.length === 1 ? t[0] : (0, HU.unionTypeAnnotation)(t);
}
i(JU, "createFlowUnionType");
});
// ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js
var _E = P((Ff) => {
"use strict";
Object.defineProperty(Ff, "__esModule", {
value: !0
});
Ff.default = IE;
var Ai = Tt();
function wE(e) {
return (0, Ai.isIdentifier)(e) ? e.name : (0, Ai.isThisExpression)(e) ? "this" : `${e.right.name}.${wE(e.left)}`;
}
i(wE, "getQualifiedName");
function IE(e) {
let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = [];
for (let o = 0; o < t.length; o++) {
let l = t[o];
if (!l || a.includes(l))
continue;
if ((0, Ai.isTSAnyKeyword)(l))
return [l];
if ((0, Ai.isTSBaseType)(l)) {
n.set(l.type, l);
continue;
}
if ((0, Ai.isTSUnionType)(l)) {
s.has(l.types) || (t.push(...l.types), s.add(l.types));
continue;
}
let u = "typeParameters";
if ((0, Ai.isTSTypeReference)(l) && l[u]) {
let c = l[u], p = wE(l.typeName);
if (r.has(p)) {
let f = r.get(p), h = f[u];
h ? (h.params.push(...c.params), h.params = IE(h.params)) : f = c;
} else
r.set(p, l);
continue;
}
a.push(l);
}
for (let [, o] of n)
a.push(o);
for (let [, o] of r)
a.push(o);
return a;
}
i(IE, "removeTypeDuplicates");
});
// ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js
var OE = P((jf) => {
"use strict";
Object.defineProperty(jf, "__esModule", {
value: !0
});
jf.default = ZU;
var XU = dr(), zU = _E(), QU = Tt();
function ZU(e) {
let t = e.map((n) => (0, QU.isTSTypeAnnotation)(n) ? n.typeAnnotation : n), r = (0, zU.default)(t);
return r.length === 1 ? r[0] : (0, XU.tsUnionType)(r);
}
i(ZU, "createTSUnionType");
});
// ../node_modules/@babel/types/lib/builders/productions.js
var Mf = P((Lf) => {
"use strict";
Object.defineProperty(Lf, "__esModule", {
value: !0
});
Lf.buildUndefinedNode = eV;
var NE = dr();
function eV() {
return (0, NE.unaryExpression)("void", (0, NE.numericLiteral)(0), !0);
}
i(eV, "buildUndefinedNode");
});
// ../node_modules/@babel/types/lib/clone/cloneNode.js
var Zn = P((qf) => {
"use strict";
Object.defineProperty(qf, "__esModule", {
value: !0
});
qf.default = tV;
var BE = wr(), kE = Tt(), {
hasOwn: ln
} = {
hasOwn: Function.call.bind(Object.prototype.hasOwnProperty)
};
function FE(e, t, r, n) {
return e && typeof e.type == "string" ? jE(e, t, r, n) : e;
}
i(FE, "cloneIfNode");
function Rf(e, t, r, n) {
return Array.isArray(e) ? e.map((s) => FE(s, t, r, n)) : FE(e, t, r, n);
}
i(Rf, "cloneIfNodeOrArray");
function tV(e, t = !0, r = !1) {
return jE(e, t, r, /* @__PURE__ */ new Map());
}
i(tV, "cloneNode");
function jE(e, t = !0, r = !1, n) {
if (!e) return e;
let {
type: s
} = e, a = {
type: e.type
};
if ((0, kE.isIdentifier)(e))
a.name = e.name, ln(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), ln(e, "typeAnnotation") && (a.typeAnnotation =
t ? Rf(e.typeAnnotation, !0, r, n) : e.typeAnnotation), ln(e, "decorators") && (a.decorators = t ? Rf(e.decorators, !0, r, n) : e.decorators);
else if (ln(BE.NODE_FIELDS, s))
for (let o of Object.keys(BE.NODE_FIELDS[s]))
ln(e, o) && (t ? a[o] = (0, kE.isFile)(e) && o === "comments" ? Tl(e.comments, t, r, n) : Rf(e[o], !0, r, n) : a[o] = e[o]);
else
throw new Error(`Unknown node type: "${s}"`);
return ln(e, "loc") && (r ? a.loc = null : a.loc = e.loc), ln(e, "leadingComments") && (a.leadingComments = Tl(e.leadingComments, t, r, n)),
ln(e, "innerComments") && (a.innerComments = Tl(e.innerComments, t, r, n)), ln(e, "trailingComments") && (a.trailingComments = Tl(e.trailingComments,
t, r, n)), ln(e, "extra") && (a.extra = Object.assign({}, e.extra)), a;
}
i(jE, "cloneNodeInternal");
function Tl(e, t, r, n) {
return !e || !t ? e : e.map((s) => {
let a = n.get(s);
if (a) return a;
let {
type: o,
value: l,
loc: u
} = s, c = {
type: o,
value: l,
loc: u
};
return r && (c.loc = null), n.set(s, c), c;
});
}
i(Tl, "maybeCloneComments");
});
// ../node_modules/@babel/types/lib/clone/clone.js
var LE = P((Uf) => {
"use strict";
Object.defineProperty(Uf, "__esModule", {
value: !0
});
Uf.default = nV;
var rV = Zn();
function nV(e) {
return (0, rV.default)(e, !1);
}
i(nV, "clone");
});
// ../node_modules/@babel/types/lib/clone/cloneDeep.js
var ME = P((Vf) => {
"use strict";
Object.defineProperty(Vf, "__esModule", {
value: !0
});
Vf.default = iV;
var sV = Zn();
function iV(e) {
return (0, sV.default)(e);
}
i(iV, "cloneDeep");
});
// ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js
var RE = P(($f) => {
"use strict";
Object.defineProperty($f, "__esModule", {
value: !0
});
$f.default = oV;
var aV = Zn();
function oV(e) {
return (0, aV.default)(e, !0, !0);
}
i(oV, "cloneDeepWithoutLoc");
});
// ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
var qE = P((Wf) => {
"use strict";
Object.defineProperty(Wf, "__esModule", {
value: !0
});
Wf.default = uV;
var lV = Zn();
function uV(e) {
return (0, lV.default)(e, !1, !0);
}
i(uV, "cloneWithoutLoc");
});
// ../node_modules/@babel/types/lib/comments/addComments.js
var Gf = P((Kf) => {
"use strict";
Object.defineProperty(Kf, "__esModule", {
value: !0
});
Kf.default = cV;
function cV(e, t, r) {
if (!r || !e) return e;
let n = `${t}Comments`;
return e[n] ? t === "leading" ? e[n] = r.concat(e[n]) : e[n].push(...r) : e[n] = r, e;
}
i(cV, "addComments");
});
// ../node_modules/@babel/types/lib/comments/addComment.js
var UE = P((Hf) => {
"use strict";
Object.defineProperty(Hf, "__esModule", {
value: !0
});
Hf.default = fV;
var pV = Gf();
function fV(e, t, r, n) {
return (0, pV.default)(e, t, [{
type: n ? "CommentLine" : "CommentBlock",
value: r
}]);
}
i(fV, "addComment");
});
// ../node_modules/@babel/types/lib/utils/inherit.js
var Sl = P((Yf) => {
"use strict";
Object.defineProperty(Yf, "__esModule", {
value: !0
});
Yf.default = dV;
function dV(e, t, r) {
t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean))));
}
i(dV, "inherit");
});
// ../node_modules/@babel/types/lib/comments/inheritInnerComments.js
var Xf = P((Jf) => {
"use strict";
Object.defineProperty(Jf, "__esModule", {
value: !0
});
Jf.default = mV;
var hV = Sl();
function mV(e, t) {
(0, hV.default)("innerComments", e, t);
}
i(mV, "inheritInnerComments");
});
// ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js
var Qf = P((zf) => {
"use strict";
Object.defineProperty(zf, "__esModule", {
value: !0
});
zf.default = gV;
var yV = Sl();
function gV(e, t) {
(0, yV.default)("leadingComments", e, t);
}
i(gV, "inheritLeadingComments");
});
// ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js
var ed = P((Zf) => {
"use strict";
Object.defineProperty(Zf, "__esModule", {
value: !0
});
Zf.default = EV;
var bV = Sl();
function EV(e, t) {
(0, bV.default)("trailingComments", e, t);
}
i(EV, "inheritTrailingComments");
});
// ../node_modules/@babel/types/lib/comments/inheritsComments.js
var rd = P((td) => {
"use strict";
Object.defineProperty(td, "__esModule", {
value: !0
});
td.default = vV;
var TV = ed(), SV = Qf(), xV = Xf();
function vV(e, t) {
return (0, TV.default)(e, t), (0, SV.default)(e, t), (0, xV.default)(e, t), e;
}
i(vV, "inheritsComments");
});
// ../node_modules/@babel/types/lib/comments/removeComments.js
var VE = P((nd) => {
"use strict";
Object.defineProperty(nd, "__esModule", {
value: !0
});
nd.default = AV;
var PV = Si();
function AV(e) {
return PV.COMMENT_KEYS.forEach((t) => {
e[t] = null;
}), e;
}
i(AV, "removeComments");
});
// ../node_modules/@babel/types/lib/constants/generated/index.js
var $E = P((X) => {
"use strict";
Object.defineProperty(X, "__esModule", {
value: !0
});
X.WHILE_TYPES = X.USERWHITESPACABLE_TYPES = X.UNARYLIKE_TYPES = X.TYPESCRIPT_TYPES = X.TSTYPE_TYPES = X.TSTYPEELEMENT_TYPES = X.TSENTITYNAME_TYPES =
X.TSBASETYPE_TYPES = X.TERMINATORLESS_TYPES = X.STATEMENT_TYPES = X.STANDARDIZED_TYPES = X.SCOPABLE_TYPES = X.PUREISH_TYPES = X.PROPERTY_TYPES =
X.PRIVATE_TYPES = X.PATTERN_TYPES = X.PATTERNLIKE_TYPES = X.OBJECTMEMBER_TYPES = X.MODULESPECIFIER_TYPES = X.MODULEDECLARATION_TYPES = X.MISCELLANEOUS_TYPES =
X.METHOD_TYPES = X.LVAL_TYPES = X.LOOP_TYPES = X.LITERAL_TYPES = X.JSX_TYPES = X.IMPORTOREXPORTDECLARATION_TYPES = X.IMMUTABLE_TYPES = X.FUNCTION_TYPES =
X.FUNCTIONPARENT_TYPES = X.FOR_TYPES = X.FORXSTATEMENT_TYPES = X.FLOW_TYPES = X.FLOWTYPE_TYPES = X.FLOWPREDICATE_TYPES = X.FLOWDECLARATION_TYPES =
X.FLOWBASEANNOTATION_TYPES = X.EXPRESSION_TYPES = X.EXPRESSIONWRAPPER_TYPES = X.EXPORTDECLARATION_TYPES = X.ENUMMEMBER_TYPES = X.ENUMBODY_TYPES =
X.DECLARATION_TYPES = X.CONDITIONAL_TYPES = X.COMPLETIONSTATEMENT_TYPES = X.CLASS_TYPES = X.BLOCK_TYPES = X.BLOCKPARENT_TYPES = X.BINARY_TYPES =
X.ACCESSOR_TYPES = void 0;
var Oe = wr(), OEe = X.STANDARDIZED_TYPES = Oe.FLIPPED_ALIAS_KEYS.Standardized, NEe = X.EXPRESSION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Expression,
BEe = X.BINARY_TYPES = Oe.FLIPPED_ALIAS_KEYS.Binary, kEe = X.SCOPABLE_TYPES = Oe.FLIPPED_ALIAS_KEYS.Scopable, FEe = X.BLOCKPARENT_TYPES = Oe.
FLIPPED_ALIAS_KEYS.BlockParent, jEe = X.BLOCK_TYPES = Oe.FLIPPED_ALIAS_KEYS.Block, LEe = X.STATEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.Statement,
MEe = X.TERMINATORLESS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Terminatorless, REe = X.COMPLETIONSTATEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.CompletionStatement,
qEe = X.CONDITIONAL_TYPES = Oe.FLIPPED_ALIAS_KEYS.Conditional, UEe = X.LOOP_TYPES = Oe.FLIPPED_ALIAS_KEYS.Loop, VEe = X.WHILE_TYPES = Oe.FLIPPED_ALIAS_KEYS.
While, $Ee = X.EXPRESSIONWRAPPER_TYPES = Oe.FLIPPED_ALIAS_KEYS.ExpressionWrapper, WEe = X.FOR_TYPES = Oe.FLIPPED_ALIAS_KEYS.For, KEe = X.FORXSTATEMENT_TYPES =
Oe.FLIPPED_ALIAS_KEYS.ForXStatement, GEe = X.FUNCTION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Function, HEe = X.FUNCTIONPARENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.
FunctionParent, YEe = X.PUREISH_TYPES = Oe.FLIPPED_ALIAS_KEYS.Pureish, JEe = X.DECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.Declaration, XEe = X.
PATTERNLIKE_TYPES = Oe.FLIPPED_ALIAS_KEYS.PatternLike, zEe = X.LVAL_TYPES = Oe.FLIPPED_ALIAS_KEYS.LVal, QEe = X.TSENTITYNAME_TYPES = Oe.FLIPPED_ALIAS_KEYS.
TSEntityName, ZEe = X.LITERAL_TYPES = Oe.FLIPPED_ALIAS_KEYS.Literal, eTe = X.IMMUTABLE_TYPES = Oe.FLIPPED_ALIAS_KEYS.Immutable, tTe = X.USERWHITESPACABLE_TYPES =
Oe.FLIPPED_ALIAS_KEYS.UserWhitespacable, rTe = X.METHOD_TYPES = Oe.FLIPPED_ALIAS_KEYS.Method, nTe = X.OBJECTMEMBER_TYPES = Oe.FLIPPED_ALIAS_KEYS.
ObjectMember, sTe = X.PROPERTY_TYPES = Oe.FLIPPED_ALIAS_KEYS.Property, iTe = X.UNARYLIKE_TYPES = Oe.FLIPPED_ALIAS_KEYS.UnaryLike, aTe = X.
PATTERN_TYPES = Oe.FLIPPED_ALIAS_KEYS.Pattern, oTe = X.CLASS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Class, CV = X.IMPORTOREXPORTDECLARATION_TYPES =
Oe.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, lTe = X.EXPORTDECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.ExportDeclaration, uTe = X.MODULESPECIFIER_TYPES =
Oe.FLIPPED_ALIAS_KEYS.ModuleSpecifier, cTe = X.ACCESSOR_TYPES = Oe.FLIPPED_ALIAS_KEYS.Accessor, pTe = X.PRIVATE_TYPES = Oe.FLIPPED_ALIAS_KEYS.
Private, fTe = X.FLOW_TYPES = Oe.FLIPPED_ALIAS_KEYS.Flow, dTe = X.FLOWTYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowType, hTe = X.FLOWBASEANNOTATION_TYPES =
Oe.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, mTe = X.FLOWDECLARATION_TYPES = Oe.FLIPPED_ALIAS_KEYS.FlowDeclaration, yTe = X.FLOWPREDICATE_TYPES =
Oe.FLIPPED_ALIAS_KEYS.FlowPredicate, gTe = X.ENUMBODY_TYPES = Oe.FLIPPED_ALIAS_KEYS.EnumBody, bTe = X.ENUMMEMBER_TYPES = Oe.FLIPPED_ALIAS_KEYS.
EnumMember, ETe = X.JSX_TYPES = Oe.FLIPPED_ALIAS_KEYS.JSX, TTe = X.MISCELLANEOUS_TYPES = Oe.FLIPPED_ALIAS_KEYS.Miscellaneous, STe = X.TYPESCRIPT_TYPES =
Oe.FLIPPED_ALIAS_KEYS.TypeScript, xTe = X.TSTYPEELEMENT_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSTypeElement, vTe = X.TSTYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.
TSType, PTe = X.TSBASETYPE_TYPES = Oe.FLIPPED_ALIAS_KEYS.TSBaseType, ATe = X.MODULEDECLARATION_TYPES = CV;
});
// ../node_modules/@babel/types/lib/converters/toBlock.js
var ad = P((id) => {
"use strict";
Object.defineProperty(id, "__esModule", {
value: !0
});
id.default = DV;
var xl = Tt(), sd = dr();
function DV(e, t) {
if ((0, xl.isBlockStatement)(e))
return e;
let r = [];
return (0, xl.isEmptyStatement)(e) ? r = [] : ((0, xl.isStatement)(e) || ((0, xl.isFunction)(t) ? e = (0, sd.returnStatement)(e) : e = (0, sd.
expressionStatement)(e)), r = [e]), (0, sd.blockStatement)(r);
}
i(DV, "toBlock");
});
// ../node_modules/@babel/types/lib/converters/ensureBlock.js
var WE = P((od) => {
"use strict";
Object.defineProperty(od, "__esModule", {
value: !0
});
od.default = IV;
var wV = ad();
function IV(e, t = "body") {
let r = (0, wV.default)(e[t], e);
return e[t] = r, r;
}
i(IV, "ensureBlock");
});
// ../node_modules/@babel/types/lib/converters/toIdentifier.js
var ud = P((ld) => {
"use strict";
Object.defineProperty(ld, "__esModule", {
value: !0
});
ld.default = NV;
var _V = Ti(), OV = Ei();
function NV(e) {
e = e + "";
let t = "";
for (let r of e)
t += (0, OV.isIdentifierChar)(r.codePointAt(0)) ? r : "-";
return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, n) {
return n ? n.toUpperCase() : "";
}), (0, _V.default)(t) || (t = `_${t}`), t || "_";
}
i(NV, "toIdentifier");
});
// ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
var KE = P((cd) => {
"use strict";
Object.defineProperty(cd, "__esModule", {
value: !0
});
cd.default = kV;
var BV = ud();
function kV(e) {
return e = (0, BV.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e;
}
i(kV, "toBindingIdentifierName");
});
// ../node_modules/@babel/types/lib/converters/toComputedKey.js
var GE = P((pd) => {
"use strict";
Object.defineProperty(pd, "__esModule", {
value: !0
});
pd.default = LV;
var FV = Tt(), jV = dr();
function LV(e, t = e.key || e.property) {
return !e.computed && (0, FV.isIdentifier)(t) && (t = (0, jV.stringLiteral)(t.name)), t;
}
i(LV, "toComputedKey");
});
// ../node_modules/@babel/types/lib/converters/toExpression.js
var HE = P((vl) => {
"use strict";
Object.defineProperty(vl, "__esModule", {
value: !0
});
vl.default = void 0;
var Fa = Tt(), LTe = vl.default = MV;
function MV(e) {
if ((0, Fa.isExpressionStatement)(e) && (e = e.expression), (0, Fa.isExpression)(e))
return e;
if ((0, Fa.isClass)(e) ? e.type = "ClassExpression" : (0, Fa.isFunction)(e) && (e.type = "FunctionExpression"), !(0, Fa.isExpression)(e))
throw new Error(`cannot turn ${e.type} to an expression`);
return e;
}
i(MV, "toExpression");
});
// ../node_modules/@babel/types/lib/traverse/traverseFast.js
var dd = P((fd) => {
"use strict";
Object.defineProperty(fd, "__esModule", {
value: !0
});
fd.default = ja;
var RV = wr(), YE = Symbol(), JE = Symbol();
function ja(e, t, r) {
if (!e) return !1;
let n = RV.VISITOR_KEYS[e.type];
if (!n) return !1;
r = r || {};
let s = t(e, r);
if (s !== void 0)
switch (s) {
case YE:
return !1;
case JE:
return !0;
}
for (let a of n) {
let o = e[a];
if (o) {
if (Array.isArray(o)) {
for (let l of o)
if (ja(l, t, r)) return !0;
} else if (ja(o, t, r)) return !0;
}
}
return !1;
}
i(ja, "traverseFast");
ja.skip = YE;
ja.stop = JE;
});
// ../node_modules/@babel/types/lib/modifications/removeProperties.js
var md = P((hd) => {
"use strict";
Object.defineProperty(hd, "__esModule", {
value: !0
});
hd.default = VV;
var qV = Si(), XE = ["tokens", "start", "end", "loc", "raw", "rawValue"], UV = [...qV.COMMENT_KEYS, "comments", ...XE];
function VV(e, t = {}) {
let r = t.preserveComments ? XE : UV;
for (let s of r)
e[s] != null && (e[s] = void 0);
for (let s of Object.keys(e))
s[0] === "_" && e[s] != null && (e[s] = void 0);
let n = Object.getOwnPropertySymbols(e);
for (let s of n)
e[s] = null;
}
i(VV, "removeProperties");
});
// ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js
var gd = P((yd) => {
"use strict";
Object.defineProperty(yd, "__esModule", {
value: !0
});
yd.default = KV;
var $V = dd(), WV = md();
function KV(e, t) {
return (0, $V.default)(e, WV.default, t), e;
}
i(KV, "removePropertiesDeep");
});
// ../node_modules/@babel/types/lib/converters/toKeyAlias.js
var QE = P((bd) => {
"use strict";
Object.defineProperty(bd, "__esModule", {
value: !0
});
bd.default = Ns;
var zE = Tt(), GV = Zn(), HV = gd();
function Ns(e, t = e.key) {
let r;
return e.kind === "method" ? Ns.increment() + "" : ((0, zE.isIdentifier)(t) ? r = t.name : (0, zE.isStringLiteral)(t) ? r = JSON.stringify(
t.value) : r = JSON.stringify((0, HV.default)((0, GV.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r);
}
i(Ns, "toKeyAlias");
Ns.uid = 0;
Ns.increment = function() {
return Ns.uid >= Number.MAX_SAFE_INTEGER ? Ns.uid = 0 : Ns.uid++;
};
});
// ../node_modules/@babel/types/lib/converters/toStatement.js
var ZE = P((Al) => {
"use strict";
Object.defineProperty(Al, "__esModule", {
value: !0
});
Al.default = void 0;
var Pl = Tt(), YV = dr(), YTe = Al.default = JV;
function JV(e, t) {
if ((0, Pl.isStatement)(e))
return e;
let r = !1, n;
if ((0, Pl.isClass)(e))
r = !0, n = "ClassDeclaration";
else if ((0, Pl.isFunction)(e))
r = !0, n = "FunctionDeclaration";
else if ((0, Pl.isAssignmentExpression)(e))
return (0, YV.expressionStatement)(e);
if (r && !e.id && (n = !1), !n) {
if (t)
return !1;
throw new Error(`cannot turn ${e.type} to a statement`);
}
return e.type = n, e;
}
i(JV, "toStatement");
});
// ../node_modules/@babel/types/lib/converters/valueToNode.js
var eT = P((Cl) => {
"use strict";
Object.defineProperty(Cl, "__esModule", {
value: !0
});
Cl.default = void 0;
var XV = Ti(), kt = dr(), zTe = Cl.default = Ed, zV = Function.call.bind(Object.prototype.toString);
function QV(e) {
return zV(e) === "[object RegExp]";
}
i(QV, "isRegExp");
function ZV(e) {
if (typeof e != "object" || e === null || Object.prototype.toString.call(e) !== "[object Object]")
return !1;
let t = Object.getPrototypeOf(e);
return t === null || Object.getPrototypeOf(t) === null;
}
i(ZV, "isPlainObject");
function Ed(e) {
if (e === void 0)
return (0, kt.identifier)("undefined");
if (e === !0 || e === !1)
return (0, kt.booleanLiteral)(e);
if (e === null)
return (0, kt.nullLiteral)();
if (typeof e == "string")
return (0, kt.stringLiteral)(e);
if (typeof e == "number") {
let t;
if (Number.isFinite(e))
t = (0, kt.numericLiteral)(Math.abs(e));
else {
let r;
Number.isNaN(e) ? r = (0, kt.numericLiteral)(0) : r = (0, kt.numericLiteral)(1), t = (0, kt.binaryExpression)("/", r, (0, kt.numericLiteral)(
0));
}
return (e < 0 || Object.is(e, -0)) && (t = (0, kt.unaryExpression)("-", t)), t;
}
if (typeof e == "bigint")
return (0, kt.bigIntLiteral)(e.toString());
if (QV(e)) {
let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1];
return (0, kt.regExpLiteral)(t, r);
}
if (Array.isArray(e))
return (0, kt.arrayExpression)(e.map(Ed));
if (ZV(e)) {
let t = [];
for (let r of Object.keys(e)) {
let n, s = !1;
(0, XV.default)(r) ? r === "__proto__" ? (s = !0, n = (0, kt.stringLiteral)(r)) : n = (0, kt.identifier)(r) : n = (0, kt.stringLiteral)(
r), t.push((0, kt.objectProperty)(n, Ed(e[r]), s));
}
return (0, kt.objectExpression)(t);
}
throw new Error("don't know how to turn this value into a node");
}
i(Ed, "valueToNode");
});
// ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js
var tT = P((Td) => {
"use strict";
Object.defineProperty(Td, "__esModule", {
value: !0
});
Td.default = t$;
var e$ = dr();
function t$(e, t, r = !1) {
return e.object = (0, e$.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e;
}
i(t$, "appendToMemberExpression");
});
// ../node_modules/@babel/types/lib/modifications/inherits.js
var nT = P((Sd) => {
"use strict";
Object.defineProperty(Sd, "__esModule", {
value: !0
});
Sd.default = n$;
var rT = Si(), r$ = rd();
function n$(e, t) {
if (!e || !t) return e;
for (let r of rT.INHERIT_KEYS.optional)
e[r] == null && (e[r] = t[r]);
for (let r of Object.keys(t))
r[0] === "_" && r !== "__clone" && (e[r] = t[r]);
for (let r of rT.INHERIT_KEYS.force)
e[r] = t[r];
return (0, r$.default)(e, t), e;
}
i(n$, "inherits");
});
// ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js
var sT = P((xd) => {
"use strict";
Object.defineProperty(xd, "__esModule", {
value: !0
});
xd.default = a$;
var s$ = dr(), i$ = Ce();
function a$(e, t) {
if ((0, i$.isSuper)(e.object))
throw new Error("Cannot prepend node to super property access (`super.foo`).");
return e.object = (0, s$.memberExpression)(t, e.object), e;
}
i(a$, "prependToMemberExpression");
});
// ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js
var iT = P((vd) => {
"use strict";
Object.defineProperty(vd, "__esModule", {
value: !0
});
vd.default = o$;
function o$(e) {
let t = [].concat(e), r = /* @__PURE__ */ Object.create(null);
for (; t.length; ) {
let n = t.pop();
if (n)
switch (n.type) {
case "ArrayPattern":
t.push(...n.elements);
break;
case "AssignmentExpression":
case "AssignmentPattern":
case "ForInStatement":
case "ForOfStatement":
t.push(n.left);
break;
case "ObjectPattern":
t.push(...n.properties);
break;
case "ObjectProperty":
t.push(n.value);
break;
case "RestElement":
case "UpdateExpression":
t.push(n.argument);
break;
case "UnaryExpression":
n.operator === "delete" && t.push(n.argument);
break;
case "Identifier":
r[n.name] = n;
break;
default:
break;
}
}
return r;
}
i(o$, "getAssignmentIdentifiers");
});
// ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js
var La = P((Ad) => {
"use strict";
Object.defineProperty(Ad, "__esModule", {
value: !0
});
Ad.default = Pd;
var Pn = Tt();
function Pd(e, t, r, n) {
let s = [].concat(e), a = /* @__PURE__ */ Object.create(null);
for (; s.length; ) {
let o = s.shift();
if (!o || n && ((0, Pn.isAssignmentExpression)(o) || (0, Pn.isUnaryExpression)(o) || (0, Pn.isUpdateExpression)(o)))
continue;
if ((0, Pn.isIdentifier)(o)) {
t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o;
continue;
}
if ((0, Pn.isExportDeclaration)(o) && !(0, Pn.isExportAllDeclaration)(o)) {
(0, Pn.isDeclaration)(o.declaration) && s.push(o.declaration);
continue;
}
if (r) {
if ((0, Pn.isFunctionDeclaration)(o)) {
s.push(o.id);
continue;
}
if ((0, Pn.isFunctionExpression)(o))
continue;
}
let l = Pd.keys[o.type];
if (l)
for (let u = 0; u < l.length; u++) {
let c = l[u], p = o[c];
p && (Array.isArray(p) ? s.push(...p) : s.push(p));
}
}
return a;
}
i(Pd, "getBindingIdentifiers");
var l$ = {
DeclareClass: ["id"],
DeclareFunction: ["id"],
DeclareModule: ["id"],
DeclareVariable: ["id"],
DeclareInterface: ["id"],
DeclareTypeAlias: ["id"],
DeclareOpaqueType: ["id"],
InterfaceDeclaration: ["id"],
TypeAlias: ["id"],
OpaqueType: ["id"],
CatchClause: ["param"],
LabeledStatement: ["label"],
UnaryExpression: ["argument"],
AssignmentExpression: ["left"],
ImportSpecifier: ["local"],
ImportNamespaceSpecifier: ["local"],
ImportDefaultSpecifier: ["local"],
ImportDeclaration: ["specifiers"],
TSImportEqualsDeclaration: ["id"],
ExportSpecifier: ["exported"],
ExportNamespaceSpecifier: ["exported"],
ExportDefaultSpecifier: ["exported"],
FunctionDeclaration: ["id", "params"],
FunctionExpression: ["id", "params"],
ArrowFunctionExpression: ["params"],
ObjectMethod: ["params"],
ClassMethod: ["params"],
ClassPrivateMethod: ["params"],
ForInStatement: ["left"],
ForOfStatement: ["left"],
ClassDeclaration: ["id"],
ClassExpression: ["id"],
RestElement: ["argument"],
UpdateExpression: ["argument"],
ObjectProperty: ["value"],
AssignmentPattern: ["left"],
ArrayPattern: ["elements"],
ObjectPattern: ["properties"],
VariableDeclaration: ["declarations"],
VariableDeclarator: ["id"]
};
Pd.keys = l$;
});
// ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js
var aT = P((Dl) => {
"use strict";
Object.defineProperty(Dl, "__esModule", {
value: !0
});
Dl.default = void 0;
var u$ = La(), cSe = Dl.default = c$;
function c$(e, t) {
return (0, u$.default)(e, t, !0);
}
i(c$, "getOuterBindingIdentifiers");
});
// ../node_modules/@babel/types/lib/retrievers/getFunctionName.js
var lT = P((Cd) => {
"use strict";
Object.defineProperty(Cd, "__esModule", {
value: !0
});
Cd.default = f$;
var Ir = Tt();
function p$(e) {
return (0, Ir.isNullLiteral)(e) ? "null" : (0, Ir.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, Ir.isTemplateLiteral)(e) ? e.quasis.
map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null;
}
i(p$, "getNameFromLiteralId");
function oT(e) {
if (!e.computed || (0, Ir.isLiteral)(e.key))
return e.key;
}
i(oT, "getObjectMemberKey");
function f$(e, t) {
if ("id" in e && e.id)
return {
name: e.id.name,
originalNode: e.id
};
let r = "", n;
if ((0, Ir.isObjectProperty)(t, {
value: e
}) ? n = oT(t) : (0, Ir.isObjectMethod)(e) || (0, Ir.isClassMethod)(e) ? (n = oT(e), e.kind === "get" ? r = "get " : e.kind === "set" &&
(r = "set ")) : (0, Ir.isVariableDeclarator)(t, {
init: e
}) ? n = t.id : (0, Ir.isAssignmentExpression)(t, {
operator: "=",
right: e
}) && (n = t.left), !n) return null;
let s = (0, Ir.isLiteral)(n) ? p$(n) : (0, Ir.isIdentifier)(n) ? n.name : (0, Ir.isPrivateName)(n) ? n.id.name : null;
return s == null ? null : {
name: r + s,
originalNode: n
};
}
i(f$, "getFunctionName");
});
// ../node_modules/@babel/types/lib/traverse/traverse.js
var uT = P((wd) => {
"use strict";
Object.defineProperty(wd, "__esModule", {
value: !0
});
wd.default = h$;
var d$ = wr();
function h$(e, t, r) {
typeof t == "function" && (t = {
enter: t
});
let {
enter: n,
exit: s
} = t;
Dd(e, n, s, r, []);
}
i(h$, "traverse");
function Dd(e, t, r, n, s) {
let a = d$.VISITOR_KEYS[e.type];
if (a) {
t && t(e, s, n);
for (let o of a) {
let l = e[o];
if (Array.isArray(l))
for (let u = 0; u < l.length; u++) {
let c = l[u];
c && (s.push({
node: e,
key: o,
index: u
}), Dd(c, t, r, n, s), s.pop());
}
else l && (s.push({
node: e,
key: o
}), Dd(l, t, r, n, s), s.pop());
}
r && r(e, s, n);
}
}
i(Dd, "traverseSimpleImpl");
});
// ../node_modules/@babel/types/lib/validators/isBinding.js
var cT = P((Id) => {
"use strict";
Object.defineProperty(Id, "__esModule", {
value: !0
});
Id.default = y$;
var m$ = La();
function y$(e, t, r) {
if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression")
return !1;
let n = m$.default.keys[t.type];
if (n)
for (let s = 0; s < n.length; s++) {
let a = n[s], o = t[a];
if (Array.isArray(o)) {
if (o.includes(e)) return !0;
} else if (o === e) return !0;
}
return !1;
}
i(y$, "isBinding");
});
// ../node_modules/@babel/types/lib/validators/isLet.js
var Od = P((_d) => {
"use strict";
Object.defineProperty(_d, "__esModule", {
value: !0
});
_d.default = b$;
var g$ = Tt();
pT = Symbol.for("var used to be block scoped");
var pT;
function b$(e) {
return (0, g$.isVariableDeclaration)(e) && (e.kind !== "var" || e[pT]);
}
i(b$, "isLet");
});
// ../node_modules/@babel/types/lib/validators/isBlockScoped.js
var dT = P((Nd) => {
"use strict";
Object.defineProperty(Nd, "__esModule", {
value: !0
});
Nd.default = T$;
var fT = Tt(), E$ = Od();
function T$(e) {
return (0, fT.isFunctionDeclaration)(e) || (0, fT.isClassDeclaration)(e) || (0, E$.default)(e);
}
i(T$, "isBlockScoped");
});
// ../node_modules/@babel/types/lib/validators/isImmutable.js
var hT = P((Bd) => {
"use strict";
Object.defineProperty(Bd, "__esModule", {
value: !0
});
Bd.default = v$;
var S$ = ul(), x$ = Tt();
function v$(e) {
return (0, S$.default)(e.type, "Immutable") ? !0 : (0, x$.isIdentifier)(e) ? e.name === "undefined" : !1;
}
i(v$, "isImmutable");
});
// ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js
var yT = P((Fd) => {
"use strict";
Object.defineProperty(Fd, "__esModule", {
value: !0
});
Fd.default = kd;
var mT = wr();
function kd(e, t) {
if (typeof e != "object" || typeof t != "object" || e == null || t == null)
return e === t;
if (e.type !== t.type)
return !1;
let r = Object.keys(mT.NODE_FIELDS[e.type] || e.type), n = mT.VISITOR_KEYS[e.type];
for (let s of r) {
let a = e[s], o = t[s];
if (typeof a != typeof o)
return !1;
if (!(a == null && o == null)) {
if (a == null || o == null)
return !1;
if (Array.isArray(a)) {
if (!Array.isArray(o) || a.length !== o.length)
return !1;
for (let l = 0; l < a.length; l++)
if (!kd(a[l], o[l]))
return !1;
continue;
}
if (typeof a == "object" && !(n != null && n.includes(s))) {
for (let l of Object.keys(a))
if (a[l] !== o[l])
return !1;
continue;
}
if (!kd(a, o))
return !1;
}
}
return !0;
}
i(kd, "isNodesEquivalent");
});
// ../node_modules/@babel/types/lib/validators/isReferenced.js
var gT = P((jd) => {
"use strict";
Object.defineProperty(jd, "__esModule", {
value: !0
});
jd.default = P$;
function P$(e, t, r) {
switch (t.type) {
case "MemberExpression":
case "OptionalMemberExpression":
return t.property === e ? !!t.computed : t.object === e;
case "JSXMemberExpression":
return t.object === e;
case "VariableDeclarator":
return t.init === e;
case "ArrowFunctionExpression":
return t.body === e;
case "PrivateName":
return !1;
case "ClassMethod":
case "ClassPrivateMethod":
case "ObjectMethod":
return t.key === e ? !!t.computed : !1;
case "ObjectProperty":
return t.key === e ? !!t.computed : !r || r.type !== "ObjectPattern";
case "ClassProperty":
case "ClassAccessorProperty":
return t.key === e ? !!t.computed : !0;
case "ClassPrivateProperty":
return t.key !== e;
case "ClassDeclaration":
case "ClassExpression":
return t.superClass === e;
case "AssignmentExpression":
return t.right === e;
case "AssignmentPattern":
return t.right === e;
case "LabeledStatement":
return !1;
case "CatchClause":
return !1;
case "RestElement":
return !1;
case "BreakStatement":
case "ContinueStatement":
return !1;
case "FunctionDeclaration":
case "FunctionExpression":
return !1;
case "ExportNamespaceSpecifier":
case "ExportDefaultSpecifier":
return !1;
case "ExportSpecifier":
return r != null && r.source ? !1 : t.local === e;
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
return !1;
case "ImportAttribute":
return !1;
case "JSXAttribute":
return !1;
case "ObjectPattern":
case "ArrayPattern":
return !1;
case "MetaProperty":
return !1;
case "ObjectTypeProperty":
return t.key !== e;
case "TSEnumMember":
return t.id !== e;
case "TSPropertySignature":
return t.key === e ? !!t.computed : !0;
}
return !0;
}
i(P$, "isReferenced");
});
// ../node_modules/@babel/types/lib/validators/isScope.js
var bT = P((Ld) => {
"use strict";
Object.defineProperty(Ld, "__esModule", {
value: !0
});
Ld.default = A$;
var Bs = Tt();
function A$(e, t) {
return (0, Bs.isBlockStatement)(e) && ((0, Bs.isFunction)(t) || (0, Bs.isCatchClause)(t)) ? !1 : (0, Bs.isPattern)(e) && ((0, Bs.isFunction)(
t) || (0, Bs.isCatchClause)(t)) ? !0 : (0, Bs.isScopable)(e);
}
i(A$, "isScope");
});
// ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js
var TT = P((Md) => {
"use strict";
Object.defineProperty(Md, "__esModule", {
value: !0
});
Md.default = C$;
var ET = Tt();
function C$(e) {
return (0, ET.isImportDefaultSpecifier)(e) || (0, ET.isIdentifier)(e.imported || e.exported, {
name: "default"
});
}
i(C$, "isSpecifierDefault");
});
// ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js
var ST = P((Rd) => {
"use strict";
Object.defineProperty(Rd, "__esModule", {
value: !0
});
Rd.default = I$;
var D$ = Ti(), w$ = /* @__PURE__ */ new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implement\
s", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transie\
nt", "volatile"]);
function I$(e) {
return (0, D$.default)(e) && !w$.has(e);
}
i(I$, "isValidES3Identifier");
});
// ../node_modules/@babel/types/lib/validators/isVar.js
var vT = P((qd) => {
"use strict";
Object.defineProperty(qd, "__esModule", {
value: !0
});
qd.default = O$;
var _$ = Tt();
xT = Symbol.for("var used to be block scoped");
var xT;
function O$(e) {
return (0, _$.isVariableDeclaration)(e, {
kind: "var"
}) && !e[xT];
}
i(O$, "isVar");
});
// ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
var PT = P(($d) => {
"use strict";
Object.defineProperty($d, "__esModule", {
value: !0
});
$d.default = wl;
var N$ = La(), ks = Tt(), Ud = dr(), Vd = Mf(), B$ = Zn();
function wl(e, t) {
let r = [], n = !0;
for (let s of e)
if ((0, ks.isEmptyStatement)(s) || (n = !1), (0, ks.isExpression)(s))
r.push(s);
else if ((0, ks.isExpressionStatement)(s))
r.push(s.expression);
else if ((0, ks.isVariableDeclaration)(s)) {
if (s.kind !== "var") return;
for (let a of s.declarations) {
let o = (0, N$.default)(a);
for (let l of Object.keys(o))
t.push({
kind: s.kind,
id: (0, B$.default)(o[l])
});
a.init && r.push((0, Ud.assignmentExpression)("=", a.id, a.init));
}
n = !0;
} else if ((0, ks.isIfStatement)(s)) {
let a = s.consequent ? wl([s.consequent], t) : (0, Vd.buildUndefinedNode)(), o = s.alternate ? wl([s.alternate], t) : (0, Vd.buildUndefinedNode)();
if (!a || !o) return;
r.push((0, Ud.conditionalExpression)(s.test, a, o));
} else if ((0, ks.isBlockStatement)(s)) {
let a = wl(s.body, t);
if (!a) return;
r.push(a);
} else if ((0, ks.isEmptyStatement)(s))
e.indexOf(s) === 0 && (n = !0);
else
return;
return n && r.push((0, Vd.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, Ud.sequenceExpression)(r);
}
i(wl, "gatherSequenceExpressions");
});
// ../node_modules/@babel/types/lib/converters/toSequenceExpression.js
var AT = P((Wd) => {
"use strict";
Object.defineProperty(Wd, "__esModule", {
value: !0
});
Wd.default = F$;
var k$ = PT();
function F$(e, t) {
if (!(e != null && e.length)) return;
let r = [], n = (0, k$.default)(e, r);
if (n) {
for (let s of r)
t.push(s);
return n;
}
}
i(F$, "toSequenceExpression");
});
// ../node_modules/@babel/types/lib/index.js
var Ce = P((ne) => {
"use strict";
Object.defineProperty(ne, "__esModule", {
value: !0
});
var es = {
react: !0,
assertNode: !0,
createTypeAnnotationBasedOnTypeof: !0,
createUnionTypeAnnotation: !0,
createFlowUnionType: !0,
createTSUnionType: !0,
cloneNode: !0,
clone: !0,
cloneDeep: !0,
cloneDeepWithoutLoc: !0,
cloneWithoutLoc: !0,
addComment: !0,
addComments: !0,
inheritInnerComments: !0,
inheritLeadingComments: !0,
inheritsComments: !0,
inheritTrailingComments: !0,
removeComments: !0,
ensureBlock: !0,
toBindingIdentifierName: !0,
toBlock: !0,
toComputedKey: !0,
toExpression: !0,
toIdentifier: !0,
toKeyAlias: !0,
toStatement: !0,
valueToNode: !0,
appendToMemberExpression: !0,
inherits: !0,
prependToMemberExpression: !0,
removeProperties: !0,
removePropertiesDeep: !0,
removeTypeDuplicates: !0,
getAssignmentIdentifiers: !0,
getBindingIdentifiers: !0,
getOuterBindingIdentifiers: !0,
getFunctionName: !0,
traverse: !0,
traverseFast: !0,
shallowEqual: !0,
is: !0,
isBinding: !0,
isBlockScoped: !0,
isImmutable: !0,
isLet: !0,
isNode: !0,
isNodesEquivalent: !0,
isPlaceholderType: !0,
isReferenced: !0,
isScope: !0,
isSpecifierDefault: !0,
isType: !0,
isValidES3Identifier: !0,
isValidIdentifier: !0,
isVar: !0,
matchesPattern: !0,
validate: !0,
buildMatchMemberExpression: !0,
__internal__deprecationWarning: !0
};
Object.defineProperty(ne, "__internal__deprecationWarning", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return RW.default;
}, "get")
});
Object.defineProperty(ne, "addComment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return H$.default;
}, "get")
});
Object.defineProperty(ne, "addComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Y$.default;
}, "get")
});
Object.defineProperty(ne, "appendToMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return uW.default;
}, "get")
});
Object.defineProperty(ne, "assertNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return R$.default;
}, "get")
});
Object.defineProperty(ne, "buildMatchMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return MW.default;
}, "get")
});
Object.defineProperty(ne, "clone", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return $$.default;
}, "get")
});
Object.defineProperty(ne, "cloneDeep", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return W$.default;
}, "get")
});
Object.defineProperty(ne, "cloneDeepWithoutLoc", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return K$.default;
}, "get")
});
Object.defineProperty(ne, "cloneNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return V$.default;
}, "get")
});
Object.defineProperty(ne, "cloneWithoutLoc", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return G$.default;
}, "get")
});
Object.defineProperty(ne, "createFlowUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return CT.default;
}, "get")
});
Object.defineProperty(ne, "createTSUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return U$.default;
}, "get")
});
Object.defineProperty(ne, "createTypeAnnotationBasedOnTypeof", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return q$.default;
}, "get")
});
Object.defineProperty(ne, "createUnionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return CT.default;
}, "get")
});
Object.defineProperty(ne, "ensureBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return eW.default;
}, "get")
});
Object.defineProperty(ne, "getAssignmentIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return mW.default;
}, "get")
});
Object.defineProperty(ne, "getBindingIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return yW.default;
}, "get")
});
Object.defineProperty(ne, "getFunctionName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return bW.default;
}, "get")
});
Object.defineProperty(ne, "getOuterBindingIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return gW.default;
}, "get")
});
Object.defineProperty(ne, "inheritInnerComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return J$.default;
}, "get")
});
Object.defineProperty(ne, "inheritLeadingComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return X$.default;
}, "get")
});
Object.defineProperty(ne, "inheritTrailingComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Q$.default;
}, "get")
});
Object.defineProperty(ne, "inherits", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return cW.default;
}, "get")
});
Object.defineProperty(ne, "inheritsComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return z$.default;
}, "get")
});
Object.defineProperty(ne, "is", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return SW.default;
}, "get")
});
Object.defineProperty(ne, "isBinding", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xW.default;
}, "get")
});
Object.defineProperty(ne, "isBlockScoped", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return vW.default;
}, "get")
});
Object.defineProperty(ne, "isImmutable", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return PW.default;
}, "get")
});
Object.defineProperty(ne, "isLet", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return AW.default;
}, "get")
});
Object.defineProperty(ne, "isNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return CW.default;
}, "get")
});
Object.defineProperty(ne, "isNodesEquivalent", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return DW.default;
}, "get")
});
Object.defineProperty(ne, "isPlaceholderType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return wW.default;
}, "get")
});
Object.defineProperty(ne, "isReferenced", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return IW.default;
}, "get")
});
Object.defineProperty(ne, "isScope", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return _W.default;
}, "get")
});
Object.defineProperty(ne, "isSpecifierDefault", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return OW.default;
}, "get")
});
Object.defineProperty(ne, "isType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return NW.default;
}, "get")
});
Object.defineProperty(ne, "isValidES3Identifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return BW.default;
}, "get")
});
Object.defineProperty(ne, "isValidIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kW.default;
}, "get")
});
Object.defineProperty(ne, "isVar", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return FW.default;
}, "get")
});
Object.defineProperty(ne, "matchesPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return jW.default;
}, "get")
});
Object.defineProperty(ne, "prependToMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return pW.default;
}, "get")
});
ne.react = void 0;
Object.defineProperty(ne, "removeComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Z$.default;
}, "get")
});
Object.defineProperty(ne, "removeProperties", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fW.default;
}, "get")
});
Object.defineProperty(ne, "removePropertiesDeep", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dW.default;
}, "get")
});
Object.defineProperty(ne, "removeTypeDuplicates", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return hW.default;
}, "get")
});
Object.defineProperty(ne, "shallowEqual", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return TW.default;
}, "get")
});
Object.defineProperty(ne, "toBindingIdentifierName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return tW.default;
}, "get")
});
Object.defineProperty(ne, "toBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return rW.default;
}, "get")
});
Object.defineProperty(ne, "toComputedKey", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return nW.default;
}, "get")
});
Object.defineProperty(ne, "toExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return sW.default;
}, "get")
});
Object.defineProperty(ne, "toIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return iW.default;
}, "get")
});
Object.defineProperty(ne, "toKeyAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return aW.default;
}, "get")
});
Object.defineProperty(ne, "toStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return oW.default;
}, "get")
});
Object.defineProperty(ne, "traverse", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Il.default;
}, "get")
});
Object.defineProperty(ne, "traverseFast", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return EW.default;
}, "get")
});
Object.defineProperty(ne, "validate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return LW.default;
}, "get")
});
Object.defineProperty(ne, "valueToNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return lW.default;
}, "get")
});
var j$ = w1(), L$ = I1(), M$ = SE(), R$ = xE(), Kd = vE();
Object.keys(Kd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Kd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Kd[e];
}, "get")
});
});
var q$ = PE(), CT = DE(), U$ = OE(), Gd = Mf();
Object.keys(Gd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Gd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Gd[e];
}, "get")
});
});
var Hd = dr();
Object.keys(Hd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Hd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Hd[e];
}, "get")
});
});
var V$ = Zn(), $$ = LE(), W$ = ME(), K$ = RE(), G$ = qE(), H$ = UE(), Y$ = Gf(), J$ = Xf(), X$ = Qf(), z$ = rd(), Q$ = ed(), Z$ = VE(), Yd = $E();
Object.keys(Yd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Yd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Yd[e];
}, "get")
});
});
var Jd = Si();
Object.keys(Jd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Jd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Jd[e];
}, "get")
});
});
var eW = WE(), tW = KE(), rW = ad(), nW = GE(), sW = HE(), iW = ud(), aW = QE(), oW = ZE(), lW = eT(), Xd = wr();
Object.keys(Xd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Xd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Xd[e];
}, "get")
});
});
var uW = tT(), cW = nT(), pW = sT(), fW = md(), dW = gd(), hW = Bf(), mW = iT(), yW = La(), gW = aT(), bW = lT(), Il = uT();
Object.keys(Il).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === Il[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Il[e];
}, "get")
});
});
var EW = dd(), TW = ol(), SW = bi(), xW = cT(), vW = dT(), PW = hT(), AW = Od(), CW = _f(), DW = yT(), wW = ef(), IW = gT(), _W = bT(), OW = TT(),
NW = ul(), BW = ST(), kW = Ti(), FW = vT(), jW = Yp(), LW = dl(), MW = Xp(), zd = Tt();
Object.keys(zd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(es, e) || e in ne && ne[e] === zd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return zd[e];
}, "get")
});
});
var RW = va(), qW = AT(), USe = ne.react = {
isReactComponent: j$.default,
isCompatTag: L$.default,
buildChildren: M$.default
};
ne.toSequenceExpression = qW.default;
process.env.BABEL_TYPES_8_BREAKING && console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-releas\
e instead!");
});
// ../node_modules/@babel/template/lib/formatters.js
var DT = P((_r) => {
"use strict";
Object.defineProperty(_r, "__esModule", {
value: !0
});
_r.statements = _r.statement = _r.smart = _r.program = _r.expression = void 0;
var UW = Ce(), {
assertExpressionStatement: VW
} = UW;
function Qd(e) {
return {
code: /* @__PURE__ */ i((t) => `/* @babel/template */;
${t}`, "code"),
validate: /* @__PURE__ */ i(() => {
}, "validate"),
unwrap: /* @__PURE__ */ i((t) => e(t.program.body.slice(1)), "unwrap")
};
}
i(Qd, "makeStatementFormatter");
var WSe = _r.smart = Qd((e) => e.length > 1 ? e : e[0]), KSe = _r.statements = Qd((e) => e), GSe = _r.statement = Qd((e) => {
if (e.length === 0)
throw new Error("Found nothing to return.");
if (e.length > 1)
throw new Error("Found multiple statements but wanted one");
return e[0];
}), $W = _r.expression = {
code: /* @__PURE__ */ i((e) => `(
${e}
)`, "code"),
validate: /* @__PURE__ */ i((e) => {
if (e.program.body.length > 1)
throw new Error("Found multiple statements but wanted one");
if ($W.unwrap(e).start === 0)
throw new Error("Parse result included parens.");
}, "validate"),
unwrap: /* @__PURE__ */ i(({
program: e
}) => {
let [t] = e.body;
return VW(t), t.expression;
}, "unwrap")
}, HSe = _r.program = {
code: /* @__PURE__ */ i((e) => e, "code"),
validate: /* @__PURE__ */ i(() => {
}, "validate"),
unwrap: /* @__PURE__ */ i((e) => e.program, "unwrap")
};
});
// ../node_modules/@babel/template/lib/options.js
var _l = P((Ma) => {
"use strict";
Object.defineProperty(Ma, "__esModule", {
value: !0
});
Ma.merge = GW;
Ma.normalizeReplacements = YW;
Ma.validate = HW;
var WW = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"];
function KW(e, t) {
if (e == null) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (t.indexOf(n) !== -1) continue;
r[n] = e[n];
}
return r;
}
i(KW, "_objectWithoutPropertiesLoose");
function GW(e, t) {
let {
placeholderWhitelist: r = e.placeholderWhitelist,
placeholderPattern: n = e.placeholderPattern,
preserveComments: s = e.preserveComments,
syntacticPlaceholders: a = e.syntacticPlaceholders
} = t;
return {
parser: Object.assign({}, e.parser, t.parser),
placeholderWhitelist: r,
placeholderPattern: n,
preserveComments: s,
syntacticPlaceholders: a
};
}
i(GW, "merge");
function HW(e) {
if (e != null && typeof e != "object")
throw new Error("Unknown template options.");
let t = e || {}, {
placeholderWhitelist: r,
placeholderPattern: n,
preserveComments: s,
syntacticPlaceholders: a
} = t, o = KW(t, WW);
if (r != null && !(r instanceof Set))
throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");
if (n != null && !(n instanceof RegExp) && n !== !1)
throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");
if (s != null && typeof s != "boolean")
throw new Error("'.preserveComments' must be a boolean, null, or undefined");
if (a != null && typeof a != "boolean")
throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");
if (a === !0 && (r != null || n != null))
throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");
return {
parser: o,
placeholderWhitelist: r || void 0,
placeholderPattern: n ?? void 0,
preserveComments: s ?? void 0,
syntacticPlaceholders: a ?? void 0
};
}
i(HW, "validate");
function YW(e) {
if (Array.isArray(e))
return e.reduce((t, r, n) => (t["$" + n] = r, t), {});
if (typeof e == "object" || e == null)
return e || void 0;
throw new Error("Template replacements must be an array, object, null, or undefined");
}
i(YW, "normalizeReplacements");
});
// ../node_modules/@babel/parser/lib/index.js
var Ms = P((Ya) => {
"use strict";
Object.defineProperty(Ya, "__esModule", {
value: !0
});
function JW(e, t) {
if (e == null) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (t.indexOf(n) !== -1) continue;
r[n] = e[n];
}
return r;
}
i(JW, "_objectWithoutPropertiesLoose");
var cn = class {
static {
i(this, "Position");
}
constructor(t, r, n) {
this.line = void 0, this.column = void 0, this.index = void 0, this.line = t, this.column = r, this.index = n;
}
}, _i = class {
static {
i(this, "SourceLocation");
}
constructor(t, r) {
this.start = void 0, this.end = void 0, this.filename = void 0, this.identifierName = void 0, this.start = t, this.end = r;
}
};
function ar(e, t) {
let {
line: r,
column: n,
index: s
} = e;
return new cn(r, n + t, s + t);
}
i(ar, "createPositionWithColumnOffset");
var wT = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", XW = {
ImportMetaOutsideModule: {
message: `import.meta may appear only with 'sourceType: "module"'`,
code: wT
},
ImportOutsideModule: {
message: `'import' and 'export' may appear only with 'sourceType: "module"'`,
code: wT
}
}, IT = {
ArrayPattern: "array destructuring pattern",
AssignmentExpression: "assignment expression",
AssignmentPattern: "assignment expression",
ArrowFunctionExpression: "arrow function expression",
ConditionalExpression: "conditional expression",
CatchClause: "catch clause",
ForOfStatement: "for-of statement",
ForInStatement: "for-in statement",
ForStatement: "for-loop",
FormalParameters: "function parameter list",
Identifier: "identifier",
ImportSpecifier: "import specifier",
ImportDefaultSpecifier: "import default specifier",
ImportNamespaceSpecifier: "import namespace specifier",
ObjectPattern: "object destructuring pattern",
ParenthesizedExpression: "parenthesized expression",
RestElement: "rest element",
UpdateExpression: {
true: "prefix operation",
false: "postfix operation"
},
VariableDeclarator: "variable declaration",
YieldExpression: "yield expression"
}, Bl = /* @__PURE__ */ i((e) => e.type === "UpdateExpression" ? IT.UpdateExpression[`${e.prefix}`] : IT[e.type], "toNodeDescription"), zW = {
AccessorIsGenerator: /* @__PURE__ */ i(({
kind: e
}) => `A ${e}ter cannot be a generator.`, "AccessorIsGenerator"),
ArgumentsInClass: "'arguments' is only allowed in functions and class methods.",
AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.",
AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.",
AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.",
AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.",
AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.",
AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.",
BadGetterArity: "A 'get' accessor must not have any formal parameters.",
BadSetterArity: "A 'set' accessor must have exactly one formal parameter.",
BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.",
ConstructorClassField: "Classes may not have a field named 'constructor'.",
ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.",
ConstructorIsAccessor: "Class constructor may not be an accessor.",
ConstructorIsAsync: "Constructor can't be an async function.",
ConstructorIsGenerator: "Constructor can't be a generator.",
DeclarationMissingInitializer: /* @__PURE__ */ i(({
kind: e
}) => `Missing initializer in ${e} declaration.`, "DeclarationMissingInitializer"),
DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(deco\
rator)(args)'.",
DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use\
the 'export @decorator class {}' syntax.",
DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the s\
ame time.",
DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",
DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use \
the '@decorator export class {}' syntax.",
DecoratorSemicolon: "Decorators must not be followed by a semicolon.",
DecoratorStaticBlock: "Decorators can't be used with a static block.",
DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.',
DeletePrivateField: "Deleting a private field is not allowed.",
DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.",
DuplicateConstructor: "Duplicate constructor in the same class.",
DuplicateDefaultExport: "Only one default export allowed per module.",
DuplicateExport: /* @__PURE__ */ i(({
exportName: e
}) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"),
DuplicateProto: "Redefinition of __proto__ property.",
DuplicateRegExpFlags: "Duplicate regular expression flag.",
DynamicImportPhaseRequiresImportExpressions: /* @__PURE__ */ i(({
phase: e
}) => `'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`, "DynamicImportPhaseRequiresImportExpress\
ions"),
ElementAfterRest: "Rest element must be last element.",
EscapedCharNotAnIdentifier: "Invalid Unicode escape.",
ExportBindingIsString: /* @__PURE__ */ i(({
localName: e,
exportName: t
}) => `A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`, "ExportBindingIsString"),
ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.",
ForInOfLoopInitializer: /* @__PURE__ */ i(({
type: e
}) => `'${e === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, "ForInOfLoopInitialize\
r"),
ForInUsing: "For-in loop may not start with 'using' declaration.",
ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.",
ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.",
GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.",
IllegalBreakContinue: /* @__PURE__ */ i(({
type: e
}) => `Unsyntactic ${e === "BreakStatement" ? "break" : "continue"}.`, "IllegalBreakContinue"),
IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.",
IllegalReturn: "'return' outside of function.",
ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You \
can enable the `deprecatedImportAssert` parser plugin to suppress this error.",
ImportBindingIsString: /* @__PURE__ */ i(({
importName: e
}) => `A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"),
ImportCallArity: "`import()` requires exactly one or two arguments.",
ImportCallNotNewExpression: "Cannot use new with import(...).",
ImportCallSpreadArgument: "`...` is not allowed in `import()`.",
ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.",
ImportReflectionHasAssertion: "`import module x` cannot have assertions.",
ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.',
IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.",
InvalidBigIntLiteral: "Invalid BigIntLiteral.",
InvalidCodePoint: "Code point out of bounds.",
InvalidCoverInitializedName: "Invalid shorthand property initializer.",
InvalidDecimal: "Invalid decimal.",
InvalidDigit: /* @__PURE__ */ i(({
radix: e
}) => `Expected number in radix ${e}.`, "InvalidDigit"),
InvalidEscapeSequence: "Bad character escape sequence.",
InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.",
InvalidEscapedReservedWord: /* @__PURE__ */ i(({
reservedWord: e
}) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"),
InvalidIdentifier: /* @__PURE__ */ i(({
identifierName: e
}) => `Invalid identifier ${e}.`, "InvalidIdentifier"),
InvalidLhs: /* @__PURE__ */ i(({
ancestor: e
}) => `Invalid left-hand side in ${Bl(e)}.`, "InvalidLhs"),
InvalidLhsBinding: /* @__PURE__ */ i(({
ancestor: e
}) => `Binding invalid left-hand side in ${Bl(e)}.`, "InvalidLhsBinding"),
InvalidLhsOptionalChaining: /* @__PURE__ */ i(({
ancestor: e
}) => `Invalid optional chaining in the left-hand side of ${Bl(e)}.`, "InvalidLhsOptionalChaining"),
InvalidNumber: "Invalid number.",
InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.",
InvalidOrUnexpectedToken: /* @__PURE__ */ i(({
unexpected: e
}) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"),
InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.",
InvalidPrivateFieldResolution: /* @__PURE__ */ i(({
identifierName: e
}) => `Private name #${e} is not defined.`, "InvalidPrivateFieldResolution"),
InvalidPropertyBindingPattern: "Binding member expression.",
InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.",
InvalidRestAssignmentPattern: "Invalid rest operator's argument.",
LabelRedeclaration: /* @__PURE__ */ i(({
labelName: e
}) => `Label '${e}' is already declared.`, "LabelRedeclaration"),
LetInLexicalBinding: "'let' is disallowed as a lexically bound name.",
LineTerminatorBeforeArrow: "No line break is allowed before '=>'.",
MalformedRegExpFlags: "Invalid regular expression flag.",
MissingClassName: "A class name is required.",
MissingEqInAssignment: "Only '=' operator can be used for specifying default value.",
MissingSemicolon: "Missing semicolon.",
MissingPlugin: /* @__PURE__ */ i(({
missingPlugin: e
}) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"),
MissingOneOfPlugins: /* @__PURE__ */ i(({
missingPlugin: e
}) => `This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t) => JSON.stringify(t)).join(", ")}.`,
"MissingOneOfPlugins"),
MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.",
MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.",
ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.",
ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.",
ModuleAttributesWithDuplicateKeys: /* @__PURE__ */ i(({
key: e
}) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"),
ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ i(({
surrogateCharCode: e
}) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"),
ModuleExportUndefined: /* @__PURE__ */ i(({
localName: e
}) => `Export '${e}' is not defined.`, "ModuleExportUndefined"),
MultipleDefaultsInSwitch: "Multiple default clauses.",
NewlineAfterThrow: "Illegal newline after throw.",
NoCatchOrFinally: "Missing catch or finally clause.",
NumberIdentifier: "Identifier directly after number.",
NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",
ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.",
OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.",
OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.",
OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.",
ParamDupe: "Argument name clash.",
PatternHasAccessor: "Object pattern can't contain getter or setter.",
PatternHasMethod: "Object pattern can't contain methods.",
PrivateInExpectedIn: /* @__PURE__ */ i(({
identifierName: e
}) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\
ctedIn"),
PrivateNameRedeclaration: /* @__PURE__ */ i(({
identifierName: e
}) => `Duplicate private name #${e}.`, "PrivateNameRedeclaration"),
RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 're\
cordAndTuple' plugin is set to 'bar'.",
RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the\
'recordAndTuple' plugin is set to 'bar'.",
RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of th\
e 'recordAndTuple' plugin is set to 'hash'.",
RecordNoProto: "'__proto__' is not allowed in Record expressions.",
RestTrailingComma: "Unexpected trailing comma after rest element.",
SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.",
SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if sta\
tement.",
SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.',
StaticPrototype: "Classes may not have static property named prototype.",
SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or n\
ot extending another class?",
SuperPrivateField: "Private fields can't be accessed on super.",
TrailingDecorator: "Decorators must be attached to a class element.",
TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'reco\
rdAndTuple' plugin is set to 'bar'.",
TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the '\
recordAndTuple' plugin is set to 'bar'.",
TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the \
'recordAndTuple' plugin is set to 'hash'.",
UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.",
UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',
UnexpectedDigitAfterHash: "Unexpected digit after hash token.",
UnexpectedImportExport: "'import' and 'export' may only appear at the top level.",
UnexpectedKeyword: /* @__PURE__ */ i(({
keyword: e
}) => `Unexpected keyword '${e}'.`, "UnexpectedKeyword"),
UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.",
UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.",
UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.",
UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.",
UnexpectedPrivateField: "Unexpected private name.",
UnexpectedReservedWord: /* @__PURE__ */ i(({
reservedWord: e
}) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"),
UnexpectedSuper: "'super' is only allowed in object methods and classes.",
UnexpectedToken: /* @__PURE__ */ i(({
expected: e,
unexpected: t
}) => `Unexpected token${t ? ` '${t}'.` : ""}${e ? `, expected "${e}"` : ""}`, "UnexpectedToken"),
UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",
UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.",
UnsupportedBind: "Binding should be performed on object property.",
UnsupportedDecoratorExport: "A decorated export must export a class declaration.",
UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.",
UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.",
UnsupportedMetaProperty: /* @__PURE__ */ i(({
target: e,
onlyValidPropertyName: t
}) => `The only valid meta property for ${e} is ${e}.${t}.`, "UnsupportedMetaProperty"),
UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.",
UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.",
UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",
UnterminatedComment: "Unterminated comment.",
UnterminatedRegExp: "Unterminated regular expression.",
UnterminatedString: "Unterminated string constant.",
UnterminatedTemplate: "Unterminated template.",
UsingDeclarationExport: "Using declaration cannot be exported.",
UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.",
VarRedeclaration: /* @__PURE__ */ i(({
identifierName: e
}) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"),
YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.",
YieldInParameter: "Yield expression is not allowed in formal parameters.",
YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.",
ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0."
}, QW = {
StrictDelete: "Deleting local variable in strict mode.",
StrictEvalArguments: /* @__PURE__ */ i(({
referenceName: e
}) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"),
StrictEvalArgumentsBinding: /* @__PURE__ */ i(({
bindingName: e
}) => `Binding '${e}' in strict mode.`, "StrictEvalArgumentsBinding"),
StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.",
StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.",
StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.",
StrictWith: "'with' in strict mode."
}, ZW = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), eK = Object.
assign({
PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due \
to its loose operator precedence.",
PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" opt\
ion.',
PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.",
PipeTopicUnconfiguredToken: /* @__PURE__ */ i(({
token: e
}) => `Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "propo\
sal": "hack", "topicToken": "${e}" }.`, "PipeTopicUnconfiguredToken"),
PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",
PipeUnparenthesizedBody: /* @__PURE__ */ i(({
type: e
}) => `Hack-style pipe body cannot be an unparenthesized ${Bl({
type: e
})}; please wrap it in parentheses.`, "PipeUnparenthesizedBody")
}, {
PipelineBodyNoArrow: 'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',
PipelineBodySequenceExpression: "Pipeline body may not be a comma-separated sequence expression.",
PipelineHeadSequenceExpression: "Pipeline head should not be a comma-separated sequence expression.",
PipelineTopicUnused: "Pipeline is in topic style but does not use topic reference.",
PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "sma\
rt" option.'
}), tK = ["message"];
function _T(e, t, r) {
Object.defineProperty(e, t, {
enumerable: !1,
configurable: !0,
value: r
});
}
i(_T, "defineHidden");
function rK({
toMessage: e,
code: t,
reasonCode: r,
syntaxPlugin: n
}) {
let s = r === "MissingPlugin" || r === "MissingOneOfPlugins";
{
let a = {
AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumRefer\
ence",
SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
};
a[r] && (r = a[r]);
}
return /* @__PURE__ */ i(function a(o, l) {
let u = new SyntaxError();
return u.code = t, u.reasonCode = r, u.loc = o, u.pos = o.index, u.syntaxPlugin = n, s && (u.missingPlugin = l.missingPlugin), _T(u, "\
clone", /* @__PURE__ */ i(function(p = {}) {
var f;
let {
line: h,
column: y,
index: E
} = (f = p.loc) != null ? f : o;
return a(new cn(h, y, E), Object.assign({}, l, p.details));
}, "clone")), _T(u, "details", l), Object.defineProperty(u, "message", {
configurable: !0,
get() {
let c = `${e(l)} (${o.line}:${o.column})`;
return this.message = c, c;
},
set(c) {
Object.defineProperty(this, "message", {
value: c,
writable: !0
});
}
}), u;
}, "constructor");
}
i(rK, "toParseErrorConstructor");
function wn(e, t) {
if (Array.isArray(e))
return (n) => wn(n, e[0]);
let r = {};
for (let n of Object.keys(e)) {
let s = e[n], a = typeof s == "string" ? {
message: /* @__PURE__ */ i(() => s, "message")
} : typeof s == "function" ? {
message: s
} : s, {
message: o
} = a, l = JW(a, tK), u = typeof o == "string" ? () => o : o;
r[n] = rK(Object.assign({
code: "BABEL_PARSER_SYNTAX_ERROR",
reasonCode: n,
toMessage: u
}, t ? {
syntaxPlugin: t
} : {}, l));
}
return r;
}
i(wn, "ParseErrorEnum");
var N = Object.assign({}, wn(XW), wn(zW), wn(QW), wn`pipelineOperator`(eK));
function nK() {
return {
sourceType: "script",
sourceFilename: void 0,
startIndex: 0,
startColumn: 0,
startLine: 1,
allowAwaitOutsideFunction: !1,
allowReturnOutsideFunction: !1,
allowNewTargetOutsideFunction: !1,
allowImportExportEverywhere: !1,
allowSuperOutsideMethod: !1,
allowUndeclaredExports: !1,
allowYieldOutsideFunction: !1,
plugins: [],
strictMode: null,
ranges: !1,
tokens: !1,
createImportExpressions: !1,
createParenthesizedExpressions: !1,
errorRecovery: !1,
attachComment: !0,
annexB: !0
};
}
i(nK, "createDefaultOptions");
function sK(e) {
let t = nK();
if (e == null)
return t;
if (e.annexB != null && e.annexB !== !1)
throw new Error("The `annexB` option can only be set to `false`.");
for (let r of Object.keys(t))
e[r] != null && (t[r] = e[r]);
if (t.startLine === 1)
e.startIndex == null && t.startColumn > 0 ? t.startIndex = t.startColumn : e.startColumn == null && t.startIndex > 0 && (t.startColumn =
t.startIndex);
else if ((e.startColumn == null || e.startIndex == null) && e.startIndex != null)
throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
return t;
}
i(sK, "getOptions");
var {
defineProperty: iK
} = Object, OT = /* @__PURE__ */ i((e, t) => {
e && iK(e, t, {
enumerable: !1,
value: e[t]
});
}, "toUnenumerable");
function Ra(e) {
return OT(e.loc.start, "index"), OT(e.loc.end, "index"), e;
}
i(Ra, "toESTreeLocation");
var aK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "ESTreeParserMixin");
}
parse() {
let r = Ra(super.parse());
return this.optionFlags & 256 && (r.tokens = r.tokens.map(Ra)), r;
}
parseRegExpLiteral({
pattern: r,
flags: n
}) {
let s = null;
try {
s = new RegExp(r, n);
} catch {
}
let a = this.estreeParseLiteral(s);
return a.regex = {
pattern: r,
flags: n
}, a;
}
parseBigIntLiteral(r) {
let n;
try {
n = BigInt(r);
} catch {
n = null;
}
let s = this.estreeParseLiteral(n);
return s.bigint = String(s.value || r), s;
}
parseDecimalLiteral(r) {
let s = this.estreeParseLiteral(null);
return s.decimal = String(s.value || r), s;
}
estreeParseLiteral(r) {
return this.parseLiteral(r, "Literal");
}
parseStringLiteral(r) {
return this.estreeParseLiteral(r);
}
parseNumericLiteral(r) {
return this.estreeParseLiteral(r);
}
parseNullLiteral() {
return this.estreeParseLiteral(null);
}
parseBooleanLiteral(r) {
return this.estreeParseLiteral(r);
}
directiveToStmt(r) {
let n = r.value;
delete r.value, n.type = "Literal", n.raw = n.extra.raw, n.value = n.extra.expressionValue;
let s = r;
return s.type = "ExpressionStatement", s.expression = n, s.directive = n.extra.rawValue, delete n.extra, s;
}
initFunction(r, n) {
super.initFunction(r, n), r.expression = !1;
}
checkDeclaration(r) {
r != null && this.isObjectProperty(r) ? this.checkDeclaration(r.value) : super.checkDeclaration(r);
}
getObjectOrClassMethodParams(r) {
return r.value.params;
}
isValidDirective(r) {
var n;
return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((n = r.expression.
extra) != null && n.parenthesized);
}
parseBlockBody(r, n, s, a, o) {
super.parseBlockBody(r, n, s, a, o);
let l = r.directives.map((u) => this.directiveToStmt(u));
r.body = l.concat(r.body), delete r.directives;
}
parsePrivateName() {
let r = super.parsePrivateName();
return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r;
}
convertPrivateNameToPrivateIdentifier(r) {
let n = super.getPrivateNameSV(r);
return r = r, delete r.id, r.name = n, r.type = "PrivateIdentifier", r;
}
isPrivateName(r) {
return this.getPluginOption("estree", "classFeatures") ? r.type === "PrivateIdentifier" : super.isPrivateName(r);
}
getPrivateNameSV(r) {
return this.getPluginOption("estree", "classFeatures") ? r.name : super.getPrivateNameSV(r);
}
parseLiteral(r, n) {
let s = super.parseLiteral(r, n);
return s.raw = s.extra.raw, delete s.extra, s;
}
parseFunctionBody(r, n, s = !1) {
super.parseFunctionBody(r, n, s), r.expression = r.body.type !== "BlockStatement";
}
parseMethod(r, n, s, a, o, l, u = !1) {
let c = this.startNode();
c.kind = r.kind, c = super.parseMethod(c, n, s, a, o, l, u), c.type = "FunctionExpression", delete c.kind, r.value = c;
let {
typeParameters: p
} = r;
return p && (delete r.typeParameters, c.typeParameters = p, this.resetStartLocationFromNode(c, p)), l === "ClassPrivateMethod" && (r.computed =
!1), this.finishNode(r, "MethodDefinition");
}
nameIsConstructor(r) {
return r.type === "Literal" ? r.value === "constructor" : super.nameIsConstructor(r);
}
parseClassProperty(...r) {
let n = super.parseClassProperty(...r);
return this.getPluginOption("estree", "classFeatures") && (n.type = "PropertyDefinition"), n;
}
parseClassPrivateProperty(...r) {
let n = super.parseClassPrivateProperty(...r);
return this.getPluginOption("estree", "classFeatures") && (n.type = "PropertyDefinition", n.computed = !1), n;
}
parseClassAccessorProperty(r) {
let n = super.parseClassAccessorProperty(r);
return this.getPluginOption("estree", "classFeatures") && (n.type = "AccessorProperty"), n;
}
parseObjectMethod(r, n, s, a, o) {
let l = super.parseObjectMethod(r, n, s, a, o);
return l && (l.type = "Property", l.kind === "method" && (l.kind = "init"), l.shorthand = !1), l;
}
parseObjectProperty(r, n, s, a) {
let o = super.parseObjectProperty(r, n, s, a);
return o && (o.kind = "init", o.type = "Property"), o;
}
isValidLVal(r, n, s) {
return r === "Property" ? "value" : super.isValidLVal(r, n, s);
}
isAssignable(r, n) {
return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, n) : super.isAssignable(r, n);
}
toAssignable(r, n = !1) {
if (r != null && this.isObjectProperty(r)) {
let {
key: s,
value: a
} = r;
this.isPrivateName(s) && this.classScope.usePrivateName(this.getPrivateNameSV(s), s.loc.start), this.toAssignable(a, n);
} else
super.toAssignable(r, n);
}
toAssignableObjectExpressionProp(r, n, s) {
r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(N.PatternHasAccessor, r.key) : r.type === "Property" && r.
method ? this.raise(N.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, n, s);
}
finishCallExpression(r, n) {
let s = super.finishCallExpression(r, n);
if (s.callee.type === "Import") {
var a, o;
s.type = "ImportExpression", s.source = s.arguments[0], s.options = (a = s.arguments[1]) != null ? a : null, s.attributes = (o = s.arguments[1]) !=
null ? o : null, delete s.arguments, delete s.callee;
}
return s;
}
toReferencedArguments(r) {
r.type !== "ImportExpression" && super.toReferencedArguments(r);
}
parseExport(r, n) {
let s = this.state.lastTokStartLoc, a = super.parseExport(r, n);
switch (a.type) {
case "ExportAllDeclaration":
a.exported = null;
break;
case "ExportNamedDeclaration":
a.specifiers.length === 1 && a.specifiers[0].type === "ExportNamespaceSpecifier" && (a.type = "ExportAllDeclaration", a.exported =
a.specifiers[0].exported, delete a.specifiers);
case "ExportDefaultDeclaration":
{
var o;
let {
declaration: l
} = a;
l?.type === "ClassDeclaration" && ((o = l.decorators) == null ? void 0 : o.length) > 0 && l.start === a.start && this.resetStartLocation(
a, s);
}
break;
}
return a;
}
parseSubscript(r, n, s, a) {
let o = super.parseSubscript(r, n, s, a);
if (a.optionalChainMember) {
if ((o.type === "OptionalMemberExpression" || o.type === "OptionalCallExpression") && (o.type = o.type.substring(8)), a.stop) {
let l = this.startNodeAtNode(o);
return l.expression = o, this.finishNode(l, "ChainExpression");
}
} else (o.type === "MemberExpression" || o.type === "CallExpression") && (o.optional = !1);
return o;
}
isOptionalMemberExpression(r) {
return r.type === "ChainExpression" ? r.expression.type === "MemberExpression" : super.isOptionalMemberExpression(r);
}
hasPropertyAsPrivateName(r) {
return r.type === "ChainExpression" && (r = r.expression), super.hasPropertyAsPrivateName(r);
}
isObjectProperty(r) {
return r.type === "Property" && r.kind === "init" && !r.method;
}
isObjectMethod(r) {
return r.type === "Property" && (r.method || r.kind === "get" || r.kind === "set");
}
finishNodeAt(r, n, s) {
return Ra(super.finishNodeAt(r, n, s));
}
resetStartLocation(r, n) {
super.resetStartLocation(r, n), Ra(r);
}
resetEndLocation(r, n = this.state.lastTokEndLoc) {
super.resetEndLocation(r, n), Ra(r);
}
}, "estree"), Ls = class {
static {
i(this, "TokContext");
}
constructor(t, r) {
this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r;
}
}, Qe = {
brace: new Ls("{"),
j_oTag: new Ls("...", !0)
};
Qe.template = new Ls("`", !0);
var qe = !0, ie = !0, Zd = !0, qa = !0, ts = !0, oK = !0, jl = class {
static {
i(this, "ExportedTokenType");
}
constructor(t, r = {}) {
this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop =
void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = r.keyword,
this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.rightAssociative = !!r.rightAssociative, this.isLoop = !!r.isLoop,
this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop != null ? r.binop : null, this.
updateContext = null;
}
}, vh = /* @__PURE__ */ new Map();
function He(e, t = {}) {
t.keyword = e;
let r = Se(e, t);
return vh.set(e, r), r;
}
i(He, "createKeyword");
function ir(e, t) {
return Se(e, {
beforeExpr: qe,
binop: t
});
}
i(ir, "createBinop");
var Wa = -1, Cn = [], Ph = [], Ah = [], Ch = [], Dh = [], wh = [];
function Se(e, t = {}) {
var r, n, s, a;
return ++Wa, Ph.push(e), Ah.push((r = t.binop) != null ? r : -1), Ch.push((n = t.beforeExpr) != null ? n : !1), Dh.push((s = t.startsExpr) !=
null ? s : !1), wh.push((a = t.prefix) != null ? a : !1), Cn.push(new jl(e, t)), Wa;
}
i(Se, "createToken");
function Re(e, t = {}) {
var r, n, s, a;
return ++Wa, vh.set(e, Wa), Ph.push(e), Ah.push((r = t.binop) != null ? r : -1), Ch.push((n = t.beforeExpr) != null ? n : !1), Dh.push((s =
t.startsExpr) != null ? s : !1), wh.push((a = t.prefix) != null ? a : !1), Cn.push(new jl("name", t)), Wa;
}
i(Re, "createKeywordLike");
var lK = {
bracketL: Se("[", {
beforeExpr: qe,
startsExpr: ie
}),
bracketHashL: Se("#[", {
beforeExpr: qe,
startsExpr: ie
}),
bracketBarL: Se("[|", {
beforeExpr: qe,
startsExpr: ie
}),
bracketR: Se("]"),
bracketBarR: Se("|]"),
braceL: Se("{", {
beforeExpr: qe,
startsExpr: ie
}),
braceBarL: Se("{|", {
beforeExpr: qe,
startsExpr: ie
}),
braceHashL: Se("#{", {
beforeExpr: qe,
startsExpr: ie
}),
braceR: Se("}"),
braceBarR: Se("|}"),
parenL: Se("(", {
beforeExpr: qe,
startsExpr: ie
}),
parenR: Se(")"),
comma: Se(",", {
beforeExpr: qe
}),
semi: Se(";", {
beforeExpr: qe
}),
colon: Se(":", {
beforeExpr: qe
}),
doubleColon: Se("::", {
beforeExpr: qe
}),
dot: Se("."),
question: Se("?", {
beforeExpr: qe
}),
questionDot: Se("?."),
arrow: Se("=>", {
beforeExpr: qe
}),
template: Se("template"),
ellipsis: Se("...", {
beforeExpr: qe
}),
backQuote: Se("`", {
startsExpr: ie
}),
dollarBraceL: Se("${", {
beforeExpr: qe,
startsExpr: ie
}),
templateTail: Se("...`", {
startsExpr: ie
}),
templateNonTail: Se("...${", {
beforeExpr: qe,
startsExpr: ie
}),
at: Se("@"),
hash: Se("#", {
startsExpr: ie
}),
interpreterDirective: Se("#!..."),
eq: Se("=", {
beforeExpr: qe,
isAssign: qa
}),
assign: Se("_=", {
beforeExpr: qe,
isAssign: qa
}),
slashAssign: Se("_=", {
beforeExpr: qe,
isAssign: qa
}),
xorAssign: Se("_=", {
beforeExpr: qe,
isAssign: qa
}),
moduloAssign: Se("_=", {
beforeExpr: qe,
isAssign: qa
}),
incDec: Se("++/--", {
prefix: ts,
postfix: oK,
startsExpr: ie
}),
bang: Se("!", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
tilde: Se("~", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
doubleCaret: Se("^^", {
startsExpr: ie
}),
doubleAt: Se("@@", {
startsExpr: ie
}),
pipeline: ir("|>", 0),
nullishCoalescing: ir("??", 1),
logicalOR: ir("||", 1),
logicalAND: ir("&&", 2),
bitwiseOR: ir("|", 3),
bitwiseXOR: ir("^", 4),
bitwiseAND: ir("&", 5),
equality: ir("==/!=/===/!==", 6),
lt: ir(">/<=/>=", 7),
gt: ir(">/<=/>=", 7),
relational: ir(">/<=/>=", 7),
bitShift: ir("<>>/>>>", 8),
bitShiftL: ir("<>>/>>>", 8),
bitShiftR: ir("<>>/>>>", 8),
plusMin: Se("+/-", {
beforeExpr: qe,
binop: 9,
prefix: ts,
startsExpr: ie
}),
modulo: Se("%", {
binop: 10,
startsExpr: ie
}),
star: Se("*", {
binop: 10
}),
slash: ir("/", 10),
exponent: Se("**", {
beforeExpr: qe,
binop: 11,
rightAssociative: !0
}),
_in: He("in", {
beforeExpr: qe,
binop: 7
}),
_instanceof: He("instanceof", {
beforeExpr: qe,
binop: 7
}),
_break: He("break"),
_case: He("case", {
beforeExpr: qe
}),
_catch: He("catch"),
_continue: He("continue"),
_debugger: He("debugger"),
_default: He("default", {
beforeExpr: qe
}),
_else: He("else", {
beforeExpr: qe
}),
_finally: He("finally"),
_function: He("function", {
startsExpr: ie
}),
_if: He("if"),
_return: He("return", {
beforeExpr: qe
}),
_switch: He("switch"),
_throw: He("throw", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
_try: He("try"),
_var: He("var"),
_const: He("const"),
_with: He("with"),
_new: He("new", {
beforeExpr: qe,
startsExpr: ie
}),
_this: He("this", {
startsExpr: ie
}),
_super: He("super", {
startsExpr: ie
}),
_class: He("class", {
startsExpr: ie
}),
_extends: He("extends", {
beforeExpr: qe
}),
_export: He("export"),
_import: He("import", {
startsExpr: ie
}),
_null: He("null", {
startsExpr: ie
}),
_true: He("true", {
startsExpr: ie
}),
_false: He("false", {
startsExpr: ie
}),
_typeof: He("typeof", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
_void: He("void", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
_delete: He("delete", {
beforeExpr: qe,
prefix: ts,
startsExpr: ie
}),
_do: He("do", {
isLoop: Zd,
beforeExpr: qe
}),
_for: He("for", {
isLoop: Zd
}),
_while: He("while", {
isLoop: Zd
}),
_as: Re("as", {
startsExpr: ie
}),
_assert: Re("assert", {
startsExpr: ie
}),
_async: Re("async", {
startsExpr: ie
}),
_await: Re("await", {
startsExpr: ie
}),
_defer: Re("defer", {
startsExpr: ie
}),
_from: Re("from", {
startsExpr: ie
}),
_get: Re("get", {
startsExpr: ie
}),
_let: Re("let", {
startsExpr: ie
}),
_meta: Re("meta", {
startsExpr: ie
}),
_of: Re("of", {
startsExpr: ie
}),
_sent: Re("sent", {
startsExpr: ie
}),
_set: Re("set", {
startsExpr: ie
}),
_source: Re("source", {
startsExpr: ie
}),
_static: Re("static", {
startsExpr: ie
}),
_using: Re("using", {
startsExpr: ie
}),
_yield: Re("yield", {
startsExpr: ie
}),
_asserts: Re("asserts", {
startsExpr: ie
}),
_checks: Re("checks", {
startsExpr: ie
}),
_exports: Re("exports", {
startsExpr: ie
}),
_global: Re("global", {
startsExpr: ie
}),
_implements: Re("implements", {
startsExpr: ie
}),
_intrinsic: Re("intrinsic", {
startsExpr: ie
}),
_infer: Re("infer", {
startsExpr: ie
}),
_is: Re("is", {
startsExpr: ie
}),
_mixins: Re("mixins", {
startsExpr: ie
}),
_proto: Re("proto", {
startsExpr: ie
}),
_require: Re("require", {
startsExpr: ie
}),
_satisfies: Re("satisfies", {
startsExpr: ie
}),
_keyof: Re("keyof", {
startsExpr: ie
}),
_readonly: Re("readonly", {
startsExpr: ie
}),
_unique: Re("unique", {
startsExpr: ie
}),
_abstract: Re("abstract", {
startsExpr: ie
}),
_declare: Re("declare", {
startsExpr: ie
}),
_enum: Re("enum", {
startsExpr: ie
}),
_module: Re("module", {
startsExpr: ie
}),
_namespace: Re("namespace", {
startsExpr: ie
}),
_interface: Re("interface", {
startsExpr: ie
}),
_type: Re("type", {
startsExpr: ie
}),
_opaque: Re("opaque", {
startsExpr: ie
}),
name: Se("name", {
startsExpr: ie
}),
placeholder: Se("%%", {
startsExpr: !0
}),
string: Se("string", {
startsExpr: ie
}),
num: Se("num", {
startsExpr: ie
}),
bigint: Se("bigint", {
startsExpr: ie
}),
decimal: Se("decimal", {
startsExpr: ie
}),
regexp: Se("regexp", {
startsExpr: ie
}),
privateName: Se("#name", {
startsExpr: ie
}),
eof: Se("eof"),
jsxName: Se("jsxName"),
jsxText: Se("jsxText", {
beforeExpr: !0
}),
jsxTagStart: Se("jsxTagStart", {
startsExpr: !0
}),
jsxTagEnd: Se("jsxTagEnd")
};
function Ze(e) {
return e >= 93 && e <= 133;
}
i(Ze, "tokenIsIdentifier");
function uK(e) {
return e <= 92;
}
i(uK, "tokenKeywordOrIdentifierIsKeyword");
function Wr(e) {
return e >= 58 && e <= 133;
}
i(Wr, "tokenIsKeywordOrIdentifier");
function $T(e) {
return e >= 58 && e <= 137;
}
i($T, "tokenIsLiteralPropertyName");
function cK(e) {
return Ch[e];
}
i(cK, "tokenComesBeforeExpression");
function Va(e) {
return Dh[e];
}
i(Va, "tokenCanStartExpression");
function pK(e) {
return e >= 29 && e <= 33;
}
i(pK, "tokenIsAssignment");
function NT(e) {
return e >= 129 && e <= 131;
}
i(NT, "tokenIsFlowInterfaceOrTypeOrOpaque");
function fK(e) {
return e >= 90 && e <= 92;
}
i(fK, "tokenIsLoop");
function Ih(e) {
return e >= 58 && e <= 92;
}
i(Ih, "tokenIsKeyword");
function dK(e) {
return e >= 39 && e <= 59;
}
i(dK, "tokenIsOperator");
function hK(e) {
return e === 34;
}
i(hK, "tokenIsPostfix");
function mK(e) {
return wh[e];
}
i(mK, "tokenIsPrefix");
function yK(e) {
return e >= 121 && e <= 123;
}
i(yK, "tokenIsTSTypeOperator");
function gK(e) {
return e >= 124 && e <= 130;
}
i(gK, "tokenIsTSDeclarationStart");
function ns(e) {
return Ph[e];
}
i(ns, "tokenLabelName");
function kl(e) {
return Ah[e];
}
i(kl, "tokenOperatorPrecedence");
function bK(e) {
return e === 57;
}
i(bK, "tokenIsRightAssociative");
function Ll(e) {
return e >= 24 && e <= 25;
}
i(Ll, "tokenIsTemplate");
function An(e) {
return Cn[e];
}
i(An, "getExportedToken");
Cn[8].updateContext = (e) => {
e.pop();
}, Cn[5].updateContext = Cn[7].updateContext = Cn[23].updateContext = (e) => {
e.push(Qe.brace);
}, Cn[22].updateContext = (e) => {
e[e.length - 1] === Qe.template ? e.pop() : e.push(Qe.template);
}, Cn[143].updateContext = (e) => {
e.push(Qe.j_expr, Qe.j_oTag);
};
var _h = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\
-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\
\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\
\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\
\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\
\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\
-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",
WT = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\
\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\
\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\
-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\
-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", EK = new RegExp("[" + _h + "]"), TK = new RegExp("[" + _h + WT + "]");
_h = WT = null;
var KT = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157,
19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5,
3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7,
2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17,
47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64,
6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45,
52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2,
1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29,
113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071,
18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12,
65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991,
84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30,
2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3,
0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2,
2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153,
7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], SK = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0,
166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2,
9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68,
8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14,
5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2,
7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0,
7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4,
4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10,
9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
function sh(e, t) {
let r = 65536;
for (let n = 0, s = t.length; n < s; n += 2) {
if (r += t[n], r > e) return !1;
if (r += t[n + 1], r >= e) return !0;
}
return !1;
}
i(sh, "isInAstralSet");
function Dn(e) {
return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && EK.test(String.fromCharCode(e)) :
sh(e, KT);
}
i(Dn, "isIdentifierStart");
function Di(e) {
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && TK.test(
String.fromCharCode(e)) : sh(e, KT) || sh(e, SK);
}
i(Di, "isIdentifierChar");
var Oh = {
keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\
ch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false",
"in", "instanceof", "typeof", "void", "delete"],
strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
strictBind: ["eval", "arguments"]
}, xK = new Set(Oh.keyword), vK = new Set(Oh.strict), PK = new Set(Oh.strictBind);
function GT(e, t) {
return t && e === "await" || e === "enum";
}
i(GT, "isReservedWord");
function HT(e, t) {
return GT(e, t) || vK.has(e);
}
i(HT, "isStrictReservedWord");
function YT(e) {
return PK.has(e);
}
i(YT, "isStrictBindOnlyReservedWord");
function JT(e, t) {
return HT(e, t) || YT(e);
}
i(JT, "isStrictBindReservedWord");
function AK(e) {
return xK.has(e);
}
i(AK, "isKeyword");
function CK(e, t, r) {
return e === 64 && t === 64 && Dn(r);
}
i(CK, "isIteratorStart");
var DK = /* @__PURE__ */ new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function",
"if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import",
"null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protecte\
d", "public", "static", "yield", "eval", "arguments", "enum", "await"]);
function wK(e) {
return DK.has(e);
}
i(wK, "canBeReservedWord");
var Ka = class {
static {
i(this, "Scope");
}
constructor(t) {
this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t;
}
}, Ga = class {
static {
i(this, "ScopeHandler");
}
constructor(t, r) {
this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ new Map(), this.parser = t,
this.inModule = r;
}
get inTopLevel() {
return (this.currentScope().flags & 1) > 0;
}
get inFunction() {
return (this.currentVarScopeFlags() & 2) > 0;
}
get allowSuper() {
return (this.currentThisScopeFlags() & 16) > 0;
}
get allowDirectSuper() {
return (this.currentThisScopeFlags() & 32) > 0;
}
get inClass() {
return (this.currentThisScopeFlags() & 64) > 0;
}
get inClassAndNotInNonArrowFunction() {
let t = this.currentThisScopeFlags();
return (t & 64) > 0 && (t & 2) === 0;
}
get inStaticBlock() {
for (let t = this.scopeStack.length - 1; ; t--) {
let {
flags: r
} = this.scopeStack[t];
if (r & 128)
return !0;
if (r & 451)
return !1;
}
}
get inNonArrowFunction() {
return (this.currentThisScopeFlags() & 2) > 0;
}
get treatFunctionsAsVar() {
return this.treatFunctionsAsVarInScope(this.currentScope());
}
createScope(t) {
return new Ka(t);
}
enter(t) {
this.scopeStack.push(this.createScope(t));
}
exit() {
return this.scopeStack.pop().flags;
}
treatFunctionsAsVarInScope(t) {
return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1);
}
declareName(t, r, n) {
let s = this.currentScope();
if (r & 8 || r & 16) {
this.checkRedeclarationInScope(s, t, r, n);
let a = s.names.get(t) || 0;
r & 16 ? a = a | 4 : (s.firstLexicalName || (s.firstLexicalName = t), a = a | 2), s.names.set(t, a), r & 8 && this.maybeExportDefined(
s, t);
} else if (r & 4)
for (let a = this.scopeStack.length - 1; a >= 0 && (s = this.scopeStack[a], this.checkRedeclarationInScope(s, t, r, n), s.names.set(
t, (s.names.get(t) || 0) | 1), this.maybeExportDefined(s, t), !(s.flags & 387)); --a)
;
this.parser.inModule && s.flags & 1 && this.undefinedExports.delete(t);
}
maybeExportDefined(t, r) {
this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r);
}
checkRedeclarationInScope(t, r, n, s) {
this.isRedeclaredInScope(t, r, n) && this.parser.raise(N.VarRedeclaration, s, {
identifierName: r
});
}
isRedeclaredInScope(t, r, n) {
if (!(n & 1)) return !1;
if (n & 8)
return t.names.has(r);
let s = t.names.get(r);
return n & 16 ? (s & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (s & 1) > 0 : (s & 2) > 0 && !(t.flags & 8 && t.firstLexicalName ===
r) || !this.treatFunctionsAsVarInScope(t) && (s & 4) > 0;
}
checkLocalExport(t) {
let {
name: r
} = t;
this.scopeStack[0].names.has(r) || this.undefinedExports.set(r, t.loc.start);
}
currentScope() {
return this.scopeStack[this.scopeStack.length - 1];
}
currentVarScopeFlags() {
for (let t = this.scopeStack.length - 1; ; t--) {
let {
flags: r
} = this.scopeStack[t];
if (r & 387)
return r;
}
}
currentThisScopeFlags() {
for (let t = this.scopeStack.length - 1; ; t--) {
let {
flags: r
} = this.scopeStack[t];
if (r & 451 && !(r & 4))
return r;
}
}
}, ih = class extends Ka {
static {
i(this, "FlowScope");
}
constructor(...t) {
super(...t), this.declareFunctions = /* @__PURE__ */ new Set();
}
}, ah = class extends Ga {
static {
i(this, "FlowScopeHandler");
}
createScope(t) {
return new ih(t);
}
declareName(t, r, n) {
let s = this.currentScope();
if (r & 2048) {
this.checkRedeclarationInScope(s, t, r, n), this.maybeExportDefined(s, t), s.declareFunctions.add(t);
return;
}
super.declareName(t, r, n);
}
isRedeclaredInScope(t, r, n) {
if (super.isRedeclaredInScope(t, r, n)) return !0;
if (n & 2048 && !t.declareFunctions.has(r)) {
let s = t.names.get(r);
return (s & 4) > 0 || (s & 2) > 0;
}
return !1;
}
checkLocalExport(t) {
this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t);
}
}, oh = class {
static {
i(this, "BaseParser");
}
constructor() {
this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1;
}
sourceToOffsetPos(t) {
return t + this.startIndex;
}
offsetToSourcePos(t) {
return t - this.startIndex;
}
hasPlugin(t) {
if (typeof t == "string")
return this.plugins.has(t);
{
let [r, n] = t;
if (!this.hasPlugin(r))
return !1;
let s = this.plugins.get(r);
for (let a of Object.keys(n))
if (s?.[a] !== n[a])
return !1;
return !0;
}
}
getPluginOption(t, r) {
var n;
return (n = this.plugins.get(t)) == null ? void 0 : n[r];
}
};
function XT(e, t) {
e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t);
}
i(XT, "setTrailingComments");
function IK(e, t) {
e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t);
}
i(IK, "setLeadingComments");
function Ha(e, t) {
e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t);
}
i(Ha, "setInnerComments");
function Fs(e, t, r) {
let n = null, s = t.length;
for (; n === null && s > 0; )
n = t[--s];
n === null || n.start > r.start ? Ha(e, r.comments) : XT(n, r.comments);
}
i(Fs, "adjustInnerComments");
var lh = class extends oh {
static {
i(this, "CommentsParser");
}
addComment(t) {
this.filename && (t.loc.filename = this.filename);
let {
commentsLen: r
} = this.state;
this.comments.length !== r && (this.comments.length = r), this.comments.push(t), this.state.commentsLen++;
}
processComment(t) {
let {
commentStack: r
} = this.state, n = r.length;
if (n === 0) return;
let s = n - 1, a = r[s];
a.start === t.end && (a.leadingNode = t, s--);
let {
start: o
} = t;
for (; s >= 0; s--) {
let l = r[s], u = l.end;
if (u > o)
l.containingNode = t, this.finalizeComment(l), r.splice(s, 1);
else {
u === o && (l.trailingNode = t);
break;
}
}
}
finalizeComment(t) {
let {
comments: r
} = t;
if (t.leadingNode !== null || t.trailingNode !== null)
t.leadingNode !== null && XT(t.leadingNode, r), t.trailingNode !== null && IK(t.trailingNode, r);
else {
let {
containingNode: n,
start: s
} = t;
if (this.input.charCodeAt(this.offsetToSourcePos(s) - 1) === 44)
switch (n.type) {
case "ObjectExpression":
case "ObjectPattern":
case "RecordExpression":
Fs(n, n.properties, t);
break;
case "CallExpression":
case "OptionalCallExpression":
Fs(n, n.arguments, t);
break;
case "FunctionDeclaration":
case "FunctionExpression":
case "ArrowFunctionExpression":
case "ObjectMethod":
case "ClassMethod":
case "ClassPrivateMethod":
Fs(n, n.params, t);
break;
case "ArrayExpression":
case "ArrayPattern":
case "TupleExpression":
Fs(n, n.elements, t);
break;
case "ExportNamedDeclaration":
case "ImportDeclaration":
Fs(n, n.specifiers, t);
break;
case "TSEnumDeclaration":
Fs(n, n.members, t);
break;
case "TSEnumBody":
Fs(n, n.members, t);
break;
default:
Ha(n, r);
}
else
Ha(n, r);
}
}
finalizeRemainingComments() {
let {
commentStack: t
} = this.state;
for (let r = t.length - 1; r >= 0; r--)
this.finalizeComment(t[r]);
this.state.commentStack = [];
}
resetPreviousNodeTrailingComments(t) {
let {
commentStack: r
} = this.state, {
length: n
} = r;
if (n === 0) return;
let s = r[n - 1];
s.leadingNode === t && (s.leadingNode = null);
}
resetPreviousIdentifierLeadingComments(t) {
let {
commentStack: r
} = this.state, {
length: n
} = r;
n !== 0 && (r[n - 1].trailingNode === t ? r[n - 1].trailingNode = null : n >= 2 && r[n - 2].trailingNode === t && (r[n - 2].trailingNode =
null));
}
takeSurroundingComments(t, r, n) {
let {
commentStack: s
} = this.state, a = s.length;
if (a === 0) return;
let o = a - 1;
for (; o >= 0; o--) {
let l = s[o], u = l.end;
if (l.start === n)
l.leadingNode = t;
else if (u === r)
l.trailingNode = t;
else if (u < r)
break;
}
}
}, _K = /\r\n|[\r\n\u2028\u2029]/, Ol = new RegExp(_K.source, "g");
function wi(e) {
switch (e) {
case 10:
case 13:
case 8232:
case 8233:
return !0;
default:
return !1;
}
}
i(wi, "isNewLine");
function BT(e, t, r) {
for (let n = t; n < r; n++)
if (wi(e.charCodeAt(n)))
return !0;
return !1;
}
i(BT, "hasNewLine");
var eh = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, th = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
function OK(e) {
switch (e) {
case 9:
case 11:
case 12:
case 32:
case 160:
case 5760:
case 8192:
case 8193:
case 8194:
case 8195:
case 8196:
case 8197:
case 8198:
case 8199:
case 8200:
case 8201:
case 8202:
case 8239:
case 8287:
case 12288:
case 65279:
return !0;
default:
return !1;
}
}
i(OK, "isWhitespace");
var uh = class e {
static {
i(this, "State");
}
constructor() {
this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0,
this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = {
maxNumOfResolvableTopics: 0,
maxTopicIndex: null
}, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.
end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [Qe.brace], this.firstInvalidTemplateEscapePos = null,
this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0;
}
get strict() {
return (this.flags & 1) > 0;
}
set strict(t) {
t ? this.flags |= 1 : this.flags &= -2;
}
init({
strictMode: t,
sourceType: r,
startIndex: n,
startLine: s,
startColumn: a
}) {
this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.startIndex = n, this.curLine = s, this.lineStart = -a, this.startLoc =
this.endLoc = new cn(s, a, n);
}
get maybeInArrowParameters() {
return (this.flags & 2) > 0;
}
set maybeInArrowParameters(t) {
t ? this.flags |= 2 : this.flags &= -3;
}
get inType() {
return (this.flags & 4) > 0;
}
set inType(t) {
t ? this.flags |= 4 : this.flags &= -5;
}
get noAnonFunctionType() {
return (this.flags & 8) > 0;
}
set noAnonFunctionType(t) {
t ? this.flags |= 8 : this.flags &= -9;
}
get hasFlowComment() {
return (this.flags & 16) > 0;
}
set hasFlowComment(t) {
t ? this.flags |= 16 : this.flags &= -17;
}
get isAmbientContext() {
return (this.flags & 32) > 0;
}
set isAmbientContext(t) {
t ? this.flags |= 32 : this.flags &= -33;
}
get inAbstractClass() {
return (this.flags & 64) > 0;
}
set inAbstractClass(t) {
t ? this.flags |= 64 : this.flags &= -65;
}
get inDisallowConditionalTypesContext() {
return (this.flags & 128) > 0;
}
set inDisallowConditionalTypesContext(t) {
t ? this.flags |= 128 : this.flags &= -129;
}
get soloAwait() {
return (this.flags & 256) > 0;
}
set soloAwait(t) {
t ? this.flags |= 256 : this.flags &= -257;
}
get inFSharpPipelineDirectBody() {
return (this.flags & 512) > 0;
}
set inFSharpPipelineDirectBody(t) {
t ? this.flags |= 512 : this.flags &= -513;
}
get canStartJSXElement() {
return (this.flags & 1024) > 0;
}
set canStartJSXElement(t) {
t ? this.flags |= 1024 : this.flags &= -1025;
}
get containsEsc() {
return (this.flags & 2048) > 0;
}
set containsEsc(t) {
t ? this.flags |= 2048 : this.flags &= -2049;
}
get hasTopLevelAwait() {
return (this.flags & 4096) > 0;
}
set hasTopLevelAwait(t) {
t ? this.flags |= 4096 : this.flags &= -4097;
}
curPosition() {
return new cn(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex);
}
clone() {
let t = new e();
return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this.
startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt.
slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels.
slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value =
this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t.
context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors,
t.tokensLength = this.tokensLength, t;
}
}, NK = /* @__PURE__ */ i(function(t) {
return t >= 48 && t <= 57;
}, "isDigit"), kT = {
decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]),
hex: /* @__PURE__ */ new Set([46, 88, 95, 120])
}, Nl = {
bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"),
oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"),
dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"),
hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex")
};
function FT(e, t, r, n, s, a) {
let o = r, l = n, u = s, c = "", p = null, f = r, {
length: h
} = t;
for (; ; ) {
if (r >= h) {
a.unterminated(o, l, u), c += t.slice(f, r);
break;
}
let y = t.charCodeAt(r);
if (BK(e, y, t, r)) {
c += t.slice(f, r);
break;
}
if (y === 92) {
c += t.slice(f, r);
let E = kK(t, r, n, s, e === "template", a);
E.ch === null && !p ? p = {
pos: r,
lineStart: n,
curLine: s
} : c += E.ch, {
pos: r,
lineStart: n,
curLine: s
} = E, f = r;
} else y === 8232 || y === 8233 ? (++r, ++s, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(f, r) + `
`, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++s, f = n = r) : a.unterminated(o, l, u) : ++r;
}
return {
pos: r,
str: c,
firstInvalidLoc: p,
lineStart: n,
curLine: s,
containsInvalid: !!p
};
}
i(FT, "readStringContents");
function BK(e, t, r, n) {
return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39);
}
i(BK, "isStringEnd");
function kK(e, t, r, n, s, a) {
let o = !s;
t++;
let l = /* @__PURE__ */ i((c) => ({
pos: t,
ch: c,
lineStart: r,
curLine: n
}), "res"), u = e.charCodeAt(t++);
switch (u) {
case 110:
return l(`
`);
case 114:
return l("\r");
case 120: {
let c;
return {
code: c,
pos: t
} = ch(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c));
}
case 117: {
let c;
return {
code: c,
pos: t
} = QT(e, t, r, n, o, a), l(c === null ? null : String.fromCodePoint(c));
}
case 116:
return l(" ");
case 98:
return l("\b");
case 118:
return l("\v");
case 102:
return l("\f");
case 13:
e.charCodeAt(t) === 10 && ++t;
case 10:
r = t, ++n;
case 8232:
case 8233:
return l("");
case 56:
case 57:
if (s)
return l(null);
a.strictNumericEscape(t - 1, r, n);
default:
if (u >= 48 && u <= 55) {
let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8);
h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1;
let y = e.charCodeAt(t);
if (f !== "0" || y === 56 || y === 57) {
if (s)
return l(null);
a.strictNumericEscape(c, r, n);
}
return l(String.fromCharCode(h));
}
return l(String.fromCharCode(u));
}
}
i(kK, "readEscapedChar");
function ch(e, t, r, n, s, a, o, l) {
let u = t, c;
return {
n: c,
pos: t
} = zT(e, t, r, n, 16, s, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), {
code: c,
pos: t
};
}
i(ch, "readHexChar");
function zT(e, t, r, n, s, a, o, l, u, c) {
let p = t, f = s === 16 ? kT.hex : kT.decBinOct, h = s === 16 ? Nl.hex : s === 10 ? Nl.dec : s === 8 ? Nl.oct : Nl.bin, y = !1, E = 0;
for (let d = 0, g = a ?? 1 / 0; d < g; ++d) {
let C = e.charCodeAt(t), _;
if (C === 95 && l !== "bail") {
let O = e.charCodeAt(t - 1), B = e.charCodeAt(t + 1);
if (l) {
if (Number.isNaN(B) || !h(B) || f.has(O) || f.has(B)) {
if (c) return {
n: null,
pos: t
};
u.unexpectedNumericSeparator(t, r, n);
}
} else {
if (c) return {
n: null,
pos: t
};
u.numericSeparatorInEscapeSequence(t, r, n);
}
++t;
continue;
}
if (C >= 97 ? _ = C - 97 + 10 : C >= 65 ? _ = C - 65 + 10 : NK(C) ? _ = C - 48 : _ = 1 / 0, _ >= s) {
if (_ <= 9 && c)
return {
n: null,
pos: t
};
if (_ <= 9 && u.invalidDigit(t, r, n, s))
_ = 0;
else if (o)
_ = 0, y = !0;
else
break;
}
++t, E = E * s + _;
}
return t === p || a != null && t - p !== a || y ? {
n: null,
pos: t
} : {
n: E,
pos: t
};
}
i(zT, "readInt");
function QT(e, t, r, n, s, a) {
let o = e.charCodeAt(t), l;
if (o === 123) {
if (++t, {
code: l,
pos: t
} = ch(e, t, r, n, e.indexOf("}", t) - t, !0, s, a), ++t, l !== null && l > 1114111)
if (s)
a.invalidCodePoint(t, r, n);
else
return {
code: null,
pos: t
};
} else
({
code: l,
pos: t
} = ch(e, t, r, n, 4, !1, s, a));
return {
code: l,
pos: t
};
}
i(QT, "readCodePoint");
function Ua(e, t, r) {
return new cn(r, e - t, e);
}
i(Ua, "buildPosition");
var FK = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), un = class {
static {
i(this, "Token");
}
constructor(t) {
let r = t.startIndex || 0;
this.type = t.type, this.value = t.value, this.start = r + t.start, this.end = r + t.end, this.loc = new _i(t.startLoc, t.endLoc);
}
}, ph = class extends lh {
static {
i(this, "Tokenizer");
}
constructor(t, r) {
super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = {
invalidDigit: /* @__PURE__ */ i((n, s, a, o) => this.optionFlags & 2048 ? (this.raise(N.InvalidDigit, Ua(n, s, a), {
radix: o
}), !0) : !1, "invalidDigit"),
numericSeparatorInEscapeSequence: this.errorBuilder(N.NumericSeparatorInEscapeSequence),
unexpectedNumericSeparator: this.errorBuilder(N.UnexpectedNumericSeparator)
}, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, {
invalidEscapeSequence: this.errorBuilder(N.InvalidEscapeSequence),
invalidCodePoint: this.errorBuilder(N.InvalidCodePoint)
}), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
strictNumericEscape: /* @__PURE__ */ i((n, s, a) => {
this.recordStrictModeErrors(N.StrictNumericEscape, Ua(n, s, a));
}, "strictNumericEscape"),
unterminated: /* @__PURE__ */ i((n, s, a) => {
throw this.raise(N.UnterminatedString, Ua(n - 1, s, a));
}, "unterminated")
}), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
strictNumericEscape: this.errorBuilder(N.StrictNumericEscape),
unterminated: /* @__PURE__ */ i((n, s, a) => {
throw this.raise(N.UnterminatedTemplate, Ua(n, s, a));
}, "unterminated")
}), this.state = new uh(), this.state.init(t), this.input = r, this.length = r.length, this.comments = [], this.isLookahead = !1;
}
pushToken(t) {
this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength;
}
next() {
this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new un(this.state)), this.state.lastTokEndLoc = this.state.endLoc,
this.state.lastTokStartLoc = this.state.startLoc, this.nextToken();
}
eat(t) {
return this.match(t) ? (this.next(), !0) : !1;
}
match(t) {
return this.state.type === t;
}
createLookaheadState(t) {
return {
pos: t.pos,
value: null,
type: t.type,
start: t.start,
end: t.end,
context: [this.curContext()],
inType: t.inType,
startLoc: t.startLoc,
lastTokEndLoc: t.lastTokEndLoc,
curLine: t.curLine,
lineStart: t.lineStart,
curPosition: t.curPosition
};
}
lookahead() {
let t = this.state;
this.state = this.createLookaheadState(t), this.isLookahead = !0, this.nextToken(), this.isLookahead = !1;
let r = this.state;
return this.state = t, r;
}
nextTokenStart() {
return this.nextTokenStartSince(this.state.pos);
}
nextTokenStartSince(t) {
return eh.lastIndex = t, eh.test(this.input) ? eh.lastIndex : t;
}
lookaheadCharCode() {
return this.input.charCodeAt(this.nextTokenStart());
}
nextTokenInLineStart() {
return this.nextTokenInLineStartSince(this.state.pos);
}
nextTokenInLineStartSince(t) {
return th.lastIndex = t, th.test(this.input) ? th.lastIndex : t;
}
lookaheadInLineCharCode() {
return this.input.charCodeAt(this.nextTokenInLineStart());
}
codePointAtPos(t) {
let r = this.input.charCodeAt(t);
if ((r & 64512) === 55296 && ++t < this.input.length) {
let n = this.input.charCodeAt(t);
(n & 64512) === 56320 && (r = 65536 + ((r & 1023) << 10) + (n & 1023));
}
return r;
}
setStrict(t) {
this.state.strict = t, t && (this.state.strictErrors.forEach(([r, n]) => this.raise(r, n)), this.state.strictErrors.clear());
}
curContext() {
return this.state.context[this.state.context.length - 1];
}
nextToken() {
if (this.skipSpace(), this.state.start = this.state.pos, this.isLookahead || (this.state.startLoc = this.state.curPosition()), this.state.
pos >= this.length) {
this.finishToken(140);
return;
}
this.getTokenFromCode(this.codePointAtPos(this.state.pos));
}
skipBlockComment(t) {
let r;
this.isLookahead || (r = this.state.curPosition());
let n = this.state.pos, s = this.input.indexOf(t, n + 2);
if (s === -1)
throw this.raise(N.UnterminatedComment, this.state.curPosition());
for (this.state.pos = s + t.length, Ol.lastIndex = n + 2; Ol.test(this.input) && Ol.lastIndex <= s; )
++this.state.curLine, this.state.lineStart = Ol.lastIndex;
if (this.isLookahead) return;
let a = {
type: "CommentBlock",
value: this.input.slice(n + 2, s),
start: this.sourceToOffsetPos(n),
end: this.sourceToOffsetPos(s + t.length),
loc: new _i(r, this.state.curPosition())
};
return this.optionFlags & 256 && this.pushToken(a), a;
}
skipLineComment(t) {
let r = this.state.pos, n;
this.isLookahead || (n = this.state.curPosition());
let s = this.input.charCodeAt(this.state.pos += t);
if (this.state.pos < this.length)
for (; !wi(s) && ++this.state.pos < this.length; )
s = this.input.charCodeAt(this.state.pos);
if (this.isLookahead) return;
let a = this.state.pos, l = {
type: "CommentLine",
value: this.input.slice(r + t, a),
start: this.sourceToOffsetPos(r),
end: this.sourceToOffsetPos(a),
loc: new _i(n, this.state.curPosition())
};
return this.optionFlags & 256 && this.pushToken(l), l;
}
skipSpace() {
let t = this.state.pos, r = this.optionFlags & 4096 ? [] : null;
e: for (; this.state.pos < this.length; ) {
let n = this.input.charCodeAt(this.state.pos);
switch (n) {
case 32:
case 160:
case 9:
++this.state.pos;
break;
case 13:
this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos;
case 10:
case 8232:
case 8233:
++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos;
break;
case 47:
switch (this.input.charCodeAt(this.state.pos + 1)) {
case 42: {
let s = this.skipBlockComment("*/");
s !== void 0 && (this.addComment(s), r?.push(s));
break;
}
case 47: {
let s = this.skipLineComment(2);
s !== void 0 && (this.addComment(s), r?.push(s));
break;
}
default:
break e;
}
break;
default:
if (OK(n))
++this.state.pos;
else if (n === 45 && !this.inModule && this.optionFlags & 8192) {
let s = this.state.pos;
if (this.input.charCodeAt(s + 1) === 45 && this.input.charCodeAt(s + 2) === 62 && (t === 0 || this.state.lineStart > t)) {
let a = this.skipLineComment(3);
a !== void 0 && (this.addComment(a), r?.push(a));
} else
break e;
} else if (n === 60 && !this.inModule && this.optionFlags & 8192) {
let s = this.state.pos;
if (this.input.charCodeAt(s + 1) === 33 && this.input.charCodeAt(s + 2) === 45 && this.input.charCodeAt(s + 3) === 45) {
let a = this.skipLineComment(4);
a !== void 0 && (this.addComment(a), r?.push(a));
} else
break e;
} else
break e;
}
}
if (r?.length > 0) {
let n = this.state.pos, s = {
start: this.sourceToOffsetPos(t),
end: this.sourceToOffsetPos(n),
comments: r,
leadingNode: null,
trailingNode: null,
containingNode: null
};
this.state.commentStack.push(s);
}
}
finishToken(t, r) {
this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition();
let n = this.state.type;
this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(n);
}
replaceToken(t) {
this.state.type = t, this.updateContext();
}
readToken_numberSign() {
if (this.state.pos === 0 && this.readToken_interpreter())
return;
let t = this.state.pos + 1, r = this.codePointAtPos(t);
if (r >= 48 && r <= 57)
throw this.raise(N.UnexpectedDigitAfterHash, this.state.curPosition());
if (r === 123 || r === 91 && this.hasPlugin("recordAndTuple")) {
if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar")
throw this.raise(r === 123 ? N.RecordExpressionHashIncorrectStartSyntaxType : N.TupleExpressionHashIncorrectStartSyntaxType, this.
state.curPosition());
this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1);
} else Dn(r) ? (++this.state.pos, this.finishToken(139, this.readWord1(r))) : r === 92 ? (++this.state.pos, this.finishToken(139, this.
readWord1())) : this.finishOp(27, 1);
}
readToken_dot() {
let t = this.input.charCodeAt(this.state.pos + 1);
if (t >= 48 && t <= 57) {
this.readNumber(!0);
return;
}
t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken(
16));
}
readToken_slash() {
this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1);
}
readToken_interpreter() {
if (this.state.pos !== 0 || this.length < 2) return !1;
let t = this.input.charCodeAt(this.state.pos + 1);
if (t !== 33) return !1;
let r = this.state.pos;
for (this.state.pos += 1; !wi(t) && ++this.state.pos < this.length; )
t = this.input.charCodeAt(this.state.pos);
let n = this.input.slice(r + 2, this.state.pos);
return this.finishToken(28, n), !0;
}
readToken_mult_modulo(t) {
let r = t === 42 ? 55 : 54, n = 1, s = this.input.charCodeAt(this.state.pos + 1);
t === 42 && s === 42 && (n++, s = this.input.charCodeAt(this.state.pos + 2), r = 57), s === 61 && !this.state.inType && (n++, r = t ===
37 ? 33 : 30), this.finishOp(r, n);
}
readToken_pipe_amp(t) {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === t) {
this.input.charCodeAt(this.state.pos + 2) === 61 ? this.finishOp(30, 3) : this.finishOp(t === 124 ? 41 : 42, 2);
return;
}
if (t === 124) {
if (r === 62) {
this.finishOp(39, 2);
return;
}
if (this.hasPlugin("recordAndTuple") && r === 125) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(9);
return;
}
if (this.hasPlugin("recordAndTuple") && r === 93) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(4);
return;
}
}
if (r === 61) {
this.finishOp(30, 2);
return;
}
this.finishOp(t === 124 ? 43 : 45, 1);
}
readToken_caret() {
let t = this.input.charCodeAt(this.state.pos + 1);
t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", {
proposal: "hack",
topicToken: "^^"
}]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1);
}
readToken_atSign() {
this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", {
proposal: "hack",
topicToken: "@@"
}]) ? this.finishOp(38, 2) : this.finishOp(26, 1);
}
readToken_plus_min(t) {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === t) {
this.finishOp(34, 2);
return;
}
r === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1);
}
readToken_lt() {
let {
pos: t
} = this.state, r = this.input.charCodeAt(t + 1);
if (r === 60) {
if (this.input.charCodeAt(t + 2) === 61) {
this.finishOp(30, 3);
return;
}
this.finishOp(51, 2);
return;
}
if (r === 61) {
this.finishOp(49, 2);
return;
}
this.finishOp(47, 1);
}
readToken_gt() {
let {
pos: t
} = this.state, r = this.input.charCodeAt(t + 1);
if (r === 62) {
let n = this.input.charCodeAt(t + 2) === 62 ? 3 : 2;
if (this.input.charCodeAt(t + n) === 61) {
this.finishOp(30, n + 1);
return;
}
this.finishOp(52, n);
return;
}
if (r === 61) {
this.finishOp(49, 2);
return;
}
this.finishOp(48, 1);
}
readToken_eq_excl(t) {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === 61) {
this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2);
return;
}
if (t === 61 && r === 62) {
this.state.pos += 2, this.finishToken(19);
return;
}
this.finishOp(t === 61 ? 29 : 35, 1);
}
readToken_question() {
let t = this.input.charCodeAt(this.state.pos + 1), r = this.input.charCodeAt(this.state.pos + 2);
t === 63 ? r === 61 ? this.finishOp(30, 3) : this.finishOp(40, 2) : t === 46 && !(r >= 48 && r <= 57) ? (this.state.pos += 2, this.finishToken(
18)) : (++this.state.pos, this.finishToken(17));
}
getTokenFromCode(t) {
switch (t) {
case 46:
this.readToken_dot();
return;
case 40:
++this.state.pos, this.finishToken(10);
return;
case 41:
++this.state.pos, this.finishToken(11);
return;
case 59:
++this.state.pos, this.finishToken(13);
return;
case 44:
++this.state.pos, this.finishToken(12);
return;
case 91:
if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(2);
} else
++this.state.pos, this.finishToken(0);
return;
case 93:
++this.state.pos, this.finishToken(3);
return;
case 123:
if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(6);
} else
++this.state.pos, this.finishToken(5);
return;
case 125:
++this.state.pos, this.finishToken(8);
return;
case 58:
this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58 ? this.finishOp(15, 2) : (++this.state.pos, this.
finishToken(14));
return;
case 63:
this.readToken_question();
return;
case 96:
this.readTemplateToken();
return;
case 48: {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === 120 || r === 88) {
this.readRadixNumber(16);
return;
}
if (r === 111 || r === 79) {
this.readRadixNumber(8);
return;
}
if (r === 98 || r === 66) {
this.readRadixNumber(2);
return;
}
}
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
this.readNumber(!1);
return;
case 34:
case 39:
this.readString(t);
return;
case 47:
this.readToken_slash();
return;
case 37:
case 42:
this.readToken_mult_modulo(t);
return;
case 124:
case 38:
this.readToken_pipe_amp(t);
return;
case 94:
this.readToken_caret();
return;
case 43:
case 45:
this.readToken_plus_min(t);
return;
case 60:
this.readToken_lt();
return;
case 62:
this.readToken_gt();
return;
case 61:
case 33:
this.readToken_eq_excl(t);
return;
case 126:
this.finishOp(36, 1);
return;
case 64:
this.readToken_atSign();
return;
case 35:
this.readToken_numberSign();
return;
case 92:
this.readWord();
return;
default:
if (Dn(t)) {
this.readWord(t);
return;
}
}
throw this.raise(N.InvalidOrUnexpectedToken, this.state.curPosition(), {
unexpected: String.fromCodePoint(t)
});
}
finishOp(t, r) {
let n = this.input.slice(this.state.pos, this.state.pos + r);
this.state.pos += r, this.finishToken(t, n);
}
readRegexp() {
let t = this.state.startLoc, r = this.state.start + 1, n, s, {
pos: a
} = this.state;
for (; ; ++a) {
if (a >= this.length)
throw this.raise(N.UnterminatedRegExp, ar(t, 1));
let c = this.input.charCodeAt(a);
if (wi(c))
throw this.raise(N.UnterminatedRegExp, ar(t, 1));
if (n)
n = !1;
else {
if (c === 91)
s = !0;
else if (c === 93 && s)
s = !1;
else if (c === 47 && !s)
break;
n = c === 92;
}
}
let o = this.input.slice(r, a);
++a;
let l = "", u = /* @__PURE__ */ i(() => ar(t, a + 2 - r), "nextPos");
for (; a < this.length; ) {
let c = this.codePointAtPos(a), p = String.fromCharCode(c);
if (FK.has(c))
c === 118 ? l.includes("u") && this.raise(N.IncompatibleRegExpUVFlags, u()) : c === 117 && l.includes("v") && this.raise(N.IncompatibleRegExpUVFlags,
u()), l.includes(p) && this.raise(N.DuplicateRegExpFlags, u());
else if (Di(c) || c === 92)
this.raise(N.MalformedRegExpFlags, u());
else
break;
++a, l += p;
}
this.state.pos = a, this.finishToken(138, {
pattern: o,
flags: l
});
}
readInt(t, r, n = !1, s = !0) {
let {
n: a,
pos: o
} = zT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, n, s, this.errorHandlers_readInt, !1);
return this.state.pos = o, a;
}
readRadixNumber(t) {
let r = this.state.pos, n = this.state.curPosition(), s = !1;
this.state.pos += 2;
let a = this.readInt(t);
a == null && this.raise(N.InvalidDigit, ar(n, 2), {
radix: t
});
let o = this.input.charCodeAt(this.state.pos);
if (o === 110)
++this.state.pos, s = !0;
else if (o === 109)
throw this.raise(N.InvalidDecimal, n);
if (Dn(this.codePointAtPos(this.state.pos)))
throw this.raise(N.NumberIdentifier, this.state.curPosition());
if (s) {
let l = this.input.slice(r, this.state.pos).replace(/[_n]/g, "");
this.finishToken(136, l);
return;
}
this.finishToken(135, a);
}
readNumber(t) {
let r = this.state.pos, n = this.state.curPosition(), s = !1, a = !1, o = !1, l = !1;
!t && this.readInt(10) === null && this.raise(N.InvalidNumber, this.state.curPosition());
let u = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48;
if (u) {
let y = this.input.slice(r, this.state.pos);
if (this.recordStrictModeErrors(N.StrictOctalLiteral, n), !this.state.strict) {
let E = y.indexOf("_");
E > 0 && this.raise(N.ZeroDigitNumericSeparator, ar(n, E));
}
l = u && !/[89]/.test(y);
}
let c = this.input.charCodeAt(this.state.pos);
if (c === 46 && !l && (++this.state.pos, this.readInt(10), s = !0, c = this.input.charCodeAt(this.state.pos)), (c === 69 || c === 101) &&
!l && (c = this.input.charCodeAt(++this.state.pos), (c === 43 || c === 45) && ++this.state.pos, this.readInt(10) === null && this.raise(
N.InvalidOrMissingExponent, n), s = !0, o = !0, c = this.input.charCodeAt(this.state.pos)), c === 110 && ((s || u) && this.raise(N.InvalidBigIntLiteral,
n), ++this.state.pos, a = !0), c === 109) {
this.expectPlugin("decimal", this.state.curPosition()), (o || u) && this.raise(N.InvalidDecimal, n), ++this.state.pos;
var p = !0;
}
if (Dn(this.codePointAtPos(this.state.pos)))
throw this.raise(N.NumberIdentifier, this.state.curPosition());
let f = this.input.slice(r, this.state.pos).replace(/[_mn]/g, "");
if (a) {
this.finishToken(136, f);
return;
}
if (p) {
this.finishToken(137, f);
return;
}
let h = l ? parseInt(f, 8) : parseFloat(f);
this.finishToken(135, h);
}
readCodePoint(t) {
let {
code: r,
pos: n
} = QT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint);
return this.state.pos = n, r;
}
readString(t) {
let {
str: r,
pos: n,
curLine: s,
lineStart: a
} = FT(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
this.state.pos = n + 1, this.state.lineStart = a, this.state.curLine = s, this.finishToken(134, r);
}
readTemplateContinuation() {
this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken();
}
readTemplateToken() {
let t = this.input[this.state.pos], {
str: r,
firstInvalidLoc: n,
pos: s,
curLine: a,
lineStart: o
} = FT("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
this.state.pos = s + 1, this.state.lineStart = o, this.state.curLine = a, n && (this.state.firstInvalidTemplateEscapePos = new cn(n.curLine,
n.pos - n.lineStart, this.sourceToOffsetPos(n.pos))), this.input.codePointAt(s) === 96 ? this.finishToken(24, n ? null : t + r + "`") :
(this.state.pos++, this.finishToken(25, n ? null : t + r + "${"));
}
recordStrictModeErrors(t, r) {
let n = r.index;
this.state.strict && !this.state.strictErrors.has(n) ? this.raise(t, r) : this.state.strictErrors.set(n, [t, r]);
}
readWord1(t) {
this.state.containsEsc = !1;
let r = "", n = this.state.pos, s = this.state.pos;
for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
let a = this.codePointAtPos(this.state.pos);
if (Di(a))
this.state.pos += a <= 65535 ? 1 : 2;
else if (a === 92) {
this.state.containsEsc = !0, r += this.input.slice(s, this.state.pos);
let o = this.state.curPosition(), l = this.state.pos === n ? Dn : Di;
if (this.input.charCodeAt(++this.state.pos) !== 117) {
this.raise(N.MissingUnicodeEscape, this.state.curPosition()), s = this.state.pos - 1;
continue;
}
++this.state.pos;
let u = this.readCodePoint(!0);
u !== null && (l(u) || this.raise(N.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(u)), s = this.state.pos;
} else
break;
}
return r + this.input.slice(s, this.state.pos);
}
readWord(t) {
let r = this.readWord1(t), n = vh.get(r);
n !== void 0 ? this.finishToken(n, ns(n)) : this.finishToken(132, r);
}
checkKeywordEscapes() {
let {
type: t
} = this.state;
Ih(t) && this.state.containsEsc && this.raise(N.InvalidEscapedReservedWord, this.state.startLoc, {
reservedWord: ns(t)
});
}
raise(t, r, n = {}) {
let s = r instanceof cn ? r : r.loc.start, a = t(s, n);
if (!(this.optionFlags & 2048)) throw a;
return this.isLookahead || this.state.errors.push(a), a;
}
raiseOverwrite(t, r, n = {}) {
let s = r instanceof cn ? r : r.loc.start, a = s.index, o = this.state.errors;
for (let l = o.length - 1; l >= 0; l--) {
let u = o[l];
if (u.loc.index === a)
return o[l] = t(s, n);
if (u.loc.index < a) break;
}
return this.raise(t, r, n);
}
updateContext(t) {
}
unexpected(t, r) {
throw this.raise(N.UnexpectedToken, t ?? this.state.startLoc, {
expected: r ? ns(r) : null
});
}
expectPlugin(t, r) {
if (this.hasPlugin(t))
return !0;
throw this.raise(N.MissingPlugin, r ?? this.state.startLoc, {
missingPlugin: [t]
});
}
expectOnePlugin(t) {
if (!t.some((r) => this.hasPlugin(r)))
throw this.raise(N.MissingOneOfPlugins, this.state.startLoc, {
missingPlugin: t
});
}
errorBuilder(t) {
return (r, n, s) => {
this.raise(t, Ua(r, n, s));
};
}
}, fh = class {
static {
i(this, "ClassScope");
}
constructor() {
this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map();
}
}, dh = class {
static {
i(this, "ClassScopeHandler");
}
constructor(t) {
this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t;
}
current() {
return this.stack[this.stack.length - 1];
}
enter() {
this.stack.push(new fh());
}
exit() {
let t = this.stack.pop(), r = this.current();
for (let [n, s] of Array.from(t.undefinedPrivateNames))
r ? r.undefinedPrivateNames.has(n) || r.undefinedPrivateNames.set(n, s) : this.parser.raise(N.InvalidPrivateFieldResolution, s, {
identifierName: n
});
}
declarePrivateName(t, r, n) {
let {
privateNames: s,
loneAccessors: a,
undefinedPrivateNames: o
} = this.current(), l = s.has(t);
if (r & 3) {
let u = l && a.get(t);
if (u) {
let c = u & 4, p = r & 4, f = u & 3, h = r & 3;
l = f === h || c !== p, l || a.delete(t);
} else l || a.set(t, r);
}
l && this.parser.raise(N.PrivateNameRedeclaration, n, {
identifierName: t
}), s.add(t), o.delete(t);
}
usePrivateName(t, r) {
let n;
for (n of this.stack)
if (n.privateNames.has(t)) return;
n ? n.undefinedPrivateNames.set(t, r) : this.parser.raise(N.InvalidPrivateFieldResolution, r, {
identifierName: t
});
}
}, Oi = class {
static {
i(this, "ExpressionScope");
}
constructor(t = 0) {
this.type = t;
}
canBeArrowParameterDeclaration() {
return this.type === 2 || this.type === 1;
}
isCertainlyParameterDeclaration() {
return this.type === 3;
}
}, Ml = class extends Oi {
static {
i(this, "ArrowHeadParsingScope");
}
constructor(t) {
super(t), this.declarationErrors = /* @__PURE__ */ new Map();
}
recordDeclarationError(t, r) {
let n = r.index;
this.declarationErrors.set(n, [t, r]);
}
clearDeclarationError(t) {
this.declarationErrors.delete(t);
}
iterateErrors(t) {
this.declarationErrors.forEach(t);
}
}, hh = class {
static {
i(this, "ExpressionScopeHandler");
}
constructor(t) {
this.parser = void 0, this.stack = [new Oi()], this.parser = t;
}
enter(t) {
this.stack.push(t);
}
exit() {
this.stack.pop();
}
recordParameterInitializerError(t, r) {
let n = r.loc.start, {
stack: s
} = this, a = s.length - 1, o = s[a];
for (; !o.isCertainlyParameterDeclaration(); ) {
if (o.canBeArrowParameterDeclaration())
o.recordDeclarationError(t, n);
else
return;
o = s[--a];
}
this.parser.raise(t, n);
}
recordArrowParameterBindingError(t, r) {
let {
stack: n
} = this, s = n[n.length - 1], a = r.loc.start;
if (s.isCertainlyParameterDeclaration())
this.parser.raise(t, a);
else if (s.canBeArrowParameterDeclaration())
s.recordDeclarationError(t, a);
else
return;
}
recordAsyncArrowParametersError(t) {
let {
stack: r
} = this, n = r.length - 1, s = r[n];
for (; s.canBeArrowParameterDeclaration(); )
s.type === 2 && s.recordDeclarationError(N.AwaitBindingIdentifier, t), s = r[--n];
}
validateAsPattern() {
let {
stack: t
} = this, r = t[t.length - 1];
r.canBeArrowParameterDeclaration() && r.iterateErrors(([n, s]) => {
this.parser.raise(n, s);
let a = t.length - 2, o = t[a];
for (; o.canBeArrowParameterDeclaration(); )
o.clearDeclarationError(s.index), o = t[--a];
});
}
};
function jK() {
return new Oi(3);
}
i(jK, "newParameterDeclarationScope");
function LK() {
return new Ml(1);
}
i(LK, "newArrowHeadScope");
function MK() {
return new Ml(2);
}
i(MK, "newAsyncArrowScope");
function ZT() {
return new Oi();
}
i(ZT, "newExpressionScope");
var mh = class {
static {
i(this, "ProductionParameterHandler");
}
constructor() {
this.stacks = [];
}
enter(t) {
this.stacks.push(t);
}
exit() {
this.stacks.pop();
}
currentFlags() {
return this.stacks[this.stacks.length - 1];
}
get hasAwait() {
return (this.currentFlags() & 2) > 0;
}
get hasYield() {
return (this.currentFlags() & 1) > 0;
}
get hasReturn() {
return (this.currentFlags() & 4) > 0;
}
get hasIn() {
return (this.currentFlags() & 8) > 0;
}
};
function Fl(e, t) {
return (e ? 2 : 0) | (t ? 1 : 0);
}
i(Fl, "functionFlags");
var yh = class extends ph {
static {
i(this, "UtilParser");
}
addExtra(t, r, n, s = !0) {
if (!t) return;
let {
extra: a
} = t;
a == null && (a = {}, t.extra = a), s ? a[r] = n : Object.defineProperty(a, r, {
enumerable: s,
value: n
});
}
isContextual(t) {
return this.state.type === t && !this.state.containsEsc;
}
isUnparsedContextual(t, r) {
let n = t + r.length;
if (this.input.slice(t, n) === r) {
let s = this.input.charCodeAt(n);
return !(Di(s) || (s & 64512) === 55296);
}
return !1;
}
isLookaheadContextual(t) {
let r = this.nextTokenStart();
return this.isUnparsedContextual(r, t);
}
eatContextual(t) {
return this.isContextual(t) ? (this.next(), !0) : !1;
}
expectContextual(t, r) {
if (!this.eatContextual(t)) {
if (r != null)
throw this.raise(r, this.state.startLoc);
this.unexpected(null, t);
}
}
canInsertSemicolon() {
return this.match(140) || this.match(8) || this.hasPrecedingLineBreak();
}
hasPrecedingLineBreak() {
return BT(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start);
}
hasFollowingLineBreak() {
return BT(this.input, this.state.end, this.nextTokenStart());
}
isLineTerminator() {
return this.eat(13) || this.canInsertSemicolon();
}
semicolon(t = !0) {
(t ? this.isLineTerminator() : this.eat(13)) || this.raise(N.MissingSemicolon, this.state.lastTokEndLoc);
}
expect(t, r) {
this.eat(t) || this.unexpected(r, t);
}
tryParse(t, r = this.state.clone()) {
let n = {
node: null
};
try {
let s = t((a = null) => {
throw n.node = a, n;
});
if (this.state.errors.length > r.errors.length) {
let a = this.state;
return this.state = r, this.state.tokensLength = a.tokensLength, {
node: s,
error: a.errors[r.errors.length],
thrown: !1,
aborted: !1,
failState: a
};
}
return {
node: s,
error: null,
thrown: !1,
aborted: !1,
failState: null
};
} catch (s) {
let a = this.state;
if (this.state = r, s instanceof SyntaxError)
return {
node: null,
error: s,
thrown: !0,
aborted: !1,
failState: a
};
if (s === n)
return {
node: n.node,
error: null,
thrown: !1,
aborted: !0,
failState: a
};
throw s;
}
}
checkExpressionErrors(t, r) {
if (!t) return !1;
let {
shorthandAssignLoc: n,
doubleProtoLoc: s,
privateKeyLoc: a,
optionalParametersLoc: o
} = t, l = !!n || !!s || !!o || !!a;
if (!r)
return l;
n != null && this.raise(N.InvalidCoverInitializedName, n), s != null && this.raise(N.DuplicateProto, s), a != null && this.raise(N.UnexpectedPrivateField,
a), o != null && this.unexpected(o);
}
isLiteralPropertyName() {
return $T(this.state.type);
}
isPrivateName(t) {
return t.type === "PrivateName";
}
getPrivateNameSV(t) {
return t.id.name;
}
hasPropertyAsPrivateName(t) {
return (t.type === "MemberExpression" || t.type === "OptionalMemberExpression") && this.isPrivateName(t.property);
}
isObjectProperty(t) {
return t.type === "ObjectProperty";
}
isObjectMethod(t) {
return t.type === "ObjectMethod";
}
initializeScopes(t = this.options.sourceType === "module") {
let r = this.state.labels;
this.state.labels = [];
let n = this.exportedIdentifiers;
this.exportedIdentifiers = /* @__PURE__ */ new Set();
let s = this.inModule;
this.inModule = t;
let a = this.scope, o = this.getScopeHandler();
this.scope = new o(this, t);
let l = this.prodParam;
this.prodParam = new mh();
let u = this.classScope;
this.classScope = new dh(this);
let c = this.expressionScope;
return this.expressionScope = new hh(this), () => {
this.state.labels = r, this.exportedIdentifiers = n, this.inModule = s, this.scope = a, this.prodParam = l, this.classScope = u, this.
expressionScope = c;
};
}
enterInitialScopes() {
let t = 0;
this.inModule && (t |= 2), this.optionFlags & 32 && (t |= 1), this.scope.enter(1), this.prodParam.enter(t);
}
checkDestructuringPrivate(t) {
let {
privateKeyLoc: r
} = t;
r !== null && this.expectPlugin("destructuringPrivate", r);
}
}, Ii = class {
static {
i(this, "ExpressionErrors");
}
constructor() {
this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null;
}
}, Ni = class {
static {
i(this, "Node");
}
constructor(t, r, n) {
this.type = "", this.start = r, this.end = 0, this.loc = new _i(n), t?.optionFlags & 128 && (this.range = [r, 0]), t != null && t.filename &&
(this.loc.filename = t.filename);
}
}, Nh = Ni.prototype;
Nh.__clone = function() {
let e = new Ni(void 0, this.start, this.loc.start), t = Object.keys(this);
for (let r = 0, n = t.length; r < n; r++) {
let s = t[r];
s !== "leadingComments" && s !== "trailingComments" && s !== "innerComments" && (e[s] = this[s]);
}
return e;
};
function RK(e) {
return In(e);
}
i(RK, "clonePlaceholder");
function In(e) {
let {
type: t,
start: r,
end: n,
loc: s,
range: a,
extra: o,
name: l
} = e, u = Object.create(Nh);
return u.type = t, u.start = r, u.end = n, u.loc = s, u.range = a, u.extra = o, u.name = l, t === "Placeholder" && (u.expectedNode = e.expectedNode),
u;
}
i(In, "cloneIdentifier");
function qK(e) {
let {
type: t,
start: r,
end: n,
loc: s,
range: a,
extra: o
} = e;
if (t === "Placeholder")
return RK(e);
let l = Object.create(Nh);
return l.type = t, l.start = r, l.end = n, l.loc = s, l.range = a, e.raw !== void 0 ? l.raw = e.raw : l.extra = o, l.value = e.value, l;
}
i(qK, "cloneStringLiteral");
var gh = class extends yh {
static {
i(this, "NodeUtils");
}
startNode() {
let t = this.state.startLoc;
return new Ni(this, t.index, t);
}
startNodeAt(t) {
return new Ni(this, t.index, t);
}
startNodeAtNode(t) {
return this.startNodeAt(t.loc.start);
}
finishNode(t, r) {
return this.finishNodeAt(t, r, this.state.lastTokEndLoc);
}
finishNodeAt(t, r, n) {
return t.type = r, t.end = n.index, t.loc.end = n, this.optionFlags & 128 && (t.range[1] = n.index), this.optionFlags & 4096 && this.processComment(
t), t;
}
resetStartLocation(t, r) {
t.start = r.index, t.loc.start = r, this.optionFlags & 128 && (t.range[0] = r.index);
}
resetEndLocation(t, r = this.state.lastTokEndLoc) {
t.end = r.index, t.loc.end = r, this.optionFlags & 128 && (t.range[1] = r.index);
}
resetStartLocationFromNode(t, r) {
this.resetStartLocation(t, r.loc.start);
}
}, UK = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "stat\
ic", "string", "true", "typeof", "void"]), Ae = wn`flow`({
AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since \
they are either an ES module or they are a CommonJS module.",
AssignReservedType: /* @__PURE__ */ i(({
reservedType: e
}) => `Cannot overwrite reserved type ${e}.`, "AssignReservedType"),
DeclareClassElement: "The `declare` modifier can only appear on class fields.",
DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.",
DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.",
EnumBooleanMemberNotInitialized: /* @__PURE__ */ i(({
memberName: e,
enumName: t
}) => `Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`, "EnumBooleanMem\
berNotInitialized"),
EnumDuplicateMemberName: /* @__PURE__ */ i(({
memberName: e,
enumName: t
}) => `Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`, "EnumDuplicateMemberN\
ame"),
EnumInconsistentMemberValues: /* @__PURE__ */ i(({
enumName: e
}) => `Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, num\
bers, or strings) for all member initializers.`, "EnumInconsistentMemberValues"),
EnumInvalidExplicitType: /* @__PURE__ */ i(({
invalidEnumType: e,
enumName: t
}) => `Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, "EnumInvalidEx\
plicitType"),
EnumInvalidExplicitTypeUnknownSupplied: /* @__PURE__ */ i(({
enumName: e
}) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\
plicitTypeUnknownSupplied"),
EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ i(({
enumName: e,
memberName: t,
explicitType: r
}) => `Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`, "EnumInvalidMemberInitializerPrimar\
yType"),
EnumInvalidMemberInitializerSymbolType: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"),
EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`, "EnumInv\
alidMemberInitializerUnknownType"),
EnumInvalidMemberName: /* @__PURE__ */ i(({
enumName: e,
memberName: t,
suggestion: r
}) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\
\`.`, "EnumInvalidMemberName"),
EnumNumberMemberNotInitialized: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"),
EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ i(({
enumName: e
}) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`, "EnumStringMemb\
erInconsistentlyInitialized"),
GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.",
ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.",
ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements.\
It cannot be used with `import type` or `import typeof` statements.",
InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.",
InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.",
InexactVariance: "Explicit inexact syntax cannot have variance.",
InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.",
MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",
NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.",
NestedFlowComment: "Cannot have a flow comment inside another flow comment.",
PatternIsOptional: Object.assign({
message: "A binding pattern parameter cannot be optional in an implementation signature."
}, {
reasonCode: "OptionalBindingPattern"
}),
SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.",
SpreadVariance: "Spread properties cannot have variance.",
ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.",
ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",
ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.",
ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.",
ThisParamNoDefault: "The `this` parameter may not have a default value.",
TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`\
.",
TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.",
UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.",
UnexpectedReservedType: /* @__PURE__ */ i(({
reservedType: e
}) => `Unexpected reserved type ${e}.`, "UnexpectedReservedType"),
UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.",
UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.",
UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.",
UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".',
UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.",
UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of ` async () => {}\
`, use `async () => {}`.",
UnsupportedDeclareExportKind: /* @__PURE__ */ i(({
unsupportedExportKind: e,
suggestion: t
}) => `\`declare export ${e}\` is not supported. Use \`${t}\` instead.`, "UnsupportedDeclareExportKind"),
UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.",
UnterminatedFlowComment: "Unterminated flow-comment."
});
function VK(e) {
return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\
ypeAlias" && e.declaration.type !== "InterfaceDeclaration");
}
i(VK, "isEsModuleType");
function jT(e) {
return e.importKind === "type" || e.importKind === "typeof";
}
i(jT, "hasTypeImportKind");
var $K = {
const: "declare export var",
let: "declare export var",
type: "export type",
interface: "export interface"
};
function WK(e, t) {
let r = [], n = [];
for (let s = 0; s < e.length; s++)
(t(e[s], s, e) ? r : n).push(e[s]);
return [r, n];
}
i(WK, "partition");
var KK = /\*?\s*@((?:no)?flow)\b/, GK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "FlowParserMixin");
}
constructor(...r) {
super(...r), this.flowPragma = void 0;
}
getScopeHandler() {
return ah;
}
shouldParseTypes() {
return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
}
finishToken(r, n) {
r !== 134 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, n);
}
addComment(r) {
if (this.flowPragma === void 0) {
let n = KK.exec(r.value);
if (n) if (n[1] === "flow")
this.flowPragma = "flow";
else if (n[1] === "noflow")
this.flowPragma = "noflow";
else
throw new Error("Unexpected flow pragma");
}
super.addComment(r);
}
flowParseTypeInitialiser(r) {
let n = this.state.inType;
this.state.inType = !0, this.expect(r || 14);
let s = this.flowParseType();
return this.state.inType = n, s;
}
flowParsePredicate() {
let r = this.startNode(), n = this.state.startLoc;
return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > n.index + 1 && this.raise(Ae.UnexpectedSpaceBetweenModuloChecks,
n), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "\
InferredPredicate");
}
flowParseTypeAndPredicateInitialiser() {
let r = this.state.inType;
this.state.inType = !0, this.expect(14);
let n = null, s = null;
return this.match(54) ? (this.state.inType = r, s = this.flowParsePredicate()) : (n = this.flowParseType(), this.state.inType = r, this.
match(54) && (s = this.flowParsePredicate())), [n, s];
}
flowParseDeclareClass(r) {
return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass");
}
flowParseDeclareFunction(r) {
this.next();
let n = r.id = this.parseIdentifier(), s = this.startNode(), a = this.startNode();
this.match(47) ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(10);
let o = this.flowParseFunctionTypeParams();
return s.params = o.params, s.rest = o.rest, s.this = o._this, this.expect(11), [s.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(),
a.typeAnnotation = this.finishNode(s, "FunctionTypeAnnotation"), n.typeAnnotation = this.finishNode(a, "TypeAnnotation"), this.resetEndLocation(
n), this.semicolon(), this.scope.declareName(r.id.name, 2048, r.id.loc.start), this.finishNode(r, "DeclareFunction");
}
flowParseDeclare(r, n) {
if (this.match(80))
return this.flowParseDeclareClass(r);
if (this.match(68))
return this.flowParseDeclareFunction(r);
if (this.match(74))
return this.flowParseDeclareVariable(r);
if (this.eatContextual(127))
return this.match(16) ? this.flowParseDeclareModuleExports(r) : (n && this.raise(Ae.NestedDeclareModule, this.state.lastTokStartLoc),
this.flowParseDeclareModule(r));
if (this.isContextual(130))
return this.flowParseDeclareTypeAlias(r);
if (this.isContextual(131))
return this.flowParseDeclareOpaqueType(r);
if (this.isContextual(129))
return this.flowParseDeclareInterface(r);
if (this.match(82))
return this.flowParseDeclareExportDeclaration(r, n);
this.unexpected();
}
flowParseDeclareVariable(r) {
return this.next(), r.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(r.id.name, 5, r.id.loc.start), this.semicolon(),
this.finishNode(r, "DeclareVariable");
}
flowParseDeclareModule(r) {
this.scope.enter(0), this.match(134) ? r.id = super.parseExprAtom() : r.id = this.parseIdentifier();
let n = r.body = this.startNode(), s = n.body = [];
for (this.expect(5); !this.match(8); ) {
let l = this.startNode();
this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(Ae.InvalidNonTypeImportInDeclareModule, this.
state.lastTokStartLoc), super.parseImport(l)) : (this.expectContextual(125, Ae.UnsupportedStatementInDeclareModule), l = this.flowParseDeclare(
l, !0)), s.push(l);
}
this.scope.exit(), this.expect(8), this.finishNode(n, "BlockStatement");
let a = null, o = !1;
return s.forEach((l) => {
VK(l) ? (a === "CommonJS" && this.raise(Ae.AmbiguousDeclareModuleKind, l), a = "ES") : l.type === "DeclareModuleExports" && (o && this.
raise(Ae.DuplicateDeclareModuleExports, l), a === "ES" && this.raise(Ae.AmbiguousDeclareModuleKind, l), a = "CommonJS", o = !0);
}), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule");
}
flowParseDeclareExportDeclaration(r, n) {
if (this.expect(82), this.eat(65))
return this.match(68) || this.match(80) ? r.declaration = this.flowParseDeclare(this.startNode()) : (r.declaration = this.flowParseType(),
this.semicolon()), r.default = !0, this.finishNode(r, "DeclareExportDeclaration");
if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !n) {
let s = this.state.value;
throw this.raise(Ae.UnsupportedDeclareExportKind, this.state.startLoc, {
unsupportedExportKind: s,
suggestion: $K[s]
});
}
if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131))
return r.declaration = this.flowParseDeclare(this.startNode()), r.default = !1, this.finishNode(r, "DeclareExportDeclaration");
if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131))
return r = this.parseExport(r, null), r.type === "ExportNamedDeclaration" && (r.type = "ExportDeclaration", r.default = !1, delete r.
exportKind), r.type = "Declare" + r.type, r;
this.unexpected();
}
flowParseDeclareModuleExports(r) {
return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r,
"DeclareModuleExports");
}
flowParseDeclareTypeAlias(r) {
this.next();
let n = this.flowParseTypeAlias(r);
return n.type = "DeclareTypeAlias", n;
}
flowParseDeclareOpaqueType(r) {
this.next();
let n = this.flowParseOpaqueType(r, !0);
return n.type = "DeclareOpaqueType", n;
}
flowParseDeclareInterface(r) {
return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface");
}
flowParseInterfaceish(r, n) {
if (r.id = this.flowParseRestrictedIdentifier(!n, !0), this.scope.declareName(r.id.name, n ? 17 : 8201, r.id.loc.start), this.match(47) ?
r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81))
do
r.extends.push(this.flowParseInterfaceExtends());
while (!n && this.eat(12));
if (n) {
if (r.implements = [], r.mixins = [], this.eatContextual(117))
do
r.mixins.push(this.flowParseInterfaceExtends());
while (this.eat(12));
if (this.eatContextual(113))
do
r.implements.push(this.flowParseInterfaceExtends());
while (this.eat(12));
}
r.body = this.flowParseObjectType({
allowStatic: n,
allowExact: !1,
allowSpread: !1,
allowProto: n,
allowInexact: !1
});
}
flowParseInterfaceExtends() {
let r = this.startNode();
return r.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? r.typeParameters = this.flowParseTypeParameterInstantiation() :
r.typeParameters = null, this.finishNode(r, "InterfaceExtends");
}
flowParseInterface(r) {
return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration");
}
checkNotUnderscore(r) {
r === "_" && this.raise(Ae.UnexpectedReservedUnderscore, this.state.startLoc);
}
checkReservedType(r, n, s) {
UK.has(r) && this.raise(s ? Ae.AssignReservedType : Ae.UnexpectedReservedType, n, {
reservedType: r
});
}
flowParseRestrictedIdentifier(r, n) {
return this.checkReservedType(this.state.value, this.state.startLoc, n), this.parseIdentifier(r);
}
flowParseTypeAlias(r) {
return r.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.start), this.match(47) ? r.
typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.right = this.flowParseTypeInitialiser(29), this.
semicolon(), this.finishNode(r, "TypeAlias");
}
flowParseOpaqueType(r, n) {
return this.expectContextual(130), r.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.
start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.supertype = null, this.
match(14) && (r.supertype = this.flowParseTypeInitialiser(14)), r.impltype = null, n || (r.impltype = this.flowParseTypeInitialiser(29)),
this.semicolon(), this.finishNode(r, "OpaqueType");
}
flowParseTypeParameter(r = !1) {
let n = this.state.startLoc, s = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier();
return s.name = o.name, s.variance = a, s.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), s.default = this.flowParseType()) :
r && this.raise(Ae.MissingTypeParamDefault, n), this.finishNode(s, "TypeParameter");
}
flowParseTypeParameterDeclaration() {
let r = this.state.inType, n = this.startNode();
n.params = [], this.state.inType = !0, this.match(47) || this.match(143) ? this.next() : this.unexpected();
let s = !1;
do {
let a = this.flowParseTypeParameter(s);
n.params.push(a), a.default && (s = !0), this.match(48) || this.expect(12);
} while (!this.match(48));
return this.expect(48), this.state.inType = r, this.finishNode(n, "TypeParameterDeclaration");
}
flowInTopLevelContext(r) {
if (this.curContext() !== Qe.brace) {
let n = this.state.context;
this.state.context = [n[0]];
try {
return r();
} finally {
this.state.context = n;
}
} else
return r();
}
flowParseTypeParameterInstantiationInExpression() {
if (this.reScan_lt() === 47)
return this.flowParseTypeParameterInstantiation();
}
flowParseTypeParameterInstantiation() {
let r = this.startNode(), n = this.state.inType;
return this.state.inType = !0, r.params = [], this.flowInTopLevelContext(() => {
this.expect(47);
let s = this.state.noAnonFunctionType;
for (this.state.noAnonFunctionType = !1; !this.match(48); )
r.params.push(this.flowParseType()), this.match(48) || this.expect(12);
this.state.noAnonFunctionType = s;
}), this.state.inType = n, !this.state.inType && this.curContext() === Qe.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(
r, "TypeParameterInstantiation");
}
flowParseTypeParameterInstantiationCallOrNew() {
if (this.reScan_lt() !== 47) return;
let r = this.startNode(), n = this.state.inType;
for (r.params = [], this.state.inType = !0, this.expect(47); !this.match(48); )
r.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12);
return this.expect(48), this.state.inType = n, this.finishNode(r, "TypeParameterInstantiation");
}
flowParseInterfaceType() {
let r = this.startNode();
if (this.expectContextual(129), r.extends = [], this.eat(81))
do
r.extends.push(this.flowParseInterfaceExtends());
while (this.eat(12));
return r.body = this.flowParseObjectType({
allowStatic: !1,
allowExact: !1,
allowSpread: !1,
allowProto: !1,
allowInexact: !1
}), this.finishNode(r, "InterfaceTypeAnnotation");
}
flowParseObjectPropertyKey() {
return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(!0);
}
flowParseObjectTypeIndexer(r, n, s) {
return r.static = n, this.lookahead().type === 14 ? (r.id = this.flowParseObjectPropertyKey(), r.key = this.flowParseTypeInitialiser()) :
(r.id = null, r.key = this.flowParseType()), this.expect(3), r.value = this.flowParseTypeInitialiser(), r.variance = s, this.finishNode(
r, "ObjectTypeIndexer");
}
flowParseObjectTypeInternalSlot(r, n) {
return r.static = n, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method =
!0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (r.method = !1, this.eat(17) && (r.
optional = !0), r.value = this.flowParseTypeInitialiser()), this.finishNode(r, "ObjectTypeInternalSlot");
}
flowParseObjectTypeMethodish(r) {
for (r.params = [], r.rest = null, r.typeParameters = null, r.this = null, this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()),
this.expect(10), this.match(78) && (r.this = this.flowParseFunctionTypeParam(!0), r.this.name = null, this.match(11) || this.expect(12)); !this.
match(11) && !this.match(21); )
r.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
return this.eat(21) && (r.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), r.returnType = this.flowParseTypeInitialiser(),
this.finishNode(r, "FunctionTypeAnnotation");
}
flowParseObjectTypeCallProperty(r, n) {
let s = this.startNode();
return r.static = n, r.value = this.flowParseObjectTypeMethodish(s), this.finishNode(r, "ObjectTypeCallProperty");
}
flowParseObjectType({
allowStatic: r,
allowExact: n,
allowSpread: s,
allowProto: a,
allowInexact: o
}) {
let l = this.state.inType;
this.state.inType = !0;
let u = this.startNode();
u.callProperties = [], u.properties = [], u.indexers = [], u.internalSlots = [];
let c, p, f = !1;
for (n && this.match(6) ? (this.expect(6), c = 9, p = !0) : (this.expect(5), c = 8, p = !1), u.exact = p; !this.match(c); ) {
let y = !1, E = null, d = null, g = this.startNode();
if (a && this.isContextual(118)) {
let _ = this.lookahead();
_.type !== 14 && _.type !== 17 && (this.next(), E = this.state.startLoc, r = !1);
}
if (r && this.isContextual(106)) {
let _ = this.lookahead();
_.type !== 14 && _.type !== 17 && (this.next(), y = !0);
}
let C = this.flowParseVariance();
if (this.eat(0))
E != null && this.unexpected(E), this.eat(0) ? (C && this.unexpected(C.loc.start), u.internalSlots.push(this.flowParseObjectTypeInternalSlot(
g, y))) : u.indexers.push(this.flowParseObjectTypeIndexer(g, y, C));
else if (this.match(10) || this.match(47))
E != null && this.unexpected(E), C && this.unexpected(C.loc.start), u.callProperties.push(this.flowParseObjectTypeCallProperty(g, y));
else {
let _ = "init";
if (this.isContextual(99) || this.isContextual(104)) {
let B = this.lookahead();
$T(B.type) && (_ = this.state.value, this.next());
}
let O = this.flowParseObjectTypeProperty(g, y, E, C, _, s, o ?? !p);
O === null ? (f = !0, d = this.state.lastTokStartLoc) : u.properties.push(O);
}
this.flowObjectTypeSemicolon(), d && !this.match(8) && !this.match(9) && this.raise(Ae.UnexpectedExplicitInexactInObject, d);
}
this.expect(c), s && (u.inexact = f);
let h = this.finishNode(u, "ObjectTypeAnnotation");
return this.state.inType = l, h;
}
flowParseObjectTypeProperty(r, n, s, a, o, l, u) {
if (this.eat(21))
return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (l ? u || this.raise(Ae.InexactInsideExact, this.state.lastTokStartLoc) :
this.raise(Ae.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(Ae.InexactVariance, a), null) : (l || this.raise(
Ae.UnexpectedSpreadType, this.state.lastTokStartLoc), s != null && this.unexpected(s), a && this.raise(Ae.SpreadVariance, a), r.argument =
this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty"));
{
r.key = this.flowParseObjectPropertyKey(), r.static = n, r.proto = s != null, r.kind = o;
let c = !1;
return this.match(47) || this.match(10) ? (r.method = !0, s != null && this.unexpected(s), a && this.unexpected(a.loc.start), r.value =
this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (o === "get" || o === "set") && this.flowCheckGetterSetterParams(r),
!l && r.key.name === "constructor" && r.value.this && this.raise(Ae.ThisParamBannedInConstructor, r.value.this)) : (o !== "init" && this.
unexpected(), r.method = !1, this.eat(17) && (c = !0), r.value = this.flowParseTypeInitialiser(), r.variance = a), r.optional = c, this.
finishNode(r, "ObjectTypeProperty");
}
}
flowCheckGetterSetterParams(r) {
let n = r.kind === "get" ? 0 : 1, s = r.value.params.length + (r.value.rest ? 1 : 0);
r.value.this && this.raise(r.kind === "get" ? Ae.GetterMayNotHaveThisParam : Ae.SetterMayNotHaveThisParam, r.value.this), s !== n && this.
raise(r.kind === "get" ? N.BadGetterArity : N.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(N.BadSetterRestParameter,
r);
}
flowObjectTypeSemicolon() {
!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected();
}
flowParseQualifiedTypeIdentifier(r, n) {
r ?? (r = this.state.startLoc);
let s = n || this.flowParseRestrictedIdentifier(!0);
for (; this.eat(16); ) {
let a = this.startNodeAt(r);
a.qualification = s, a.id = this.flowParseRestrictedIdentifier(!0), s = this.finishNode(a, "QualifiedTypeIdentifier");
}
return s;
}
flowParseGenericType(r, n) {
let s = this.startNodeAt(r);
return s.typeParameters = null, s.id = this.flowParseQualifiedTypeIdentifier(r, n), this.match(47) && (s.typeParameters = this.flowParseTypeParameterInstantiation()),
this.finishNode(s, "GenericTypeAnnotation");
}
flowParseTypeofType() {
let r = this.startNode();
return this.expect(87), r.argument = this.flowParsePrimaryType(), this.finishNode(r, "TypeofTypeAnnotation");
}
flowParseTupleType() {
let r = this.startNode();
for (r.types = [], this.expect(0); this.state.pos < this.length && !this.match(3) && (r.types.push(this.flowParseType()), !this.match(
3)); )
this.expect(12);
return this.expect(3), this.finishNode(r, "TupleTypeAnnotation");
}
flowParseFunctionTypeParam(r) {
let n = null, s = !1, a = null, o = this.startNode(), l = this.lookahead(), u = this.state.type === 78;
return l.type === 14 || l.type === 17 ? (u && !r && this.raise(Ae.ThisParamMustBeFirst, o), n = this.parseIdentifier(u), this.eat(17) &&
(s = !0, u && this.raise(Ae.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = n,
o.optional = s, o.typeAnnotation = a, this.finishNode(o, "FunctionTypeParam");
}
reinterpretTypeAsFunctionTypeParam(r) {
let n = this.startNodeAt(r.loc.start);
return n.name = null, n.optional = !1, n.typeAnnotation = r, this.finishNode(n, "FunctionTypeParam");
}
flowParseFunctionTypeParams(r = []) {
let n = null, s = null;
for (this.match(78) && (s = this.flowParseFunctionTypeParam(!0), s.name = null, this.match(11) || this.expect(12)); !this.match(11) &&
!this.match(21); )
r.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
return this.eat(21) && (n = this.flowParseFunctionTypeParam(!1)), {
params: r,
rest: n,
_this: s
};
}
flowIdentToTypeAnnotation(r, n, s) {
switch (s.name) {
case "any":
return this.finishNode(n, "AnyTypeAnnotation");
case "bool":
case "boolean":
return this.finishNode(n, "BooleanTypeAnnotation");
case "mixed":
return this.finishNode(n, "MixedTypeAnnotation");
case "empty":
return this.finishNode(n, "EmptyTypeAnnotation");
case "number":
return this.finishNode(n, "NumberTypeAnnotation");
case "string":
return this.finishNode(n, "StringTypeAnnotation");
case "symbol":
return this.finishNode(n, "SymbolTypeAnnotation");
default:
return this.checkNotUnderscore(s.name), this.flowParseGenericType(r, s);
}
}
flowParsePrimaryType() {
let r = this.state.startLoc, n = this.startNode(), s, a, o = !1, l = this.state.noAnonFunctionType;
switch (this.state.type) {
case 5:
return this.flowParseObjectType({
allowStatic: !1,
allowExact: !1,
allowSpread: !0,
allowProto: !1,
allowInexact: !0
});
case 6:
return this.flowParseObjectType({
allowStatic: !1,
allowExact: !0,
allowSpread: !0,
allowProto: !1,
allowInexact: !1
});
case 0:
return this.state.noAnonFunctionType = !1, a = this.flowParseTupleType(), this.state.noAnonFunctionType = l, a;
case 47: {
let u = this.startNode();
return u.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(10), s = this.flowParseFunctionTypeParams(), u.params =
s.params, u.rest = s.rest, u.this = s._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), this.finishNode(
u, "FunctionTypeAnnotation");
}
case 10: {
let u = this.startNode();
if (this.next(), !this.match(11) && !this.match(21))
if (Ze(this.state.type) || this.match(78)) {
let c = this.lookahead().type;
o = c !== 17 && c !== 14;
} else
o = !0;
if (o) {
if (this.state.noAnonFunctionType = !1, a = this.flowParseType(), this.state.noAnonFunctionType = l, this.state.noAnonFunctionType ||
!(this.match(12) || this.match(11) && this.lookahead().type === 19))
return this.expect(11), a;
this.eat(12);
}
return a ? s = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : s = this.flowParseFunctionTypeParams(),
u.params = s.params, u.rest = s.rest, u.this = s._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), u.typeParameters =
null, this.finishNode(u, "FunctionTypeAnnotation");
}
case 134:
return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
case 85:
case 86:
return n.value = this.match(85), this.next(), this.finishNode(n, "BooleanLiteralTypeAnnotation");
case 53:
if (this.state.value === "-") {
if (this.next(), this.match(135))
return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", n);
if (this.match(136))
return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", n);
throw this.raise(Ae.UnexpectedSubtractionOperand, this.state.startLoc);
}
this.unexpected();
return;
case 135:
return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
case 136:
return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation");
case 88:
return this.next(), this.finishNode(n, "VoidTypeAnnotation");
case 84:
return this.next(), this.finishNode(n, "NullLiteralTypeAnnotation");
case 78:
return this.next(), this.finishNode(n, "ThisTypeAnnotation");
case 55:
return this.next(), this.finishNode(n, "ExistsTypeAnnotation");
case 87:
return this.flowParseTypeofType();
default:
if (Ih(this.state.type)) {
let u = ns(this.state.type);
return this.next(), super.createIdentifier(n, u);
} else if (Ze(this.state.type))
return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(r, n, this.parseIdentifier());
}
this.unexpected();
}
flowParsePostfixType() {
let r = this.state.startLoc, n = this.flowParsePrimaryType(), s = !1;
for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) {
let a = this.startNodeAt(r), o = this.eat(18);
s = s || o, this.expect(0), !o && this.match(3) ? (a.elementType = n, this.next(), n = this.finishNode(a, "ArrayTypeAnnotation")) : (a.
objectType = n, a.indexType = this.flowParseType(), this.expect(3), s ? (a.optional = o, n = this.finishNode(a, "OptionalIndexedAcce\
ssType")) : n = this.finishNode(a, "IndexedAccessType"));
}
return n;
}
flowParsePrefixType() {
let r = this.startNode();
return this.eat(17) ? (r.typeAnnotation = this.flowParsePrefixType(), this.finishNode(r, "NullableTypeAnnotation")) : this.flowParsePostfixType();
}
flowParseAnonFunctionWithoutParens() {
let r = this.flowParsePrefixType();
if (!this.state.noAnonFunctionType && this.eat(19)) {
let n = this.startNodeAt(r.loc.start);
return n.params = [this.reinterpretTypeAsFunctionTypeParam(r)], n.rest = null, n.this = null, n.returnType = this.flowParseType(), n.
typeParameters = null, this.finishNode(n, "FunctionTypeAnnotation");
}
return r;
}
flowParseIntersectionType() {
let r = this.startNode();
this.eat(45);
let n = this.flowParseAnonFunctionWithoutParens();
for (r.types = [n]; this.eat(45); )
r.types.push(this.flowParseAnonFunctionWithoutParens());
return r.types.length === 1 ? n : this.finishNode(r, "IntersectionTypeAnnotation");
}
flowParseUnionType() {
let r = this.startNode();
this.eat(43);
let n = this.flowParseIntersectionType();
for (r.types = [n]; this.eat(43); )
r.types.push(this.flowParseIntersectionType());
return r.types.length === 1 ? n : this.finishNode(r, "UnionTypeAnnotation");
}
flowParseType() {
let r = this.state.inType;
this.state.inType = !0;
let n = this.flowParseUnionType();
return this.state.inType = r, n;
}
flowParseTypeOrImplicitInstantiation() {
if (this.state.type === 132 && this.state.value === "_") {
let r = this.state.startLoc, n = this.parseIdentifier();
return this.flowParseGenericType(r, n);
} else
return this.flowParseType();
}
flowParseTypeAnnotation() {
let r = this.startNode();
return r.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(r, "TypeAnnotation");
}
flowParseTypeAnnotatableIdentifier(r) {
let n = r ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
return this.match(14) && (n.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(n)), n;
}
typeCastToParameter(r) {
return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression;
}
flowParseVariance() {
let r = null;
return this.match(53) ? (r = this.startNode(), this.state.value === "+" ? r.kind = "plus" : r.kind = "minus", this.next(), this.finishNode(
r, "Variance")) : r;
}
parseFunctionBody(r, n, s = !1) {
if (n) {
this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, s));
return;
}
super.parseFunctionBody(r, !1, s);
}
parseFunctionBodyAndFinish(r, n, s = !1) {
if (this.match(14)) {
let a = this.startNode();
[a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.returnType = a.typeAnnotation ? this.finishNode(a, "\
TypeAnnotation") : null;
}
return super.parseFunctionBodyAndFinish(r, n, s);
}
parseStatementLike(r) {
if (this.state.strict && this.isContextual(129)) {
let s = this.lookahead();
if (Wr(s.type)) {
let a = this.startNode();
return this.next(), this.flowParseInterface(a);
}
} else if (this.isContextual(126)) {
let s = this.startNode();
return this.next(), this.flowParseEnumDeclaration(s);
}
let n = super.parseStatementLike(r);
return this.flowPragma === void 0 && !this.isValidDirective(n) && (this.flowPragma = null), n;
}
parseExpressionStatement(r, n, s) {
if (n.type === "Identifier") {
if (n.name === "declare") {
if (this.match(80) || Ze(this.state.type) || this.match(68) || this.match(74) || this.match(82))
return this.flowParseDeclare(r);
} else if (Ze(this.state.type)) {
if (n.name === "interface")
return this.flowParseInterface(r);
if (n.name === "type")
return this.flowParseTypeAlias(r);
if (n.name === "opaque")
return this.flowParseOpaqueType(r, !1);
}
}
return super.parseExpressionStatement(r, n, s);
}
shouldParseExportDeclaration() {
let {
type: r
} = this.state;
return r === 126 || NT(r) ? !this.state.containsEsc : super.shouldParseExportDeclaration();
}
isExportDefaultSpecifier() {
let {
type: r
} = this.state;
return r === 126 || NT(r) ? this.state.containsEsc : super.isExportDefaultSpecifier();
}
parseExportDefaultExpression() {
if (this.isContextual(126)) {
let r = this.startNode();
return this.next(), this.flowParseEnumDeclaration(r);
}
return super.parseExportDefaultExpression();
}
parseConditional(r, n, s) {
if (!this.match(17)) return r;
if (this.state.maybeInArrowParameters) {
let h = this.lookaheadCharCode();
if (h === 44 || h === 61 || h === 58 || h === 41)
return this.setOptionalParametersError(s), r;
}
this.expect(17);
let a = this.state.clone(), o = this.state.noArrowAt, l = this.startNodeAt(n), {
consequent: u,
failed: c
} = this.tryParseConditionalConsequent(), [p, f] = this.getArrowLikeExpressions(u);
if (c || f.length > 0) {
let h = [...o];
if (f.length > 0) {
this.state = a, this.state.noArrowAt = h;
for (let y = 0; y < f.length; y++)
h.push(f[y].start);
({
consequent: u,
failed: c
} = this.tryParseConditionalConsequent()), [p, f] = this.getArrowLikeExpressions(u);
}
c && p.length > 1 && this.raise(Ae.AmbiguousConditionalArrow, a.startLoc), c && p.length === 1 && (this.state = a, h.push(p[0].start),
this.state.noArrowAt = h, {
consequent: u,
failed: c
} = this.tryParseConditionalConsequent());
}
return this.getArrowLikeExpressions(u, !0), this.state.noArrowAt = o, this.expect(14), l.test = r, l.consequent = u, l.alternate = this.
forwardNoArrowParamsConversionAt(l, () => this.parseMaybeAssign(void 0, void 0)), this.finishNode(l, "ConditionalExpression");
}
tryParseConditionalConsequent() {
this.state.noArrowParamsConversionAt.push(this.state.start);
let r = this.parseMaybeAssignAllowIn(), n = !this.match(14);
return this.state.noArrowParamsConversionAt.pop(), {
consequent: r,
failed: n
};
}
getArrowLikeExpressions(r, n) {
let s = [r], a = [];
for (; s.length !== 0; ) {
let o = s.pop();
o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation(
o) : a.push(o), s.push(o.body)) : o.type === "ConditionalExpression" && (s.push(o.consequent), s.push(o.alternate));
}
return n ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : WK(a, (o) => o.params.every((l) => this.isAssignable(l, !0)));
}
finishArrowValidation(r) {
var n;
this.toAssignableList(r.params, (n = r.extra) == null ? void 0 : n.trailingCommaLoc, !1), this.scope.enter(6), super.checkParams(r, !1,
!0), this.scope.exit();
}
forwardNoArrowParamsConversionAt(r, n) {
let s;
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? (this.state.noArrowParamsConversionAt.push(this.
state.start), s = n(), this.state.noArrowParamsConversionAt.pop()) : s = n(), s;
}
parseParenItem(r, n) {
let s = super.parseParenItem(r, n);
if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) {
let a = this.startNodeAt(n);
return a.expression = s, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression");
}
return s;
}
assertModuleNodeAllowed(r) {
r.type === "ImportDeclaration" && (r.importKind === "type" || r.importKind === "typeof") || r.type === "ExportNamedDeclaration" && r.exportKind ===
"type" || r.type === "ExportAllDeclaration" && r.exportKind === "type" || super.assertModuleNodeAllowed(r);
}
parseExportDeclaration(r) {
if (this.isContextual(130)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias(
n);
} else if (this.isContextual(131)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.flowParseOpaqueType(n, !1);
} else if (this.isContextual(129)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.flowParseInterface(n);
} else if (this.isContextual(126)) {
r.exportKind = "value";
let n = this.startNode();
return this.next(), this.flowParseEnumDeclaration(n);
} else
return super.parseExportDeclaration(r);
}
eatExportStar(r) {
return super.eatExportStar(r) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (r.exportKind = "type", this.next(), this.
next(), !0) : !1;
}
maybeParseExportNamespaceSpecifier(r) {
let {
startLoc: n
} = this.state, s = super.maybeParseExportNamespaceSpecifier(r);
return s && r.exportKind === "type" && this.unexpected(n), s;
}
parseClassId(r, n, s) {
super.parseClassId(r, n, s), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration());
}
parseClassMember(r, n, s) {
let {
startLoc: a
} = this.state;
if (this.isContextual(125)) {
if (super.parseClassMemberFromModifier(r, n))
return;
n.declare = !0;
}
super.parseClassMember(r, n, s), n.declare && (n.type !== "ClassProperty" && n.type !== "ClassPrivateProperty" && n.type !== "Property\
Definition" ? this.raise(Ae.DeclareClassElement, a) : n.value && this.raise(Ae.DeclareClassFieldInitializer, n.value));
}
isIterator(r) {
return r === "iterator" || r === "asyncIterator";
}
readIterator() {
let r = super.readWord1(), n = "@@" + r;
(!this.isIterator(r) || !this.state.inType) && this.raise(N.InvalidIdentifier, this.state.curPosition(), {
identifierName: n
}), this.finishToken(132, n);
}
getTokenFromCode(r) {
let n = this.input.charCodeAt(this.state.pos + 1);
r === 123 && n === 124 ? this.finishOp(6, 2) : this.state.inType && (r === 62 || r === 60) ? this.finishOp(r === 62 ? 48 : 47, 1) : this.
state.inType && r === 63 ? n === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : CK(r, n, this.input.charCodeAt(this.state.pos + 2)) ?
(this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r);
}
isAssignable(r, n) {
return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, n) : super.isAssignable(r, n);
}
toAssignable(r, n = !1) {
!n && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super.
toAssignable(r, n);
}
toAssignableList(r, n, s) {
for (let a = 0; a < r.length; a++) {
let o = r[a];
o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o));
}
super.toAssignableList(r, n, s);
}
toReferencedList(r, n) {
for (let a = 0; a < r.length; a++) {
var s;
let o = r[a];
o && o.type === "TypeCastExpression" && !((s = o.extra) != null && s.parenthesized) && (r.length > 1 || !n) && this.raise(Ae.TypeCastInPattern,
o.typeAnnotation);
}
return r;
}
parseArrayLike(r, n, s, a) {
let o = super.parseArrayLike(r, n, s, a);
return n && !this.state.maybeInArrowParameters && this.toReferencedList(o.elements), o;
}
isValidLVal(r, n, s) {
return r === "TypeCastExpression" || super.isValidLVal(r, n, s);
}
parseClassProperty(r) {
return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(r);
}
parseClassPrivateProperty(r) {
return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(r);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(14) || super.isClassProperty();
}
isNonstaticConstructor(r) {
return !this.match(14) && super.isNonstaticConstructor(r);
}
pushClassMethod(r, n, s, a, o, l) {
if (n.variance && this.unexpected(n.variance.loc.start), delete n.variance, this.match(47) && (n.typeParameters = this.flowParseTypeParameterDeclaration()),
super.pushClassMethod(r, n, s, a, o, l), n.params && o) {
let u = n.params;
u.length > 0 && this.isThisParam(u[0]) && this.raise(Ae.ThisParamBannedInConstructor, n);
} else if (n.type === "MethodDefinition" && o && n.value.params) {
let u = n.value.params;
u.length > 0 && this.isThisParam(u[0]) && this.raise(Ae.ThisParamBannedInConstructor, n);
}
}
pushClassPrivateMethod(r, n, s, a) {
n.variance && this.unexpected(n.variance.loc.start), delete n.variance, this.match(47) && (n.typeParameters = this.flowParseTypeParameterDeclaration()),
super.pushClassPrivateMethod(r, n, s, a);
}
parseClassSuper(r) {
if (super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression()),
this.isContextual(113)) {
this.next();
let n = r.implements = [];
do {
let s = this.startNode();
s.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? s.typeParameters = this.flowParseTypeParameterInstantiation() : s.
typeParameters = null, n.push(this.finishNode(s, "ClassImplements"));
} while (this.eat(12));
}
}
checkGetterSetterParams(r) {
super.checkGetterSetterParams(r);
let n = this.getObjectOrClassMethodParams(r);
if (n.length > 0) {
let s = n[0];
this.isThisParam(s) && r.kind === "get" ? this.raise(Ae.GetterMayNotHaveThisParam, s) : this.isThisParam(s) && this.raise(Ae.SetterMayNotHaveThisParam,
s);
}
}
parsePropertyNamePrefixOperator(r) {
r.variance = this.flowParseVariance();
}
parseObjPropValue(r, n, s, a, o, l, u) {
r.variance && this.unexpected(r.variance.loc.start), delete r.variance;
let c;
this.match(47) && !l && (c = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected());
let p = super.parseObjPropValue(r, n, s, a, o, l, u);
return c && ((p.value || p).typeParameters = c), p;
}
parseFunctionParamType(r) {
return this.eat(17) && (r.type !== "Identifier" && this.raise(Ae.PatternIsOptional, r), this.isThisParam(r) && this.raise(Ae.ThisParamMayNotBeOptional,
r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(Ae.ThisParamAnnotationRequired,
r), this.match(29) && this.isThisParam(r) && this.raise(Ae.ThisParamNoDefault, r), this.resetEndLocation(r), r;
}
parseMaybeDefault(r, n) {
let s = super.parseMaybeDefault(r, n);
return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(Ae.TypeBeforeInitializer,
s.typeAnnotation), s;
}
checkImportReflection(r) {
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(Ae.ImportReflectionHasImportType, r.specifiers[0].loc.
start);
}
parseImportSpecifierLocal(r, n, s) {
n.local = jT(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(n,
s));
}
isPotentialImportPhase(r) {
if (super.isPotentialImportPhase(r)) return !0;
if (this.isContextual(130)) {
if (!r) return !0;
let n = this.lookaheadCharCode();
return n === 123 || n === 42;
}
return !r && this.isContextual(87);
}
applyImportPhase(r, n, s, a) {
if (super.applyImportPhase(r, n, s, a), n) {
if (!s && this.match(65))
return;
r.exportKind = s === "type" ? s : "value";
} else
s === "type" && this.match(55) && this.unexpected(), r.importKind = s === "type" || s === "typeof" ? s : "value";
}
parseImportSpecifier(r, n, s, a, o) {
let l = r.imported, u = null;
l.type === "Identifier" && (l.name === "type" ? u = "type" : l.name === "typeof" && (u = "typeof"));
let c = !1;
if (this.isContextual(93) && !this.isLookaheadContextual("as")) {
let f = this.parseIdentifier(!0);
u !== null && !Wr(this.state.type) ? (r.imported = f, r.importKind = u, r.local = In(f)) : (r.imported = l, r.importKind = null, r.local =
this.parseIdentifier());
} else {
if (u !== null && Wr(this.state.type))
r.imported = this.parseIdentifier(!0), r.importKind = u;
else {
if (n)
throw this.raise(N.ImportBindingIsString, r, {
importName: l.value
});
r.imported = l, r.importKind = null;
}
this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = In(r.imported));
}
let p = jT(r);
return s && p && this.raise(Ae.ImportTypeShorthandOnlyInPureImport, r), (s || p) && this.checkReservedType(r.local.name, r.local.loc.start,
!0), c && !s && !p && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier");
}
parseBindingAtom() {
switch (this.state.type) {
case 78:
return this.parseIdentifier(!0);
default:
return super.parseBindingAtom();
}
}
parseFunctionParams(r, n) {
let s = r.kind;
s !== "get" && s !== "set" && this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams(
r, n);
}
parseVarId(r, n) {
super.parseVarId(r, n), this.match(14) && (r.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(r.id));
}
parseAsyncArrowFromCallExpression(r, n) {
if (this.match(14)) {
let s = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = s;
}
return super.parseAsyncArrowFromCallExpression(r, n);
}
shouldParseAsyncArrow() {
return this.match(14) || super.shouldParseAsyncArrow();
}
parseMaybeAssign(r, n) {
var s;
let a = null, o;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, n), a), !o.error) return o.node;
let {
context: c
} = this.state, p = c[c.length - 1];
(p === Qe.j_oTag || p === Qe.j_expr) && c.pop();
}
if ((s = o) != null && s.error || this.match(47)) {
var l, u;
a = a || this.state.clone();
let c, p = this.tryParse((h) => {
var y;
c = this.flowParseTypeParameterDeclaration();
let E = this.forwardNoArrowParamsConversionAt(c, () => {
let g = super.parseMaybeAssign(r, n);
return this.resetStartLocationFromNode(g, c), g;
});
(y = E.extra) != null && y.parenthesized && h();
let d = this.maybeUnwrapTypeCastExpression(E);
return d.type !== "ArrowFunctionExpression" && h(), d.typeParameters = c, this.resetStartLocationFromNode(d, c), E;
}, a), f = null;
if (p.node && this.maybeUnwrapTypeCastExpression(p.node).type === "ArrowFunctionExpression") {
if (!p.error && !p.aborted)
return p.node.async && this.raise(Ae.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), p.node;
f = p.node;
}
if ((l = o) != null && l.node)
return this.state = o.failState, o.node;
if (f)
return this.state = p.failState, f;
throw (u = o) != null && u.thrown ? o.error : p.thrown ? p.error : this.raise(Ae.UnexpectedTokenAfterTypeParameter, c);
}
return super.parseMaybeAssign(r, n);
}
parseArrow(r) {
if (this.match(14)) {
let n = this.tryParse(() => {
let s = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = !0;
let a = this.startNode();
return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = s, this.canInsertSemicolon() &&
this.unexpected(), this.match(19) || this.unexpected(), a;
});
if (n.thrown) return null;
n.error && (this.state = n.failState), r.returnType = n.node.typeAnnotation ? this.finishNode(n.node, "TypeAnnotation") : null;
}
return super.parseArrow(r);
}
shouldParseArrow(r) {
return this.match(14) || super.shouldParseArrow(r);
}
setArrowFunctionParameters(r, n) {
this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? r.params = n : super.setArrowFunctionParameters(r, n);
}
checkParams(r, n, s, a = !0) {
if (!(s && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) {
for (let o = 0; o < r.params.length; o++)
this.isThisParam(r.params[o]) && o > 0 && this.raise(Ae.ThisParamMustBeFirst, r.params[o]);
super.checkParams(r, n, s, a);
}
}
parseParenAndDistinguishExpression(r) {
return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)));
}
parseSubscripts(r, n, s) {
if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(n.index)) {
this.next();
let a = this.startNodeAt(n);
a.callee = r, a.arguments = super.parseCallExpressionArguments(11), r = this.finishNode(a, "CallExpression");
} else if (r.type === "Identifier" && r.name === "async" && this.match(47)) {
let a = this.state.clone(), o = this.tryParse((u) => this.parseAsyncArrowWithTypeParameters(n) || u(), a);
if (!o.error && !o.aborted) return o.node;
let l = this.tryParse(() => super.parseSubscripts(r, n, s), a);
if (l.node && !l.error) return l.node;
if (o.node)
return this.state = o.failState, o.node;
if (l.node)
return this.state = l.failState, l.node;
throw o.error || l.error;
}
return super.parseSubscripts(r, n, s);
}
parseSubscript(r, n, s, a) {
if (this.match(18) && this.isLookaheadToken_lt()) {
if (a.optionalChainMember = !0, s)
return a.stop = !0, r;
this.next();
let o = this.startNodeAt(n);
return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), o.arguments = this.parseCallExpressionArguments(
11), o.optional = !0, this.finishCallExpression(o, !0);
} else if (!s && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
let o = this.startNodeAt(n);
o.callee = r;
let l = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super.
parseCallExpressionArguments(11), a.optionalChainMember && (o.optional = !1), this.finishCallExpression(o, a.optionalChainMember)));
if (l.node)
return l.error && (this.state = l.failState), l.node;
}
return super.parseSubscript(r, n, s, a);
}
parseNewCallee(r) {
super.parseNewCallee(r);
let n = null;
this.shouldParseTypes() && this.match(47) && (n = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), r.typeArguments =
n;
}
parseAsyncArrowWithTypeParameters(r) {
let n = this.startNodeAt(r);
if (this.parseFunctionParams(n, !1), !!this.parseArrow(n))
return super.parseArrowExpression(n, void 0, !0);
}
readToken_mult_modulo(r) {
let n = this.input.charCodeAt(this.state.pos + 1);
if (r === 42 && n === 47 && this.state.hasFlowComment) {
this.state.hasFlowComment = !1, this.state.pos += 2, this.nextToken();
return;
}
super.readToken_mult_modulo(r);
}
readToken_pipe_amp(r) {
let n = this.input.charCodeAt(this.state.pos + 1);
if (r === 124 && n === 125) {
this.finishOp(9, 2);
return;
}
super.readToken_pipe_amp(r);
}
parseTopLevel(r, n) {
let s = super.parseTopLevel(r, n);
return this.state.hasFlowComment && this.raise(Ae.UnterminatedFlowComment, this.state.curPosition()), s;
}
skipBlockComment() {
if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
if (this.state.hasFlowComment)
throw this.raise(Ae.NestedFlowComment, this.state.startLoc);
this.hasFlowCommentCompletion();
let r = this.skipFlowComment();
r && (this.state.pos += r, this.state.hasFlowComment = !0);
return;
}
return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/");
}
skipFlowComment() {
let {
pos: r
} = this.state, n = 2;
for (; [32, 9].includes(this.input.charCodeAt(r + n)); )
n++;
let s = this.input.charCodeAt(n + r), a = this.input.charCodeAt(n + r + 1);
return s === 58 && a === 58 ? n + 2 : this.input.slice(n + r, n + r + 12) === "flow-include" ? n + 12 : s === 58 && a !== 58 ? n : !1;
}
hasFlowCommentCompletion() {
if (this.input.indexOf("*/", this.state.pos) === -1)
throw this.raise(N.UnterminatedComment, this.state.curPosition());
}
flowEnumErrorBooleanMemberNotInitialized(r, {
enumName: n,
memberName: s
}) {
this.raise(Ae.EnumBooleanMemberNotInitialized, r, {
memberName: s,
enumName: n
});
}
flowEnumErrorInvalidMemberInitializer(r, n) {
return this.raise(n.explicitType ? n.explicitType === "symbol" ? Ae.EnumInvalidMemberInitializerSymbolType : Ae.EnumInvalidMemberInitializerPrimaryType :
Ae.EnumInvalidMemberInitializerUnknownType, r, n);
}
flowEnumErrorNumberMemberNotInitialized(r, n) {
this.raise(Ae.EnumNumberMemberNotInitialized, r, n);
}
flowEnumErrorStringMemberInconsistentlyInitialized(r, n) {
this.raise(Ae.EnumStringMemberInconsistentlyInitialized, r, n);
}
flowEnumMemberInit() {
let r = this.state.startLoc, n = /* @__PURE__ */ i(() => this.match(12) || this.match(8), "endOfInit");
switch (this.state.type) {
case 135: {
let s = this.parseNumericLiteral(this.state.value);
return n() ? {
type: "number",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
case 134: {
let s = this.parseStringLiteral(this.state.value);
return n() ? {
type: "string",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
case 85:
case 86: {
let s = this.parseBooleanLiteral(this.match(85));
return n() ? {
type: "boolean",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
default:
return {
type: "invalid",
loc: r
};
}
}
flowEnumMemberRaw() {
let r = this.state.startLoc, n = this.parseIdentifier(!0), s = this.eat(29) ? this.flowEnumMemberInit() : {
type: "none",
loc: r
};
return {
id: n,
init: s
};
}
flowEnumCheckExplicitTypeMismatch(r, n, s) {
let {
explicitType: a
} = n;
a !== null && a !== s && this.flowEnumErrorInvalidMemberInitializer(r, n);
}
flowEnumMembers({
enumName: r,
explicitType: n
}) {
let s = /* @__PURE__ */ new Set(), a = {
booleanMembers: [],
numberMembers: [],
stringMembers: [],
defaultedMembers: []
}, o = !1;
for (; !this.match(8); ) {
if (this.eat(21)) {
o = !0;
break;
}
let l = this.startNode(), {
id: u,
init: c
} = this.flowEnumMemberRaw(), p = u.name;
if (p === "")
continue;
/^[a-z]/.test(p) && this.raise(Ae.EnumInvalidMemberName, u, {
memberName: p,
suggestion: p[0].toUpperCase() + p.slice(1),
enumName: r
}), s.has(p) && this.raise(Ae.EnumDuplicateMemberName, u, {
memberName: p,
enumName: r
}), s.add(p);
let f = {
enumName: r,
explicitType: n,
memberName: p
};
switch (l.id = u, c.type) {
case "boolean": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "boolean"), l.init = c.value, a.booleanMembers.push(this.finishNode(l, "EnumBoo\
leanMember"));
break;
}
case "number": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "number"), l.init = c.value, a.numberMembers.push(this.finishNode(l, "EnumNumbe\
rMember"));
break;
}
case "string": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "string"), l.init = c.value, a.stringMembers.push(this.finishNode(l, "EnumStrin\
gMember"));
break;
}
case "invalid":
throw this.flowEnumErrorInvalidMemberInitializer(c.loc, f);
case "none":
switch (n) {
case "boolean":
this.flowEnumErrorBooleanMemberNotInitialized(c.loc, f);
break;
case "number":
this.flowEnumErrorNumberMemberNotInitialized(c.loc, f);
break;
default:
a.defaultedMembers.push(this.finishNode(l, "EnumDefaultedMember"));
}
}
this.match(8) || this.expect(12);
}
return {
members: a,
hasUnknownMembers: o
};
}
flowEnumStringMembers(r, n, {
enumName: s
}) {
if (r.length === 0)
return n;
if (n.length === 0)
return r;
if (n.length > r.length) {
for (let a of r)
this.flowEnumErrorStringMemberInconsistentlyInitialized(a, {
enumName: s
});
return n;
} else {
for (let a of n)
this.flowEnumErrorStringMemberInconsistentlyInitialized(a, {
enumName: s
});
return r;
}
}
flowEnumParseExplicitType({
enumName: r
}) {
if (!this.eatContextual(102)) return null;
if (!Ze(this.state.type))
throw this.raise(Ae.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, {
enumName: r
});
let {
value: n
} = this.state;
return this.next(), n !== "boolean" && n !== "number" && n !== "string" && n !== "symbol" && this.raise(Ae.EnumInvalidExplicitType, this.
state.startLoc, {
enumName: r,
invalidEnumType: n
}), n;
}
flowEnumBody(r, n) {
let s = n.name, a = n.loc.start, o = this.flowEnumParseExplicitType({
enumName: s
});
this.expect(5);
let {
members: l,
hasUnknownMembers: u
} = this.flowEnumMembers({
enumName: s,
explicitType: o
});
switch (r.hasUnknownMembers = u, o) {
case "boolean":
return r.explicitType = !0, r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody");
case "number":
return r.explicitType = !0, r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody");
case "string":
return r.explicitType = !0, r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, {
enumName: s
}), this.expect(8), this.finishNode(r, "EnumStringBody");
case "symbol":
return r.members = l.defaultedMembers, this.expect(8), this.finishNode(r, "EnumSymbolBody");
default: {
let c = /* @__PURE__ */ i(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty");
r.explicitType = !1;
let p = l.booleanMembers.length, f = l.numberMembers.length, h = l.stringMembers.length, y = l.defaultedMembers.length;
if (!p && !f && !h && !y)
return c();
if (!p && !f)
return r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, {
enumName: s
}), this.expect(8), this.finishNode(r, "EnumStringBody");
if (!f && !h && p >= y) {
for (let E of l.defaultedMembers)
this.flowEnumErrorBooleanMemberNotInitialized(E.loc.start, {
enumName: s,
memberName: E.id.name
});
return r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody");
} else if (!p && !h && f >= y) {
for (let E of l.defaultedMembers)
this.flowEnumErrorNumberMemberNotInitialized(E.loc.start, {
enumName: s,
memberName: E.id.name
});
return r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody");
} else
return this.raise(Ae.EnumInconsistentMemberValues, a, {
enumName: s
}), c();
}
}
}
flowParseEnumDeclaration(r) {
let n = this.parseIdentifier();
return r.id = n, r.body = this.flowEnumBody(this.startNode(), n), this.finishNode(r, "EnumDeclaration");
}
jsxParseOpeningElementAfterName(r) {
return this.shouldParseTypes() && (this.match(47) || this.match(51)) && (r.typeArguments = this.flowParseTypeParameterInstantiationInExpression()),
super.jsxParseOpeningElementAfterName(r);
}
isLookaheadToken_lt() {
let r = this.nextTokenStart();
if (this.input.charCodeAt(r) === 60) {
let n = this.input.charCodeAt(r + 1);
return n !== 60 && n !== 61;
}
return !1;
}
reScan_lt_gt() {
let {
type: r
} = this.state;
r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let {
type: r
} = this.state;
return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r;
}
maybeUnwrapTypeCastExpression(r) {
return r.type === "TypeCastExpression" ? r.expression : r;
}
}, "flow"), HK = {
__proto__: null,
quot: '"',
amp: "&",
apos: "'",
lt: "<",
gt: ">",
nbsp: "\xA0",
iexcl: "\xA1",
cent: "\xA2",
pound: "\xA3",
curren: "\xA4",
yen: "\xA5",
brvbar: "\xA6",
sect: "\xA7",
uml: "\xA8",
copy: "\xA9",
ordf: "\xAA",
laquo: "\xAB",
not: "\xAC",
shy: "\xAD",
reg: "\xAE",
macr: "\xAF",
deg: "\xB0",
plusmn: "\xB1",
sup2: "\xB2",
sup3: "\xB3",
acute: "\xB4",
micro: "\xB5",
para: "\xB6",
middot: "\xB7",
cedil: "\xB8",
sup1: "\xB9",
ordm: "\xBA",
raquo: "\xBB",
frac14: "\xBC",
frac12: "\xBD",
frac34: "\xBE",
iquest: "\xBF",
Agrave: "\xC0",
Aacute: "\xC1",
Acirc: "\xC2",
Atilde: "\xC3",
Auml: "\xC4",
Aring: "\xC5",
AElig: "\xC6",
Ccedil: "\xC7",
Egrave: "\xC8",
Eacute: "\xC9",
Ecirc: "\xCA",
Euml: "\xCB",
Igrave: "\xCC",
Iacute: "\xCD",
Icirc: "\xCE",
Iuml: "\xCF",
ETH: "\xD0",
Ntilde: "\xD1",
Ograve: "\xD2",
Oacute: "\xD3",
Ocirc: "\xD4",
Otilde: "\xD5",
Ouml: "\xD6",
times: "\xD7",
Oslash: "\xD8",
Ugrave: "\xD9",
Uacute: "\xDA",
Ucirc: "\xDB",
Uuml: "\xDC",
Yacute: "\xDD",
THORN: "\xDE",
szlig: "\xDF",
agrave: "\xE0",
aacute: "\xE1",
acirc: "\xE2",
atilde: "\xE3",
auml: "\xE4",
aring: "\xE5",
aelig: "\xE6",
ccedil: "\xE7",
egrave: "\xE8",
eacute: "\xE9",
ecirc: "\xEA",
euml: "\xEB",
igrave: "\xEC",
iacute: "\xED",
icirc: "\xEE",
iuml: "\xEF",
eth: "\xF0",
ntilde: "\xF1",
ograve: "\xF2",
oacute: "\xF3",
ocirc: "\xF4",
otilde: "\xF5",
ouml: "\xF6",
divide: "\xF7",
oslash: "\xF8",
ugrave: "\xF9",
uacute: "\xFA",
ucirc: "\xFB",
uuml: "\xFC",
yacute: "\xFD",
thorn: "\xFE",
yuml: "\xFF",
OElig: "\u0152",
oelig: "\u0153",
Scaron: "\u0160",
scaron: "\u0161",
Yuml: "\u0178",
fnof: "\u0192",
circ: "\u02C6",
tilde: "\u02DC",
Alpha: "\u0391",
Beta: "\u0392",
Gamma: "\u0393",
Delta: "\u0394",
Epsilon: "\u0395",
Zeta: "\u0396",
Eta: "\u0397",
Theta: "\u0398",
Iota: "\u0399",
Kappa: "\u039A",
Lambda: "\u039B",
Mu: "\u039C",
Nu: "\u039D",
Xi: "\u039E",
Omicron: "\u039F",
Pi: "\u03A0",
Rho: "\u03A1",
Sigma: "\u03A3",
Tau: "\u03A4",
Upsilon: "\u03A5",
Phi: "\u03A6",
Chi: "\u03A7",
Psi: "\u03A8",
Omega: "\u03A9",
alpha: "\u03B1",
beta: "\u03B2",
gamma: "\u03B3",
delta: "\u03B4",
epsilon: "\u03B5",
zeta: "\u03B6",
eta: "\u03B7",
theta: "\u03B8",
iota: "\u03B9",
kappa: "\u03BA",
lambda: "\u03BB",
mu: "\u03BC",
nu: "\u03BD",
xi: "\u03BE",
omicron: "\u03BF",
pi: "\u03C0",
rho: "\u03C1",
sigmaf: "\u03C2",
sigma: "\u03C3",
tau: "\u03C4",
upsilon: "\u03C5",
phi: "\u03C6",
chi: "\u03C7",
psi: "\u03C8",
omega: "\u03C9",
thetasym: "\u03D1",
upsih: "\u03D2",
piv: "\u03D6",
ensp: "\u2002",
emsp: "\u2003",
thinsp: "\u2009",
zwnj: "\u200C",
zwj: "\u200D",
lrm: "\u200E",
rlm: "\u200F",
ndash: "\u2013",
mdash: "\u2014",
lsquo: "\u2018",
rsquo: "\u2019",
sbquo: "\u201A",
ldquo: "\u201C",
rdquo: "\u201D",
bdquo: "\u201E",
dagger: "\u2020",
Dagger: "\u2021",
bull: "\u2022",
hellip: "\u2026",
permil: "\u2030",
prime: "\u2032",
Prime: "\u2033",
lsaquo: "\u2039",
rsaquo: "\u203A",
oline: "\u203E",
frasl: "\u2044",
euro: "\u20AC",
image: "\u2111",
weierp: "\u2118",
real: "\u211C",
trade: "\u2122",
alefsym: "\u2135",
larr: "\u2190",
uarr: "\u2191",
rarr: "\u2192",
darr: "\u2193",
harr: "\u2194",
crarr: "\u21B5",
lArr: "\u21D0",
uArr: "\u21D1",
rArr: "\u21D2",
dArr: "\u21D3",
hArr: "\u21D4",
forall: "\u2200",
part: "\u2202",
exist: "\u2203",
empty: "\u2205",
nabla: "\u2207",
isin: "\u2208",
notin: "\u2209",
ni: "\u220B",
prod: "\u220F",
sum: "\u2211",
minus: "\u2212",
lowast: "\u2217",
radic: "\u221A",
prop: "\u221D",
infin: "\u221E",
ang: "\u2220",
and: "\u2227",
or: "\u2228",
cap: "\u2229",
cup: "\u222A",
int: "\u222B",
there4: "\u2234",
sim: "\u223C",
cong: "\u2245",
asymp: "\u2248",
ne: "\u2260",
equiv: "\u2261",
le: "\u2264",
ge: "\u2265",
sub: "\u2282",
sup: "\u2283",
nsub: "\u2284",
sube: "\u2286",
supe: "\u2287",
oplus: "\u2295",
otimes: "\u2297",
perp: "\u22A5",
sdot: "\u22C5",
lceil: "\u2308",
rceil: "\u2309",
lfloor: "\u230A",
rfloor: "\u230B",
lang: "\u2329",
rang: "\u232A",
loz: "\u25CA",
spades: "\u2660",
clubs: "\u2663",
hearts: "\u2665",
diams: "\u2666"
}, js = wn`jsx`({
AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.",
MissingClosingTagElement: /* @__PURE__ */ i(({
openingTagName: e
}) => `Expected corresponding JSX closing tag for <${e}>.`, "MissingClosingTagElement"),
MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.",
UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",
UnexpectedToken: /* @__PURE__ */ i(({
unexpected: e,
HTMLEntity: t
}) => `Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`, "UnexpectedToken"),
UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.",
UnterminatedJsxContent: "Unterminated JSX contents.",
UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...>?"
});
function rs(e) {
return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1;
}
i(rs, "isFragment");
function Ci(e) {
if (e.type === "JSXIdentifier")
return e.name;
if (e.type === "JSXNamespacedName")
return e.namespace.name + ":" + e.name.name;
if (e.type === "JSXMemberExpression")
return Ci(e.object) + "." + Ci(e.property);
throw new Error("Node had unexpected type: " + e.type);
}
i(Ci, "getQualifiedJSXName");
var YK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "JSXParserMixin");
}
jsxReadToken() {
let r = "", n = this.state.pos;
for (; ; ) {
if (this.state.pos >= this.length)
throw this.raise(js.UnterminatedJsxContent, this.state.startLoc);
let s = this.input.charCodeAt(this.state.pos);
switch (s) {
case 60:
case 123:
if (this.state.pos === this.state.start) {
s === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(s);
return;
}
r += this.input.slice(n, this.state.pos), this.finishToken(142, r);
return;
case 38:
r += this.input.slice(n, this.state.pos), r += this.jsxReadEntity(), n = this.state.pos;
break;
case 62:
case 125:
default:
wi(s) ? (r += this.input.slice(n, this.state.pos), r += this.jsxReadNewLine(!0), n = this.state.pos) : ++this.state.pos;
}
}
}
jsxReadNewLine(r) {
let n = this.input.charCodeAt(this.state.pos), s;
return ++this.state.pos, n === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, s = r ? `
` : `\r
`) : s = String.fromCharCode(n), ++this.state.curLine, this.state.lineStart = this.state.pos, s;
}
jsxReadString(r) {
let n = "", s = ++this.state.pos;
for (; ; ) {
if (this.state.pos >= this.length)
throw this.raise(N.UnterminatedString, this.state.startLoc);
let a = this.input.charCodeAt(this.state.pos);
if (a === r) break;
a === 38 ? (n += this.input.slice(s, this.state.pos), n += this.jsxReadEntity(), s = this.state.pos) : wi(a) ? (n += this.input.slice(
s, this.state.pos), n += this.jsxReadNewLine(!1), s = this.state.pos) : ++this.state.pos;
}
n += this.input.slice(s, this.state.pos++), this.finishToken(134, n);
}
jsxReadEntity() {
let r = ++this.state.pos;
if (this.codePointAtPos(this.state.pos) === 35) {
++this.state.pos;
let n = 10;
this.codePointAtPos(this.state.pos) === 120 && (n = 16, ++this.state.pos);
let s = this.readInt(n, void 0, !1, "bail");
if (s !== null && this.codePointAtPos(this.state.pos) === 59)
return ++this.state.pos, String.fromCodePoint(s);
} else {
let n = 0, s = !1;
for (; n++ < 10 && this.state.pos < this.length && !(s = this.codePointAtPos(this.state.pos) === 59); )
++this.state.pos;
if (s) {
let a = this.input.slice(r, this.state.pos), o = HK[a];
if (++this.state.pos, o)
return o;
}
}
return this.state.pos = r, "&";
}
jsxReadWord() {
let r, n = this.state.pos;
do
r = this.input.charCodeAt(++this.state.pos);
while (Di(r) || r === 45);
this.finishToken(141, this.input.slice(n, this.state.pos));
}
jsxParseIdentifier() {
let r = this.startNode();
return this.match(141) ? r.name = this.state.value : Ih(this.state.type) ? r.name = ns(this.state.type) : this.unexpected(), this.next(),
this.finishNode(r, "JSXIdentifier");
}
jsxParseNamespacedName() {
let r = this.state.startLoc, n = this.jsxParseIdentifier();
if (!this.eat(14)) return n;
let s = this.startNodeAt(r);
return s.namespace = n, s.name = this.jsxParseIdentifier(), this.finishNode(s, "JSXNamespacedName");
}
jsxParseElementName() {
let r = this.state.startLoc, n = this.jsxParseNamespacedName();
if (n.type === "JSXNamespacedName")
return n;
for (; this.eat(16); ) {
let s = this.startNodeAt(r);
s.object = n, s.property = this.jsxParseIdentifier(), n = this.finishNode(s, "JSXMemberExpression");
}
return n;
}
jsxParseAttributeValue() {
let r;
switch (this.state.type) {
case 5:
return r = this.startNode(), this.setContext(Qe.brace), this.next(), r = this.jsxParseExpressionContainer(r, Qe.j_oTag), r.expression.
type === "JSXEmptyExpression" && this.raise(js.AttributeIsEmpty, r), r;
case 143:
case 134:
return this.parseExprAtom();
default:
throw this.raise(js.UnsupportedJsxValue, this.state.startLoc);
}
}
jsxParseEmptyExpression() {
let r = this.startNodeAt(this.state.lastTokEndLoc);
return this.finishNodeAt(r, "JSXEmptyExpression", this.state.startLoc);
}
jsxParseSpreadChild(r) {
return this.next(), r.expression = this.parseExpression(), this.setContext(Qe.j_expr), this.state.canStartJSXElement = !0, this.expect(
8), this.finishNode(r, "JSXSpreadChild");
}
jsxParseExpressionContainer(r, n) {
if (this.match(8))
r.expression = this.jsxParseEmptyExpression();
else {
let s = this.parseExpression();
r.expression = s;
}
return this.setContext(n), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXExpressionContainer");
}
jsxParseAttribute() {
let r = this.startNode();
return this.match(5) ? (this.setContext(Qe.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext(
Qe.j_oTag), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXSpreadAttribute")) : (r.name = this.jsxParseNamespacedName(),
r.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(r, "JSXAttribute"));
}
jsxParseOpeningElementAt(r) {
let n = this.startNodeAt(r);
return this.eat(144) ? this.finishNode(n, "JSXOpeningFragment") : (n.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName(
n));
}
jsxParseOpeningElementAfterName(r) {
let n = [];
for (; !this.match(56) && !this.match(144); )
n.push(this.jsxParseAttribute());
return r.attributes = n, r.selfClosing = this.eat(56), this.expect(144), this.finishNode(r, "JSXOpeningElement");
}
jsxParseClosingElementAt(r) {
let n = this.startNodeAt(r);
return this.eat(144) ? this.finishNode(n, "JSXClosingFragment") : (n.name = this.jsxParseElementName(), this.expect(144), this.finishNode(
n, "JSXClosingElement"));
}
jsxParseElementAt(r) {
let n = this.startNodeAt(r), s = [], a = this.jsxParseOpeningElementAt(r), o = null;
if (!a.selfClosing) {
e: for (; ; )
switch (this.state.type) {
case 143:
if (r = this.state.startLoc, this.next(), this.eat(56)) {
o = this.jsxParseClosingElementAt(r);
break e;
}
s.push(this.jsxParseElementAt(r));
break;
case 142:
s.push(this.parseLiteral(this.state.value, "JSXText"));
break;
case 5: {
let l = this.startNode();
this.setContext(Qe.brace), this.next(), this.match(21) ? s.push(this.jsxParseSpreadChild(l)) : s.push(this.jsxParseExpressionContainer(
l, Qe.j_expr));
break;
}
default:
this.unexpected();
}
rs(a) && !rs(o) && o !== null ? this.raise(js.MissingClosingTagFragment, o) : !rs(a) && rs(o) ? this.raise(js.MissingClosingTagElement,
o, {
openingTagName: Ci(a.name)
}) : !rs(a) && !rs(o) && Ci(o.name) !== Ci(a.name) && this.raise(js.MissingClosingTagElement, o, {
openingTagName: Ci(a.name)
});
}
if (rs(a) ? (n.openingFragment = a, n.closingFragment = o) : (n.openingElement = a, n.closingElement = o), n.children = s, this.match(
47))
throw this.raise(js.UnwrappedAdjacentJSXElements, this.state.startLoc);
return rs(a) ? this.finishNode(n, "JSXFragment") : this.finishNode(n, "JSXElement");
}
jsxParseElement() {
let r = this.state.startLoc;
return this.next(), this.jsxParseElementAt(r);
}
setContext(r) {
let {
context: n
} = this.state;
n[n.length - 1] = r;
}
parseExprAtom(r) {
return this.match(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken(
143), this.jsxParseElement()) : super.parseExprAtom(r);
}
skipSpace() {
this.curContext().preserveSpace || super.skipSpace();
}
getTokenFromCode(r) {
let n = this.curContext();
if (n === Qe.j_expr) {
this.jsxReadToken();
return;
}
if (n === Qe.j_oTag || n === Qe.j_cTag) {
if (Dn(r)) {
this.jsxReadWord();
return;
}
if (r === 62) {
++this.state.pos, this.finishToken(144);
return;
}
if ((r === 34 || r === 39) && n === Qe.j_oTag) {
this.jsxReadString(r);
return;
}
}
if (r === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) {
++this.state.pos, this.finishToken(143);
return;
}
super.getTokenFromCode(r);
}
updateContext(r) {
let {
context: n,
type: s
} = this.state;
if (s === 56 && r === 143)
n.splice(-2, 2, Qe.j_cTag), this.state.canStartJSXElement = !1;
else if (s === 143)
n.push(Qe.j_oTag);
else if (s === 144) {
let a = n[n.length - 1];
a === Qe.j_oTag && r === 56 || a === Qe.j_cTag ? (n.pop(), this.state.canStartJSXElement = n[n.length - 1] === Qe.j_expr) : (this.setContext(
Qe.j_expr), this.state.canStartJSXElement = !0);
} else
this.state.canStartJSXElement = cK(s);
}
}, "jsx"), bh = class extends Ka {
static {
i(this, "TypeScriptScope");
}
constructor(...t) {
super(...t), this.tsNames = /* @__PURE__ */ new Map();
}
}, Eh = class extends Ga {
static {
i(this, "TypeScriptScopeHandler");
}
constructor(...t) {
super(...t), this.importsStack = [];
}
createScope(t) {
return this.importsStack.push(/* @__PURE__ */ new Set()), new bh(t);
}
enter(t) {
t === 256 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t);
}
exit() {
let t = super.exit();
return t === 256 && this.importsStack.pop(), t;
}
hasImport(t, r) {
let n = this.importsStack.length;
if (this.importsStack[n - 1].has(t))
return !0;
if (!r && n > 1) {
for (let s = 0; s < n - 1; s++)
if (this.importsStack[s].has(t)) return !0;
}
return !1;
}
declareName(t, r, n) {
if (r & 4096) {
this.hasImport(t, !0) && this.parser.raise(N.VarRedeclaration, n, {
identifierName: t
}), this.importsStack[this.importsStack.length - 1].add(t);
return;
}
let s = this.currentScope(), a = s.tsNames.get(t) || 0;
if (r & 1024) {
this.maybeExportDefined(s, t), s.tsNames.set(t, a | 16);
return;
}
super.declareName(t, r, n), r & 2 && (r & 1 || (this.checkRedeclarationInScope(s, t, r, n), this.maybeExportDefined(s, t)), a = a | 1),
r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && s.tsNames.set(t, a);
}
isRedeclaredInScope(t, r, n) {
let s = t.tsNames.get(r);
if ((s & 2) > 0) {
if (n & 256) {
let a = !!(n & 512), o = (s & 4) > 0;
return a !== o;
}
return !0;
}
return n & 128 && (s & 8) > 0 ? t.names.get(r) & 2 ? !!(n & 1) : !1 : n & 2 && (s & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, n);
}
checkLocalExport(t) {
let {
name: r
} = t;
if (this.hasImport(r)) return;
let n = this.scopeStack.length;
for (let s = n - 1; s >= 0; s--) {
let o = this.scopeStack[s].tsNames.get(r);
if ((o & 1) > 0 || (o & 16) > 0)
return;
}
super.checkLocalExport(t);
}
}, eS = /* @__PURE__ */ i((e) => e.type === "ParenthesizedExpression" ? eS(e.expression) : e, "unwrapParenthesizedExpression"), Th = class extends gh {
static {
i(this, "LValParser");
}
toAssignable(t, r = !1) {
var n, s;
let a;
switch ((t.type === "ParenthesizedExpression" || (n = t.extra) != null && n.parenthesized) && (a = eS(t), r ? a.type === "Identifier" ?
this.expressionScope.recordArrowParameterBindingError(N.InvalidParenthesizedAssignment, t) : a.type !== "MemberExpression" && !this.isOptionalMemberExpression(
a) && this.raise(N.InvalidParenthesizedAssignment, t) : this.raise(N.InvalidParenthesizedAssignment, t)), t.type) {
case "Identifier":
case "ObjectPattern":
case "ArrayPattern":
case "AssignmentPattern":
case "RestElement":
break;
case "ObjectExpression":
t.type = "ObjectPattern";
for (let l = 0, u = t.properties.length, c = u - 1; l < u; l++) {
var o;
let p = t.properties[l], f = l === c;
this.toAssignableObjectExpressionProp(p, f, r), f && p.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this.
raise(N.RestTrailingComma, t.extra.trailingCommaLoc);
}
break;
case "ObjectProperty": {
let {
key: l,
value: u
} = t;
this.isPrivateName(l) && this.classScope.usePrivateName(this.getPrivateNameSV(l), l.loc.start), this.toAssignable(u, r);
break;
}
case "SpreadElement":
throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignabl\
e's caller.");
case "ArrayExpression":
t.type = "ArrayPattern", this.toAssignableList(t.elements, (s = t.extra) == null ? void 0 : s.trailingCommaLoc, r);
break;
case "AssignmentExpression":
t.operator !== "=" && this.raise(N.MissingEqInAssignment, t.left.loc.end), t.type = "AssignmentPattern", delete t.operator, this.toAssignable(
t.left, r);
break;
case "ParenthesizedExpression":
this.toAssignable(a, r);
break;
}
}
toAssignableObjectExpressionProp(t, r, n) {
if (t.type === "ObjectMethod")
this.raise(t.kind === "get" || t.kind === "set" ? N.PatternHasAccessor : N.PatternHasMethod, t.key);
else if (t.type === "SpreadElement") {
t.type = "RestElement";
let s = t.argument;
this.checkToRestConversion(s, !1), this.toAssignable(s, n), r || this.raise(N.RestTrailingComma, t);
} else
this.toAssignable(t, n);
}
toAssignableList(t, r, n) {
let s = t.length - 1;
for (let a = 0; a <= s; a++) {
let o = t[a];
o && (this.toAssignableListItem(t, a, n), o.type === "RestElement" && (a < s ? this.raise(N.RestTrailingComma, o) : r && this.raise(
N.RestTrailingComma, r)));
}
}
toAssignableListItem(t, r, n) {
let s = t[r];
if (s.type === "SpreadElement") {
s.type = "RestElement";
let a = s.argument;
this.checkToRestConversion(a, !0), this.toAssignable(a, n);
} else
this.toAssignable(s, n);
}
isAssignable(t, r) {
switch (t.type) {
case "Identifier":
case "ObjectPattern":
case "ArrayPattern":
case "AssignmentPattern":
case "RestElement":
return !0;
case "ObjectExpression": {
let n = t.properties.length - 1;
return t.properties.every((s, a) => s.type !== "ObjectMethod" && (a === n || s.type !== "SpreadElement") && this.isAssignable(s));
}
case "ObjectProperty":
return this.isAssignable(t.value);
case "SpreadElement":
return this.isAssignable(t.argument);
case "ArrayExpression":
return t.elements.every((n) => n === null || this.isAssignable(n));
case "AssignmentExpression":
return t.operator === "=";
case "ParenthesizedExpression":
return this.isAssignable(t.expression);
case "MemberExpression":
case "OptionalMemberExpression":
return !r;
default:
return !1;
}
}
toReferencedList(t, r) {
return t;
}
toReferencedListDeep(t, r) {
this.toReferencedList(t, r);
for (let n of t)
n?.type === "ArrayExpression" && this.toReferencedListDeep(n.elements);
}
parseSpread(t) {
let r = this.startNode();
return this.next(), r.argument = this.parseMaybeAssignAllowIn(t, void 0), this.finishNode(r, "SpreadElement");
}
parseRestBinding() {
let t = this.startNode();
return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement");
}
parseBindingAtom() {
switch (this.state.type) {
case 0: {
let t = this.startNode();
return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern");
}
case 5:
return this.parseObjectLike(8, !0);
}
return this.parseIdentifier();
}
parseBindingList(t, r, n) {
let s = n & 1, a = [], o = !0;
for (; !this.eat(t); )
if (o ? o = !1 : this.expect(12), s && this.match(12))
a.push(null);
else {
if (this.eat(t))
break;
if (this.match(21)) {
let l = this.parseRestBinding();
if ((this.hasPlugin("flow") || n & 2) && (l = this.parseFunctionParamType(l)), a.push(l), !this.checkCommaAfterRest(r)) {
this.expect(t);
break;
}
} else {
let l = [];
if (n & 2)
for (this.match(26) && this.hasPlugin("decorators") && this.raise(N.UnsupportedParameterDecorator, this.state.startLoc); this.
match(26); )
l.push(this.parseDecorator());
a.push(this.parseBindingElement(n, l));
}
}
return a;
}
parseBindingRestProperty(t) {
return this.next(), t.argument = this.parseIdentifier(), this.checkCommaAfterRest(125), this.finishNode(t, "RestElement");
}
parseBindingProperty() {
let {
type: t,
startLoc: r
} = this.state;
if (t === 21)
return this.parseBindingRestProperty(this.startNode());
let n = this.startNode();
return t === 139 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), n.key = this.parsePrivateName()) :
this.parsePropertyName(n), n.method = !1, this.parseObjPropValue(n, r, !1, !1, !0, !1);
}
parseBindingElement(t, r) {
let n = this.parseMaybeDefault();
(this.hasPlugin("flow") || t & 2) && this.parseFunctionParamType(n);
let s = this.parseMaybeDefault(n.loc.start, n);
return r.length && (n.decorators = r), s;
}
parseFunctionParamType(t) {
return t;
}
parseMaybeDefault(t, r) {
if (t ?? (t = this.state.startLoc), r = r ?? this.parseBindingAtom(), !this.eat(29)) return r;
let n = this.startNodeAt(t);
return n.left = r, n.right = this.parseMaybeAssignAllowIn(), this.finishNode(n, "AssignmentPattern");
}
isValidLVal(t, r, n) {
switch (t) {
case "AssignmentPattern":
return "left";
case "RestElement":
return "argument";
case "ObjectProperty":
return "value";
case "ParenthesizedExpression":
return "expression";
case "ArrayPattern":
return "elements";
case "ObjectPattern":
return "properties";
}
return !1;
}
isOptionalMemberExpression(t) {
return t.type === "OptionalMemberExpression";
}
checkLVal(t, r, n = 64, s = !1, a = !1, o = !1) {
var l;
let u = t.type;
if (this.isObjectMethod(t)) return;
let c = this.isOptionalMemberExpression(t);
if (c || u === "MemberExpression") {
c && (this.expectPlugin("optionalChainingAssign", t.loc.start), r.type !== "AssignmentExpression" && this.raise(N.InvalidLhsOptionalChaining,
t, {
ancestor: r
})), n !== 64 && this.raise(N.InvalidPropertyBindingPattern, t);
return;
}
if (u === "Identifier") {
this.checkIdentifier(t, n, a);
let {
name: d
} = t;
s && (s.has(d) ? this.raise(N.ParamDupe, t) : s.add(d));
return;
}
let p = this.isValidLVal(u, !(o || (l = t.extra) != null && l.parenthesized) && r.type === "AssignmentExpression", n);
if (p === !0) return;
if (p === !1) {
let d = n === 64 ? N.InvalidLhs : N.InvalidLhsBinding;
this.raise(d, t, {
ancestor: r
});
return;
}
let f, h;
typeof p == "string" ? (f = p, h = u === "ParenthesizedExpression") : [f, h] = p;
let y = u === "ArrayPattern" || u === "ObjectPattern" ? {
type: u
} : r, E = t[f];
if (Array.isArray(E))
for (let d of E)
d && this.checkLVal(d, y, n, s, a, h);
else E && this.checkLVal(E, y, n, s, a, h);
}
checkIdentifier(t, r, n = !1) {
this.state.strict && (n ? JT(t.name, this.inModule) : YT(t.name)) && (r === 64 ? this.raise(N.StrictEvalArguments, t, {
referenceName: t.name
}) : this.raise(N.StrictEvalArgumentsBinding, t, {
bindingName: t.name
})), r & 8192 && t.name === "let" && this.raise(N.LetInLexicalBinding, t), r & 64 || this.declareNameFromIdentifier(t, r);
}
declareNameFromIdentifier(t, r) {
this.scope.declareName(t.name, r, t.loc.start);
}
checkToRestConversion(t, r) {
switch (t.type) {
case "ParenthesizedExpression":
this.checkToRestConversion(t.expression, r);
break;
case "Identifier":
case "MemberExpression":
break;
case "ArrayExpression":
case "ObjectExpression":
if (r) break;
default:
this.raise(N.InvalidRestAssignmentPattern, t);
}
}
checkCommaAfterRest(t) {
return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? N.RestTrailingComma : N.ElementAfterRest, this.state.startLoc), !0) :
!1;
}
};
function JK(e) {
if (e == null)
throw new Error(`Unexpected ${e} value.`);
return e;
}
i(JK, "nonNull");
function LT(e) {
if (!e)
throw new Error("Assert fail");
}
i(LT, "assert");
var fe = wn`typescript`({
AbstractMethodHasImplementation: /* @__PURE__ */ i(({
methodName: e
}) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"),
AbstractPropertyHasInitializer: /* @__PURE__ */ i(({
propertyName: e
}) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"),
AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.",
AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.",
AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.",
ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.",
ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.",
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or num\
eric literal or literal enum reference.",
ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.",
DeclareAccessor: /* @__PURE__ */ i(({
kind: e
}) => `'declare' is not allowed in ${e}ters.`, "DeclareAccessor"),
DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.",
DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.",
DuplicateAccessibilityModifier: /* @__PURE__ */ i(({
modifier: e
}) => "Accessibility modifier already seen.", "DuplicateAccessibilityModifier"),
DuplicateModifier: /* @__PURE__ */ i(({
modifier: e
}) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"),
EmptyHeritageClauseType: /* @__PURE__ */ i(({
token: e
}) => `'${e}' list cannot be empty.`, "EmptyHeritageClauseType"),
EmptyTypeArguments: "Type argument list cannot be empty.",
EmptyTypeParameters: "Type parameter list cannot be empty.",
ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.",
ImportAliasHasImportType: "An import alias can not use 'import type'.",
ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier",
IncompatibleModifiers: /* @__PURE__ */ i(({
modifiers: e
}) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"),
IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.",
IndexSignatureHasAccessibility: /* @__PURE__ */ i(({
modifier: e
}) => `Index signatures cannot have an accessibility modifier ('${e}').`, "IndexSignatureHasAccessibility"),
IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.",
IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.",
IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.",
InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.",
InvalidHeritageClauseType: /* @__PURE__ */ i(({
token: e
}) => `'${e}' list can only include identifiers or qualified-names with optional type arguments.`, "InvalidHeritageClauseType"),
InvalidModifierOnTypeMember: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"),
InvalidModifierOnTypeParameter: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"),
InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\
ns"),
InvalidModifiersOrder: /* @__PURE__ */ i(({
orderedModifiers: e
}) => `'${e[0]}' modifier must precede '${e[1]}' modifier.`, "InvalidModifiersOrder"),
InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the i\
nstantiation expression in parentheses, or delete the type arguments.",
InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.",
MissingInterfaceName: "'interface' declarations must be followed by an identifier.",
NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.",
NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.",
OptionalTypeBeforeRequired: "A required element cannot follow an optional element.",
OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.",
PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.",
PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.",
PrivateElementHasAccessibility: /* @__PURE__ */ i(({
modifier: e
}) => `Private elements cannot have an accessibility modifier ('${e}').`, "PrivateElementHasAccessibility"),
ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.",
ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",
ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",
SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.",
SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.",
SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.",
SingleTypeParameterWithoutTrailingComma: /* @__PURE__ */ i(({
typeParameterName: e
}) => `Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`, "SingleTypeParameterWithoutTrailingComma"),
StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.",
TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`n\
ame?: type`), rather than after the type (`name: type?`).",
TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number =\
25`.",
TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.",
TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statemen\
t.",
TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statemen\
t.",
UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.",
UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.",
UnexpectedTypeAnnotation: "Did not expect a type annotation here.",
UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.",
UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.",
UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.",
UnsupportedSignatureParameterKind: /* @__PURE__ */ i(({
type: e
}) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind")
});
function XK(e) {
switch (e) {
case "any":
return "TSAnyKeyword";
case "boolean":
return "TSBooleanKeyword";
case "bigint":
return "TSBigIntKeyword";
case "never":
return "TSNeverKeyword";
case "number":
return "TSNumberKeyword";
case "object":
return "TSObjectKeyword";
case "string":
return "TSStringKeyword";
case "symbol":
return "TSSymbolKeyword";
case "undefined":
return "TSUndefinedKeyword";
case "unknown":
return "TSUnknownKeyword";
default:
return;
}
}
i(XK, "keywordTypeFromName");
function MT(e) {
return e === "private" || e === "public" || e === "protected";
}
i(MT, "tsIsAccessModifier");
function zK(e) {
return e === "in" || e === "out";
}
i(zK, "tsIsVarianceAnnotations");
var QK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "TypeScriptParserMixin");
}
constructor(...r) {
super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, {
allowedModifiers: ["in", "out"],
disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"],
errorTemplate: fe.InvalidModifierOnTypeParameter
}), this.tsParseConstModifier = this.tsParseModifiers.bind(this, {
allowedModifiers: ["const"],
disallowedModifiers: ["in", "out"],
errorTemplate: fe.InvalidModifierOnTypeParameterPositions
}), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, {
allowedModifiers: ["in", "out", "const"],
disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"],
errorTemplate: fe.InvalidModifierOnTypeParameter
});
}
getScopeHandler() {
return Eh;
}
tsIsIdentifier() {
return Ze(this.state.type);
}
tsTokenCanFollowModifier() {
return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName();
}
tsNextTokenOnSameLineAndCanFollowModifier() {
return this.next(), this.hasPrecedingLineBreak() ? !1 : this.tsTokenCanFollowModifier();
}
tsNextTokenCanFollowModifier() {
return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier();
}
tsParseModifier(r, n) {
if (!Ze(this.state.type) && this.state.type !== 58 && this.state.type !== 75)
return;
let s = this.state.value;
if (r.includes(s)) {
if (n && this.tsIsStartOfStaticBlocks())
return;
if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))
return s;
}
}
tsParseModifiers({
allowedModifiers: r,
disallowedModifiers: n,
stopOnStartOfClassStaticBlock: s,
errorTemplate: a = fe.InvalidModifierOnTypeMember
}, o) {
let l = /* @__PURE__ */ i((c, p, f, h) => {
p === f && o[h] && this.raise(fe.InvalidModifiersOrder, c, {
orderedModifiers: [f, h]
});
}, "enforceOrder"), u = /* @__PURE__ */ i((c, p, f, h) => {
(o[f] && p === h || o[h] && p === f) && this.raise(fe.IncompatibleModifiers, c, {
modifiers: [f, h]
});
}, "incompatible");
for (; ; ) {
let {
startLoc: c
} = this.state, p = this.tsParseModifier(r.concat(n ?? []), s);
if (!p) break;
MT(p) ? o.accessibility ? this.raise(fe.DuplicateAccessibilityModifier, c, {
modifier: p
}) : (l(c, p, p, "override"), l(c, p, p, "static"), l(c, p, p, "readonly"), o.accessibility = p) : zK(p) ? (o[p] && this.raise(fe.DuplicateModifier,
c, {
modifier: p
}), o[p] = !0, l(c, p, "in", "out")) : (hasOwnProperty.call(o, p) ? this.raise(fe.DuplicateModifier, c, {
modifier: p
}) : (l(c, p, "static", "readonly"), l(c, p, "static", "override"), l(c, p, "override", "readonly"), l(c, p, "abstract", "override"),
u(c, p, "declare", "override"), u(c, p, "static", "abstract")), o[p] = !0), n != null && n.includes(p) && this.raise(a, c, {
modifier: p
});
}
}
tsIsListTerminator(r) {
switch (r) {
case "EnumMembers":
case "TypeMembers":
return this.match(8);
case "HeritageClauseElement":
return this.match(5);
case "TupleElementTypes":
return this.match(3);
case "TypeParametersOrArguments":
return this.match(48);
}
}
tsParseList(r, n) {
let s = [];
for (; !this.tsIsListTerminator(r); )
s.push(n());
return s;
}
tsParseDelimitedList(r, n, s) {
return JK(this.tsParseDelimitedListWorker(r, n, !0, s));
}
tsParseDelimitedListWorker(r, n, s, a) {
let o = [], l = -1;
for (; !this.tsIsListTerminator(r); ) {
l = -1;
let u = n();
if (u == null)
return;
if (o.push(u), this.eat(12)) {
l = this.state.lastTokStartLoc.index;
continue;
}
if (this.tsIsListTerminator(r))
break;
s && this.expect(12);
return;
}
return a && (a.value = l), o;
}
tsParseBracketedList(r, n, s, a, o) {
a || (s ? this.expect(0) : this.expect(47));
let l = this.tsParseDelimitedList(r, n, o);
return s ? this.expect(3) : this.expect(48), l;
}
tsParseImportType() {
let r = this.startNode();
return this.expect(83), this.expect(10), this.match(134) ? r.argument = this.parseStringLiteral(this.state.value) : (this.raise(fe.UnsupportedImportTypeArgument,
this.state.startLoc), r.argument = super.parseExprAtom()), this.eat(12) && !this.match(11) ? (r.options = super.parseMaybeAssignAllowIn(),
this.eat(12)) : r.options = null, this.expect(11), this.eat(16) && (r.qualifier = this.tsParseEntityName(3)), this.match(47) && (r.typeParameters =
this.tsParseTypeArguments()), this.finishNode(r, "TSImportType");
}
tsParseEntityName(r) {
let n;
if (r & 1 && this.match(78))
if (r & 2)
n = this.parseIdentifier(!0);
else {
let s = this.startNode();
this.next(), n = this.finishNode(s, "ThisExpression");
}
else
n = this.parseIdentifier(!!(r & 1));
for (; this.eat(16); ) {
let s = this.startNodeAtNode(n);
s.left = n, s.right = this.parseIdentifier(!!(r & 1)), n = this.finishNode(s, "TSQualifiedName");
}
return n;
}
tsParseTypeReference() {
let r = this.startNode();
return r.typeName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()),
this.finishNode(r, "TSTypeReference");
}
tsParseThisTypePredicate(r) {
this.next();
let n = this.startNodeAtNode(r);
return n.parameterName = r, n.typeAnnotation = this.tsParseTypeAnnotation(!1), n.asserts = !1, this.finishNode(n, "TSTypePredicate");
}
tsParseThisTypeNode() {
let r = this.startNode();
return this.next(), this.finishNode(r, "TSThisType");
}
tsParseTypeQuery() {
let r = this.startNode();
return this.expect(87), this.match(83) ? r.exprName = this.tsParseImportType() : r.exprName = this.tsParseEntityName(3), !this.hasPrecedingLineBreak() &&
this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeQuery");
}
tsParseTypeParameter(r) {
let n = this.startNode();
return r(n), n.name = this.tsParseTypeParameterName(), n.constraint = this.tsEatThenParseType(81), n.default = this.tsEatThenParseType(
29), this.finishNode(n, "TSTypeParameter");
}
tsTryParseTypeParameters(r) {
if (this.match(47))
return this.tsParseTypeParameters(r);
}
tsParseTypeParameters(r) {
let n = this.startNode();
this.match(47) || this.match(143) ? this.next() : this.unexpected();
let s = {
value: -1
};
return n.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, s), n.params.
length === 0 && this.raise(fe.EmptyTypeParameters, n), s.value !== -1 && this.addExtra(n, "trailingComma", s.value), this.finishNode(n,
"TSTypeParameterDeclaration");
}
tsFillSignature(r, n) {
let s = r === 19, a = "parameters", o = "typeAnnotation";
n.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), n[a] = this.tsParseBindingListForSignature(),
s ? n[o] = this.tsParseTypeOrTypePredicateAnnotation(r) : this.match(r) && (n[o] = this.tsParseTypeOrTypePredicateAnnotation(r));
}
tsParseBindingListForSignature() {
let r = super.parseBindingList(11, 41, 2);
for (let n of r) {
let {
type: s
} = n;
(s === "AssignmentPattern" || s === "TSParameterProperty") && this.raise(fe.UnsupportedSignatureParameterKind, n, {
type: s
});
}
return r;
}
tsParseTypeMemberSemicolon() {
!this.eat(12) && !this.isLineTerminator() && this.expect(13);
}
tsParseSignatureMember(r, n) {
return this.tsFillSignature(14, n), this.tsParseTypeMemberSemicolon(), this.finishNode(n, r);
}
tsIsUnambiguouslyIndexSignature() {
return this.next(), Ze(this.state.type) ? (this.next(), this.match(14)) : !1;
}
tsTryParseIndexSignature(r) {
if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))
return;
this.expect(0);
let n = this.parseIdentifier();
n.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(n), this.expect(3), r.parameters = [n];
let s = this.tsTryParseTypeAnnotation();
return s && (r.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature");
}
tsParsePropertyOrMethodSignature(r, n) {
this.eat(17) && (r.optional = !0);
let s = r;
if (this.match(10) || this.match(47)) {
n && this.raise(fe.ReadonlyForMethodSignature, r);
let a = s;
a.kind && this.match(47) && this.raise(fe.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, a), this.
tsParseTypeMemberSemicolon();
let o = "parameters", l = "typeAnnotation";
if (a.kind === "get")
a[o].length > 0 && (this.raise(N.BadGetterArity, this.state.curPosition()), this.isThisParam(a[o][0]) && this.raise(fe.AccessorCannotDeclareThisParameter,
this.state.curPosition()));
else if (a.kind === "set") {
if (a[o].length !== 1)
this.raise(N.BadSetterArity, this.state.curPosition());
else {
let u = a[o][0];
this.isThisParam(u) && this.raise(fe.AccessorCannotDeclareThisParameter, this.state.curPosition()), u.type === "Identifier" && u.
optional && this.raise(fe.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), u.type === "RestElement" && this.raise(
fe.SetAccessorCannotHaveRestParameter, this.state.curPosition());
}
a[l] && this.raise(fe.SetAccessorCannotHaveReturnType, a[l]);
} else
a.kind = "method";
return this.finishNode(a, "TSMethodSignature");
} else {
let a = s;
n && (a.readonly = !0);
let o = this.tsTryParseTypeAnnotation();
return o && (a.typeAnnotation = o), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSPropertySignature");
}
}
tsParseTypeMember() {
let r = this.startNode();
if (this.match(10) || this.match(47))
return this.tsParseSignatureMember("TSCallSignatureDeclaration", r);
if (this.match(77)) {
let s = this.startNode();
return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this.
createIdentifier(s, "new"), this.tsParsePropertyOrMethodSignature(r, !1));
}
this.tsParseModifiers({
allowedModifiers: ["readonly"],
disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"]
}, r);
let n = this.tsTryParseIndexSignature(r);
return n || (super.parsePropertyName(r), !r.computed && r.key.type === "Identifier" && (r.key.name === "get" || r.key.name === "set") &&
this.tsTokenCanFollowModifier() && (r.kind = r.key.name, super.parsePropertyName(r)), this.tsParsePropertyOrMethodSignature(r, !!r.readonly));
}
tsParseTypeLiteral() {
let r = this.startNode();
return r.members = this.tsParseObjectTypeMembers(), this.finishNode(r, "TSTypeLiteral");
}
tsParseObjectTypeMembers() {
this.expect(5);
let r = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
return this.expect(8), r;
}
tsIsStartOfMappedType() {
return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this.
tsIsIdentifier()) ? !1 : (this.next(), this.match(58)));
}
tsParseMappedType() {
let r = this.startNode();
this.expect(5), this.match(53) ? (r.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) &&
(r.readonly = !0), this.expect(0);
{
let n = this.startNode();
n.name = this.tsParseTypeParameterName(), n.constraint = this.tsExpectThenParseType(58), r.typeParameter = this.finishNode(n, "TSTyp\
eParameter");
}
return r.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (r.optional = this.state.value,
this.next(), this.expect(17)) : this.eat(17) && (r.optional = !0), r.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(
8), this.finishNode(r, "TSMappedType");
}
tsParseTupleType() {
let r = this.startNode();
r.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), !0, !1);
let n = !1;
return r.elementTypes.forEach((s) => {
let {
type: a
} = s;
n && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && s.optional) && this.raise(fe.OptionalTypeBeforeRequired,
s), n || (n = a === "TSNamedTupleMember" && s.optional || a === "TSOptionalType");
}), this.finishNode(r, "TSTupleType");
}
tsParseTupleElementType() {
let r = this.state.startLoc, n = this.eat(21), {
startLoc: s
} = this.state, a, o, l, u, p = Wr(this.state.type) ? this.lookaheadCharCode() : null;
if (p === 58)
a = !0, l = !1, o = this.parseIdentifier(!0), this.expect(14), u = this.tsParseType();
else if (p === 63) {
l = !0;
let f = this.state.value, h = this.tsParseNonArrayType();
this.lookaheadCharCode() === 58 ? (a = !0, o = this.createIdentifier(this.startNodeAt(s), f), this.expect(17), this.expect(14), u = this.
tsParseType()) : (a = !1, u = h, this.expect(17));
} else
u = this.tsParseType(), l = this.eat(17), a = this.eat(14);
if (a) {
let f;
o ? (f = this.startNodeAt(s), f.optional = l, f.label = o, f.elementType = u, this.eat(17) && (f.optional = !0, this.raise(fe.TupleOptionalAfterType,
this.state.lastTokStartLoc))) : (f = this.startNodeAt(s), f.optional = l, this.raise(fe.InvalidTupleMemberLabel, u), f.label = u, f.
elementType = this.tsParseType()), u = this.finishNode(f, "TSNamedTupleMember");
} else if (l) {
let f = this.startNodeAt(s);
f.typeAnnotation = u, u = this.finishNode(f, "TSOptionalType");
}
if (n) {
let f = this.startNodeAt(r);
f.typeAnnotation = u, u = this.finishNode(f, "TSRestType");
}
return u;
}
tsParseParenthesizedType() {
let r = this.startNode();
return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType");
}
tsParseFunctionOrConstructorType(r, n) {
let s = this.startNode();
return r === "TSConstructorType" && (s.abstract = !!n, n && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this.
tsFillSignature(19, s)), this.finishNode(s, r);
}
tsParseLiteralTypeNode() {
let r = this.startNode();
switch (this.state.type) {
case 135:
case 136:
case 134:
case 85:
case 86:
r.literal = super.parseExprAtom();
break;
default:
this.unexpected();
}
return this.finishNode(r, "TSLiteralType");
}
tsParseTemplateLiteralType() {
{
let r = this.startNode();
return r.literal = super.parseTemplate(!1), this.finishNode(r, "TSLiteralType");
}
}
parseTemplateSubstitution() {
return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution();
}
tsParseThisTypeOrThisTypePredicate() {
let r = this.tsParseThisTypeNode();
return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(r) : r;
}
tsParseNonArrayType() {
switch (this.state.type) {
case 134:
case 135:
case 136:
case 85:
case 86:
return this.tsParseLiteralTypeNode();
case 53:
if (this.state.value === "-") {
let r = this.startNode(), n = this.lookahead();
return n.type !== 135 && n.type !== 136 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "TSLiteralT\
ype");
}
break;
case 78:
return this.tsParseThisTypeOrThisTypePredicate();
case 87:
return this.tsParseTypeQuery();
case 83:
return this.tsParseImportType();
case 5:
return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();
case 0:
return this.tsParseTupleType();
case 10:
return this.tsParseParenthesizedType();
case 25:
case 24:
return this.tsParseTemplateLiteralType();
default: {
let {
type: r
} = this.state;
if (Ze(r) || r === 88 || r === 84) {
let n = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : XK(this.state.value);
if (n !== void 0 && this.lookaheadCharCode() !== 46) {
let s = this.startNode();
return this.next(), this.finishNode(s, n);
}
return this.tsParseTypeReference();
}
}
}
this.unexpected();
}
tsParseArrayTypeOrHigher() {
let {
startLoc: r
} = this.state, n = this.tsParseNonArrayType();
for (; !this.hasPrecedingLineBreak() && this.eat(0); )
if (this.match(3)) {
let s = this.startNodeAt(r);
s.elementType = n, this.expect(3), n = this.finishNode(s, "TSArrayType");
} else {
let s = this.startNodeAt(r);
s.objectType = n, s.indexType = this.tsParseType(), this.expect(3), n = this.finishNode(s, "TSIndexedAccessType");
}
return n;
}
tsParseTypeOperator() {
let r = this.startNode(), n = this.state.value;
return this.next(), r.operator = n, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), n === "readonly" && this.tsCheckTypeAnnotationForReadOnly(
r), this.finishNode(r, "TSTypeOperator");
}
tsCheckTypeAnnotationForReadOnly(r) {
switch (r.typeAnnotation.type) {
case "TSTupleType":
case "TSArrayType":
return;
default:
this.raise(fe.UnexpectedReadonly, r);
}
}
tsParseInferType() {
let r = this.startNode();
this.expectContextual(115);
let n = this.startNode();
return n.name = this.tsParseTypeParameterName(), n.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), r.typeParameter =
this.finishNode(n, "TSTypeParameter"), this.finishNode(r, "TSInferType");
}
tsParseConstraintForInferType() {
if (this.eat(81)) {
let r = this.tsInDisallowConditionalTypesContext(() => this.tsParseType());
if (this.state.inDisallowConditionalTypesContext || !this.match(17))
return r;
}
}
tsParseTypeOperatorOrHigher() {
return yK(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() :
this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
}
tsParseUnionOrIntersectionType(r, n, s) {
let a = this.startNode(), o = this.eat(s), l = [];
do
l.push(n());
while (this.eat(s));
return l.length === 1 && !o ? l[0] : (a.types = l, this.finishNode(a, r));
}
tsParseIntersectionTypeOrHigher() {
return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45);
}
tsParseUnionTypeOrHigher() {
return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43);
}
tsIsStartOfFunctionType() {
return this.match(47) ? !0 : this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
}
tsSkipParameterStart() {
if (Ze(this.state.type) || this.match(78))
return this.next(), !0;
if (this.match(5)) {
let {
errors: r
} = this.state, n = r.length;
try {
return this.parseObjectLike(8, !0), r.length === n;
} catch {
return !1;
}
}
if (this.match(0)) {
this.next();
let {
errors: r
} = this.state, n = r.length;
try {
return super.parseBindingList(3, 93, 1), r.length === n;
} catch {
return !1;
}
}
return !1;
}
tsIsUnambiguouslyStartOfFunctionType() {
return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match(
17) || this.match(29) || this.match(11) && (this.next(), this.match(19))));
}
tsParseTypeOrTypePredicateAnnotation(r) {
return this.tsInType(() => {
let n = this.startNode();
this.expect(r);
let s = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));
if (a && this.match(78)) {
let u = this.tsParseThisTypeOrThisTypePredicate();
return u.type === "TSThisType" ? (s.parameterName = u, s.asserts = !0, s.typeAnnotation = null, u = this.finishNode(s, "TSTypePred\
icate")) : (this.resetStartLocationFromNode(u, s), u.asserts = !0), n.typeAnnotation = u, this.finishNode(n, "TSTypeAnnotation");
}
let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
if (!o)
return a ? (s.parameterName = this.parseIdentifier(), s.asserts = a, s.typeAnnotation = null, n.typeAnnotation = this.finishNode(s,
"TSTypePredicate"), this.finishNode(n, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, n);
let l = this.tsParseTypeAnnotation(!1);
return s.parameterName = o, s.typeAnnotation = l, s.asserts = a, n.typeAnnotation = this.finishNode(s, "TSTypePredicate"), this.finishNode(
n, "TSTypeAnnotation");
});
}
tsTryParseTypeOrTypePredicateAnnotation() {
if (this.match(14))
return this.tsParseTypeOrTypePredicateAnnotation(14);
}
tsTryParseTypeAnnotation() {
if (this.match(14))
return this.tsParseTypeAnnotation();
}
tsTryParseType() {
return this.tsEatThenParseType(14);
}
tsParseTypePredicatePrefix() {
let r = this.parseIdentifier();
if (this.isContextual(116) && !this.hasPrecedingLineBreak())
return this.next(), r;
}
tsParseTypePredicateAsserts() {
if (this.state.type !== 109)
return !1;
let r = this.state.containsEsc;
return this.next(), !Ze(this.state.type) && !this.match(78) ? !1 : (r && this.raise(N.InvalidEscapedReservedWord, this.state.lastTokStartLoc,
{
reservedWord: "asserts"
}), !0);
}
tsParseTypeAnnotation(r = !0, n = this.startNode()) {
return this.tsInType(() => {
r && this.expect(14), n.typeAnnotation = this.tsParseType();
}), this.finishNode(n, "TSTypeAnnotation");
}
tsParseType() {
LT(this.state.inType);
let r = this.tsParseNonConditionalType();
if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81))
return r;
let n = this.startNodeAtNode(r);
return n.checkType = r, n.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect(
17), n.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), n.falseType = this.tsInAllowConditionalTypesContext(
() => this.tsParseType()), this.finishNode(n, "TSConditionalType");
}
isAbstractConstructorSignature() {
return this.isContextual(124) && this.lookahead().type === 77;
}
tsParseNonConditionalType() {
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(77) ? this.tsParseFunctionOrConstructorType(
"TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
}
tsParseTypeAssertion() {
this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(fe.ReservedTypeAssertion, this.state.startLoc);
let r = this.startNode();
return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this.
expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion");
}
tsParseHeritageClause(r) {
let n = this.state.startLoc, s = this.tsParseDelimitedList("HeritageClauseElement", () => {
{
let a = this.startNode();
return a.expression = this.tsParseEntityName(3), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode(
a, "TSExpressionWithTypeArguments");
}
});
return s.length || this.raise(fe.EmptyHeritageClauseType, n, {
token: r
}), s;
}
tsParseInterfaceDeclaration(r, n = {}) {
if (this.hasFollowingLineBreak()) return null;
this.expectContextual(129), n.declare && (r.declare = !0), Ze(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier(
r.id, 130)) : (r.id = null, this.raise(fe.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters(
this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends"));
let s = this.startNode();
return s.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(s, "TSInterfaceBody"), this.finishNode(
r, "TSInterfaceDeclaration");
}
tsParseTypeAliasDeclaration(r) {
return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => {
if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookahead().
type !== 16) {
let n = this.startNode();
return this.next(), this.finishNode(n, "TSIntrinsicKeyword");
}
return this.tsParseType();
}), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration");
}
tsInTopLevelContext(r) {
if (this.curContext() !== Qe.brace) {
let n = this.state.context;
this.state.context = [n[0]];
try {
return r();
} finally {
this.state.context = n;
}
} else
return r();
}
tsInType(r) {
let n = this.state.inType;
this.state.inType = !0;
try {
return r();
} finally {
this.state.inType = n;
}
}
tsInDisallowConditionalTypesContext(r) {
let n = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = !0;
try {
return r();
} finally {
this.state.inDisallowConditionalTypesContext = n;
}
}
tsInAllowConditionalTypesContext(r) {
let n = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = !1;
try {
return r();
} finally {
this.state.inDisallowConditionalTypesContext = n;
}
}
tsEatThenParseType(r) {
if (this.match(r))
return this.tsNextThenParseType();
}
tsExpectThenParseType(r) {
return this.tsInType(() => (this.expect(r), this.tsParseType()));
}
tsNextThenParseType() {
return this.tsInType(() => (this.next(), this.tsParseType()));
}
tsParseEnumMember() {
let r = this.startNode();
return r.id = this.match(134) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(!0), this.eat(29) && (r.initializer =
super.parseMaybeAssignAllowIn()), this.finishNode(r, "TSEnumMember");
}
tsParseEnumDeclaration(r, n = {}) {
return n.const && (r.const = !0), n.declare && (r.declare = !0), this.expectContextual(126), r.id = this.parseIdentifier(), this.checkIdentifier(
r.id, r.const ? 8971 : 8459), this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)),
this.expect(8), this.finishNode(r, "TSEnumDeclaration");
}
tsParseEnumBody() {
let r = this.startNode();
return this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(
r, "TSEnumBody");
}
tsParseModuleBlock() {
let r = this.startNode();
return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(r.body = [], void 0, !0, 8), this.scope.exit(), this.finishNode(
r, "TSModuleBlock");
}
tsParseModuleOrNamespaceDeclaration(r, n = !1) {
if (r.id = this.parseIdentifier(), n || this.checkIdentifier(r.id, 1024), this.eat(16)) {
let s = this.startNode();
this.tsParseModuleOrNamespaceDeclaration(s, !0), r.body = s;
} else
this.scope.enter(256), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit();
return this.finishNode(r, "TSModuleDeclaration");
}
tsParseAmbientExternalModuleDeclaration(r) {
return this.isContextual(112) ? (r.kind = "global", r.global = !0, r.id = this.parseIdentifier()) : this.match(134) ? (r.kind = "modul\
e", r.id = super.parseStringLiteral(this.state.value)) : this.unexpected(), this.match(5) ? (this.scope.enter(256), this.prodParam.enter(0),
r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(r, "TSModuleDeclarat\
ion");
}
tsParseImportEqualsDeclaration(r, n, s) {
r.isExport = s || !1, r.id = n || this.parseIdentifier(), this.checkIdentifier(r.id, 4096), this.expect(29);
let a = this.tsParseModuleReference();
return r.importKind === "type" && a.type !== "TSExternalModuleReference" && this.raise(fe.ImportAliasHasImportType, a), r.moduleReference =
a, this.semicolon(), this.finishNode(r, "TSImportEqualsDeclaration");
}
tsIsExternalModuleReference() {
return this.isContextual(119) && this.lookaheadCharCode() === 40;
}
tsParseModuleReference() {
return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(0);
}
tsParseExternalModuleReference() {
let r = this.startNode();
return this.expectContextual(119), this.expect(10), this.match(134) || this.unexpected(), r.expression = super.parseExprAtom(), this.expect(
11), this.sawUnambiguousESM = !0, this.finishNode(r, "TSExternalModuleReference");
}
tsLookAhead(r) {
let n = this.state.clone(), s = r();
return this.state = n, s;
}
tsTryParseAndCatch(r) {
let n = this.tryParse((s) => r() || s());
if (!(n.aborted || !n.node))
return n.error && (this.state = n.failState), n.node;
}
tsTryParse(r) {
let n = this.state.clone(), s = r();
if (s !== void 0 && s !== !1)
return s;
this.state = n;
}
tsTryParseDeclare(r) {
if (this.isLineTerminator())
return;
let n = this.state.type, s;
return this.isContextual(100) && (n = 74, s = "let"), this.tsInAmbientContext(() => {
switch (n) {
case 68:
return r.declare = !0, super.parseFunctionStatement(r, !1, !1);
case 80:
return r.declare = !0, this.parseClass(r, !0, !1);
case 126:
return this.tsParseEnumDeclaration(r, {
declare: !0
});
case 112:
return this.tsParseAmbientExternalModuleDeclaration(r);
case 75:
case 74:
return !this.match(75) || !this.isLookaheadContextual("enum") ? (r.declare = !0, this.parseVarStatement(r, s || this.state.value,
!0)) : (this.expect(75), this.tsParseEnumDeclaration(r, {
const: !0,
declare: !0
}));
case 129: {
let a = this.tsParseInterfaceDeclaration(r, {
declare: !0
});
if (a) return a;
}
default:
if (Ze(n))
return this.tsParseDeclaration(r, this.state.value, !0, null);
}
});
}
tsTryParseExportDeclaration() {
return this.tsParseDeclaration(this.startNode(), this.state.value, !0, null);
}
tsParseExpressionStatement(r, n, s) {
switch (n.name) {
case "declare": {
let a = this.tsTryParseDeclare(r);
return a && (a.declare = !0), a;
}
case "global":
if (this.match(5)) {
this.scope.enter(256), this.prodParam.enter(0);
let a = r;
return a.kind = "global", r.global = !0, a.id = n, a.body = this.tsParseModuleBlock(), this.scope.exit(), this.prodParam.exit(),
this.finishNode(a, "TSModuleDeclaration");
}
break;
default:
return this.tsParseDeclaration(r, n.name, !1, s);
}
}
tsParseDeclaration(r, n, s, a) {
switch (n) {
case "abstract":
if (this.tsCheckLineTerminator(s) && (this.match(80) || Ze(this.state.type)))
return this.tsParseAbstractDeclaration(r, a);
break;
case "module":
if (this.tsCheckLineTerminator(s)) {
if (this.match(134))
return this.tsParseAmbientExternalModuleDeclaration(r);
if (Ze(this.state.type))
return r.kind = "module", this.tsParseModuleOrNamespaceDeclaration(r);
}
break;
case "namespace":
if (this.tsCheckLineTerminator(s) && Ze(this.state.type))
return r.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(r);
break;
case "type":
if (this.tsCheckLineTerminator(s) && Ze(this.state.type))
return this.tsParseTypeAliasDeclaration(r);
break;
}
}
tsCheckLineTerminator(r) {
return r ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator();
}
tsTryParseGenericAsyncArrowFunction(r) {
if (!this.match(47)) return;
let n = this.state.maybeInArrowParameters;
this.state.maybeInArrowParameters = !0;
let s = this.tsTryParseAndCatch(() => {
let a = this.startNodeAt(r);
return a.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(a), a.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(),
this.expect(19), a;
});
if (this.state.maybeInArrowParameters = n, !!s)
return super.parseArrowExpression(s, null, !0);
}
tsParseTypeArgumentsInExpression() {
if (this.reScan_lt() === 47)
return this.tsParseTypeArguments();
}
tsParseTypeArguments() {
let r = this.startNode();
return r.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArgu\
ments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(fe.EmptyTypeArguments, r) : !this.state.inType && this.curContext() ===
Qe.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation");
}
tsIsDeclarationStart() {
return gK(this.state.type);
}
isExportDefaultSpecifier() {
return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier();
}
parseBindingElement(r, n) {
let s = this.state.startLoc, a = {};
this.tsParseModifiers({
allowedModifiers: ["public", "private", "protected", "override", "readonly"]
}, a);
let o = a.accessibility, l = a.override, u = a.readonly;
!(r & 4) && (o || u || l) && this.raise(fe.UnexpectedParameterModifier, s);
let c = this.parseMaybeDefault();
r & 2 && this.parseFunctionParamType(c);
let p = this.parseMaybeDefault(c.loc.start, c);
if (o || u || l) {
let f = this.startNodeAt(s);
return n.length && (f.decorators = n), o && (f.accessibility = o), u && (f.readonly = u), l && (f.override = l), p.type !== "Identif\
ier" && p.type !== "AssignmentPattern" && this.raise(fe.UnsupportedParameterPropertyKind, f), f.parameter = p, this.finishNode(f, "TSParamet\
erProperty");
}
return n.length && (c.decorators = n), p;
}
isSimpleParameter(r) {
return r.type === "TSParameterProperty" && super.isSimpleParameter(r.parameter) || super.isSimpleParameter(r);
}
tsDisallowOptionalPattern(r) {
for (let n of r.params)
n.type !== "Identifier" && n.optional && !this.state.isAmbientContext && this.raise(fe.PatternIsOptional, n);
}
setArrowFunctionParameters(r, n, s) {
super.setArrowFunctionParameters(r, n, s), this.tsDisallowOptionalPattern(r);
}
parseFunctionBodyAndFinish(r, n, s = !1) {
this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14));
let a = n === "FunctionDeclaration" ? "TSDeclareFunction" : n === "ClassMethod" || n === "ClassPrivateMethod" ? "TSDeclareMethod" : void 0;
return a && !this.match(5) && this.isLineTerminator() ? this.finishNode(r, a) : a === "TSDeclareFunction" && this.state.isAmbientContext &&
(this.raise(fe.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, s) : (this.tsDisallowOptionalPattern(
r), super.parseFunctionBodyAndFinish(r, n, s));
}
registerFunctionStatementId(r) {
!r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r);
}
tsCheckForInvalidTypeCasts(r) {
r.forEach((n) => {
n?.type === "TSTypeCastExpression" && this.raise(fe.UnexpectedTypeAnnotation, n.typeAnnotation);
});
}
toReferencedList(r, n) {
return this.tsCheckForInvalidTypeCasts(r), r;
}
parseArrayLike(r, n, s, a) {
let o = super.parseArrayLike(r, n, s, a);
return o.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(o.elements), o;
}
parseSubscript(r, n, s, a) {
if (!this.hasPrecedingLineBreak() && this.match(35)) {
this.state.canStartJSXElement = !1, this.next();
let l = this.startNodeAt(n);
return l.expression = r, this.finishNode(l, "TSNonNullExpression");
}
let o = !1;
if (this.match(18) && this.lookaheadCharCode() === 60) {
if (s)
return a.stop = !0, r;
a.optionalChainMember = o = !0, this.next();
}
if (this.match(47) || this.match(51)) {
let l, u = this.tsTryParseAndCatch(() => {
if (!s && this.atPossibleAsyncArrow(r)) {
let h = this.tsTryParseGenericAsyncArrowFunction(n);
if (h)
return h;
}
let c = this.tsParseTypeArgumentsInExpression();
if (!c) return;
if (o && !this.match(10)) {
l = this.state.curPosition();
return;
}
if (Ll(this.state.type)) {
let h = super.parseTaggedTemplateExpression(r, n, a);
return h.typeParameters = c, h;
}
if (!s && this.eat(10)) {
let h = this.startNodeAt(n);
return h.callee = r, h.arguments = this.parseCallExpressionArguments(11), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters =
c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember);
}
let p = this.state.type;
if (p === 48 || p === 52 || p !== 10 && Va(p) && !this.hasPrecedingLineBreak())
return;
let f = this.startNodeAt(n);
return f.expression = r, f.typeParameters = c, this.finishNode(f, "TSInstantiationExpression");
});
if (l && this.unexpected(l, 10), u)
return u.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise(
fe.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), u;
}
return super.parseSubscript(r, n, s, a);
}
parseNewCallee(r) {
var n;
super.parseNewCallee(r);
let {
callee: s
} = r;
s.type === "TSInstantiationExpression" && !((n = s.extra) != null && n.parenthesized) && (r.typeParameters = s.typeParameters, r.callee =
s.expression);
}
parseExprOp(r, n, s) {
let a;
if (kl(58) > s && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (a = this.isContextual(120)))) {
let o = this.startNodeAt(n);
return o.expression = r, o.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (a && this.raise(N.UnexpectedKeyword,
this.state.startLoc, {
keyword: "const"
}), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(),
this.parseExprOp(o, n, s);
}
return super.parseExprOp(r, n, s);
}
checkReservedWord(r, n, s, a) {
this.state.isAmbientContext || super.checkReservedWord(r, n, s, a);
}
checkImportReflection(r) {
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(fe.ImportReflectionHasImportType, r.specifiers[0].loc.
start);
}
checkDuplicateExports() {
}
isPotentialImportPhase(r) {
if (super.isPotentialImportPhase(r)) return !0;
if (this.isContextual(130)) {
let n = this.lookaheadCharCode();
return r ? n === 123 || n === 42 : n !== 61;
}
return !r && this.isContextual(87);
}
applyImportPhase(r, n, s, a) {
super.applyImportPhase(r, n, s, a), n ? r.exportKind = s === "type" ? "type" : "value" : r.importKind = s === "type" || s === "typeof" ?
s : "value";
}
parseImport(r) {
if (this.match(134))
return r.importKind = "value", super.parseImport(r);
let n;
if (Ze(this.state.type) && this.lookaheadCharCode() === 61)
return r.importKind = "value", this.tsParseImportEqualsDeclaration(r);
if (this.isContextual(130)) {
let s = this.parseMaybeImportPhase(r, !1);
if (this.lookaheadCharCode() === 61)
return this.tsParseImportEqualsDeclaration(r, s);
n = super.parseImportSpecifiersAndAfter(r, s);
} else
n = super.parseImport(r);
return n.importKind === "type" && n.specifiers.length > 1 && n.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(fe.TypeImportCannotSpecifyDefaultAndNamed,
n), n;
}
parseExport(r, n) {
if (this.match(83)) {
let s = r;
this.next();
let a = null;
return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(s, !1) : s.importKind = "value", this.
tsParseImportEqualsDeclaration(s, a, !0);
} else if (this.eat(29)) {
let s = r;
return s.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(s, "TSExportAssignment");
} else if (this.eatContextual(93)) {
let s = r;
return this.expectContextual(128), s.id = this.parseIdentifier(), this.semicolon(), this.finishNode(s, "TSNamespaceExportDeclaration");
} else
return super.parseExport(r, n);
}
isAbstractClass() {
return this.isContextual(124) && this.lookahead().type === 80;
}
parseExportDefaultExpression() {
if (this.isAbstractClass()) {
let r = this.startNode();
return this.next(), r.abstract = !0, this.parseClass(r, !0, !0);
}
if (this.match(129)) {
let r = this.tsParseInterfaceDeclaration(this.startNode());
if (r) return r;
}
return super.parseExportDefaultExpression();
}
parseVarStatement(r, n, s = !1) {
let {
isAmbientContext: a
} = this.state, o = super.parseVarStatement(r, n, s || a);
if (!a) return o;
for (let {
id: l,
init: u
} of o.declarations)
u && (n !== "const" || l.typeAnnotation ? this.raise(fe.InitializerNotAllowedInAmbientContext, u) : eG(u, this.hasPlugin("estree")) ||
this.raise(fe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, u));
return o;
}
parseStatementContent(r, n) {
if (this.match(75) && this.isLookaheadContextual("enum")) {
let s = this.startNode();
return this.expect(75), this.tsParseEnumDeclaration(s, {
const: !0
});
}
if (this.isContextual(126))
return this.tsParseEnumDeclaration(this.startNode());
if (this.isContextual(129)) {
let s = this.tsParseInterfaceDeclaration(this.startNode());
if (s) return s;
}
return super.parseStatementContent(r, n);
}
parseAccessModifier() {
return this.tsParseModifier(["public", "protected", "private"]);
}
tsHasSomeModifiers(r, n) {
return n.some((s) => MT(s) ? r.accessibility === s : !!r[s]);
}
tsIsStartOfStaticBlocks() {
return this.isContextual(106) && this.lookaheadCharCode() === 123;
}
parseClassMember(r, n, s) {
let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"];
this.tsParseModifiers({
allowedModifiers: a,
disallowedModifiers: ["in", "out"],
stopOnStartOfClassStaticBlock: !0,
errorTemplate: fe.InvalidModifierOnTypeParameterPositions
}, n);
let o = /* @__PURE__ */ i(() => {
this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(n, a) && this.raise(fe.StaticBlockCannotHaveModifier,
this.state.curPosition()), super.parseClassStaticBlock(r, n)) : this.parseClassMemberWithIsStatic(r, n, s, !!n.static);
}, "callParseClassMemberWithIsStatic");
n.declare ? this.tsInAmbientContext(o) : o();
}
parseClassMemberWithIsStatic(r, n, s, a) {
let o = this.tsTryParseIndexSignature(n);
if (o) {
r.body.push(o), n.abstract && this.raise(fe.IndexSignatureHasAbstract, n), n.accessibility && this.raise(fe.IndexSignatureHasAccessibility,
n, {
modifier: n.accessibility
}), n.declare && this.raise(fe.IndexSignatureHasDeclare, n), n.override && this.raise(fe.IndexSignatureHasOverride, n);
return;
}
!this.state.inAbstractClass && n.abstract && this.raise(fe.NonAbstractClassHasAbstractMethod, n), n.override && (s.hadSuperClass || this.
raise(fe.OverrideNotInSubClass, n)), super.parseClassMemberWithIsStatic(r, n, s, a);
}
parsePostMemberNameModifiers(r) {
this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(fe.ClassMethodHasReadonly, r), r.declare && this.match(10) &&
this.raise(fe.ClassMethodHasDeclare, r);
}
parseExpressionStatement(r, n, s) {
return (n.type === "Identifier" ? this.tsParseExpressionStatement(r, n, s) : void 0) || super.parseExpressionStatement(r, n, s);
}
shouldParseExportDeclaration() {
return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration();
}
parseConditional(r, n, s) {
if (!this.match(17)) return r;
if (this.state.maybeInArrowParameters) {
let a = this.lookaheadCharCode();
if (a === 44 || a === 61 || a === 58 || a === 41)
return this.setOptionalParametersError(s), r;
}
return super.parseConditional(r, n, s);
}
parseParenItem(r, n) {
let s = super.parseParenItem(r, n);
if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) {
let a = this.startNodeAt(n);
return a.expression = r, a.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(a, "TSTypeCastExpression");
}
return r;
}
parseExportDeclaration(r) {
if (!this.state.isAmbientContext && this.isContextual(125))
return this.tsInAmbientContext(() => this.parseExportDeclaration(r));
let n = this.state.startLoc, s = this.eatContextual(125);
if (s && (this.isContextual(125) || !this.shouldParseExportDeclaration()))
throw this.raise(fe.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
let o = Ze(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r);
return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || s) && (r.exportKind = "type"), s && o.type !==
"TSImportEqualsDeclaration" && (this.resetStartLocation(o, n), o.declare = !0), o) : null;
}
parseClassId(r, n, s, a) {
if ((!n || s) && this.isContextual(113))
return;
super.parseClassId(r, n, s, r.declare ? 1024 : 8331);
let o = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
o && (r.typeParameters = o);
}
parseClassPropertyAnnotation(r) {
r.optional || (this.eat(35) ? r.definite = !0 : this.eat(17) && (r.optional = !0));
let n = this.tsTryParseTypeAnnotation();
n && (r.typeAnnotation = n);
}
parseClassProperty(r) {
if (this.parseClassPropertyAnnotation(r), this.state.isAmbientContext && !(r.readonly && !r.typeAnnotation) && this.match(29) && this.
raise(fe.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) {
let {
key: n
} = r;
this.raise(fe.AbstractPropertyHasInitializer, this.state.startLoc, {
propertyName: n.type === "Identifier" && !r.computed ? n.name : `[${this.input.slice(this.offsetToSourcePos(n.start), this.offsetToSourcePos(
n.end))}]`
});
}
return super.parseClassProperty(r);
}
parseClassPrivateProperty(r) {
return r.abstract && this.raise(fe.PrivateElementHasAbstract, r), r.accessibility && this.raise(fe.PrivateElementHasAccessibility, r, {
modifier: r.accessibility
}), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r);
}
parseClassAccessorProperty(r) {
return this.parseClassPropertyAnnotation(r), r.optional && this.raise(fe.AccessorCannotBeOptional, r), super.parseClassAccessorProperty(
r);
}
pushClassMethod(r, n, s, a, o, l) {
let u = this.tsTryParseTypeParameters(this.tsParseConstModifier);
u && o && this.raise(fe.ConstructorHasTypeParameters, u);
let {
declare: c = !1,
kind: p
} = n;
c && (p === "get" || p === "set") && this.raise(fe.DeclareAccessor, n, {
kind: p
}), u && (n.typeParameters = u), super.pushClassMethod(r, n, s, a, o, l);
}
pushClassPrivateMethod(r, n, s, a) {
let o = this.tsTryParseTypeParameters(this.tsParseConstModifier);
o && (n.typeParameters = o), super.pushClassPrivateMethod(r, n, s, a);
}
declareClassPrivateMethodInScope(r, n) {
r.type !== "TSDeclareMethod" && (r.type === "MethodDefinition" && !hasOwnProperty.call(r.value, "body") || super.declareClassPrivateMethodInScope(
r, n));
}
parseClassSuper(r) {
super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.tsParseTypeArgumentsInExpression()),
this.eatContextual(113) && (r.implements = this.tsParseHeritageClause("implements"));
}
parseObjPropValue(r, n, s, a, o, l, u) {
let c = this.tsTryParseTypeParameters(this.tsParseConstModifier);
return c && (r.typeParameters = c), super.parseObjPropValue(r, n, s, a, o, l, u);
}
parseFunctionParams(r, n) {
let s = this.tsTryParseTypeParameters(this.tsParseConstModifier);
s && (r.typeParameters = s), super.parseFunctionParams(r, n);
}
parseVarId(r, n) {
super.parseVarId(r, n), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0);
let s = this.tsTryParseTypeAnnotation();
s && (r.id.typeAnnotation = s, this.resetEndLocation(r.id));
}
parseAsyncArrowFromCallExpression(r, n) {
return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, n);
}
parseMaybeAssign(r, n) {
var s, a, o, l, u;
let c, p, f;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (c = this.state.clone(), p = this.tryParse(() => super.parseMaybeAssign(r, n), c), !p.error) return p.node;
let {
context: E
} = this.state, d = E[E.length - 1];
(d === Qe.j_oTag || d === Qe.j_expr) && E.pop();
}
if (!((s = p) != null && s.error) && !this.match(47))
return super.parseMaybeAssign(r, n);
(!c || c === this.state) && (c = this.state.clone());
let h, y = this.tryParse((E) => {
var d, g;
h = this.tsParseTypeParameters(this.tsParseConstModifier);
let C = super.parseMaybeAssign(r, n);
return (C.type !== "ArrowFunctionExpression" || (d = C.extra) != null && d.parenthesized) && E(), ((g = h) == null ? void 0 : g.params.
length) !== 0 && this.resetStartLocationFromNode(C, h), C.typeParameters = h, C;
}, c);
if (!y.error && !y.aborted)
return h && this.reportReservedArrowTypeParam(h), y.node;
if (!p && (LT(!this.hasPlugin("jsx")), f = this.tryParse(() => super.parseMaybeAssign(r, n), c), !f.error))
return f.node;
if ((a = p) != null && a.node)
return this.state = p.failState, p.node;
if (y.node)
return this.state = y.failState, h && this.reportReservedArrowTypeParam(h), y.node;
if ((o = f) != null && o.node)
return this.state = f.failState, f.node;
throw ((l = p) == null ? void 0 : l.error) || y.error || ((u = f) == null ? void 0 : u.error);
}
reportReservedArrowTypeParam(r) {
var n;
r.params.length === 1 && !r.params[0].constraint && !((n = r.extra) != null && n.trailingComma) && this.getPluginOption("typescript", "\
disallowAmbiguousJSXLike") && this.raise(fe.ReservedArrowTypeParam, r);
}
parseMaybeUnary(r, n) {
return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, n);
}
parseArrow(r) {
if (this.match(14)) {
let n = this.tryParse((s) => {
let a = this.tsParseTypeOrTypePredicateAnnotation(14);
return (this.canInsertSemicolon() || !this.match(19)) && s(), a;
});
if (n.aborted) return;
n.thrown || (n.error && (this.state = n.failState), r.returnType = n.node);
}
return super.parseArrow(r);
}
parseFunctionParamType(r) {
this.eat(17) && (r.optional = !0);
let n = this.tsTryParseTypeAnnotation();
return n && (r.typeAnnotation = n), this.resetEndLocation(r), r;
}
isAssignable(r, n) {
switch (r.type) {
case "TSTypeCastExpression":
return this.isAssignable(r.expression, n);
case "TSParameterProperty":
return !0;
default:
return super.isAssignable(r, n);
}
}
toAssignable(r, n = !1) {
switch (r.type) {
case "ParenthesizedExpression":
this.toAssignableParenthesizedExpression(r, n);
break;
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
n ? this.expressionScope.recordArrowParameterBindingError(fe.UnexpectedTypeCastInParameter, r) : this.raise(fe.UnexpectedTypeCastInParameter,
r), this.toAssignable(r.expression, n);
break;
case "AssignmentExpression":
!n && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left));
default:
super.toAssignable(r, n);
}
}
toAssignableParenthesizedExpression(r, n) {
switch (r.expression.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
case "ParenthesizedExpression":
this.toAssignable(r.expression, n);
break;
default:
super.toAssignable(r, n);
}
}
checkToRestConversion(r, n) {
switch (r.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
this.checkToRestConversion(r.expression, !1);
break;
default:
super.checkToRestConversion(r, n);
}
}
isValidLVal(r, n, s) {
switch (r) {
case "TSTypeCastExpression":
return !0;
case "TSParameterProperty":
return "parameter";
case "TSNonNullExpression":
return "expression";
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
return (s !== 64 || !n) && ["expression", !0];
default:
return super.isValidLVal(r, n, s);
}
}
parseBindingAtom() {
return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom();
}
parseMaybeDecoratorArguments(r, n) {
if (this.match(47) || this.match(51)) {
let s = this.tsParseTypeArgumentsInExpression();
if (this.match(10)) {
let a = super.parseMaybeDecoratorArguments(r, n);
return a.typeParameters = s, a;
}
this.unexpected(null, 10);
}
return super.parseMaybeDecoratorArguments(r, n);
}
checkCommaAfterRest(r) {
return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === r ? (this.next(), !1) : super.checkCommaAfterRest(
r);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(35) || this.match(14) || super.isClassProperty();
}
parseMaybeDefault(r, n) {
let s = super.parseMaybeDefault(r, n);
return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(fe.TypeAnnotationAfterAssign,
s.typeAnnotation), s;
}
getTokenFromCode(r) {
if (this.state.inType) {
if (r === 62) {
this.finishOp(48, 1);
return;
}
if (r === 60) {
this.finishOp(47, 1);
return;
}
}
super.getTokenFromCode(r);
}
reScan_lt_gt() {
let {
type: r
} = this.state;
r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let {
type: r
} = this.state;
return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r;
}
toAssignableListItem(r, n, s) {
let a = r[n];
a.type === "TSTypeCastExpression" && (r[n] = this.typeCastToParameter(a)), super.toAssignableListItem(r, n, s);
}
typeCastToParameter(r) {
return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression;
}
shouldParseArrow(r) {
return this.match(14) ? r.every((n) => this.isAssignable(n, !0)) : super.shouldParseArrow(r);
}
shouldParseAsyncArrow() {
return this.match(14) || super.shouldParseAsyncArrow();
}
canHaveLeadingDecorator() {
return super.canHaveLeadingDecorator() || this.isAbstractClass();
}
jsxParseOpeningElementAfterName(r) {
if (this.match(47) || this.match(51)) {
let n = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression());
n && (r.typeParameters = n);
}
return super.jsxParseOpeningElementAfterName(r);
}
getGetterSetterExpectedParamCount(r) {
let n = super.getGetterSetterExpectedParamCount(r), a = this.getObjectOrClassMethodParams(r)[0];
return a && this.isThisParam(a) ? n + 1 : n;
}
parseCatchClauseParam() {
let r = super.parseCatchClauseParam(), n = this.tsTryParseTypeAnnotation();
return n && (r.typeAnnotation = n, this.resetEndLocation(r)), r;
}
tsInAmbientContext(r) {
let {
isAmbientContext: n,
strict: s
} = this.state;
this.state.isAmbientContext = !0, this.state.strict = !1;
try {
return r();
} finally {
this.state.isAmbientContext = n, this.state.strict = s;
}
}
parseClass(r, n, s) {
let a = this.state.inAbstractClass;
this.state.inAbstractClass = !!r.abstract;
try {
return super.parseClass(r, n, s);
} finally {
this.state.inAbstractClass = a;
}
}
tsParseAbstractDeclaration(r, n) {
if (this.match(80))
return r.abstract = !0, this.maybeTakeDecorators(n, this.parseClass(r, !0, !1));
if (this.isContextual(129)) {
if (!this.hasFollowingLineBreak())
return r.abstract = !0, this.raise(fe.NonClassMethodPropertyHasAbstractModifer, r), this.tsParseInterfaceDeclaration(r);
} else
this.unexpected(null, 80);
}
parseMethod(r, n, s, a, o, l, u) {
let c = super.parseMethod(r, n, s, a, o, l, u);
if (c.abstract && (this.hasPlugin("estree") ? c.value : c).body) {
let {
key: h
} = c;
this.raise(fe.AbstractMethodHasImplementation, c, {
methodName: h.type === "Identifier" && !c.computed ? h.name : `[${this.input.slice(this.offsetToSourcePos(h.start), this.offsetToSourcePos(
h.end))}]`
});
}
return c;
}
tsParseTypeParameterName() {
return this.parseIdentifier().name;
}
shouldParseAsAmbientContext() {
return !!this.getPluginOption("typescript", "dts");
}
parse() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.parse();
}
getExpression() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.getExpression();
}
parseExportSpecifier(r, n, s, a) {
return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, s), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value",
super.parseExportSpecifier(r, n, s, a));
}
parseImportSpecifier(r, n, s, a, o) {
return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, s), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value",
super.parseImportSpecifier(r, n, s, a, s ? 4098 : 4096));
}
parseTypeOnlyImportExportSpecifier(r, n, s) {
let a = n ? "imported" : "local", o = n ? "local" : "exported", l = r[a], u, c = !1, p = !0, f = l.loc.start;
if (this.isContextual(93)) {
let y = this.parseIdentifier();
if (this.isContextual(93)) {
let E = this.parseIdentifier();
Wr(this.state.type) ? (c = !0, l = y, u = n ? this.parseIdentifier() : this.parseModuleExportName(), p = !1) : (u = E, p = !1);
} else Wr(this.state.type) ? (p = !1, u = n ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, l = y);
} else Wr(this.state.type) && (c = !0, n ? (l = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(l.name, l.loc.
start, !0, !0)) : l = this.parseModuleExportName());
c && s && this.raise(n ? fe.TypeModifierIsUsedInTypeImports : fe.TypeModifierIsUsedInTypeExports, f), r[a] = l, r[o] = u;
let h = n ? "importKind" : "exportKind";
r[h] = c ? "type" : "value", p && this.eatContextual(93) && (r[o] = n ? this.parseIdentifier() : this.parseModuleExportName()), r[o] ||
(r[o] = In(r[a])), n && this.checkIdentifier(r[o], c ? 4098 : 4096);
}
}, "typescript");
function ZK(e) {
if (e.type !== "MemberExpression") return !1;
let {
computed: t,
property: r
} = e;
return t && r.type !== "StringLiteral" && (r.type !== "TemplateLiteral" || r.expressions.length > 0) ? !1 : rS(e.object);
}
i(ZK, "isPossiblyLiteralEnum");
function eG(e, t) {
var r;
let {
type: n
} = e;
if ((r = e.extra) != null && r.parenthesized)
return !1;
if (t) {
if (n === "Literal") {
let {
value: s
} = e;
if (typeof s == "string" || typeof s == "boolean")
return !0;
}
} else if (n === "StringLiteral" || n === "BooleanLiteral")
return !0;
return !!(tS(e, t) || tG(e, t) || n === "TemplateLiteral" && e.expressions.length === 0 || ZK(e));
}
i(eG, "isValidAmbientConstInitializer");
function tS(e, t) {
return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\
ral";
}
i(tS, "isNumber");
function tG(e, t) {
if (e.type === "UnaryExpression") {
let {
operator: r,
argument: n
} = e;
if (r === "-" && tS(n, t))
return !0;
}
return !1;
}
i(tG, "isNegativeNumber");
function rS(e) {
return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : rS(e.object);
}
i(rS, "isUncomputedMemberExpressionChain");
var RT = wn`placeholders`({
ClassNameIsRequired: "A class name is required.",
UnexpectedSpace: "Unexpected space in placeholder."
}), rG = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "PlaceholdersParserMixin");
}
parsePlaceholder(r) {
if (this.match(133)) {
let n = this.startNode();
return this.next(), this.assertNoSpace(), n.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(133), this.finishPlaceholder(
n, r);
}
}
finishPlaceholder(r, n) {
let s = r;
return (!s.expectedNode || !s.type) && (s = this.finishNode(s, "Placeholder")), s.expectedNode = n, s;
}
getTokenFromCode(r) {
r === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(133, 2) : super.getTokenFromCode(r);
}
parseExprAtom(r) {
return this.parsePlaceholder("Expression") || super.parseExprAtom(r);
}
parseIdentifier(r) {
return this.parsePlaceholder("Identifier") || super.parseIdentifier(r);
}
checkReservedWord(r, n, s, a) {
r !== void 0 && super.checkReservedWord(r, n, s, a);
}
parseBindingAtom() {
return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
}
isValidLVal(r, n, s) {
return r === "Placeholder" || super.isValidLVal(r, n, s);
}
toAssignable(r, n) {
r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, n);
}
chStartsBindingIdentifier(r, n) {
return !!(super.chStartsBindingIdentifier(r, n) || this.lookahead().type === 133);
}
verifyBreakContinue(r, n) {
r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, n);
}
parseExpressionStatement(r, n) {
var s;
if (n.type !== "Placeholder" || (s = n.extra) != null && s.parenthesized)
return super.parseExpressionStatement(r, n);
if (this.match(14)) {
let o = r;
return o.label = this.finishPlaceholder(n, "Identifier"), this.next(), o.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(),
this.finishNode(o, "LabeledStatement");
}
this.semicolon();
let a = r;
return a.name = n.name, this.finishPlaceholder(a, "Statement");
}
parseBlock(r, n, s) {
return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, n, s);
}
parseFunctionId(r) {
return this.parsePlaceholder("Identifier") || super.parseFunctionId(r);
}
parseClass(r, n, s) {
let a = n ? "ClassDeclaration" : "ClassExpression";
this.next();
let o = this.state.strict, l = this.parsePlaceholder("Identifier");
if (l)
if (this.match(81) || this.match(133) || this.match(5))
r.id = l;
else {
if (s || !n)
return r.id = null, r.body = this.finishPlaceholder(l, "ClassBody"), this.finishNode(r, a);
throw this.raise(RT.ClassNameIsRequired, this.state.startLoc);
}
else
this.parseClassId(r, n, s);
return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode(
r, a);
}
parseExport(r, n) {
let s = this.parsePlaceholder("Identifier");
if (!s) return super.parseExport(r, n);
let a = r;
if (!this.isContextual(98) && !this.match(12))
return a.specifiers = [], a.source = null, a.declaration = this.finishPlaceholder(s, "Declaration"), this.finishNode(a, "ExportNamed\
Declaration");
this.expectPlugin("exportDefaultFrom");
let o = this.startNode();
return o.exported = s, a.specifiers = [this.finishNode(o, "ExportDefaultSpecifier")], super.parseExport(a, n);
}
isExportDefaultSpecifier() {
if (this.match(65)) {
let r = this.nextTokenStart();
if (this.isUnparsedContextual(r, "from") && this.input.startsWith(ns(133), this.nextTokenStartSince(r + 4)))
return !0;
}
return super.isExportDefaultSpecifier();
}
maybeParseExportDefaultSpecifier(r, n) {
var s;
return (s = r.specifiers) != null && s.length ? !0 : super.maybeParseExportDefaultSpecifier(r, n);
}
checkExport(r) {
let {
specifiers: n
} = r;
n != null && n.length && (r.specifiers = n.filter((s) => s.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = n;
}
parseImport(r) {
let n = this.parsePlaceholder("Identifier");
if (!n) return super.parseImport(r);
if (r.specifiers = [], !this.isContextual(98) && !this.match(12))
return r.source = this.finishPlaceholder(n, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration");
let s = this.startNodeAtNode(n);
return s.local = n, r.specifiers.push(this.finishNode(s, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier(
r) || this.parseNamedImportSpecifiers(r)), this.expectContextual(98), r.source = this.parseImportSource(), this.semicolon(), this.finishNode(
r, "ImportDeclaration");
}
parseImportSource() {
return this.parsePlaceholder("StringLiteral") || super.parseImportSource();
}
assertNoSpace() {
this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise(RT.UnexpectedSpace, this.state.lastTokEndLoc);
}
}, "placeholders"), nG = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "V8IntrinsicMixin");
}
parseV8Intrinsic() {
if (this.match(54)) {
let r = this.state.startLoc, n = this.startNode();
if (this.next(), Ze(this.state.type)) {
let s = this.parseIdentifierName(), a = this.createIdentifier(n, s);
if (a.type = "V8IntrinsicIdentifier", this.match(10))
return a;
}
this.unexpected(r);
}
}
parseExprAtom(r) {
return this.parseV8Intrinsic() || super.parseExprAtom(r);
}
}, "v8intrinsic"), qT = ["minimal", "fsharp", "hack", "smart"], UT = ["^^", "@@", "^", "%", "#"];
function sG(e) {
if (e.has("decorators")) {
if (e.has("decorators-legacy"))
throw new Error("Cannot use the decorators and decorators-legacy plugin together");
let r = e.get("decorators").decoratorsBeforeExport;
if (r != null && typeof r != "boolean")
throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");
let n = e.get("decorators").allowCallParenthesized;
if (n != null && typeof n != "boolean")
throw new Error("'allowCallParenthesized' must be a boolean.");
}
if (e.has("flow") && e.has("typescript"))
throw new Error("Cannot combine flow and typescript plugins.");
if (e.has("placeholders") && e.has("v8intrinsic"))
throw new Error("Cannot combine placeholders and v8intrinsic plugins.");
if (e.has("pipelineOperator")) {
var t;
let r = e.get("pipelineOperator").proposal;
if (!qT.includes(r)) {
let s = qT.map((a) => `"${a}"`).join(", ");
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`);
}
let n = ((t = e.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash";
if (r === "hack") {
if (e.has("placeholders"))
throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
if (e.has("v8intrinsic"))
throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");
let s = e.get("pipelineOperator").topicToken;
if (!UT.includes(s)) {
let a = UT.map((o) => `"${o}"`).join(", ");
throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}\
.`);
}
if (s === "#" && n)
throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["\
recordAndTuple", e.get("recordAndTuple")])}\`.`);
} else if (r === "smart" && n)
throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", e.
get("recordAndTuple")])}\`.`);
}
if (e.has("moduleAttributes")) {
if (e.has("deprecatedImportAssert") || e.has("importAssertions"))
throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
if (e.get("moduleAttributes").version !== "may-2020")
throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the on\
ly supported value is 'may-2020'.");
}
if (e.has("importAssertions") && e.has("deprecatedImportAssert"))
throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
if (!e.has("deprecatedImportAssert") && e.has("importAttributes") && e.get("importAttributes").deprecatedAssertSyntax && e.set("deprecat\
edImportAssert", {}), e.has("recordAndTuple")) {
let r = e.get("recordAndTuple").syntaxType;
if (r != null) {
let n = ["hash", "bar"];
if (!n.includes(r))
throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + n.map((s) => `'${s}'`).join(", "));
}
}
if (e.has("asyncDoExpressions") && !e.has("doExpressions")) {
let r = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
throw r.missingPlugins = "doExpressions", r;
}
if (e.has("optionalChainingAssign") && e.get("optionalChainingAssign").version !== "2023-07")
throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, th\
e only supported value is '2023-07'.");
}
i(sG, "validatePlugins");
var nS = {
estree: aK,
jsx: YK,
flow: GK,
typescript: QK,
v8intrinsic: nG,
placeholders: rG
}, iG = Object.keys(nS), Sh = class extends Th {
static {
i(this, "ExpressionParser");
}
checkProto(t, r, n, s) {
if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand)
return n;
let a = t.key;
return (a.type === "Identifier" ? a.name : a.value) === "__proto__" ? r ? (this.raise(N.RecordNoProto, a), !0) : (n && (s ? s.doubleProtoLoc ===
null && (s.doubleProtoLoc = a.loc.start) : this.raise(N.DuplicateProto, a)), !0) : n;
}
shouldExitDescending(t, r) {
return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === r;
}
getExpression() {
this.enterInitialScopes(), this.nextToken();
let t = this.parseExpression();
return this.match(140) || this.unexpected(), this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors,
this.optionFlags & 256 && (t.tokens = this.tokens), t;
}
parseExpression(t, r) {
return t ? this.disallowInAnd(() => this.parseExpressionBase(r)) : this.allowInAnd(() => this.parseExpressionBase(r));
}
parseExpressionBase(t) {
let r = this.state.startLoc, n = this.parseMaybeAssign(t);
if (this.match(12)) {
let s = this.startNodeAt(r);
for (s.expressions = [n]; this.eat(12); )
s.expressions.push(this.parseMaybeAssign(t));
return this.toReferencedList(s.expressions), this.finishNode(s, "SequenceExpression");
}
return n;
}
parseMaybeAssignDisallowIn(t, r) {
return this.disallowInAnd(() => this.parseMaybeAssign(t, r));
}
parseMaybeAssignAllowIn(t, r) {
return this.allowInAnd(() => this.parseMaybeAssign(t, r));
}
setOptionalParametersError(t) {
t.optionalParametersLoc = this.state.startLoc;
}
parseMaybeAssign(t, r) {
let n = this.state.startLoc, s = this.isContextual(108);
if (s && this.prodParam.hasYield) {
this.next();
let u = this.parseYield(n);
return r && (u = r.call(this, u, n)), u;
}
let a;
t ? a = !1 : (t = new Ii(), a = !0);
let {
type: o
} = this.state;
(o === 10 || Ze(o)) && (this.state.potentialArrowAt = this.state.start);
let l = this.parseMaybeConditional(t);
if (r && (l = r.call(this, l, n)), pK(this.state.type)) {
let u = this.startNodeAt(n), c = this.state.value;
if (u.operator = c, this.match(29)) {
this.toAssignable(l, !0), u.left = l;
let p = n.index;
t.doubleProtoLoc != null && t.doubleProtoLoc.index >= p && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc.
index >= p && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= p && (this.checkDestructuringPrivate(
t), t.privateKeyLoc = null);
} else
u.left = l;
return this.next(), u.right = this.parseMaybeAssign(), this.checkLVal(l, this.finishNode(u, "AssignmentExpression")), u;
} else a && this.checkExpressionErrors(t, !0);
if (s) {
let {
type: u
} = this.state;
if ((this.hasPlugin("v8intrinsic") ? Va(u) : Va(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(N.YieldNotInGeneratorFunction, n), this.parseYield(n);
}
return l;
}
parseMaybeConditional(t) {
let r = this.state.startLoc, n = this.state.potentialArrowAt, s = this.parseExprOps(t);
return this.shouldExitDescending(s, n) ? s : this.parseConditional(s, r, t);
}
parseConditional(t, r, n) {
if (this.eat(17)) {
let s = this.startNodeAt(r);
return s.test = t, s.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), s.alternate = this.parseMaybeAssign(), this.finishNode(
s, "ConditionalExpression");
}
return t;
}
parseMaybeUnaryOrPrivate(t) {
return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t);
}
parseExprOps(t) {
let r = this.state.startLoc, n = this.state.potentialArrowAt, s = this.parseMaybeUnaryOrPrivate(t);
return this.shouldExitDescending(s, n) ? s : this.parseExprOp(s, r, -1);
}
parseExprOp(t, r, n) {
if (this.isPrivateName(t)) {
let a = this.getPrivateNameSV(t);
(n >= kl(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(N.PrivateInExpectedIn, t, {
identifierName: a
}), this.classScope.usePrivateName(a, t.loc.start);
}
let s = this.state.type;
if (dK(s) && (this.prodParam.hasIn || !this.match(58))) {
let a = kl(s);
if (a > n) {
if (s === 39) {
if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody)
return t;
this.checkPipelineAtInfixOperator(t, r);
}
let o = this.startNodeAt(r);
o.left = t, o.operator = this.state.value;
let l = s === 41 || s === 42, u = s === 40;
if (u && (a = kl(42)), this.next(), s === 39 && this.hasPlugin(["pipelineOperator", {
proposal: "minimal"
}]) && this.state.type === 96 && this.prodParam.hasAwait)
throw this.raise(N.UnexpectedAwaitAfterPipelineBody, this.state.startLoc);
o.right = this.parseExprOpRightExpr(s, a);
let c = this.finishNode(o, l || u ? "LogicalExpression" : "BinaryExpression"), p = this.state.type;
if (u && (p === 41 || p === 42) || l && p === 40)
throw this.raise(N.MixingCoalesceWithLogical, this.state.startLoc);
return this.parseExprOp(c, r, n);
}
}
return t;
}
parseExprOpRightExpr(t, r) {
let n = this.state.startLoc;
switch (t) {
case 39:
switch (this.getPluginOption("pipelineOperator", "proposal")) {
case "hack":
return this.withTopicBindingContext(() => this.parseHackPipeBody());
case "fsharp":
return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(r));
}
if (this.getPluginOption("pipelineOperator", "proposal") === "smart")
return this.withTopicBindingContext(() => {
if (this.prodParam.hasYield && this.isContextual(108))
throw this.raise(N.PipeBodyIsTighter, this.state.startLoc);
return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), n);
});
default:
return this.parseExprOpBaseRightExpr(t, r);
}
}
parseExprOpBaseRightExpr(t, r) {
let n = this.state.startLoc;
return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), n, bK(t) ? r - 1 : r);
}
parseHackPipeBody() {
var t;
let {
startLoc: r
} = this.state, n = this.parseMaybeAssign();
return ZW.has(n.type) && !((t = n.extra) != null && t.parenthesized) && this.raise(N.PipeUnparenthesizedBody, r, {
type: n.type
}), this.topicReferenceWasUsedInCurrentContext() || this.raise(N.PipeTopicUnused, r), n;
}
checkExponentialAfterUnary(t) {
this.match(57) && this.raise(N.UnexpectedTokenUnaryExponentiation, t.argument);
}
parseMaybeUnary(t, r) {
let n = this.state.startLoc, s = this.isContextual(96);
if (s && this.recordAwaitIfAllowed()) {
this.next();
let u = this.parseAwait(n);
return r || this.checkExponentialAfterUnary(u), u;
}
let a = this.match(34), o = this.startNode();
if (mK(this.state.type)) {
o.operator = this.state.value, o.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions");
let u = this.match(89);
if (this.next(), o.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && u) {
let c = o.argument;
c.type === "Identifier" ? this.raise(N.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(N.DeletePrivateField, o);
}
if (!a)
return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression");
}
let l = this.parseUpdate(o, a, t);
if (s) {
let {
type: u
} = this.state;
if ((this.hasPlugin("v8intrinsic") ? Va(u) : Va(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(N.AwaitNotInAsyncContext, n), this.parseAwait(n);
}
return l;
}
parseUpdate(t, r, n) {
if (r) {
let o = t;
return this.checkLVal(o.argument, this.finishNode(o, "UpdateExpression")), t;
}
let s = this.state.startLoc, a = this.parseExprSubscripts(n);
if (this.checkExpressionErrors(n, !1)) return a;
for (; hK(this.state.type) && !this.canInsertSemicolon(); ) {
let o = this.startNodeAt(s);
o.operator = this.state.value, o.prefix = !1, o.argument = a, this.next(), this.checkLVal(a, a = this.finishNode(o, "UpdateExpressio\
n"));
}
return a;
}
parseExprSubscripts(t) {
let r = this.state.startLoc, n = this.state.potentialArrowAt, s = this.parseExprAtom(t);
return this.shouldExitDescending(s, n) ? s : this.parseSubscripts(s, r);
}
parseSubscripts(t, r, n) {
let s = {
optionalChainMember: !1,
maybeAsyncArrow: this.atPossibleAsyncArrow(t),
stop: !1
};
do
t = this.parseSubscript(t, r, n, s), s.maybeAsyncArrow = !1;
while (!s.stop);
return t;
}
parseSubscript(t, r, n, s) {
let {
type: a
} = this.state;
if (!n && a === 15)
return this.parseBind(t, r, n, s);
if (Ll(a))
return this.parseTaggedTemplateExpression(t, r, s);
let o = !1;
if (a === 18) {
if (n && (this.raise(N.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40))
return s.stop = !0, t;
s.optionalChainMember = o = !0, this.next();
}
if (!n && this.match(10))
return this.parseCoverCallAndAsyncArrowHead(t, r, s, o);
{
let l = this.eat(0);
return l || o || this.eat(16) ? this.parseMember(t, r, s, l, o) : (s.stop = !0, t);
}
}
parseMember(t, r, n, s, a) {
let o = this.startNodeAt(r);
return o.object = t, o.computed = s, s ? (o.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" &&
this.raise(N.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) :
o.property = this.parseIdentifier(!0), n.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this.
finishNode(o, "MemberExpression");
}
parseBind(t, r, n, s) {
let a = this.startNodeAt(r);
return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), s.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\
ion"), r, n);
}
parseCoverCallAndAsyncArrowHead(t, r, n, s) {
let a = this.state.maybeInArrowParameters, o = null;
this.state.maybeInArrowParameters = !0, this.next();
let l = this.startNodeAt(r);
l.callee = t;
let {
maybeAsyncArrow: u,
optionalChainMember: c
} = n;
u && (this.expressionScope.enter(MK()), o = new Ii()), c && (l.optional = s), s ? l.arguments = this.parseCallExpressionArguments(11) :
l.arguments = this.parseCallExpressionArguments(11, t.type !== "Super", l, o);
let p = this.finishCallExpression(l, c);
return u && this.shouldParseAsyncArrow() && !s ? (n.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(),
this.expressionScope.exit(), p = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), p)) : (u && (this.checkExpressionErrors(o,
!0), this.expressionScope.exit()), this.toReferencedArguments(p)), this.state.maybeInArrowParameters = a, p;
}
toReferencedArguments(t, r) {
this.toReferencedListDeep(t.arguments, r);
}
parseTaggedTemplateExpression(t, r, n) {
let s = this.startNodeAt(r);
return s.tag = t, s.quasi = this.parseTemplate(!0), n.optionalChainMember && this.raise(N.OptionalChainingNoTemplate, r), this.finishNode(
s, "TaggedTemplateExpression");
}
atPossibleAsyncArrow(t) {
return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end -
t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt;
}
finishCallExpression(t, r) {
if (t.callee.type === "Import")
if (t.arguments.length === 0 || t.arguments.length > 2)
this.raise(N.ImportCallArity, t);
else
for (let n of t.arguments)
n.type === "SpreadElement" && this.raise(N.ImportCallSpreadArgument, n);
return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression");
}
parseCallExpressionArguments(t, r, n, s) {
let a = [], o = !0, l = this.state.inFSharpPipelineDirectBody;
for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(t); ) {
if (o)
o = !1;
else if (this.expect(12), this.match(t)) {
n && this.addTrailingCommaExtraToNode(n), this.next();
break;
}
a.push(this.parseExprListItem(!1, s, r));
}
return this.state.inFSharpPipelineDirectBody = l, a;
}
shouldParseAsyncArrow() {
return this.match(19) && !this.canInsertSemicolon();
}
parseAsyncArrowFromCallExpression(t, r) {
var n;
return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (n = r.extra) == null ?
void 0 : n.trailingCommaLoc), r.innerComments && Ha(t, r.innerComments), r.callee.trailingComments && Ha(t, r.callee.trailingComments),
t;
}
parseNoCallExpr() {
let t = this.state.startLoc;
return this.parseSubscripts(this.parseExprAtom(), t, !0);
}
parseExprAtom(t) {
let r, n = null, {
type: s
} = this.state;
switch (s) {
case 79:
return this.parseSuper();
case 83:
return r = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaProperty(r) : this.match(10) ? this.optionFlags & 512 ?
this.parseImportCall(r) : this.finishNode(r, "Import") : (this.raise(N.UnsupportedImport, this.state.lastTokStartLoc), this.finishNode(
r, "Import"));
case 78:
return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
case 90:
return this.parseDo(this.startNode(), !1);
case 56:
case 31:
return this.readRegexp(), this.parseRegExpLiteral(this.state.value);
case 135:
return this.parseNumericLiteral(this.state.value);
case 136:
return this.parseBigIntLiteral(this.state.value);
case 134:
return this.parseStringLiteral(this.state.value);
case 84:
return this.parseNullLiteral();
case 85:
return this.parseBooleanLiteral(!0);
case 86:
return this.parseBooleanLiteral(!1);
case 10: {
let a = this.state.potentialArrowAt === this.state.start;
return this.parseParenAndDistinguishExpression(a);
}
case 2:
case 1:
return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !1, !0);
case 0:
return this.parseArrayLike(3, !0, !1, t);
case 6:
case 7:
return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0);
case 5:
return this.parseObjectLike(8, !1, !1, t);
case 68:
return this.parseFunctionOrFunctionSent();
case 26:
n = this.parseDecorators();
case 80:
return this.parseClass(this.maybeTakeDecorators(n, this.startNode()), !1);
case 77:
return this.parseNewOrNewTarget();
case 25:
case 24:
return this.parseTemplate(!1);
case 15: {
r = this.startNode(), this.next(), r.object = null;
let a = r.callee = this.parseNoCallExpr();
if (a.type === "MemberExpression")
return this.finishNode(r, "BindExpression");
throw this.raise(N.UnsupportedBind, a);
}
case 139:
return this.raise(N.PrivateInExpectedIn, this.state.startLoc, {
identifierName: this.state.value
}), this.parsePrivateName();
case 33:
return this.parseTopicReferenceThenEqualsSign(54, "%");
case 32:
return this.parseTopicReferenceThenEqualsSign(44, "^");
case 37:
case 38:
return this.parseTopicReference("hack");
case 44:
case 54:
case 27: {
let a = this.getPluginOption("pipelineOperator", "proposal");
if (a)
return this.parseTopicReference(a);
this.unexpected();
break;
}
case 47: {
let a = this.input.codePointAt(this.nextTokenStart());
Dn(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected();
break;
}
default:
if (s === 137)
return this.parseDecimalLiteral(this.state.value);
if (Ze(s)) {
if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123)
return this.parseModuleExpression();
let a = this.state.potentialArrowAt === this.state.start, o = this.state.containsEsc, l = this.parseIdentifier();
if (!o && l.name === "async" && !this.canInsertSemicolon()) {
let {
type: u
} = this.state;
if (u === 68)
return this.resetPreviousNodeTrailingComments(l), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(l));
if (Ze(u))
return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)) : l;
if (u === 90)
return this.resetPreviousNodeTrailingComments(l), this.parseDo(this.startNodeAtNode(l), !0);
}
return a && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(l), [l],
!1)) : l;
} else
this.unexpected();
}
}
parseTopicReferenceThenEqualsSign(t, r) {
let n = this.getPluginOption("pipelineOperator", "proposal");
if (n)
return this.state.type = t, this.state.value = r, this.state.pos--, this.state.end--, this.state.endLoc = ar(this.state.endLoc, -1),
this.parseTopicReference(n);
this.unexpected();
}
parseTopicReference(t) {
let r = this.startNode(), n = this.state.startLoc, s = this.state.type;
return this.next(), this.finishTopicReference(r, n, t, s);
}
finishTopicReference(t, r, n, s) {
if (this.testTopicReferenceConfiguration(n, r, s))
return n === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PipeTopicUnbound, r), this.registerTopicReference(),
this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PrimaryTopicNotAllowed, r), this.
registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference"));
throw this.raise(N.PipeTopicUnconfiguredToken, r, {
token: ns(s)
});
}
testTopicReferenceConfiguration(t, r, n) {
switch (t) {
case "hack":
return this.hasPlugin(["pipelineOperator", {
topicToken: ns(n)
}]);
case "smart":
return n === 27;
default:
throw this.raise(N.PipeTopicRequiresHackPipes, r);
}
}
parseAsyncArrowUnaryFunction(t) {
this.prodParam.enter(Fl(!0, this.prodParam.hasYield));
let r = [this.parseIdentifier()];
return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(N.LineTerminatorBeforeArrow, this.state.curPosition()), this.
expect(19), this.parseArrowExpression(t, r, !0);
}
parseDo(t, r) {
this.expectPlugin("doExpressions"), r && this.expectPlugin("asyncDoExpressions"), t.async = r, this.next();
let n = this.state.labels;
return this.state.labels = [], r ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(),
this.state.labels = n, this.finishNode(t, "DoExpression");
}
parseSuper() {
let t = this.startNode();
return this.next(), this.match(10) && !this.scope.allowDirectSuper && !(this.optionFlags & 16) ? this.raise(N.SuperNotAllowed, t) : !this.
scope.allowSuper && !(this.optionFlags & 16) && this.raise(N.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) &&
this.raise(N.UnsupportedSuper, t), this.finishNode(t, "Super");
}
parsePrivateName() {
let t = this.startNode(), r = this.startNodeAt(ar(this.state.startLoc, 1)), n = this.state.value;
return this.next(), t.id = this.createIdentifier(r, n), this.finishNode(t, "PrivateName");
}
parseFunctionOrFunctionSent() {
let t = this.startNode();
if (this.next(), this.prodParam.hasYield && this.match(16)) {
let r = this.createIdentifier(this.startNodeAtNode(t), "function");
return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this.
parseMetaProperty(t, r, "sent");
}
return this.parseFunction(t);
}
parseMetaProperty(t, r, n) {
t.meta = r;
let s = this.state.containsEsc;
return t.property = this.parseIdentifier(!0), (t.property.name !== n || s) && this.raise(N.UnsupportedMetaProperty, t.property, {
target: r.name,
onlyValidPropertyName: n
}), this.finishNode(t, "MetaProperty");
}
parseImportMetaProperty(t) {
let r = this.createIdentifier(this.startNodeAtNode(t), "import");
if (this.next(), this.isContextual(101))
this.inModule || this.raise(N.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0;
else if (this.isContextual(105) || this.isContextual(97)) {
let n = this.isContextual(105);
if (this.expectPlugin(n ? "sourcePhaseImports" : "deferredImportEvaluation"), !(this.optionFlags & 512))
throw this.raise(N.DynamicImportPhaseRequiresImportExpressions, this.state.startLoc, {
phase: this.state.value
});
return this.next(), t.phase = n ? "source" : "defer", this.parseImportCall(t);
}
return this.parseMetaProperty(t, r, "meta");
}
parseLiteralAtNode(t, r, n) {
return this.addExtra(n, "rawValue", t), this.addExtra(n, "raw", this.input.slice(this.offsetToSourcePos(n.start), this.state.end)), n.
value = t, this.next(), this.finishNode(n, r);
}
parseLiteral(t, r) {
let n = this.startNode();
return this.parseLiteralAtNode(t, r, n);
}
parseStringLiteral(t) {
return this.parseLiteral(t, "StringLiteral");
}
parseNumericLiteral(t) {
return this.parseLiteral(t, "NumericLiteral");
}
parseBigIntLiteral(t) {
return this.parseLiteral(t, "BigIntLiteral");
}
parseDecimalLiteral(t) {
return this.parseLiteral(t, "DecimalLiteral");
}
parseRegExpLiteral(t) {
let r = this.startNode();
return this.addExtra(r, "raw", this.input.slice(this.offsetToSourcePos(r.start), this.state.end)), r.pattern = t.pattern, r.flags = t.
flags, this.next(), this.finishNode(r, "RegExpLiteral");
}
parseBooleanLiteral(t) {
let r = this.startNode();
return r.value = t, this.next(), this.finishNode(r, "BooleanLiteral");
}
parseNullLiteral() {
let t = this.startNode();
return this.next(), this.finishNode(t, "NullLiteral");
}
parseParenAndDistinguishExpression(t) {
let r = this.state.startLoc, n;
this.next(), this.expressionScope.enter(LK());
let s = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody;
this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1;
let o = this.state.startLoc, l = [], u = new Ii(), c = !0, p, f;
for (; !this.match(11); ) {
if (c)
c = !1;
else if (this.expect(12, u.optionalParametersLoc === null ? null : u.optionalParametersLoc), this.match(11)) {
f = this.state.startLoc;
break;
}
if (this.match(21)) {
let E = this.state.startLoc;
if (p = this.state.startLoc, l.push(this.parseParenItem(this.parseRestBinding(), E)), !this.checkCommaAfterRest(41))
break;
} else
l.push(this.parseMaybeAssignAllowIn(u, this.parseParenItem));
}
let h = this.state.lastTokEndLoc;
this.expect(11), this.state.maybeInArrowParameters = s, this.state.inFSharpPipelineDirectBody = a;
let y = this.startNodeAt(r);
return t && this.shouldParseArrow(l) && (y = this.parseArrow(y)) ? (this.checkDestructuringPrivate(u), this.expressionScope.validateAsPattern(),
this.expressionScope.exit(), this.parseArrowExpression(y, l, !1), y) : (this.expressionScope.exit(), l.length || this.unexpected(this.
state.lastTokStartLoc), f && this.unexpected(f), p && this.unexpected(p), this.checkExpressionErrors(u, !0), this.toReferencedListDeep(
l, !0), l.length > 1 ? (n = this.startNodeAt(o), n.expressions = l, this.finishNode(n, "SequenceExpression"), this.resetEndLocation(n,
h)) : n = l[0], this.wrapParenthesis(r, n));
}
wrapParenthesis(t, r) {
if (!(this.optionFlags & 1024))
return this.addExtra(r, "parenthesized", !0), this.addExtra(r, "parenStart", t.index), this.takeSurroundingComments(r, t.index, this.
state.lastTokEndLoc.index), r;
let n = this.startNodeAt(t);
return n.expression = r, this.finishNode(n, "ParenthesizedExpression");
}
shouldParseArrow(t) {
return !this.canInsertSemicolon();
}
parseArrow(t) {
if (this.eat(19))
return t;
}
parseParenItem(t, r) {
return t;
}
parseNewOrNewTarget() {
let t = this.startNode();
if (this.next(), this.match(16)) {
let r = this.createIdentifier(this.startNodeAtNode(t), "new");
this.next();
let n = this.parseMetaProperty(t, r, "target");
return !this.scope.inNonArrowFunction && !this.scope.inClass && !(this.optionFlags & 4) && this.raise(N.UnexpectedNewTarget, n), n;
}
return this.parseNew(t);
}
parseNew(t) {
if (this.parseNewCallee(t), this.eat(10)) {
let r = this.parseExprList(11);
this.toReferencedList(r), t.arguments = r;
} else
t.arguments = [];
return this.finishNode(t, "NewExpression");
}
parseNewCallee(t) {
let r = this.match(83), n = this.parseNoCallExpr();
t.callee = n, r && (n.type === "Import" || n.type === "ImportExpression") && this.raise(N.ImportCallNotNewExpression, n);
}
parseTemplateElement(t) {
let {
start: r,
startLoc: n,
end: s,
value: a
} = this.state, o = r + 1, l = this.startNodeAt(ar(n, 1));
a === null && (t || this.raise(N.InvalidEscapeSequenceTemplate, ar(this.state.firstInvalidTemplateEscapePos, 1)));
let u = this.match(24), c = u ? -1 : -2, p = s + c;
l.value = {
raw: this.input.slice(o, p).replace(/\r\n?/g, `
`),
cooked: a === null ? null : a.slice(1, c)
}, l.tail = u, this.next();
let f = this.finishNode(l, "TemplateElement");
return this.resetEndLocation(f, ar(this.state.lastTokEndLoc, c)), f;
}
parseTemplate(t) {
let r = this.startNode(), n = this.parseTemplateElement(t), s = [n], a = [];
for (; !n.tail; )
a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), s.push(n = this.parseTemplateElement(t));
return r.expressions = a, r.quasis = s, this.finishNode(r, "TemplateLiteral");
}
parseTemplateSubstitution() {
return this.parseExpression();
}
parseObjectLike(t, r, n, s) {
n && this.expectPlugin("recordAndTuple");
let a = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = !1;
let o = !1, l = !0, u = this.startNode();
for (u.properties = [], this.next(); !this.match(t); ) {
if (l)
l = !1;
else if (this.expect(12), this.match(t)) {
this.addTrailingCommaExtraToNode(u);
break;
}
let p;
r ? p = this.parseBindingProperty() : (p = this.parsePropertyDefinition(s), o = this.checkProto(p, n, o, s)), n && !this.isObjectProperty(
p) && p.type !== "SpreadElement" && this.raise(N.InvalidRecordProperty, p), p.shorthand && this.addExtra(p, "shorthand", !0), u.properties.
push(p);
}
this.next(), this.state.inFSharpPipelineDirectBody = a;
let c = "ObjectExpression";
return r ? c = "ObjectPattern" : n && (c = "RecordExpression"), this.finishNode(u, c);
}
addTrailingCommaExtraToNode(t) {
this.addExtra(t, "trailingComma", this.state.lastTokStartLoc.index), this.addExtra(t, "trailingCommaLoc", this.state.lastTokStartLoc, !1);
}
maybeAsyncOrAccessorProp(t) {
return !t.computed && t.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55));
}
parsePropertyDefinition(t) {
let r = [];
if (this.match(26))
for (this.hasPlugin("decorators") && this.raise(N.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); )
r.push(this.parseDecorator());
let n = this.startNode(), s = !1, a = !1, o;
if (this.match(21))
return r.length && this.unexpected(), this.parseSpread();
r.length && (n.decorators = r, r = []), n.method = !1, t && (o = this.state.startLoc);
let l = this.eat(55);
this.parsePropertyNamePrefixOperator(n);
let u = this.state.containsEsc;
if (this.parsePropertyName(n, t), !l && !u && this.maybeAsyncOrAccessorProp(n)) {
let {
key: c
} = n, p = c.name;
p === "async" && !this.hasPrecedingLineBreak() && (s = !0, this.resetPreviousNodeTrailingComments(c), l = this.eat(55), this.parsePropertyName(
n)), (p === "get" || p === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), n.kind = p, this.match(55) && (l = !0, this.
raise(N.AccessorIsGenerator, this.state.curPosition(), {
kind: p
}), this.next()), this.parsePropertyName(n));
}
return this.parseObjPropValue(n, o, l, s, !1, a, t);
}
getGetterSetterExpectedParamCount(t) {
return t.kind === "get" ? 0 : 1;
}
getObjectOrClassMethodParams(t) {
return t.params;
}
checkGetterSetterParams(t) {
var r;
let n = this.getGetterSetterExpectedParamCount(t), s = this.getObjectOrClassMethodParams(t);
s.length !== n && this.raise(t.kind === "get" ? N.BadGetterArity : N.BadSetterArity, t), t.kind === "set" && ((r = s[s.length - 1]) ==
null ? void 0 : r.type) === "RestElement" && this.raise(N.BadSetterRestParameter, t);
}
parseObjectMethod(t, r, n, s, a) {
if (a) {
let o = this.parseMethod(t, r, !1, !1, !1, "ObjectMethod");
return this.checkGetterSetterParams(o), o;
}
if (n || r || this.match(10))
return s && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, n, !1, !1, "ObjectMethod");
}
parseObjectProperty(t, r, n, s) {
if (t.shorthand = !1, this.eat(14))
return t.value = n ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(s), this.finishNode(t, "ObjectProper\
ty");
if (!t.computed && t.key.type === "Identifier") {
if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), n)
t.value = this.parseMaybeDefault(r, In(t.key));
else if (this.match(29)) {
let a = this.state.startLoc;
s != null ? s.shorthandAssignLoc === null && (s.shorthandAssignLoc = a) : this.raise(N.InvalidCoverInitializedName, a), t.value = this.
parseMaybeDefault(r, In(t.key));
} else
t.value = In(t.key);
return t.shorthand = !0, this.finishNode(t, "ObjectProperty");
}
}
parseObjPropValue(t, r, n, s, a, o, l) {
let u = this.parseObjectMethod(t, n, s, a, o) || this.parseObjectProperty(t, r, a, l);
return u || this.unexpected(), u;
}
parsePropertyName(t, r) {
if (this.eat(0))
t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3);
else {
let {
type: n,
value: s
} = this.state, a;
if (Wr(n))
a = this.parseIdentifier(!0);
else
switch (n) {
case 135:
a = this.parseNumericLiteral(s);
break;
case 134:
a = this.parseStringLiteral(s);
break;
case 136:
a = this.parseBigIntLiteral(s);
break;
case 139: {
let o = this.state.startLoc;
r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(N.UnexpectedPrivateField, o), a = this.parsePrivateName();
break;
}
default:
if (n === 137) {
a = this.parseDecimalLiteral(s);
break;
}
this.unexpected();
}
t.key = a, n !== 139 && (t.computed = !1);
}
}
initFunction(t, r) {
t.id = null, t.generator = !1, t.async = r;
}
parseMethod(t, r, n, s, a, o, l = !1) {
this.initFunction(t, n), t.generator = r, this.scope.enter(18 | (l ? 64 : 0) | (a ? 32 : 0)), this.prodParam.enter(Fl(n, t.generator)),
this.parseFunctionParams(t, s);
let u = this.parseFunctionBodyAndFinish(t, o, !0);
return this.prodParam.exit(), this.scope.exit(), u;
}
parseArrayLike(t, r, n, s) {
n && this.expectPlugin("recordAndTuple");
let a = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = !1;
let o = this.startNode();
return this.next(), o.elements = this.parseExprList(t, !n, s, o), this.state.inFSharpPipelineDirectBody = a, this.finishNode(o, n ? "T\
upleExpression" : "ArrayExpression");
}
parseArrowExpression(t, r, n, s) {
this.scope.enter(6);
let a = Fl(n, !1);
!this.match(5) && this.prodParam.hasIn && (a |= 8), this.prodParam.enter(a), this.initFunction(t, n);
let o = this.state.maybeInArrowParameters;
return r && (this.state.maybeInArrowParameters = !0, this.setArrowFunctionParameters(t, r, s)), this.state.maybeInArrowParameters = !1,
this.parseFunctionBody(t, !0), this.prodParam.exit(), this.scope.exit(), this.state.maybeInArrowParameters = o, this.finishNode(t, "Ar\
rowFunctionExpression");
}
setArrowFunctionParameters(t, r, n) {
this.toAssignableList(r, n, !1), t.params = r;
}
parseFunctionBodyAndFinish(t, r, n = !1) {
return this.parseFunctionBody(t, !1, n), this.finishNode(t, r);
}
parseFunctionBody(t, r, n = !1) {
let s = r && !this.match(5);
if (this.expressionScope.enter(ZT()), s)
t.body = this.parseMaybeAssign(), this.checkParams(t, !1, r, !1);
else {
let a = this.state.strict, o = this.state.labels;
this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (l) => {
let u = !this.isSimpleParamList(t.params);
l && u && this.raise(N.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t);
let c = !a && this.state.strict;
this.checkParams(t, !this.state.strict && !r && !n && !u, r, c), this.state.strict && t.id && this.checkIdentifier(t.id, 65, c);
}), this.prodParam.exit(), this.state.labels = o;
}
this.expressionScope.exit();
}
isSimpleParameter(t) {
return t.type === "Identifier";
}
isSimpleParamList(t) {
for (let r = 0, n = t.length; r < n; r++)
if (!this.isSimpleParameter(t[r])) return !1;
return !0;
}
checkParams(t, r, n, s = !0) {
let a = !r && /* @__PURE__ */ new Set(), o = {
type: "FormalParameters"
};
for (let l of t.params)
this.checkLVal(l, o, 5, a, s);
}
parseExprList(t, r, n, s) {
let a = [], o = !0;
for (; !this.eat(t); ) {
if (o)
o = !1;
else if (this.expect(12), this.match(t)) {
s && this.addTrailingCommaExtraToNode(s), this.next();
break;
}
a.push(this.parseExprListItem(r, n));
}
return a;
}
parseExprListItem(t, r, n) {
let s;
if (this.match(12))
t || this.raise(N.UnexpectedToken, this.state.curPosition(), {
unexpected: ","
}), s = null;
else if (this.match(21)) {
let a = this.state.startLoc;
s = this.parseParenItem(this.parseSpread(r), a);
} else if (this.match(17)) {
this.expectPlugin("partialApplication"), n || this.raise(N.UnexpectedArgumentPlaceholder, this.state.startLoc);
let a = this.startNode();
this.next(), s = this.finishNode(a, "ArgumentPlaceholder");
} else
s = this.parseMaybeAssignAllowIn(r, this.parseParenItem);
return s;
}
parseIdentifier(t) {
let r = this.startNode(), n = this.parseIdentifierName(t);
return this.createIdentifier(r, n);
}
createIdentifier(t, r) {
return t.name = r, t.loc.identifierName = r, this.finishNode(t, "Identifier");
}
parseIdentifierName(t) {
let r, {
startLoc: n,
type: s
} = this.state;
Wr(s) ? r = this.state.value : this.unexpected();
let a = uK(s);
return t ? a && this.replaceToken(132) : this.checkReservedWord(r, n, a, !1), this.next(), r;
}
checkReservedWord(t, r, n, s) {
if (t.length > 10 || !wK(t))
return;
if (n && AK(t)) {
this.raise(N.UnexpectedKeyword, r, {
keyword: t
});
return;
}
if ((this.state.strict ? s ? JT : HT : GT)(t, this.inModule)) {
this.raise(N.UnexpectedReservedWord, r, {
reservedWord: t
});
return;
} else if (t === "yield") {
if (this.prodParam.hasYield) {
this.raise(N.YieldBindingIdentifier, r);
return;
}
} else if (t === "await") {
if (this.prodParam.hasAwait) {
this.raise(N.AwaitBindingIdentifier, r);
return;
}
if (this.scope.inStaticBlock) {
this.raise(N.AwaitBindingIdentifierInStaticBlock, r);
return;
}
this.expressionScope.recordAsyncArrowParametersError(r);
} else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) {
this.raise(N.ArgumentsInClass, r);
return;
}
}
recordAwaitIfAllowed() {
let t = this.prodParam.hasAwait || this.optionFlags & 1 && !this.scope.inFunction;
return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), t;
}
parseAwait(t) {
let r = this.startNodeAt(t);
return this.expressionScope.recordParameterInitializerError(N.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(N.ObsoleteAwaitStar,
r), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = !0 :
this.sawUnambiguousESM = !0), this.state.soloAwait || (r.argument = this.parseMaybeUnary(null, !0)), this.finishNode(r, "AwaitExpressi\
on");
}
isAmbiguousPrefixOrIdentifier() {
if (this.hasPrecedingLineBreak()) return !0;
let {
type: t
} = this.state;
return t === 53 || t === 10 || t === 0 || Ll(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8\
intrinsic") && t === 54;
}
parseYield(t) {
let r = this.startNodeAt(t);
this.expressionScope.recordParameterInitializerError(N.YieldInParameter, r);
let n = !1, s = null;
if (!this.hasPrecedingLineBreak())
switch (n = this.eat(55), this.state.type) {
case 13:
case 140:
case 8:
case 11:
case 3:
case 9:
case 14:
case 12:
if (!n) break;
default:
s = this.parseMaybeAssign();
}
return r.delegate = n, r.argument = s, this.finishNode(r, "YieldExpression");
}
parseImportCall(t) {
if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12) && !this.match(11) && (t.options = this.parseMaybeAssignAllowIn(),
this.eat(12) && !this.match(11))) {
do
this.parseMaybeAssignAllowIn();
while (this.eat(12) && !this.match(11));
this.raise(N.ImportCallArity, t);
}
return this.expect(11), this.finishNode(t, "ImportExpression");
}
checkPipelineAtInfixOperator(t, r) {
this.hasPlugin(["pipelineOperator", {
proposal: "smart"
}]) && t.type === "SequenceExpression" && this.raise(N.PipelineHeadSequenceExpression, r);
}
parseSmartPipelineBodyInStyle(t, r) {
if (this.isSimpleReference(t)) {
let n = this.startNodeAt(r);
return n.callee = t, this.finishNode(n, "PipelineBareFunction");
} else {
let n = this.startNodeAt(r);
return this.checkSmartPipeTopicBodyEarlyErrors(r), n.expression = t, this.finishNode(n, "PipelineTopicExpression");
}
}
isSimpleReference(t) {
switch (t.type) {
case "MemberExpression":
return !t.computed && this.isSimpleReference(t.object);
case "Identifier":
return !0;
default:
return !1;
}
}
checkSmartPipeTopicBodyEarlyErrors(t) {
if (this.match(19))
throw this.raise(N.PipelineBodyNoArrow, this.state.startLoc);
this.topicReferenceWasUsedInCurrentContext() || this.raise(N.PipelineTopicUnused, t);
}
withTopicBindingContext(t) {
let r = this.state.topicContext;
this.state.topicContext = {
maxNumOfResolvableTopics: 1,
maxTopicIndex: null
};
try {
return t();
} finally {
this.state.topicContext = r;
}
}
withSmartMixTopicForbiddingContext(t) {
if (this.hasPlugin(["pipelineOperator", {
proposal: "smart"
}])) {
let r = this.state.topicContext;
this.state.topicContext = {
maxNumOfResolvableTopics: 0,
maxTopicIndex: null
};
try {
return t();
} finally {
this.state.topicContext = r;
}
} else
return t();
}
withSoloAwaitPermittingContext(t) {
let r = this.state.soloAwait;
this.state.soloAwait = !0;
try {
return t();
} finally {
this.state.soloAwait = r;
}
}
allowInAnd(t) {
let r = this.prodParam.currentFlags();
if (8 & ~r) {
this.prodParam.enter(r | 8);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
disallowInAnd(t) {
let r = this.prodParam.currentFlags();
if (8 & r) {
this.prodParam.enter(r & -9);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
registerTopicReference() {
this.state.topicContext.maxTopicIndex = 0;
}
topicReferenceIsAllowedInCurrentContext() {
return this.state.topicContext.maxNumOfResolvableTopics >= 1;
}
topicReferenceWasUsedInCurrentContext() {
return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0;
}
parseFSharpPipelineBody(t) {
let r = this.state.startLoc;
this.state.potentialArrowAt = this.state.start;
let n = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = !0;
let s = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t);
return this.state.inFSharpPipelineDirectBody = n, s;
}
parseModuleExpression() {
this.expectPlugin("moduleBlocks");
let t = this.startNode();
this.next(), this.match(5) || this.unexpected(null, 5);
let r = this.startNodeAt(this.state.endLoc);
this.next();
let n = this.initializeScopes(!0);
this.enterInitialScopes();
try {
t.body = this.parseProgram(r, 8, "module");
} finally {
n();
}
return this.finishNode(t, "ModuleExpression");
}
parsePropertyNamePrefixOperator(t) {
}
}, rh = {
kind: 1
}, aG = {
kind: 2
}, oG = /[\uD800-\uDFFF]/u, nh = /in(?:stanceof)?/y;
function lG(e, t, r) {
for (let n = 0; n < e.length; n++) {
let s = e[n], {
type: a
} = s;
if (typeof a == "number") {
{
if (a === 139) {
let {
loc: o,
start: l,
value: u,
end: c
} = s, p = l + 1, f = ar(o.start, 1);
e.splice(n, 1, new un({
type: An(27),
value: "#",
start: l,
end: p,
startLoc: o.start,
endLoc: f
}), new un({
type: An(132),
value: u,
start: p,
end: c,
startLoc: f,
endLoc: o.end
})), n++;
continue;
}
if (Ll(a)) {
let {
loc: o,
start: l,
value: u,
end: c
} = s, p = l + 1, f = ar(o.start, 1), h;
t.charCodeAt(l - r) === 96 ? h = new un({
type: An(22),
value: "`",
start: l,
end: p,
startLoc: o.start,
endLoc: f
}) : h = new un({
type: An(8),
value: "}",
start: l,
end: p,
startLoc: o.start,
endLoc: f
});
let y, E, d, g;
a === 24 ? (E = c - 1, d = ar(o.end, -1), y = u === null ? null : u.slice(1, -1), g = new un({
type: An(22),
value: "`",
start: E,
end: c,
startLoc: d,
endLoc: o.end
})) : (E = c - 2, d = ar(o.end, -2), y = u === null ? null : u.slice(1, -2), g = new un({
type: An(23),
value: "${",
start: E,
end: c,
startLoc: d,
endLoc: o.end
})), e.splice(n, 1, h, new un({
type: An(20),
value: y,
start: p,
end: E,
startLoc: f,
endLoc: d
}), g), n += 2;
continue;
}
}
s.type = An(a);
}
}
return e;
}
i(lG, "babel7CompatTokens");
var xh = class extends Sh {
static {
i(this, "StatementParser");
}
parseTopLevel(t, r) {
return t.program = this.parseProgram(r), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = lG(this.tokens, this.input,
this.startIndex)), this.finishNode(t, "File");
}
parseProgram(t, r = 140, n = this.options.sourceType) {
if (t.sourceType = n, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) {
if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0)
for (let [a, o] of Array.from(this.scope.undefinedExports))
this.raise(N.ModuleExportUndefined, o, {
localName: a
});
this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait);
}
let s;
return r === 140 ? s = this.finishNode(t, "Program") : s = this.finishNodeAt(t, "Program", ar(this.state.startLoc, -1)), s;
}
stmtToDirective(t) {
let r = t;
r.type = "Directive", r.value = r.expression, delete r.expression;
let n = r.value, s = n.value, a = this.input.slice(this.offsetToSourcePos(n.start), this.offsetToSourcePos(n.end)), o = n.value = a.slice(
1, -1);
return this.addExtra(n, "raw", a), this.addExtra(n, "rawValue", o), this.addExtra(n, "expressionValue", s), n.type = "DirectiveLiteral",
r;
}
parseInterpreterDirective() {
if (!this.match(28))
return null;
let t = this.startNode();
return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective");
}
isLet() {
return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1;
}
chStartsBindingIdentifier(t, r) {
if (Dn(t)) {
if (nh.lastIndex = r, nh.test(this.input)) {
let n = this.codePointAtPos(nh.lastIndex);
if (!Di(n) && n !== 92)
return !1;
}
return !0;
} else return t === 92;
}
chStartsBindingPattern(t) {
return t === 91 || t === 123;
}
hasFollowingBindingAtom() {
let t = this.nextTokenStart(), r = this.codePointAtPos(t);
return this.chStartsBindingPattern(r) || this.chStartsBindingIdentifier(r, t);
}
hasInLineFollowingBindingIdentifierOrBrace() {
let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t);
return r === 123 || this.chStartsBindingIdentifier(r, t);
}
startsUsingForOf() {
let {
type: t,
containsEsc: r
} = this.lookahead();
if (t === 102 && !r)
return !1;
if (Ze(t) && !this.hasFollowingLineBreak())
return this.expectPlugin("explicitResourceManagement"), !0;
}
startsAwaitUsing() {
let t = this.nextTokenInLineStart();
if (this.isUnparsedContextual(t, "using")) {
t = this.nextTokenInLineStartSince(t + 5);
let r = this.codePointAtPos(t);
if (this.chStartsBindingIdentifier(r, t))
return this.expectPlugin("explicitResourceManagement"), !0;
}
return !1;
}
parseModuleItem() {
return this.parseStatementLike(15);
}
parseStatementListItem() {
return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8));
}
parseStatementOrSloppyAnnexBFunctionDeclaration(t = !1) {
let r = 0;
return this.options.annexB && !this.state.strict && (r |= 4, t && (r |= 8)), this.parseStatementLike(r);
}
parseStatement() {
return this.parseStatementLike(0);
}
parseStatementLike(t) {
let r = null;
return this.match(26) && (r = this.parseDecorators(!0)), this.parseStatementContent(t, r);
}
parseStatementContent(t, r) {
let n = this.state.type, s = this.startNode(), a = !!(t & 2), o = !!(t & 4), l = t & 1;
switch (n) {
case 60:
return this.parseBreakContinueStatement(s, !0);
case 63:
return this.parseBreakContinueStatement(s, !1);
case 64:
return this.parseDebuggerStatement(s);
case 90:
return this.parseDoWhileStatement(s);
case 91:
return this.parseForStatement(s);
case 68:
if (this.lookaheadCharCode() === 46) break;
return o || this.raise(this.state.strict ? N.StrictFunction : this.options.annexB ? N.SloppyFunctionAnnexB : N.SloppyFunction, this.
state.startLoc), this.parseFunctionStatement(s, !1, !a && o);
case 80:
return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, s), !0);
case 69:
return this.parseIfStatement(s);
case 70:
return this.parseReturnStatement(s);
case 71:
return this.parseSwitchStatement(s);
case 72:
return this.parseThrowStatement(s);
case 73:
return this.parseTryStatement(s);
case 96:
if (!this.state.containsEsc && this.startsAwaitUsing())
return this.recordAwaitIfAllowed() ? a || this.raise(N.UnexpectedLexicalDeclaration, s) : this.raise(N.AwaitUsingNotInAsyncContext,
s), this.next(), this.parseVarStatement(s, "await using");
break;
case 107:
if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace())
break;
return this.expectPlugin("explicitResourceManagement"), !this.scope.inModule && this.scope.inTopLevel ? this.raise(N.UnexpectedUsingDeclaration,
this.state.startLoc) : a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc), this.parseVarStatement(s, "using");
case 100: {
if (this.state.containsEsc)
break;
let p = this.nextTokenStart(), f = this.codePointAtPos(p);
if (f !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(f, p) && f !== 123))
break;
}
case 75:
a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc);
case 74: {
let p = this.state.value;
return this.parseVarStatement(s, p);
}
case 92:
return this.parseWhileStatement(s);
case 76:
return this.parseWithStatement(s);
case 5:
return this.parseBlock();
case 13:
return this.parseEmptyStatement(s);
case 83: {
let p = this.lookaheadCharCode();
if (p === 40 || p === 46)
break;
}
case 82: {
!(this.optionFlags & 8) && !l && this.raise(N.UnexpectedImportExport, this.state.startLoc), this.next();
let p;
return n === 83 ? p = this.parseImport(s) : p = this.parseExport(s, r), this.assertModuleNodeAllowed(p), p;
}
default:
if (this.isAsyncFunction())
return a || this.raise(N.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(s,
!0, !a && o);
}
let u = this.state.value, c = this.parseExpression();
return Ze(n) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(s, u, c, t) : this.parseExpressionStatement(s, c,
r);
}
assertModuleNodeAllowed(t) {
!(this.optionFlags & 8) && !this.inModule && this.raise(N.ImportOutsideModule, t);
}
decoratorsEnabledBeforeExport() {
return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\
Export") !== !1;
}
maybeTakeDecorators(t, r, n) {
if (t) {
var s;
(s = r.decorators) != null && s.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise(
N.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode(r, t[0]),
n && this.resetStartLocationFromNode(n, r);
}
return r;
}
canHaveLeadingDecorator() {
return this.match(80);
}
parseDecorators(t) {
let r = [];
do
r.push(this.parseDecorator());
while (this.match(26));
if (this.match(82))
t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(N.DecoratorExportClass, this.state.startLoc);
else if (!this.canHaveLeadingDecorator())
throw this.raise(N.UnexpectedLeadingDecorator, this.state.startLoc);
return r;
}
parseDecorator() {
this.expectOnePlugin(["decorators", "decorators-legacy"]);
let t = this.startNode();
if (this.next(), this.hasPlugin("decorators")) {
let r = this.state.startLoc, n;
if (this.match(10)) {
let s = this.state.startLoc;
this.next(), n = this.parseExpression(), this.expect(11), n = this.wrapParenthesis(s, n);
let a = this.state.startLoc;
t.expression = this.parseMaybeDecoratorArguments(n, s), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !==
n && this.raise(N.DecoratorArgumentsOutsideParentheses, a);
} else {
for (n = this.parseIdentifier(!1); this.eat(16); ) {
let s = this.startNodeAt(r);
s.object = n, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), s.property = this.parsePrivateName()) :
s.property = this.parseIdentifier(!0), s.computed = !1, n = this.finishNode(s, "MemberExpression");
}
t.expression = this.parseMaybeDecoratorArguments(n, r);
}
} else
t.expression = this.parseExprSubscripts();
return this.finishNode(t, "Decorator");
}
parseMaybeDecoratorArguments(t, r) {
if (this.eat(10)) {
let n = this.startNodeAt(r);
return n.callee = t, n.arguments = this.parseCallExpressionArguments(11), this.toReferencedList(n.arguments), this.finishNode(n, "Ca\
llExpression");
}
return t;
}
parseBreakContinueStatement(t, r) {
return this.next(), this.isLineTerminator() ? t.label = null : (t.label = this.parseIdentifier(), this.semicolon()), this.verifyBreakContinue(
t, r), this.finishNode(t, r ? "BreakStatement" : "ContinueStatement");
}
verifyBreakContinue(t, r) {
let n;
for (n = 0; n < this.state.labels.length; ++n) {
let s = this.state.labels[n];
if ((t.label == null || s.name === t.label.name) && (s.kind != null && (r || s.kind === 1) || t.label && r))
break;
}
if (n === this.state.labels.length) {
let s = r ? "BreakStatement" : "ContinueStatement";
this.raise(N.IllegalBreakContinue, t, {
type: s
});
}
}
parseDebuggerStatement(t) {
return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement");
}
parseHeaderExpression() {
this.expect(10);
let t = this.parseExpression();
return this.expect(11), t;
}
parseDoWhileStatement(t) {
return this.next(), this.state.labels.push(rh), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.
labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement");
}
parseForStatement(t) {
this.next(), this.state.labels.push(rh);
let r = null;
if (this.isContextual(96) && this.recordAwaitIfAllowed() && (r = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10),
this.match(13))
return r !== null && this.unexpected(r), this.parseFor(t, null);
let n = this.isContextual(100);
{
let u = this.isContextual(96) && this.startsAwaitUsing(), c = u || this.isContextual(107) && this.startsUsingForOf(), p = n && this.
hasFollowingBindingAtom() || c;
if (this.match(74) || this.match(75) || p) {
let f = this.startNode(), h;
u ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(N.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) :
h = this.state.value, this.next(), this.parseVar(f, !0, h);
let y = this.finishNode(f, "VariableDeclaration"), E = this.match(58);
return E && c && this.raise(N.ForInUsing, y), (E || this.isContextual(102)) && y.declarations.length === 1 ? this.parseForIn(t, y,
r) : (r !== null && this.unexpected(r), this.parseFor(t, y));
}
}
let s = this.isContextual(95), a = new Ii(), o = this.parseExpression(!0, a), l = this.isContextual(102);
if (l && (n && this.raise(N.ForOfLet, o), r === null && s && o.type === "Identifier" && this.raise(N.ForOfAsync, o)), l || this.match(
58)) {
this.checkDestructuringPrivate(a), this.toAssignable(o, !0);
let u = l ? "ForOfStatement" : "ForInStatement";
return this.checkLVal(o, {
type: u
}), this.parseForIn(t, o, r);
} else
this.checkExpressionErrors(a, !0);
return r !== null && this.unexpected(r), this.parseFor(t, o);
}
parseFunctionStatement(t, r, n) {
return this.next(), this.parseFunction(t, 1 | (n ? 2 : 0) | (r ? 8 : 0));
}
parseIfStatement(t) {
return this.next(), t.test = this.parseHeaderExpression(), t.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(), t.alternate =
this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null, this.finishNode(t, "IfStatement");
}
parseReturnStatement(t) {
return !this.prodParam.hasReturn && !(this.optionFlags & 2) && this.raise(N.IllegalReturn, this.state.startLoc), this.next(), this.isLineTerminator() ?
t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
}
parseSwitchStatement(t) {
this.next(), t.discriminant = this.parseHeaderExpression();
let r = t.cases = [];
this.expect(5), this.state.labels.push(aG), this.scope.enter(0);
let n;
for (let s; !this.match(8); )
if (this.match(61) || this.match(65)) {
let a = this.match(61);
n && this.finishNode(n, "SwitchCase"), r.push(n = this.startNode()), n.consequent = [], this.next(), a ? n.test = this.parseExpression() :
(s && this.raise(N.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), s = !0, n.test = null), this.expect(14);
} else
n ? n.consequent.push(this.parseStatementListItem()) : this.unexpected();
return this.scope.exit(), n && this.finishNode(n, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\
ment");
}
parseThrowStatement(t) {
return this.next(), this.hasPrecedingLineBreak() && this.raise(N.NewlineAfterThrow, this.state.lastTokEndLoc), t.argument = this.parseExpression(),
this.semicolon(), this.finishNode(t, "ThrowStatement");
}
parseCatchClauseParam() {
let t = this.parseBindingAtom();
return this.scope.enter(this.options.annexB && t.type === "Identifier" ? 8 : 0), this.checkLVal(t, {
type: "CatchClause"
}, 9), t;
}
parseTryStatement(t) {
if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(62)) {
let r = this.startNode();
this.next(), this.match(10) ? (this.expect(10), r.param = this.parseCatchClauseParam(), this.expect(11)) : (r.param = null, this.scope.
enter(0)), r.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(!1, !1)), this.scope.exit(), t.handler = this.finishNode(
r, "CatchClause");
}
return t.finalizer = this.eat(67) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(N.NoCatchOrFinally, t), this.finishNode(
t, "TryStatement");
}
parseVarStatement(t, r, n = !1) {
return this.next(), this.parseVar(t, !1, r, n), this.semicolon(), this.finishNode(t, "VariableDeclaration");
}
parseWhileStatement(t) {
return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(rh), t.body = this.withSmartMixTopicForbiddingContext(
() => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement");
}
parseWithStatement(t) {
return this.state.strict && this.raise(N.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body =
this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement");
}
parseEmptyStatement(t) {
return this.next(), this.finishNode(t, "EmptyStatement");
}
parseLabeledStatement(t, r, n, s) {
for (let o of this.state.labels)
o.name === r && this.raise(N.LabelRedeclaration, n, {
labelName: r
});
let a = fK(this.state.type) ? 1 : this.match(71) ? 2 : null;
for (let o = this.state.labels.length - 1; o >= 0; o--) {
let l = this.state.labels[o];
if (l.statementStart === t.start)
l.statementStart = this.sourceToOffsetPos(this.state.start), l.kind = a;
else
break;
}
return this.state.labels.push({
name: r,
kind: a,
statementStart: this.sourceToOffsetPos(this.state.start)
}), t.body = s & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label =
n, this.finishNode(t, "LabeledStatement");
}
parseExpressionStatement(t, r, n) {
return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement");
}
parseBlock(t = !1, r = !0, n) {
let s = this.startNode();
return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(s, t, !1, 8, n), r && this.
scope.exit(), this.finishNode(s, "BlockStatement");
}
isValidDirective(t) {
return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized;
}
parseBlockBody(t, r, n, s, a) {
let o = t.body = [], l = t.directives = [];
this.parseBlockOrModuleBlockBody(o, r ? l : void 0, n, s, a);
}
parseBlockOrModuleBlockBody(t, r, n, s, a) {
let o = this.state.strict, l = !1, u = !1;
for (; !this.match(s); ) {
let c = n ? this.parseModuleItem() : this.parseStatementListItem();
if (r && !u) {
if (this.isValidDirective(c)) {
let p = this.stmtToDirective(c);
r.push(p), !l && p.value.value === "use strict" && (l = !0, this.setStrict(!0));
continue;
}
u = !0, this.state.strictErrors.clear();
}
t.push(c);
}
a?.call(this, l), o || this.setStrict(!1), this.next();
}
parseFor(t, r) {
return t.init = r, this.semicolon(!1), t.test = this.match(13) ? null : this.parseExpression(), this.semicolon(!1), t.update = this.match(
11) ? null : this.parseExpression(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.
scope.exit(), this.state.labels.pop(), this.finishNode(t, "ForStatement");
}
parseForIn(t, r, n) {
let s = this.match(58);
return this.next(), s ? n !== null && this.unexpected(n) : t.await = n !== null, r.type === "VariableDeclaration" && r.declarations[0].
init != null && (!s || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") &&
this.raise(N.ForInOfLoopInitializer, r, {
type: s ? "ForInStatement" : "ForOfStatement"
}), r.type === "AssignmentPattern" && this.raise(N.InvalidLhs, r, {
ancestor: {
type: "ForStatement"
}
}), t.left = r, t.right = s ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(
() => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, s ? "ForInStatement" : "ForOfStatement");
}
parseVar(t, r, n, s = !1) {
let a = t.declarations = [];
for (t.kind = n; ; ) {
let o = this.startNode();
if (this.parseVarId(o, n), o.init = this.eat(29) ? r ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, o.
init === null && !s && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(N.DeclarationMissingInitializer,
this.state.lastTokEndLoc, {
kind: "destructuring"
}) : (n === "const" || n === "using" || n === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(N.DeclarationMissingInitializer,
this.state.lastTokEndLoc, {
kind: n
})), a.push(this.finishNode(o, "VariableDeclarator")), !this.eat(12)) break;
}
return t;
}
parseVarId(t, r) {
let n = this.parseBindingAtom();
(r === "using" || r === "await using") && (n.type === "ArrayPattern" || n.type === "ObjectPattern") && this.raise(N.UsingDeclarationHasBindingPattern,
n.loc.start), this.checkLVal(n, {
type: "VariableDeclarator"
}, r === "var" ? 5 : 8201), t.id = n;
}
parseAsyncFunctionExpression(t) {
return this.parseFunction(t, 8);
}
parseFunction(t, r = 0) {
let n = r & 2, s = !!(r & 1), a = s && !(r & 4), o = !!(r & 8);
this.initFunction(t, o), this.match(55) && (n && this.raise(N.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t.
generator = !0), s && (t.id = this.parseFunctionId(a));
let l = this.state.maybeInArrowParameters;
return this.state.maybeInArrowParameters = !1, this.scope.enter(2), this.prodParam.enter(Fl(o, t.generator)), s || (t.id = this.parseFunctionId()),
this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => {
this.parseFunctionBodyAndFinish(t, s ? "FunctionDeclaration" : "FunctionExpression");
}), this.prodParam.exit(), this.scope.exit(), s && !n && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = l, t;
}
parseFunctionId(t) {
return t || Ze(this.state.type) ? this.parseIdentifier() : null;
}
parseFunctionParams(t, r) {
this.expect(10), this.expressionScope.enter(jK()), t.params = this.parseBindingList(11, 41, 2 | (r ? 4 : 0)), this.expressionScope.exit();
}
registerFunctionStatementId(t) {
t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ?
5 : 8201 : 17, t.id.loc.start);
}
parseClass(t, r, n) {
this.next();
let s = this.state.strict;
return this.state.strict = !0, this.parseClassId(t, r, n), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, s), this.
finishNode(t, r ? "ClassDeclaration" : "ClassExpression");
}
isClassProperty() {
return this.match(29) || this.match(13) || this.match(8);
}
isClassMethod() {
return this.match(10);
}
nameIsConstructor(t) {
return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor";
}
isNonstaticConstructor(t) {
return !t.computed && !t.static && this.nameIsConstructor(t.key);
}
parseClassBody(t, r) {
this.classScope.enter();
let n = {
hadConstructor: !1,
hadSuperClass: t
}, s = [], a = this.startNode();
if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => {
for (; !this.match(8); ) {
if (this.eat(13)) {
if (s.length > 0)
throw this.raise(N.DecoratorSemicolon, this.state.lastTokEndLoc);
continue;
}
if (this.match(26)) {
s.push(this.parseDecorator());
continue;
}
let o = this.startNode();
s.length && (o.decorators = s, this.resetStartLocationFromNode(o, s[0]), s = []), this.parseClassMember(a, o, n), o.kind === "cons\
tructor" && o.decorators && o.decorators.length > 0 && this.raise(N.DecoratorConstructor, o);
}
}), this.state.strict = r, this.next(), s.length)
throw this.raise(N.TrailingDecorator, this.state.startLoc);
return this.classScope.exit(), this.finishNode(a, "ClassBody");
}
parseClassMemberFromModifier(t, r) {
let n = this.parseIdentifier(!0);
if (this.isClassMethod()) {
let s = r;
return s.kind = "method", s.computed = !1, s.key = n, s.static = !1, this.pushClassMethod(t, s, !1, !1, !1, !1), !0;
} else if (this.isClassProperty()) {
let s = r;
return s.computed = !1, s.key = n, s.static = !1, t.body.push(this.parseClassProperty(s)), !0;
}
return this.resetPreviousNodeTrailingComments(n), !1;
}
parseClassMember(t, r, n) {
let s = this.isContextual(106);
if (s) {
if (this.parseClassMemberFromModifier(t, r))
return;
if (this.eat(5)) {
this.parseClassStaticBlock(t, r);
return;
}
}
this.parseClassMemberWithIsStatic(t, r, n, s);
}
parseClassMemberWithIsStatic(t, r, n, s) {
let a = r, o = r, l = r, u = r, c = r, p = a, f = a;
if (r.static = s, this.parsePropertyNamePrefixOperator(r), this.eat(55)) {
p.kind = "method";
let C = this.match(139);
if (this.parseClassElementName(p), C) {
this.pushClassPrivateMethod(t, o, !0, !1);
return;
}
this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1);
return;
}
let h = !this.state.containsEsc && Ze(this.state.type), y = this.parseClassElementName(r), E = h ? y.name : null, d = this.isPrivateName(
y), g = this.state.startLoc;
if (this.parsePostMemberNameModifiers(f), this.isClassMethod()) {
if (p.kind = "method", d) {
this.pushClassPrivateMethod(t, o, !1, !1);
return;
}
let C = this.isNonstaticConstructor(a), _ = !1;
C && (a.kind = "constructor", n.hadConstructor && !this.hasPlugin("typescript") && this.raise(N.DuplicateConstructor, y), C && this.
hasPlugin("typescript") && r.override && this.raise(N.OverrideOnConstructor, y), n.hadConstructor = !0, _ = n.hadSuperClass), this.pushClassMethod(
t, a, !1, !1, C, _);
} else if (this.isClassProperty())
d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l);
else if (E === "async" && !this.isLineTerminator()) {
this.resetPreviousNodeTrailingComments(y);
let C = this.eat(55);
f.optional && this.unexpected(g), p.kind = "method";
let _ = this.match(139);
this.parseClassElementName(p), this.parsePostMemberNameModifiers(f), _ ? this.pushClassPrivateMethod(t, o, C, !0) : (this.isNonstaticConstructor(
a) && this.raise(N.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, C, !0, !1, !1));
} else if ((E === "get" || E === "set") && !(this.match(55) && this.isLineTerminator())) {
this.resetPreviousNodeTrailingComments(y), p.kind = E;
let C = this.match(139);
this.parseClassElementName(a), C ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsAccessor,
a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a);
} else if (E === "accessor" && !this.isLineTerminator()) {
this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(y);
let C = this.match(139);
this.parseClassElementName(l), this.pushClassAccessorProperty(t, c, C);
} else this.isLineTerminator() ? d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l) : this.unexpected();
}
parseClassElementName(t) {
let {
type: r,
value: n
} = this.state;
if ((r === 132 || r === 134) && t.static && n === "prototype" && this.raise(N.StaticPrototype, this.state.startLoc), r === 139) {
n === "constructor" && this.raise(N.ConstructorClassPrivateField, this.state.startLoc);
let s = this.parsePrivateName();
return t.key = s, s;
}
return this.parsePropertyName(t), t.key;
}
parseClassStaticBlock(t, r) {
var n;
this.scope.enter(208);
let s = this.state.labels;
this.state.labels = [], this.prodParam.enter(0);
let a = r.body = [];
this.parseBlockOrModuleBlockBody(a, void 0, !1, 8), this.prodParam.exit(), this.scope.exit(), this.state.labels = s, t.body.push(this.
finishNode(r, "StaticBlock")), (n = r.decorators) != null && n.length && this.raise(N.DecoratorStaticBlock, r);
}
pushClassProperty(t, r) {
!r.computed && this.nameIsConstructor(r.key) && this.raise(N.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r));
}
pushClassPrivateProperty(t, r) {
let n = this.parseClassPrivateProperty(r);
t.body.push(n), this.classScope.declarePrivateName(this.getPrivateNameSV(n.key), 0, n.key.loc.start);
}
pushClassAccessorProperty(t, r, n) {
!n && !r.computed && this.nameIsConstructor(r.key) && this.raise(N.ConstructorClassField, r.key);
let s = this.parseClassAccessorProperty(r);
t.body.push(s), n && this.classScope.declarePrivateName(this.getPrivateNameSV(s.key), 0, s.key.loc.start);
}
pushClassMethod(t, r, n, s, a, o) {
t.body.push(this.parseMethod(r, n, s, a, o, "ClassMethod", !0));
}
pushClassPrivateMethod(t, r, n, s) {
let a = this.parseMethod(r, n, s, !1, !1, "ClassPrivateMethod", !0);
t.body.push(a);
let o = a.kind === "get" ? a.static ? 6 : 2 : a.kind === "set" ? a.static ? 5 : 1 : 0;
this.declareClassPrivateMethodInScope(a, o);
}
declareClassPrivateMethodInScope(t, r) {
this.classScope.declarePrivateName(this.getPrivateNameSV(t.key), r, t.key.loc.start);
}
parsePostMemberNameModifiers(t) {
}
parseClassPrivateProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassPrivateProperty");
}
parseClassProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassProperty");
}
parseClassAccessorProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassAccessorProperty");
}
parseInitializer(t) {
this.scope.enter(80), this.expressionScope.enter(ZT()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() :
null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit();
}
parseClassId(t, r, n, s = 8331) {
if (Ze(this.state.type))
t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, s);
else if (n || !r)
t.id = null;
else
throw this.raise(N.MissingClassName, this.state.startLoc);
}
parseClassSuper(t) {
t.superClass = this.eat(81) ? this.parseExprSubscripts() : null;
}
parseExport(t, r) {
let n = this.parseMaybeImportPhase(t, !0), s = this.maybeParseExportDefaultSpecifier(t, n), a = !s || this.eat(12), o = a && this.eatExportStar(
t), l = o && this.maybeParseExportNamespaceSpecifier(t), u = a && (!l || this.eat(12)), c = s || o;
if (o && !l) {
if (s && this.unexpected(), r)
throw this.raise(N.UnsupportedDecoratorExport, t);
return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration");
}
let p = this.maybeParseExportNamedSpecifiers(t);
s && a && !o && !p && this.unexpected(null, 5), l && u && this.unexpected(null, 98);
let f;
if (c || p) {
if (f = !1, r)
throw this.raise(N.UnsupportedDecoratorExport, t);
this.parseExportFrom(t, c);
} else
f = this.maybeParseExportDeclaration(t);
if (c || p || f) {
var h;
let y = t;
if (this.checkExport(y, !0, !1, !!y.source), ((h = y.declaration) == null ? void 0 : h.type) === "ClassDeclaration")
this.maybeTakeDecorators(r, y.declaration, y);
else if (r)
throw this.raise(N.UnsupportedDecoratorExport, t);
return this.sawUnambiguousESM = !0, this.finishNode(y, "ExportNamedDeclaration");
}
if (this.eat(65)) {
let y = t, E = this.parseExportDefaultExpression();
if (y.declaration = E, E.type === "ClassDeclaration")
this.maybeTakeDecorators(r, E, y);
else if (r)
throw this.raise(N.UnsupportedDecoratorExport, t);
return this.checkExport(y, !0, !0), this.sawUnambiguousESM = !0, this.finishNode(y, "ExportDefaultDeclaration");
}
this.unexpected(null, 5);
}
eatExportStar(t) {
return this.eat(55);
}
maybeParseExportDefaultSpecifier(t, r) {
if (r || this.isExportDefaultSpecifier()) {
this.expectPlugin("exportDefaultFrom", r?.loc.start);
let n = r || this.parseIdentifier(!0), s = this.startNodeAtNode(n);
return s.exported = n, t.specifiers = [this.finishNode(s, "ExportDefaultSpecifier")], !0;
}
return !1;
}
maybeParseExportNamespaceSpecifier(t) {
if (this.isContextual(93)) {
var r, n;
(n = (r = t).specifiers) != null || (r.specifiers = []);
let s = this.startNodeAt(this.state.lastTokStartLoc);
return this.next(), s.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(s, "ExportNamespaceSpecifier")), !0;
}
return !1;
}
maybeParseExportNamedSpecifiers(t) {
if (this.match(5)) {
let r = t;
r.specifiers || (r.specifiers = []);
let n = r.exportKind === "type";
return r.specifiers.push(...this.parseExportSpecifiers(n)), r.source = null, this.hasPlugin("importAssertions") ? r.assertions = [] :
r.attributes = [], r.declaration = null, !0;
}
return !1;
}
maybeParseExportDeclaration(t) {
return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") ? t.assertions = [] :
t.attributes = [], t.declaration = this.parseExportDeclaration(t), !0) : !1;
}
isAsyncFunction() {
if (!this.isContextual(95)) return !1;
let t = this.nextTokenInLineStart();
return this.isUnparsedContextual(t, "function");
}
parseExportDefaultExpression() {
let t = this.startNode();
if (this.match(68))
return this.next(), this.parseFunction(t, 5);
if (this.isAsyncFunction())
return this.next(), this.next(), this.parseFunction(t, 13);
if (this.match(80))
return this.parseClass(t, !0, !0);
if (this.match(26))
return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(N.DecoratorBeforeExport,
this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0);
if (this.match(75) || this.match(74) || this.isLet())
throw this.raise(N.UnsupportedDefaultExport, this.state.startLoc);
let r = this.parseMaybeAssignAllowIn();
return this.semicolon(), r;
}
parseExportDeclaration(t) {
return this.match(80) ? this.parseClass(this.startNode(), !0, !1) : this.parseStatementListItem();
}
isExportDefaultSpecifier() {
let {
type: t
} = this.state;
if (Ze(t)) {
if (t === 95 && !this.state.containsEsc || t === 100)
return !1;
if ((t === 130 || t === 129) && !this.state.containsEsc) {
let {
type: s
} = this.lookahead();
if (Ze(s) && s !== 98 || s === 5)
return this.expectOnePlugin(["flow", "typescript"]), !1;
}
} else if (!this.match(65))
return !1;
let r = this.nextTokenStart(), n = this.isUnparsedContextual(r, "from");
if (this.input.charCodeAt(r) === 44 || Ze(this.state.type) && n)
return !0;
if (this.match(65) && n) {
let s = this.input.charCodeAt(this.nextTokenStartSince(r + 4));
return s === 34 || s === 39;
}
return !1;
}
parseExportFrom(t, r) {
this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport(
t)) : r && this.unexpected(), this.semicolon();
}
shouldParseExportDeclaration() {
let {
type: t
} = this.state;
return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("\
decorators", "decoratorsBeforeExport") === !0 && this.raise(N.DecoratorBeforeExport, this.state.startLoc), !0) : this.isContextual(107) ? (this.
raise(N.UsingDeclarationExport, this.state.startLoc), !0) : this.isContextual(96) && this.startsAwaitUsing() ? (this.raise(N.UsingDeclarationExport,
this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction();
}
checkExport(t, r, n, s) {
if (r) {
var a;
if (n) {
if (this.checkDuplicateExports(t, "default"), this.hasPlugin("exportDefaultFrom")) {
var o;
let l = t.declaration;
l.type === "Identifier" && l.name === "from" && l.end - l.start === 4 && !((o = l.extra) != null && o.parenthesized) && this.raise(
N.ExportDefaultFromAsIdentifier, l);
}
} else if ((a = t.specifiers) != null && a.length)
for (let l of t.specifiers) {
let {
exported: u
} = l, c = u.type === "Identifier" ? u.name : u.value;
if (this.checkDuplicateExports(l, c), !s && l.local) {
let {
local: p
} = l;
p.type !== "Identifier" ? this.raise(N.ExportBindingIsString, l, {
localName: p.value,
exportName: c
}) : (this.checkReservedWord(p.name, p.loc.start, !0, !1), this.scope.checkLocalExport(p));
}
}
else if (t.declaration) {
let l = t.declaration;
if (l.type === "FunctionDeclaration" || l.type === "ClassDeclaration") {
let {
id: u
} = l;
if (!u) throw new Error("Assertion failure");
this.checkDuplicateExports(t, u.name);
} else if (l.type === "VariableDeclaration")
for (let u of l.declarations)
this.checkDeclaration(u.id);
}
}
}
checkDeclaration(t) {
if (t.type === "Identifier")
this.checkDuplicateExports(t, t.name);
else if (t.type === "ObjectPattern")
for (let r of t.properties)
this.checkDeclaration(r);
else if (t.type === "ArrayPattern")
for (let r of t.elements)
r && this.checkDeclaration(r);
else t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type ===
"AssignmentPattern" && this.checkDeclaration(t.left);
}
checkDuplicateExports(t, r) {
this.exportedIdentifiers.has(r) && (r === "default" ? this.raise(N.DuplicateDefaultExport, t) : this.raise(N.DuplicateExport, t, {
exportName: r
})), this.exportedIdentifiers.add(r);
}
parseExportSpecifiers(t) {
let r = [], n = !0;
for (this.expect(5); !this.eat(8); ) {
if (n)
n = !1;
else if (this.expect(12), this.eat(8)) break;
let s = this.isContextual(130), a = this.match(134), o = this.startNode();
o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, s));
}
return r;
}
parseExportSpecifier(t, r, n, s) {
return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : r ? t.exported = qK(t.local) : t.exported || (t.exported =
In(t.local)), this.finishNode(t, "ExportSpecifier");
}
parseModuleExportName() {
if (this.match(134)) {
let t = this.parseStringLiteral(this.state.value), r = oG.exec(t.value);
return r && this.raise(N.ModuleExportNameHasLoneSurrogate, t, {
surrogateCharCode: r[0].charCodeAt(0)
}), t;
}
return this.parseIdentifier(!0);
}
isJSONModuleImport(t) {
return t.assertions != null ? t.assertions.some(({
key: r,
value: n
}) => n.value === "json" && (r.type === "Identifier" ? r.name === "type" : r.value === "type")) : !1;
}
checkImportReflection(t) {
let {
specifiers: r
} = t, n = r.length === 1 ? r[0].type : null;
if (t.phase === "source")
n !== "ImportDefaultSpecifier" && this.raise(N.SourcePhaseImportRequiresDefault, r[0].loc.start);
else if (t.phase === "defer")
n !== "ImportNamespaceSpecifier" && this.raise(N.DeferImportRequiresNamespace, r[0].loc.start);
else if (t.module) {
var s;
n !== "ImportDefaultSpecifier" && this.raise(N.ImportReflectionNotBinding, r[0].loc.start), ((s = t.assertions) == null ? void 0 : s.
length) > 0 && this.raise(N.ImportReflectionHasAssertion, r[0].loc.start);
}
}
checkJSONModuleImport(t) {
if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") {
let {
specifiers: r
} = t;
if (r != null) {
let n = r.find((s) => {
let a;
if (s.type === "ExportSpecifier" ? a = s.local : s.type === "ImportSpecifier" && (a = s.imported), a !== void 0)
return a.type === "Identifier" ? a.name !== "default" : a.value !== "default";
});
n !== void 0 && this.raise(N.ImportJSONBindingNotDefault, n.loc.start);
}
}
}
isPotentialImportPhase(t) {
return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127);
}
applyImportPhase(t, r, n, s) {
r || (n === "module" ? (this.expectPlugin("importReflection", s), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1),
n === "source" ? (this.expectPlugin("sourcePhaseImports", s), t.phase = "source") : n === "defer" ? (this.expectPlugin("deferredImport\
Evaluation", s), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null));
}
parseMaybeImportPhase(t, r) {
if (!this.isPotentialImportPhase(r))
return this.applyImportPhase(t, r, null), null;
let n = this.parseIdentifier(!0), {
type: s
} = this.state;
return (Wr(s) ? s !== 98 || this.lookaheadCharCode() === 102 : s !== 12) ? (this.resetPreviousIdentifierLeadingComments(n), this.applyImportPhase(
t, r, n.name, n.loc.start), null) : (this.applyImportPhase(t, r, null), n);
}
isPrecedingIdImportPhase(t) {
let {
type: r
} = this.state;
return Ze(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12;
}
parseImport(t) {
return this.match(134) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, !1));
}
parseImportSpecifiersAndAfter(t, r) {
t.specifiers = [];
let s = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = s && this.maybeParseStarImportSpecifier(t);
return s && !a && this.parseNamedImportSpecifiers(t), this.expectContextual(98), this.parseImportSourceAndAttributes(t);
}
parseImportSourceAndAttributes(t) {
var r;
return (r = t.specifiers) != null || (t.specifiers = []), t.source = this.parseImportSource(), this.maybeParseImportAttributes(t), this.
checkImportReflection(t), this.checkJSONModuleImport(t), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(t, "ImportDecl\
aration");
}
parseImportSource() {
return this.match(134) || this.unexpected(), this.parseExprAtom();
}
parseImportSpecifierLocal(t, r, n) {
r.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(r, n));
}
finishImportSpecifier(t, r, n = 8201) {
return this.checkLVal(t.local, {
type: r
}, n), this.finishNode(t, r);
}
parseImportAttributes() {
this.expect(5);
let t = [], r = /* @__PURE__ */ new Set();
do {
if (this.match(8))
break;
let n = this.startNode(), s = this.state.value;
if (r.has(s) && this.raise(N.ModuleAttributesWithDuplicateKeys, this.state.startLoc, {
key: s
}), r.add(s), this.match(134) ? n.key = this.parseStringLiteral(s) : n.key = this.parseIdentifier(!0), this.expect(14), !this.match(
134))
throw this.raise(N.ModuleAttributeInvalidValue, this.state.startLoc);
n.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(n, "ImportAttribute"));
} while (this.eat(12));
return this.expect(8), t;
}
parseModuleAttributes() {
let t = [], r = /* @__PURE__ */ new Set();
do {
let n = this.startNode();
if (n.key = this.parseIdentifier(!0), n.key.name !== "type" && this.raise(N.ModuleAttributeDifferentFromType, n.key), r.has(n.key.name) &&
this.raise(N.ModuleAttributesWithDuplicateKeys, n.key, {
key: n.key.name
}), r.add(n.key.name), this.expect(14), !this.match(134))
throw this.raise(N.ModuleAttributeInvalidValue, this.state.startLoc);
n.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(n, "ImportAttribute"));
} while (this.eat(12));
return t;
}
maybeParseImportAttributes(t) {
let r;
var n = !1;
if (this.match(76)) {
if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40)
return;
this.next(), this.hasPlugin("moduleAttributes") ? (r = this.parseModuleAttributes(), this.addExtra(t, "deprecatedWithLegacySyntax", !0)) :
r = this.parseImportAttributes(), n = !0;
} else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importA\
ssertions") && this.raise(N.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "depreca\
tedAssertSyntax", !0), this.next(), r = this.parseImportAttributes()) : r = [];
!n && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r;
}
maybeParseDefaultImportSpecifier(t, r) {
if (r) {
let n = this.startNodeAtNode(r);
return n.local = r, t.specifiers.push(this.finishImportSpecifier(n, "ImportDefaultSpecifier")), !0;
} else if (Wr(this.state.type))
return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0;
return !1;
}
maybeParseStarImportSpecifier(t) {
if (this.match(55)) {
let r = this.startNode();
return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, r, "ImportNamespaceSpecifier"), !0;
}
return !1;
}
parseNamedImportSpecifiers(t) {
let r = !0;
for (this.expect(5); !this.eat(8); ) {
if (r)
r = !1;
else {
if (this.eat(14))
throw this.raise(N.DestructureNamedImport, this.state.startLoc);
if (this.expect(12), this.eat(8)) break;
}
let n = this.startNode(), s = this.match(134), a = this.isContextual(130);
n.imported = this.parseModuleExportName();
let o = this.parseImportSpecifier(n, s, t.importKind === "type" || t.importKind === "typeof", a, void 0);
t.specifiers.push(o);
}
}
parseImportSpecifier(t, r, n, s, a) {
if (this.eatContextual(93))
t.local = this.parseIdentifier();
else {
let {
imported: o
} = t;
if (r)
throw this.raise(N.ImportBindingIsString, t, {
importName: o.value
});
this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = In(o));
}
return this.finishImportSpecifier(t, "ImportSpecifier", a);
}
isThisParam(t) {
return t.type === "Identifier" && t.name === "this";
}
}, Rl = class extends xh {
static {
i(this, "Parser");
}
constructor(t, r, n) {
t = sK(t), super(t, r), this.options = t, this.initializeScopes(), this.plugins = n, this.filename = t.sourceFilename, this.startIndex =
t.startIndex;
let s = 0;
t.allowAwaitOutsideFunction && (s |= 1), t.allowReturnOutsideFunction && (s |= 2), t.allowImportExportEverywhere && (s |= 8), t.allowSuperOutsideMethod &&
(s |= 16), t.allowUndeclaredExports && (s |= 64), t.allowNewTargetOutsideFunction && (s |= 4), t.allowYieldOutsideFunction && (s |= 32),
t.ranges && (s |= 128), t.tokens && (s |= 256), t.createImportExpressions && (s |= 512), t.createParenthesizedExpressions && (s |= 1024),
t.errorRecovery && (s |= 2048), t.attachComment && (s |= 4096), t.annexB && (s |= 8192), this.optionFlags = s;
}
getScopeHandler() {
return Ga;
}
parse() {
this.enterInitialScopes();
let t = this.startNode(), r = this.startNode();
return this.nextToken(), t.errors = null, this.parseTopLevel(t, r), t.errors = this.state.errors, t.comments.length = this.state.commentsLen,
t;
}
};
function uG(e, t) {
var r;
if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") {
t = Object.assign({}, t);
try {
t.sourceType = "module";
let n = $a(t, e), s = n.parse();
if (n.sawUnambiguousESM)
return s;
if (n.ambiguousScriptDifferentAst)
try {
return t.sourceType = "script", $a(t, e).parse();
} catch {
}
else
s.program.sourceType = "script";
return s;
} catch (n) {
try {
return t.sourceType = "script", $a(t, e).parse();
} catch {
}
throw n;
}
} else
return $a(t, e).parse();
}
i(uG, "parse");
function cG(e, t) {
let r = $a(t, e);
return r.options.strictMode && (r.state.strict = !0), r.getExpression();
}
i(cG, "parseExpression");
function pG(e) {
let t = {};
for (let r of Object.keys(e))
t[r] = An(e[r]);
return t;
}
i(pG, "generateExportedTokenTypes");
var fG = pG(lK);
function $a(e, t) {
let r = Rl, n = /* @__PURE__ */ new Map();
if (e != null && e.plugins) {
for (let s of e.plugins) {
let a, o;
typeof s == "string" ? a = s : [a, o] = s, n.has(a) || n.set(a, o || {});
}
sG(n), r = dG(n);
}
return new r(e, t, n);
}
i($a, "getParser");
var VT = /* @__PURE__ */ new Map();
function dG(e) {
let t = [];
for (let s of iG)
e.has(s) && t.push(s);
let r = t.join("|"), n = VT.get(r);
if (!n) {
n = Rl;
for (let s of t)
n = nS[s](n);
VT.set(r, n);
}
return n;
}
i(dG, "getParserClass");
Ya.parse = uG;
Ya.parseExpression = cG;
Ya.tokTypes = fG;
});
// ../node_modules/picocolors/picocolors.js
var aS = P((axe, Bh) => {
var Ul = process || {}, sS = Ul.argv || [], ql = Ul.env || {}, hG = !(ql.NO_COLOR || sS.includes("--no-color")) && (!!ql.FORCE_COLOR || sS.
includes("--color") || Ul.platform === "win32" || (Ul.stdout || {}).isTTY && ql.TERM !== "dumb" || !!ql.CI), mG = /* @__PURE__ */ i((e, t, r = e) => (n) => {
let s = "" + n, a = s.indexOf(t, e.length);
return ~a ? e + yG(s, t, r, a) + t : e + s + t;
}, "formatter"), yG = /* @__PURE__ */ i((e, t, r, n) => {
let s = "", a = 0;
do
s += e.substring(a, n) + r, a = n + t.length, n = e.indexOf(t, a);
while (~n);
return s + e.substring(a);
}, "replaceClose"), iS = /* @__PURE__ */ i((e = hG) => {
let t = e ? mG : () => String;
return {
isColorSupported: e,
reset: t("\x1B[0m", "\x1B[0m"),
bold: t("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
dim: t("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
italic: t("\x1B[3m", "\x1B[23m"),
underline: t("\x1B[4m", "\x1B[24m"),
inverse: t("\x1B[7m", "\x1B[27m"),
hidden: t("\x1B[8m", "\x1B[28m"),
strikethrough: t("\x1B[9m", "\x1B[29m"),
black: t("\x1B[30m", "\x1B[39m"),
red: t("\x1B[31m", "\x1B[39m"),
green: t("\x1B[32m", "\x1B[39m"),
yellow: t("\x1B[33m", "\x1B[39m"),
blue: t("\x1B[34m", "\x1B[39m"),
magenta: t("\x1B[35m", "\x1B[39m"),
cyan: t("\x1B[36m", "\x1B[39m"),
white: t("\x1B[37m", "\x1B[39m"),
gray: t("\x1B[90m", "\x1B[39m"),
bgBlack: t("\x1B[40m", "\x1B[49m"),
bgRed: t("\x1B[41m", "\x1B[49m"),
bgGreen: t("\x1B[42m", "\x1B[49m"),
bgYellow: t("\x1B[43m", "\x1B[49m"),
bgBlue: t("\x1B[44m", "\x1B[49m"),
bgMagenta: t("\x1B[45m", "\x1B[49m"),
bgCyan: t("\x1B[46m", "\x1B[49m"),
bgWhite: t("\x1B[47m", "\x1B[49m"),
blackBright: t("\x1B[90m", "\x1B[39m"),
redBright: t("\x1B[91m", "\x1B[39m"),
greenBright: t("\x1B[92m", "\x1B[39m"),
yellowBright: t("\x1B[93m", "\x1B[39m"),
blueBright: t("\x1B[94m", "\x1B[39m"),
magentaBright: t("\x1B[95m", "\x1B[39m"),
cyanBright: t("\x1B[96m", "\x1B[39m"),
whiteBright: t("\x1B[97m", "\x1B[39m"),
bgBlackBright: t("\x1B[100m", "\x1B[49m"),
bgRedBright: t("\x1B[101m", "\x1B[49m"),
bgGreenBright: t("\x1B[102m", "\x1B[49m"),
bgYellowBright: t("\x1B[103m", "\x1B[49m"),
bgBlueBright: t("\x1B[104m", "\x1B[49m"),
bgMagentaBright: t("\x1B[105m", "\x1B[49m"),
bgCyanBright: t("\x1B[106m", "\x1B[49m"),
bgWhiteBright: t("\x1B[107m", "\x1B[49m")
};
}, "createColors");
Bh.exports = iS();
Bh.exports.createColors = iS;
});
// ../node_modules/js-tokens/index.js
var oS = P((Vl) => {
Object.defineProperty(Vl, "__esModule", {
value: !0
});
Vl.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
Vl.matchToToken = function(e) {
var t = { type: "invalid", value: e[0], closed: void 0 };
return e[1] ? (t.type = "string", t.closed = !!(e[3] || e[4])) : e[5] ? t.type = "comment" : e[6] ? (t.type = "comment", t.closed = !!e[7]) :
e[8] ? t.type = "regex" : e[9] ? t.type = "number" : e[10] ? t.type = "name" : e[11] ? t.type = "punctuator" : e[12] && (t.type = "white\
space"), t;
};
});
// ../node_modules/@babel/code-frame/lib/index.js
var Xa = P((Ja) => {
"use strict";
Object.defineProperty(Ja, "__esModule", { value: !0 });
var kh = aS(), lS = oS(), uS = Ei();
function gG() {
return typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? !1 : kh.isColorSupported;
}
i(gG, "isColorSupported");
var $l = /* @__PURE__ */ i((e, t) => (r) => e(t(r)), "compose");
function fS(e) {
return {
keyword: e.cyan,
capitalized: e.yellow,
jsxIdentifier: e.yellow,
punctuator: e.yellow,
number: e.magenta,
string: e.green,
regex: e.magenta,
comment: e.gray,
invalid: $l($l(e.white, e.bgRed), e.bold),
gutter: e.gray,
marker: $l(e.red, e.bold),
message: $l(e.red, e.bold),
reset: e.reset
};
}
i(fS, "buildDefs");
var bG = fS(kh.createColors(!0)), EG = fS(kh.createColors(!1));
function dS(e) {
return e ? bG : EG;
}
i(dS, "getDefs");
var TG = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]), SG = /\r\n|[\n\r\u2028\u2029]/, xG = /^[()[\]{}]$/, hS;
{
let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ i(function(r, n, s) {
if (r.type === "name") {
if (uS.isKeyword(r.value) || uS.isStrictReservedWord(r.value, !0) || TG.has(r.value))
return "keyword";
if (e.test(r.value) && (s[n - 1] === "<" || s.slice(n - 2, n) === ""))
return "jsxIdentifier";
if (r.value[0] !== r.value[0].toLowerCase())
return "capitalized";
}
return r.type === "punctuator" && xG.test(r.value) ? "bracket" : r.type === "invalid" && (r.value === "@" || r.value === "#") ? "punct\
uator" : r.type;
}, "getTokenType");
hS = /* @__PURE__ */ i(function* (r) {
let n;
for (; n = lS.default.exec(r); ) {
let s = lS.matchToToken(n);
yield {
type: t(s, n.index, r),
value: s.value
};
}
}, "tokenize");
}
function mS(e) {
if (e === "") return "";
let t = dS(!0), r = "";
for (let {
type: n,
value: s
} of hS(e))
n in t ? r += s.split(SG).map((a) => t[n](a)).join(`
`) : r += s;
return r;
}
i(mS, "highlight");
var cS = !1, pS = /\r\n|[\n\r\u2028\u2029]/;
function vG(e, t, r) {
let n = Object.assign({
column: 0,
line: -1
}, e.start), s = Object.assign({}, n, e.end), {
linesAbove: a = 2,
linesBelow: o = 3
} = r || {}, l = n.line, u = n.column, c = s.line, p = s.column, f = Math.max(l - (a + 1), 0), h = Math.min(t.length, c + o);
l === -1 && (f = 0), c === -1 && (h = t.length);
let y = c - l, E = {};
if (y)
for (let d = 0; d <= y; d++) {
let g = d + l;
if (!u)
E[g] = !0;
else if (d === 0) {
let C = t[g - 1].length;
E[g] = [u, C - u + 1];
} else if (d === y)
E[g] = [0, p];
else {
let C = t[g - d].length;
E[g] = [0, C];
}
}
else
u === p ? u ? E[l] = [u, 0] : E[l] = !0 : E[l] = [u, p - u];
return {
start: f,
end: h,
markerLines: E
};
}
i(vG, "getMarkerLines");
function yS(e, t, r = {}) {
let n = r.forceColor || gG() && r.highlightCode, s = dS(n), a = e.split(pS), {
start: o,
end: l,
markerLines: u
} = vG(t, a, r), c = t.start && typeof t.start.column == "number", p = String(l).length, h = (n ? mS(e) : e).split(pS, l).slice(o, l).map(
(y, E) => {
let d = o + 1 + E, C = ` ${` ${d}`.slice(-p)} |`, _ = u[d], O = !u[d + 1];
if (_) {
let B = "";
if (Array.isArray(_)) {
let R = y.slice(0, Math.max(_[0] - 1, 0)).replace(/[^\t]/g, " "), $ = _[1] || 1;
B = [`
`, s.gutter(C.replace(/\d/g, " ")), " ", R, s.marker("^").repeat($)].join(""), O && r.message && (B += " " + s.message(r.message));
}
return [s.marker(">"), s.gutter(C), y.length > 0 ? ` ${y}` : "", B].join("");
} else
return ` ${s.gutter(C)}${y.length > 0 ? ` ${y}` : ""}`;
}).join(`
`);
return r.message && !c && (h = `${" ".repeat(p + 1)}${r.message}
${h}`), n ? s.reset(h) : h;
}
i(yS, "codeFrameColumns");
function PG(e, t, r, n = {}) {
if (!cS) {
cS = !0;
let a = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
if (process.emitWarning)
process.emitWarning(a, "DeprecationWarning");
else {
let o = new Error(a);
o.name = "DeprecationWarning", console.warn(new Error(a));
}
}
return r = Math.max(r, 0), yS(e, {
start: {
column: r,
line: t
}
}, n);
}
i(PG, "index");
Ja.codeFrameColumns = yS;
Ja.default = PG;
Ja.highlight = mS;
});
// ../node_modules/@babel/template/lib/parse.js
var jh = P((Fh) => {
"use strict";
Object.defineProperty(Fh, "__esModule", {
value: !0
});
Fh.default = MG;
var AG = Ce(), CG = Ms(), DG = Xa(), {
isCallExpression: wG,
isExpressionStatement: IG,
isFunction: _G,
isIdentifier: OG,
isJSXIdentifier: NG,
isNewExpression: BG,
isPlaceholder: Wl,
isStatement: kG,
isStringLiteral: gS,
removePropertiesDeep: FG,
traverse: jG
} = AG, LG = /^[_$A-Z0-9]+$/;
function MG(e, t, r) {
let {
placeholderWhitelist: n,
placeholderPattern: s,
preserveComments: a,
syntacticPlaceholders: o
} = r, l = UG(t, r.parser, o);
FG(l, {
preserveComments: a
}), e.validate(l);
let u = {
syntactic: {
placeholders: [],
placeholderNames: /* @__PURE__ */ new Set()
},
legacy: {
placeholders: [],
placeholderNames: /* @__PURE__ */ new Set()
},
placeholderWhitelist: n,
placeholderPattern: s,
syntacticPlaceholders: o
};
return jG(l, RG, u), Object.assign({
ast: l
}, u.syntactic.placeholders.length ? u.syntactic : u.legacy);
}
i(MG, "parseAndBuildMetadata");
function RG(e, t, r) {
var n;
let s, a = r.syntactic.placeholders.length > 0;
if (Wl(e)) {
if (r.syntacticPlaceholders === !1)
throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");
s = e.name.name, a = !0;
} else {
if (a || r.syntacticPlaceholders)
return;
if (OG(e) || NG(e))
s = e.name;
else if (gS(e))
s = e.value;
else
return;
}
if (a && (r.placeholderPattern != null || r.placeholderWhitelist != null))
throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");
if (!a && (r.placeholderPattern === !1 || !(r.placeholderPattern || LG).test(s)) && !((n = r.placeholderWhitelist) != null && n.has(s)))
return;
t = t.slice();
let {
node: o,
key: l
} = t[t.length - 1], u;
gS(e) || Wl(e, {
expectedNode: "StringLiteral"
}) ? u = "string" : BG(o) && l === "arguments" || wG(o) && l === "arguments" || _G(o) && l === "params" ? u = "param" : IG(o) && !Wl(e) ?
(u = "statement", t = t.slice(0, -1)) : kG(e) && Wl(e) ? u = "statement" : u = "other";
let {
placeholders: c,
placeholderNames: p
} = a ? r.syntactic : r.legacy;
c.push({
name: s,
type: u,
resolve: /* @__PURE__ */ i((f) => qG(f, t), "resolve"),
isDuplicate: p.has(s)
}), p.add(s);
}
i(RG, "placeholderVisitorHandler");
function qG(e, t) {
let r = e;
for (let a = 0; a < t.length - 1; a++) {
let {
key: o,
index: l
} = t[a];
l === void 0 ? r = r[o] : r = r[o][l];
}
let {
key: n,
index: s
} = t[t.length - 1];
return {
parent: r,
key: n,
index: s
};
}
i(qG, "resolveAncestors");
function UG(e, t, r) {
let n = (t.plugins || []).slice();
r !== !1 && n.push("placeholders"), t = Object.assign({
allowAwaitOutsideFunction: !0,
allowReturnOutsideFunction: !0,
allowNewTargetOutsideFunction: !0,
allowSuperOutsideMethod: !0,
allowYieldOutsideFunction: !0,
sourceType: "module"
}, t, {
plugins: n
});
try {
return (0, CG.parse)(e, t);
} catch (s) {
let a = s.loc;
throw a && (s.message += `
` + (0, DG.codeFrameColumns)(e, {
start: a
}), s.code = "BABEL_TEMPLATE_PARSE_ERROR"), s;
}
}
i(UG, "parseWithCodeFrame");
});
// ../node_modules/@babel/template/lib/populate.js
var qh = P((Rh) => {
"use strict";
Object.defineProperty(Rh, "__esModule", {
value: !0
});
Rh.default = HG;
var VG = Ce(), {
blockStatement: $G,
cloneNode: Mh,
emptyStatement: WG,
expressionStatement: Lh,
identifier: Kl,
isStatement: bS,
isStringLiteral: KG,
stringLiteral: GG,
validate: ES
} = VG;
function HG(e, t) {
let r = Mh(e.ast);
return t && (e.placeholders.forEach((n) => {
if (!hasOwnProperty.call(t, n.name)) {
let s = n.name;
throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
- { placeholderPattern: /^${s}$/ }`);
}
}), Object.keys(t).forEach((n) => {
if (!e.placeholderNames.has(n))
throw new Error(`Unknown substitution "${n}" given`);
})), e.placeholders.slice().reverse().forEach((n) => {
try {
YG(n, r, t && t[n.name] || null);
} catch (s) {
throw s.message = `@babel/template placeholder "${n.name}": ${s.message}`, s;
}
}), r;
}
i(HG, "populatePlaceholders");
function YG(e, t, r) {
e.isDuplicate && (Array.isArray(r) ? r = r.map((l) => Mh(l)) : typeof r == "object" && (r = Mh(r)));
let {
parent: n,
key: s,
index: a
} = e.resolve(t);
if (e.type === "string") {
if (typeof r == "string" && (r = GG(r)), !r || !KG(r))
throw new Error("Expected string substitution");
} else if (e.type === "statement")
a === void 0 ? r ? Array.isArray(r) ? r = $G(r) : typeof r == "string" ? r = Lh(Kl(r)) : bS(r) || (r = Lh(r)) : r = WG() : r && !Array.
isArray(r) && (typeof r == "string" && (r = Kl(r)), bS(r) || (r = Lh(r)));
else if (e.type === "param") {
if (typeof r == "string" && (r = Kl(r)), a === void 0) throw new Error("Assertion failure.");
} else if (typeof r == "string" && (r = Kl(r)), Array.isArray(r))
throw new Error("Cannot replace single expression with an array.");
function o(l, u, c) {
let p = l[u];
l[u] = c, (p.type === "Identifier" || p.type === "Placeholder") && (p.typeAnnotation && (c.typeAnnotation = p.typeAnnotation), p.optional &&
(c.optional = p.optional), p.decorators && (c.decorators = p.decorators));
}
if (i(o, "set"), a === void 0)
ES(n, s, r), o(n, s, r);
else {
let l = n[s].slice();
e.type === "statement" || e.type === "param" ? r == null ? l.splice(a, 1) : Array.isArray(r) ? l.splice(a, 1, ...r) : o(l, a, r) : o(l,
a, r), ES(n, s, l), n[s] = l;
}
}
i(YG, "applyReplacement");
});
// ../node_modules/@babel/template/lib/string.js
var TS = P((Uh) => {
"use strict";
Object.defineProperty(Uh, "__esModule", {
value: !0
});
Uh.default = QG;
var JG = _l(), XG = jh(), zG = qh();
function QG(e, t, r) {
t = e.code(t);
let n;
return (s) => {
let a = (0, JG.normalizeReplacements)(s);
return n || (n = (0, XG.default)(e, t, r)), e.unwrap((0, zG.default)(n, a));
};
}
i(QG, "stringTemplate");
});
// ../node_modules/@babel/template/lib/literal.js
var SS = P((Vh) => {
"use strict";
Object.defineProperty(Vh, "__esModule", {
value: !0
});
Vh.default = rH;
var ZG = _l(), eH = jh(), tH = qh();
function rH(e, t, r) {
let {
metadata: n,
names: s
} = nH(e, t, r);
return (a) => {
let o = {};
return a.forEach((l, u) => {
o[s[u]] = l;
}), (l) => {
let u = (0, ZG.normalizeReplacements)(l);
return u && Object.keys(u).forEach((c) => {
if (hasOwnProperty.call(o, c))
throw new Error("Unexpected replacement overlap.");
}), e.unwrap((0, tH.default)(n, u ? Object.assign(u, o) : o));
};
};
}
i(rH, "literalTemplate");
function nH(e, t, r) {
let n = "BABEL_TPL$", s = t.join("");
do
n = "$$" + n;
while (s.includes(n));
let {
names: a,
code: o
} = sH(t, n);
return {
metadata: (0, eH.default)(e, e.code(o), {
parser: r.parser,
placeholderWhitelist: new Set(a.concat(r.placeholderWhitelist ? Array.from(r.placeholderWhitelist) : [])),
placeholderPattern: r.placeholderPattern,
preserveComments: r.preserveComments,
syntacticPlaceholders: r.syntacticPlaceholders
}),
names: a
};
}
i(nH, "buildLiteralData");
function sH(e, t) {
let r = [], n = e[0];
for (let s = 1; s < e.length; s++) {
let a = `${t}${s - 1}`;
r.push(a), n += a + e[s];
}
return {
names: r,
code: n
};
}
i(sH, "buildTemplateCode");
});
// ../node_modules/@babel/template/lib/builder.js
var DS = P(($h) => {
"use strict";
Object.defineProperty($h, "__esModule", {
value: !0
});
$h.default = CS;
var pn = _l(), xS = TS(), vS = SS(), PS = (0, pn.validate)({
placeholderPattern: !1
});
function CS(e, t) {
let r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), s = t || (0, pn.validate)(null);
return Object.assign((a, ...o) => {
if (typeof a == "string") {
if (o.length > 1) throw new Error("Unexpected extra params.");
return AS((0, xS.default)(e, a, (0, pn.merge)(s, (0, pn.validate)(o[0]))));
} else if (Array.isArray(a)) {
let l = r.get(a);
return l || (l = (0, vS.default)(e, a, s), r.set(a, l)), AS(l(o));
} else if (typeof a == "object" && a) {
if (o.length > 0) throw new Error("Unexpected extra params.");
return CS(e, (0, pn.merge)(s, (0, pn.validate)(a)));
}
throw new Error(`Unexpected template param ${typeof a}`);
}, {
ast: /* @__PURE__ */ i((a, ...o) => {
if (typeof a == "string") {
if (o.length > 1) throw new Error("Unexpected extra params.");
return (0, xS.default)(e, a, (0, pn.merge)((0, pn.merge)(s, (0, pn.validate)(o[0])), PS))();
} else if (Array.isArray(a)) {
let l = n.get(a);
return l || (l = (0, vS.default)(e, a, (0, pn.merge)(s, PS)), n.set(a, l)), l(o)();
}
throw new Error(`Unexpected template param ${typeof a}`);
}, "ast")
});
}
i(CS, "createTemplateBuilder");
function AS(e) {
let t = "";
try {
throw new Error();
} catch (r) {
r.stack && (t = r.stack.split(`
`).slice(3).join(`
`));
}
return (r) => {
try {
return e(r);
} catch (n) {
throw n.stack += `
=============
${t}`, n;
}
};
}
i(AS, "extendedTrace");
});
// ../node_modules/@babel/template/lib/index.js
var Za = P((hr) => {
"use strict";
Object.defineProperty(hr, "__esModule", {
value: !0
});
hr.statements = hr.statement = hr.smart = hr.program = hr.expression = hr.default = void 0;
var za = DT(), Qa = DS(), Wh = hr.smart = (0, Qa.default)(za.smart), iH = hr.statement = (0, Qa.default)(za.statement), aH = hr.statements =
(0, Qa.default)(za.statements), oH = hr.expression = (0, Qa.default)(za.expression), lH = hr.program = (0, Qa.default)(za.program), Sxe = hr.
default = Object.assign(Wh.bind(void 0), {
smart: Wh,
statement: iH,
statements: aH,
expression: oH,
program: lH,
ast: Wh.ast
});
});
// ../node_modules/@babel/helpers/lib/helpers-generated.js
var wS = P((Gl) => {
"use strict";
Object.defineProperty(Gl, "__esModule", {
value: !0
});
Gl.default = void 0;
var uH = Za();
function G(e, t, r) {
return Object.freeze({
minVersion: e,
ast: /* @__PURE__ */ i(() => uH.default.program.ast(t, {
preserveComments: !0
}), "ast"),
metadata: r
});
}
i(G, "helper");
var cH = Gl.default = {
__proto__: null,
OverloadYield: G("7.18.14", "function _OverloadYield(e,d){this.v=e,this.k=d}", {
globals: [],
locals: {
_OverloadYield: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_OverloadYield",
dependencies: {}
}),
applyDecoratedDescriptor: G("7.0.0-beta.0", 'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((funct\
ion(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().re\
verse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initi\
alizer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}', {
globals: ["Object"],
locals: {
_applyDecoratedDescriptor: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_applyDecoratedDescriptor",
dependencies: {}
}),
applyDecs2311: G("7.24.0", 'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Obj\
ect.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["fiel\
d","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to\
call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"\
class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?funct\
ion(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.ge\
t,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.\
init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or ini\
t properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s\
,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!\
0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<\
n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l\
,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,\
get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}', {
globals: ["Symbol", "Object", "TypeError", "Error"],
locals: {
applyDecs2311: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "applyDecs2311",
dependencies: {
checkInRHS: ["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.cons\
equent.body.body.0.argument.left.callee"],
setFunctionName: ["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.pro\
perties.0.value.callee", "body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],
toPropertyKey: ["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.al\
ternate.callee"]
}
}),
arrayLikeToArray: G("7.9.0", "function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid atte\
mpt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;\
return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||\
t.return()}finally{if(u)throw o}}}}', {
globals: ["Symbol", "Array", "TypeError"],
locals: {
_createForOfIteratorHelper: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_createForOfIteratorHelper",
dependencies: {
unsupportedIterableToArray: ["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]
}
}),
createForOfIteratorHelperLoose: G("7.9.0", 'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.ite\
rator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof\
r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to i\
terate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}', {
globals: ["Symbol", "Array", "TypeError"],
locals: {
_createForOfIteratorHelperLoose: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_createForOfIteratorHelperLoose",
dependencies: {
unsupportedIterableToArray: ["body.0.body.body.2.test.left.right.right.callee"]
}
}),
createSuper: G("7.9.0", "function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var\
s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,\
e)}}", {
globals: ["Reflect"],
locals: {
_createSuper: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_createSuper",
dependencies: {
getPrototypeOf: ["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee", "body.0.body.body.1.argument.body.body.1.cons\
equent.body.0.declarations.0.init.object.callee"],
isNativeReflectConstruct: ["body.0.body.body.0.declarations.0.init.callee"],
possibleConstructorReturn: ["body.0.body.body.1.argument.body.body.2.argument.callee"]
}
}),
decorate: G("7.1.5", `function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a\
);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;\
i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elemen\
ts){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("r\
oot"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.\
prev=0;--e){var r=this.tryEntries[e];if(r.finallyLo\
c===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var \
r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal ca\
tch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.ar\
g=t),y}},e}`, {
globals: ["Object", "Symbol", "Error", "TypeError", "isNaN", "Promise"],
locals: {
_regeneratorRuntime: ["body.0.id", "body.0.body.body.0.expression.left"]
},
exportBindingAssignments: ["body.0.body.body.0.expression"],
exportName: "_regeneratorRuntime",
dependencies: {}
}),
set: G("7.0.0-beta.0", 'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=\
superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOw\
nPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}f\
unction _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}', {
globals: ["Reflect", "Object", "TypeError"],
locals: {
set: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.1.body.body.0.test.left.argument.callee", "body.0.body.\
body.0.argument.expressions.0.left"],
_set: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_set",
dependencies: {
superPropBase: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],
defineProperty: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]
}
}),
setFunctionName: G("7.23.6", 'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.definePr\
operty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}', {
globals: ["Object"],
locals: {
setFunctionName: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "setFunctionName",
dependencies: {}
}),
setPrototypeOf: G("7.0.0-beta.0", "function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind\
():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}", {
globals: ["Object"],
locals: {
_setPrototypeOf: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"]
},
exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"],
exportName: "_setPrototypeOf",
dependencies: {}
}),
skipFirstGeneratorNext: G("7.0.0-beta.0", "function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.\
next(),r}}", {
globals: [],
locals: {
_skipFirstGeneratorNext: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_skipFirstGeneratorNext",
dependencies: {}
}),
slicedToArray: G("7.0.0-beta.0", "function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableT\
oArray(r,e)||nonIterableRest()}", {
globals: [],
locals: {
_slicedToArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_slicedToArray",
dependencies: {
arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"],
iterableToArrayLimit: ["body.0.body.body.0.argument.left.left.right.callee"],
unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"],
nonIterableRest: ["body.0.body.body.0.argument.right.callee"]
}
}),
superPropBase: G("7.0.0-beta.0", "function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return \
t}", {
globals: [],
locals: {
_superPropBase: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_superPropBase",
dependencies: {
getPrototypeOf: ["body.0.body.body.0.test.right.right.right.callee"]
}
}),
superPropGet: G("7.25.0", 'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==type\
of p?function(t){return p.apply(e,t)}:p}', {
globals: [],
locals: {
_superPropGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_superPropGet",
dependencies: {
get: ["body.0.body.body.0.declarations.0.init.callee"],
getPrototypeOf: ["body.0.body.body.0.declarations.0.init.arguments.0.callee"]
}
}),
superPropSet: G("7.25.0", "function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}", {
globals: [],
locals: {
_superPropSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_superPropSet",
dependencies: {
set: ["body.0.body.body.0.argument.callee"],
getPrototypeOf: ["body.0.body.body.0.argument.arguments.0.callee"]
}
}),
taggedTemplateLiteral: G("7.0.0-beta.0", "function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.definePrope\
rties(e,{raw:{value:Object.freeze(t)}}))}", {
globals: ["Object"],
locals: {
_taggedTemplateLiteral: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_taggedTemplateLiteral",
dependencies: {}
}),
taggedTemplateLiteralLoose: G("7.0.0-beta.0", "function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}", {
globals: [],
locals: {
_taggedTemplateLiteralLoose: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_taggedTemplateLiteralLoose",
dependencies: {}
}),
tdz: G("7.5.5", 'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}', {
globals: ["ReferenceError"],
locals: {
_tdzError: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_tdzError",
dependencies: {}
}),
temporalRef: G("7.0.0-beta.0", "function _temporalRef(r,e){return r===undef?err(e):r}", {
globals: [],
locals: {
_temporalRef: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_temporalRef",
dependencies: {
temporalUndefined: ["body.0.body.body.0.argument.test.right"],
tdz: ["body.0.body.body.0.argument.consequent.callee"]
}
}),
temporalUndefined: G("7.0.0-beta.0", "function _temporalUndefined(){}", {
globals: [],
locals: {
_temporalUndefined: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_temporalUndefined",
dependencies: {}
}),
toArray: G("7.0.0-beta.0", "function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterabl\
eRest()}", {
globals: [],
locals: {
_toArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_toArray",
dependencies: {
arrayWithHoles: ["body.0.body.body.0.argument.left.left.left.callee"],
iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"],
unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"],
nonIterableRest: ["body.0.body.body.0.argument.right.callee"]
}
}),
toConsumableArray: G("7.0.0-beta.0", "function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterabl\
eToArray(r)||nonIterableSpread()}", {
globals: [],
locals: {
_toConsumableArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_toConsumableArray",
dependencies: {
arrayWithoutHoles: ["body.0.body.body.0.argument.left.left.left.callee"],
iterableToArray: ["body.0.body.body.0.argument.left.left.right.callee"],
unsupportedIterableToArray: ["body.0.body.body.0.argument.left.right.callee"],
nonIterableSpread: ["body.0.body.body.0.argument.right.callee"]
}
}),
toPrimitive: G("7.1.5", 'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e\
.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r\
?String:Number)(t)}', {
globals: ["Symbol", "TypeError", "String", "Number"],
locals: {
toPrimitive: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "toPrimitive",
dependencies: {}
}),
toPropertyKey: G("7.1.5", 'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}', {
globals: [],
locals: {
toPropertyKey: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "toPropertyKey",
dependencies: {
toPrimitive: ["body.0.body.body.0.declarations.0.init.callee"]
}
}),
toSetter: G("7.24.0", 'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,\
t.apply(n,e)}})}', {
globals: ["Object"],
locals: {
_toSetter: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_toSetter",
dependencies: {}
}),
tsRewriteRelativeImportExtensions: G("7.27.0", 'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.tes\
t(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase\
()+"js":t})):t}', {
globals: [],
locals: {
tsRewriteRelativeImportExtensions: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "tsRewriteRelativeImportExtensions",
dependencies: {}
}),
typeof: G("7.0.0-beta.0", 'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symb\
ol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symb\
ol":typeof o},_typeof(o)}', {
globals: ["Symbol"],
locals: {
_typeof: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee", "body.0.body.body.0.argument.expressions.0.left"]
},
exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"],
exportName: "_typeof",
dependencies: {}
}),
unsupportedIterableToArray: G("7.9.0", 'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,\
a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Argum\
ents"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}', {
globals: ["Array"],
locals: {
_unsupportedIterableToArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_unsupportedIterableToArray",
dependencies: {
arrayLikeToArray: ["body.0.body.body.0.consequent.body.0.consequent.argument.callee", "body.0.body.body.0.consequent.body.2.argument\
.expressions.1.alternate.consequent.callee"]
}
}),
usingCtx: G("7.23.9", 'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return \
n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using d\
eclarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispos\
e")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not\
disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}\
return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)re\
turn s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}c\
atch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n\
,next()}return next()}}}', {
globals: ["SuppressedError", "Error", "Object", "TypeError", "Symbol", "Promise"],
locals: {
_usingCtx: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_usingCtx",
dependencies: {}
}),
wrapAsyncGenerator: G("7.0.0-beta.0", 'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,argument\
s))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:\
o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"nor\
mal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:\
!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,\
n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeo\
f e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){ret\
urn this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._i\
nvoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};', {
globals: ["Promise", "Symbol"],
locals: {
_wrapAsyncGenerator: ["body.0.id"],
AsyncGenerator: ["body.1.id", "body.0.body.body.0.argument.body.body.0.argument.callee", "body.2.expression.expressions.0.left.objec\
t.object", "body.2.expression.expressions.1.left.object.object", "body.2.expression.expressions.2.left.object.object", "body.2.expression.ex\
pressions.3.left.object.object"]
},
exportBindingAssignments: [],
exportName: "_wrapAsyncGenerator",
dependencies: {
OverloadYield: ["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]
}
}),
wrapNativeSuper: G("7.0.0-beta.0", 'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=fun\
ction(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a f\
unction");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).c\
onstructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setP\
rototypeOf(Wrapper,t)},_wrapNativeSuper(t)}', {
globals: ["Map", "TypeError", "Object"],
locals: {
_wrapNativeSuper: ["body.0.id", "body.0.body.body.1.argument.expressions.1.callee", "body.0.body.body.1.argument.expressions.0.left"]
},
exportBindingAssignments: ["body.0.body.body.1.argument.expressions.0"],
exportName: "_wrapNativeSuper",
dependencies: {
getPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],
setPrototypeOf: ["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],
isNativeFunction: ["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],
construct: ["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]
}
}),
wrapRegExp: G("7.19.0", 'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=n\
ew WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildG\
roups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e\
[o[i]]&&i+1]+)(>\
|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"==\
typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call\
(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}', {
globals: ["RegExp", "WeakMap", "Object", "Symbol", "Array"],
locals: {
_wrapRegExp: ["body.0.id", "body.0.body.body.4.argument.expressions.3.callee.object", "body.0.body.body.0.expression.left"]
},
exportBindingAssignments: ["body.0.body.body.0.expression"],
exportName: "_wrapRegExp",
dependencies: {
setPrototypeOf: ["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],
inherits: ["body.0.body.body.4.argument.expressions.0.callee"]
}
}),
writeOnlyError: G("7.12.13", `function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`, {
globals: ["TypeError"],
locals: {
_writeOnlyError: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_writeOnlyError",
dependencies: {}
})
};
Object.assign(cH, {
AwaitValue: G("7.0.0-beta.0", "function _AwaitValue(t){this.wrapped=t}", {
globals: [],
locals: {
_AwaitValue: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_AwaitValue",
dependencies: {}
}),
applyDecs: G("7.17.8", 'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"g\
etMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.pri\
vate;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_a\
ssertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.publ\
ic={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMa\
pToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1\
===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)\
))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(\
v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw \
Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not c\
urrently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}o\
ld_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{v\
ar c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d\
=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDe\
c(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g\
&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=type\
of l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&\
&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public met\
hod/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDe\
c(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-\
1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(\
assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v\
[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(\
void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof \
l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0=\
==g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated\
public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}ap\
plyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){fo\
r(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializ\
erMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||\
p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===\
l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=functi\
on(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b\
&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor.\
This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y\
,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[\
],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}fi\
nally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var\
D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(\
e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null\
,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),\
w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access\
={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof \
P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!=\
=P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method"\
)+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].ca\
ll(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u\
(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.le\
ngth>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=funct\
ion(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)thr\
ow Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is no\
t currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKe\
y(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.leng\
th&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}', {
globals: ["TypeError", "Array", "Object", "Error", "Symbol", "Map"],
locals: {
applyDecs2305: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "applyDecs2305",
dependencies: {
checkInRHS: ["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],
setFunctionName: ["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.\
0.value.callee", "body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],
toPropertyKey: ["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alte\
rnate.callee"]
}
}),
classApplyDescriptorDestructureSet: G("7.13.10", 'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.\
__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");retu\
rn t}', {
globals: ["TypeError"],
locals: {
_classApplyDescriptorDestructureSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classApplyDescriptorDestructureSet",
dependencies: {}
}),
classApplyDescriptorGet: G("7.13.10", "function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}", {
globals: [],
locals: {
_classApplyDescriptorGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classApplyDescriptorGet",
dependencies: {}
}),
classApplyDescriptorSet: G("7.13.10", 'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new T\
ypeError("attempted to set read only private field");t.value=l}}', {
globals: ["TypeError"],
locals: {
_classApplyDescriptorSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classApplyDescriptorSet",
dependencies: {}
}),
classCheckPrivateStaticAccess: G("7.13.10", "function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}", {
globals: [],
locals: {
_classCheckPrivateStaticAccess: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classCheckPrivateStaticAccess",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.callee"]
}
}),
classCheckPrivateStaticFieldDescriptor: G("7.13.10", 'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new Type\
Error("attempted to "+e+" private static field before its declaration")}', {
globals: ["TypeError"],
locals: {
_classCheckPrivateStaticFieldDescriptor: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classCheckPrivateStaticFieldDescriptor",
dependencies: {}
}),
classExtractFieldDescriptor: G("7.13.10", "function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}", {
globals: [],
locals: {
_classExtractFieldDescriptor: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classExtractFieldDescriptor",
dependencies: {
classPrivateFieldGet2: ["body.0.body.body.0.argument.callee"]
}
}),
classPrivateFieldDestructureSet: G("7.4.4", "function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return clas\
sApplyDescriptorDestructureSet(e,r)}", {
globals: [],
locals: {
_classPrivateFieldDestructureSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldDestructureSet",
dependencies: {
classApplyDescriptorDestructureSet: ["body.0.body.body.1.argument.callee"],
classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"]
}
}),
classPrivateFieldGet: G("7.0.0-beta.0", "function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescripto\
rGet(e,r)}", {
globals: [],
locals: {
_classPrivateFieldGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldGet",
dependencies: {
classApplyDescriptorGet: ["body.0.body.body.1.argument.callee"],
classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"]
}
}),
classPrivateFieldSet: G("7.0.0-beta.0", "function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescrip\
torSet(e,s,r),r}", {
globals: [],
locals: {
_classPrivateFieldSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldSet",
dependencies: {
classApplyDescriptorSet: ["body.0.body.body.1.argument.expressions.0.callee"],
classPrivateFieldGet2: ["body.0.body.body.0.declarations.0.init.callee"]
}
}),
classPrivateMethodGet: G("7.1.6", "function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}", {
globals: [],
locals: {
_classPrivateMethodGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateMethodGet",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"]
}
}),
classPrivateMethodSet: G("7.1.6", 'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}', {
globals: ["TypeError"],
locals: {
_classPrivateMethodSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateMethodSet",
dependencies: {}
}),
classStaticPrivateFieldDestructureSet: G("7.13.10", 'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t)\
,classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}', {
globals: [],
locals: {
_classStaticPrivateFieldDestructureSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classStaticPrivateFieldDestructureSet",
dependencies: {
classApplyDescriptorDestructureSet: ["body.0.body.body.0.argument.expressions.2.callee"],
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"],
classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"]
}
}),
classStaticPrivateFieldSpecGet: G("7.0.2", 'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPriva\
teStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}', {
globals: [],
locals: {
_classStaticPrivateFieldSpecGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classStaticPrivateFieldSpecGet",
dependencies: {
classApplyDescriptorGet: ["body.0.body.body.0.argument.expressions.2.callee"],
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"],
classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"]
}
}),
classStaticPrivateFieldSpecSet: G("7.0.2", 'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPri\
vateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}', {
globals: [],
locals: {
_classStaticPrivateFieldSpecSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classStaticPrivateFieldSpecSet",
dependencies: {
classApplyDescriptorSet: ["body.0.body.body.0.argument.expressions.2.callee"],
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"],
classCheckPrivateStaticFieldDescriptor: ["body.0.body.body.0.argument.expressions.1.callee"]
}
}),
classStaticPrivateMethodSet: G("7.3.2", 'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static \
private field")}', {
globals: ["TypeError"],
locals: {
_classStaticPrivateMethodSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classStaticPrivateMethodSet",
dependencies: {}
}),
defineEnumerableProperties: G("7.0.0-beta.0", 'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enu\
merable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(\
r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch\
(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}', {
globals: ["SuppressedError", "Error", "Object", "Promise"],
locals: {
dispose_SuppressedError: ["body.0.id", "body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object", "body.0.body\
.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value", "body.0.body.body.0.argumen\
t.expressions.1.callee", "body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee", "body.0.body.body.0.argument.expre\
ssions.0.consequent.left", "body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],
_dispose: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_dispose",
dependencies: {}
}),
objectSpread: G("7.0.0-beta.0", 'function _objectSpread(e){for(var r=1;r {
"use strict";
Object.defineProperty(fn, "__esModule", {
value: !0
});
fn.default = void 0;
fn.get = OS;
fn.getDependencies = mH;
fn.list = void 0;
fn.minVersion = hH;
var pH = Ce(), _S = wS(), {
cloneNode: fH,
identifier: IS
} = pH;
function Hl(e, t, r) {
try {
let n = t.split("."), s = n.shift();
for (; n.length > 0; )
e = e[s], s = n.shift();
if (arguments.length > 2)
e[s] = r;
else
return e[s];
} catch (n) {
throw n.message += ` (when accessing ${t})`, n;
}
}
i(Hl, "deep");
function dH(e, t, r, n, s, a) {
let {
locals: o,
dependencies: l,
exportBindingAssignments: u,
exportName: c
} = t, p = new Set(n || []);
r && p.add(r);
for (let [f, h] of (Object.entries || ((y) => Object.keys(y).map((E) => [E, y[E]])))(o)) {
let y = f;
if (r && f === c)
y = r;
else
for (; p.has(y); ) y = "_" + y;
if (y !== f)
for (let E of h)
Hl(e, E, IS(y));
}
for (let [f, h] of (Object.entries || ((y) => Object.keys(y).map((E) => [E, y[E]])))(l)) {
let y = typeof s == "function" && s(f) || IS(f);
for (let E of h)
Hl(e, E, fH(y));
}
a?.(e, c, (f) => {
u.forEach((h) => Hl(e, h, f(Hl(e, h))));
});
}
i(dH, "permuteHelperAST");
var Kh = /* @__PURE__ */ Object.create(null);
function Yl(e) {
if (!Kh[e]) {
let t = _S.default[e];
if (!t)
throw Object.assign(new ReferenceError(`Unknown helper ${e}`), {
code: "BABEL_HELPER_UNKNOWN",
helper: e
});
Kh[e] = {
minVersion: t.minVersion,
build(r, n, s, a) {
let o = t.ast();
return dH(o, t.metadata, n, s, r, a), {
nodes: o.body,
globals: t.metadata.globals
};
},
getDependencies() {
return Object.keys(t.metadata.dependencies);
}
};
}
return Kh[e];
}
i(Yl, "loadHelper");
function OS(e, t, r, n, s) {
if (typeof r == "object") {
let a = r;
a?.type === "Identifier" ? r = a.name : r = void 0;
}
return Yl(e).build(t, r, n, s);
}
i(OS, "get");
function hH(e) {
return Yl(e).minVersion;
}
i(hH, "minVersion");
function mH(e) {
return Yl(e).getDependencies();
}
i(mH, "getDependencies");
fn.ensure = (e) => {
Yl(e);
};
var Axe = fn.list = Object.keys(_S.default).map((e) => e.replace(/^_/, "")), Cxe = fn.default = OS;
});
// ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js
var Hh = P((Ue) => {
"use strict";
Object.defineProperty(Ue, "__esModule", {
value: !0
});
Ue.Var = Ue.User = Ue.Statement = Ue.SpreadProperty = Ue.Scope = Ue.RestProperty = Ue.ReferencedMemberExpression = Ue.ReferencedIdentifier =
Ue.Referenced = Ue.Pure = Ue.NumericLiteralTypeAnnotation = Ue.Generated = Ue.ForAwaitStatement = Ue.Flow = Ue.Expression = Ue.ExistentialTypeParam =
Ue.BlockScoped = Ue.BindingIdentifier = void 0;
var Ixe = Ue.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], _xe = Ue.ReferencedMemberExpression = ["MemberExpression"], Oxe = Ue.
BindingIdentifier = ["Identifier"], Nxe = Ue.Statement = ["Statement"], Bxe = Ue.Expression = ["Expression"], kxe = Ue.Scope = ["Scopable",
"Pattern"], Fxe = Ue.Referenced = null, jxe = Ue.BlockScoped = null, Lxe = Ue.Var = ["VariableDeclaration"], Mxe = Ue.User = null, Rxe = Ue.
Generated = null, qxe = Ue.Pure = null, Uxe = Ue.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"], Vxe = Ue.RestProperty =
["RestElement"], $xe = Ue.SpreadProperty = ["RestElement"], Wxe = Ue.ExistentialTypeParam = ["ExistsTypeAnnotation"], Kxe = Ue.NumericLiteralTypeAnnotation =
["NumberLiteralTypeAnnotation"], Gxe = Ue.ForAwaitStatement = ["ForOfStatement"];
});
// ../node_modules/ms/index.js
var BS = P((Yxe, NS) => {
var Bi = 1e3, ki = Bi * 60, Fi = ki * 60, Rs = Fi * 24, yH = Rs * 7, gH = Rs * 365.25;
NS.exports = function(e, t) {
t = t || {};
var r = typeof e;
if (r === "string" && e.length > 0)
return bH(e);
if (r === "number" && isFinite(e))
return t.long ? TH(e) : EH(e);
throw new Error(
"val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
);
};
function bH(e) {
if (e = String(e), !(e.length > 100)) {
var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.
exec(
e
);
if (t) {
var r = parseFloat(t[1]), n = (t[2] || "ms").toLowerCase();
switch (n) {
case "years":
case "year":
case "yrs":
case "yr":
case "y":
return r * gH;
case "weeks":
case "week":
case "w":
return r * yH;
case "days":
case "day":
case "d":
return r * Rs;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return r * Fi;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return r * ki;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return r * Bi;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return r;
default:
return;
}
}
}
}
i(bH, "parse");
function EH(e) {
var t = Math.abs(e);
return t >= Rs ? Math.round(e / Rs) + "d" : t >= Fi ? Math.round(e / Fi) + "h" : t >= ki ? Math.round(e / ki) + "m" : t >= Bi ? Math.round(
e / Bi) + "s" : e + "ms";
}
i(EH, "fmtShort");
function TH(e) {
var t = Math.abs(e);
return t >= Rs ? Jl(e, t, Rs, "day") : t >= Fi ? Jl(e, t, Fi, "hour") : t >= ki ? Jl(e, t, ki, "minute") : t >= Bi ? Jl(e, t, Bi, "secon\
d") : e + " ms";
}
i(TH, "fmtLong");
function Jl(e, t, r, n) {
var s = t >= r * 1.5;
return Math.round(e / r) + " " + n + (s ? "s" : "");
}
i(Jl, "plural");
});
// ../node_modules/debug/src/common.js
var Yh = P((Xxe, kS) => {
function SH(e) {
r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = s, r.enabled = l, r.humanize = BS(), r.destroy = c, Object.keys(e).forEach(
(p) => {
r[p] = e[p];
}), r.names = [], r.skips = [], r.formatters = {};
function t(p) {
let f = 0;
for (let h = 0; h < p.length; h++)
f = (f << 5) - f + p.charCodeAt(h), f |= 0;
return r.colors[Math.abs(f) % r.colors.length];
}
i(t, "selectColor"), r.selectColor = t;
function r(p) {
let f, h = null, y, E;
function d(...g) {
if (!d.enabled)
return;
let C = d, _ = Number(/* @__PURE__ */ new Date()), O = _ - (f || _);
C.diff = O, C.prev = f, C.curr = _, f = _, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
let B = 0;
g[0] = g[0].replace(/%([a-zA-Z%])/g, ($, V) => {
if ($ === "%%")
return "%";
B++;
let J = r.formatters[V];
if (typeof J == "function") {
let U = g[B];
$ = J.call(C, U), g.splice(B, 1), B--;
}
return $;
}), r.formatArgs.call(C, g), (C.log || r.log).apply(C, g);
}
return i(d, "debug"), d.namespace = p, d.useColors = r.useColors(), d.color = r.selectColor(p), d.extend = n, d.destroy = r.destroy, Object.
defineProperty(d, "enabled", {
enumerable: !0,
configurable: !1,
get: /* @__PURE__ */ i(() => h !== null ? h : (y !== r.namespaces && (y = r.namespaces, E = r.enabled(p)), E), "get"),
set: /* @__PURE__ */ i((g) => {
h = g;
}, "set")
}), typeof r.init == "function" && r.init(d), d;
}
i(r, "createDebug");
function n(p, f) {
let h = r(this.namespace + (typeof f > "u" ? ":" : f) + p);
return h.log = this.log, h;
}
i(n, "extend");
function s(p) {
r.save(p), r.namespaces = p, r.names = [], r.skips = [];
let f = (typeof p == "string" ? p : "").trim().replace(" ", ",").split(",").filter(Boolean);
for (let h of f)
h[0] === "-" ? r.skips.push(h.slice(1)) : r.names.push(h);
}
i(s, "enable");
function a(p, f) {
let h = 0, y = 0, E = -1, d = 0;
for (; h < p.length; )
if (y < f.length && (f[y] === p[h] || f[y] === "*"))
f[y] === "*" ? (E = y, d = h, y++) : (h++, y++);
else if (E !== -1)
y = E + 1, d++, h = d;
else
return !1;
for (; y < f.length && f[y] === "*"; )
y++;
return y === f.length;
}
i(a, "matchesTemplate");
function o() {
let p = [
...r.names,
...r.skips.map((f) => "-" + f)
].join(",");
return r.enable(""), p;
}
i(o, "disable");
function l(p) {
for (let f of r.skips)
if (a(p, f))
return !1;
for (let f of r.names)
if (a(p, f))
return !0;
return !1;
}
i(l, "enabled");
function u(p) {
return p instanceof Error ? p.stack || p.message : p;
}
i(u, "coerce");
function c() {
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\
n of `debug`.");
}
return i(c, "destroy"), r.enable(r.load()), r;
}
i(SH, "setup");
kS.exports = SH;
});
// ../node_modules/debug/src/browser.js
var FS = P((br, Xl) => {
br.formatArgs = vH;
br.save = PH;
br.load = AH;
br.useColors = xH;
br.storage = CH();
br.destroy = /* @__PURE__ */ (() => {
let e = !1;
return () => {
e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the nex\
t major version of `debug`."));
};
})();
br.colors = [
"#0000CC",
"#0000FF",
"#0033CC",
"#0033FF",
"#0066CC",
"#0066FF",
"#0099CC",
"#0099FF",
"#00CC00",
"#00CC33",
"#00CC66",
"#00CC99",
"#00CCCC",
"#00CCFF",
"#3300CC",
"#3300FF",
"#3333CC",
"#3333FF",
"#3366CC",
"#3366FF",
"#3399CC",
"#3399FF",
"#33CC00",
"#33CC33",
"#33CC66",
"#33CC99",
"#33CCCC",
"#33CCFF",
"#6600CC",
"#6600FF",
"#6633CC",
"#6633FF",
"#66CC00",
"#66CC33",
"#9900CC",
"#9900FF",
"#9933CC",
"#9933FF",
"#99CC00",
"#99CC33",
"#CC0000",
"#CC0033",
"#CC0066",
"#CC0099",
"#CC00CC",
"#CC00FF",
"#CC3300",
"#CC3333",
"#CC3366",
"#CC3399",
"#CC33CC",
"#CC33FF",
"#CC6600",
"#CC6633",
"#CC9900",
"#CC9933",
"#CCCC00",
"#CCCC33",
"#FF0000",
"#FF0033",
"#FF0066",
"#FF0099",
"#FF00CC",
"#FF00FF",
"#FF3300",
"#FF3333",
"#FF3366",
"#FF3399",
"#FF33CC",
"#FF33FF",
"#FF6600",
"#FF6633",
"#FF9900",
"#FF9933",
"#FFCC00",
"#FFCC33"
];
function xH() {
if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
return !0;
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
return !1;
let e;
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
// Is firebug? http://stackoverflow.com/a/398120/376773
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >=
31 || // Double check webkit in userAgent just in case we are in a worker
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
i(xH, "useColors");
function vH(e) {
if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" +
Xl.exports.humanize(this.diff), !this.useColors)
return;
let t = "color: " + this.color;
e.splice(1, 0, t, "color: inherit");
let r = 0, n = 0;
e[0].replace(/%[a-zA-Z%]/g, (s) => {
s !== "%%" && (r++, s === "%c" && (n = r));
}), e.splice(n, 0, t);
}
i(vH, "formatArgs");
br.log = console.debug || console.log || (() => {
});
function PH(e) {
try {
e ? br.storage.setItem("debug", e) : br.storage.removeItem("debug");
} catch {
}
}
i(PH, "save");
function AH() {
let e;
try {
e = br.storage.getItem("debug");
} catch {
}
return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e;
}
i(AH, "load");
function CH() {
try {
return localStorage;
} catch {
}
}
i(CH, "localstorage");
Xl.exports = Yh()(br);
var { formatters: DH } = Xl.exports;
DH.j = function(e) {
try {
return JSON.stringify(e);
} catch (t) {
return "[UnexpectedJSONParseError]: " + t.message;
}
};
});
// ../node_modules/has-flag/index.js
var LS = P((Zxe, jS) => {
"use strict";
jS.exports = (e, t = process.argv) => {
let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", n = t.indexOf(r + e), s = t.indexOf("--");
return n !== -1 && (s === -1 || n < s);
};
});
// ../node_modules/supports-color/index.js
var qS = P((eve, RS) => {
"use strict";
var wH = require("os"), MS = require("tty"), Or = LS(), { env: Ft } = process, ss;
Or("no-color") || Or("no-colors") || Or("color=false") || Or("color=never") ? ss = 0 : (Or("color") || Or("colors") || Or("color=true") ||
Or("color=always")) && (ss = 1);
"FORCE_COLOR" in Ft && (Ft.FORCE_COLOR === "true" ? ss = 1 : Ft.FORCE_COLOR === "false" ? ss = 0 : ss = Ft.FORCE_COLOR.length === 0 ? 1 : Math.
min(parseInt(Ft.FORCE_COLOR, 10), 3));
function Jh(e) {
return e === 0 ? !1 : {
level: e,
hasBasic: !0,
has256: e >= 2,
has16m: e >= 3
};
}
i(Jh, "translateLevel");
function Xh(e, t) {
if (ss === 0)
return 0;
if (Or("color=16m") || Or("color=full") || Or("color=truecolor"))
return 3;
if (Or("color=256"))
return 2;
if (e && !t && ss === void 0)
return 0;
let r = ss || 0;
if (Ft.TERM === "dumb")
return r;
if (process.platform === "win32") {
let n = wH.release().split(".");
return Number(n[0]) >= 10 && Number(n[2]) >= 10586 ? Number(n[2]) >= 14931 ? 3 : 2 : 1;
}
if ("CI" in Ft)
return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((n) => n in Ft) || Ft.CI_NAME === "codeship" ?
1 : r;
if ("TEAMCITY_VERSION" in Ft)
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ft.TEAMCITY_VERSION) ? 1 : 0;
if (Ft.COLORTERM === "truecolor")
return 3;
if ("TERM_PROGRAM" in Ft) {
let n = parseInt((Ft.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
switch (Ft.TERM_PROGRAM) {
case "iTerm.app":
return n >= 3 ? 3 : 2;
case "Apple_Terminal":
return 2;
}
}
return /-256(color)?$/i.test(Ft.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ft.TERM) || "COLORTERM" in
Ft ? 1 : r;
}
i(Xh, "supportsColor");
function IH(e) {
let t = Xh(e, e && e.isTTY);
return Jh(t);
}
i(IH, "getSupportLevel");
RS.exports = {
supportsColor: IH,
stdout: Jh(Xh(!0, MS.isatty(1))),
stderr: Jh(Xh(!0, MS.isatty(2)))
};
});
// ../node_modules/debug/src/node.js
var VS = P((jt, Ql) => {
var _H = require("tty"), zl = require("util");
jt.init = LH;
jt.log = kH;
jt.formatArgs = NH;
jt.save = FH;
jt.load = jH;
jt.useColors = OH;
jt.destroy = zl.deprecate(
() => {
},
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
);
jt.colors = [6, 2, 3, 4, 5, 1];
try {
let e = qS();
e && (e.stderr || e).level >= 2 && (jt.colors = [
20,
21,
26,
27,
32,
33,
38,
39,
40,
41,
42,
43,
44,
45,
56,
57,
62,
63,
68,
69,
74,
75,
76,
77,
78,
79,
80,
81,
92,
93,
98,
99,
112,
113,
128,
129,
134,
135,
148,
149,
160,
161,
162,
163,
164,
165,
166,
167,
168,
169,
170,
171,
172,
173,
178,
179,
184,
185,
196,
197,
198,
199,
200,
201,
202,
203,
204,
205,
206,
207,
208,
209,
214,
215,
220,
221
]);
} catch {
}
jt.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => {
let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (s, a) => a.toUpperCase()), n = process.env[t];
return /^(yes|on|true|enabled)$/i.test(n) ? n = !0 : /^(no|off|false|disabled)$/i.test(n) ? n = !1 : n === "null" ? n = null : n = Number(
n), e[r] = n, e;
}, {});
function OH() {
return "colors" in jt.inspectOpts ? !!jt.inspectOpts.colors : _H.isatty(process.stderr.fd);
}
i(OH, "useColors");
function NH(e) {
let { namespace: t, useColors: r } = this;
if (r) {
let n = this.color, s = "\x1B[3" + (n < 8 ? n : "8;5;" + n), a = ` ${s};1m${t} \x1B[0m`;
e[0] = a + e[0].split(`
`).join(`
` + a), e.push(s + "m+" + Ql.exports.humanize(this.diff) + "\x1B[0m");
} else
e[0] = BH() + t + " " + e[0];
}
i(NH, "formatArgs");
function BH() {
return jt.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
}
i(BH, "getDate");
function kH(...e) {
return process.stderr.write(zl.formatWithOptions(jt.inspectOpts, ...e) + `
`);
}
i(kH, "log");
function FH(e) {
e ? process.env.DEBUG = e : delete process.env.DEBUG;
}
i(FH, "save");
function jH() {
return process.env.DEBUG;
}
i(jH, "load");
function LH(e) {
e.inspectOpts = {};
let t = Object.keys(jt.inspectOpts);
for (let r = 0; r < t.length; r++)
e.inspectOpts[t[r]] = jt.inspectOpts[t[r]];
}
i(LH, "init");
Ql.exports = Yh()(jt);
var { formatters: US } = Ql.exports;
US.o = function(e) {
return this.inspectOpts.colors = this.useColors, zl.inspect(e, this.inspectOpts).split(`
`).map((t) => t.trim()).join(" ");
};
US.O = function(e) {
return this.inspectOpts.colors = this.useColors, zl.inspect(e, this.inspectOpts);
};
});
// ../node_modules/debug/src/index.js
var qs = P((nve, zh) => {
typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? zh.exports = FS() : zh.exports = VS();
});
// ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js
var Zh = P((It) => {
"use strict";
Object.defineProperty(It, "__esModule", {
value: !0
});
It.isBindingIdentifier = aY;
It.isBlockScoped = pY;
It.isExpression = lY;
It.isFlow = yY;
It.isForAwaitStatement = EY;
It.isGenerated = hY;
It.isPure = mY;
It.isReferenced = cY;
It.isReferencedIdentifier = sY;
It.isReferencedMemberExpression = iY;
It.isRestProperty = gY;
It.isScope = uY;
It.isSpreadProperty = bY;
It.isStatement = oY;
It.isUser = dY;
It.isVar = fY;
var MH = Ce(), {
isBinding: RH,
isBlockScoped: qH,
isExportDeclaration: UH,
isExpression: VH,
isFlow: $H,
isForStatement: WH,
isForXStatement: KH,
isIdentifier: $S,
isImportDeclaration: GH,
isImportSpecifier: HH,
isJSXIdentifier: YH,
isJSXMemberExpression: JH,
isMemberExpression: XH,
isRestElement: WS,
isReferenced: Qh,
isScope: zH,
isStatement: QH,
isVar: ZH,
isVariableDeclaration: eY,
react: tY,
isForOfStatement: rY
} = MH, {
isCompatTag: nY
} = tY;
function sY(e) {
let {
node: t,
parent: r
} = this;
if (!$S(t, e) && !JH(r, e))
if (YH(t, e)) {
if (nY(t.name)) return !1;
} else
return !1;
return Qh(t, r, this.parentPath.parent);
}
i(sY, "isReferencedIdentifier");
function iY() {
let {
node: e,
parent: t
} = this;
return XH(e) && Qh(e, t);
}
i(iY, "isReferencedMemberExpression");
function aY() {
let {
node: e,
parent: t
} = this, r = this.parentPath.parent;
return $S(e) && RH(e, t, r);
}
i(aY, "isBindingIdentifier");
function oY() {
let {
node: e,
parent: t
} = this;
return QH(e) ? !(eY(e) && (KH(t, {
left: e
}) || WH(t, {
init: e
}))) : !1;
}
i(oY, "isStatement");
function lY() {
return this.isIdentifier() ? this.isReferencedIdentifier() : VH(this.node);
}
i(lY, "isExpression");
function uY() {
return zH(this.node, this.parent);
}
i(uY, "isScope");
function cY() {
return Qh(this.node, this.parent);
}
i(cY, "isReferenced");
function pY() {
return qH(this.node);
}
i(pY, "isBlockScoped");
function fY() {
return ZH(this.node);
}
i(fY, "isVar");
function dY() {
return this.node && !!this.node.loc;
}
i(dY, "isUser");
function hY() {
return !this.isUser();
}
i(hY, "isGenerated");
function mY(e) {
return this.scope.isPure(this.node, e);
}
i(mY, "isPure");
function yY() {
let {
node: e
} = this;
return $H(e) ? !0 : GH(e) ? e.importKind === "type" || e.importKind === "typeof" : UH(e) ? e.exportKind === "type" : HH(e) ? e.importKind ===
"type" || e.importKind === "typeof" : !1;
}
i(yY, "isFlow");
function gY() {
var e;
return WS(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern());
}
i(gY, "isRestProperty");
function bY() {
var e;
return WS(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression());
}
i(bY, "isSpreadProperty");
function EY() {
return rY(this.node, {
await: !0
});
}
i(EY, "isForAwaitStatement");
It.isExistentialTypeParam = /* @__PURE__ */ i(function() {
throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.");
}, "isExistentialTypeParam"), It.isNumericLiteralTypeAnnotation = /* @__PURE__ */ i(function() {
throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.");
}, "isNumericLiteralTypeAnnotation");
});
// ../node_modules/@babel/traverse/lib/visitors.js
var Zl = P((Vs) => {
"use strict";
Object.defineProperty(Vs, "__esModule", {
value: !0
});
Vs.environmentVisitor = DY;
Vs.explode = tx;
Vs.isExplodedVisitor = ex;
Vs.merge = nx;
Vs.verify = rx;
var ZS = Hh(), TY = Zh(), SY = Ce(), KS = dn(), {
DEPRECATED_KEYS: GS,
DEPRECATED_ALIASES: HS,
FLIPPED_ALIAS_KEYS: YS,
TYPES: xY,
__internal__deprecationWarning: JS
} = SY;
function vY(e) {
return e in ZS;
}
i(vY, "isVirtualType");
function ex(e) {
return e?._exploded;
}
i(ex, "isExplodedVisitor");
function tx(e) {
if (ex(e)) return e;
e._exploded = !0;
for (let t of Object.keys(e)) {
if (Us(t)) continue;
let r = t.split("|");
if (r.length === 1) continue;
let n = e[t];
delete e[t];
for (let s of r)
e[s] = n;
}
rx(e), delete e.__esModule, PY(e), QS(e);
for (let t of Object.keys(e)) {
if (Us(t) || !vY(t)) continue;
let r = e[t];
for (let s of Object.keys(r))
r[s] = AY(t, r[s]);
delete e[t];
let n = ZS[t];
if (n !== null)
for (let s of n)
e[s] ? eo(e[s], r) : e[s] = r;
else
eo(e, r);
}
for (let t of Object.keys(e)) {
if (Us(t)) continue;
let r = YS[t];
if (t in GS) {
let s = GS[t];
JS(t, s, "Visitor "), r = [s];
} else if (t in HS) {
let s = HS[t];
JS(t, s, "Visitor "), r = YS[s];
}
if (!r) continue;
let n = e[t];
delete e[t];
for (let s of r) {
let a = e[s];
a ? eo(a, n) : e[s] = Object.assign({}, n);
}
}
for (let t of Object.keys(e))
Us(t) || QS(e[t]);
return e;
}
i(tx, "explode$1");
function rx(e) {
if (!e._verified) {
if (typeof e == "function")
throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Functi\
on }`?");
for (let t of Object.keys(e)) {
if ((t === "enter" || t === "exit") && XS(t, e[t]), Us(t)) continue;
if (!xY.includes(t))
throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.27.0`);
let r = e[t];
if (typeof r == "object")
for (let n of Object.keys(r))
if (n === "enter" || n === "exit")
XS(`${t}.${n}`, r[n]);
else
throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${n}`);
}
e._verified = !0;
}
}
i(rx, "verify$1");
function XS(e, t) {
let r = [].concat(t);
for (let n of r)
if (typeof n != "function")
throw new TypeError(`Non-function found defined in ${e} with type ${typeof n}`);
}
i(XS, "validateVisitorMethods");
function nx(e, t = [], r) {
let n = {
_verified: !0,
_exploded: !0
};
Object.defineProperty(n, "_exploded", {
enumerable: !1
}), Object.defineProperty(n, "_verified", {
enumerable: !1
});
for (let s = 0; s < e.length; s++) {
let a = tx(e[s]), o = t[s], l = a;
(o || r) && (l = zS(l, o, r)), eo(n, l);
for (let u of Object.keys(a)) {
if (Us(u)) continue;
let c = a[u];
(o || r) && (c = zS(c, o, r));
let p = n[u] || (n[u] = {});
eo(p, c);
}
}
return n;
}
i(nx, "merge");
function zS(e, t, r) {
let n = {};
for (let s of ["enter", "exit"]) {
let a = e[s];
Array.isArray(a) && (a = a.map(function(o) {
let l = o;
return t && (l = /* @__PURE__ */ i(function(u) {
o.call(t, u, t);
}, "newFn")), r && (l = r(t?.key, s, l)), l !== o && (l.toString = () => o.toString()), l;
}), n[s] = a);
}
return n;
}
i(zS, "wrapWithStateOrWrapper");
function PY(e) {
for (let t of Object.keys(e)) {
if (Us(t)) continue;
let r = e[t];
typeof r == "function" && (e[t] = {
enter: r
});
}
}
i(PY, "ensureEntranceObjects");
function QS(e) {
e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]);
}
i(QS, "ensureCallbackArrays");
function AY(e, t) {
let r = `is${e}`, n = TY[r], s = /* @__PURE__ */ i(function(a) {
if (n.call(a))
return t.apply(this, arguments);
}, "newFn");
return s.toString = () => t.toString(), s;
}
i(AY, "wrapCheck");
function Us(e) {
return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" ||
e === "blacklist";
}
i(Us, "shouldIgnoreKey");
function eo(e, t) {
for (let r of ["enter", "exit"])
t[r] && (e[r] = [].concat(e[r] || [], t[r]));
}
i(eo, "mergePair");
var CY = {
FunctionParent(e) {
e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() :
KS.requeueComputedKeyAndDecorators.call(e)));
},
Property(e) {
e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : KS.requeueComputedKeyAndDecorators.
call(e));
}
};
function DY(e) {
return nx([CY, e]);
}
i(DY, "environmentVisitor");
});
// ../node_modules/@babel/traverse/lib/scope/lib/renamer.js
var sx = P((tu) => {
"use strict";
Object.defineProperty(tu, "__esModule", {
value: !0
});
tu.default = void 0;
var eu = Ce(), wY = eu, IY = ru(), _Y = Zl(), OY = dn(), {
getAssignmentIdentifiers: NY
} = wY, BY = {
ReferencedIdentifier({
node: e
}, t) {
e.name === t.oldName && (e.name = t.newName);
},
Scope(e, t) {
e.scope.bindingIdentifierEquals(t.oldName, t.binding.identifier) || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.
requeueComputedKeyAndDecorators() : OY.requeueComputedKeyAndDecorators.call(e)));
},
ObjectProperty({
node: e,
scope: t
}, r) {
let {
name: n
} = e.key;
if (e.shorthand && (n === r.oldName || n === r.newName) && t.getBindingIdentifier(n) === r.binding.identifier) {
e.shorthand = !1;
{
var s;
(s = e.extra) != null && s.shorthand && (e.extra.shorthand = !1);
}
}
},
"AssignmentExpression|Declaration|VariableDeclarator"(e, t) {
if (e.isVariableDeclaration()) return;
let r = e.isAssignmentExpression() ? NY(e.node) : e.getOuterBindingIdentifiers();
for (let n in r)
n === t.oldName && (r[n].name = t.newName);
}
}, em = class {
static {
i(this, "Renamer");
}
constructor(t, r, n) {
this.newName = n, this.oldName = r, this.binding = t;
}
maybeConvertFromExportDeclaration(t) {
let r = t.parentPath;
if (r.isExportDeclaration()) {
if (r.isExportDefaultDeclaration()) {
let {
declaration: n
} = r.node;
if (eu.isDeclaration(n) && !n.id)
return;
}
r.isExportAllDeclaration() || r.splitExportDeclaration();
}
}
maybeConvertFromClassFunctionDeclaration(t) {
return t;
}
maybeConvertFromClassFunctionExpression(t) {
return t;
}
rename() {
let {
binding: t,
oldName: r,
newName: n
} = this, {
scope: s,
path: a
} = t, o = a.find((c) => c.isDeclaration() || c.isFunctionExpression() || c.isClassExpression());
o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o);
let l = arguments[0] || s.block, u = {
discriminant: !0
};
eu.isMethod(l) && (l.computed && (u.key = !0), eu.isObjectMethod(l) || (u.decorators = !0)), (0, IY.traverseNode)(l, (0, _Y.explode)(BY),
s, this, s.path, u), arguments[0] || (s.removeOwnBinding(r), s.bindings[n] = t, this.binding.identifier.name = n), o && (this.maybeConvertFromClassFunctionDeclaration(
a), this.maybeConvertFromClassFunctionExpression(a));
}
};
tu.default = em;
});
// ../node_modules/@babel/traverse/lib/scope/binding.js
var ix = P((nu) => {
"use strict";
Object.defineProperty(nu, "__esModule", {
value: !0
});
nu.default = void 0;
var tm = class {
static {
i(this, "Binding");
}
constructor({
identifier: t,
scope: r,
path: n,
kind: s
}) {
this.identifier = void 0, this.scope = void 0, this.path = void 0, this.kind = void 0, this.constantViolations = [], this.constant = !0,
this.referencePaths = [], this.referenced = !1, this.references = 0, this.identifier = t, this.scope = r, this.path = n, this.kind = s,
(s === "var" || s === "hoisted") && kY(n) && this.reassign(n), this.clearValue();
}
deoptValue() {
this.clearValue(), this.hasDeoptedValue = !0;
}
setValue(t) {
this.hasDeoptedValue || (this.hasValue = !0, this.value = t);
}
clearValue() {
this.hasDeoptedValue = !1, this.hasValue = !1, this.value = null;
}
reassign(t) {
this.constant = !1, !this.constantViolations.includes(t) && this.constantViolations.push(t);
}
reference(t) {
this.referencePaths.includes(t) || (this.referenced = !0, this.references++, this.referencePaths.push(t));
}
dereference() {
this.references--, this.referenced = !!this.references;
}
};
nu.default = tm;
function kY(e) {
let t = !e.isVariableDeclarator() || e.node.init;
for (let {
parentPath: r,
key: n
} = e; r; {
parentPath: r,
key: n
} = r) {
if (r.isFunctionParent()) return !1;
if (n === "left" && r.isForXStatement() || t && n === "body" && r.isLoop())
return !0;
}
return !1;
}
i(kY, "isInitInLoop");
});
// ../node_modules/@babel/traverse/node_modules/globals/globals.json
var ax = P((fve, FY) => {
FY.exports = {
builtin: {
Array: !1,
ArrayBuffer: !1,
Atomics: !1,
BigInt: !1,
BigInt64Array: !1,
BigUint64Array: !1,
Boolean: !1,
constructor: !1,
DataView: !1,
Date: !1,
decodeURI: !1,
decodeURIComponent: !1,
encodeURI: !1,
encodeURIComponent: !1,
Error: !1,
escape: !1,
eval: !1,
EvalError: !1,
Float32Array: !1,
Float64Array: !1,
Function: !1,
globalThis: !1,
hasOwnProperty: !1,
Infinity: !1,
Int16Array: !1,
Int32Array: !1,
Int8Array: !1,
isFinite: !1,
isNaN: !1,
isPrototypeOf: !1,
JSON: !1,
Map: !1,
Math: !1,
NaN: !1,
Number: !1,
Object: !1,
parseFloat: !1,
parseInt: !1,
Promise: !1,
propertyIsEnumerable: !1,
Proxy: !1,
RangeError: !1,
ReferenceError: !1,
Reflect: !1,
RegExp: !1,
Set: !1,
SharedArrayBuffer: !1,
String: !1,
Symbol: !1,
SyntaxError: !1,
toLocaleString: !1,
toString: !1,
TypeError: !1,
Uint16Array: !1,
Uint32Array: !1,
Uint8Array: !1,
Uint8ClampedArray: !1,
undefined: !1,
unescape: !1,
URIError: !1,
valueOf: !1,
WeakMap: !1,
WeakSet: !1
},
es5: {
Array: !1,
Boolean: !1,
constructor: !1,
Date: !1,
decodeURI: !1,
decodeURIComponent: !1,
encodeURI: !1,
encodeURIComponent: !1,
Error: !1,
escape: !1,
eval: !1,
EvalError: !1,
Function: !1,
hasOwnProperty: !1,
Infinity: !1,
isFinite: !1,
isNaN: !1,
isPrototypeOf: !1,
JSON: !1,
Math: !1,
NaN: !1,
Number: !1,
Object: !1,
parseFloat: !1,
parseInt: !1,
propertyIsEnumerable: !1,
RangeError: !1,
ReferenceError: !1,
RegExp: !1,
String: !1,
SyntaxError: !1,
toLocaleString: !1,
toString: !1,
TypeError: !1,
undefined: !1,
unescape: !1,
URIError: !1,
valueOf: !1
},
es2015: {
Array: !1,
ArrayBuffer: !1,
Boolean: !1,
constructor: !1,
DataView: !1,
Date: !1,
decodeURI: !1,
decodeURIComponent: !1,
encodeURI: !1,
encodeURIComponent: !1,
Error: !1,
escape: !1,
eval: !1,
EvalError: !1,
Float32Array: !1,
Float64Array: !1,
Function: !1,
hasOwnProperty: !1,
Infinity: !1,
Int16Array: !1,
Int32Array: !1,
Int8Array: !1,
isFinite: !1,
isNaN: !1,
isPrototypeOf: !1,
JSON: !1,
Map: !1,
Math: !1,
NaN: !1,
Number: !1,
Object: !1,
parseFloat: !1,
parseInt: !1,
Promise: !1,
propertyIsEnumerable: !1,
Proxy: !1,
RangeError: !1,
ReferenceError: !1,
Reflect: !1,
RegExp: !1,
Set: !1,
String: !1,
Symbol: !1,
SyntaxError: !1,
toLocaleString: !1,
toString: !1,
TypeError: !1,
Uint16Array: !1,
Uint32Array: !1,
Uint8Array: !1,
Uint8ClampedArray: !1,
undefined: !1,
unescape: !1,
URIError: !1,
valueOf: !1,
WeakMap: !1,
WeakSet: !1
},
es2017: {
Array: !1,
ArrayBuffer: !1,
Atomics: !1,
Boolean: !1,
constructor: !1,
DataView: !1,
Date: !1,
decodeURI: !1,
decodeURIComponent: !1,
encodeURI: !1,
encodeURIComponent: !1,
Error: !1,
escape: !1,
eval: !1,
EvalError: !1,
Float32Array: !1,
Float64Array: !1,
Function: !1,
hasOwnProperty: !1,
Infinity: !1,
Int16Array: !1,
Int32Array: !1,
Int8Array: !1,
isFinite: !1,
isNaN: !1,
isPrototypeOf: !1,
JSON: !1,
Map: !1,
Math: !1,
NaN: !1,
Number: !1,
Object: !1,
parseFloat: !1,
parseInt: !1,
Promise: !1,
propertyIsEnumerable: !1,
Proxy: !1,
RangeError: !1,
ReferenceError: !1,
Reflect: !1,
RegExp: !1,
Set: !1,
SharedArrayBuffer: !1,
String: !1,
Symbol: !1,
SyntaxError: !1,
toLocaleString: !1,
toString: !1,
TypeError: !1,
Uint16Array: !1,
Uint32Array: !1,
Uint8Array: !1,
Uint8ClampedArray: !1,
undefined: !1,
unescape: !1,
URIError: !1,
valueOf: !1,
WeakMap: !1,
WeakSet: !1
},
browser: {
AbortController: !1,
AbortSignal: !1,
addEventListener: !1,
alert: !1,
AnalyserNode: !1,
Animation: !1,
AnimationEffectReadOnly: !1,
AnimationEffectTiming: !1,
AnimationEffectTimingReadOnly: !1,
AnimationEvent: !1,
AnimationPlaybackEvent: !1,
AnimationTimeline: !1,
applicationCache: !1,
ApplicationCache: !1,
ApplicationCacheErrorEvent: !1,
atob: !1,
Attr: !1,
Audio: !1,
AudioBuffer: !1,
AudioBufferSourceNode: !1,
AudioContext: !1,
AudioDestinationNode: !1,
AudioListener: !1,
AudioNode: !1,
AudioParam: !1,
AudioProcessingEvent: !1,
AudioScheduledSourceNode: !1,
"AudioWorkletGlobalScope ": !1,
AudioWorkletNode: !1,
AudioWorkletProcessor: !1,
BarProp: !1,
BaseAudioContext: !1,
BatteryManager: !1,
BeforeUnloadEvent: !1,
BiquadFilterNode: !1,
Blob: !1,
BlobEvent: !1,
blur: !1,
BroadcastChannel: !1,
btoa: !1,
BudgetService: !1,
ByteLengthQueuingStrategy: !1,
Cache: !1,
caches: !1,
CacheStorage: !1,
cancelAnimationFrame: !1,
cancelIdleCallback: !1,
CanvasCaptureMediaStreamTrack: !1,
CanvasGradient: !1,
CanvasPattern: !1,
CanvasRenderingContext2D: !1,
ChannelMergerNode: !1,
ChannelSplitterNode: !1,
CharacterData: !1,
clearInterval: !1,
clearTimeout: !1,
clientInformation: !1,
ClipboardEvent: !1,
close: !1,
closed: !1,
CloseEvent: !1,
Comment: !1,
CompositionEvent: !1,
confirm: !1,
console: !1,
ConstantSourceNode: !1,
ConvolverNode: !1,
CountQueuingStrategy: !1,
createImageBitmap: !1,
Credential: !1,
CredentialsContainer: !1,
crypto: !1,
Crypto: !1,
CryptoKey: !1,
CSS: !1,
CSSConditionRule: !1,
CSSFontFaceRule: !1,
CSSGroupingRule: !1,
CSSImportRule: !1,
CSSKeyframeRule: !1,
CSSKeyframesRule: !1,
CSSMediaRule: !1,
CSSNamespaceRule: !1,
CSSPageRule: !1,
CSSRule: !1,
CSSRuleList: !1,
CSSStyleDeclaration: !1,
CSSStyleRule: !1,
CSSStyleSheet: !1,
CSSSupportsRule: !1,
CustomElementRegistry: !1,
customElements: !1,
CustomEvent: !1,
DataTransfer: !1,
DataTransferItem: !1,
DataTransferItemList: !1,
defaultstatus: !1,
defaultStatus: !1,
DelayNode: !1,
DeviceMotionEvent: !1,
DeviceOrientationEvent: !1,
devicePixelRatio: !1,
dispatchEvent: !1,
document: !1,
Document: !1,
DocumentFragment: !1,
DocumentType: !1,
DOMError: !1,
DOMException: !1,
DOMImplementation: !1,
DOMMatrix: !1,
DOMMatrixReadOnly: !1,
DOMParser: !1,
DOMPoint: !1,
DOMPointReadOnly: !1,
DOMQuad: !1,
DOMRect: !1,
DOMRectReadOnly: !1,
DOMStringList: !1,
DOMStringMap: !1,
DOMTokenList: !1,
DragEvent: !1,
DynamicsCompressorNode: !1,
Element: !1,
ErrorEvent: !1,
event: !1,
Event: !1,
EventSource: !1,
EventTarget: !1,
external: !1,
fetch: !1,
File: !1,
FileList: !1,
FileReader: !1,
find: !1,
focus: !1,
FocusEvent: !1,
FontFace: !1,
FontFaceSetLoadEvent: !1,
FormData: !1,
frameElement: !1,
frames: !1,
GainNode: !1,
Gamepad: !1,
GamepadButton: !1,
GamepadEvent: !1,
getComputedStyle: !1,
getSelection: !1,
HashChangeEvent: !1,
Headers: !1,
history: !1,
History: !1,
HTMLAllCollection: !1,
HTMLAnchorElement: !1,
HTMLAreaElement: !1,
HTMLAudioElement: !1,
HTMLBaseElement: !1,
HTMLBodyElement: !1,
HTMLBRElement: !1,
HTMLButtonElement: !1,
HTMLCanvasElement: !1,
HTMLCollection: !1,
HTMLContentElement: !1,
HTMLDataElement: !1,
HTMLDataListElement: !1,
HTMLDetailsElement: !1,
HTMLDialogElement: !1,
HTMLDirectoryElement: !1,
HTMLDivElement: !1,
HTMLDListElement: !1,
HTMLDocument: !1,
HTMLElement: !1,
HTMLEmbedElement: !1,
HTMLFieldSetElement: !1,
HTMLFontElement: !1,
HTMLFormControlsCollection: !1,
HTMLFormElement: !1,
HTMLFrameElement: !1,
HTMLFrameSetElement: !1,
HTMLHeadElement: !1,
HTMLHeadingElement: !1,
HTMLHRElement: !1,
HTMLHtmlElement: !1,
HTMLIFrameElement: !1,
HTMLImageElement: !1,
HTMLInputElement: !1,
HTMLLabelElement: !1,
HTMLLegendElement: !1,
HTMLLIElement: !1,
HTMLLinkElement: !1,
HTMLMapElement: !1,
HTMLMarqueeElement: !1,
HTMLMediaElement: !1,
HTMLMenuElement: !1,
HTMLMetaElement: !1,
HTMLMeterElement: !1,
HTMLModElement: !1,
HTMLObjectElement: !1,
HTMLOListElement: !1,
HTMLOptGroupElement: !1,
HTMLOptionElement: !1,
HTMLOptionsCollection: !1,
HTMLOutputElement: !1,
HTMLParagraphElement: !1,
HTMLParamElement: !1,
HTMLPictureElement: !1,
HTMLPreElement: !1,
HTMLProgressElement: !1,
HTMLQuoteElement: !1,
HTMLScriptElement: !1,
HTMLSelectElement: !1,
HTMLShadowElement: !1,
HTMLSlotElement: !1,
HTMLSourceElement: !1,
HTMLSpanElement: !1,
HTMLStyleElement: !1,
HTMLTableCaptionElement: !1,
HTMLTableCellElement: !1,
HTMLTableColElement: !1,
HTMLTableElement: !1,
HTMLTableRowElement: !1,
HTMLTableSectionElement: !1,
HTMLTemplateElement: !1,
HTMLTextAreaElement: !1,
HTMLTimeElement: !1,
HTMLTitleElement: !1,
HTMLTrackElement: !1,
HTMLUListElement: !1,
HTMLUnknownElement: !1,
HTMLVideoElement: !1,
IDBCursor: !1,
IDBCursorWithValue: !1,
IDBDatabase: !1,
IDBFactory: !1,
IDBIndex: !1,
IDBKeyRange: !1,
IDBObjectStore: !1,
IDBOpenDBRequest: !1,
IDBRequest: !1,
IDBTransaction: !1,
IDBVersionChangeEvent: !1,
IdleDeadline: !1,
IIRFilterNode: !1,
Image: !1,
ImageBitmap: !1,
ImageBitmapRenderingContext: !1,
ImageCapture: !1,
ImageData: !1,
indexedDB: !1,
innerHeight: !1,
innerWidth: !1,
InputEvent: !1,
IntersectionObserver: !1,
IntersectionObserverEntry: !1,
Intl: !1,
isSecureContext: !1,
KeyboardEvent: !1,
KeyframeEffect: !1,
KeyframeEffectReadOnly: !1,
length: !1,
localStorage: !1,
location: !0,
Location: !1,
locationbar: !1,
matchMedia: !1,
MediaDeviceInfo: !1,
MediaDevices: !1,
MediaElementAudioSourceNode: !1,
MediaEncryptedEvent: !1,
MediaError: !1,
MediaKeyMessageEvent: !1,
MediaKeySession: !1,
MediaKeyStatusMap: !1,
MediaKeySystemAccess: !1,
MediaList: !1,
MediaQueryList: !1,
MediaQueryListEvent: !1,
MediaRecorder: !1,
MediaSettingsRange: !1,
MediaSource: !1,
MediaStream: !1,
MediaStreamAudioDestinationNode: !1,
MediaStreamAudioSourceNode: !1,
MediaStreamEvent: !1,
MediaStreamTrack: !1,
MediaStreamTrackEvent: !1,
menubar: !1,
MessageChannel: !1,
MessageEvent: !1,
MessagePort: !1,
MIDIAccess: !1,
MIDIConnectionEvent: !1,
MIDIInput: !1,
MIDIInputMap: !1,
MIDIMessageEvent: !1,
MIDIOutput: !1,
MIDIOutputMap: !1,
MIDIPort: !1,
MimeType: !1,
MimeTypeArray: !1,
MouseEvent: !1,
moveBy: !1,
moveTo: !1,
MutationEvent: !1,
MutationObserver: !1,
MutationRecord: !1,
name: !1,
NamedNodeMap: !1,
NavigationPreloadManager: !1,
navigator: !1,
Navigator: !1,
NetworkInformation: !1,
Node: !1,
NodeFilter: !1,
NodeIterator: !1,
NodeList: !1,
Notification: !1,
OfflineAudioCompletionEvent: !1,
OfflineAudioContext: !1,
offscreenBuffering: !1,
OffscreenCanvas: !0,
onabort: !0,
onafterprint: !0,
onanimationend: !0,
onanimationiteration: !0,
onanimationstart: !0,
onappinstalled: !0,
onauxclick: !0,
onbeforeinstallprompt: !0,
onbeforeprint: !0,
onbeforeunload: !0,
onblur: !0,
oncancel: !0,
oncanplay: !0,
oncanplaythrough: !0,
onchange: !0,
onclick: !0,
onclose: !0,
oncontextmenu: !0,
oncuechange: !0,
ondblclick: !0,
ondevicemotion: !0,
ondeviceorientation: !0,
ondeviceorientationabsolute: !0,
ondrag: !0,
ondragend: !0,
ondragenter: !0,
ondragleave: !0,
ondragover: !0,
ondragstart: !0,
ondrop: !0,
ondurationchange: !0,
onemptied: !0,
onended: !0,
onerror: !0,
onfocus: !0,
ongotpointercapture: !0,
onhashchange: !0,
oninput: !0,
oninvalid: !0,
onkeydown: !0,
onkeypress: !0,
onkeyup: !0,
onlanguagechange: !0,
onload: !0,
onloadeddata: !0,
onloadedmetadata: !0,
onloadstart: !0,
onlostpointercapture: !0,
onmessage: !0,
onmessageerror: !0,
onmousedown: !0,
onmouseenter: !0,
onmouseleave: !0,
onmousemove: !0,
onmouseout: !0,
onmouseover: !0,
onmouseup: !0,
onmousewheel: !0,
onoffline: !0,
ononline: !0,
onpagehide: !0,
onpageshow: !0,
onpause: !0,
onplay: !0,
onplaying: !0,
onpointercancel: !0,
onpointerdown: !0,
onpointerenter: !0,
onpointerleave: !0,
onpointermove: !0,
onpointerout: !0,
onpointerover: !0,
onpointerup: !0,
onpopstate: !0,
onprogress: !0,
onratechange: !0,
onrejectionhandled: !0,
onreset: !0,
onresize: !0,
onscroll: !0,
onsearch: !0,
onseeked: !0,
onseeking: !0,
onselect: !0,
onstalled: !0,
onstorage: !0,
onsubmit: !0,
onsuspend: !0,
ontimeupdate: !0,
ontoggle: !0,
ontransitionend: !0,
onunhandledrejection: !0,
onunload: !0,
onvolumechange: !0,
onwaiting: !0,
onwheel: !0,
open: !1,
openDatabase: !1,
opener: !1,
Option: !1,
origin: !1,
OscillatorNode: !1,
outerHeight: !1,
outerWidth: !1,
PageTransitionEvent: !1,
pageXOffset: !1,
pageYOffset: !1,
PannerNode: !1,
parent: !1,
Path2D: !1,
PaymentAddress: !1,
PaymentRequest: !1,
PaymentRequestUpdateEvent: !1,
PaymentResponse: !1,
performance: !1,
Performance: !1,
PerformanceEntry: !1,
PerformanceLongTaskTiming: !1,
PerformanceMark: !1,
PerformanceMeasure: !1,
PerformanceNavigation: !1,
PerformanceNavigationTiming: !1,
PerformanceObserver: !1,
PerformanceObserverEntryList: !1,
PerformancePaintTiming: !1,
PerformanceResourceTiming: !1,
PerformanceTiming: !1,
PeriodicWave: !1,
Permissions: !1,
PermissionStatus: !1,
personalbar: !1,
PhotoCapabilities: !1,
Plugin: !1,
PluginArray: !1,
PointerEvent: !1,
PopStateEvent: !1,
postMessage: !1,
Presentation: !1,
PresentationAvailability: !1,
PresentationConnection: !1,
PresentationConnectionAvailableEvent: !1,
PresentationConnectionCloseEvent: !1,
PresentationConnectionList: !1,
PresentationReceiver: !1,
PresentationRequest: !1,
print: !1,
ProcessingInstruction: !1,
ProgressEvent: !1,
PromiseRejectionEvent: !1,
prompt: !1,
PushManager: !1,
PushSubscription: !1,
PushSubscriptionOptions: !1,
queueMicrotask: !1,
RadioNodeList: !1,
Range: !1,
ReadableStream: !1,
registerProcessor: !1,
RemotePlayback: !1,
removeEventListener: !1,
Request: !1,
requestAnimationFrame: !1,
requestIdleCallback: !1,
resizeBy: !1,
ResizeObserver: !1,
ResizeObserverEntry: !1,
resizeTo: !1,
Response: !1,
RTCCertificate: !1,
RTCDataChannel: !1,
RTCDataChannelEvent: !1,
RTCDtlsTransport: !1,
RTCIceCandidate: !1,
RTCIceGatherer: !1,
RTCIceTransport: !1,
RTCPeerConnection: !1,
RTCPeerConnectionIceEvent: !1,
RTCRtpContributingSource: !1,
RTCRtpReceiver: !1,
RTCRtpSender: !1,
RTCSctpTransport: !1,
RTCSessionDescription: !1,
RTCStatsReport: !1,
RTCTrackEvent: !1,
screen: !1,
Screen: !1,
screenLeft: !1,
ScreenOrientation: !1,
screenTop: !1,
screenX: !1,
screenY: !1,
ScriptProcessorNode: !1,
scroll: !1,
scrollbars: !1,
scrollBy: !1,
scrollTo: !1,
scrollX: !1,
scrollY: !1,
SecurityPolicyViolationEvent: !1,
Selection: !1,
self: !1,
ServiceWorker: !1,
ServiceWorkerContainer: !1,
ServiceWorkerRegistration: !1,
sessionStorage: !1,
setInterval: !1,
setTimeout: !1,
ShadowRoot: !1,
SharedWorker: !1,
SourceBuffer: !1,
SourceBufferList: !1,
speechSynthesis: !1,
SpeechSynthesisEvent: !1,
SpeechSynthesisUtterance: !1,
StaticRange: !1,
status: !1,
statusbar: !1,
StereoPannerNode: !1,
stop: !1,
Storage: !1,
StorageEvent: !1,
StorageManager: !1,
styleMedia: !1,
StyleSheet: !1,
StyleSheetList: !1,
SubtleCrypto: !1,
SVGAElement: !1,
SVGAngle: !1,
SVGAnimatedAngle: !1,
SVGAnimatedBoolean: !1,
SVGAnimatedEnumeration: !1,
SVGAnimatedInteger: !1,
SVGAnimatedLength: !1,
SVGAnimatedLengthList: !1,
SVGAnimatedNumber: !1,
SVGAnimatedNumberList: !1,
SVGAnimatedPreserveAspectRatio: !1,
SVGAnimatedRect: !1,
SVGAnimatedString: !1,
SVGAnimatedTransformList: !1,
SVGAnimateElement: !1,
SVGAnimateMotionElement: !1,
SVGAnimateTransformElement: !1,
SVGAnimationElement: !1,
SVGCircleElement: !1,
SVGClipPathElement: !1,
SVGComponentTransferFunctionElement: !1,
SVGDefsElement: !1,
SVGDescElement: !1,
SVGDiscardElement: !1,
SVGElement: !1,
SVGEllipseElement: !1,
SVGFEBlendElement: !1,
SVGFEColorMatrixElement: !1,
SVGFEComponentTransferElement: !1,
SVGFECompositeElement: !1,
SVGFEConvolveMatrixElement: !1,
SVGFEDiffuseLightingElement: !1,
SVGFEDisplacementMapElement: !1,
SVGFEDistantLightElement: !1,
SVGFEDropShadowElement: !1,
SVGFEFloodElement: !1,
SVGFEFuncAElement: !1,
SVGFEFuncBElement: !1,
SVGFEFuncGElement: !1,
SVGFEFuncRElement: !1,
SVGFEGaussianBlurElement: !1,
SVGFEImageElement: !1,
SVGFEMergeElement: !1,
SVGFEMergeNodeElement: !1,
SVGFEMorphologyElement: !1,
SVGFEOffsetElement: !1,
SVGFEPointLightElement: !1,
SVGFESpecularLightingElement: !1,
SVGFESpotLightElement: !1,
SVGFETileElement: !1,
SVGFETurbulenceElement: !1,
SVGFilterElement: !1,
SVGForeignObjectElement: !1,
SVGGElement: !1,
SVGGeometryElement: !1,
SVGGradientElement: !1,
SVGGraphicsElement: !1,
SVGImageElement: !1,
SVGLength: !1,
SVGLengthList: !1,
SVGLinearGradientElement: !1,
SVGLineElement: !1,
SVGMarkerElement: !1,
SVGMaskElement: !1,
SVGMatrix: !1,
SVGMetadataElement: !1,
SVGMPathElement: !1,
SVGNumber: !1,
SVGNumberList: !1,
SVGPathElement: !1,
SVGPatternElement: !1,
SVGPoint: !1,
SVGPointList: !1,
SVGPolygonElement: !1,
SVGPolylineElement: !1,
SVGPreserveAspectRatio: !1,
SVGRadialGradientElement: !1,
SVGRect: !1,
SVGRectElement: !1,
SVGScriptElement: !1,
SVGSetElement: !1,
SVGStopElement: !1,
SVGStringList: !1,
SVGStyleElement: !1,
SVGSVGElement: !1,
SVGSwitchElement: !1,
SVGSymbolElement: !1,
SVGTextContentElement: !1,
SVGTextElement: !1,
SVGTextPathElement: !1,
SVGTextPositioningElement: !1,
SVGTitleElement: !1,
SVGTransform: !1,
SVGTransformList: !1,
SVGTSpanElement: !1,
SVGUnitTypes: !1,
SVGUseElement: !1,
SVGViewElement: !1,
TaskAttributionTiming: !1,
Text: !1,
TextDecoder: !1,
TextEncoder: !1,
TextEvent: !1,
TextMetrics: !1,
TextTrack: !1,
TextTrackCue: !1,
TextTrackCueList: !1,
TextTrackList: !1,
TimeRanges: !1,
toolbar: !1,
top: !1,
Touch: !1,
TouchEvent: !1,
TouchList: !1,
TrackEvent: !1,
TransitionEvent: !1,
TreeWalker: !1,
UIEvent: !1,
URL: !1,
URLSearchParams: !1,
ValidityState: !1,
visualViewport: !1,
VisualViewport: !1,
VTTCue: !1,
WaveShaperNode: !1,
WebAssembly: !1,
WebGL2RenderingContext: !1,
WebGLActiveInfo: !1,
WebGLBuffer: !1,
WebGLContextEvent: !1,
WebGLFramebuffer: !1,
WebGLProgram: !1,
WebGLQuery: !1,
WebGLRenderbuffer: !1,
WebGLRenderingContext: !1,
WebGLSampler: !1,
WebGLShader: !1,
WebGLShaderPrecisionFormat: !1,
WebGLSync: !1,
WebGLTexture: !1,
WebGLTransformFeedback: !1,
WebGLUniformLocation: !1,
WebGLVertexArrayObject: !1,
WebSocket: !1,
WheelEvent: !1,
window: !1,
Window: !1,
Worker: !1,
WritableStream: !1,
XMLDocument: !1,
XMLHttpRequest: !1,
XMLHttpRequestEventTarget: !1,
XMLHttpRequestUpload: !1,
XMLSerializer: !1,
XPathEvaluator: !1,
XPathExpression: !1,
XPathResult: !1,
XSLTProcessor: !1
},
worker: {
addEventListener: !1,
applicationCache: !1,
atob: !1,
Blob: !1,
BroadcastChannel: !1,
btoa: !1,
Cache: !1,
caches: !1,
clearInterval: !1,
clearTimeout: !1,
close: !0,
console: !1,
fetch: !1,
FileReaderSync: !1,
FormData: !1,
Headers: !1,
IDBCursor: !1,
IDBCursorWithValue: !1,
IDBDatabase: !1,
IDBFactory: !1,
IDBIndex: !1,
IDBKeyRange: !1,
IDBObjectStore: !1,
IDBOpenDBRequest: !1,
IDBRequest: !1,
IDBTransaction: !1,
IDBVersionChangeEvent: !1,
ImageData: !1,
importScripts: !0,
indexedDB: !1,
location: !1,
MessageChannel: !1,
MessagePort: !1,
name: !1,
navigator: !1,
Notification: !1,
onclose: !0,
onconnect: !0,
onerror: !0,
onlanguagechange: !0,
onmessage: !0,
onoffline: !0,
ononline: !0,
onrejectionhandled: !0,
onunhandledrejection: !0,
performance: !1,
Performance: !1,
PerformanceEntry: !1,
PerformanceMark: !1,
PerformanceMeasure: !1,
PerformanceNavigation: !1,
PerformanceResourceTiming: !1,
PerformanceTiming: !1,
postMessage: !0,
Promise: !1,
queueMicrotask: !1,
removeEventListener: !1,
Request: !1,
Response: !1,
self: !0,
ServiceWorkerRegistration: !1,
setInterval: !1,
setTimeout: !1,
TextDecoder: !1,
TextEncoder: !1,
URL: !1,
URLSearchParams: !1,
WebSocket: !1,
Worker: !1,
WorkerGlobalScope: !1,
XMLHttpRequest: !1
},
node: {
__dirname: !1,
__filename: !1,
Buffer: !1,
clearImmediate: !1,
clearInterval: !1,
clearTimeout: !1,
console: !1,
exports: !0,
global: !1,
Intl: !1,
module: !1,
process: !1,
queueMicrotask: !1,
require: !1,
setImmediate: !1,
setInterval: !1,
setTimeout: !1,
TextDecoder: !1,
TextEncoder: !1,
URL: !1,
URLSearchParams: !1
},
commonjs: {
exports: !0,
global: !1,
module: !1,
require: !1
},
amd: {
define: !1,
require: !1
},
mocha: {
after: !1,
afterEach: !1,
before: !1,
beforeEach: !1,
context: !1,
describe: !1,
it: !1,
mocha: !1,
run: !1,
setup: !1,
specify: !1,
suite: !1,
suiteSetup: !1,
suiteTeardown: !1,
teardown: !1,
test: !1,
xcontext: !1,
xdescribe: !1,
xit: !1,
xspecify: !1
},
jasmine: {
afterAll: !1,
afterEach: !1,
beforeAll: !1,
beforeEach: !1,
describe: !1,
expect: !1,
fail: !1,
fdescribe: !1,
fit: !1,
it: !1,
jasmine: !1,
pending: !1,
runs: !1,
spyOn: !1,
spyOnProperty: !1,
waits: !1,
waitsFor: !1,
xdescribe: !1,
xit: !1
},
jest: {
afterAll: !1,
afterEach: !1,
beforeAll: !1,
beforeEach: !1,
describe: !1,
expect: !1,
fdescribe: !1,
fit: !1,
it: !1,
jest: !1,
pit: !1,
require: !1,
test: !1,
xdescribe: !1,
xit: !1,
xtest: !1
},
qunit: {
asyncTest: !1,
deepEqual: !1,
equal: !1,
expect: !1,
module: !1,
notDeepEqual: !1,
notEqual: !1,
notOk: !1,
notPropEqual: !1,
notStrictEqual: !1,
ok: !1,
propEqual: !1,
QUnit: !1,
raises: !1,
start: !1,
stop: !1,
strictEqual: !1,
test: !1,
throws: !1
},
phantomjs: {
console: !0,
exports: !0,
phantom: !0,
require: !0,
WebPage: !0
},
couch: {
emit: !1,
exports: !1,
getRow: !1,
log: !1,
module: !1,
provides: !1,
require: !1,
respond: !1,
send: !1,
start: !1,
sum: !1
},
rhino: {
defineClass: !1,
deserialize: !1,
gc: !1,
help: !1,
importClass: !1,
importPackage: !1,
java: !1,
load: !1,
loadClass: !1,
Packages: !1,
print: !1,
quit: !1,
readFile: !1,
readUrl: !1,
runCommand: !1,
seal: !1,
serialize: !1,
spawn: !1,
sync: !1,
toint32: !1,
version: !1
},
nashorn: {
__DIR__: !1,
__FILE__: !1,
__LINE__: !1,
com: !1,
edu: !1,
exit: !1,
java: !1,
Java: !1,
javafx: !1,
JavaImporter: !1,
javax: !1,
JSAdapter: !1,
load: !1,
loadWithNewGlobal: !1,
org: !1,
Packages: !1,
print: !1,
quit: !1
},
wsh: {
ActiveXObject: !0,
Enumerator: !0,
GetObject: !0,
ScriptEngine: !0,
ScriptEngineBuildVersion: !0,
ScriptEngineMajorVersion: !0,
ScriptEngineMinorVersion: !0,
VBArray: !0,
WScript: !0,
WSH: !0,
XDomainRequest: !0
},
jquery: {
$: !1,
jQuery: !1
},
yui: {
YAHOO: !1,
YAHOO_config: !1,
YUI: !1,
YUI_config: !1
},
shelljs: {
cat: !1,
cd: !1,
chmod: !1,
config: !1,
cp: !1,
dirs: !1,
echo: !1,
env: !1,
error: !1,
exec: !1,
exit: !1,
find: !1,
grep: !1,
ln: !1,
ls: !1,
mkdir: !1,
mv: !1,
popd: !1,
pushd: !1,
pwd: !1,
rm: !1,
sed: !1,
set: !1,
target: !1,
tempdir: !1,
test: !1,
touch: !1,
which: !1
},
prototypejs: {
$: !1,
$$: !1,
$A: !1,
$break: !1,
$continue: !1,
$F: !1,
$H: !1,
$R: !1,
$w: !1,
Abstract: !1,
Ajax: !1,
Autocompleter: !1,
Builder: !1,
Class: !1,
Control: !1,
Draggable: !1,
Draggables: !1,
Droppables: !1,
Effect: !1,
Element: !1,
Enumerable: !1,
Event: !1,
Field: !1,
Form: !1,
Hash: !1,
Insertion: !1,
ObjectRange: !1,
PeriodicalExecuter: !1,
Position: !1,
Prototype: !1,
Scriptaculous: !1,
Selector: !1,
Sortable: !1,
SortableObserver: !1,
Sound: !1,
Template: !1,
Toggle: !1,
Try: !1
},
meteor: {
_: !1,
$: !1,
Accounts: !1,
AccountsClient: !1,
AccountsCommon: !1,
AccountsServer: !1,
App: !1,
Assets: !1,
Blaze: !1,
check: !1,
Cordova: !1,
DDP: !1,
DDPRateLimiter: !1,
DDPServer: !1,
Deps: !1,
EJSON: !1,
Email: !1,
HTTP: !1,
Log: !1,
Match: !1,
Meteor: !1,
Mongo: !1,
MongoInternals: !1,
Npm: !1,
Package: !1,
Plugin: !1,
process: !1,
Random: !1,
ReactiveDict: !1,
ReactiveVar: !1,
Router: !1,
ServiceConfiguration: !1,
Session: !1,
share: !1,
Spacebars: !1,
Template: !1,
Tinytest: !1,
Tracker: !1,
UI: !1,
Utils: !1,
WebApp: !1,
WebAppInternals: !1
},
mongo: {
_isWindows: !1,
_rand: !1,
BulkWriteResult: !1,
cat: !1,
cd: !1,
connect: !1,
db: !1,
getHostName: !1,
getMemInfo: !1,
hostname: !1,
ISODate: !1,
listFiles: !1,
load: !1,
ls: !1,
md5sumFile: !1,
mkdir: !1,
Mongo: !1,
NumberInt: !1,
NumberLong: !1,
ObjectId: !1,
PlanCache: !1,
print: !1,
printjson: !1,
pwd: !1,
quit: !1,
removeFile: !1,
rs: !1,
sh: !1,
UUID: !1,
version: !1,
WriteResult: !1
},
applescript: {
$: !1,
Application: !1,
Automation: !1,
console: !1,
delay: !1,
Library: !1,
ObjC: !1,
ObjectSpecifier: !1,
Path: !1,
Progress: !1,
Ref: !1
},
serviceworker: {
addEventListener: !1,
applicationCache: !1,
atob: !1,
Blob: !1,
BroadcastChannel: !1,
btoa: !1,
Cache: !1,
caches: !1,
CacheStorage: !1,
clearInterval: !1,
clearTimeout: !1,
Client: !1,
clients: !1,
Clients: !1,
close: !0,
console: !1,
ExtendableEvent: !1,
ExtendableMessageEvent: !1,
fetch: !1,
FetchEvent: !1,
FileReaderSync: !1,
FormData: !1,
Headers: !1,
IDBCursor: !1,
IDBCursorWithValue: !1,
IDBDatabase: !1,
IDBFactory: !1,
IDBIndex: !1,
IDBKeyRange: !1,
IDBObjectStore: !1,
IDBOpenDBRequest: !1,
IDBRequest: !1,
IDBTransaction: !1,
IDBVersionChangeEvent: !1,
ImageData: !1,
importScripts: !1,
indexedDB: !1,
location: !1,
MessageChannel: !1,
MessagePort: !1,
name: !1,
navigator: !1,
Notification: !1,
onclose: !0,
onconnect: !0,
onerror: !0,
onfetch: !0,
oninstall: !0,
onlanguagechange: !0,
onmessage: !0,
onmessageerror: !0,
onnotificationclick: !0,
onnotificationclose: !0,
onoffline: !0,
ononline: !0,
onpush: !0,
onpushsubscriptionchange: !0,
onrejectionhandled: !0,
onsync: !0,
onunhandledrejection: !0,
performance: !1,
Performance: !1,
PerformanceEntry: !1,
PerformanceMark: !1,
PerformanceMeasure: !1,
PerformanceNavigation: !1,
PerformanceResourceTiming: !1,
PerformanceTiming: !1,
postMessage: !0,
Promise: !1,
queueMicrotask: !1,
registration: !1,
removeEventListener: !1,
Request: !1,
Response: !1,
self: !1,
ServiceWorker: !1,
ServiceWorkerContainer: !1,
ServiceWorkerGlobalScope: !1,
ServiceWorkerMessageEvent: !1,
ServiceWorkerRegistration: !1,
setInterval: !1,
setTimeout: !1,
skipWaiting: !1,
TextDecoder: !1,
TextEncoder: !1,
URL: !1,
URLSearchParams: !1,
WebSocket: !1,
WindowClient: !1,
Worker: !1,
WorkerGlobalScope: !1,
XMLHttpRequest: !1
},
atomtest: {
advanceClock: !1,
fakeClearInterval: !1,
fakeClearTimeout: !1,
fakeSetInterval: !1,
fakeSetTimeout: !1,
resetTimeouts: !1,
waitsForPromise: !1
},
embertest: {
andThen: !1,
click: !1,
currentPath: !1,
currentRouteName: !1,
currentURL: !1,
fillIn: !1,
find: !1,
findAll: !1,
findWithAssert: !1,
keyEvent: !1,
pauseTest: !1,
resumeTest: !1,
triggerEvent: !1,
visit: !1,
wait: !1
},
protractor: {
$: !1,
$$: !1,
browser: !1,
by: !1,
By: !1,
DartObject: !1,
element: !1,
protractor: !1
},
"shared-node-browser": {
clearInterval: !1,
clearTimeout: !1,
console: !1,
setInterval: !1,
setTimeout: !1,
URL: !1,
URLSearchParams: !1
},
webextensions: {
browser: !1,
chrome: !1,
opr: !1
},
greasemonkey: {
cloneInto: !1,
createObjectIn: !1,
exportFunction: !1,
GM: !1,
GM_addStyle: !1,
GM_deleteValue: !1,
GM_getResourceText: !1,
GM_getResourceURL: !1,
GM_getValue: !1,
GM_info: !1,
GM_listValues: !1,
GM_log: !1,
GM_openInTab: !1,
GM_registerMenuCommand: !1,
GM_setClipboard: !1,
GM_setValue: !1,
GM_xmlhttpRequest: !1,
unsafeWindow: !1
},
devtools: {
$: !1,
$_: !1,
$$: !1,
$0: !1,
$1: !1,
$2: !1,
$3: !1,
$4: !1,
$x: !1,
chrome: !1,
clear: !1,
copy: !1,
debug: !1,
dir: !1,
dirxml: !1,
getEventListeners: !1,
inspect: !1,
keys: !1,
monitor: !1,
monitorEvents: !1,
profile: !1,
profileEnd: !1,
queryObjects: !1,
table: !1,
undebug: !1,
unmonitor: !1,
unmonitorEvents: !1,
values: !1
}
};
});
// ../node_modules/@babel/traverse/node_modules/globals/index.js
var lx = P((dve, ox) => {
"use strict";
ox.exports = ax();
});
// ../node_modules/@babel/traverse/lib/cache.js
var $s = P((Er) => {
"use strict";
Object.defineProperty(Er, "__esModule", {
value: !0
});
Er.clear = LY;
Er.clearPath = ux;
Er.clearScope = cx;
Er.getCachedPaths = MY;
Er.getOrCreateCachedPaths = RY;
Er.scope = Er.path = void 0;
var su = Er.path = /* @__PURE__ */ new WeakMap(), jY = Er.scope = /* @__PURE__ */ new WeakMap();
function LY() {
ux(), cx();
}
i(LY, "clear");
function ux() {
Er.path = su = /* @__PURE__ */ new WeakMap();
}
i(ux, "clearPath");
function cx() {
Er.scope = jY = /* @__PURE__ */ new WeakMap();
}
i(cx, "clearScope");
var rm = Object.freeze({});
function MY(e, t) {
var r;
return e = null, (r = su.get(e ?? rm)) == null ? void 0 : r.get(t);
}
i(MY, "getCachedPaths");
function RY(e, t) {
e = null;
let r = su.get(e ?? rm);
r || su.set(e ?? rm, r = /* @__PURE__ */ new WeakMap());
let n = r.get(t);
return n || r.set(t, n = /* @__PURE__ */ new Map()), n;
}
i(RY, "getOrCreateCachedPaths");
});
// ../node_modules/@babel/traverse/lib/scope/index.js
var om = P((iu) => {
"use strict";
Object.defineProperty(iu, "__esModule", {
value: !0
});
iu.default = void 0;
var qY = sx(), Ex = _t(), UY = ix(), VY = lx(), Tx = Ce(), Sx = Tx, px = $s(), {
assignmentExpression: $Y,
callExpression: fx,
cloneNode: dx,
getBindingIdentifiers: xx,
identifier: Ks,
isArrayExpression: vx,
isBinary: WY,
isCallExpression: hx,
isClass: KY,
isClassBody: GY,
isClassDeclaration: HY,
isExportAllDeclaration: Px,
isExportDefaultDeclaration: YY,
isExportNamedDeclaration: nm,
isFunctionDeclaration: JY,
isIdentifier: Ws,
isImportDeclaration: sm,
isLiteral: XY,
isMemberExpression: zY,
isMethod: QY,
isModuleSpecifier: ZY,
isNullLiteral: eJ,
isObjectExpression: tJ,
isProperty: rJ,
isPureish: nJ,
isRegExpLiteral: sJ,
isSuper: iJ,
isTaggedTemplateExpression: aJ,
isTemplateLiteral: Ax,
isThisExpression: mx,
isUnaryExpression: oJ,
isVariableDeclaration: lJ,
expressionStatement: uJ,
matchesPattern: yx,
memberExpression: im,
numericLiteral: cJ,
toIdentifier: pJ,
variableDeclaration: fJ,
variableDeclarator: dJ,
isRecordExpression: hJ,
isTupleExpression: mJ,
isObjectProperty: yJ,
isTopicReference: gx,
isMetaProperty: gJ,
isPrivateName: bJ,
isExportDeclaration: EJ,
buildUndefinedNode: TJ,
sequenceExpression: SJ
} = Tx;
function ut(e, t) {
switch (e?.type) {
default:
if (sm(e) || EJ(e)) {
var r;
if ((Px(e) || nm(e) || sm(e)) && e.source)
ut(e.source, t);
else if ((nm(e) || sm(e)) && (r = e.specifiers) != null && r.length)
for (let n of e.specifiers) ut(n, t);
else (YY(e) || nm(e)) && e.declaration && ut(e.declaration, t);
} else ZY(e) ? ut(e.local, t) : XY(e) && !eJ(e) && !sJ(e) && !Ax(e) && t.push(e.value);
break;
case "MemberExpression":
case "OptionalMemberExpression":
case "JSXMemberExpression":
ut(e.object, t), ut(e.property, t);
break;
case "Identifier":
case "JSXIdentifier":
t.push(e.name);
break;
case "CallExpression":
case "OptionalCallExpression":
case "NewExpression":
ut(e.callee, t);
break;
case "ObjectExpression":
case "ObjectPattern":
for (let n of e.properties)
ut(n, t);
break;
case "SpreadElement":
case "RestElement":
ut(e.argument, t);
break;
case "ObjectProperty":
case "ObjectMethod":
case "ClassProperty":
case "ClassMethod":
case "ClassPrivateProperty":
case "ClassPrivateMethod":
ut(e.key, t);
break;
case "ThisExpression":
t.push("this");
break;
case "Super":
t.push("super");
break;
case "Import":
t.push("import");
break;
case "DoExpression":
t.push("do");
break;
case "YieldExpression":
t.push("yield"), ut(e.argument, t);
break;
case "AwaitExpression":
t.push("await"), ut(e.argument, t);
break;
case "AssignmentExpression":
ut(e.left, t);
break;
case "VariableDeclarator":
ut(e.id, t);
break;
case "FunctionExpression":
case "FunctionDeclaration":
case "ClassExpression":
case "ClassDeclaration":
ut(e.id, t);
break;
case "PrivateName":
ut(e.id, t);
break;
case "ParenthesizedExpression":
ut(e.expression, t);
break;
case "UnaryExpression":
case "UpdateExpression":
ut(e.argument, t);
break;
case "MetaProperty":
ut(e.meta, t), ut(e.property, t);
break;
case "JSXElement":
ut(e.openingElement, t);
break;
case "JSXOpeningElement":
ut(e.name, t);
break;
case "JSXFragment":
ut(e.openingFragment, t);
break;
case "JSXOpeningFragment":
t.push("Fragment");
break;
case "JSXNamespacedName":
ut(e.namespace, t), ut(e.name, t);
break;
}
}
i(ut, "gatherNodeParts");
function bx(e) {
e.references = /* @__PURE__ */ Object.create(null), e.bindings = /* @__PURE__ */ Object.create(null), e.globals = /* @__PURE__ */ Object.
create(null), e.uids = /* @__PURE__ */ Object.create(null);
}
i(bx, "resetScope");
am = Symbol.for("should not be considered a local binding");
var am, xJ = {
ForStatement(e) {
let t = e.get("init");
if (t.isVar()) {
let {
scope: r
} = e;
(r.getFunctionParent() || r.getProgramParent()).registerBinding("var", t);
}
},
Declaration(e) {
if (e.isBlockScoped() || e.isImportDeclaration() || e.isExportDeclaration()) return;
(e.scope.getFunctionParent() || e.scope.getProgramParent()).registerDeclaration(e);
},
ImportDeclaration(e) {
e.scope.getBlockParent().registerDeclaration(e);
},
TSImportEqualsDeclaration(e) {
e.scope.getBlockParent().registerDeclaration(e);
},
ReferencedIdentifier(e, t) {
Sx.isTSQualifiedName(e.parent) && e.parent.right === e.node || e.parentPath.isTSImportEqualsDeclaration() || t.references.push(e);
},
ForXStatement(e, t) {
let r = e.get("left");
if (r.isPattern() || r.isIdentifier())
t.constantViolations.push(e);
else if (r.isVar()) {
let {
scope: n
} = e;
(n.getFunctionParent() || n.getProgramParent()).registerBinding("var", r);
}
},
ExportDeclaration: {
exit(e) {
let {
node: t,
scope: r
} = e;
if (Px(t)) return;
let n = t.declaration;
if (HY(n) || JY(n)) {
let s = n.id;
if (!s) return;
let a = r.getBinding(s.name);
a?.reference(e);
} else if (lJ(n))
for (let s of n.declarations)
for (let a of Object.keys(xx(s))) {
let o = r.getBinding(a);
o?.reference(e);
}
}
},
LabeledStatement(e) {
e.scope.getBlockParent().registerDeclaration(e);
},
AssignmentExpression(e, t) {
t.assignments.push(e);
},
UpdateExpression(e, t) {
t.constantViolations.push(e);
},
UnaryExpression(e, t) {
e.node.operator === "delete" && t.constantViolations.push(e);
},
BlockScoped(e) {
let t = e.scope;
if (t.path === e && (t = t.parent), t.getBlockParent().registerDeclaration(e), e.isClassDeclaration() && e.node.id) {
let s = e.node.id.name;
e.scope.bindings[s] = e.scope.parent.getBinding(s);
}
},
CatchClause(e) {
e.scope.registerBinding("let", e);
},
Function(e) {
let t = e.get("params");
for (let r of t)
e.scope.registerBinding("param", r);
e.isFunctionExpression() && e.node.id && !e.node.id[am] && e.scope.registerBinding("local", e.get("id"), e);
},
ClassExpression(e) {
e.node.id && !e.node.id[am] && e.scope.registerBinding("local", e.get("id"), e);
},
TSTypeAnnotation(e) {
e.skip();
}
}, to, vJ = 0, Kr = class e {
static {
i(this, "Scope");
}
constructor(t) {
this.uid = void 0, this.path = void 0, this.block = void 0, this.inited = void 0, this.labels = void 0, this.bindings = void 0, this.references =
void 0, this.globals = void 0, this.uids = void 0, this.data = void 0, this.crawling = void 0;
let {
node: r
} = t, n = px.scope.get(r);
if (n?.path === t)
return n;
px.scope.set(r, this), this.uid = vJ++, this.block = r, this.path = t, this.labels = /* @__PURE__ */ new Map(), this.inited = !1;
}
get parent() {
var t;
let r, n = this.path;
do {
var s;
let a = n.key === "key" || n.listKey === "decorators";
n = n.parentPath, a && n.isMethod() && (n = n.parentPath), (s = n) != null && s.isScope() && (r = n);
} while (n && !r);
return (t = r) == null ? void 0 : t.scope;
}
generateDeclaredUidIdentifier(t) {
let r = this.generateUidIdentifier(t);
return this.push({
id: r
}), dx(r);
}
generateUidIdentifier(t) {
return Ks(this.generateUid(t));
}
generateUid(t = "temp") {
t = pJ(t).replace(/^_+/, "").replace(/\d+$/g, "");
let r, n = 1;
do
r = `_${t}`, n > 1 && (r += n), n++;
while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r));
let s = this.getProgramParent();
return s.references[r] = !0, s.uids[r] = !0, r;
}
generateUidBasedOnNode(t, r) {
let n = [];
ut(t, n);
let s = n.join("$");
return s = s.replace(/^_/, "") || r || "ref", this.generateUid(s.slice(0, 20));
}
generateUidIdentifierBasedOnNode(t, r) {
return Ks(this.generateUidBasedOnNode(t, r));
}
isStatic(t) {
if (mx(t) || iJ(t) || gx(t))
return !0;
if (Ws(t)) {
let r = this.getBinding(t.name);
return r ? r.constant : this.hasBinding(t.name);
}
return !1;
}
maybeGenerateMemoised(t, r) {
if (this.isStatic(t))
return null;
{
let n = this.generateUidIdentifierBasedOnNode(t);
return r ? n : (this.push({
id: n
}), dx(n));
}
}
checkBlockScopedCollisions(t, r, n, s) {
if (r === "param" || t.kind === "local") return;
if (r === "let" || t.kind === "let" || t.kind === "const" || t.kind === "module" || t.kind === "param" && r === "const")
throw this.path.hub.buildError(s, `Duplicate declaration "${n}"`, TypeError);
}
rename(t, r) {
let n = this.getBinding(t);
n && (r || (r = this.generateUidIdentifier(t).name), new qY.default(n, t, r).rename(arguments[2]));
}
dump() {
let t = "-".repeat(60);
console.log(t);
let r = this;
do {
console.log("#", r.block.type);
for (let n of Object.keys(r.bindings)) {
let s = r.bindings[n];
console.log(" -", n, {
constant: s.constant,
references: s.references,
violations: s.constantViolations.length,
kind: s.kind
});
}
} while (r = r.parent);
console.log(t);
}
hasLabel(t) {
return !!this.getLabel(t);
}
getLabel(t) {
return this.labels.get(t);
}
registerLabel(t) {
this.labels.set(t.node.label.name, t);
}
registerDeclaration(t) {
if (t.isLabeledStatement())
this.registerLabel(t);
else if (t.isFunctionDeclaration())
this.registerBinding("hoisted", t.get("id"), t);
else if (t.isVariableDeclaration()) {
let r = t.get("declarations"), {
kind: n
} = t.node;
for (let s of r)
this.registerBinding(n === "using" || n === "await using" ? "const" : n, s);
} else if (t.isClassDeclaration()) {
if (t.node.declare) return;
this.registerBinding("let", t);
} else if (t.isImportDeclaration()) {
let r = t.node.importKind === "type" || t.node.importKind === "typeof", n = t.get("specifiers");
for (let s of n) {
let a = r || s.isImportSpecifier() && (s.node.importKind === "type" || s.node.importKind === "typeof");
this.registerBinding(a ? "unknown" : "module", s);
}
} else if (t.isExportDeclaration()) {
let r = t.get("declaration");
(r.isClassDeclaration() || r.isFunctionDeclaration() || r.isVariableDeclaration()) && this.registerDeclaration(r);
} else
this.registerBinding("unknown", t);
}
buildUndefinedNode() {
return TJ();
}
registerConstantViolation(t) {
let r = t.getAssignmentIdentifiers();
for (let s of Object.keys(r)) {
var n;
(n = this.getBinding(s)) == null || n.reassign(t);
}
}
registerBinding(t, r, n = r) {
if (!t) throw new ReferenceError("no `kind`");
if (r.isVariableDeclaration()) {
let o = r.get("declarations");
for (let l of o)
this.registerBinding(t, l);
return;
}
let s = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0);
for (let o of Object.keys(a)) {
s.references[o] = !0;
for (let l of a[o]) {
let u = this.getOwnBinding(o);
if (u) {
if (u.identifier === l) continue;
this.checkBlockScopedCollisions(u, t, o, l);
}
u ? u.reassign(n) : this.bindings[o] = new UY.default({
identifier: l,
scope: this,
path: n,
kind: t
});
}
}
}
addGlobal(t) {
this.globals[t.name] = t;
}
hasUid(t) {
let r = this;
do
if (r.uids[t]) return !0;
while (r = r.parent);
return !1;
}
hasGlobal(t) {
let r = this;
do
if (r.globals[t]) return !0;
while (r = r.parent);
return !1;
}
hasReference(t) {
return !!this.getProgramParent().references[t];
}
isPure(t, r) {
if (Ws(t)) {
let o = this.getBinding(t.name);
return o ? r ? o.constant : !0 : !1;
} else {
if (mx(t) || gJ(t) || gx(t) || bJ(t))
return !0;
if (KY(t)) {
var n;
return t.superClass && !this.isPure(t.superClass, r) || ((n = t.decorators) == null ? void 0 : n.length) > 0 ? !1 : this.isPure(t.
body, r);
} else if (GY(t)) {
for (let o of t.body)
if (!this.isPure(o, r)) return !1;
return !0;
} else {
if (WY(t))
return this.isPure(t.left, r) && this.isPure(t.right, r);
if (vx(t) || mJ(t)) {
for (let o of t.elements)
if (o !== null && !this.isPure(o, r)) return !1;
return !0;
} else if (tJ(t) || hJ(t)) {
for (let o of t.properties)
if (!this.isPure(o, r)) return !1;
return !0;
} else if (QY(t)) {
var s;
return !(t.computed && !this.isPure(t.key, r) || ((s = t.decorators) == null ? void 0 : s.length) > 0);
} else if (rJ(t)) {
var a;
return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (yJ(t) || t.static) && t.
value !== null && !this.isPure(t.value, r));
} else {
if (oJ(t))
return this.isPure(t.argument, r);
if (Ax(t)) {
for (let o of t.expressions)
if (!this.isPure(o, r)) return !1;
return !0;
} else return aJ(t) ? yx(t.tag, "String.raw") && !this.hasBinding("String", {
noGlobals: !0
}) && this.isPure(t.quasi, r) : zY(t) ? !t.computed && Ws(t.object) && t.object.name === "Symbol" && Ws(t.property) && t.property.
name !== "for" && !this.hasBinding("Symbol", {
noGlobals: !0
}) : hx(t) ? yx(t.callee, "Symbol.for") && !this.hasBinding("Symbol", {
noGlobals: !0
}) && t.arguments.length === 1 && Sx.isStringLiteral(t.arguments[0]) : nJ(t);
}
}
}
}
setData(t, r) {
return this.data[t] = r;
}
getData(t) {
let r = this;
do {
let n = r.data[t];
if (n != null) return n;
} while (r = r.parent);
}
removeData(t) {
let r = this;
do
r.data[t] != null && (r.data[t] = null);
while (r = r.parent);
}
init() {
this.inited || (this.inited = !0, this.crawl());
}
crawl() {
let t = this.path;
bx(this), this.data = /* @__PURE__ */ Object.create(null);
let r = this;
do {
if (r.crawling) return;
if (r.path.isProgram())
break;
} while (r = r.parent);
let n = r, s = {
references: [],
constantViolations: [],
assignments: []
};
if (this.crawling = !0, to || (to = Ex.default.visitors.merge([{
Scope(a) {
bx(a.scope);
}
}, xJ])), t.type !== "Program") {
for (let o of to.enter)
o.call(s, t, s);
let a = to[t.type];
if (a)
for (let o of a.enter)
o.call(s, t, s);
}
t.traverse(to, s), this.crawling = !1;
for (let a of s.assignments) {
let o = a.getAssignmentIdentifiers();
for (let l of Object.keys(o))
a.scope.getBinding(l) || n.addGlobal(o[l]);
a.scope.registerConstantViolation(a);
}
for (let a of s.references) {
let o = a.scope.getBinding(a.node.name);
o ? o.reference(a) : n.addGlobal(a.node);
}
for (let a of s.constantViolations)
a.scope.registerConstantViolation(a);
}
push(t) {
let r = this.path;
r.isPattern() ? r = this.getPatternParent().path : !r.isBlockStatement() && !r.isProgram() && (r = this.getBlockParent().path), r.isSwitchStatement() &&
(r = (this.getFunctionParent() || this.getProgramParent()).path);
let {
init: n,
unique: s,
kind: a = "var",
id: o
} = t;
if (!n && !s && (a === "var" || a === "let") && r.isFunction() && !r.node.name && hx(r.parent, {
callee: r.node
}) && r.parent.arguments.length <= r.node.params.length && Ws(o)) {
r.pushContainer("params", o), r.scope.registerBinding("param", r.get("params")[r.node.params.length - 1]);
return;
}
(r.isLoop() || r.isCatchClause() || r.isFunction()) && (r.ensureBlock(), r = r.get("body"));
let l = t._blockHoist == null ? 2 : t._blockHoist, u = `declaration:${a}:${l}`, c = !s && r.getData(u);
if (!c) {
let h = fJ(a, []);
h._blockHoist = l, [c] = r.unshiftContainer("body", [h]), s || r.setData(u, c);
}
let p = dJ(o, n), f = c.node.declarations.push(p);
r.scope.registerBinding(a, c.get("declarations")[f - 1]);
}
getProgramParent() {
let t = this;
do
if (t.path.isProgram())
return t;
while (t = t.parent);
throw new Error("Couldn't find a Program");
}
getFunctionParent() {
let t = this;
do
if (t.path.isFunctionParent())
return t;
while (t = t.parent);
return null;
}
getBlockParent() {
let t = this;
do
if (t.path.isBlockParent())
return t;
while (t = t.parent);
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
}
getPatternParent() {
let t = this;
do
if (!t.path.isPattern())
return t.getBlockParent();
while (t = t.parent.parent);
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
}
getAllBindings() {
let t = /* @__PURE__ */ Object.create(null), r = this;
do {
for (let n of Object.keys(r.bindings))
n in t || (t[n] = r.bindings[n]);
r = r.parent;
} while (r);
return t;
}
bindingIdentifierEquals(t, r) {
return this.getBindingIdentifier(t) === r;
}
getBinding(t) {
let r = this, n;
do {
let a = r.getOwnBinding(t);
if (a) {
var s;
if (!((s = n) != null && s.isPattern() && a.kind !== "param" && a.kind !== "local"))
return a;
} else if (!a && t === "arguments" && r.path.isFunction() && !r.path.isArrowFunctionExpression())
break;
n = r.path;
} while (r = r.parent);
}
getOwnBinding(t) {
return this.bindings[t];
}
getBindingIdentifier(t) {
var r;
return (r = this.getBinding(t)) == null ? void 0 : r.identifier;
}
getOwnBindingIdentifier(t) {
let r = this.bindings[t];
return r?.identifier;
}
hasOwnBinding(t) {
return !!this.getOwnBinding(t);
}
hasBinding(t, r) {
if (!t) return !1;
let n, s, a;
typeof r == "object" ? (n = r.noGlobals, s = r.noUids, a = r.upToScope) : typeof r == "boolean" && (n = r);
let o = this;
do {
if (a === o)
break;
if (o.hasOwnBinding(t))
return !0;
} while (o = o.parent);
return !!(!s && this.hasUid(t) || !n && e.globals.includes(t) || !n && e.contextVariables.includes(t));
}
parentHasBinding(t, r) {
var n;
return (n = this.parent) == null ? void 0 : n.hasBinding(t, r);
}
moveBindingTo(t, r) {
let n = this.getBinding(t);
n && (n.scope.removeOwnBinding(t), n.scope = r, r.bindings[t] = n);
}
removeOwnBinding(t) {
delete this.bindings[t];
}
removeBinding(t) {
var r;
(r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t);
let n = this;
do
n.uids[t] && (n.uids[t] = !1);
while (n = n.parent);
}
hoistVariables(t = (r) => this.push({
id: r
})) {
this.crawl();
let r = /* @__PURE__ */ new Set();
for (let n of Object.keys(this.bindings)) {
let s = this.bindings[n];
if (!s) continue;
let {
path: a
} = s;
if (!a.isVariableDeclarator()) continue;
let {
parent: o,
parentPath: l
} = a;
if (o.kind !== "var" || r.has(o)) continue;
r.add(a.parent);
let u, c = [];
for (let p of o.declarations) {
u ?? (u = p.id), p.init && c.push($Y("=", p.id, p.init));
let f = Object.keys(xx(p, !1, !0, !0));
for (let h of f)
t(Ks(h), p.init != null);
}
if (l.parentPath.isFor({
left: o
}))
l.replaceWith(u);
else if (c.length === 0)
l.remove();
else {
let p = c.length === 1 ? c[0] : SJ(c);
l.parentPath.isForStatement({
init: o
}) ? l.replaceWith(p) : l.replaceWith(uJ(p));
}
}
}
};
iu.default = Kr;
Kr.globals = Object.keys(VY.builtin);
Kr.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
Kr.prototype._renameFromMap = /* @__PURE__ */ i(function(t, r, n, s) {
t[r] && (t[n] = s, t[r] = null);
}, "_renameFromMap"), Kr.prototype.traverse = function(e, t, r) {
(0, Ex.default)(e, t, this, r, this.path);
}, Kr.prototype._generateUid = /* @__PURE__ */ i(function(t, r) {
let n = t;
return r > 1 && (n += r), `_${n}`;
}, "_generateUid"), Kr.prototype.toArray = /* @__PURE__ */ i(function(t, r, n) {
if (Ws(t)) {
let o = this.getBinding(t.name);
if (o != null && o.constant && o.path.isGenericType("Array"))
return t;
}
if (vx(t))
return t;
if (Ws(t, {
name: "arguments"
}))
return fx(im(im(im(Ks("Array"), Ks("prototype")), Ks("slice")), Ks("call")), [t]);
let s, a = [t];
return r === !0 ? s = "toConsumableArray" : typeof r == "number" ? (a.push(cJ(r)), s = "slicedToArray") : s = "toArray", n && (a.unshift(
this.path.hub.addHelper(s)), s = "maybeArrayLike"), fx(this.path.hub.addHelper(s), a);
}, "toArray"), Kr.prototype.getAllBindingsOfKind = /* @__PURE__ */ i(function(...t) {
let r = /* @__PURE__ */ Object.create(null);
for (let n of t) {
let s = this;
do {
for (let a of Object.keys(s.bindings)) {
let o = s.bindings[a];
o.kind === n && (r[a] = o);
}
s = s.parent;
} while (s);
}
return r;
}, "getAllBindingsOfKind"), Object.defineProperties(Kr.prototype, {
parentBlock: {
configurable: !0,
enumerable: !0,
get() {
return this.path.parent;
}
},
hub: {
configurable: !0,
enumerable: !0,
get() {
return this.path.hub;
}
}
});
});
// ../node_modules/@jridgewell/set-array/dist/set-array.umd.js
var Dx = P((au, Cx) => {
(function(e, t) {
typeof au == "object" && typeof Cx < "u" ? t(au) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
"u" ? globalThis : e || self, t(e.setArray = {}));
})(au, function(e) {
"use strict";
class t {
static {
i(this, "SetArray");
}
constructor() {
this._indexes = { __proto__: null }, this.array = [];
}
}
function r(l) {
return l;
}
i(r, "cast");
function n(l, u) {
return l._indexes[u];
}
i(n, "get");
function s(l, u) {
let c = n(l, u);
if (c !== void 0)
return c;
let { array: p, _indexes: f } = l, h = p.push(u);
return f[u] = h - 1;
}
i(s, "put");
function a(l) {
let { array: u, _indexes: c } = l;
if (u.length === 0)
return;
let p = u.pop();
c[p] = void 0;
}
i(a, "pop");
function o(l, u) {
let c = n(l, u);
if (c === void 0)
return;
let { array: p, _indexes: f } = l;
for (let h = c + 1; h < p.length; h++) {
let y = p[h];
p[h - 1] = y, f[y]--;
}
f[u] = void 0, p.pop();
}
i(o, "remove"), e.SetArray = t, e.get = n, e.pop = a, e.put = s, e.remove = o, Object.defineProperty(e, "__esModule", { value: !0 });
});
});
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
var lm = P((ou, wx) => {
(function(e, t) {
typeof ou == "object" && typeof wx < "u" ? t(ou) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
"u" ? globalThis : e || self, t(e.sourcemapCodec = {}));
})(ou, function(e) {
"use strict";
let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = new Uint8Array(64), a = new Uint8Array(128);
for (let U = 0; U < n.length; U++) {
let K = n.charCodeAt(U);
s[U] = K, a[K] = U;
}
function o(U, K) {
let j = 0, Y = 0, be = 0;
do {
let ee = U.next();
be = a[ee], j |= (be & 31) << Y, Y += 5;
} while (be & 32);
let ve = j & 1;
return j >>>= 1, ve && (j = -2147483648 | -j), K + j;
}
i(o, "decodeInteger");
function l(U, K, j) {
let Y = K - j;
Y = Y < 0 ? -Y << 1 | 1 : Y << 1;
do {
let be = Y & 31;
Y >>>= 5, Y > 0 && (be |= 32), U.write(s[be]);
} while (Y > 0);
return K;
}
i(l, "encodeInteger");
function u(U, K) {
return U.pos >= K ? !1 : U.peek() !== 44;
}
i(u, "hasMoreVlq");
let c = 1024 * 16, p = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
decode(U) {
return Buffer.from(U.buffer, U.byteOffset, U.byteLength).toString();
}
} : {
decode(U) {
let K = "";
for (let j = 0; j < U.length; j++)
K += String.fromCharCode(U[j]);
return K;
}
};
class f {
static {
i(this, "StringWriter");
}
constructor() {
this.pos = 0, this.out = "", this.buffer = new Uint8Array(c);
}
write(K) {
let { buffer: j } = this;
j[this.pos++] = K, this.pos === c && (this.out += p.decode(j), this.pos = 0);
}
flush() {
let { buffer: K, out: j, pos: Y } = this;
return Y > 0 ? j + p.decode(K.subarray(0, Y)) : j;
}
}
class h {
static {
i(this, "StringReader");
}
constructor(K) {
this.pos = 0, this.buffer = K;
}
next() {
return this.buffer.charCodeAt(this.pos++);
}
peek() {
return this.buffer.charCodeAt(this.pos);
}
indexOf(K) {
let { buffer: j, pos: Y } = this, be = j.indexOf(K, Y);
return be === -1 ? j.length : be;
}
}
let y = [];
function E(U) {
let { length: K } = U, j = new h(U), Y = [], be = [], ve = 0;
for (; j.pos < K; j.pos++) {
ve = o(j, ve);
let ee = o(j, 0);
if (!u(j, K)) {
let we = be.pop();
we[2] = ve, we[3] = ee;
continue;
}
let Q = o(j, 0), ue = o(j, 0) & 1 ? [ve, ee, 0, 0, Q, o(j, 0)] : [ve, ee, 0, 0, Q], xe = y;
if (u(j, K)) {
xe = [];
do {
let we = o(j, 0);
xe.push(we);
} while (u(j, K));
}
ue.vars = xe, Y.push(ue), be.push(ue);
}
return Y;
}
i(E, "decodeOriginalScopes");
function d(U) {
let K = new f();
for (let j = 0; j < U.length; )
j = g(U, j, K, [0]);
return K.flush();
}
i(d, "encodeOriginalScopes");
function g(U, K, j, Y) {
let be = U[K], { 0: ve, 1: ee, 2: Q, 3: se, 4: le, vars: ue } = be;
K > 0 && j.write(44), Y[0] = l(j, ve, Y[0]), l(j, ee, 0), l(j, le, 0);
let xe = be.length === 6 ? 1 : 0;
l(j, xe, 0), be.length === 6 && l(j, be[5], 0);
for (let we of ue)
l(j, we, 0);
for (K++; K < U.length; ) {
let we = U[K], { 0: Ee, 1: me } = we;
if (Ee > Q || Ee === Q && me >= se)
break;
K = g(U, K, j, Y);
}
return j.write(44), Y[0] = l(j, Q, Y[0]), l(j, se, 0), K;
}
i(g, "_encodeOriginalScopes");
function C(U) {
let { length: K } = U, j = new h(U), Y = [], be = [], ve = 0, ee = 0, Q = 0, se = 0, le = 0, ue = 0, xe = 0, we = 0;
do {
let Ee = j.indexOf(";"), me = 0;
for (; j.pos < Ee; j.pos++) {
if (me = o(j, me), !u(j, Ee)) {
let gt = be.pop();
gt[2] = ve, gt[3] = me;
continue;
}
let Be = o(j, 0), ct = Be & 1, at = Be & 2, Dt = Be & 4, yr = null, Yt = y, Bt;
if (ct) {
let gt = o(j, ee);
Q = o(j, ee === gt ? Q : 0), ee = gt, Bt = [ve, me, 0, 0, gt, Q];
} else
Bt = [ve, me, 0, 0];
if (Bt.isScope = !!Dt, at) {
let gt = se, tr = le;
se = o(j, se);
let gr = gt === se;
le = o(j, gr ? le : 0), ue = o(j, gr && tr === le ? ue : 0), yr = [se, le, ue];
}
if (Bt.callsite = yr, u(j, Ee)) {
Yt = [];
do {
xe = ve, we = me;
let gt = o(j, 0), tr;
if (gt < -1) {
tr = [[o(j, 0)]];
for (let gr = -1; gr > gt; gr--) {
let yi = xe;
xe = o(j, xe), we = o(j, xe === yi ? we : 0);
let nn = o(j, 0);
tr.push([nn, xe, we]);
}
} else
tr = [[gt]];
Yt.push(tr);
} while (u(j, Ee));
}
Bt.bindings = Yt, Y.push(Bt), be.push(Bt);
}
ve++, j.pos = Ee + 1;
} while (j.pos < K);
return Y;
}
i(C, "decodeGeneratedRanges");
function _(U) {
if (U.length === 0)
return "";
let K = new f();
for (let j = 0; j < U.length; )
j = O(U, j, K, [0, 0, 0, 0, 0, 0, 0]);
return K.flush();
}
i(_, "encodeGeneratedRanges");
function O(U, K, j, Y) {
let be = U[K], { 0: ve, 1: ee, 2: Q, 3: se, isScope: le, callsite: ue, bindings: xe } = be;
Y[0] < ve ? (B(j, Y[0], ve), Y[0] = ve, Y[1] = 0) : K > 0 && j.write(44), Y[1] = l(j, be[1], Y[1]);
let we = (be.length === 6 ? 1 : 0) | (ue ? 2 : 0) | (le ? 4 : 0);
if (l(j, we, 0), be.length === 6) {
let { 4: Ee, 5: me } = be;
Ee !== Y[2] && (Y[3] = 0), Y[2] = l(j, Ee, Y[2]), Y[3] = l(j, me, Y[3]);
}
if (ue) {
let { 0: Ee, 1: me, 2: Be } = be.callsite;
Ee !== Y[4] ? (Y[5] = 0, Y[6] = 0) : me !== Y[5] && (Y[6] = 0), Y[4] = l(j, Ee, Y[4]), Y[5] = l(j, me, Y[5]), Y[6] = l(j, Be, Y[6]);
}
if (xe)
for (let Ee of xe) {
Ee.length > 1 && l(j, -Ee.length, 0);
let me = Ee[0][0];
l(j, me, 0);
let Be = ve, ct = ee;
for (let at = 1; at < Ee.length; at++) {
let Dt = Ee[at];
Be = l(j, Dt[1], Be), ct = l(j, Dt[2], ct), l(j, Dt[0], 0);
}
}
for (K++; K < U.length; ) {
let Ee = U[K], { 0: me, 1: Be } = Ee;
if (me > Q || me === Q && Be >= se)
break;
K = O(U, K, j, Y);
}
return Y[0] < Q ? (B(j, Y[0], Q), Y[0] = Q, Y[1] = 0) : j.write(44), Y[1] = l(j, se, Y[1]), K;
}
i(O, "_encodeGeneratedRanges");
function B(U, K, j) {
do
U.write(59);
while (++K < j);
}
i(B, "catchupLine");
function R(U) {
let { length: K } = U, j = new h(U), Y = [], be = 0, ve = 0, ee = 0, Q = 0, se = 0;
do {
let le = j.indexOf(";"), ue = [], xe = !0, we = 0;
for (be = 0; j.pos < le; ) {
let Ee;
be = o(j, be), be < we && (xe = !1), we = be, u(j, le) ? (ve = o(j, ve), ee = o(j, ee), Q = o(j, Q), u(j, le) ? (se = o(j, se), Ee =
[be, ve, ee, Q, se]) : Ee = [be, ve, ee, Q]) : Ee = [be], ue.push(Ee), j.pos++;
}
xe || $(ue), Y.push(ue), j.pos = le + 1;
} while (j.pos <= K);
return Y;
}
i(R, "decode");
function $(U) {
U.sort(V);
}
i($, "sort");
function V(U, K) {
return U[0] - K[0];
}
i(V, "sortComparator");
function J(U) {
let K = new f(), j = 0, Y = 0, be = 0, ve = 0;
for (let ee = 0; ee < U.length; ee++) {
let Q = U[ee];
if (ee > 0 && K.write(59), Q.length === 0)
continue;
let se = 0;
for (let le = 0; le < Q.length; le++) {
let ue = Q[le];
le > 0 && K.write(44), se = l(K, ue[0], se), ue.length !== 1 && (j = l(K, ue[1], j), Y = l(K, ue[2], Y), be = l(K, ue[3], be), ue.
length !== 4 && (ve = l(K, ue[4], ve)));
}
}
return K.flush();
}
i(J, "encode"), e.decode = R, e.decodeGeneratedRanges = C, e.decodeOriginalScopes = E, e.encode = J, e.encodeGeneratedRanges = _, e.encodeOriginalScopes =
d, Object.defineProperty(e, "__esModule", { value: !0 });
});
});
// ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
var Ix = P((um, cm) => {
(function(e, t) {
typeof um == "object" && typeof cm < "u" ? cm.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis <
"u" ? globalThis : e || self, e.resolveURI = t());
})(um, function() {
"use strict";
let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
function n(g) {
return e.test(g);
}
i(n, "isAbsoluteUrl");
function s(g) {
return g.startsWith("//");
}
i(s, "isSchemeRelativeUrl");
function a(g) {
return g.startsWith("/");
}
i(a, "isAbsolutePath");
function o(g) {
return g.startsWith("file:");
}
i(o, "isFileUrl");
function l(g) {
return /^[.?#]/.test(g);
}
i(l, "isRelative");
function u(g) {
let C = t.exec(g);
return p(C[1], C[2] || "", C[3], C[4] || "", C[5] || "/", C[6] || "", C[7] || "");
}
i(u, "parseAbsoluteUrl");
function c(g) {
let C = r.exec(g), _ = C[2];
return p("file:", "", C[1] || "", "", a(_) ? _ : "/" + _, C[3] || "", C[4] || "");
}
i(c, "parseFileUrl");
function p(g, C, _, O, B, R, $) {
return {
scheme: g,
user: C,
host: _,
port: O,
path: B,
query: R,
hash: $,
type: 7
};
}
i(p, "makeUrl");
function f(g) {
if (s(g)) {
let _ = u("http:" + g);
return _.scheme = "", _.type = 6, _;
}
if (a(g)) {
let _ = u("http://foo.com" + g);
return _.scheme = "", _.host = "", _.type = 5, _;
}
if (o(g))
return c(g);
if (n(g))
return u(g);
let C = u("http://foo.com/" + g);
return C.scheme = "", C.host = "", C.type = g ? g.startsWith("?") ? 3 : g.startsWith("#") ? 2 : 4 : 1, C;
}
i(f, "parseUrl");
function h(g) {
if (g.endsWith("/.."))
return g;
let C = g.lastIndexOf("/");
return g.slice(0, C + 1);
}
i(h, "stripPathFilename");
function y(g, C) {
E(C, C.type), g.path === "/" ? g.path = C.path : g.path = h(C.path) + g.path;
}
i(y, "mergePaths");
function E(g, C) {
let _ = C <= 4, O = g.path.split("/"), B = 1, R = 0, $ = !1;
for (let J = 1; J < O.length; J++) {
let U = O[J];
if (!U) {
$ = !0;
continue;
}
if ($ = !1, U !== ".") {
if (U === "..") {
R ? ($ = !0, R--, B--) : _ && (O[B++] = U);
continue;
}
O[B++] = U, R++;
}
}
let V = "";
for (let J = 1; J < B; J++)
V += "/" + O[J];
(!V || $ && !V.endsWith("/..")) && (V += "/"), g.path = V;
}
i(E, "normalizePath");
function d(g, C) {
if (!g && !C)
return "";
let _ = f(g), O = _.type;
if (C && O !== 7) {
let R = f(C), $ = R.type;
switch (O) {
case 1:
_.hash = R.hash;
// fall through
case 2:
_.query = R.query;
// fall through
case 3:
case 4:
y(_, R);
// fall through
case 5:
_.user = R.user, _.host = R.host, _.port = R.port;
// fall through
case 6:
_.scheme = R.scheme;
}
$ > O && (O = $);
}
E(_, O);
let B = _.query + _.hash;
switch (O) {
// This is impossible, because of the empty checks at the start of the function.
// case UrlType.Empty:
case 2:
case 3:
return B;
case 4: {
let R = _.path.slice(1);
return R ? l(C || g) && !l(R) ? "./" + R + B : R + B : B || ".";
}
case 5:
return _.path + B;
default:
return _.scheme + "//" + _.user + _.host + _.port + _.path + B;
}
}
return i(d, "resolve"), d;
});
});
// ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
var uu = P((lu, _x) => {
(function(e, t) {
typeof lu == "object" && typeof _x < "u" ? t(lu, lm(), Ix()) : typeof define == "function" && define.amd ? define(["exports", "@jridgewe\
ll/sourcemap-codec", "@jridgewell/resolve-uri"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.traceMapping = {}, e.sourcemapCodec,
e.resolveURI));
})(lu, function(e, t, r) {
"use strict";
function n(M, W) {
return W && !W.endsWith("/") && (W += "/"), r(M, W);
}
i(n, "resolve");
function s(M) {
if (!M)
return "";
let W = M.lastIndexOf("/");
return M.slice(0, W + 1);
}
i(s, "stripFilename");
let a = 0, o = 1, l = 2, u = 3, c = 4, p = 1, f = 2;
function h(M, W) {
let z = y(M, 0);
if (z === M.length)
return M;
W || (M = M.slice());
for (let Z = z; Z < M.length; Z = y(M, Z + 1))
M[Z] = d(M[Z], W);
return M;
}
i(h, "maybeSort");
function y(M, W) {
for (let z = W; z < M.length; z++)
if (!E(M[z]))
return z;
return M.length;
}
i(y, "nextUnsortedSegmentLine");
function E(M) {
for (let W = 1; W < M.length; W++)
if (M[W][a] < M[W - 1][a])
return !1;
return !0;
}
i(E, "isSorted");
function d(M, W) {
return W || (M = M.slice()), M.sort(g);
}
i(d, "sortSegments");
function g(M, W) {
return M[a] - W[a];
}
i(g, "sortComparator");
let C = !1;
function _(M, W, z, Z) {
for (; z <= Z; ) {
let ye = z + (Z - z >> 1), ce = M[ye][a] - W;
if (ce === 0)
return C = !0, ye;
ce < 0 ? z = ye + 1 : Z = ye - 1;
}
return C = !1, z - 1;
}
i(_, "binarySearch");
function O(M, W, z) {
for (let Z = z + 1; Z < M.length && M[Z][a] === W; z = Z++)
;
return z;
}
i(O, "upperBound");
function B(M, W, z) {
for (let Z = z - 1; Z >= 0 && M[Z][a] === W; z = Z--)
;
return z;
}
i(B, "lowerBound");
function R() {
return {
lastKey: -1,
lastNeedle: -1,
lastIndex: -1
};
}
i(R, "memoizedState");
function $(M, W, z, Z) {
let { lastKey: ye, lastNeedle: ce, lastIndex: Ie } = z, Je = 0, _e = M.length - 1;
if (Z === ye) {
if (W === ce)
return C = Ie !== -1 && M[Ie][a] === W, Ie;
W >= ce ? Je = Ie === -1 ? 0 : Ie : _e = Ie;
}
return z.lastKey = Z, z.lastNeedle = W, z.lastIndex = _(M, W, Je, _e);
}
i($, "memoizedBinarySearch");
function V(M, W) {
let z = W.map(U);
for (let Z = 0; Z < M.length; Z++) {
let ye = M[Z];
for (let ce = 0; ce < ye.length; ce++) {
let Ie = ye[ce];
if (Ie.length === 1)
continue;
let Je = Ie[o], _e = Ie[l], ke = Ie[u], lt = z[Je], Xe = lt[_e] || (lt[_e] = []), ze = W[Je], Ot = O(Xe, ke, $(Xe, ke, ze, _e));
ze.lastIndex = ++Ot, J(Xe, Ot, [ke, Z, Ie[a]]);
}
}
return z;
}
i(V, "buildBySources");
function J(M, W, z) {
for (let Z = M.length; Z > W; Z--)
M[Z] = M[Z - 1];
M[W] = z;
}
i(J, "insert");
function U() {
return { __proto__: null };
}
i(U, "buildNullArray");
let K = /* @__PURE__ */ i(function(M, W) {
let z = j(M);
if (!("sections" in z))
return new xe(z, W);
let Z = [], ye = [], ce = [], Ie = [], Je = [];
Y(z, W, Z, ye, ce, Ie, Je, 0, 0, 1 / 0, 1 / 0);
let _e = {
version: 3,
file: z.file,
names: Ie,
sources: ye,
sourcesContent: ce,
mappings: Z,
ignoreList: Je
};
return tr(_e);
}, "AnyMap");
function j(M) {
return typeof M == "string" ? JSON.parse(M) : M;
}
i(j, "parse");
function Y(M, W, z, Z, ye, ce, Ie, Je, _e, ke, lt) {
let { sections: Xe } = M;
for (let ze = 0; ze < Xe.length; ze++) {
let { map: Ot, offset: Cr } = Xe[ze], Sn = ke, xn = lt;
if (ze + 1 < Xe.length) {
let vn = Xe[ze + 1].offset;
Sn = Math.min(ke, Je + vn.line), Sn === ke ? xn = Math.min(lt, _e + vn.column) : Sn < ke && (xn = _e + vn.column);
}
be(Ot, W, z, Z, ye, ce, Ie, Je + Cr.line, _e + Cr.column, Sn, xn);
}
}
i(Y, "recurse");
function be(M, W, z, Z, ye, ce, Ie, Je, _e, ke, lt) {
let Xe = j(M);
if ("sections" in Xe)
return Y(...arguments);
let ze = new xe(Xe, W), Ot = Z.length, Cr = ce.length, Sn = me(ze), { resolvedSources: xn, sourcesContent: vn, ignoreList: gi } = ze;
if (ve(Z, xn), ve(ce, ze.names), vn)
ve(ye, vn);
else
for (let Dr = 0; Dr < xn.length; Dr++)
ye.push(null);
if (gi)
for (let Dr = 0; Dr < gi.length; Dr++)
Ie.push(gi[Dr] + Ot);
for (let Dr = 0; Dr < Sn.length; Dr++) {
let $p = Je + Dr;
if ($p > ke)
return;
let T1 = ee(z, $p), hO = Dr === 0 ? _e : 0, S1 = Sn[Dr];
for (let Wp = 0; Wp < S1.length; Wp++) {
let Is = S1[Wp], al = hO + Is[a];
if ($p === ke && al >= lt)
return;
if (Is.length === 1) {
T1.push([al]);
continue;
}
let x1 = Ot + Is[o], v1 = Is[l], P1 = Is[u];
T1.push(Is.length === 4 ? [al, x1, v1, P1] : [al, x1, v1, P1, Cr + Is[c]]);
}
}
}
i(be, "addSection");
function ve(M, W) {
for (let z = 0; z < W.length; z++)
M.push(W[z]);
}
i(ve, "append");
function ee(M, W) {
for (let z = M.length; z <= W; z++)
M[z] = [];
return M[W];
}
i(ee, "getLine");
let Q = "`line` must be greater than 0 (lines start at line 1)", se = "`column` must be greater than or equal to 0 (columns start at col\
umn 0)", le = -1, ue = 1;
class xe {
static {
i(this, "TraceMap");
}
constructor(W, z) {
let Z = typeof W == "string";
if (!Z && W._decodedMemo)
return W;
let ye = Z ? JSON.parse(W) : W, { version: ce, file: Ie, names: Je, sourceRoot: _e, sources: ke, sourcesContent: lt } = ye;
this.version = ce, this.file = Ie, this.names = Je || [], this.sourceRoot = _e, this.sources = ke, this.sourcesContent = lt, this.ignoreList =
ye.ignoreList || ye.x_google_ignoreList || void 0;
let Xe = n(_e || "", s(z));
this.resolvedSources = ke.map((Ot) => n(Ot || "", Xe));
let { mappings: ze } = ye;
typeof ze == "string" ? (this._encoded = ze, this._decoded = void 0) : (this._encoded = void 0, this._decoded = h(ze, Z)), this._decodedMemo =
R(), this._bySources = void 0, this._bySourceMemos = void 0;
}
}
function we(M) {
return M;
}
i(we, "cast");
function Ee(M) {
var W, z;
return (W = (z = M)._encoded) !== null && W !== void 0 ? W : z._encoded = t.encode(M._decoded);
}
i(Ee, "encodedMappings");
function me(M) {
var W;
return (W = M)._decoded || (W._decoded = t.decode(M._encoded));
}
i(me, "decodedMappings");
function Be(M, W, z) {
let Z = me(M);
if (W >= Z.length)
return null;
let ye = Z[W], ce = Ne(ye, M._decodedMemo, W, z, ue);
return ce === -1 ? null : ye[ce];
}
i(Be, "traceSegment");
function ct(M, W) {
let { line: z, column: Z, bias: ye } = W;
if (z--, z < 0)
throw new Error(Q);
if (Z < 0)
throw new Error(se);
let ce = me(M);
if (z >= ce.length)
return ae(null, null, null, null);
let Ie = ce[z], Je = Ne(Ie, M._decodedMemo, z, Z, ye || ue);
if (Je === -1)
return ae(null, null, null, null);
let _e = Ie[Je];
if (_e.length === 1)
return ae(null, null, null, null);
let { names: ke, resolvedSources: lt } = M;
return ae(lt[_e[o]], _e[l] + 1, _e[u], _e.length === 5 ? ke[_e[c]] : null);
}
i(ct, "originalPositionFor");
function at(M, W) {
let { source: z, line: Z, column: ye, bias: ce } = W;
return bt(M, z, Z, ye, ce || ue, !1);
}
i(at, "generatedPositionFor");
function Dt(M, W) {
let { source: z, line: Z, column: ye, bias: ce } = W;
return bt(M, z, Z, ye, ce || le, !0);
}
i(Dt, "allGeneratedPositionsFor");
function yr(M, W) {
let z = me(M), { names: Z, resolvedSources: ye } = M;
for (let ce = 0; ce < z.length; ce++) {
let Ie = z[ce];
for (let Je = 0; Je < Ie.length; Je++) {
let _e = Ie[Je], ke = ce + 1, lt = _e[0], Xe = null, ze = null, Ot = null, Cr = null;
_e.length !== 1 && (Xe = ye[_e[1]], ze = _e[2] + 1, Ot = _e[3]), _e.length === 5 && (Cr = Z[_e[4]]), W({
generatedLine: ke,
generatedColumn: lt,
source: Xe,
originalLine: ze,
originalColumn: Ot,
name: Cr
});
}
}
}
i(yr, "eachMapping");
function Yt(M, W) {
let { sources: z, resolvedSources: Z } = M, ye = z.indexOf(W);
return ye === -1 && (ye = Z.indexOf(W)), ye;
}
i(Yt, "sourceIndex");
function Bt(M, W) {
let { sourcesContent: z } = M;
if (z == null)
return null;
let Z = Yt(M, W);
return Z === -1 ? null : z[Z];
}
i(Bt, "sourceContentFor");
function gt(M, W) {
let { ignoreList: z } = M;
if (z == null)
return !1;
let Z = Yt(M, W);
return Z === -1 ? !1 : z.includes(Z);
}
i(gt, "isIgnored");
function tr(M, W) {
let z = new xe(nn(M, []), W);
return z._decoded = M.mappings, z;
}
i(tr, "presortedDecodedMap");
function gr(M) {
return nn(M, me(M));
}
i(gr, "decodedMap");
function yi(M) {
return nn(M, Ee(M));
}
i(yi, "encodedMap");
function nn(M, W) {
return {
version: M.version,
file: M.file,
names: M.names,
sourceRoot: M.sourceRoot,
sources: M.sources,
sourcesContent: M.sourcesContent,
mappings: W,
ignoreList: M.ignoreList || M.x_google_ignoreList
};
}
i(nn, "clone");
function ae(M, W, z, Z) {
return { source: M, line: W, column: z, name: Z };
}
i(ae, "OMapping");
function te(M, W) {
return { line: M, column: W };
}
i(te, "GMapping");
function Ne(M, W, z, Z, ye) {
let ce = $(M, Z, W, z);
return C ? ce = (ye === le ? O : B)(M, Z, ce) : ye === le && ce++, ce === -1 || ce === M.length ? -1 : ce;
}
i(Ne, "traceSegmentInternal");
function it(M, W, z, Z, ye) {
let ce = Ne(M, W, z, Z, ue);
if (!C && ye === le && ce++, ce === -1 || ce === M.length)
return [];
let Ie = C ? Z : M[ce][a];
C || (ce = B(M, Ie, ce));
let Je = O(M, Ie, ce), _e = [];
for (; ce <= Je; ce++) {
let ke = M[ce];
_e.push(te(ke[p] + 1, ke[f]));
}
return _e;
}
i(it, "sliceGeneratedPositions");
function bt(M, W, z, Z, ye, ce) {
var Ie;
if (z--, z < 0)
throw new Error(Q);
if (Z < 0)
throw new Error(se);
let { sources: Je, resolvedSources: _e } = M, ke = Je.indexOf(W);
if (ke === -1 && (ke = _e.indexOf(W)), ke === -1)
return ce ? [] : te(null, null);
let Xe = ((Ie = M)._bySources || (Ie._bySources = V(me(M), M._bySourceMemos = Je.map(R))))[ke][z];
if (Xe == null)
return ce ? [] : te(null, null);
let ze = M._bySourceMemos[ke];
if (ce)
return it(Xe, ze, z, Z, ye);
let Ot = Ne(Xe, ze, z, Z, ye);
if (Ot === -1)
return te(null, null);
let Cr = Xe[Ot];
return te(Cr[p] + 1, Cr[f]);
}
i(bt, "generatedPosition"), e.AnyMap = K, e.GREATEST_LOWER_BOUND = ue, e.LEAST_UPPER_BOUND = le, e.TraceMap = xe, e.allGeneratedPositionsFor =
Dt, e.decodedMap = gr, e.decodedMappings = me, e.eachMapping = yr, e.encodedMap = yi, e.encodedMappings = Ee, e.generatedPositionFor = at,
e.isIgnored = gt, e.originalPositionFor = ct, e.presortedDecodedMap = tr, e.sourceContentFor = Bt, e.traceSegment = Be;
});
});
// ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js
var pm = P((cu, Ox) => {
(function(e, t) {
typeof cu == "object" && typeof Ox < "u" ? t(cu, Dx(), lm(), uu()) : typeof define == "function" && define.amd ? define(["exports", "@jr\
idgewell/set-array", "@jridgewell/sourcemap-codec", "@jridgewell/trace-mapping"], t) : (e = typeof globalThis < "u" ? globalThis : e || self,
t(e.genMapping = {}, e.setArray, e.sourcemapCodec, e.traceMapping));
})(cu, function(e, t, r, n) {
"use strict";
class p {
static {
i(this, "GenMapping");
}
constructor({ file: Q, sourceRoot: se } = {}) {
this._names = new t.SetArray(), this._sources = new t.SetArray(), this._sourcesContent = [], this._mappings = [], this.file = Q, this.
sourceRoot = se, this._ignoreList = new t.SetArray();
}
}
function f(ee) {
return ee;
}
i(f, "cast");
function h(ee, Q, se, le, ue, xe, we, Ee) {
return $(!1, ee, Q, se, le, ue, xe, we, Ee);
}
i(h, "addSegment");
function y(ee, Q) {
return ve(!1, ee, Q);
}
i(y, "addMapping");
let E = /* @__PURE__ */ i((ee, Q, se, le, ue, xe, we, Ee) => $(!0, ee, Q, se, le, ue, xe, we, Ee), "maybeAddSegment"), d = /* @__PURE__ */ i(
(ee, Q) => ve(!0, ee, Q), "maybeAddMapping");
function g(ee, Q, se) {
let { _sources: le, _sourcesContent: ue } = ee, xe = t.put(le, Q);
ue[xe] = se;
}
i(g, "setSourceContent");
function C(ee, Q, se = !0) {
let { _sources: le, _sourcesContent: ue, _ignoreList: xe } = ee, we = t.put(le, Q);
we === ue.length && (ue[we] = null), se ? t.put(xe, we) : t.remove(xe, we);
}
i(C, "setIgnore");
function _(ee) {
let { _mappings: Q, _sources: se, _sourcesContent: le, _names: ue, _ignoreList: xe } = ee;
return K(Q), {
version: 3,
file: ee.file || void 0,
names: ue.array,
sourceRoot: ee.sourceRoot || void 0,
sources: se.array,
sourcesContent: le,
mappings: Q,
ignoreList: xe.array
};
}
i(_, "toDecodedMap");
function O(ee) {
let Q = _(ee);
return Object.assign(Object.assign({}, Q), { mappings: r.encode(Q.mappings) });
}
i(O, "toEncodedMap");
function B(ee) {
let Q = new n.TraceMap(ee), se = new p({ file: Q.file, sourceRoot: Q.sourceRoot });
return j(se._names, Q.names), j(se._sources, Q.sources), se._sourcesContent = Q.sourcesContent || Q.sources.map(() => null), se._mappings =
n.decodedMappings(Q), Q.ignoreList && j(se._ignoreList, Q.ignoreList), se;
}
i(B, "fromMap");
function R(ee) {
let Q = [], { _mappings: se, _sources: le, _names: ue } = ee;
for (let xe = 0; xe < se.length; xe++) {
let we = se[xe];
for (let Ee = 0; Ee < we.length; Ee++) {
let me = we[Ee], Be = { line: xe + 1, column: me[0] }, ct, at, Dt;
me.length !== 1 && (ct = le.array[me[1]], at = { line: me[2] + 1, column: me[3] }, me.length === 5 && (Dt = ue.array[me[4]])), Q.push(
{ generated: Be, source: ct, original: at, name: Dt });
}
}
return Q;
}
i(R, "allMappings");
function $(ee, Q, se, le, ue, xe, we, Ee, me) {
let { _mappings: Be, _sources: ct, _sourcesContent: at, _names: Dt } = Q, yr = V(Be, se), Yt = J(yr, le);
if (!ue)
return ee && Y(yr, Yt) ? void 0 : U(yr, Yt, [le]);
let Bt = t.put(ct, ue), gt = Ee ? t.put(Dt, Ee) : -1;
if (Bt === at.length && (at[Bt] = me ?? null), !(ee && be(yr, Yt, Bt, xe, we, gt)))
return U(yr, Yt, Ee ? [le, Bt, xe, we, gt] : [le, Bt, xe, we]);
}
i($, "addSegmentInternal");
function V(ee, Q) {
for (let se = ee.length; se <= Q; se++)
ee[se] = [];
return ee[Q];
}
i(V, "getLine");
function J(ee, Q) {
let se = ee.length;
for (let le = se - 1; le >= 0; se = le--) {
let ue = ee[le];
if (Q >= ue[0])
break;
}
return se;
}
i(J, "getColumnIndex");
function U(ee, Q, se) {
for (let le = ee.length; le > Q; le--)
ee[le] = ee[le - 1];
ee[Q] = se;
}
i(U, "insert");
function K(ee) {
let { length: Q } = ee, se = Q;
for (let le = se - 1; le >= 0 && !(ee[le].length > 0); se = le, le--)
;
se < Q && (ee.length = se);
}
i(K, "removeEmptyFinalLines");
function j(ee, Q) {
for (let se = 0; se < Q.length; se++)
t.put(ee, Q[se]);
}
i(j, "putAll");
function Y(ee, Q) {
return Q === 0 ? !0 : ee[Q - 1].length === 1;
}
i(Y, "skipSourceless");
function be(ee, Q, se, le, ue, xe) {
if (Q === 0)
return !1;
let we = ee[Q - 1];
return we.length === 1 ? !1 : se === we[1] && le === we[2] && ue === we[3] && xe === (we.length === 5 ? we[4] : -1);
}
i(be, "skipSource");
function ve(ee, Q, se) {
let { generated: le, source: ue, original: xe, name: we, content: Ee } = se;
return ue ? $(ee, Q, le.line - 1, le.column, ue, xe.line - 1, xe.column, we, Ee) : $(ee, Q, le.line - 1, le.column, null, null, null, null,
null);
}
i(ve, "addMappingInternal"), e.GenMapping = p, e.addMapping = y, e.addSegment = h, e.allMappings = R, e.fromMap = B, e.maybeAddMapping =
d, e.maybeAddSegment = E, e.setIgnore = C, e.setSourceContent = g, e.toDecodedMap = _, e.toEncodedMap = O, Object.defineProperty(e, "__e\
sModule", { value: !0 });
});
});
// ../node_modules/@babel/generator/lib/source-map.js
var Nx = P((pu) => {
"use strict";
Object.defineProperty(pu, "__esModule", {
value: !0
});
pu.default = void 0;
var is = pm(), fm = uu(), dm = class {
static {
i(this, "SourceMap");
}
constructor(t, r) {
var n;
this._map = void 0, this._rawMappings = void 0, this._sourceFileName = void 0, this._lastGenLine = 0, this._lastSourceLine = 0, this._lastSourceColumn =
0, this._inputMap = void 0;
let s = this._map = new is.GenMapping({
sourceRoot: t.sourceRoot
});
if (this._sourceFileName = (n = t.sourceFileName) == null ? void 0 : n.replace(/\\/g, "/"), this._rawMappings = void 0, t.inputSourceMap) {
this._inputMap = new fm.TraceMap(t.inputSourceMap);
let o = this._inputMap.resolvedSources;
if (o.length)
for (let l = 0; l < o.length; l++) {
var a;
(0, is.setSourceContent)(s, o[l], (a = this._inputMap.sourcesContent) == null ? void 0 : a[l]);
}
}
if (typeof r == "string" && !t.inputSourceMap)
(0, is.setSourceContent)(s, this._sourceFileName, r);
else if (typeof r == "object")
for (let o of Object.keys(r))
(0, is.setSourceContent)(s, o.replace(/\\/g, "/"), r[o]);
}
get() {
return (0, is.toEncodedMap)(this._map);
}
getDecoded() {
return (0, is.toDecodedMap)(this._map);
}
getRawMappings() {
return this._rawMappings || (this._rawMappings = (0, is.allMappings)(this._map));
}
mark(t, r, n, s, a, o) {
var l;
this._rawMappings = void 0;
let u;
if (r != null)
if (this._inputMap) {
if (u = (0, fm.originalPositionFor)(this._inputMap, {
line: r,
column: n
}), !u.name && a) {
let c = (0, fm.originalPositionFor)(this._inputMap, a);
c.name && (s = c.name);
}
} else
u = {
source: o?.replace(/\\/g, "/") || this._sourceFileName,
line: r,
column: n
};
(0, is.maybeAddMapping)(this._map, {
name: s,
generated: t,
source: (l = u) == null ? void 0 : l.source,
original: u
});
}
};
pu.default = dm;
});
// ../node_modules/@babel/generator/lib/buffer.js
var Bx = P((fu) => {
"use strict";
Object.defineProperty(fu, "__esModule", {
value: !0
});
fu.default = void 0;
var hm = class {
static {
i(this, "Buffer");
}
constructor(t, r) {
this._map = null, this._buf = "", this._str = "", this._appendCount = 0, this._last = 0, this._queue = [], this._queueCursor = 0, this.
_canMarkIdName = !0, this._indentChar = "", this._fastIndentations = [], this._position = {
line: 1,
column: 0
}, this._sourcePosition = {
identifierName: void 0,
identifierNamePos: void 0,
line: void 0,
column: void 0,
filename: void 0
}, this._map = t, this._indentChar = r;
for (let n = 0; n < 64; n++)
this._fastIndentations.push(r.repeat(n));
this._allocQueue();
}
_allocQueue() {
let t = this._queue;
for (let r = 0; r < 16; r++)
t.push({
char: 0,
repeat: 1,
line: void 0,
column: void 0,
identifierName: void 0,
identifierNamePos: void 0,
filename: ""
});
}
_pushQueue(t, r, n, s, a) {
let o = this._queueCursor;
o === this._queue.length && this._allocQueue();
let l = this._queue[o];
l.char = t, l.repeat = r, l.line = n, l.column = s, l.filename = a, this._queueCursor++;
}
_popQueue() {
if (this._queueCursor === 0)
throw new Error("Cannot pop from empty queue");
return this._queue[--this._queueCursor];
}
get() {
this._flush();
let t = this._map, r = {
code: (this._buf + this._str).trimRight(),
decodedMap: t?.getDecoded(),
get __mergedMap() {
return this.map;
},
get map() {
let n = t ? t.get() : null;
return r.map = n, n;
},
set map(n) {
Object.defineProperty(r, "map", {
value: n,
writable: !0
});
},
get rawMappings() {
let n = t?.getRawMappings();
return r.rawMappings = n, n;
},
set rawMappings(n) {
Object.defineProperty(r, "rawMappings", {
value: n,
writable: !0
});
}
};
return r;
}
append(t, r) {
this._flush(), this._append(t, this._sourcePosition, r);
}
appendChar(t) {
this._flush(), this._appendChar(t, 1, this._sourcePosition);
}
queue(t) {
if (t === 10)
for (; this._queueCursor !== 0; ) {
let n = this._queue[this._queueCursor - 1].char;
if (n !== 32 && n !== 9)
break;
this._queueCursor--;
}
let r = this._sourcePosition;
this._pushQueue(t, 1, r.line, r.column, r.filename);
}
queueIndentation(t) {
t !== 0 && this._pushQueue(-1, t, void 0, void 0, void 0);
}
_flush() {
let t = this._queueCursor, r = this._queue;
for (let n = 0; n < t; n++) {
let s = r[n];
this._appendChar(s.char, s.repeat, s);
}
this._queueCursor = 0;
}
_appendChar(t, r, n) {
if (this._last = t, t === -1) {
let s = this._fastIndentations[r];
s !== void 0 ? this._str += s : this._str += r > 1 ? this._indentChar.repeat(r) : this._indentChar;
} else
this._str += r > 1 ? String.fromCharCode(t).repeat(r) : String.fromCharCode(t);
t !== 10 ? (this._mark(n.line, n.column, n.identifierName, n.identifierNamePos, n.filename), this._position.column += r) : (this._position.
line++, this._position.column = 0), this._canMarkIdName && (n.identifierName = void 0, n.identifierNamePos = void 0);
}
_append(t, r, n) {
let s = t.length, a = this._position;
if (this._last = t.charCodeAt(s - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount =
0) : this._str += t, !n && !this._map) {
a.column += s;
return;
}
let {
column: o,
identifierName: l,
identifierNamePos: u,
filename: c
} = r, p = r.line;
(l != null || u != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0);
let f = t.indexOf(`
`), h = 0;
for (f !== 0 && this._mark(p, o, l, u, c); f !== -1; )
a.line++, a.column = 0, h = f + 1, h < s && p !== void 0 && this._mark(++p, 0, null, null, c), f = t.indexOf(`
`, h);
a.column += s - h;
}
_mark(t, r, n, s, a) {
var o;
(o = this._map) == null || o.mark(this._position, t, r, n, s, a);
}
removeTrailingNewline() {
let t = this._queueCursor;
t !== 0 && this._queue[t - 1].char === 10 && this._queueCursor--;
}
removeLastSemicolon() {
let t = this._queueCursor;
t !== 0 && this._queue[t - 1].char === 59 && this._queueCursor--;
}
getLastChar() {
let t = this._queueCursor;
return t !== 0 ? this._queue[t - 1].char : this._last;
}
getNewlineCount() {
let t = this._queueCursor, r = 0;
if (t === 0) return this._last === 10 ? 1 : 0;
for (let n = t - 1; n >= 0 && this._queue[n].char === 10; n--)
r++;
return r === t && this._last === 10 ? r + 1 : r;
}
endsWithCharAndNewline() {
let t = this._queue, r = this._queueCursor;
if (r !== 0)
return t[r - 1].char !== 10 ? void 0 : r > 1 ? t[r - 2].char : this._last;
}
hasContent() {
return this._queueCursor !== 0 || !!this._last;
}
exactSource(t, r) {
if (!this._map) {
r();
return;
}
this.source("start", t);
let n = t.identifierName, s = this._sourcePosition;
n && (this._canMarkIdName = !1, s.identifierName = n), r(), n && (this._canMarkIdName = !0, s.identifierName = void 0, s.identifierNamePos =
void 0), this.source("end", t);
}
source(t, r) {
this._map && this._normalizePosition(t, r, 0);
}
sourceWithOffset(t, r, n) {
this._map && this._normalizePosition(t, r, n);
}
_normalizePosition(t, r, n) {
let s = r[t], a = this._sourcePosition;
s && (a.line = s.line, a.column = Math.max(s.column + n, 0), a.filename = r.filename);
}
getCurrentColumn() {
let t = this._queue, r = this._queueCursor, n = -1, s = 0;
for (let a = 0; a < r; a++) {
let o = t[a];
o.char === 10 && (n = s), s += o.repeat;
}
return n === -1 ? this._position.column + s : s - 1 - n;
}
getCurrentLine() {
let t = 0, r = this._queue;
for (let n = 0; n < this._queueCursor; n++)
r[n].char === 10 && t++;
return this._position.line + t;
}
};
fu.default = hm;
});
// ../node_modules/@babel/generator/lib/node/whitespace.js
var Mx = P((hu) => {
"use strict";
Object.defineProperty(hu, "__esModule", {
value: !0
});
hu.nodes = void 0;
var PJ = Ce(), {
FLIPPED_ALIAS_KEYS: AJ,
isArrayExpression: CJ,
isAssignmentExpression: Fx,
isBinary: jx,
isBlockStatement: DJ,
isCallExpression: Lx,
isFunction: ro,
isIdentifier: du,
isLiteral: wJ,
isMemberExpression: mm,
isObjectExpression: IJ,
isOptionalCallExpression: _J,
isOptionalMemberExpression: OJ,
isStringLiteral: NJ
} = PJ;
function ji(e, t) {
return e && (mm(e) || OJ(e) ? (ji(e.object, t), e.computed && ji(e.property, t)) : jx(e) || Fx(e) ? (ji(e.left, t), ji(e.right, t)) : Lx(
e) || _J(e) ? (t.hasCall = !0, ji(e.callee, t)) : ro(e) ? t.hasFunction = !0 : du(e) && (t.hasHelper = t.hasHelper || e.callee && _n(e.callee))),
t;
}
i(ji, "crawlInternal");
function kx(e) {
return ji(e, {
hasCall: !1,
hasFunction: !1,
hasHelper: !1
});
}
i(kx, "crawl");
function _n(e) {
return e ? mm(e) ? _n(e.object) || _n(e.property) : du(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : Lx(e) ? _n(e.callee) :
jx(e) || Fx(e) ? du(e.left) && _n(e.left) || _n(e.right) : !1 : !1;
}
i(_n, "isHelper");
function BJ(e) {
return wJ(e) || IJ(e) || CJ(e) || du(e) || mm(e);
}
i(BJ, "isType");
var Gs = hu.nodes = {
AssignmentExpression(e) {
let t = kx(e.right);
if (t.hasCall && t.hasHelper || t.hasFunction)
return t.hasFunction ? 3 : 2;
},
SwitchCase(e, t) {
return (e.consequent.length || t.cases[0] === e ? 1 : 0) | (!e.consequent.length && t.cases[t.cases.length - 1] === e ? 2 : 0);
},
LogicalExpression(e) {
if (ro(e.left) || ro(e.right))
return 2;
},
Literal(e) {
if (NJ(e) && e.value === "use strict")
return 2;
},
CallExpression(e) {
if (ro(e.callee) || _n(e))
return 3;
},
OptionalCallExpression(e) {
if (ro(e.callee))
return 3;
},
VariableDeclaration(e) {
for (let t = 0; t < e.declarations.length; t++) {
let r = e.declarations[t], n = _n(r.id) && !BJ(r.init);
if (!n && r.init) {
let s = kx(r.init);
n = _n(r.init) && s.hasCall || s.hasFunction;
}
if (n)
return 3;
}
},
IfStatement(e) {
if (DJ(e.consequent))
return 3;
}
};
Gs.ObjectProperty = Gs.ObjectTypeProperty = Gs.ObjectMethod = function(e, t) {
if (t.properties[0] === e)
return 1;
};
Gs.ObjectTypeCallProperty = function(e, t) {
var r;
if (t.callProperties[0] === e && !((r = t.properties) != null && r.length))
return 1;
};
Gs.ObjectTypeIndexer = function(e, t) {
var r, n;
if (t.indexers[0] === e && !((r = t.properties) != null && r.length) && !((n = t.callProperties) != null && n.length))
return 1;
};
Gs.ObjectTypeInternalSlot = function(e, t) {
var r, n, s;
if (t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((n = t.callProperties) != null && n.length) && !((s = t.indexers) !=
null && s.length))
return 1;
};
[["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([
e, t]) {
[e].concat(AJ[e] || []).forEach(function(r) {
let n = t ? 3 : 0;
Gs[r] = () => n;
});
});
});
// ../node_modules/@babel/generator/lib/node/parentheses.js
var Gx = P((Ve) => {
"use strict";
Object.defineProperty(Ve, "__esModule", {
value: !0
});
Ve.AssignmentExpression = pX;
Ve.Binary = $x;
Ve.BinaryExpression = iX;
Ve.ClassExpression = lX;
Ve.ArrowFunctionExpression = Ve.ConditionalExpression = Kx;
Ve.DoExpression = YJ;
Ve.FunctionExpression = uX;
Ve.FunctionTypeAnnotation = KJ;
Ve.Identifier = dX;
Ve.LogicalExpression = fX;
Ve.NullableTypeAnnotation = WJ;
Ve.ObjectExpression = HJ;
Ve.OptionalIndexedAccessType = XJ;
Ve.OptionalCallExpression = Ve.OptionalMemberExpression = cX;
Ve.SequenceExpression = aX;
Ve.TSSatisfiesExpression = Ve.TSAsExpression = zJ;
Ve.TSConditionalType = QJ;
Ve.TSConstructorType = Ve.TSFunctionType = sX;
Ve.TSInferType = tX;
Ve.TSInstantiationExpression = nX;
Ve.TSIntersectionType = eX;
Ve.UnaryLike = Ve.TSTypeAssertion = Wx;
Ve.TSTypeOperator = rX;
Ve.TSUnionType = ZJ;
Ve.IntersectionTypeAnnotation = Ve.UnionTypeAnnotation = JJ;
Ve.UpdateExpression = GJ;
Ve.AwaitExpression = Ve.YieldExpression = oX;
var kJ = Ce(), Nr = as(), {
isArrayTypeAnnotation: FJ,
isBinaryExpression: jJ,
isCallExpression: LJ,
isForOfStatement: MJ,
isIndexedAccessType: RJ,
isMemberExpression: Ux,
isObjectPattern: qJ,
isOptionalMemberExpression: UJ,
isYieldExpression: VJ,
isStatement: $J
} = kJ, Rx = /* @__PURE__ */ new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["!\
=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-",
8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]);
function qx(e, t) {
if (t === "BinaryExpression" || t === "LogicalExpression")
return Rx.get(e.operator);
if (t === "TSAsExpression" || t === "TSSatisfiesExpression")
return Rx.get("in");
}
i(qx, "getBinaryPrecedence");
function ym(e) {
return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion";
}
i(ym, "isTSTypeExpression");
var mu = /* @__PURE__ */ i((e, t) => {
let r = t.type;
return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e;
}, "isClassExtendsClause"), yu = /* @__PURE__ */ i((e, t) => {
let r = t.type;
return (r === "MemberExpression" || r === "OptionalMemberExpression") && t.object === e || (r === "CallExpression" || r === "OptionalCal\
lExpression" || r === "NewExpression") && t.callee === e || r === "TaggedTemplateExpression" && t.tag === e || r === "TSNonNullExpression";
}, "hasPostfixPart");
function WJ(e, t) {
return FJ(t);
}
i(WJ, "NullableTypeAnnotation");
function KJ(e, t, r) {
let n = t.type;
return n === "UnionTypeAnnotation" || n === "IntersectionTypeAnnotation" || n === "ArrayTypeAnnotation" || !!(r & Nr.TokenContext.arrowFlowReturnType);
}
i(KJ, "FunctionTypeAnnotation");
function GJ(e, t) {
return yu(e, t) || mu(e, t);
}
i(GJ, "UpdateExpression");
function Vx(e) {
return !!(e & (Nr.TokenContext.expressionStatement | Nr.TokenContext.arrowBody));
}
i(Vx, "needsParenBeforeExpressionBrace");
function HJ(e, t, r) {
return Vx(r);
}
i(HJ, "ObjectExpression");
function YJ(e, t, r) {
return !e.async && !!(r & Nr.TokenContext.expressionStatement);
}
i(YJ, "DoExpression");
function $x(e, t) {
let r = t.type;
if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**")
return t.left === e;
if (mu(e, t) || yu(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression")
return !0;
let n = qx(t, r);
if (n != null) {
let s = qx(e, e.type);
if (n === s && r === "BinaryExpression" && t.right === e || n > s)
return !0;
}
}
i($x, "Binary");
function JJ(e, t) {
let r = t.type;
return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation";
}
i(JJ, "UnionTypeAnnotation");
function XJ(e, t) {
return RJ(t) && t.objectType === e;
}
i(XJ, "OptionalIndexedAccessType");
function zJ(e, t) {
return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator ===
"|" || t.operator === "&") && e === t.left ? !0 : $x(e, t);
}
i(zJ, "TSAsExpression");
function QJ(e, t) {
let r = t.type;
return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || r === "TSTypeOperator" || r ===
"TSTypeParameter" || (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e || r === "TSConditionalType" && (t.checkType ===
e || t.extendsType === e);
}
i(QJ, "TSConditionalType");
function ZJ(e, t) {
let r = t.type;
return r === "TSIntersectionType" || r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e ||
r === "TSOptionalType";
}
i(ZJ, "TSUnionType");
function eX(e, t) {
let r = t.type;
return r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType";
}
i(eX, "TSIntersectionType");
function tX(e, t) {
let r = t.type;
return !!(r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || e.typeParameter.constraint &&
(r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e);
}
i(tX, "TSInferType");
function rX(e, t) {
let r = t.type;
return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType";
}
i(rX, "TSTypeOperator");
function nX(e, t) {
let r = t.type;
return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters;
}
i(nX, "TSInstantiationExpression");
function sX(e, t) {
let r = t.type;
return r === "TSIntersectionType" || r === "TSUnionType" || r === "TSTypeOperator" || r === "TSOptionalType" || r === "TSArrayType" || r ===
"TSIndexedAccessType" && t.objectType === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e);
}
i(sX, "TSFunctionType");
function iX(e, t, r, n) {
return e.operator === "in" && n;
}
i(iX, "BinaryExpression");
function aX(e, t) {
let r = t.type;
return r === "SequenceExpression" || r === "ParenthesizedExpression" || r === "MemberExpression" && t.property === e || r === "OptionalM\
emberExpression" && t.property === e || r === "TemplateLiteral" ? !1 : r === "ClassDeclaration" ? !0 : r === "ForOfStatement" ? t.right === e :
r === "ExportDefaultDeclaration" ? !0 : !$J(t);
}
i(aX, "SequenceExpression");
function oX(e, t) {
let r = t.type;
return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || yu(e, t) || r === "A\
waitExpression" && VJ(e) || r === "ConditionalExpression" && e === t.test || mu(e, t) || ym(r);
}
i(oX, "YieldExpression");
function lX(e, t, r) {
return !!(r & (Nr.TokenContext.expressionStatement | Nr.TokenContext.exportDefault));
}
i(lX, "ClassExpression");
function Wx(e, t) {
return yu(e, t) || jJ(t) && t.operator === "**" && t.left === e || mu(e, t);
}
i(Wx, "UnaryLike");
function uX(e, t, r) {
return !!(r & (Nr.TokenContext.expressionStatement | Nr.TokenContext.exportDefault));
}
i(uX, "FunctionExpression");
function Kx(e, t) {
let r = t.type;
return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\
pression" && t.test === e || r === "AwaitExpression" || ym(r) ? !0 : Wx(e, t);
}
i(Kx, "ConditionalExpression");
function cX(e, t) {
return LJ(t) && t.callee === e || Ux(t) && t.object === e;
}
i(cX, "OptionalMemberExpression");
function pX(e, t, r) {
return Vx(r) && qJ(e.left) ? !0 : Kx(e, t);
}
i(pX, "AssignmentExpression");
function fX(e, t) {
let r = t.type;
if (ym(r)) return !0;
if (r !== "LogicalExpression") return !1;
switch (e.operator) {
case "||":
return t.operator === "??" || t.operator === "&&";
case "&&":
return t.operator === "??";
case "??":
return t.operator !== "??";
}
}
i(fX, "LogicalExpression");
function dX(e, t, r, n, s) {
var a;
let o = t.type;
if ((a = e.extra) != null && a.parenthesized && o === "AssignmentExpression" && t.left === e) {
let l = t.right.type;
if ((l === "FunctionExpression" || l === "ClassExpression") && t.right.id == null)
return !0;
}
return s && s(e) !== e.name ? !1 : e.name === "let" ? (Ux(t, {
object: e,
computed: !0
}) || UJ(t, {
object: e,
computed: !0,
optional: !1
})) && r & (Nr.TokenContext.expressionStatement | Nr.TokenContext.forHead | Nr.TokenContext.forInHead) ? !0 : !!(r & Nr.TokenContext.forOfHead) :
e.name === "async" && MJ(t, {
left: e,
await: !1
});
}
i(dX, "Identifier");
});
// ../node_modules/@babel/generator/lib/node/index.js
var as = P((On) => {
"use strict";
Object.defineProperty(On, "__esModule", {
value: !0
});
On.TokenContext = void 0;
On.isLastChild = IX;
On.needsParens = wX;
On.needsWhitespace = bm;
On.needsWhitespaceAfter = DX;
On.needsWhitespaceBefore = CX;
var hX = Mx(), mX = Gx(), yX = Ce(), {
FLIPPED_ALIAS_KEYS: gX,
VISITOR_KEYS: bX,
isCallExpression: Hx,
isDecorator: EX,
isExpressionStatement: TX,
isMemberExpression: SX,
isNewExpression: xX,
isParenthesizedExpression: vX
} = yX, Ove = On.TokenContext = {
expressionStatement: 1,
arrowBody: 2,
exportDefault: 4,
forHead: 8,
forInHead: 16,
forOfHead: 32,
arrowFlowReturnType: 64
};
function Yx(e) {
let t = /* @__PURE__ */ new Map();
function r(n, s) {
let a = t.get(n);
t.set(n, a ? function(o, l, u, c, p) {
var f;
return (f = a(o, l, u, c, p)) != null ? f : s(o, l, u, c, p);
} : s);
}
i(r, "add");
for (let n of Object.keys(e)) {
let s = gX[n];
if (s)
for (let a of s)
r(a, e[n]);
else
r(n, e[n]);
}
return t;
}
i(Yx, "expandAliases");
var PX = Yx(mX), AX = Yx(hX.nodes);
function Jx(e) {
return Hx(e) ? !0 : SX(e) && Jx(e.object);
}
i(Jx, "isOrHasCallExpression");
function bm(e, t, r) {
var n;
if (!e) return !1;
TX(e) && (e = e.expression);
let s = (n = AX.get(e.type)) == null ? void 0 : n(e, t);
return typeof s == "number" ? (s & r) !== 0 : !1;
}
i(bm, "needsWhitespace");
function CX(e, t) {
return bm(e, t, 1);
}
i(CX, "needsWhitespaceBefore");
function DX(e, t) {
return bm(e, t, 2);
}
i(DX, "needsWhitespaceAfter");
function wX(e, t, r, n, s) {
var a;
return t ? xX(t) && t.callee === e && Jx(e) ? !0 : EX(t) ? !gm(e) && !(Hx(e) && gm(e.callee)) && !vX(e) : (a = PX.get(e.type)) == null ?
void 0 : a(e, t, r, n, s) : !1;
}
i(wX, "needsParens");
function gm(e) {
switch (e.type) {
case "Identifier":
return !0;
case "MemberExpression":
return !e.computed && e.property.type === "Identifier" && gm(e.object);
default:
return !1;
}
}
i(gm, "isDecoratorMemberExpression");
function IX(e, t) {
let r = bX[e.type];
for (let n = r.length - 1; n >= 0; n--) {
let s = e[r[n]];
if (s === t)
return !0;
if (Array.isArray(s)) {
let a = s.length - 1;
for (; a >= 0 && s[a] === null; ) a--;
return a >= 0 && s[a] === t;
} else if (s)
return !1;
}
return !1;
}
i(IX, "isLastChild");
});
// ../node_modules/@babel/generator/lib/token-map.js
var Xx = P((gu) => {
"use strict";
Object.defineProperty(gu, "__esModule", {
value: !0
});
gu.TokenMap = void 0;
var _X = Ce(), {
traverseFast: OX,
VISITOR_KEYS: NX
} = _X, Em = class {
static {
i(this, "TokenMap");
}
constructor(t, r, n) {
this._tokens = void 0, this._source = void 0, this._nodesToTokenIndexes = /* @__PURE__ */ new Map(), this._nodesOccurrencesCountCache =
/* @__PURE__ */ new Map(), this._tokensCache = /* @__PURE__ */ new Map(), this._tokens = r, this._source = n, OX(t, (s) => {
let a = this._getTokensIndexesOfNode(s);
a.length > 0 && this._nodesToTokenIndexes.set(s, a);
}), this._tokensCache = null;
}
has(t) {
return this._nodesToTokenIndexes.has(t);
}
getIndexes(t) {
return this._nodesToTokenIndexes.get(t);
}
find(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (n)
for (let s = 0; s < n.length; s++) {
let a = n[s], o = this._tokens[a];
if (r(o, a)) return o;
}
return null;
}
findLastIndex(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (n)
for (let s = n.length - 1; s >= 0; s--) {
let a = n[s], o = this._tokens[a];
if (r(o, a)) return a;
}
return -1;
}
findMatching(t, r, n = 0) {
let s = this._nodesToTokenIndexes.get(t);
if (s) {
let a = 0, o = n;
if (o > 1) {
let l = this._nodesOccurrencesCountCache.get(t);
l && l.test === r && l.count < o && (a = l.i + 1, n -= l.count + 1);
}
for (; a < s.length; a++) {
let l = this._tokens[s[a]];
if (this.matchesOriginal(l, r)) {
if (n === 0)
return o > 0 && this._nodesOccurrencesCountCache.set(t, {
test: r,
count: o,
i: a
}), l;
n--;
}
}
}
return null;
}
matchesOriginal(t, r) {
return t.end - t.start !== r.length ? !1 : t.value != null ? t.value === r : this._source.startsWith(r, t.start);
}
startMatches(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (!n) return !1;
let s = this._tokens[n[0]];
return s.start !== t.start ? !1 : this.matchesOriginal(s, r);
}
endMatches(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (!n) return !1;
let s = this._tokens[n[n.length - 1]];
return s.end !== t.end ? !1 : this.matchesOriginal(s, r);
}
_getTokensIndexesOfNode(t) {
if (t.start == null || t.end == null) return [];
let {
first: r,
last: n
} = this._findTokensOfNode(t, 0, this._tokens.length - 1), s = r, a = BX(t);
(t.type === "ExportNamedDeclaration" || t.type === "ExportDefaultDeclaration") && t.declaration && t.declaration.type === "ClassDeclar\
ation" && a.next();
let o = [];
for (let l of a) {
if (l == null || l.start == null || l.end == null) continue;
let u = this._findTokensOfNode(l, s, n), c = u.first;
for (let p = s; p < c; p++) o.push(p);
s = u.last + 1;
}
for (let l = s; l <= n; l++) o.push(l);
return o;
}
_findTokensOfNode(t, r, n) {
let s = this._tokensCache.get(t);
if (s) return s;
let a = this._findFirstTokenOfNode(t.start, r, n), o = this._findLastTokenOfNode(t.end, a, n);
return this._tokensCache.set(t, {
first: a,
last: o
}), {
first: a,
last: o
};
}
_findFirstTokenOfNode(t, r, n) {
for (; r <= n; ) {
let s = n + r >> 1;
if (t < this._tokens[s].start)
n = s - 1;
else if (t > this._tokens[s].start)
r = s + 1;
else
return s;
}
return r;
}
_findLastTokenOfNode(t, r, n) {
for (; r <= n; ) {
let s = n + r >> 1;
if (t < this._tokens[s].end)
n = s - 1;
else if (t > this._tokens[s].end)
r = s + 1;
else
return s;
}
return n;
}
};
gu.TokenMap = Em;
function* BX(e) {
if (e.type === "TemplateLiteral") {
yield e.quasis[0];
for (let r = 1; r < e.quasis.length; r++)
yield e.expressions[r - 1], yield e.quasis[r];
return;
}
let t = NX[e.type];
for (let r of t) {
let n = e[r];
n && (Array.isArray(n) ? yield* n : yield n);
}
}
i(BX, "childrenIterator");
});
// ../node_modules/@babel/generator/lib/generators/template-literals.js
var zx = P((Li) => {
"use strict";
Object.defineProperty(Li, "__esModule", {
value: !0
});
Li.TaggedTemplateExpression = kX;
Li.TemplateElement = FX;
Li.TemplateLiteral = LX;
Li._printTemplate = jX;
function kX(e) {
this.print(e.tag), this.print(e.typeParameters), this.print(e.quasi);
}
i(kX, "TaggedTemplateExpression");
function FX() {
throw new Error("TemplateElement printing is handled in TemplateLiteral");
}
i(FX, "TemplateElement");
function jX(e, t) {
let r = e.quasis, n = "`";
for (let s = 0; s < r.length - 1; s++)
if (n += r[s].value.raw, this.token(n + "${", !0), this.print(t[s]), n = "}", this.tokenMap) {
let a = this.tokenMap.findMatching(e, "}", s);
a && this._catchUpTo(a.loc.start);
}
n += r[r.length - 1].value.raw, this.token(n + "`", !0);
}
i(jX, "_printTemplate");
function LX(e) {
this._printTemplate(e, e.expressions);
}
i(LX, "TemplateLiteral");
});
// ../node_modules/@babel/generator/lib/generators/expressions.js
var Zx = P((nt) => {
"use strict";
Object.defineProperty(nt, "__esModule", {
value: !0
});
nt.LogicalExpression = nt.BinaryExpression = nt.AssignmentExpression = uz;
nt.AssignmentPattern = lz;
nt.AwaitExpression = sz;
nt.BindExpression = cz;
nt.CallExpression = rz;
nt.ConditionalExpression = HX;
nt.Decorator = ZX;
nt.DoExpression = WX;
nt.EmptyStatement = az;
nt.ExpressionStatement = oz;
nt.Import = nz;
nt.MemberExpression = pz;
nt.MetaProperty = fz;
nt.ModuleExpression = mz;
nt.NewExpression = YX;
nt.OptionalCallExpression = tz;
nt.OptionalMemberExpression = ez;
nt.ParenthesizedExpression = KX;
nt.PrivateName = dz;
nt.SequenceExpression = JX;
nt.Super = zX;
nt.ThisExpression = XX;
nt.UnaryExpression = $X;
nt.UpdateExpression = GX;
nt.V8IntrinsicIdentifier = hz;
nt.YieldExpression = iz;
nt._shouldPrintDecoratorsBeforeExport = QX;
var MX = Ce(), RX = as(), {
isCallExpression: qX,
isLiteral: Qx,
isMemberExpression: Tm,
isNewExpression: UX,
isPattern: VX
} = MX;
function $X(e) {
let {
operator: t
} = e;
t === "void" || t === "delete" || t === "typeof" || t === "throw" ? (this.word(t), this.space()) : this.token(t), this.print(e.argument);
}
i($X, "UnaryExpression");
function WX(e) {
e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body);
}
i(WX, "DoExpression");
function KX(e) {
this.tokenChar(40);
let t = this.enterDelimited();
this.print(e.expression), t(), this.rightParens(e);
}
i(KX, "ParenthesizedExpression");
function GX(e) {
e.prefix ? (this.token(e.operator), this.print(e.argument)) : (this.print(e.argument, !0), this.token(e.operator));
}
i(GX, "UpdateExpression");
function HX(e) {
this.print(e.test), this.space(), this.tokenChar(63), this.space(), this.print(e.consequent), this.space(), this.tokenChar(58), this.space(),
this.print(e.alternate);
}
i(HX, "ConditionalExpression");
function YX(e, t) {
if (this.word("new"), this.space(), this.print(e.callee), this.format.minified && e.arguments.length === 0 && !e.optional && !qX(t, {
callee: e
}) && !Tm(t) && !UX(t) || (this.print(e.typeArguments), this.print(e.typeParameters), e.optional && this.token("?."), e.arguments.length ===
0 && this.tokenMap && !this.tokenMap.endMatches(e, ")")))
return;
this.tokenChar(40);
let r = this.enterDelimited();
this.printList(e.arguments, this.shouldPrintTrailingComma(")")), r(), this.rightParens(e);
}
i(YX, "NewExpression");
function JX(e) {
this.printList(e.expressions);
}
i(JX, "SequenceExpression");
function XX() {
this.word("this");
}
i(XX, "ThisExpression");
function zX() {
this.word("super");
}
i(zX, "Super");
function QX(e) {
return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start ===
e.declaration.start;
}
i(QX, "_shouldPrintDecoratorsBeforeExport");
function ZX(e) {
this.tokenChar(64), this.print(e.expression), this.newline();
}
i(ZX, "Decorator");
function ez(e) {
let {
computed: t
} = e, {
optional: r,
property: n
} = e;
if (this.print(e.object), !t && Tm(n))
throw new TypeError("Got a MemberExpression for MemberExpression property");
Qx(n) && typeof n.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(n), this.tokenChar(93)) : (r ||
this.tokenChar(46), this.print(n));
}
i(ez, "OptionalMemberExpression");
function tz(e) {
this.print(e.callee), this.print(e.typeParameters), e.optional && this.token("?."), this.print(e.typeArguments), this.tokenChar(40);
let t = this.enterDelimited();
this.printList(e.arguments), t(), this.rightParens(e);
}
i(tz, "OptionalCallExpression");
function rz(e) {
this.print(e.callee), this.print(e.typeArguments), this.print(e.typeParameters), this.tokenChar(40);
let t = this.enterDelimited();
this.printList(e.arguments, this.shouldPrintTrailingComma(")")), t(), this.rightParens(e);
}
i(rz, "CallExpression");
function nz() {
this.word("import");
}
i(nz, "Import");
function sz(e) {
this.word("await"), e.argument && (this.space(), this.printTerminatorless(e.argument));
}
i(sz, "AwaitExpression");
function iz(e) {
this.word("yield", !0), e.delegate ? (this.tokenChar(42), e.argument && (this.space(), this.print(e.argument))) : e.argument && (this.space(),
this.printTerminatorless(e.argument));
}
i(iz, "YieldExpression");
function az() {
this.semicolon(!0);
}
i(az, "EmptyStatement");
function oz(e) {
this.tokenContext |= RX.TokenContext.expressionStatement, this.print(e.expression), this.semicolon();
}
i(oz, "ExpressionStatement");
function lz(e) {
this.print(e.left), (e.left.type === "Identifier" || VX(e.left)) && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation)),
this.space(), this.tokenChar(61), this.space(), this.print(e.right);
}
i(lz, "AssignmentPattern");
function uz(e) {
this.print(e.left), this.space(), e.operator === "in" || e.operator === "instanceof" ? this.word(e.operator) : (this.token(e.operator), this.
_endsWithDiv = e.operator === "/"), this.space(), this.print(e.right);
}
i(uz, "AssignmentExpression");
function cz(e) {
this.print(e.object), this.token("::"), this.print(e.callee);
}
i(cz, "BindExpression");
function pz(e) {
if (this.print(e.object), !e.computed && Tm(e.property))
throw new TypeError("Got a MemberExpression for MemberExpression property");
let t = e.computed;
if (Qx(e.property) && typeof e.property.value == "number" && (t = !0), t) {
let r = this.enterDelimited();
this.tokenChar(91), this.print(e.property), this.tokenChar(93), r();
} else
this.tokenChar(46), this.print(e.property);
}
i(pz, "MemberExpression");
function fz(e) {
this.print(e.meta), this.tokenChar(46), this.print(e.property);
}
i(fz, "MetaProperty");
function dz(e) {
this.tokenChar(35), this.print(e.id);
}
i(dz, "PrivateName");
function hz(e) {
this.tokenChar(37), this.word(e.name);
}
i(hz, "V8IntrinsicIdentifier");
function mz(e) {
this.word("module", !0), this.space(), this.tokenChar(123), this.indent();
let {
body: t
} = e;
(t.body.length || t.directives.length) && this.newline(), this.print(t), this.dedent(), this.rightBrace(e);
}
i(mz, "ModuleExpression");
});
// ../node_modules/@babel/generator/lib/generators/statements.js
var nv = P((Et) => {
"use strict";
Object.defineProperty(Et, "__esModule", {
value: !0
});
Et.BreakStatement = Az;
Et.CatchClause = Oz;
Et.ContinueStatement = Cz;
Et.DebuggerStatement = kz;
Et.DoWhileStatement = Pz;
Et.ForOfStatement = Et.ForInStatement = void 0;
Et.ForStatement = xz;
Et.IfStatement = Sz;
Et.LabeledStatement = Iz;
Et.ReturnStatement = Dz;
Et.SwitchCase = Bz;
Et.SwitchStatement = Nz;
Et.ThrowStatement = wz;
Et.TryStatement = _z;
Et.VariableDeclaration = Fz;
Et.VariableDeclarator = jz;
Et.WhileStatement = vz;
Et.WithStatement = Tz;
var yz = Ce(), Sm = as(), {
isFor: ev,
isForStatement: gz,
isIfStatement: bz,
isStatement: Ez
} = yz;
function Tz(e) {
this.word("with"), this.space(), this.tokenChar(40), this.print(e.object), this.tokenChar(41), this.printBlock(e);
}
i(Tz, "WithStatement");
function Sz(e) {
this.word("if"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.space();
let t = e.alternate && bz(tv(e.consequent));
t && (this.tokenChar(123), this.newline(), this.indent()), this.printAndIndentOnComments(e.consequent), t && (this.dedent(), this.newline(),
this.tokenChar(125)), e.alternate && (this.endsWith(125) && this.space(), this.word("else"), this.space(), this.printAndIndentOnComments(
e.alternate));
}
i(Sz, "IfStatement");
function tv(e) {
let {
body: t
} = e;
return Ez(t) === !1 ? e : tv(t);
}
i(tv, "getLastStatement");
function xz(e) {
this.word("for"), this.space(), this.tokenChar(40);
{
let t = this.enterForStatementInit();
this.tokenContext |= Sm.TokenContext.forHead, this.print(e.init), t();
}
this.tokenChar(59), e.test && (this.space(), this.print(e.test)), this.token(";", !1, 1), e.update && (this.space(), this.print(e.update)),
this.tokenChar(41), this.printBlock(e);
}
i(xz, "ForStatement");
function vz(e) {
this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.printBlock(e);
}
i(vz, "WhileStatement");
function rv(e) {
this.word("for"), this.space();
let t = e.type === "ForOfStatement";
t && e.await && (this.word("await"), this.space()), this.noIndentInnerCommentsHere(), this.tokenChar(40);
{
let r = t ? null : this.enterForStatementInit();
this.tokenContext |= t ? Sm.TokenContext.forOfHead : Sm.TokenContext.forInHead, this.print(e.left), r?.();
}
this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right), this.tokenChar(41), this.printBlock(e);
}
i(rv, "ForXStatement");
var qve = Et.ForInStatement = rv, Uve = Et.ForOfStatement = rv;
function Pz(e) {
this.word("do"), this.space(), this.print(e.body), this.space(), this.word("while"), this.space(), this.tokenChar(40), this.print(e.test),
this.tokenChar(41), this.semicolon();
}
i(Pz, "DoWhileStatement");
function bu(e, t) {
t && (e.space(), e.printTerminatorless(t)), e.semicolon();
}
i(bu, "printStatementAfterKeyword");
function Az(e) {
this.word("break"), bu(this, e.label);
}
i(Az, "BreakStatement");
function Cz(e) {
this.word("continue"), bu(this, e.label);
}
i(Cz, "ContinueStatement");
function Dz(e) {
this.word("return"), bu(this, e.argument);
}
i(Dz, "ReturnStatement");
function wz(e) {
this.word("throw"), bu(this, e.argument);
}
i(wz, "ThrowStatement");
function Iz(e) {
this.print(e.label), this.tokenChar(58), this.space(), this.print(e.body);
}
i(Iz, "LabeledStatement");
function _z(e) {
this.word("try"), this.space(), this.print(e.block), this.space(), e.handlers ? this.print(e.handlers[0]) : this.print(e.handler), e.finalizer &&
(this.space(), this.word("finally"), this.space(), this.print(e.finalizer));
}
i(_z, "TryStatement");
function Oz(e) {
this.word("catch"), this.space(), e.param && (this.tokenChar(40), this.print(e.param), this.print(e.param.typeAnnotation), this.tokenChar(
41), this.space()), this.print(e.body);
}
i(Oz, "CatchClause");
function Nz(e) {
this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant), this.tokenChar(41), this.space(), this.tokenChar(123),
this.printSequence(e.cases, !0, void 0, /* @__PURE__ */ i(function(r, n) {
if (!r && e.cases[e.cases.length - 1] === n) return -1;
}, "addNewlines")), this.rightBrace(e);
}
i(Nz, "SwitchStatement");
function Bz(e) {
e.test ? (this.word("case"), this.space(), this.print(e.test), this.tokenChar(58)) : (this.word("default"), this.tokenChar(58)), e.consequent.
length && (this.newline(), this.printSequence(e.consequent, !0));
}
i(Bz, "SwitchCase");
function kz() {
this.word("debugger"), this.semicolon();
}
i(kz, "DebuggerStatement");
function Fz(e, t) {
e.declare && (this.word("declare"), this.space());
let {
kind: r
} = e;
r === "await using" ? (this.word("await"), this.space(), this.word("using", !0)) : this.word(r, r === "using"), this.space();
let n = !1;
if (!ev(t))
for (let s of e.declarations)
s.init && (n = !0);
if (this.printList(e.declarations, void 0, void 0, e.declarations.length > 1, n ? function(s) {
this.token(",", !1, s), this.newline();
} : void 0), ev(t)) {
if (gz(t)) {
if (t.init === e) return;
} else if (t.left === e) return;
}
this.semicolon();
}
i(Fz, "VariableDeclaration");
function jz(e) {
this.print(e.id), e.definite && this.tokenChar(33), this.print(e.id.typeAnnotation), e.init && (this.space(), this.tokenChar(61), this.space(),
this.print(e.init));
}
i(jz, "VariableDeclarator");
});
// ../node_modules/@babel/generator/lib/generators/classes.js
var sv = P((Br) => {
"use strict";
Object.defineProperty(Br, "__esModule", {
value: !0
});
Br.ClassAccessorProperty = Wz;
Br.ClassBody = Uz;
Br.ClassExpression = Br.ClassDeclaration = qz;
Br.ClassMethod = Gz;
Br.ClassPrivateMethod = Hz;
Br.ClassPrivateProperty = Kz;
Br.ClassProperty = $z;
Br.StaticBlock = Jz;
Br._classMethodHead = Yz;
var Lz = Ce(), {
isExportDefaultDeclaration: Mz,
isExportNamedDeclaration: Rz
} = Lz;
function qz(e, t) {
(!(Mz(t) || Rz(t)) || !this._shouldPrintDecoratorsBeforeExport(t)) && this.printJoin(e.decorators), e.declare && (this.word("declare"), this.
space()), e.abstract && (this.word("abstract"), this.space()), this.word("class"), e.id && (this.space(), this.print(e.id)), this.print(
e.typeParameters), e.superClass && (this.space(), this.word("extends"), this.space(), this.print(e.superClass), this.print(e.superTypeParameters)),
e.implements && (this.space(), this.word("implements"), this.space(), this.printList(e.implements)), this.space(), this.print(e.body);
}
i(qz, "ClassDeclaration");
function Uz(e) {
if (this.tokenChar(123), e.body.length === 0)
this.tokenChar(125);
else {
this.newline();
let t = Vz(this, e);
t?.(-1);
let r = this.enterDelimited();
this.printJoin(e.body, !0, !0, t, !0), r(), this.endsWith(10) || this.newline(), this.rightBrace(e);
}
}
i(Uz, "ClassBody");
function Vz(e, t) {
if (!e.tokenMap || t.start == null || t.end == null)
return null;
let r = e.tokenMap.getIndexes(t);
if (!r) return null;
let n = 1, s = 0, a = 0, o = /* @__PURE__ */ i(() => {
for (; a < t.body.length && t.body[a].start == null; )
a++;
}, "advanceNextLocIndex");
return o(), (l) => {
a <= l && (a = l + 1, o());
let u = a === t.body.length ? t.end : t.body[a].start, c;
for (; n < r.length && e.tokenMap.matchesOriginal(c = e._tokens[r[n]], ";") && c.start < u; )
e.token(";", void 0, s++), n++;
};
}
i(Vz, "classBodyEmptySemicolonsPrinter");
function $z(e) {
if (this.printJoin(e.decorators), !e.static && !this.format.preserveFormat) {
var t;
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r);
}
this.tsPrintClassMemberModifiers(e), e.computed ? (this.tokenChar(91), this.print(e.key), this.tokenChar(93)) : (this._variance(e), this.
print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(),
this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i($z, "ClassProperty");
function Wz(e) {
var t;
this.printJoin(e.decorators);
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r), this.tsPrintClassMemberModifiers(e), this.word("accessor", !0), this.space(), e.computed ? (this.tokenChar(91), this.
print(e.key), this.tokenChar(93)) : (this._variance(e), this.print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(
33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i(Wz, "ClassAccessorProperty");
function Kz(e) {
this.printJoin(e.decorators), this.tsPrintClassMemberModifiers(e), this.print(e.key), e.optional && this.tokenChar(63), e.definite && this.
tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i(Kz, "ClassPrivateProperty");
function Gz(e) {
this._classMethodHead(e), this.space(), this.print(e.body);
}
i(Gz, "ClassMethod");
function Hz(e) {
this._classMethodHead(e), this.space(), this.print(e.body);
}
i(Hz, "ClassPrivateMethod");
function Yz(e) {
if (this.printJoin(e.decorators), !this.format.preserveFormat) {
var t;
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r);
}
this.tsPrintClassMemberModifiers(e), this._methodHead(e);
}
i(Yz, "_classMethodHead");
function Jz(e) {
this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence(
e.body, !0), this.rightBrace(e));
}
i(Jz, "StaticBlock");
});
// ../node_modules/@babel/generator/lib/generators/methods.js
var iv = P((kr) => {
"use strict";
Object.defineProperty(kr, "__esModule", {
value: !0
});
kr.ArrowFunctionExpression = aQ;
kr.FunctionDeclaration = kr.FunctionExpression = iQ;
kr._functionHead = sQ;
kr._methodHead = rQ;
kr._param = tQ;
kr._parameters = eQ;
kr._params = Zz;
kr._predicate = nQ;
kr._shouldPrintArrowParamsParens = oQ;
var Xz = Ce(), zz = as(), {
isIdentifier: Qz
} = Xz;
function Zz(e, t, r) {
this.print(e.typeParameters);
let n = lQ.call(this, t, r);
n && this.sourceIdentifierName(n.name, n.pos), this.tokenChar(40), this._parameters(e.params, ")");
let s = e.type === "ArrowFunctionExpression";
this.print(e.returnType, s), this._noLineTerminator = s;
}
i(Zz, "_params");
function eQ(e, t) {
let r = this.enterDelimited(), n = this.shouldPrintTrailingComma(t), s = e.length;
for (let a = 0; a < s; a++)
this._param(e[a]), (n || a < s - 1) && (this.token(",", null, a), this.space());
this.token(t), r();
}
i(eQ, "_parameters");
function tQ(e) {
this.printJoin(e.decorators), this.print(e), e.optional && this.tokenChar(63), this.print(e.typeAnnotation);
}
i(tQ, "_param");
function rQ(e) {
let t = e.kind, r = e.key;
(t === "get" || t === "set") && (this.word(t), this.space()), e.async && (this.word("async", !0), this.space()), (t === "method" || t ===
"init") && e.generator && this.tokenChar(42), e.computed ? (this.tokenChar(91), this.print(r), this.tokenChar(93)) : this.print(r), e.optional &&
this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key, void 0);
}
i(rQ, "_methodHead");
function nQ(e, t) {
e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, t));
}
i(nQ, "_predicate");
function sQ(e, t) {
e.async && (this.word("async"), this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.space()), this.word("function"), e.generator &&
(this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.tokenChar(42)), this.space(), e.id && this.print(e.id), this._params(
e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate(e);
}
i(sQ, "_functionHead");
function iQ(e, t) {
this._functionHead(e, t), this.space(), this.print(e.body);
}
i(iQ, "FunctionExpression");
function aQ(e, t) {
e.async && (this.word("async", !0), this.space()), this._shouldPrintArrowParamsParens(e) ? this._params(e, void 0, t) : this.print(e.params[0],
!0), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= zz.TokenContext.
arrowBody, this.print(e.body);
}
i(aQ, "ArrowFunctionExpression");
function oQ(e) {
var t, r;
if (e.params.length !== 1 || e.typeParameters || e.returnType || e.predicate)
return !0;
let n = e.params[0];
if (!Qz(n) || n.typeAnnotation || n.optional || (t = n.leadingComments) != null && t.length || (r = n.trailingComments) != null && r.length)
return !0;
if (this.tokenMap) {
if (e.loc == null || this.tokenMap.findMatching(e, "(") !== null) return !0;
let s = this.tokenMap.findMatching(e, "=>");
return s?.loc == null ? !0 : s.loc.start.line !== e.loc.start.line;
}
return !!this.format.retainLines;
}
i(oQ, "_shouldPrintArrowParamsParens");
function lQ(e, t) {
let r = e;
if (!r && t) {
let u = t.type;
u === "VariableDeclarator" ? r = t.id : u === "AssignmentExpression" || u === "AssignmentPattern" ? r = t.left : u === "ObjectProperty" ||
u === "ClassProperty" ? (!t.computed || t.key.type === "StringLiteral") && (r = t.key) : (u === "ClassPrivateProperty" || u === "Class\
AccessorProperty") && (r = t.key);
}
if (!r) return;
let n;
if (r.type === "Identifier") {
var s, a;
n = {
pos: (s = r.loc) == null ? void 0 : s.start,
name: ((a = r.loc) == null ? void 0 : a.identifierName) || r.name
};
} else if (r.type === "PrivateName") {
var o;
n = {
pos: (o = r.loc) == null ? void 0 : o.start,
name: "#" + r.id.name
};
} else if (r.type === "StringLiteral") {
var l;
n = {
pos: (l = r.loc) == null ? void 0 : l.start,
name: r.value
};
}
return n;
}
i(lQ, "_getFuncIdName");
});
// ../node_modules/@babel/generator/lib/generators/modules.js
var xm = P((or) => {
"use strict";
Object.defineProperty(or, "__esModule", {
value: !0
});
or.ExportAllDeclaration = xQ;
or.ExportDefaultDeclaration = PQ;
or.ExportDefaultSpecifier = bQ;
or.ExportNamedDeclaration = vQ;
or.ExportNamespaceSpecifier = TQ;
or.ExportSpecifier = EQ;
or.ImportAttribute = CQ;
or.ImportDeclaration = AQ;
or.ImportDefaultSpecifier = gQ;
or.ImportExpression = wQ;
or.ImportNamespaceSpecifier = DQ;
or.ImportSpecifier = yQ;
or._printAttributes = SQ;
var uQ = Ce(), cQ = as(), {
isClassDeclaration: pQ,
isExportDefaultSpecifier: fQ,
isExportNamespaceSpecifier: dQ,
isImportDefaultSpecifier: hQ,
isImportNamespaceSpecifier: mQ,
isStatement: ov
} = uQ;
function yQ(e) {
(e.importKind === "type" || e.importKind === "typeof") && (this.word(e.importKind), this.space()), this.print(e.imported), e.local && e.
local.name !== e.imported.name && (this.space(), this.word("as"), this.space(), this.print(e.local));
}
i(yQ, "ImportSpecifier");
function gQ(e) {
this.print(e.local);
}
i(gQ, "ImportDefaultSpecifier");
function bQ(e) {
this.print(e.exported);
}
i(bQ, "ExportDefaultSpecifier");
function EQ(e) {
e.exportKind === "type" && (this.word("type"), this.space()), this.print(e.local), e.exported && e.local.name !== e.exported.name && (this.
space(), this.word("as"), this.space(), this.print(e.exported));
}
i(EQ, "ExportSpecifier");
function TQ(e) {
this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported);
}
i(TQ, "ExportNamespaceSpecifier");
var av = !1;
function SQ(e, t) {
var r;
let {
importAttributesKeyword: n
} = this.format, {
attributes: s,
assertions: a
} = e;
s && !n && e.extra && (e.extra.deprecatedAssertSyntax || e.extra.deprecatedWithLegacySyntax) && !av && (av = !0, console.warn('You are u\
sing import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose v\
alue can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { typ\
e: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));
let o = n === "assert" || !n && a;
if (this.word(o ? "assert" : "with"), this.space(), !o && (n === "with-legacy" || !n && (r = e.extra) != null && r.deprecatedWithLegacySyntax)) {
this.printList(s || a);
return;
}
let l = t ? 1 : 0;
this.token("{", null, l), this.space(), this.printList(s || a, this.shouldPrintTrailingComma("}")), this.space(), this.token("}", null, l);
}
i(SQ, "_printAttributes");
function xQ(e) {
var t, r;
this.word("export"), this.space(), e.exportKind === "type" && (this.word("type"), this.space()), this.tokenChar(42), this.space(), this.
word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0),
this.space(), this._printAttributes(e, !1)) : this.print(e.source), this.semicolon();
}
i(xQ, "ExportAllDeclaration");
function lv(e, t) {
pQ(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators);
}
i(lv, "maybePrintDecoratorsBeforeExport");
function vQ(e) {
if (lv(this, e), this.word("export"), this.space(), e.declaration) {
let n = e.declaration;
this.print(n), ov(n) || this.semicolon();
} else {
e.exportKind === "type" && (this.word("type"), this.space());
let n = e.specifiers.slice(0), s = !1;
for (; ; ) {
let o = n[0];
if (fQ(o) || dQ(o))
s = !0, this.print(n.shift()), n.length && (this.tokenChar(44), this.space());
else
break;
}
let a = !1;
if ((n.length || !n.length && !s) && (a = !0, this.tokenChar(123), n.length && (this.space(), this.printList(n, this.shouldPrintTrailingComma(
"}")), this.space()), this.tokenChar(125)), e.source) {
var t, r;
this.space(), this.word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.
print(e.source, !0), this.space(), this._printAttributes(e, a)) : this.print(e.source);
}
this.semicolon();
}
}
i(vQ, "ExportNamedDeclaration");
function PQ(e) {
lv(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |=
cQ.TokenContext.exportDefault;
let t = e.declaration;
this.print(t), ov(t) || this.semicolon();
}
i(PQ, "ExportDefaultDeclaration");
function AQ(e) {
var t, r;
this.word("import"), this.space();
let n = e.importKind === "type" || e.importKind === "typeof";
n ? (this.noIndentInnerCommentsHere(), this.word(e.importKind), this.space()) : e.module ? (this.noIndentInnerCommentsHere(), this.word(
"module"), this.space()) : e.phase && (this.noIndentInnerCommentsHere(), this.word(e.phase), this.space());
let s = e.specifiers.slice(0), a = !!s.length;
for (; a; ) {
let l = s[0];
if (hQ(l) || mQ(l))
this.print(s.shift()), s.length && (this.tokenChar(44), this.space());
else
break;
}
let o = !1;
s.length ? (o = !0, this.tokenChar(123), this.space(), this.printList(s, this.shouldPrintTrailingComma("}")), this.space(), this.tokenChar(
125)) : n && !a && (o = !0, this.tokenChar(123), this.tokenChar(125)), (a || n) && (this.space(), this.word("from"), this.space()), (t =
e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0), this.space(), this._printAttributes(
e, o)) : this.print(e.source), this.semicolon();
}
i(AQ, "ImportDeclaration");
function CQ(e) {
this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value);
}
i(CQ, "ImportAttribute");
function DQ(e) {
this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local);
}
i(DQ, "ImportNamespaceSpecifier");
function wQ(e) {
this.word("import"), e.phase && (this.tokenChar(46), this.word(e.phase)), this.tokenChar(40), this.print(e.source), e.options != null &&
(this.tokenChar(44), this.space(), this.print(e.options)), this.tokenChar(41);
}
i(wQ, "ImportExpression");
});
// ../node_modules/jsesc/jsesc.js
var fv = P((Xve, pv) => {
"use strict";
var uv = {}, IQ = uv.hasOwnProperty, cv = /* @__PURE__ */ i((e, t) => {
for (let r in e)
IQ.call(e, r) && t(r, e[r]);
}, "forOwn"), _Q = /* @__PURE__ */ i((e, t) => (t && cv(t, (r, n) => {
e[r] = n;
}), e), "extend"), OQ = /* @__PURE__ */ i((e, t) => {
let r = e.length, n = -1;
for (; ++n < r; )
t(e[n]);
}, "forEach"), Eu = /* @__PURE__ */ i((e) => "\\u" + ("0000" + e).slice(-4), "fourHexEscape"), no = /* @__PURE__ */ i((e, t) => {
let r = e.toString(16);
return t ? r : r.toUpperCase();
}, "hexadecimal"), so = uv.toString, NQ = Array.isArray, BQ = /* @__PURE__ */ i((e) => typeof Buffer == "function" && Buffer.isBuffer(e), "\
isBuffer"), kQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Object]", "isObject"), FQ = /* @__PURE__ */ i((e) => typeof e == "string" ||
so.call(e) == "[object String]", "isString"), jQ = /* @__PURE__ */ i((e) => typeof e == "number" || so.call(e) == "[object Number]", "isNu\
mber"), vm = /* @__PURE__ */ i((e) => typeof e == "bigint", "isBigInt"), LQ = /* @__PURE__ */ i((e) => typeof e == "function", "isFunction"),
MQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Map]", "isMap"), RQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Set]", "isSet"),
qQ = {
"\\": "\\\\",
"\b": "\\b",
"\f": "\\f",
"\n": "\\n",
"\r": "\\r",
" ": "\\t"
// `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'.
// '\v': '\\x0B'
}, UQ = /[\\\b\f\n\r\t]/, VQ = /[0-9]/, $Q = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, WQ = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,
KQ = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, os = /* @__PURE__ */ i((e, t) => {
let r = /* @__PURE__ */ i(() => {
c = u, ++t.indentLevel, u = t.indent.repeat(t.indentLevel);
}, "increaseIndentation"), n = {
escapeEverything: !1,
minimal: !1,
isScriptContext: !1,
quotes: "single",
wrap: !1,
es6: !1,
json: !1,
compact: !0,
lowercaseHex: !1,
numbers: "decimal",
indent: " ",
indentLevel: 0,
__inline1__: !1,
__inline2__: !1
}, s = t && t.json;
s && (n.quotes = "double", n.wrap = !0), t = _Q(n, t), t.quotes != "single" && t.quotes != "double" && t.quotes != "backtick" && (t.quotes =
"single");
let a = t.quotes == "double" ? '"' : t.quotes == "backtick" ? "`" : "'", o = t.compact, l = t.lowercaseHex, u = t.indent.repeat(t.indentLevel),
c = "", p = t.__inline1__, f = t.__inline2__, h = o ? "" : `
`, y, E = !0, d = t.numbers == "binary", g = t.numbers == "octal", C = t.numbers == "decimal", _ = t.numbers == "hexadecimal";
if (s && e && LQ(e.toJSON) && (e = e.toJSON()), !FQ(e)) {
if (MQ(e))
return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + os(Array.from(e), t) + ")");
if (RQ(e))
return e.size == 0 ? "new Set()" : "new Set(" + os(Array.from(e), t) + ")";
if (BQ(e))
return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + os(Array.from(e), t) + ")";
if (NQ(e))
return y = [], t.wrap = !0, p && (t.__inline1__ = !1, t.__inline2__ = !0), f || r(), OQ(e, (B) => {
E = !1, f && (t.__inline2__ = !1), y.push(
(o || f ? "" : u) + os(B, t)
);
}), E ? "[]" : f ? "[" + y.join(", ") + "]" : "[" + h + y.join("," + h) + h + (o ? "" : c) + "]";
if (jQ(e) || vm(e)) {
if (s)
return JSON.stringify(Number(e));
let B;
if (C)
B = String(e);
else if (_) {
let R = e.toString(16);
l || (R = R.toUpperCase()), B = "0x" + R;
} else d ? B = "0b" + e.toString(2) : g && (B = "0o" + e.toString(8));
return vm(e) ? B + "n" : B;
} else return vm(e) ? s ? JSON.stringify(Number(e)) : e + "n" : kQ(e) ? (y = [], t.wrap = !0, r(), cv(e, (B, R) => {
E = !1, y.push(
(o ? "" : u) + os(B, t) + ":" + (o ? "" : " ") + os(R, t)
);
}), E ? "{}" : "{" + h + y.join("," + h) + h + (o ? "" : c) + "}") : s ? JSON.stringify(e) || "null" : String(e);
}
let O = t.escapeEverything ? WQ : KQ;
return y = e.replace(O, (B, R, $, V, J, U) => {
if (R) {
if (t.minimal) return R;
let j = R.charCodeAt(0), Y = R.charCodeAt(1);
if (t.es6) {
let be = (j - 55296) * 1024 + Y - 56320 + 65536;
return "\\u{" + no(be, l) + "}";
}
return Eu(no(j, l)) + Eu(no(Y, l));
}
if ($)
return Eu(no($.charCodeAt(0), l));
if (B == "\0" && !s && !VQ.test(U.charAt(J + 1)))
return "\\0";
if (V)
return V == a || t.escapeEverything ? "\\" + V : V;
if (UQ.test(B))
return qQ[B];
if (t.minimal && !$Q.test(B))
return B;
let K = no(B.charCodeAt(0), l);
return s || K.length > 2 ? Eu(K) : "\\x" + ("00" + K).slice(-2);
}), a == "`" && (y = y.replace(/\$\{/g, "\\${")), t.isScriptContext && (y = y.replace(/<\/(script|style)/gi, "<\\/$1").replace(/