@storm-software/workspace-tools 1.13.26 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38248,177 +38248,6 @@ var require_tsc_impl = __commonJS({
38248
38248
  }
38249
38249
  });
38250
38250
 
38251
- // node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
38252
- var require_brace_expansion2 = __commonJS({
38253
- "node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
38254
- var balanced = require_balanced_match();
38255
- module2.exports = expandTop;
38256
- var escSlash = "\0SLASH" + Math.random() + "\0";
38257
- var escOpen = "\0OPEN" + Math.random() + "\0";
38258
- var escClose = "\0CLOSE" + Math.random() + "\0";
38259
- var escComma = "\0COMMA" + Math.random() + "\0";
38260
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
38261
- function numeric(str) {
38262
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
38263
- }
38264
- function escapeBraces(str) {
38265
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
38266
- }
38267
- function unescapeBraces(str) {
38268
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
38269
- }
38270
- function parseCommaParts(str) {
38271
- if (!str)
38272
- return [""];
38273
- var parts = [];
38274
- var m = balanced("{", "}", str);
38275
- if (!m)
38276
- return str.split(",");
38277
- var pre = m.pre;
38278
- var body = m.body;
38279
- var post = m.post;
38280
- var p = pre.split(",");
38281
- p[p.length - 1] += "{" + body + "}";
38282
- var postParts = parseCommaParts(post);
38283
- if (post.length) {
38284
- p[p.length - 1] += postParts.shift();
38285
- p.push.apply(p, postParts);
38286
- }
38287
- parts.push.apply(parts, p);
38288
- return parts;
38289
- }
38290
- function expandTop(str) {
38291
- if (!str)
38292
- return [];
38293
- if (str.substr(0, 2) === "{}") {
38294
- str = "\\{\\}" + str.substr(2);
38295
- }
38296
- return expand2(escapeBraces(str), true).map(unescapeBraces);
38297
- }
38298
- function embrace(str) {
38299
- return "{" + str + "}";
38300
- }
38301
- function isPadded(el) {
38302
- return /^-?0\d/.test(el);
38303
- }
38304
- function lte(i, y) {
38305
- return i <= y;
38306
- }
38307
- function gte(i, y) {
38308
- return i >= y;
38309
- }
38310
- function expand2(str, isTop) {
38311
- var expansions = [];
38312
- var m = balanced("{", "}", str);
38313
- if (!m)
38314
- return [str];
38315
- var pre = m.pre;
38316
- var post = m.post.length ? expand2(m.post, false) : [""];
38317
- if (/\$$/.test(m.pre)) {
38318
- for (var k = 0; k < post.length; k++) {
38319
- var expansion = pre + "{" + m.body + "}" + post[k];
38320
- expansions.push(expansion);
38321
- }
38322
- } else {
38323
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
38324
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
38325
- var isSequence = isNumericSequence || isAlphaSequence;
38326
- var isOptions = m.body.indexOf(",") >= 0;
38327
- if (!isSequence && !isOptions) {
38328
- if (m.post.match(/,.*\}/)) {
38329
- str = m.pre + "{" + m.body + escClose + m.post;
38330
- return expand2(str);
38331
- }
38332
- return [str];
38333
- }
38334
- var n;
38335
- if (isSequence) {
38336
- n = m.body.split(/\.\./);
38337
- } else {
38338
- n = parseCommaParts(m.body);
38339
- if (n.length === 1) {
38340
- n = expand2(n[0], false).map(embrace);
38341
- if (n.length === 1) {
38342
- return post.map(function(p) {
38343
- return m.pre + n[0] + p;
38344
- });
38345
- }
38346
- }
38347
- }
38348
- var N;
38349
- if (isSequence) {
38350
- var x = numeric(n[0]);
38351
- var y = numeric(n[1]);
38352
- var width = Math.max(n[0].length, n[1].length);
38353
- var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
38354
- var test = lte;
38355
- var reverse = y < x;
38356
- if (reverse) {
38357
- incr *= -1;
38358
- test = gte;
38359
- }
38360
- var pad = n.some(isPadded);
38361
- N = [];
38362
- for (var i = x; test(i, y); i += incr) {
38363
- var c;
38364
- if (isAlphaSequence) {
38365
- c = String.fromCharCode(i);
38366
- if (c === "\\")
38367
- c = "";
38368
- } else {
38369
- c = String(i);
38370
- if (pad) {
38371
- var need = width - c.length;
38372
- if (need > 0) {
38373
- var z = new Array(need + 1).join("0");
38374
- if (i < 0)
38375
- c = "-" + z + c.slice(1);
38376
- else
38377
- c = z + c;
38378
- }
38379
- }
38380
- }
38381
- N.push(c);
38382
- }
38383
- } else {
38384
- N = [];
38385
- for (var j = 0; j < n.length; j++) {
38386
- N.push.apply(N, expand2(n[j], false));
38387
- }
38388
- }
38389
- for (var j = 0; j < N.length; j++) {
38390
- for (var k = 0; k < post.length; k++) {
38391
- var expansion = pre + N[j] + post[k];
38392
- if (!isTop || isSequence || expansion)
38393
- expansions.push(expansion);
38394
- }
38395
- }
38396
- }
38397
- return expansions;
38398
- }
38399
- }
38400
- });
38401
-
38402
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-EPAEWGCP.js
38403
- var require_chunk_EPAEWGCP = __commonJS({
38404
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
38405
- "use strict";
38406
- Object.defineProperty(exports, "__esModule", { value: true });
38407
- var version = "8.0.0";
38408
- exports.version = version;
38409
- }
38410
- });
38411
-
38412
- // node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js
38413
- var require_array_union = __commonJS({
38414
- "node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
38415
- "use strict";
38416
- module2.exports = (...arguments_) => {
38417
- return [...new Set([].concat(...arguments_))];
38418
- };
38419
- }
38420
- });
38421
-
38422
38251
  // node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/array.js
