UNPKG

@pandabox/prettier-plugin

Version:

Prettier plugin for Panda css

1,425 lines (1,412 loc) 11.6 MB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // 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. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // ../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js var require_ast_spec = __commonJS({ "../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.AST_TOKEN_TYPES = exports2.AST_NODE_TYPES = void 0; var AST_NODE_TYPES; (function(AST_NODE_TYPES2) { AST_NODE_TYPES2["AccessorProperty"] = "AccessorProperty"; AST_NODE_TYPES2["ArrayExpression"] = "ArrayExpression"; AST_NODE_TYPES2["ArrayPattern"] = "ArrayPattern"; AST_NODE_TYPES2["ArrowFunctionExpression"] = "ArrowFunctionExpression"; AST_NODE_TYPES2["AssignmentExpression"] = "AssignmentExpression"; AST_NODE_TYPES2["AssignmentPattern"] = "AssignmentPattern"; AST_NODE_TYPES2["AwaitExpression"] = "AwaitExpression"; AST_NODE_TYPES2["BinaryExpression"] = "BinaryExpression"; AST_NODE_TYPES2["BlockStatement"] = "BlockStatement"; AST_NODE_TYPES2["BreakStatement"] = "BreakStatement"; AST_NODE_TYPES2["CallExpression"] = "CallExpression"; AST_NODE_TYPES2["CatchClause"] = "CatchClause"; AST_NODE_TYPES2["ChainExpression"] = "ChainExpression"; AST_NODE_TYPES2["ClassBody"] = "ClassBody"; AST_NODE_TYPES2["ClassDeclaration"] = "ClassDeclaration"; AST_NODE_TYPES2["ClassExpression"] = "ClassExpression"; AST_NODE_TYPES2["ConditionalExpression"] = "ConditionalExpression"; AST_NODE_TYPES2["ContinueStatement"] = "ContinueStatement"; AST_NODE_TYPES2["DebuggerStatement"] = "DebuggerStatement"; AST_NODE_TYPES2["Decorator"] = "Decorator"; AST_NODE_TYPES2["DoWhileStatement"] = "DoWhileStatement"; AST_NODE_TYPES2["EmptyStatement"] = "EmptyStatement"; AST_NODE_TYPES2["ExportAllDeclaration"] = "ExportAllDeclaration"; AST_NODE_TYPES2["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; AST_NODE_TYPES2["ExportNamedDeclaration"] = "ExportNamedDeclaration"; AST_NODE_TYPES2["ExportSpecifier"] = "ExportSpecifier"; AST_NODE_TYPES2["ExpressionStatement"] = "ExpressionStatement"; AST_NODE_TYPES2["ForInStatement"] = "ForInStatement"; AST_NODE_TYPES2["ForOfStatement"] = "ForOfStatement"; AST_NODE_TYPES2["ForStatement"] = "ForStatement"; AST_NODE_TYPES2["FunctionDeclaration"] = "FunctionDeclaration"; AST_NODE_TYPES2["FunctionExpression"] = "FunctionExpression"; AST_NODE_TYPES2["Identifier"] = "Identifier"; AST_NODE_TYPES2["IfStatement"] = "IfStatement"; AST_NODE_TYPES2["ImportAttribute"] = "ImportAttribute"; AST_NODE_TYPES2["ImportDeclaration"] = "ImportDeclaration"; AST_NODE_TYPES2["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; AST_NODE_TYPES2["ImportExpression"] = "ImportExpression"; AST_NODE_TYPES2["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; AST_NODE_TYPES2["ImportSpecifier"] = "ImportSpecifier"; AST_NODE_TYPES2["JSXAttribute"] = "JSXAttribute"; AST_NODE_TYPES2["JSXClosingElement"] = "JSXClosingElement"; AST_NODE_TYPES2["JSXClosingFragment"] = "JSXClosingFragment"; AST_NODE_TYPES2["JSXElement"] = "JSXElement"; AST_NODE_TYPES2["JSXEmptyExpression"] = "JSXEmptyExpression"; AST_NODE_TYPES2["JSXExpressionContainer"] = "JSXExpressionContainer"; AST_NODE_TYPES2["JSXFragment"] = "JSXFragment"; AST_NODE_TYPES2["JSXIdentifier"] = "JSXIdentifier"; AST_NODE_TYPES2["JSXMemberExpression"] = "JSXMemberExpression"; AST_NODE_TYPES2["JSXNamespacedName"] = "JSXNamespacedName"; AST_NODE_TYPES2["JSXOpeningElement"] = "JSXOpeningElement"; AST_NODE_TYPES2["JSXOpeningFragment"] = "JSXOpeningFragment"; AST_NODE_TYPES2["JSXSpreadAttribute"] = "JSXSpreadAttribute"; AST_NODE_TYPES2["JSXSpreadChild"] = "JSXSpreadChild"; AST_NODE_TYPES2["JSXText"] = "JSXText"; AST_NODE_TYPES2["LabeledStatement"] = "LabeledStatement"; AST_NODE_TYPES2["Literal"] = "Literal"; AST_NODE_TYPES2["LogicalExpression"] = "LogicalExpression"; AST_NODE_TYPES2["MemberExpression"] = "MemberExpression"; AST_NODE_TYPES2["MetaProperty"] = "MetaProperty"; AST_NODE_TYPES2["MethodDefinition"] = "MethodDefinition"; AST_NODE_TYPES2["NewExpression"] = "NewExpression"; AST_NODE_TYPES2["ObjectExpression"] = "ObjectExpression"; AST_NODE_TYPES2["ObjectPattern"] = "ObjectPattern"; AST_NODE_TYPES2["PrivateIdentifier"] = "PrivateIdentifier"; AST_NODE_TYPES2["Program"] = "Program"; AST_NODE_TYPES2["Property"] = "Property"; AST_NODE_TYPES2["PropertyDefinition"] = "PropertyDefinition"; AST_NODE_TYPES2["RestElement"] = "RestElement"; AST_NODE_TYPES2["ReturnStatement"] = "ReturnStatement"; AST_NODE_TYPES2["SequenceExpression"] = "SequenceExpression"; AST_NODE_TYPES2["SpreadElement"] = "SpreadElement"; AST_NODE_TYPES2["StaticBlock"] = "StaticBlock"; AST_NODE_TYPES2["Super"] = "Super"; AST_NODE_TYPES2["SwitchCase"] = "SwitchCase"; AST_NODE_TYPES2["SwitchStatement"] = "SwitchStatement"; AST_NODE_TYPES2["TaggedTemplateExpression"] = "TaggedTemplateExpression"; AST_NODE_TYPES2["TemplateElement"] = "TemplateElement"; AST_NODE_TYPES2["TemplateLiteral"] = "TemplateLiteral"; AST_NODE_TYPES2["ThisExpression"] = "ThisExpression"; AST_NODE_TYPES2["ThrowStatement"] = "ThrowStatement"; AST_NODE_TYPES2["TryStatement"] = "TryStatement"; AST_NODE_TYPES2["UnaryExpression"] = "UnaryExpression"; AST_NODE_TYPES2["UpdateExpression"] = "UpdateExpression"; AST_NODE_TYPES2["VariableDeclaration"] = "VariableDeclaration"; AST_NODE_TYPES2["VariableDeclarator"] = "VariableDeclarator"; AST_NODE_TYPES2["WhileStatement"] = "WhileStatement"; AST_NODE_TYPES2["WithStatement"] = "WithStatement"; AST_NODE_TYPES2["YieldExpression"] = "YieldExpression"; AST_NODE_TYPES2["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; AST_NODE_TYPES2["TSAbstractKeyword"] = "TSAbstractKeyword"; AST_NODE_TYPES2["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; AST_NODE_TYPES2["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; AST_NODE_TYPES2["TSAnyKeyword"] = "TSAnyKeyword"; AST_NODE_TYPES2["TSArrayType"] = "TSArrayType"; AST_NODE_TYPES2["TSAsExpression"] = "TSAsExpression"; AST_NODE_TYPES2["TSAsyncKeyword"] = "TSAsyncKeyword"; AST_NODE_TYPES2["TSBigIntKeyword"] = "TSBigIntKeyword"; AST_NODE_TYPES2["TSBooleanKeyword"] = "TSBooleanKeyword"; AST_NODE_TYPES2["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; AST_NODE_TYPES2["TSClassImplements"] = "TSClassImplements"; AST_NODE_TYPES2["TSConditionalType"] = "TSConditionalType"; AST_NODE_TYPES2["TSConstructorType"] = "TSConstructorType"; AST_NODE_TYPES2["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; AST_NODE_TYPES2["TSDeclareFunction"] = "TSDeclareFunction"; AST_NODE_TYPES2["TSDeclareKeyword"] = "TSDeclareKeyword"; AST_NODE_TYPES2["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; AST_NODE_TYPES2["TSEnumDeclaration"] = "TSEnumDeclaration"; AST_NODE_TYPES2["TSEnumMember"] = "TSEnumMember"; AST_NODE_TYPES2["TSExportAssignment"] = "TSExportAssignment"; AST_NODE_TYPES2["TSExportKeyword"] = "TSExportKeyword"; AST_NODE_TYPES2["TSExternalModuleReference"] = "TSExternalModuleReference"; AST_NODE_TYPES2["TSFunctionType"] = "TSFunctionType"; AST_NODE_TYPES2["TSInstantiationExpression"] = "TSInstantiationExpression"; AST_NODE_TYPES2["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; AST_NODE_TYPES2["TSImportType"] = "TSImportType"; AST_NODE_TYPES2["TSIndexedAccessType"] = "TSIndexedAccessType"; AST_NODE_TYPES2["TSIndexSignature"] = "TSIndexSignature"; AST_NODE_TYPES2["TSInferType"] = "TSInferType"; AST_NODE_TYPES2["TSInterfaceBody"] = "TSInterfaceBody"; AST_NODE_TYPES2["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; AST_NODE_TYPES2["TSInterfaceHeritage"] = "TSInterfaceHeritage"; AST_NODE_TYPES2["TSIntersectionType"] = "TSIntersectionType"; AST_NODE_TYPES2["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; AST_NODE_TYPES2["TSLiteralType"] = "TSLiteralType"; AST_NODE_TYPES2["TSMappedType"] = "TSMappedType"; AST_NODE_TYPES2["TSMethodSignature"] = "TSMethodSignature"; AST_NODE_TYPES2["TSModuleBlock"] = "TSModuleBlock"; AST_NODE_TYPES2["TSModuleDeclaration"] = "TSModuleDeclaration"; AST_NODE_TYPES2["TSNamedTupleMember"] = "TSNamedTupleMember"; AST_NODE_TYPES2["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; AST_NODE_TYPES2["TSNeverKeyword"] = "TSNeverKeyword"; AST_NODE_TYPES2["TSNonNullExpression"] = "TSNonNullExpression"; AST_NODE_TYPES2["TSNullKeyword"] = "TSNullKeyword"; AST_NODE_TYPES2["TSNumberKeyword"] = "TSNumberKeyword"; AST_NODE_TYPES2["TSObjectKeyword"] = "TSObjectKeyword"; AST_NODE_TYPES2["TSOptionalType"] = "TSOptionalType"; AST_NODE_TYPES2["TSParameterProperty"] = "TSParameterProperty"; AST_NODE_TYPES2["TSPrivateKeyword"] = "TSPrivateKeyword"; AST_NODE_TYPES2["TSPropertySignature"] = "TSPropertySignature"; AST_NODE_TYPES2["TSProtectedKeyword"] = "TSProtectedKeyword"; AST_NODE_TYPES2["TSPublicKeyword"] = "TSPublicKeyword"; AST_NODE_TYPES2["TSQualifiedName"] = "TSQualifiedName"; AST_NODE_TYPES2["TSReadonlyKeyword"] = "TSReadonlyKeyword"; AST_NODE_TYPES2["TSRestType"] = "TSRestType"; AST_NODE_TYPES2["TSSatisfiesExpression"] = "TSSatisfiesExpression"; AST_NODE_TYPES2["TSStaticKeyword"] = "TSStaticKeyword"; AST_NODE_TYPES2["TSStringKeyword"] = "TSStringKeyword"; AST_NODE_TYPES2["TSSymbolKeyword"] = "TSSymbolKeyword"; AST_NODE_TYPES2["TSTemplateLiteralType"] = "TSTemplateLiteralType"; AST_NODE_TYPES2["TSThisType"] = "TSThisType"; AST_NODE_TYPES2["TSTupleType"] = "TSTupleType"; AST_NODE_TYPES2["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; AST_NODE_TYPES2["TSTypeAnnotation"] = "TSTypeAnnotation"; AST_NODE_TYPES2["TSTypeAssertion"] = "TSTypeAssertion"; AST_NODE_TYPES2["TSTypeLiteral"] = "TSTypeLiteral"; AST_NODE_TYPES2["TSTypeOperator"] = "TSTypeOperator"; AST_NODE_TYPES2["TSTypeParameter"] = "TSTypeParameter"; AST_NODE_TYPES2["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; AST_NODE_TYPES2["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; AST_NODE_TYPES2["TSTypePredicate"] = "TSTypePredicate"; AST_NODE_TYPES2["TSTypeQuery"] = "TSTypeQuery"; AST_NODE_TYPES2["TSTypeReference"] = "TSTypeReference"; AST_NODE_TYPES2["TSUndefinedKeyword"] = "TSUndefinedKeyword"; AST_NODE_TYPES2["TSUnionType"] = "TSUnionType"; AST_NODE_TYPES2["TSUnknownKeyword"] = "TSUnknownKeyword"; AST_NODE_TYPES2["TSVoidKeyword"] = "TSVoidKeyword"; })(AST_NODE_TYPES || (exports2.AST_NODE_TYPES = AST_NODE_TYPES = {})); var AST_TOKEN_TYPES; (function(AST_TOKEN_TYPES2) { AST_TOKEN_TYPES2["Boolean"] = "Boolean"; AST_TOKEN_TYPES2["Identifier"] = "Identifier"; AST_TOKEN_TYPES2["JSXIdentifier"] = "JSXIdentifier"; AST_TOKEN_TYPES2["JSXText"] = "JSXText"; AST_TOKEN_TYPES2["Keyword"] = "Keyword"; AST_TOKEN_TYPES2["Null"] = "Null"; AST_TOKEN_TYPES2["Numeric"] = "Numeric"; AST_TOKEN_TYPES2["Punctuator"] = "Punctuator"; AST_TOKEN_TYPES2["RegularExpression"] = "RegularExpression"; AST_TOKEN_TYPES2["String"] = "String"; AST_TOKEN_TYPES2["Template"] = "Template"; AST_TOKEN_TYPES2["Block"] = "Block"; AST_TOKEN_TYPES2["Line"] = "Line"; })(AST_TOKEN_TYPES || (exports2.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); } }); // ../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/lib.js var require_lib = __commonJS({ "../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/lib.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/parser-options.js var require_parser_options = __commonJS({ "../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/parser-options.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/ts-estree.js var require_ts_estree = __commonJS({ "../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/ts-estree.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); } : function(o, m, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m[k]; }); var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); } : function(o, v) { o["default"] = v; }); var __importStar = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); } __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.TSESTree = void 0; exports2.TSESTree = __importStar(require_ast_spec()); } }); // ../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/index.js var require_dist = __commonJS({ "../../node_modules/.pnpm/@typescript-eslint+types@7.1.0/node_modules/@typescript-eslint/types/dist/index.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); } : function(o, m, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m[k]; }); var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p); }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.AST_TOKEN_TYPES = exports2.AST_NODE_TYPES = void 0; var ast_spec_1 = require_ast_spec(); Object.defineProperty(exports2, "AST_NODE_TYPES", { enumerable: true, get: function() { return ast_spec_1.AST_NODE_TYPES; } }); Object.defineProperty(exports2, "AST_TOKEN_TYPES", { enumerable: true, get: function() { return ast_spec_1.AST_TOKEN_TYPES; } }); __exportStar(require_lib(), exports2); __exportStar(require_parser_options(), exports2); __exportStar(require_ts_estree(), exports2); } }); // ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js var require_ms = __commonJS({ "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports2, module2) { "use strict"; var s = 1e3; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; module2.exports = function(val, options2) { options2 = options2 || {}; var type = typeof val; if (type === "string" && val.length > 0) { return parse(val); } else if (type === "number" && isFinite(val)) { return options2.long ? fmtLong(val) : fmtShort(val); } throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) ); }; function parse(str) { str = String(str); if (str.length > 100) { return; } var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( str ); if (!match) { return; } var n = parseFloat(match[1]); var type = (match[2] || "ms").toLowerCase(); switch (type) { case "years": case "year": case "yrs": case "yr": case "y": return n * y; case "weeks": case "week": case "w": return n * w; case "days": case "day": case "d": return n * d; case "hours": case "hour": case "hrs": case "hr": case "h": return n * h; case "minutes": case "minute": case "mins": case "min": case "m": return n * m; case "seconds": case "second": case "secs": case "sec": case "s": return n * s; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return n; default: return void 0; } } function fmtShort(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return Math.round(ms / d) + "d"; } if (msAbs >= h) { return Math.round(ms / h) + "h"; } if (msAbs >= m) { return Math.round(ms / m) + "m"; } if (msAbs >= s) { return Math.round(ms / s) + "s"; } return ms + "ms"; } function fmtLong(ms) { var msAbs = Math.abs(ms); if (msAbs >= d) { return plural(ms, msAbs, d, "day"); } if (msAbs >= h) { return plural(ms, msAbs, h, "hour"); } if (msAbs >= m) { return plural(ms, msAbs, m, "minute"); } if (msAbs >= s) { return plural(ms, msAbs, s, "second"); } return ms + " ms"; } function plural(ms, msAbs, n, name) { var isPlural = msAbs >= n * 1.5; return Math.round(ms / n) + " " + name + (isPlural ? "s" : ""); } } }); // ../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js var require_common = __commonJS({ "../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports2, module2) { "use strict"; function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabled; createDebug.humanize = require_ms(); createDebug.destroy = destroy; Object.keys(env).forEach((key) => { createDebug[key] = env[key]; }); createDebug.names = []; createDebug.skips = []; createDebug.formatters = {}; function selectColor(namespace) { let hash = 0; for (let i = 0; i < namespace.length; i++) { hash = (hash << 5) - hash + namespace.charCodeAt(i); hash |= 0; } return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; } createDebug.selectColor = selectColor; function createDebug(namespace) { let prevTime; let enableOverride = null; let namespacesCache; let enabledCache; function debug(...args) { if (!debug.enabled) { return; } const self = debug; const curr = Number(/* @__PURE__ */ new Date()); const ms = curr - (prevTime || curr); self.diff = ms; self.prev = prevTime; self.curr = curr; prevTime = curr; args[0] = createDebug.coerce(args[0]); if (typeof args[0] !== "string") { args.unshift("%O"); } let index = 0; args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { if (match === "%%") { return "%"; } index++; const formatter = createDebug.formatters[format]; if (typeof formatter === "function") { const val = args[index]; match = formatter.call(self, val); args.splice(index, 1); index--; } return match; }); createDebug.formatArgs.call(self, args); const logFn = self.log || createDebug.log; logFn.apply(self, args); } debug.namespace = namespace; debug.useColors = createDebug.useColors(); debug.color = createDebug.selectColor(namespace); debug.extend = extend; debug.destroy = createDebug.destroy; Object.defineProperty(debug, "enabled", { enumerable: true, configurable: false, get: () => { if (enableOverride !== null) { return enableOverride; } if (namespacesCache !== createDebug.namespaces) { namespacesCache = createDebug.namespaces; enabledCache = createDebug.enabled(namespace); } return enabledCache; }, set: (v) => { enableOverride = v; } }); if (typeof createDebug.init === "function") { createDebug.init(debug); } return debug; } function extend(namespace, delimiter) { const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace); newDebug.log = this.log; return newDebug; } function enable(namespaces) { createDebug.save(namespaces); createDebug.namespaces = namespaces; createDebug.names = []; createDebug.skips = []; let i; const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/); const len = split.length; for (i = 0; i < len; i++) { if (!split[i]) { continue; } namespaces = split[i].replace(/\*/g, ".*?"); if (namespaces[0] === "-") { createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$")); } else { createDebug.names.push(new RegExp("^" + namespaces + "$")); } } } function disable() { const namespaces = [ ...createDebug.names.map(toNamespace), ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace) ].join(","); createDebug.enable(""); return namespaces; } function enabled(name) { if (name[name.length - 1] === "*") { return true; } let i; let len; for (i = 0, len = createDebug.skips.length; i < len; i++) { if (createDebug.skips[i].test(name)) { return false; } } for (i = 0, len = createDebug.names.length; i < len; i++) { if (createDebug.names[i].test(name)) { return true; } } return false; } function toNamespace(regexp) { return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*"); } function coerce(val) { if (val instanceof Error) { return val.stack || val.message; } return val; } function destroy() { console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); } createDebug.enable(createDebug.load()); return createDebug; } module2.exports = setup; } }); // ../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js var require_browser = __commonJS({ "../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports2, module2) { "use strict"; exports2.formatArgs = formatArgs; exports2.save = save; exports2.load = load; exports2.useColors = useColors; exports2.storage = localstorage(); exports2.destroy = /* @__PURE__ */ (() => { let warned = false; return () => { if (!warned) { warned = true; console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); } }; })(); exports2.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 useColors() { if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) { return true; } if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { return false; } return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 typeof window !== "undefined" && 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 !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } function formatArgs(args) { args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff); if (!this.useColors) { return; } const c = "color: " + this.color; args.splice(1, 0, c, "color: inherit"); let index = 0; let lastC = 0; args[0].replace(/%[a-zA-Z%]/g, (match) => { if (match === "%%") { return; } index++; if (match === "%c") { lastC = index; } }); args.splice(lastC, 0, c); } exports2.log = console.debug || console.log || (() => { }); function save(namespaces) { try { if (namespaces) { exports2.storage.setItem("debug", namespaces); } else { exports2.storage.removeItem("debug"); } } catch (error) { } } function load() { let r; try { r = exports2.storage.getItem("debug"); } catch (error) { } if (!r && typeof process !== "undefined" && "env" in process) { r = process.env.DEBUG; } return r; } function localstorage() { try { return localStorage; } catch (error) { } } module2.exports = require_common()(exports2); var { formatters } = module2.exports; formatters.j = function(v) { try { return JSON.stringify(v); } catch (error) { return "[UnexpectedJSONParseError]: " + error.message; } }; } }); // ../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js var require_has_flag = __commonJS({ "../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports2, module2) { "use strict"; module2.exports = (flag, argv) => { argv = argv || process.argv; const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; const pos = argv.indexOf(prefix + flag); const terminatorPos = argv.indexOf("--"); return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); }; } }); // ../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js var require_supports_color = __commonJS({ "../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) { "use strict"; var os = require("os"); var hasFlag = require_has_flag(); var env = process.env; var forceColor; if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) { forceColor = false; } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { forceColor = true; } if ("FORCE_COLOR" in env) { forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0; } function translateLevel(level) { if (level === 0) { return false; } return { level, hasBasic: true, has256: level >= 2, has16m: level >= 3 }; } function supportsColor(stream) { if (forceColor === false) { return 0; } if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { return 3; } if (hasFlag("color=256")) { return 2; } if (stream && !stream.isTTY && forceColor !== true) { return 0; } const min = forceColor ? 1 : 0; if (process.platform === "win32") { const osRelease = os.release().split("."); if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { return Number(osRelease[2]) >= 14931 ? 3 : 2; } return 1; } if ("CI" in env) { if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") { return 1; } return min; } if ("TEAMCITY_VERSION" in env) { return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; } if (env.COLORTERM === "truecolor") { return 3; } if ("TERM_PROGRAM" in env) { const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (env.TERM_PROGRAM) { case "iTerm.app": return version >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } if (/-256(color)?$/i.test(env.TERM)) { return 2; } if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { return 1; } if ("COLORTERM" in env) { return 1; } if (env.TERM === "dumb") { return min; } return min; } function getSupportLevel(stream) { const level = supportsColor(stream); return translateLevel(level); } module2.exports = { supportsColor: getSupportLevel, stdout: getSupportLevel(process.stdout), stderr: getSupportLevel(process.stderr) }; } }); // ../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js var require_node = __commonJS({ "../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports2, module2) { "use strict"; var tty = require("tty"); var util = require("util"); exports2.init = init; exports2.log = log; exports2.formatArgs = formatArgs; exports2.save = save; exports2.load = load; exports2.useColors = useColors; exports2.destroy = util.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." ); exports2.colors = [6, 2, 3, 4, 5, 1]; try { const supportsColor = require_supports_color(); if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { exports2.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 (error) { } exports2.inspectOpts = Object.keys(process.env).filter((key) => { return /^debug_/i.test(key); }).reduce((obj, key) => { const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => { return k.toUpperCase(); }); let val = process.env[key]; if (/^(yes|on|true|enabled)$/i.test(val)) { val = true; } else if (/^(no|off|false|disabled)$/i.test(val)) { val = false; } else if (val === "null") { val = null; } else { val = Number(val); } obj[prop] = val; return obj; }, {}); function useColors() { return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd); } function formatArgs(args) { const { namespace: name, useColors: useColors2 } = this; if (useColors2) { const c = this.color; const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c); const prefix = ` ${colorCode};1m${name} \x1B[0m`; args[0] = prefix + args[0].split("\n").join("\n" + prefix); args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m"); } else { args[0] = getDate() + name + " " + args[0]; } } function getDate() { if (exports2.inspectOpts.hideDate) { return ""; } return (/* @__PURE__ */ new Date()).toISOString() + " "; } function log(...args) { return process.stderr.write(util.format(...args) + "\n"); } function save(namespaces) { if (namespaces) { process.env.DEBUG = namespaces; } else { delete process.env.DEBUG; } } function load() { return process.env.DEBUG; } function init(debug) { debug.inspectOpts = {}; const keys = Object.keys(exports2.inspectOpts); for (let i = 0; i < keys.length; i++) { debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]]; } } module2.exports = require_common()(exports2); var { formatters } = module2.exports; formatters.o = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); }; formatters.O = function(v) { this.inspectOpts.colors = this.useColors; return util.inspect(v, this.inspectOpts); }; } }); // ../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js var require_src = __commonJS({ "../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports2, module2) { "use strict"; if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) { module2.exports = require_browser(); } else { module2.exports = require_node(); } } }); // ../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/typescript.js var require_typescript = __commonJS({ "../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/typescript.js"(exports2, module2) { "use strict"; var ts = (() => { var __defProp2 = Object.defineProperty; var __getOwnPropNames2 = Object.getOwnPropertyNames; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res; }; var __commonJS2 = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export2 = (target, all) => { for (var name in all) __defProp2(target, name, { get: all[name], enumerable: true }); }; var versionMajorMinor, version, Comparison; var init_corePublic = __esm({ "src/compiler/corePublic.ts"() { "use strict"; versionMajorMinor = "5.3"; version = "5.3.3"; Comparison = /* @__PURE__ */ ((Comparison3) => { Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; Comparison3[Comparison3["GreaterThan"] = 1] = "GreaterThan"; return Comparison3; })(Comparison || {}); } }); function length(array) { return array ? array.length : 0; } function forEach(array, callback) { if (array) { for (let i = 0; i < array.length; i++) { const result = callback(array[i], i); if (result) { return result; } } } return void 0; } function forEachRight(array, callback) { if (array) { for (let i = array.length - 1; i >= 0; i--) { const result = callback(array[i], i); if (result) { return result; } } } return void 0; } function firstDefined(array, callback) { if (array === void 0) { return void 0; } for (let i = 0; i < array.length; i++) { const result = callback(array[i], i); if (result !== void 0) { return result; } } return void 0; } function firstDefinedIterator(iter, callback) { for (const value of iter) { const result = callback(value); if (result !== void 0) { return result; } } return void 0; } function reduceLeftIterator(iterator, f, initial) { let result = initial; if (iterator) { let pos = 0; for (const value of iterator) { result = f(result, value, pos); pos++; } } return result; } function zipWith(arrayA, arrayB, callback) { const result = []; Debug.assertEqual(arrayA.length, arrayB.length); for (let i = 0; i < arrayA.length; i++) { result.push(callback(arrayA[i], arrayB[i], i)); } return result; } function intersperse(input, element) { if (input.length <= 1) { return input; } const result = []; for (let i = 0, n = input.length; i < n; i++) { if (i) result.push(element); result.push(input[i]); } return result; } function every(array, callback) { if (array) { for (let i = 0; i < array.length; i++) { if (!callback(array[i], i)) { return false; } } } return true; } function find(array, predicate, startIndex) { if (array === void 0) return void 0; for (let i = startIndex ?? 0; i < array.length; i++) { const value = array[i]; if (predicate(value, i)) { return value; } } return void 0; } function findLast(array, predicate, startIndex) { if (array === void 0) return void 0; for (let i = startIndex ?? array.length - 1; i >= 0; i--) { const value = array[i]; if (predicate(value, i)) { return value; } } return void 0; } function findIndex(array, predicate, startIndex) { if (array === void 0) return -1; for (let i = startIndex ?? 0; i < array.length; i++) { if (predicate(array[i], i)) { return i; } } return -1; } function findLastIndex(array, predicate, startIndex) { if (array === void 0) return -1; for (let i = startIndex ?? array.length - 1; i >= 0; i--) { if (predicate(array[i], i)) { return i; } } return -1; } function findMap(array, callback) { for (let i = 0; i < array.length; i++) { const result = callback(array[i], i); if (result) { return result; } } return Debug.fail(); } function contains(array, value, equalityComparer = equateValues) { if (array) { for (const v of array) { if (equalityComparer(v, value)) { return true; } } } return false; } function arraysEqual(a, b, equalityComparer = equateValues) { return a.length === b.length && a.every((x, i) => equalityComparer(x, b[i])); } function indexOfAnyCharCode(text, charCodes, start) { for (let i = start || 0; i < text.length; i++) { if (contains(charCodes, text.charCodeAt(i))) { return i; } } return -1; } function countWhere(array, predicate) { let count = 0; if (array) { for (let i = 0; i < array.length; i++) { const v = array[i]; if (predicate(v, i)) { count++; } } } return count; } function filter(array, f) { if (array) { const len = array.length; let i = 0; while (i < len && f(array[i])) i++; if (i < len) { const result = array.slice(0, i); i++; while (i < len) { const item = array[i]; if (f(item)) { result.push(item); } i++; } return result; } } return array; } function filterMutate(array, f) { let outIndex = 0; for (let i = 0; i < array.length; i++) { if (f(array[i], i, array)) { array[outIndex] = array[i]; outIndex++; } } array.length = outIndex; } function clear(array) { array.length = 0; } function map(array, f) { let result; if (array) { result = []; for (let i = 0; i < array.length; i++) { result.push(f(array[i], i)); } } return result; } function* mapIterator(iter, mapFn) { for (const x of iter) { yield mapFn(x); } } function sameMap(array, f) { if (array) { for (let i = 0; i < array.length; i++) { const item = array[i]; const mapped = f(item, i); if (item !== mapped) { const result = array.slice(0, i); result.push(mapped); for (i++; i < array.length; i++) { result.push(f(array[i], i)); } return result; } } } return array; } function flatten(array) { const result = []; for (const v of array) { if (v) { if (isArray(v)) { addRange(result, v); } else { result.push(v); } } } return result; } function flatMap(array, mapfn) { let result; if (array) { for (let i = 0; i < array.length; i++) { const v = mapfn(array[i], i); if (v) { if (isArray(v)) { result = addRange(result, v); } else { result = append(result, v); } } } } return result || emptyArray; } function flatMapToMutable(array, mapfn) { const result = []; if (array) { for (let i = 0; i < array.length; i++) { const v = mapfn(array[i], i); if (v) { if (isArray(v)) { addRange(result, v); } else { result.push(v); } } } } return result; } function* flatMapIterator(iter, mapfn) { for (const x of iter) { const iter2 = mapfn(x); if (!iter2) continue; yield* iter2; } } function sameFlatMap(array, mapfn) { let result; if (array) { for (let i = 0; i < array.length; i++) { const item = array[i]; const mapped = mapfn(item, i); if (result || item !== mapped || isArray(mapped)) { if (!result) { result = array.slice(0, i); } if (isArray(mapped)) { addRange(result, mapped); } else { result.push(mapped); } } } } return result || array; } function mapAllOrFail(array, mapFn) { const result = []; for (let i = 0; i < array.length; i++) { const mapped = mapFn(array[i], i); if (mapped === void 0) { return void 0; } result.push(mapped); } return result; } function mapDefined(array, mapFn) { const