38423
38252
  var require_array3 = __commonJS({
38424
38253
  "node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/array.js"(exports) {
@@ -39606,6 +39435,610 @@ var require_out5 = __commonJS({
39606
39435
  }
39607
39436
  });
39608
39437
 
39438
+ // node_modules/.pnpm/decky@1.1.1/node_modules/decky/index.js
39439
+ var require_decky = __commonJS({
39440
+ "node_modules/.pnpm/decky@1.1.1/node_modules/decky/index.js"(exports) {
39441
+ var __create2 = Object.create;
39442
+ var __defProp2 = Object.defineProperty;
39443
+ var __getProtoOf2 = Object.getPrototypeOf;
39444
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
39445
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
39446
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39447
+ var __markAsModule = (target) => __defProp2(target, "__esModule", { value: true });
39448
+ var __commonJS2 = (callback, module22) => () => (module22 || (module22 = { exports: {} }, callback(module22.exports, module22)), module22.exports);
39449
+ var __export2 = (target, all) => {
39450
+ for (var name in all)
39451
+ __defProp2(target, name, { get: all[name], enumerable: true });
39452
+ };
39453
+ var __exportStar2 = (target, module22, desc) => {
39454
+ if (module22 && typeof module22 == "object" || typeof module22 == "function")
39455
+ for (let key of __getOwnPropNames2(module22))
39456
+ !__hasOwnProp2.call(target, key) && key !== "default" && __defProp2(target, key, { get: () => module22[key], enumerable: !(desc = __getOwnPropDesc2(module22, key)) || desc.enumerable });
39457
+ return target;
39458
+ };
39459
+ var __toModule = (module22) => module22 && module22.__esModule ? module22 : __exportStar2(__markAsModule(__defProp2(module22 != null ? __create2(__getProtoOf2(module22)) : {}, "default", { value: module22, enumerable: true })), module22);
39460
+ var require_lexer = __commonJS2((exports2) => {
39461
+ "use strict";
39462
+ exports2.parse = parse;
39463
+ exports2.init = void 0;
39464
+ var A = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
39465
+ function parse(E2, g = "@") {
39466
+ if (!B)
39467
+ return init.then(() => parse(E2));
39468
+ let I = E2.length + 1, D = (B.__heap_base.value || B.__heap_base) + 4 * I - B.memory.buffer.byteLength;
39469
+ D > 0 && B.memory.grow(Math.ceil(D / 65536));
39470
+ let w = B.sa(I - 1);
39471
+ if ((A ? C : Q)(E2, new Uint16Array(B.memory.buffer, w, I)), !B.parse())
39472
+ throw Object.assign(new Error(`Parse error ${g}:${E2.slice(0, B.e()).split(`
39473
+ `).length}:${B.e() - E2.lastIndexOf(`
39474
+ `, B.e() - 1)}`), { idx: B.e() });
39475
+ let L = [], k = [];
39476
+ for (; B.ri(); ) {
39477
+ let A2 = B.is(), Q2 = B.ie(), C2;
39478
+ B.ip() && (C2 = N(E2.slice(A2 - 1, Q2 + 1))), L.push({ n: C2, s: A2, e: Q2, ss: B.ss(), se: B.se(), d: B.id() });
39479
+ }
39480
+ for (; B.re(); )
39481
+ k.push(E2.slice(B.es(), B.ee()));
39482
+ function N(A2) {
39483
+ try {
39484
+ return (0, eval)(A2);
39485
+ } catch {
39486
+ }
39487
+ }
39488
+ return [L, k, !!B.f()];
39489
+ }
39490
+ function Q(A2, Q2) {
39491
+ let C2 = A2.length, B2 = 0;
39492
+ for (; B2 < C2; ) {
39493
+ let C3 = A2.charCodeAt(B2);
39494
+ Q2[B2++] = (255 & C3) << 8 | C3 >>> 8;
39495
+ }
39496
+ }
39497
+ function C(A2, Q2) {
39498
+ let C2 = A2.length, B2 = 0;
39499
+ for (; B2 < C2; )
39500
+ Q2[B2] = A2.charCodeAt(B2++);
39501
+ }
39502
+ var B, init = WebAssembly.compile((E = "AGFzbQEAAAABWAxgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgBn9/f39/fwF/YAR/f39/AX9gA39/fwF/YAd/f39/f39/AX9gBX9/f39/AX9gA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AILIAMLiQEBBX9BACgC4AghAEEAKALkCCEBA38gAEECaiECAkACQCAAIAFPDQAgAi8BACIDQaR/aiIEQQFNDQEgAiEAIANBdmoiA0EDSw0CIAIhACADDgQAAgIAAAtBACACNgLgCBAeQQAPCwJAAkAgBA4CAQABC0EAIAI2AuAIQd0ADwsgAEEEaiEADAALC0kBAX9BACEHAkAgAC8BCiAGRw0AIAAvAQggBUcNACAALwEGIARHDQAgAC8BBCADRw0AIAAvAQIgAkcNACAALwEAIAFGIQcLIAcLUwEBf0EAIQgCQCAALwEMIAdHDQAgAC8BCiAGRw0AIAAvAQggBUcNACAALwEGIARHDQAgAC8BBCADRw0AIAAvAQIgAkcNACAALwEAIAFGIQgLIAgLCx8CAEGACAsCAAAAQYQICxABAAAAAgAAAAAEAABwOAAA", typeof window != "undefined" && typeof atob == "function" ? Uint8Array.from(atob(E), (A2) => A2.charCodeAt(0)) : Buffer.from(E, "base64"))).then(WebAssembly.instantiate).then(({ exports: A2 }) => {
39503
+ B = A2;
39504
+ });
39505
+ exports2.init = init;
39506
+ var E;
39507
+ });
39508
+ __markAsModule(exports);
39509
+ __export2(exports, {
39510
+ c: () => klass,
39511
+ cV: () => klassVoid,
39512
+ klass: () => klass,
39513
+ klassVoid: () => klassVoid,
39514
+ load: () => load2,
39515
+ p: () => property,
39516
+ pV: () => propertyVoid,
39517
+ plugin: () => plugin,
39518
+ property: () => property,
39519
+ propertyVoid: () => propertyVoid
39520
+ });
39521
+ var fs = __toModule(require("fs"));
39522
+ var esbuild = __toModule(require("esbuild"));
39523
+ var import_fast_glob = __toModule(require_out5());
39524
+ var DecoratorType;
39525
+ (function(DecoratorType2) {
39526
+ DecoratorType2[DecoratorType2.property = 0] = "property", DecoratorType2[DecoratorType2.klass = 1] = "klass";
39527
+ })(DecoratorType || (DecoratorType = {}));
39528
+ async function decorators(decoratorGlob = "./**/*.{decorator.ts,dec.ts,decorators.ts,decky.ts,decorator.tsx,dec.tsx,decorators.tsx,decky.tsx}", additionalConfig = {}) {
39529
+ let entryPoints = additionalConfig?.entryPoints?.length ? additionalConfig.entryPoints : await import_fast_glob.default(decoratorGlob);
39530
+ return await esbuild.build({
39531
+ minify: false,
39532
+ minifySyntax: true,
39533
+ format: "cjs",
39534
+ sourcemap: "both",
39535
+ outdir: ".",
39536
+ outbase: ".",
39537
+ ...additionalConfig,
39538
+ platform: "node",
39539
+ entryPoints,
39540
+ bundle: false
39541
+ }), entryPoints;
39542
+ }
39543
+ var path2 = __toModule(require("path"));
39544
+ var import_chalk = __toModule(require_source());
39545
+ var esmLexer = require_lexer();
39546
+ var hasLoadedLexers = false;
39547
+ async function initLexers() {
39548
+ hasLoadedLexers || (await Promise.all([esmLexer.init]), hasLoadedLexers = true);
39549
+ }
39550
+ var VALID_DECORATOR_IMPORT_EXTENSIONS = [
39551
+ ".decorator.ts",
39552
+ ".decorator.tsx",
39553
+ ".decorator",
39554
+ ".decky.ts",
39555
+ ".decky.tsx",
39556
+ ".decky",
39557
+ ".dec.ts",
39558
+ ".dec.tsx",
39559
+ ".dec"
39560
+ ];
39561
+ function filterDecoratorImport(esm, index) {
39562
+ return VALID_DECORATOR_IMPORT_EXTENSIONS.includes(path2.extname(esm.n).toLowerCase());
39563
+ }
39564
+ function parseDecoratorImports(code, filename) {
39565
+ let [imports] = esmLexer.parse(code, filename);
39566
+ return imports.filter(filterDecoratorImport);
39567
+ }
39568
+ var ProcessorError = class extends Error {
39569
+ constructor(message, file, lineNumber, lineText, column) {
39570
+ super(message);
39571
+ this.note = {
39572
+ text: message,
39573
+ location: {
39574
+ file,
39575
+ line: lineNumber,
39576
+ lineText,
39577
+ column
39578
+ }
39579
+ };
39580
+ }
39581
+ };
39582
+ function buildDecoratorProcessor(decoratorsModuleMap) {
39583
+ let fileMapping = {}, allPrefixes = /* @__PURE__ */ new Set();
39584
+ for (let moduleName in decoratorsModuleMap) {
39585
+ let decorators2 = decoratorsModuleMap[moduleName];
39586
+ if (typeof decorators2 != "object" || Object.keys(decorators2).length === 0) {
39587
+ console.warn(`[decky] "decorators" not exported in ${moduleName}, ignoring file.`);
39588
+ continue;
39589
+ }
39590
+ let decoratorKeys = Object.keys(decorators2).sort().reverse(), decoratorPrefixes = decoratorKeys.map((a) => a.toString()), decoratorFunctions = new Array(decoratorKeys.length), flattenedFuncs = decoratorKeys.map((a) => decorators2[a].callback);
39591
+ for (let i = 0; i < decoratorKeys.length; i++) {
39592
+ let key = decoratorKeys[i], prefix = decoratorPrefixes[i], length = key.length, decoratorFunc = flattenedFuncs[i], processDecorator = async (prefixStart, result) => {
39593
+ globalThis.process.env.DECKY_TIMINGS && console.time(`[decky] -> ${prefix}: ${path2.relative(globalThis.process.cwd(), result.filePath)}`);
39594
+ let code = result.code, prefixEnd = result.stopIndex, argStart = prefixEnd, lineEnd = prefixEnd;
39595
+ for (; code[lineEnd] !== `
39596
+ ` && (lineEnd++, !(code.length < lineEnd)); )
39597
+ ;
39598
+ for (; code[argStart] !== "(" && argStart < lineEnd; )
39599
+ argStart++;
39600
+ let argEnd = -1, argList;
39601
+ if (code[argStart++] === "(")
39602
+ if (argEnd = code.indexOf(")", argStart), argEnd - 1 > argStart) {
39603
+ if (argEnd < 0)
39604
+ throw new ProcessorError(`Missing ) for ${prefix}`, result.filePath, result.code.substring(0, prefixStart).split(`
39605
+ `).length, result.code.split(`
39606
+ `)[result.code.substring(0, prefixStart).split(`
39607
+ `).length], prefixEnd);
39608
+ try {
39609
+ argList = JSON.parse("[" + code.substring(argStart, argEnd) + "]");
39610
+ } catch (exception) {
39611
+ throw new ProcessorError(`Arguments to ${prefix} must be JSON. Received: [${code.substring(argStart, argEnd)}]`, result.filePath, result.code.substring(0, prefixStart).split(`
39612
+ `).length - 1, result.code.split(`
39613
+ `)[result.code.substring(0, prefixStart).split(`
39614
+ `).length - 1], argStart);
39615
+ }
39616
+ } else
39617
+ argStart = -1, argList = [];
39618
+ else
39619
+ argStart = -1, argList = [];
39620
+ let nextLineStart = lineEnd + 1;
39621
+ for (; code[nextLineStart] === " " || code[nextLineStart] === ";" || code[nextLineStart] === `
39622
+ `; )
39623
+ nextLineStart++;
39624
+ let _nextNewline = code.indexOf(`
39625
+ `, nextLineStart), _nextSemicolon = code.indexOf(";", nextLineStart), nextLineEnd = (_nextNewline < _nextSemicolon ? _nextNewline : _nextSemicolon) + 1, nextLine = code.substring(nextLineStart, nextLineEnd), isStatic = false, qualifier = null;
39626
+ nextLine.startsWith("export ") && (nextLine = nextLine.substring("export ".length).trim()), nextLine.startsWith("public ") ? (qualifier = "public", nextLine = nextLine.substring("public".length)) : nextLine.startsWith("private ") ? (qualifier = "private", nextLine = nextLine.substring("private".length)) : nextLine.startsWith("protected ") && (qualifier = "protected", nextLine = nextLine.substring("protected".length)), nextLine = nextLine.trim();
39627
+ let isClass = nextLine.startsWith("class ");
39628
+ if (isClass || (isStatic = nextLine.startsWith("static "), isStatic && nextLine.substring("static ".length)), isClass) {
39629
+ nextLine = nextLine.substring("class ".length).trim(), nextLine = nextLine.substring(0, nextLine.indexOf(" ")).trim(), globalThis.process.env.DECKY_TIMINGS && console.time(`[decky] ${path2.basename(moduleName).split(".")[0]}.${prefix}(${argList.join(", ")})`);
39630
+ try {
39631
+ await decoratorFunc({
39632
+ className: nextLine,
39633
+ args: argList,
39634
+ metadata: result
39635
+ }), result.stopIndex = nextLineStart;
39636
+ } catch (exception) {
39637
+ throw new ProcessorError(exception.toString() + `
39638
+ In file:
39639
+ ${result.code}`, result.filePath, result.code.substring(0, prefixStart).split(`
39640
+ `).length, result.code.split(`
39641
+ `)[result.code.substring(0, prefixStart).split(`
39642
+ `).length - 1], prefixEnd);
39643
+ } finally {
39644
+ globalThis.process.env.DECKY_TIMINGS && console.timeEnd(`[decky] ${path2.basename(moduleName).split(".")[0]}.${prefix}(${argList.join(", ")})`);
39645
+ }
39646
+ return false;
39647
+ } else {
39648
+ let key2 = nextLine.trim(), typeName = "", typeSeparatorIndex = nextLine.indexOf(":"), equalsIndex = nextLine.indexOf("="), openParentheses = nextLine.indexOf("("), defaultValue;
39649
+ typeSeparatorIndex > -1 && (key2 = nextLine.substring(0, typeSeparatorIndex).trim(), typeName = nextLine.substring(typeSeparatorIndex + 1).trim());
39650
+ let semicolonIndex = typeName.indexOf(";");
39651
+ if (equalsIndex > -1 && openParentheses === -1) {
39652
+ key2 === "" && (key2 = nextLine.substring(0, equalsIndex).trim());
39653
+ let _defaultValue = nextLine.substring(equalsIndex + 1).trim().replace(/;/gm, "").trim();
39654
+ try {
39655
+ defaultValue = JSON.parse(_defaultValue);
39656
+ } catch (exception) {
39657
+ process.env.DECKY_VERBOSE && console.warn(exception);
39658
+ }
39659
+ typeof defaultValue != "undefined" && typeName === "" && (typeName = typeof defaultValue);
39660
+ }
39661
+ if (semicolonIndex > -1 && (typeName = typeName.substring(0, semicolonIndex)), key2 === "")
39662
+ throw new ProcessorError("Missing name for property below property descriptor", result.filePath, result.code.substring(0, prefixStart).split(`
39663
+ `).length, nextLine, prefixEnd);
39664
+ result.code = code;
39665
+ let newCode;
39666
+ globalThis.process.env.DECKY_TIMINGS && console.time(`[decky] ${path2.basename(moduleName).split(".")[0]}.${prefix}(${argList.join(", ")})`);
39667
+ try {
39668
+ newCode = await decoratorFunc({
39669
+ key: key2,
39670
+ type: typeName,
39671
+ args: argList,
39672
+ isStatic,
39673
+ qualifier,
39674
+ metadata: result,
39675
+ defaultValue
39676
+ });
39677
+ } catch (exception) {
39678
+ throw new ProcessorError(exception.toString() + `
39679
+ In file:
39680
+ ${result.code}`, result.filePath, result.code.substring(0, prefixStart).split(`
39681
+ `).length, result.code.split(`
39682
+ `)[result.code.substring(0, prefixStart).split(`
39683
+ `).length], prefixEnd);
39684
+ } finally {
39685
+ globalThis.process.env.DECKY_TIMINGS && console.timeEnd(`[decky] ${path2.basename(moduleName).split(".")[0]}.${prefix}(${argList.join(", ")})`);
39686
+ }
39687
+ return globalThis.process.env.DECKY_TIMINGS && console.timeEnd(`[decky] -> ${prefix}: ${path2.relative(globalThis.process.cwd(), result.filePath)}`), !newCode && newCode !== "" ? (result.startIndex = prefixStart, result.stopIndex = nextLineStart, result.code = newCode || "", false) : (result.startIndex = prefixStart - 1, result.stopIndex = nextLineEnd - 1, result.code = newCode || "", true);
39688
+ }
39689
+ };
39690
+ decoratorFunctions[i] = processDecorator;
39691
+ }
39692
+ fileMapping[path2.basename(moduleName, path2.extname(moduleName))] = {
39693
+ decoratorFunctions,
39694
+ decoratorPrefixes
39695
+ }, decoratorPrefixes.forEach((prefix) => allPrefixes.add(prefix));
39696
+ }
39697
+ let prefixes = [...allPrefixes].sort().reverse();
39698
+ return {
39699
+ process: async (code, filePath) => {
39700
+ let moduleImports;
39701
+ try {
39702
+ moduleImports = parseDecoratorImports(code, filePath);
39703
+ } catch (exception) {
39704
+ throw new ProcessorError(`Import/export parse error: ${exception.toString()}`, filePath, 0, code, 0);
39705
+ }
39706
+ let modules = new Array(moduleImports.length), moduleI = 0;
39707
+ for (let moduleImport of moduleImports) {
39708
+ code = code.substring(0, moduleImport.ss) + " ".repeat(moduleImport.se - moduleImport.ss + 1) + code.substring(moduleImport.se + 1);
39709
+ let name = path2.basename(moduleImport.n);
39710
+ fileMapping[name] && (modules[moduleI++] = name);
39711
+ }
39712
+ code = code.replace(/^\s*\/\/.*\n?$/gm, "").trim().split(`
39713
+
39714
+ `).join(`
39715
+ `).trim() + `
39716
+ `, globalThis.process.env.DECKY_VERBOSE && console.log(import_chalk.default.yellow(code)), moduleI !== modules.length && (modules.length = moduleI);
39717
+ let result = {
39718
+ code,
39719
+ originalSource: code,
39720
+ filePath,
39721
+ startIndex: -1,
39722
+ stopIndex: -1
39723
+ }, symbolI = code.lastIndexOf("@") - 1;
39724
+ if (symbolI < -1)
39725
+ return { contents: code, note: null };
39726
+ symbolI === -1 && symbolI++;
39727
+ let _prefixI = -1, prefixI = -1, prefix = "", _code = "", didChange = false, lastMatchIndex = -1;
39728
+ do {
39729
+ if (symbolI = result.code.lastIndexOf("@"), symbolI === -1)
39730
+ break;
39731
+ for (result.startIndex = symbolI, result.stopIndex = result.startIndex + 1, prefix = "0AF"; result.stopIndex < result.code.length; )
39732
+ if (result.stopIndex++, result.code[result.stopIndex] === " " || result.code[result.stopIndex] === "(" || result.code[result.stopIndex] === `
39733
+ ` || result.code[result.stopIndex] === ";" || result.code[result.stopIndex] === ",") {
39734
+ prefix = result.code.substring(result.startIndex + 1, result.stopIndex);
39735
+ break;
39736
+ }
39737
+ let decoratorModuleName;
39738
+ for (let moduleName of modules)
39739
+ if (prefixI = fileMapping[moduleName].decoratorPrefixes.indexOf(prefix), prefixI > -1) {
39740
+ decoratorModuleName = moduleName;
39741
+ break;
39742
+ }
39743
+ if (prefixI === -1) {
39744
+ result.code = result.code.substring(0, symbolI) + "\u{1F364}" + result.code.substring(symbolI + 1);
39745
+ continue;
39746
+ }
39747
+ let { decoratorFunctions } = fileMapping[decoratorModuleName];
39748
+ if (result.startIndex > -1 && decoratorFunctions[prefixI]) {
39749
+ _code = result.code, didChange = false;
39750
+ try {
39751
+ didChange = await decoratorFunctions[prefixI](result.startIndex, result);
39752
+ } catch (exception) {
39753
+ return exception instanceof ProcessorError ? {
39754
+ contents: "",
39755
+ note: exception.note
39756
+ } : {
39757
+ contents: "",
39758
+ note: new ProcessorError(exception.toString(), filePath, 0, result.code, 0).note
39759
+ };
39760
+ }
39761
+ didChange ? result.startIndex > -1 && result.stopIndex > -1 && (result.code = _code.substring(0, result.startIndex) + result.code + _code.substring(result.stopIndex)) : result.code = _code.substring(0, result.startIndex - 1) + _code.substring(result.stopIndex), result.startIndex = result.stopIndex = -1;
39762
+ }
39763
+ } while (symbolI > -1);
39764
+ return globalThis.process.env.DECKY_VERBOSE && console.log(import_chalk.default.green(result.code)), {
39765
+ contents: result.code.replace(/🍤/gm, "@"),
39766
+ note: null
39767
+ };
39768
+ },
39769
+ prefixes
39770
+ };
39771
+ }
39772
+ function onResolveDecorator(args) {
39773
+ return {
39774
+ path: args.path,
39775
+ namespace: "decorator-stub"
39776
+ };
39777
+ }
39778
+ function onResolveStaticDecorators(args) {
39779
+ return {
39780
+ path: args.path,
39781
+ namespace: "decky"
39782
+ };
39783
+ }
39784
+ var staticDecoratorCode = [property, klass].map((stub) => `/* @__PURE__ */
39785
+ export function ${stub}(...args){return args;}
39786
+ `).join(`
39787
+ `);
39788
+ function onLoadStaticDecorators(args) {
39789
+ return {
39790
+ contents: staticDecoratorCode,
39791
+ loader: "js"
39792
+ };
39793
+ }
39794
+ function plugin(decorators2) {
39795
+ let { prefixes, process: process2 } = buildDecoratorProcessor(decorators2), prefixesWithAt = prefixes.map((a) => a.startsWith("@") ? a : "@" + a);
39796
+ function isPotentialMatch(content) {
39797
+ if (!content.includes("@"))
39798
+ return false;
39799
+ for (let prefix of prefixesWithAt)
39800
+ if (content.includes(prefix))
39801
+ return true;
39802
+ return false;
39803
+ }
39804
+ function onLoadDecoratorStub(args) {
39805
+ let stub = require(args.path).decorators;
39806
+ return {
39807
+ contents: Object.keys(stub).map((stub2) => `/* @__PURE__ */
39808
+ export function ${stub2}(...args){return args;}
39809
+ `).join(`
39810
+ `),
39811
+ loader: "ts"
39812
+ };
39813
+ }
39814
+ async function onLoadCode(args) {
39815
+ let loader = path2.extname(args.path).substring(1), contents = await fs.promises.readFile(args.path, "utf8");
39816
+ if (!isPotentialMatch(contents))
39817
+ return {
39818
+ contents,
39819
+ loader
39820
+ };
39821
+ globalThis.process.env.DECKY_TIMINGS && console.time("[decky] ./" + path2.relative(globalThis.process.cwd(), args.path)), await initLexers();
39822
+ let { note, contents: _contents } = await process2(contents, args.path) ?? {};
39823
+ return globalThis.process.env.DECKY_TIMINGS && console.timeEnd("[decky] ./" + path2.relative(globalThis.process.cwd(), args.path)), {
39824
+ contents: _contents,
39825
+ errors: note ? [{ location: note.location, text: note.text }] : void 0,
39826
+ loader
39827
+ };
39828
+ }
39829
+ return {
39830
+ name: "decky",
39831
+ setup(build2) {
39832
+ build2.onResolve({ filter: /\.(decorator|dec|decky)\.(ts|tsx)$/ }, onResolveDecorator), build2.onResolve({ filter: /^decky$/ }, onResolveStaticDecorators), build2.onLoad({ filter: /^decky$/, namespace: "decky" }, onLoadStaticDecorators), build2.onLoad({ filter: /\.(decorator|dec)\.(ts)$/, namespace: "decorator-stub" }, onLoadDecoratorStub), build2.onLoad({ filter: /\.(decorator|dec)\.(tsx)$/, namespace: "decorator-stub" }, onLoadDecoratorStub), build2.onLoad({ filter: /\.(ts|tsx)$/ }, onLoadCode);
39833
+ }
39834
+ };
39835
+ }
39836
+ function property(callback) {
39837
+ return {
39838
+ callback,
39839
+ type: DecoratorType.property
39840
+ };
39841
+ }
39842
+ function propertyVoid(callback) {
39843
+ return {
39844
+ callback,
39845
+ type: DecoratorType.property
39846
+ };
39847
+ }
39848
+ function klass(callback) {
39849
+ return {
39850
+ callback,
39851
+ type: DecoratorType.klass
39852
+ };
39853
+ }
39854
+ function klassVoid(callback) {
39855
+ return {
39856
+ callback,
39857
+ type: DecoratorType.klass
39858
+ };
39859
+ }
39860
+ async function load2(decoratorsGlob, additionalConfig) {
39861
+ let entryPoints = await decorators(decoratorsGlob, additionalConfig), files = {};
39862
+ for (let file of entryPoints)
39863
+ Object.assign(files, {
39864
+ [file]: require(path2.join(process.cwd(), path2.dirname(file), path2.basename(file).replace(".ts", ".js"))).decorators
39865
+ });
39866
+ return plugin(files);
39867
+ }
39868
+ }
39869
+ });
39870
+
39871
+ // node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
39872
+ var require_brace_expansion2 = __commonJS({
39873
+ "node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
39874
+ var balanced = require_balanced_match();
39875
+ module2.exports = expandTop;
39876
+ var escSlash = "\0SLASH" + Math.random() + "\0";
39877
+ var escOpen = "\0OPEN" + Math.random() + "\0";
39878
+ var escClose = "\0CLOSE" + Math.random() + "\0";
39879
+ var escComma = "\0COMMA" + Math.random() + "\0";
39880
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
39881
+ function numeric(str) {
39882
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
39883
+ }
39884
+ function escapeBraces(str) {
39885
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
39886
+ }
39887
+ function unescapeBraces(str) {
39888
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
39889
+ }
39890
+ function parseCommaParts(str) {
39891
+ if (!str)
39892
+ return [""];
39893
+ var parts = [];
39894
+ var m = balanced("{", "}", str);
39895
+ if (!m)
39896
+ return str.split(",");
39897
+ var pre = m.pre;
39898
+ var body = m.body;
39899
+ var post = m.post;
39900
+ var p = pre.split(",");
39901
+ p[p.length - 1] += "{" + body + "}";
39902
+ var postParts = parseCommaParts(post);
39903
+ if (post.length) {
39904
+ p[p.length - 1] += postParts.shift();
39905
+ p.push.apply(p, postParts);
39906
+ }
39907
+ parts.push.apply(parts, p);
39908
+ return parts;
39909
+ }
39910
+ function expandTop(str) {
39911
+ if (!str)
39912
+ return [];
39913
+ if (str.substr(0, 2) === "{}") {
39914
+ str = "\\{\\}" + str.substr(2);
39915
+ }
39916
+ return expand2(escapeBraces(str), true).map(unescapeBraces);
39917
+ }
39918
+ function embrace(str) {
39919
+ return "{" + str + "}";
39920
+ }
39921
+ function isPadded(el) {
39922
+ return /^-?0\d/.test(el);
39923
+ }
39924
+ function lte(i, y) {
39925
+ return i <= y;
39926
+ }
39927
+ function gte(i, y) {
39928
+ return i >= y;
39929
+ }
39930
+ function expand2(str, isTop) {
39931
+ var expansions = [];
39932
+ var m = balanced("{", "}", str);
39933
+ if (!m)
39934
+ return [str];
39935
+ var pre = m.pre;
39936
+ var post = m.post.length ? expand2(m.post, false) : [""];
39937
+ if (/\$$/.test(m.pre)) {
39938
+ for (var k = 0; k < post.length; k++) {
39939
+ var expansion = pre + "{" + m.body + "}" + post[k];
39940
+ expansions.push(expansion);
39941
+ }
39942
+ } else {
39943
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
39944
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
39945
+ var isSequence = isNumericSequence || isAlphaSequence;
39946
+ var isOptions = m.body.indexOf(",") >= 0;
39947
+ if (!isSequence && !isOptions) {
39948
+ if (m.post.match(/,.*\}/)) {
39949
+ str = m.pre + "{" + m.body + escClose + m.post;
39950
+ return expand2(str);
39951
+ }
39952
+ return [str];
39953
+ }
39954
+ var n;
39955
+ if (isSequence) {
39956
+ n = m.body.split(/\.\./);
39957
+ } else {
39958
+ n = parseCommaParts(m.body);
39959
+ if (n.length === 1) {
39960
+ n = expand2(n[0], false).map(embrace);
39961
+ if (n.length === 1) {
39962
+ return post.map(function(p) {
39963
+ return m.pre + n[0] + p;
39964
+ });
39965
+ }
39966
+ }
39967
+ }
39968
+ var N;
39969
+ if (isSequence) {
39970
+ var x = numeric(n[0]);
39971
+ var y = numeric(n[1]);
39972
+ var width = Math.max(n[0].length, n[1].length);
39973
+ var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
39974
+ var test = lte;
39975
+ var reverse = y < x;
39976
+ if (reverse) {
39977
+ incr *= -1;
39978
+ test = gte;
39979
+ }
39980
+ var pad = n.some(isPadded);
39981
+ N = [];
39982
+ for (var i = x; test(i, y); i += incr) {
39983
+ var c;
39984
+ if (isAlphaSequence) {
39985
+ c = String.fromCharCode(i);
39986
+ if (c === "\\")
39987
+ c = "";
39988
+ } else {
39989
+ c = String(i);
39990
+ if (pad) {
39991
+ var need = width - c.length;
39992
+ if (need > 0) {
39993
+ var z = new Array(need + 1).join("0");
39994
+ if (i < 0)
39995
+ c = "-" + z + c.slice(1);
39996
+ else
39997
+ c = z + c;
39998
+ }
39999
+ }
40000
+ }
40001
+ N.push(c);
40002
+ }
40003
+ } else {
40004
+ N = [];
40005
+ for (var j = 0; j < n.length; j++) {
40006
+ N.push.apply(N, expand2(n[j], false));
40007
+ }
40008
+ }
40009
+ for (var j = 0; j < N.length; j++) {
40010
+ for (var k = 0; k < post.length; k++) {
40011
+ var expansion = pre + N[j] + post[k];
40012
+ if (!isTop || isSequence || expansion)
40013
+ expansions.push(expansion);
40014
+ }
40015
+ }
40016
+ }
40017
+ return expansions;
40018
+ }
40019
+ }
40020
+ });
40021
+
40022
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-EPAEWGCP.js
40023
+ var require_chunk_EPAEWGCP = __commonJS({
40024
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
40025
+ "use strict";
40026
+ Object.defineProperty(exports, "__esModule", { value: true });
40027
+ var version = "8.0.0";
40028
+ exports.version = version;
40029
+ }
40030
+ });
40031
+
40032
+ // node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js
40033
+ var require_array_union = __commonJS({
40034
+ "node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) {
40035
+ "use strict";
40036
+ module2.exports = (...arguments_) => {
40037
+ return [...new Set([].concat(...arguments_))];
40038
+ };
40039
+ }
40040
+ });
40041
+
39609
40042
  // node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js
39610
40043
  var require_path_type = __commonJS({
39611
40044
  "node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) {
@@ -40048,9 +40481,9 @@ var require_resolve_from = __commonJS({
40048
40481
  }
40049
40482
  });
40050
40483
 
40051
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-GQ77QZBO.js
40484
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-GQ77QZBO.js
40052
40485
  var require_chunk_GQ77QZBO = __commonJS({
40053
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40486
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
40054
40487
  "use strict";
40055
40488
  Object.defineProperty(exports, "__esModule", { value: true });
40056
40489
  function _interopRequireDefault(obj) {
@@ -40328,9 +40761,9 @@ var require_chunk_GQ77QZBO = __commonJS({
40328
40761
  }
40329
40762
  });
40330
40763
 
40331
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-UIX4URMV.js
40764
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-UIX4URMV.js
40332
40765
  var require_chunk_UIX4URMV = __commonJS({
40333
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40766
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
40334
40767
  "use strict";
40335
40768
  Object.defineProperty(exports, "__esModule", { value: true });
40336
40769
  function _interopRequireWildcard(obj) {
@@ -41264,9 +41697,9 @@ var require_dist2 = __commonJS({
41264
41697
  }
41265
41698
  });
41266
41699
 
41267
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-7G76EW2R.js
41700
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-7G76EW2R.js
41268
41701
  var require_chunk_7G76EW2R = __commonJS({
41269
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41702
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
41270
41703
  "use strict";
41271
41704
  Object.defineProperty(exports, "__esModule", { value: true });
41272
41705
  function _interopRequireDefault(obj) {
@@ -42694,7 +43127,7 @@ var require_signal_exit = __commonJS({
42694
43127
  }
42695
43128
  assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
42696
43129
  if (loaded === false) {
42697
- load();
43130
+ load2();
42698
43131
  }
42699
43132
  var ev = "exit";
42700
43133
  if (opts && opts.alwaysLast) {
@@ -42754,7 +43187,7 @@ var require_signal_exit = __commonJS({
42754
43187
  return signals;
42755
43188
  };
42756
43189
  loaded = false;
42757
- load = function load2() {
43190
+ load2 = function load3() {
42758
43191
  if (loaded || !processOk(global.process)) {
42759
43192
  return;
42760
43193
  }
@@ -42771,7 +43204,7 @@ var require_signal_exit = __commonJS({
42771
43204
  process2.emit = processEmit;
42772
43205
  process2.reallyExit = processReallyExit;
42773
43206
  };
42774
- module2.exports.load = load;
43207
+ module2.exports.load = load2;
42775
43208
  originalProcessReallyExit = process2.reallyExit;
42776
43209
  processReallyExit = function processReallyExit2(code) {
42777
43210
  if (!processOk(global.process)) {
@@ -42807,7 +43240,7 @@ var require_signal_exit = __commonJS({
42807
43240
  var emit;
42808
43241
  var sigListeners;
42809
43242
  var loaded;
42810
- var load;
43243
+ var load2;
42811
43244
  var originalProcessReallyExit;
42812
43245
  var processReallyExit;
42813
43246
  var originalProcessEmit;
@@ -95072,9 +95505,9 @@ var require_chokidar = __commonJS({
95072
95505
  }
95073
95506
  });
95074
95507
 
95075
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/index.js
95508
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/index.js
95076
95509
  var require_dist5 = __commonJS({
95077
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=sy26pm33jkdp6mb7nns5rpxhny_@microsoft+api-extractor@7.38.3_@swc+core@1._26mlklv6nz25eon22qrqpvkjdy/node_modules/tsup/dist/index.js"(exports) {
95510
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/index.js"(exports) {
95078
95511
  "use strict";
95079
95512
  Object.defineProperty(exports, "__esModule", { value: true });
95080
95513
  function _interopRequireDefault(obj) {
@@ -97428,59 +97861,6 @@ var require_dist5 = __commonJS({
97428
97861
  throw new Error("Unknown declaration");
97429
97862
  }
97430
97863
  }
97431
- function formatDistributionExports(exports2, fromFilePath, toFilePath) {
97432
- let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
97433
- void 0,
97434
- _path2.default.posix.relative(
97435
- _path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
97436
- _path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
97437
- )
97438
- );
97439
- if (!importPath.match(/^\.+\//)) {
97440
- importPath = "./" + importPath;
97441
- }
97442
- let seen = {
97443
- named: /* @__PURE__ */ new Set(),
97444
- module: /* @__PURE__ */ new Set()
97445
- };
97446
- const lines = exports2.filter((declaration) => {
97447
- if (declaration.kind === "module") {
97448
- if (seen.module.has(declaration.moduleName)) {
97449
- return false;
97450
- }
97451
- seen.module.add(declaration.moduleName);
97452
- return true;
97453
- } else if (declaration.kind === "named") {
97454
- if (seen.named.has(declaration.name)) {
97455
- return false;
97456
- }
97457
- seen.named.add(declaration.name);
97458
- return true;
97459
- } else {
97460
- return false;
97461
- }
97462
- }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
97463
- if (lines.length === 0) {
97464
- lines.push("export {};");
97465
- }
97466
- return lines.join("\n") + "\n";
97467
- }
97468
- function formatDistributionExport(declaration, dest) {
97469
- if (declaration.kind === "named") {
97470
- return [
97471
- "export",
97472
- declaration.isTypeOnly ? "type" : "",
97473
- "{",
97474
- declaration.alias,
97475
- declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
97476
- "} from",
97477
- `'${dest}';`
97478
- ].filter(_chunkGQ77QZBOjs.truthy).join(" ");
97479
- } else if (declaration.kind === "module") {
97480
- return `export * from '${declaration.moduleName}';`;
97481
- }
97482
- return "";
97483
- }
97484
97864
  var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
97485
97865
  function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
97486
97866
  let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
@@ -97619,20 +97999,6 @@ var require_dist5 = __commonJS({
97619
97999
  dtsExtension,
97620
98000
  options.tsconfig || "tsconfig.json"
97621
98001
  );
97622
- for (let [out, sourceFileName] of Object.entries(
97623
- options.experimentalDts.entry
97624
- )) {
97625
- sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
97626
- const outFileName = _path2.default.join(outDir, out + dtsExtension);
97627
- const currentExports = exports2.filter(
97628
- (declaration) => declaration.sourceFileName === sourceFileName
97629
- );
97630
- _chunkGQ77QZBOjs.writeFileSync.call(
97631
- void 0,
97632
- outFileName,
97633
- formatDistributionExports(currentExports, outFileName, outDir)
97634
- );
97635
- }
97636
98002
  }
97637
98003
  async function runDtsRollup(options, exports2) {
97638
98004
  try {
@@ -97979,7 +98345,8 @@ var require_dist5 = __commonJS({
97979
98345
  // packages/workspace-tools/src/executors/tsup/executor.ts
97980
98346
  var executor_exports = {};
97981
98347
  __export(executor_exports, {
97982
- default: () => runExecutor
98348
+ default: () => executor_default,
98349
+ tsupExecutor: () => tsupExecutor
97983
98350
  });
97984
98351
  module.exports = __toCommonJS(executor_exports);
97985
98352
  var import_devkit = __toESM(require_devkit());
@@ -97987,6 +98354,7 @@ var import_get_extra_dependencies = __toESM(require_get_extra_dependencies());
97987
98354
  var import_js = __toESM(require_src());
97988
98355
  var import_normalize_options = __toESM(require_normalize_options());
97989
98356
  var import_tsc = __toESM(require_tsc_impl());
98357
+ var import_decky = __toESM(require_decky());
97990
98358
  var import_fs2 = require("fs");
97991
98359
  var import_fs_extra = __toESM(require_lib());
97992
98360
  var import_promises2 = require("fs/promises");
@@ -104367,6 +104735,7 @@ function modernConfig({
104367
104735
  define: define2,
104368
104736
  env: env2,
104369
104737
  tsCdnStorage,
104738
+ plugins,
104370
104739
  dtsTsConfig
104371
104740
  }) {
104372
104741
  let outputPath = (0, import_path2.join)(outDir, "dist", "modern");
@@ -104413,6 +104782,7 @@ function modernConfig({
104413
104782
  sourcemap: debug,
104414
104783
  clean: false,
104415
104784
  tsCdnStorage,
104785
+ plugins,
104416
104786
  outExtension
104417
104787
  };
104418
104788
  }
@@ -104430,6 +104800,7 @@ function legacyConfig({
104430
104800
  define: define2,
104431
104801
  env: env2,
104432
104802
  tsCdnStorage,
104803
+ plugins,
104433
104804
  dtsTsConfig
104434
104805
  }) {
104435
104806
  let outputPath = (0, import_path2.join)(outDir, "dist", "legacy");
@@ -104468,6 +104839,7 @@ function legacyConfig({
104468
104839
  sourcemap: debug,
104469
104840
  clean: false,
104470
104841
  tsCdnStorage,
104842
+ plugins,
104471
104843
  outExtension
104472
104844
  };
104473
104845
  }
@@ -104487,6 +104859,7 @@ function workerConfig({
104487
104859
  define: define2,
104488
104860
  env: env2,
104489
104861
  tsCdnStorage,
104862
+ plugins,
104490
104863
  dtsTsConfig
104491
104864
  }) {
104492
104865
  return {
@@ -104525,6 +104898,7 @@ function workerConfig({
104525
104898
  sourcemap: debug,
104526
104899
  clean: false,
104527
104900
  tsCdnStorage,
104901
+ plugins,
104528
104902
  outExtension
104529
104903
  };
104530
104904
  }
@@ -104544,6 +104918,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
104544
104918
  env: env2,
104545
104919
  verbose,
104546
104920
  dtsTsConfig,
104921
+ plugins,
104547
104922
  ...rest
104548
104923
  }) {
104549
104924
  const entry = globSync(
@@ -104587,6 +104962,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
104587
104962
  workspaceRoot
104588
104963
  }),
104589
104964
  options,
104965
+ plugins,
104590
104966
  dtsTsConfig
104591
104967
  };
104592
104968
  if (platform === "worker") {
@@ -104594,10 +104970,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
104594
104970
  }
104595
104971
  return (0, import_tsup.defineConfig)([modernConfig(params), legacyConfig(params)]);
104596
104972
  }
104597
- var outExtension = ({ options, format: format2, pkgType }) => {
104598
- console.log(options);
104599
- console.log(format2);
104600
- console.log(pkgType);
104973
+ var outExtension = ({ format: format2 }) => {
104601
104974
  let jsExtension = ".js";
104602
104975
  let dtsExtension = ".d.ts";
104603
104976
  if (format2 === "cjs") {
@@ -104618,7 +104991,7 @@ var outExtension = ({ options, format: format2, pkgType }) => {
104618
104991
  };
104619
104992
 
104620
104993
  // packages/workspace-tools/src/executors/tsup/executor.ts
104621
- async function runExecutor(options, context) {
104994
+ async function tsupExecutor(options, context) {
104622
104995
  try {
104623
104996
  console.log("\u{1F4E6} Running Storm build executor on the workspace");
104624
104997
  options.entry ??= "{sourceRoot}/index.ts";
@@ -104630,6 +105003,7 @@ async function runExecutor(options, context) {
104630
105003
  options.external ??= [];
104631
105004
  options.additionalEntryPoints ??= [];
104632
105005
  options.assets ??= [];
105006
+ options.plugins ??= [];
104633
105007
  options.includeSrc ??= true;
104634
105008
  options.clean ??= true;
104635
105009
  options.bundle ??= true;
@@ -104826,6 +105200,7 @@ ${(0, import_fs2.readFileSync)(file, "utf-8")}`,
104826
105200
  )
104827
105201
  );
104828
105202
  }
105203
+ options.plugins.push(await (0, import_decky.load)());
104829
105204
  const eventEmitter = new import_node_events.EventEmitter({ captureRejections: true });
104830
105205
  eventEmitter.on("message", (event) => {
104831
105206
  console.log(`\u{1F4E2} Tsup build message:
@@ -104919,6 +105294,11 @@ var isPrimitive = (value) => {
104919
105294
  return false;
104920
105295
  }
104921
105296
  };
105297
+ var executor_default = tsupExecutor;
105298
+ // Annotate the CommonJS export names for ESM import in node:
105299
+ 0 && (module.exports = {
105300
+ tsupExecutor
105301
+ });
104922
105302
  /*! Bundled license information:
104923
105303
 
104924
105304
  ejs/lib/ejs.js: