@delance/builder 0.2.4 → 0.2.6

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.
Files changed (3) hide show
  1. package/README.md +11 -9
  2. package/dist/index.js +362 -214
  3. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {getQuickJS, shouldInterruptAfterDeadline} from "quickjs-emscripten";
15
15
  // /home/mochaa/ghq/git.sr.ht/~self/delance-builder/node_modules/webcrack/src/deobfuscate/index.ts
16
16
  import debug3 from "debug";
17
17
 
18
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/ast.ts
18
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/ast.ts
19
19
  import * as t from "@babel/types";
20
20
  function getPropName(node) {
21
21
  if (t.isIdentifier(node)) {
@@ -28,7 +28,7 @@ function getPropName(node) {
28
28
  return node.value.toString();
29
29
  }
30
30
  }
31
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/generator.ts
31
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/generator.ts
32
32
  import babelGenerate from "@babel/generator";
33
33
  function generate(ast, options = defaultOptions) {
34
34
  return babelGenerate(ast, options).code;
@@ -45,14 +45,14 @@ function codePreview(node) {
45
45
  return code;
46
46
  }
47
47
  var defaultOptions = { jsescOption: { minimal: true } };
48
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/inline.ts
48
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/inline.ts
49
49
  import traverse4 from "@babel/traverse";
50
50
  import * as t13 from "@babel/types";
51
51
 
52
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
52
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
53
53
  import * as t2 from "@babel/types";
54
54
 
55
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/Matcher.ts
55
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/Matcher.ts
56
56
  class Matcher {
57
57
  match(value, keys = []) {
58
58
  return this.matchValue(value, keys);
@@ -62,7 +62,7 @@ class Matcher {
62
62
  }
63
63
  }
64
64
 
65
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
65
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
66
66
  function anyExpression() {
67
67
  return new AnyExpressionMatcher;
68
68
  }
@@ -75,7 +75,7 @@ class AnyExpressionMatcher extends Matcher {
75
75
  return t2.isNode(value) && t2.isExpression(value);
76
76
  }
77
77
  }
78
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
78
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
79
79
  function* distributeAcrossSlices(slices, available) {
80
80
  if (slices.length === 0) {
81
81
  yield [];
@@ -95,7 +95,7 @@ function* distributeAcrossSlices(slices, available) {
95
95
  }
96
96
  }
97
97
 
98
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anything.ts
98
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anything.ts
99
99
  function anything() {
100
100
  return new AnythingMatcher;
101
101
  }
@@ -109,7 +109,7 @@ class AnythingMatcher extends Matcher {
109
109
  }
110
110
  }
111
111
 
112
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/slice.ts
112
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/slice.ts
113
113
  function zeroOrMore(matcher = anything()) {
114
114
  return new SliceMatcher(0, Infinity, matcher);
115
115
  }
@@ -148,7 +148,7 @@ class SliceMatcher extends Matcher {
148
148
  }
149
149
  }
150
150
 
151
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyList.ts
151
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyList.ts
152
152
  function anyList(...elements) {
153
153
  return new AnyListMatcher(elements);
154
154
  }
@@ -206,11 +206,11 @@ class AnyListMatcher extends Matcher {
206
206
  return false;
207
207
  }
208
208
  }
209
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyNode.ts
209
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyNode.ts
210
210
  import * as t3 from "@babel/types";
211
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
211
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
212
212
  import * as t4 from "@babel/types";
213
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/anyString.ts
213
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/anyString.ts
214
214
  function anyString() {
215
215
  return new StringMatcher;
216
216
  }
@@ -223,7 +223,7 @@ class StringMatcher extends Matcher {
223
223
  return typeof value === "string" || value instanceof String;
224
224
  }
225
225
  }
226
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
226
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
227
227
  function arrayOf(elementMatcher) {
228
228
  return new ArrayOfMatcher(elementMatcher);
229
229
  }
@@ -246,7 +246,7 @@ class ArrayOfMatcher extends Matcher {
246
246
  return true;
247
247
  }
248
248
  }
249
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/capture.ts
249
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/capture.ts
250
250
  function capture(matcher) {
251
251
  return new CapturedMatcher(matcher);
252
252
  }
@@ -278,7 +278,7 @@ class CapturedMatcher extends Matcher {
278
278
  this._currentKeys = keys;
279
279
  }
280
280
  }
281
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/containerOf.ts
281
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/containerOf.ts
282
282
  import * as t5 from "@babel/types";
283
283
  function containerOf(containedMatcher) {
284
284
  return new ContainerOfMatcher(containedMatcher);
@@ -317,10 +317,10 @@ class ContainerOfMatcher extends CapturedMatcher {
317
317
  import * as Babel from "@babel/core";
318
318
  import * as t9 from "@babel/types";
319
319
 
320
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=f7526b4223cf97415_ft7dhqwpjko62eotbauyrlhwiq/node_modules/@codemod/utils/src/NodeTypes.ts
320
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/NodeTypes.ts
321
321
  import * as t6 from "@babel/types";
322
322
  var { BUILDER_KEYS, NODE_FIELDS } = t6;
323
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=f7526b4223cf97415_ft7dhqwpjko62eotbauyrlhwiq/node_modules/@codemod/utils/src/builders.ts
323
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/builders.ts
324
324
  import traverse2 from "@babel/traverse";
325
325
  import * as t7 from "@babel/types";
326
326
 
@@ -329,7 +329,7 @@ import {
329
329
  parse as babelParse
330
330
  } from "@babel/parser";
331
331
 
332
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@parser&commit=f7526b4223cf9741_cvf6llk3hlbskhgvm7jwgnhrpm/node_modules/@codemod/parser/src/options.ts
332
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@parser&commit=c39500f305f11f7f_brbiajd6ladsmb4ocu2g3hzuam/node_modules/@codemod/parser/src/options.ts
333
333
  var DefaultParserPlugins = new Set([
334
334
  "asyncGenerators",
335
335
  "bigInt",
@@ -359,7 +359,7 @@ var DefaultParserPlugins = new Set([
359
359
  ["pipelineOperator", { proposal: "minimal" }],
360
360
  ["recordAndTuple", { syntaxType: "hash" }]
361
361
  ]);
362
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=f7526b4223cf97415_ft7dhqwpjko62eotbauyrlhwiq/node_modules/@codemod/utils/src/nodesEquivalent.ts
362
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@utils&commit=c39500f305f11f7fa_maxus7tddv3lwsqwoimmrkxkba/node_modules/@codemod/utils/src/nodesEquivalent.ts
363
363
  import * as t8 from "@babel/types";
364
364
  function nodesEquivalent(a, b) {
365
365
  if (a === b) {
@@ -405,7 +405,7 @@ function nodesEquivalent(a, b) {
405
405
  }
406
406
  return true;
407
407
  }
408
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
408
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
409
409
  function fromCapture(capturedMatcher) {
410
410
  return new FromCaptureMatcher(capturedMatcher);
411
411
  }
@@ -423,10 +423,10 @@ class FromCaptureMatcher extends Matcher {
423
423
  return this.capturedMatcher.current === value;
424
424
  }
425
425
  }
426
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/function.ts
426
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/function.ts
427
427
  import * as t10 from "@babel/types";
428
428
 
429
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
429
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
430
430
  function tupleOf(...matchers) {
431
431
  return new TupleOfMatcher(...matchers);
432
432
  }
@@ -454,7 +454,7 @@ class TupleOfMatcher extends Matcher {
454
454
  return true;
455
455
  }
456
456
  }
457
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/generated.ts
457
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/generated.ts
458
458
  import * as t11 from "@babel/types";
459
459
  function arrayExpression(elements) {
460
460
  return new ArrayExpressionMatcher(elements);
@@ -815,6 +815,8 @@ class BreakStatementMatcher extends Matcher {
815
815
  if (node.label !== null) {
816
816
  return false;
817
817
  }
818
+ } else if (node.label === null) {
819
+ return false;
818
820
  } else if (!this.label.matchValue(node.label, [...keys, "label"])) {
819
821
  return false;
820
822
  }
@@ -967,6 +969,8 @@ class ClassPropertyMatcher extends Matcher {
967
969
  if (node.value !== null) {
968
970
  return false;
969
971
  }
972
+ } else if (node.value === null) {
973
+ return false;
970
974
  } else if (!this.value.matchValue(node.value, [...keys, "value"])) {
971
975
  return false;
972
976
  }
@@ -975,6 +979,8 @@ class ClassPropertyMatcher extends Matcher {
975
979
  if (node.typeAnnotation !== null) {
976
980
  return false;
977
981
  }
982
+ } else if (node.typeAnnotation === null) {
983
+ return false;
978
984
  } else if (!this.typeAnnotation.matchValue(node.typeAnnotation, [
979
985
  ...keys,
980
986
  "typeAnnotation"
@@ -986,6 +992,8 @@ class ClassPropertyMatcher extends Matcher {
986
992
  if (node.decorators !== null) {
987
993
  return false;
988
994
  }
995
+ } else if (node.decorators === null) {
996
+ return false;
989
997
  } else if (Array.isArray(this.decorators)) {
990
998
  if (!tupleOf(...this.decorators).matchValue(node.decorators, [
991
999
  ...keys,
@@ -1061,6 +1069,8 @@ class ContinueStatementMatcher extends Matcher {
1061
1069
  if (node.label !== null) {
1062
1070
  return false;
1063
1071
  }
1072
+ } else if (node.label === null) {
1073
+ return false;
1064
1074
  } else if (!this.label.matchValue(node.label, [...keys, "label"])) {
1065
1075
  return false;
1066
1076
  }
@@ -1134,6 +1144,8 @@ class ForStatementMatcher extends Matcher {
1134
1144
  if (node.init !== null) {
1135
1145
  return false;
1136
1146
  }
1147
+ } else if (node.init === null) {
1148
+ return false;
1137
1149
  } else if (!this.init.matchValue(node.init, [...keys, "init"])) {
1138
1150
  return false;
1139
1151
  }
@@ -1142,6 +1154,8 @@ class ForStatementMatcher extends Matcher {
1142
1154
  if (node.test !== null) {
1143
1155
  return false;
1144
1156
  }
1157
+ } else if (node.test === null) {
1158
+ return false;
1145
1159
  } else if (!this.test.matchValue(node.test, [...keys, "test"])) {
1146
1160
  return false;
1147
1161
  }
@@ -1150,6 +1164,8 @@ class ForStatementMatcher extends Matcher {
1150
1164
  if (node.update !== null) {
1151
1165
  return false;
1152
1166
  }
1167
+ } else if (node.update === null) {
1168
+ return false;
1153
1169
  } else if (!this.update.matchValue(node.update, [...keys, "update"])) {
1154
1170
  return false;
1155
1171
  }
@@ -1184,6 +1200,8 @@ class FunctionDeclarationMatcher extends Matcher {
1184
1200
  if (node.id !== null) {
1185
1201
  return false;
1186
1202
  }
1203
+ } else if (node.id === null) {
1204
+ return false;
1187
1205
  } else if (!this.id.matchValue(node.id, [...keys, "id"])) {
1188
1206
  return false;
1189
1207
  }
@@ -1245,6 +1263,8 @@ class FunctionExpressionMatcher extends Matcher {
1245
1263
  if (node.id !== null) {
1246
1264
  return false;
1247
1265
  }
1266
+ } else if (node.id === null) {
1267
+ return false;
1248
1268
  } else if (!this.id.matchValue(node.id, [...keys, "id"])) {
1249
1269
  return false;
1250
1270
  }
@@ -1331,6 +1351,8 @@ class IfStatementMatcher extends Matcher {
1331
1351
  if (node.alternate !== null) {
1332
1352
  return false;
1333
1353
  }
1354
+ } else if (node.alternate === null) {
1355
+ return false;
1334
1356
  } else if (!this.alternate.matchValue(node.alternate, [...keys, "alternate"])) {
1335
1357
  return false;
1336
1358
  }
@@ -1412,6 +1434,8 @@ class MemberExpressionMatcher extends Matcher {
1412
1434
  if (node.optional !== null) {
1413
1435
  return false;
1414
1436
  }
1437
+ } else if (node.optional === null) {
1438
+ return false;
1415
1439
  } else if (!this.optional.matchValue(node.optional, [...keys, "optional"])) {
1416
1440
  return false;
1417
1441
  }
@@ -1625,6 +1649,8 @@ class ObjectPropertyMatcher extends Matcher {
1625
1649
  if (node.decorators !== null) {
1626
1650
  return false;
1627
1651
  }
1652
+ } else if (node.decorators === null) {
1653
+ return false;
1628
1654
  } else if (Array.isArray(this.decorators)) {
1629
1655
  if (!tupleOf(...this.decorators).matchValue(node.decorators, [
1630
1656
  ...keys,
@@ -1714,6 +1740,8 @@ class ReturnStatementMatcher extends Matcher {
1714
1740
  if (node.argument !== null) {
1715
1741
  return false;
1716
1742
  }
1743
+ } else if (node.argument === null) {
1744
+ return false;
1717
1745
  } else if (!this.argument.matchValue(node.argument, [...keys, "argument"])) {
1718
1746
  return false;
1719
1747
  }
@@ -1801,6 +1829,8 @@ class SwitchCaseMatcher extends Matcher {
1801
1829
  if (node.test !== null) {
1802
1830
  return false;
1803
1831
  }
1832
+ } else if (node.test === null) {
1833
+ return false;
1804
1834
  } else if (!this.test.matchValue(node.test, [...keys, "test"])) {
1805
1835
  return false;
1806
1836
  }
@@ -1924,6 +1954,8 @@ class TryStatementMatcher extends Matcher {
1924
1954
  if (node.handler !== null) {
1925
1955
  return false;
1926
1956
  }
1957
+ } else if (node.handler === null) {
1958
+ return false;
1927
1959
  } else if (!this.handler.matchValue(node.handler, [...keys, "handler"])) {
1928
1960
  return false;
1929
1961
  }
@@ -1932,6 +1964,8 @@ class TryStatementMatcher extends Matcher {
1932
1964
  if (node.finalizer !== null) {
1933
1965
  return false;
1934
1966
  }
1967
+ } else if (node.finalizer === null) {
1968
+ return false;
1935
1969
  } else if (!this.finalizer.matchValue(node.finalizer, [...keys, "finalizer"])) {
1936
1970
  return false;
1937
1971
  }
@@ -2071,6 +2105,8 @@ class VariableDeclaratorMatcher extends Matcher {
2071
2105
  if (node.init !== null) {
2072
2106
  return false;
2073
2107
  }
2108
+ } else if (node.init === null) {
2109
+ return false;
2074
2110
  } else if (!this.init.matchValue(node.init, [...keys, "init"])) {
2075
2111
  return false;
2076
2112
  }
@@ -2100,7 +2136,7 @@ class WhileStatementMatcher extends Matcher {
2100
2136
  return true;
2101
2137
  }
2102
2138
  }
2103
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/or.ts
2139
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/or.ts
2104
2140
  function or(...matchersOrValues) {
2105
2141
  return new OrMatcher(...matchersOrValues);
2106
2142
  }
@@ -2124,7 +2160,7 @@ class OrMatcher extends Matcher {
2124
2160
  return false;
2125
2161
  }
2126
2162
  }
2127
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=f7526b4223cf97_3hwilm7arfqh7gehb4jjanlmea/node_modules/@codemod/matchers/src/matchers/predicate.ts
2163
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages@matchers&commit=c39500f305f11f_3iorb4w7n35tk7jnwavk63eqh4/node_modules/@codemod/matchers/src/matchers/predicate.ts
2128
2164
  function predicate(predicate2) {
2129
2165
  return new PredicateMatcher(predicate2);
2130
2166
  }
@@ -2139,7 +2175,7 @@ class PredicateMatcher extends Matcher {
2139
2175
  return this.predicate(value);
2140
2176
  }
2141
2177
  }
2142
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/matcher.ts
2178
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/matcher.ts
2143
2179
  import * as t12 from "@babel/types";
2144
2180
  function infiniteLoop(body) {
2145
2181
  return or(forStatement(undefined, null, undefined, body), forStatement(undefined, truthyMatcher, undefined, body), whileStatement(truthyMatcher, body));
@@ -2186,11 +2222,12 @@ function isTemporaryVariable(binding, references, kind = "var") {
2186
2222
  var safeLiteral = predicate((node) => t12.isLiteral(node) && (!t12.isTemplateLiteral(node) || node.expressions.length === 0));
2187
2223
  var iife = matchIife();
2188
2224
  var emptyIife = matchIife([]);
2225
+ var undefinedMatcher = or(identifier("undefined"), unaryExpression("void", numericLiteral(0)));
2189
2226
  var trueMatcher = or(booleanLiteral(true), unaryExpression("!", numericLiteral(0)), unaryExpression("!", unaryExpression("!", numericLiteral(1))), unaryExpression("!", unaryExpression("!", arrayExpression([]))));
2190
2227
  var falseMatcher = or(booleanLiteral(false), unaryExpression("!", arrayExpression([])));
2191
2228
  var truthyMatcher = or(trueMatcher, arrayExpression([]));
2192
2229
 
2193
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/inline.ts
2230
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/inline.ts
2194
2231
  function inlineVariable(binding, value = anyExpression(), unsafeAssignments = false) {
2195
2232
  const varDeclarator = binding.path.node;
2196
2233
  const varMatcher = variableDeclarator(identifier(binding.identifier.name), value);
@@ -2320,7 +2357,7 @@ function inlineVariableAliases(binding, targetName = binding.identifier.name) {
2320
2357
  }
2321
2358
  return state;
2322
2359
  }
2323
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/rename.ts
2360
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/rename.ts
2324
2361
  import traverse6 from "@babel/traverse";
2325
2362
  import * as t14 from "@babel/types";
2326
2363
  function renameFast(binding, newName) {
@@ -2353,6 +2390,8 @@ function renameFast(binding, newName) {
2353
2390
  },
2354
2391
  noScope: true
2355
2392
  });
2393
+ } else if (ref.isFunctionDeclaration() && t14.isIdentifier(ref.node.id)) {
2394
+ ref.node.id.name = newName;
2356
2395
  } else {
2357
2396
  throw new Error(`Unexpected constant violation (${ref.type}): ${codePreview(ref.node)}`);
2358
2397
  }
@@ -2361,10 +2400,8 @@ function renameFast(binding, newName) {
2361
2400
  binding.scope.bindings[newName] = binding;
2362
2401
  binding.identifier.name = newName;
2363
2402
  }
2364
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/ast-utils/transform.ts
2365
- import traverse8, {
2366
- visitors
2367
- } from "@babel/traverse";
2403
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/ast-utils/transform.ts
2404
+ import traverse8, {visitors} from "@babel/traverse";
2368
2405
  import debug from "debug";
2369
2406
  async function applyTransformAsync(ast, transform, options2) {
2370
2407
  logger(`${transform.name}: started`);
@@ -2417,7 +2454,7 @@ function mergeTransforms(options2) {
2417
2454
  };
2418
2455
  }
2419
2456
  var logger = debug("webcrack:transforms");
2420
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/merge-strings.ts
2457
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/merge-strings.ts
2421
2458
  import * as t15 from "@babel/types";
2422
2459
  var merge_strings_default = {
2423
2460
  name: "merge-strings",
@@ -2449,7 +2486,7 @@ var merge_strings_default = {
2449
2486
  }
2450
2487
  };
2451
2488
 
2452
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/array-rotator.ts
2489
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/array-rotator.ts
2453
2490
  function findArrayRotator(stringArray) {
2454
2491
  const arrayIdentifier = capture(identifier());
2455
2492
  const pushShift = callExpression(constMemberExpression(arrayIdentifier, "push"), [
@@ -2469,7 +2506,7 @@ function findArrayRotator(stringArray) {
2469
2506
  }
2470
2507
  }
2471
2508
 
2472
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/control-flow-object.ts
2509
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/control-flow-object.ts
2473
2510
  import * as t16 from "@babel/types";
2474
2511
  var control_flow_object_default = {
2475
2512
  name: "control-flow-object",
@@ -2589,7 +2626,7 @@ var control_flow_object_default = {
2589
2626
  }
2590
2627
  };
2591
2628
 
2592
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/control-flow-switch.ts
2629
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/control-flow-switch.ts
2593
2630
  import * as t17 from "@babel/types";
2594
2631
  var control_flow_switch_default = {
2595
2632
  name: "control-flow-switch",
@@ -2624,7 +2661,7 @@ var control_flow_switch_default = {
2624
2661
  }
2625
2662
  };
2626
2663
 
2627
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/dead-code.ts
2664
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/dead-code.ts
2628
2665
  import * as t18 from "@babel/types";
2629
2666
  var replace = function(path, node) {
2630
2667
  if (t18.isBlockStatement(node)) {
@@ -2672,7 +2709,7 @@ var dead_code_default = {
2672
2709
  }
2673
2710
  };
2674
2711
 
2675
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/decoder.ts
2712
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/decoder.ts
2676
2713
  import {expression} from "@babel/template";
2677
2714
  function findDecoders(stringArray) {
2678
2715
  const decoders = [];
@@ -2741,7 +2778,7 @@ class Decoder {
2741
2778
  }
2742
2779
  }
2743
2780
 
2744
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/inline-decoded-strings.ts
2781
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/inline-decoded-strings.ts
2745
2782
  import * as t19 from "@babel/types";
2746
2783
  var inline_decoded_strings_default = {
2747
2784
  name: "inline-decoded-strings",
@@ -2763,7 +2800,7 @@ var inline_decoded_strings_default = {
2763
2800
  }
2764
2801
  };
2765
2802
 
2766
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/inline-decoder-wrappers.ts
2803
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/inline-decoder-wrappers.ts
2767
2804
  var inline_decoder_wrappers_default = {
2768
2805
  name: "inline-decoder-wrappers",
2769
2806
  tags: ["unsafe"],
@@ -2780,7 +2817,7 @@ var inline_decoder_wrappers_default = {
2780
2817
  }
2781
2818
  };
2782
2819
 
2783
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/inline-object-props.ts
2820
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/inline-object-props.ts
2784
2821
  var inline_object_props_default = {
2785
2822
  name: "inline-object-props",
2786
2823
  tags: ["safe"],
@@ -2807,13 +2844,13 @@ var inline_object_props_default = {
2807
2844
  }
2808
2845
  };
2809
2846
 
2810
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/string-array.ts
2847
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/string-array.ts
2811
2848
  import traverse10 from "@babel/traverse";
2812
2849
  function findStringArray(ast2) {
2813
2850
  let result;
2814
2851
  const functionName = capture(anyString());
2815
2852
  const arrayIdentifier = capture(identifier());
2816
- const arrayExpression2 = capture(arrayExpression(arrayOf(stringLiteral())));
2853
+ const arrayExpression2 = capture(arrayExpression(arrayOf(or(stringLiteral(), undefinedMatcher))));
2817
2854
  const functionAssignment = assignmentExpression("=", identifier(fromCapture(functionName)), functionExpression(undefined, [], blockStatement([returnStatement(fromCapture(arrayIdentifier))])));
2818
2855
  const variableDeclaration2 = variableDeclaration(undefined, [
2819
2856
  variableDeclarator(arrayIdentifier, arrayExpression2)
@@ -2857,7 +2894,7 @@ function findStringArray(ast2) {
2857
2894
  return result;
2858
2895
  }
2859
2896
 
2860
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/deobfuscate/vm.ts
2897
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/deobfuscate/vm.ts
2861
2898
  import debug2 from "debug";
2862
2899
  class VMDecoder {
2863
2900
  decoders;
@@ -2916,10 +2953,12 @@ var deobfuscate_default = {
2916
2953
  }
2917
2954
  const vm2 = new VMDecoder(sandbox, stringArray, decoders, rotator);
2918
2955
  state.changes += (await applyTransformAsync(ast2, inline_decoded_strings_default, { vm: vm2 })).changes;
2919
- stringArray.path.remove();
2920
- rotator?.remove();
2921
- decoders.forEach((decoder2) => decoder2.path.remove());
2922
- state.changes += 2 + decoders.length;
2956
+ if (decoders.length > 0) {
2957
+ stringArray.path.remove();
2958
+ rotator?.remove();
2959
+ decoders.forEach((decoder2) => decoder2.path.remove());
2960
+ state.changes += 2 + decoders.length;
2961
+ }
2923
2962
  state.changes += applyTransforms(ast2, [merge_strings_default, dead_code_default, control_flow_object_default, control_flow_switch_default], { noScope: true }).changes;
2924
2963
  }
2925
2964
  };
@@ -3037,6 +3076,11 @@ __export(exports_transforms, {
3037
3076
  return split_variable_declarations_default;
3038
3077
  }
3039
3078
  },
3079
+ splitForLoopVars: () => {
3080
+ {
3081
+ return split_for_loop_vars_default;
3082
+ }
3083
+ },
3040
3084
  sequence: () => {
3041
3085
  {
3042
3086
  return sequence_default;
@@ -3099,7 +3143,7 @@ __export(exports_transforms, {
3099
3143
  }
3100
3144
  });
3101
3145
 
3102
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/block-statements.ts
3146
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/block-statements.ts
3103
3147
  import * as t22 from "@babel/types";
3104
3148
  var block_statements_default = {
3105
3149
  name: "block-statements",
@@ -3137,7 +3181,7 @@ var block_statements_default = {
3137
3181
  }
3138
3182
  })
3139
3183
  };
3140
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/computed-properties.ts
3184
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/computed-properties.ts
3141
3185
  import {isIdentifierName} from "@babel/helper-validator-identifier";
3142
3186
  import * as t23 from "@babel/types";
3143
3187
  var computed_properties_default = {
@@ -3171,7 +3215,7 @@ var computed_properties_default = {
3171
3215
  };
3172
3216
  }
3173
3217
  };
3174
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/for-to-while.ts
3218
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/for-to-while.ts
3175
3219
  import * as t24 from "@babel/types";
3176
3220
  var for_to_while_default = {
3177
3221
  name: "for-to-while",
@@ -3190,7 +3234,7 @@ var for_to_while_default = {
3190
3234
  };
3191
3235
  }
3192
3236
  };
3193
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/infinity.ts
3237
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/infinity.ts
3194
3238
  import * as t25 from "@babel/types";
3195
3239
  var infinity_default = {
3196
3240
  name: "infinity",
@@ -3216,7 +3260,7 @@ var infinity_default = {
3216
3260
  };
3217
3261
  }
3218
3262
  };
3219
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/invert-boolean-logic.ts
3263
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/invert-boolean-logic.ts
3220
3264
  import * as t26 from "@babel/types";
3221
3265
  var INVERTED_BINARY_OPERATORS = {
3222
3266
  "==": "!=",
@@ -3266,7 +3310,7 @@ var invert_boolean_logic_default = {
3266
3310
  };
3267
3311
  }
3268
3312
  };
3269
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/json-parse.ts
3313
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/json-parse.ts
3270
3314
  import {parseExpression} from "@babel/parser";
3271
3315
  var json_parse_default = {
3272
3316
  name: "json-parse",
@@ -3294,7 +3338,7 @@ var json_parse_default = {
3294
3338
  };
3295
3339
  }
3296
3340
  };
3297
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/logical-to-if.ts
3341
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/logical-to-if.ts
3298
3342
  import {statement} from "@babel/template";
3299
3343
  var logical_to_if_default = {
3300
3344
  name: "logical-to-if",
@@ -3326,7 +3370,7 @@ var logical_to_if_default = {
3326
3370
  };
3327
3371
  }
3328
3372
  };
3329
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/merge-else-if.ts
3373
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/merge-else-if.ts
3330
3374
  var merge_else_if_default = {
3331
3375
  name: "merge-else-if",
3332
3376
  tags: ["safe"],
@@ -3345,7 +3389,7 @@ var merge_else_if_default = {
3345
3389
  };
3346
3390
  }
3347
3391
  };
3348
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/number-expressions.ts
3392
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/number-expressions.ts
3349
3393
  import * as t27 from "@babel/types";
3350
3394
  var number_expressions_default = {
3351
3395
  name: "number-expressions",
@@ -3369,7 +3413,7 @@ var number_expressions_default = {
3369
3413
  })
3370
3414
  };
3371
3415
  var matcher3 = or(binaryExpression(or("+", "-", "*", "/"), predicate((node) => matcher3.match(node)), predicate((node) => matcher3.match(node))), binaryExpression("-", or(stringLiteral(), predicate((node) => matcher3.match(node))), or(stringLiteral(), predicate((node) => matcher3.match(node)))), unaryExpression("-", or(stringLiteral(), predicate((node) => matcher3.match(node)))), numericLiteral());
3372
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/raw-literals.ts
3416
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/raw-literals.ts
3373
3417
  var raw_literals_default = {
3374
3418
  name: "raw-literals",
3375
3419
  tags: ["safe"],
@@ -3388,100 +3432,105 @@ var raw_literals_default = {
3388
3432
  }
3389
3433
  })
3390
3434
  };
3391
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/sequence.ts
3435
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/sequence.ts
3392
3436
  import * as t28 from "@babel/types";
3393
3437
  var sequence_default = {
3394
3438
  name: "sequence",
3395
3439
  tags: ["safe"],
3396
3440
  visitor() {
3397
- const assignmentVariable = or(identifier(), memberExpression(identifier(), identifier()));
3441
+ const assignmentVariable = or(identifier(), memberExpression(identifier(), or(identifier(), safeLiteral)));
3398
3442
  const assignedSequence = capture(sequenceExpression());
3399
- const assignmentMatcher = expressionStatement(assignmentExpression(or("=", "+=", "-=", "*=", "/=", "%=", "**=", "<<=", ">>=", ">>>=", "|=", "^=", "&="), assignmentVariable, assignedSequence));
3443
+ const assignmentMatcher = assignmentExpression(or("=", "+=", "-=", "*=", "/=", "%=", "**=", "<<=", ">>=", ">>>=", "|=", "^=", "&="), assignmentVariable, assignedSequence);
3400
3444
  return {
3445
+ AssignmentExpression: {
3446
+ exit(path) {
3447
+ if (!assignmentMatcher.match(path.node))
3448
+ return;
3449
+ const { expressions } = assignedSequence.current;
3450
+ path.node.right = expressions.pop();
3451
+ const newNodes = path.parentPath.isExpressionStatement() ? expressions.map(t28.expressionStatement) : expressions;
3452
+ path.insertBefore(newNodes);
3453
+ this.changes++;
3454
+ }
3455
+ },
3401
3456
  ExpressionStatement: {
3402
3457
  exit(path) {
3403
- if (t28.isSequenceExpression(path.node.expression)) {
3404
- const statements = path.node.expression.expressions.map((expr) => t28.expressionStatement(expr));
3405
- path.replaceWithMultiple(statements);
3406
- this.changes++;
3407
- } else if (assignmentMatcher.match(path.node)) {
3408
- const value = assignedSequence.current.expressions.pop();
3409
- const statements = assignedSequence.current.expressions.map((expr) => t28.expressionStatement(expr));
3410
- path.get("expression.right").replaceWith(value);
3411
- path.insertBefore(statements);
3412
- this.changes++;
3413
- }
3458
+ if (!t28.isSequenceExpression(path.node.expression))
3459
+ return;
3460
+ const statements = path.node.expression.expressions.map(t28.expressionStatement);
3461
+ path.replaceWithMultiple(statements);
3462
+ this.changes++;
3414
3463
  }
3415
3464
  },
3416
3465
  ReturnStatement: {
3417
3466
  exit(path) {
3418
- if (t28.isSequenceExpression(path.node.argument)) {
3419
- const expressions = path.node.argument.expressions;
3420
- path.node.argument = expressions.pop();
3421
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3422
- path.insertBefore(statements);
3423
- this.changes++;
3424
- }
3467
+ if (!t28.isSequenceExpression(path.node.argument))
3468
+ return;
3469
+ const { expressions } = path.node.argument;
3470
+ path.node.argument = expressions.pop();
3471
+ const statements = expressions.map(t28.expressionStatement);
3472
+ path.insertBefore(statements);
3473
+ this.changes++;
3425
3474
  }
3426
3475
  },
3427
3476
  IfStatement: {
3428
3477
  exit(path) {
3429
- if (t28.isSequenceExpression(path.node.test)) {
3430
- const expressions = path.node.test.expressions;
3431
- path.node.test = expressions.pop();
3432
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3433
- path.insertBefore(statements);
3434
- this.changes++;
3435
- }
3478
+ if (!t28.isSequenceExpression(path.node.test))
3479
+ return;
3480
+ const { expressions } = path.node.test;
3481
+ path.node.test = expressions.pop();
3482
+ const statements = expressions.map(t28.expressionStatement);
3483
+ path.insertBefore(statements);
3484
+ this.changes++;
3436
3485
  }
3437
3486
  },
3438
3487
  SwitchStatement: {
3439
3488
  exit(path) {
3440
- if (t28.isSequenceExpression(path.node.discriminant)) {
3441
- const expressions = path.node.discriminant.expressions;
3442
- path.node.discriminant = expressions.pop();
3443
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3444
- path.insertBefore(statements);
3445
- this.changes++;
3446
- }
3489
+ if (!t28.isSequenceExpression(path.node.discriminant))
3490
+ return;
3491
+ const { expressions } = path.node.discriminant;
3492
+ path.node.discriminant = expressions.pop();
3493
+ const statements = expressions.map(t28.expressionStatement);
3494
+ path.insertBefore(statements);
3495
+ this.changes++;
3447
3496
  }
3448
3497
  },
3449
3498
  ThrowStatement: {
3450
3499
  exit(path) {
3451
- if (t28.isSequenceExpression(path.node.argument)) {
3452
- const expressions = path.node.argument.expressions;
3453
- path.node.argument = expressions.pop();
3454
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3455
- path.insertBefore(statements);
3456
- this.changes++;
3457
- }
3500
+ if (!t28.isSequenceExpression(path.node.argument))
3501
+ return;
3502
+ const { expressions } = path.node.argument;
3503
+ path.node.argument = expressions.pop();
3504
+ const statements = expressions.map(t28.expressionStatement);
3505
+ path.insertBefore(statements);
3506
+ this.changes++;
3458
3507
  }
3459
3508
  },
3460
3509
  ForInStatement: {
3461
3510
  exit(path) {
3462
3511
  const sequence = capture(sequenceExpression());
3463
3512
  const matcher4 = forInStatement(anything(), sequence);
3464
- if (matcher4.match(path.node)) {
3465
- const expressions = sequence.current.expressions;
3466
- path.node.right = expressions.pop();
3467
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3468
- path.insertBefore(statements);
3469
- this.changes++;
3470
- }
3513
+ if (!matcher4.match(path.node))
3514
+ return;
3515
+ const { expressions } = sequence.current;
3516
+ path.node.right = expressions.pop();
3517
+ const statements = expressions.map(t28.expressionStatement);
3518
+ path.insertBefore(statements);
3519
+ this.changes++;
3471
3520
  }
3472
3521
  },
3473
3522
  ForStatement: {
3474
3523
  exit(path) {
3475
3524
  if (t28.isSequenceExpression(path.node.init)) {
3476
- const statements = path.node.init.expressions.map((expr) => t28.expressionStatement(expr));
3477
- path.insertBefore(statements);
3525
+ const statements = path.node.init.expressions.map(t28.expressionStatement);
3478
3526
  path.node.init = null;
3527
+ path.insertBefore(statements);
3479
3528
  this.changes++;
3480
3529
  }
3481
3530
  if (t28.isSequenceExpression(path.node.update) && path.node.body.type === "EmptyStatement") {
3482
- const expressions = path.node.update.expressions;
3531
+ const { expressions } = path.node.update;
3483
3532
  path.node.update = expressions.pop();
3484
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3533
+ const statements = expressions.map(t28.expressionStatement);
3485
3534
  path.node.body = t28.blockStatement(statements);
3486
3535
  this.changes++;
3487
3536
  }
@@ -3489,13 +3538,13 @@ var sequence_default = {
3489
3538
  },
3490
3539
  WhileStatement: {
3491
3540
  exit(path) {
3492
- if (t28.isSequenceExpression(path.node.test)) {
3493
- const expressions = path.node.test.expressions;
3494
- path.node.test = expressions.pop();
3495
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3496
- path.insertBefore(statements);
3497
- this.changes++;
3498
- }
3541
+ if (!t28.isSequenceExpression(path.node.test))
3542
+ return;
3543
+ const { expressions } = path.node.test;
3544
+ path.node.test = expressions.pop();
3545
+ const statements = expressions.map(t28.expressionStatement);
3546
+ path.insertBefore(statements);
3547
+ this.changes++;
3499
3548
  }
3500
3549
  },
3501
3550
  VariableDeclaration: {
@@ -3504,43 +3553,80 @@ var sequence_default = {
3504
3553
  const matcher4 = variableDeclaration(undefined, [
3505
3554
  variableDeclarator(undefined, sequence)
3506
3555
  ]);
3507
- if (matcher4.match(path.node)) {
3508
- const expressions = sequence.current.expressions;
3509
- path.node.declarations[0].init = expressions.pop();
3510
- const statements = expressions.map((expr) => t28.expressionStatement(expr));
3511
- if (path.parentPath.isForStatement() && path.key === "init") {
3512
- path.parentPath.insertBefore(statements);
3513
- } else {
3514
- path.insertBefore(statements);
3515
- }
3516
- this.changes++;
3517
- }
3556
+ if (!matcher4.match(path.node))
3557
+ return;
3558
+ const { expressions } = sequence.current;
3559
+ path.node.declarations[0].init = expressions.pop();
3560
+ const statements = expressions.map(t28.expressionStatement);
3561
+ path.getStatementParent()?.insertBefore(statements);
3562
+ this.changes++;
3518
3563
  }
3519
3564
  }
3520
3565
  };
3521
3566
  }
3522
3567
  };
3523
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/split-variable-declarations.ts
3568
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/split-for-loop-vars.ts
3524
3569
  import * as t29 from "@babel/types";
3570
+ var matcher4 = forStatement(variableDeclaration("var", arrayOf(variableDeclarator(identifier()))));
3571
+ var split_for_loop_vars_default = {
3572
+ name: "split-for-loop-vars",
3573
+ tags: ["safe"],
3574
+ scope: true,
3575
+ visitor: () => ({
3576
+ ForStatement: {
3577
+ exit(path) {
3578
+ if (!matcher4.match(path.node))
3579
+ return;
3580
+ const { init, test, update } = path.node;
3581
+ const { declarations } = init;
3582
+ for (let i = 0;i < declarations.length; i++) {
3583
+ const declarator = declarations[i];
3584
+ const binding = path.scope.getBinding(declarator.id.name);
3585
+ if (!binding)
3586
+ break;
3587
+ const isUsedInTestOrUpdate = binding.constantViolations.some((reference) => reference.find((p) => p.node === test || p.node === update)) || binding.referencePaths.some((reference) => reference.find((p) => p.node === test || p.node === update));
3588
+ if (isUsedInTestOrUpdate)
3589
+ break;
3590
+ path.insertBefore(t29.variableDeclaration("var", [declarator]));
3591
+ declarations.shift();
3592
+ i--;
3593
+ this.changes++;
3594
+ }
3595
+ if (declarations.length === 0)
3596
+ path.get("init").remove();
3597
+ }
3598
+ }
3599
+ })
3600
+ };
3601
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/split-variable-declarations.ts
3602
+ import * as t30 from "@babel/types";
3525
3603
  var split_variable_declarations_default = {
3526
3604
  name: "split-variable-declarations",
3527
3605
  tags: ["safe"],
3528
3606
  visitor: () => ({
3529
3607
  VariableDeclaration: {
3530
3608
  exit(path) {
3531
- if (path.node.declarations.length > 1 && path.key !== "init") {
3532
- if (path.parentPath.isExportNamedDeclaration()) {
3533
- path.parentPath.replaceWithMultiple(path.node.declarations.map((declaration) => t29.exportNamedDeclaration(t29.variableDeclaration(path.node.kind, [declaration]))));
3609
+ if (path.node.declarations.length > 1) {
3610
+ if (path.key === "init" && path.parentPath.isForStatement()) {
3611
+ if (!path.parentPath.node.test && !path.parentPath.node.update && path.node.kind === "var") {
3612
+ path.parentPath.insertBefore(path.node.declarations.map((declaration) => t30.variableDeclaration(path.node.kind, [declaration])));
3613
+ path.remove();
3614
+ this.changes++;
3615
+ }
3534
3616
  } else {
3535
- path.replaceWithMultiple(path.node.declarations.map((declaration) => t29.variableDeclaration(path.node.kind, [declaration])));
3617
+ if (path.parentPath.isExportNamedDeclaration()) {
3618
+ path.parentPath.replaceWithMultiple(path.node.declarations.map((declaration) => t30.exportNamedDeclaration(t30.variableDeclaration(path.node.kind, [declaration]))));
3619
+ } else {
3620
+ path.replaceWithMultiple(path.node.declarations.map((declaration) => t30.variableDeclaration(path.node.kind, [declaration])));
3621
+ }
3622
+ this.changes++;
3536
3623
  }
3537
- this.changes++;
3538
3624
  }
3539
3625
  }
3540
3626
  }
3541
3627
  })
3542
3628
  };
3543
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/ternary-to-if.ts
3629
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/ternary-to-if.ts
3544
3630
  import {statement as statement2} from "@babel/template";
3545
3631
  var ternary_to_if_default = {
3546
3632
  name: "ternary-to-if",
@@ -3580,8 +3666,8 @@ var ternary_to_if_default = {
3580
3666
  };
3581
3667
  }
3582
3668
  };
3583
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/typeof-undefined.ts
3584
- import * as t30 from "@babel/types";
3669
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/typeof-undefined.ts
3670
+ import * as t31 from "@babel/types";
3585
3671
  var OPERATOR_MAP = {
3586
3672
  ">": "===",
3587
3673
  "<": "!=="
@@ -3592,32 +3678,32 @@ var typeof_undefined_default = {
3592
3678
  visitor() {
3593
3679
  const operator = capture(or(">", "<"));
3594
3680
  const argument = capture(anyExpression());
3595
- const matcher4 = binaryExpression(operator, unaryExpression("typeof", argument), stringLiteral("u"));
3681
+ const matcher5 = binaryExpression(operator, unaryExpression("typeof", argument), stringLiteral("u"));
3596
3682
  return {
3597
3683
  BinaryExpression: {
3598
3684
  exit(path) {
3599
- if (!matcher4.match(path.node))
3685
+ if (!matcher5.match(path.node))
3600
3686
  return;
3601
- path.replaceWith(t30.binaryExpression(OPERATOR_MAP[operator.current], t30.unaryExpression("typeof", argument.current), t30.stringLiteral("undefined")));
3687
+ path.replaceWith(t31.binaryExpression(OPERATOR_MAP[operator.current], t31.unaryExpression("typeof", argument.current), t31.stringLiteral("undefined")));
3602
3688
  this.changes++;
3603
3689
  }
3604
3690
  }
3605
3691
  };
3606
3692
  }
3607
3693
  };
3608
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/unary-expressions.ts
3609
- import * as t31 from "@babel/types";
3694
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/unary-expressions.ts
3695
+ import * as t32 from "@babel/types";
3610
3696
  var unary_expressions_default = {
3611
3697
  name: "unary-expressions",
3612
3698
  tags: ["safe"],
3613
3699
  visitor() {
3614
3700
  const argument = capture(anyExpression());
3615
- const matcher4 = expressionStatement(unaryExpression(or("void", "!", "typeof"), argument));
3701
+ const matcher5 = expressionStatement(unaryExpression(or("void", "!", "typeof"), argument));
3616
3702
  const returnVoid = returnStatement(unaryExpression("void", argument));
3617
3703
  return {
3618
3704
  ExpressionStatement: {
3619
3705
  exit(path) {
3620
- if (!matcher4.match(path.node))
3706
+ if (!matcher5.match(path.node))
3621
3707
  return;
3622
3708
  path.replaceWith(argument.current);
3623
3709
  this.changes++;
@@ -3628,25 +3714,25 @@ var unary_expressions_default = {
3628
3714
  if (!returnVoid.match(path.node))
3629
3715
  return;
3630
3716
  path.replaceWith(argument.current);
3631
- path.insertAfter(t31.returnStatement());
3717
+ path.insertAfter(t32.returnStatement());
3632
3718
  this.changes++;
3633
3719
  }
3634
3720
  }
3635
3721
  };
3636
3722
  }
3637
3723
  };
3638
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/unminify-booleans.ts
3639
- import * as t32 from "@babel/types";
3724
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/unminify-booleans.ts
3725
+ import * as t33 from "@babel/types";
3640
3726
  var unminify_booleans_default = {
3641
3727
  name: "unminify-booleans",
3642
3728
  tags: ["safe"],
3643
3729
  visitor: () => ({
3644
3730
  UnaryExpression(path) {
3645
3731
  if (trueMatcher2.match(path.node)) {
3646
- path.replaceWith(t32.booleanLiteral(true));
3732
+ path.replaceWith(t33.booleanLiteral(true));
3647
3733
  this.changes++;
3648
3734
  } else if (falseMatcher2.match(path.node)) {
3649
- path.replaceWith(t32.booleanLiteral(false));
3735
+ path.replaceWith(t33.booleanLiteral(false));
3650
3736
  this.changes++;
3651
3737
  }
3652
3738
  }
@@ -3654,19 +3740,19 @@ var unminify_booleans_default = {
3654
3740
  };
3655
3741
  var trueMatcher2 = or(unaryExpression("!", numericLiteral(0)), unaryExpression("!", unaryExpression("!", numericLiteral(1))), unaryExpression("!", unaryExpression("!", arrayExpression([]))));
3656
3742
  var falseMatcher2 = or(unaryExpression("!", numericLiteral(1)), unaryExpression("!", arrayExpression([])));
3657
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/void-to-undefined.ts
3658
- import * as t33 from "@babel/types";
3743
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/void-to-undefined.ts
3744
+ import * as t34 from "@babel/types";
3659
3745
  var void_to_undefined_default = {
3660
3746
  name: "void-to-undefined",
3661
3747
  tags: ["safe"],
3662
3748
  scope: true,
3663
3749
  visitor: () => {
3664
- const matcher4 = unaryExpression("void", numericLiteral(0));
3750
+ const matcher5 = unaryExpression("void", numericLiteral(0));
3665
3751
  return {
3666
3752
  UnaryExpression: {
3667
3753
  exit(path) {
3668
- if (matcher4.match(path.node) && !path.scope.hasBinding("undefined", { noGlobals: true })) {
3669
- path.replaceWith(t33.identifier("undefined"));
3754
+ if (matcher5.match(path.node) && !path.scope.hasBinding("undefined", { noGlobals: true })) {
3755
+ path.replaceWith(t34.identifier("undefined"));
3670
3756
  this.changes++;
3671
3757
  }
3672
3758
  }
@@ -3674,8 +3760,8 @@ var void_to_undefined_default = {
3674
3760
  };
3675
3761
  }
3676
3762
  };
3677
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/unminify/transforms/yoda.ts
3678
- import * as t34 from "@babel/types";
3763
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/unminify/transforms/yoda.ts
3764
+ import * as t35 from "@babel/types";
3679
3765
  var FLIPPED_OPERATORS = {
3680
3766
  "==": "==",
3681
3767
  "===": "===",
@@ -3694,12 +3780,12 @@ var yoda_default = {
3694
3780
  name: "yoda",
3695
3781
  tags: ["safe"],
3696
3782
  visitor: () => {
3697
- const matcher4 = binaryExpression(or(...Object.values(FLIPPED_OPERATORS)), or(stringLiteral(), numericLiteral(), unaryExpression("-", or(numericLiteral(), identifier("Infinity"))), booleanLiteral(), nullLiteral(), identifier("undefined"), identifier("NaN"), identifier("Infinity")), predicate((node) => !t34.isLiteral(node)));
3783
+ const matcher5 = binaryExpression(or(...Object.values(FLIPPED_OPERATORS)), or(stringLiteral(), numericLiteral(), unaryExpression("-", or(numericLiteral(), identifier("Infinity"))), booleanLiteral(), nullLiteral(), identifier("undefined"), identifier("NaN"), identifier("Infinity")), predicate((node) => !t35.isLiteral(node)));
3698
3784
  return {
3699
3785
  BinaryExpression: {
3700
3786
  exit(path) {
3701
- if (matcher4.match(path.node)) {
3702
- path.replaceWith(t34.binaryExpression(FLIPPED_OPERATORS[path.node.operator], path.node.right, path.node.left));
3787
+ if (matcher5.match(path.node)) {
3788
+ path.replaceWith(t35.binaryExpression(FLIPPED_OPERATORS[path.node.operator], path.node.right, path.node.left));
3703
3789
  this.changes++;
3704
3790
  }
3705
3791
  }
@@ -3730,7 +3816,7 @@ async function transform2(ast2) {
3730
3816
  }
3731
3817
 
3732
3818
  // transform/esmodule/module-helper.ts
3733
- import * as t35 from "@babel/types";
3819
+ import * as t36 from "@babel/types";
3734
3820
 
3735
3821
  // utils/matchers/chunk.ts
3736
3822
  function chunk(id) {
@@ -3973,19 +4059,19 @@ var module_helper_default = {
3973
4059
  if (!$id.isIdentifier()) {
3974
4060
  return;
3975
4061
  }
3976
- if (importStar_default.match(t35.cloneNode(p2.node))) {
4062
+ if (importStar_default.match(t36.cloneNode(p2.node))) {
3977
4063
  $id.scope.rename($id.node.name, "__importStar");
3978
4064
  $decl.get("init").replaceWith(__importStar);
3979
- } else if (setModuleDefault_default.match(t35.cloneNode(p2.node))) {
4065
+ } else if (setModuleDefault_default.match(t36.cloneNode(p2.node))) {
3980
4066
  $id.scope.rename($id.node.name, "__setModuleDefault");
3981
4067
  $decl.get("init").replaceWith(__setModuleDefault);
3982
- } else if (importDefault_default.match(t35.cloneNode(p2.node))) {
4068
+ } else if (importDefault_default.match(t36.cloneNode(p2.node))) {
3983
4069
  $id.scope.rename($id.node.name, "__importDefault");
3984
4070
  $decl.get("init").replaceWith(__importDefault);
3985
- } else if (createBinding_default.match(t35.cloneNode(p2.node))) {
4071
+ } else if (createBinding_default.match(t36.cloneNode(p2.node))) {
3986
4072
  $id.scope.rename($id.node.name, "__createBinding");
3987
4073
  $decl.get("init").replaceWith(__createBinding);
3988
- } else if (exportStar_default.match(t35.cloneNode(p2.node))) {
4074
+ } else if (exportStar_default.match(t36.cloneNode(p2.node))) {
3989
4075
  $id.scope.rename($id.node.name, "__exportStar");
3990
4076
  $decl.get("init").replaceWith(__exportStar);
3991
4077
  } else {
@@ -4002,7 +4088,7 @@ var module_helper_default = {
4002
4088
  };
4003
4089
 
4004
4090
  // transform/esmodule/indirect-call.ts
4005
- import * as t36 from "@babel/types";
4091
+ import * as t37 from "@babel/types";
4006
4092
  var indirect_call_default = {
4007
4093
  name: "indirect-call",
4008
4094
  tags: ["unsafe"],
@@ -4010,16 +4096,16 @@ var indirect_call_default = {
4010
4096
  CallExpression: {
4011
4097
  exit($) {
4012
4098
  const { callee, arguments: args } = $.node;
4013
- if (!t36.isSequenceExpression(callee)) {
4099
+ if (!t37.isSequenceExpression(callee)) {
4014
4100
  return;
4015
4101
  }
4016
4102
  const exprs = [...callee.expressions];
4017
4103
  const func = exprs.pop();
4018
- if (!t36.isMemberExpression(func)) {
4104
+ if (!t37.isMemberExpression(func)) {
4019
4105
  return;
4020
4106
  }
4021
- if (exprs.every((expr) => t36.isPureish(expr))) {
4022
- $.replaceWith(t36.callExpression(func, args));
4107
+ if (exprs.every((expr) => t37.isPureish(expr))) {
4108
+ $.replaceWith(t37.callExpression(func, args));
4023
4109
  this.changes++;
4024
4110
  }
4025
4111
  }
@@ -4063,7 +4149,7 @@ function transform3(ast2) {
4063
4149
  }
4064
4150
 
4065
4151
  // transform/syntactic/template-literal.ts
4066
- import * as t37 from "@babel/types";
4152
+ import * as t38 from "@babel/types";
4067
4153
  var escape = function(string) {
4068
4154
  return string.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("$", "\\$").replaceAll("\t", "\\t").replaceAll("\r", "\\r").replaceAll("\0", "\\0");
4069
4155
  };
@@ -4086,10 +4172,10 @@ var template_literal_default = {
4086
4172
  if (!last) {
4087
4173
  throw new Error("Unexpected empty template literal");
4088
4174
  }
4089
- $left.node.quasis.push(t37.templateElement({
4175
+ $left.node.quasis.push(t38.templateElement({
4090
4176
  raw: last.value.raw + $right.node.quasis[0].value.raw
4091
4177
  }, false), ...$right.node.quasis.slice(1));
4092
- $.replaceWith(t37.templateLiteral([
4178
+ $.replaceWith(t38.templateLiteral([
4093
4179
  ...$left.node.quasis
4094
4180
  ], [
4095
4181
  ...$left.node.expressions,
@@ -4100,17 +4186,17 @@ var template_literal_default = {
4100
4186
  if (!last) {
4101
4187
  throw new Error("Unexpected empty template literal");
4102
4188
  }
4103
- $left.node.quasis.push(t37.templateElement({
4189
+ $left.node.quasis.push(t38.templateElement({
4104
4190
  raw: escape(last.value.raw + $right.node.value)
4105
4191
  }, true));
4106
4192
  $.replaceWith($left.node);
4107
4193
  } else {
4108
- $.replaceWith(t37.templateLiteral([
4194
+ $.replaceWith(t38.templateLiteral([
4109
4195
  ...$left.node.quasis.map((element) => {
4110
4196
  element.tail = false;
4111
4197
  return element;
4112
4198
  }),
4113
- t37.templateElement({ raw: "" }, true)
4199
+ t38.templateElement({ raw: "" }, true)
4114
4200
  ], [
4115
4201
  ...$left.node.expressions,
4116
4202
  $right.node
@@ -4124,9 +4210,9 @@ var template_literal_default = {
4124
4210
  if ($right.isCallExpression() && $right.get("callee").isFunctionExpression()) {
4125
4211
  return;
4126
4212
  }
4127
- $.replaceWith(t37.templateLiteral([
4128
- t37.templateElement({ raw: escape($left.node.value) }, false),
4129
- t37.templateElement({ raw: "" }, true)
4213
+ $.replaceWith(t38.templateLiteral([
4214
+ t38.templateElement({ raw: escape($left.node.value) }, false),
4215
+ t38.templateElement({ raw: "" }, true)
4130
4216
  ], [
4131
4217
  $right.node
4132
4218
  ]));
@@ -4145,7 +4231,7 @@ function transform4(ast2) {
4145
4231
  return ast2;
4146
4232
  }
4147
4233
 
4148
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/index.ts
4234
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/index.ts
4149
4235
  var exports_transforms2 = {};
4150
4236
  __export(exports_transforms2, {
4151
4237
  templateLiterals: () => {
@@ -4172,11 +4258,73 @@ __export(exports_transforms2, {
4172
4258
  {
4173
4259
  return logical_assignments_default;
4174
4260
  }
4261
+ },
4262
+ defaultParameters: () => {
4263
+ {
4264
+ return default_parameters_default;
4265
+ }
4175
4266
  }
4176
4267
  });
4177
4268
 
4178
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/logical-assignments.ts
4179
- import * as t38 from "@babel/types";
4269
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/default-parameters.ts
4270
+ import * as t39 from "@babel/types";
4271
+ var default_parameters_default = {
4272
+ name: "default-parameters",
4273
+ tags: ["safe"],
4274
+ scope: true,
4275
+ visitor() {
4276
+ const defaultExpression = capture(anyExpression());
4277
+ const index = capture(numericLiteral());
4278
+ const varName = capture(identifier());
4279
+ const defaultParam = variableDeclaration(undefined, [
4280
+ variableDeclarator(varName, conditionalExpression(logicalExpression("&&", binaryExpression(">", constMemberExpression("arguments", "length"), index), binaryExpression("!==", memberExpression(identifier("arguments"), fromCapture(index), true), identifier("undefined"))), memberExpression(identifier("arguments"), fromCapture(index), true), defaultExpression))
4281
+ ]);
4282
+ const defaultParamLoose = ifStatement(binaryExpression("===", varName, identifier("undefined")), blockStatement([
4283
+ expressionStatement(assignmentExpression("=", fromCapture(varName), defaultExpression))
4284
+ ]));
4285
+ const normalParam = variableDeclaration(undefined, [
4286
+ variableDeclarator(varName, conditionalExpression(binaryExpression(">", constMemberExpression("arguments", "length"), index), memberExpression(identifier("arguments"), fromCapture(index), true), identifier("undefined")))
4287
+ ]);
4288
+ return {
4289
+ VariableDeclaration: {
4290
+ exit(path) {
4291
+ const fn = path.parentPath.parent;
4292
+ if (!t39.isFunction(fn) || path.key !== 0)
4293
+ return;
4294
+ if (defaultParam.match(path.node)) {
4295
+ fn.params[index.current.value] = t39.assignmentPattern(varName.current, defaultExpression.current);
4296
+ path.remove();
4297
+ this.changes++;
4298
+ } else if (normalParam.match(path.node)) {
4299
+ fn.params[index.current.value] = varName.current;
4300
+ path.remove();
4301
+ this.changes++;
4302
+ }
4303
+ }
4304
+ },
4305
+ IfStatement: {
4306
+ exit(path) {
4307
+ const fn = path.parentPath.parent;
4308
+ if (!t39.isFunction(fn) || path.key !== 0)
4309
+ return;
4310
+ if (!defaultParamLoose.match(path.node))
4311
+ return;
4312
+ const binding = path.scope.getOwnBinding(varName.current.name);
4313
+ if (!binding)
4314
+ return;
4315
+ const isFunctionParam = binding.path.listKey === "params" && binding.path.parent === fn;
4316
+ if (!isFunctionParam)
4317
+ return;
4318
+ binding.path.replaceWith(t39.assignmentPattern(varName.current, defaultExpression.current));
4319
+ path.remove();
4320
+ this.changes++;
4321
+ }
4322
+ }
4323
+ };
4324
+ }
4325
+ };
4326
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/logical-assignments.ts
4327
+ import * as t40 from "@babel/types";
4180
4328
  var logical_assignments_default = {
4181
4329
  name: "logical-assignments",
4182
4330
  tags: ["safe"],
@@ -4198,7 +4346,7 @@ var logical_assignments_default = {
4198
4346
  LogicalExpression: {
4199
4347
  exit(path) {
4200
4348
  if (idMatcher.match(path.node)) {
4201
- path.replaceWith(t38.assignmentExpression(operator.current + "=", left.current, right.current));
4349
+ path.replaceWith(t40.assignmentExpression(operator.current + "=", left.current, right.current));
4202
4350
  this.changes++;
4203
4351
  } else if (memberMatcher.match(path.node)) {
4204
4352
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4206,14 +4354,14 @@ var logical_assignments_default = {
4206
4354
  return;
4207
4355
  binding.path.remove();
4208
4356
  member.current.object = object.current;
4209
- path.replaceWith(t38.assignmentExpression(operator.current + "=", member.current, right.current));
4357
+ path.replaceWith(t40.assignmentExpression(operator.current + "=", member.current, right.current));
4210
4358
  this.changes++;
4211
4359
  } else if (computedMemberMatcher.match(path.node)) {
4212
4360
  const binding = path.scope.getBinding(tmpVar.current.name);
4213
4361
  if (!isTemporaryVariable(binding, 1))
4214
4362
  return;
4215
4363
  binding.path.remove();
4216
- path.replaceWith(t38.assignmentExpression(operator.current + "=", t38.memberExpression(object.current, property.current, true), right.current));
4364
+ path.replaceWith(t40.assignmentExpression(operator.current + "=", t40.memberExpression(object.current, property.current, true), right.current));
4217
4365
  this.changes++;
4218
4366
  } else if (multiComputedMemberMatcher.match(path.node)) {
4219
4367
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4222,7 +4370,7 @@ var logical_assignments_default = {
4222
4370
  return;
4223
4371
  binding.path.remove();
4224
4372
  binding2.path.remove();
4225
- path.replaceWith(t38.assignmentExpression(operator.current + "=", t38.memberExpression(object.current, property.current, true), right.current));
4373
+ path.replaceWith(t40.assignmentExpression(operator.current + "=", t40.memberExpression(object.current, property.current, true), right.current));
4226
4374
  this.changes++;
4227
4375
  }
4228
4376
  }
@@ -4230,8 +4378,8 @@ var logical_assignments_default = {
4230
4378
  };
4231
4379
  }
4232
4380
  };
4233
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/nullish-coalescing.ts
4234
- import * as t39 from "@babel/types";
4381
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/nullish-coalescing.ts
4382
+ import * as t41 from "@babel/types";
4235
4383
  var nullish_coalescing_default = {
4236
4384
  name: "nullish-coalescing",
4237
4385
  tags: ["safe"],
@@ -4250,11 +4398,11 @@ var nullish_coalescing_default = {
4250
4398
  if (idMatcher.match(path.node)) {
4251
4399
  const binding = path.scope.getBinding(tmpVar.current.name);
4252
4400
  if (iifeMatcher.match(path.parentPath.parent) && isTemporaryVariable(binding, 2, "param")) {
4253
- path.parentPath.parentPath.replaceWith(t39.logicalExpression("??", left.current, right.current));
4401
+ path.parentPath.parentPath.replaceWith(t41.logicalExpression("??", left.current, right.current));
4254
4402
  this.changes++;
4255
4403
  } else if (isTemporaryVariable(binding, 2, "var")) {
4256
4404
  binding.path.remove();
4257
- path.replaceWith(t39.logicalExpression("??", left.current, right.current));
4405
+ path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4258
4406
  this.changes++;
4259
4407
  }
4260
4408
  } else if (idLooseMatcher.match(path.node)) {
@@ -4262,10 +4410,10 @@ var nullish_coalescing_default = {
4262
4410
  if (!isTemporaryVariable(binding, 1))
4263
4411
  return;
4264
4412
  binding.path.remove();
4265
- path.replaceWith(t39.logicalExpression("??", left.current, right.current));
4413
+ path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4266
4414
  this.changes++;
4267
4415
  } else if (simpleIdMatcher.match(path.node)) {
4268
- path.replaceWith(t39.logicalExpression("??", left.current, right.current));
4416
+ path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4269
4417
  this.changes++;
4270
4418
  }
4271
4419
  }
@@ -4273,8 +4421,8 @@ var nullish_coalescing_default = {
4273
4421
  };
4274
4422
  }
4275
4423
  };
4276
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/nullish-coalescing-assignment.ts
4277
- import * as t40 from "@babel/types";
4424
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/nullish-coalescing-assignment.ts
4425
+ import * as t42 from "@babel/types";
4278
4426
  var nullish_coalescing_assignment_default = {
4279
4427
  name: "nullish-coalescing-assignment",
4280
4428
  tags: ["safe"],
@@ -4296,10 +4444,10 @@ var nullish_coalescing_assignment_default = {
4296
4444
  if (!isTemporaryVariable(binding, 1))
4297
4445
  return;
4298
4446
  binding.path.remove();
4299
- path.replaceWith(t40.assignmentExpression("??=", t40.memberExpression(leftId.current, property.current, computed.current), right.current));
4447
+ path.replaceWith(t42.assignmentExpression("??=", t42.memberExpression(leftId.current, property.current, computed.current), right.current));
4300
4448
  this.changes++;
4301
4449
  } else if (simpleMatcher.match(path.node)) {
4302
- path.replaceWith(t40.assignmentExpression("??=", left.current, right.current));
4450
+ path.replaceWith(t42.assignmentExpression("??=", left.current, right.current));
4303
4451
  this.changes++;
4304
4452
  }
4305
4453
  }
@@ -4307,8 +4455,8 @@ var nullish_coalescing_assignment_default = {
4307
4455
  };
4308
4456
  }
4309
4457
  };
4310
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/optional-chaining.ts
4311
- import * as t41 from "@babel/types";
4458
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/optional-chaining.ts
4459
+ import * as t43 from "@babel/types";
4312
4460
  var optional_chaining_default = {
4313
4461
  name: "optional-chaining",
4314
4462
  tags: ["safe"],
@@ -4325,7 +4473,7 @@ var optional_chaining_default = {
4325
4473
  exit(path) {
4326
4474
  if (simpleMatcher.match(path.node)) {
4327
4475
  member.current.optional = true;
4328
- path.replaceWith(t41.optionalMemberExpression(object.current, member.current.property, member.current.computed, true));
4476
+ path.replaceWith(t43.optionalMemberExpression(object.current, member.current.property, member.current.computed, true));
4329
4477
  this.changes++;
4330
4478
  } else if (tmpMatcher.match(path.node)) {
4331
4479
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4333,7 +4481,7 @@ var optional_chaining_default = {
4333
4481
  return;
4334
4482
  binding.path.remove();
4335
4483
  tmpMember.current.optional = true;
4336
- path.replaceWith(t41.optionalMemberExpression(object.current, tmpMember.current.property, tmpMember.current.computed, true));
4484
+ path.replaceWith(t43.optionalMemberExpression(object.current, tmpMember.current.property, tmpMember.current.computed, true));
4337
4485
  this.changes++;
4338
4486
  }
4339
4487
  }
@@ -4341,10 +4489,10 @@ var optional_chaining_default = {
4341
4489
  };
4342
4490
  }
4343
4491
  };
4344
- // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=fdf21377287e6b492_xddbf4nx3djzgode7pjz2czwiu/node_modules/webcrack/src/transpile/transforms/template-literals.ts
4345
- import * as t42 from "@babel/types";
4492
+ // node_modules/.pnpm/@gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages@webcrack&commit=2d889c69be4f81f22_hut4b5c3cvdgfjwghbkzhriirq/node_modules/webcrack/src/transpile/transforms/template-literals.ts
4493
+ import * as t44 from "@babel/types";
4346
4494
  var escape2 = function(str) {
4347
- return str.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$/g, "\\$").replace(/\t/g, "\\t").replace(/\r/g, "\\r");
4495
+ return str.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("$", "\\$").replaceAll("\0", "\\0").replaceAll("\b", "\\b").replaceAll("\f", "\\f").replaceAll("\r", "\\r").replaceAll("\t", "\\t").replaceAll("\v", "\\v");
4348
4496
  };
4349
4497
  var push = function(template9, value) {
4350
4498
  if (value.type === "StringLiteral") {
@@ -4358,7 +4506,7 @@ var push = function(template9, value) {
4358
4506
  template9.quasis.push(...value.quasis.slice(1));
4359
4507
  } else {
4360
4508
  template9.expressions.push(value);
4361
- template9.quasis.push(t42.templateElement({ raw: "" }));
4509
+ template9.quasis.push(t44.templateElement({ raw: "" }));
4362
4510
  }
4363
4511
  };
4364
4512
  var unshift = function(template9, value) {
@@ -4372,7 +4520,7 @@ var unshift = function(template9, value) {
4372
4520
  template9.quasis.unshift(...value.quasis.slice(0, -1));
4373
4521
  } else {
4374
4522
  template9.expressions.unshift(value);
4375
- template9.quasis.unshift(t42.templateElement({ raw: "" }));
4523
+ template9.quasis.unshift(t44.templateElement({ raw: "" }));
4376
4524
  }
4377
4525
  };
4378
4526
  var template_literals_default = {
@@ -4385,11 +4533,11 @@ var template_literals_default = {
4385
4533
  exit(path) {
4386
4534
  if (path.node.operator !== "+")
4387
4535
  return;
4388
- if (t42.isTemplateLiteral(path.node.left)) {
4536
+ if (t44.isTemplateLiteral(path.node.left)) {
4389
4537
  push(path.node.left, path.node.right);
4390
4538
  path.replaceWith(path.node.left);
4391
4539
  this.changes++;
4392
- } else if (t42.isTemplateLiteral(path.node.right) && t42.isExpression(path.node.left)) {
4540
+ } else if (t44.isTemplateLiteral(path.node.right) && t44.isExpression(path.node.left)) {
4393
4541
  unshift(path.node.right, path.node.left);
4394
4542
  path.replaceWith(path.node.right);
4395
4543
  this.changes++;
@@ -4399,7 +4547,7 @@ var template_literals_default = {
4399
4547
  CallExpression: {
4400
4548
  exit(path) {
4401
4549
  if (concatMatcher.match(path.node) && !concatMatcher.match(path.parentPath.parent)) {
4402
- const template9 = t42.templateLiteral([t42.templateElement({ raw: "" })], []);
4550
+ const template9 = t44.templateLiteral([t44.templateElement({ raw: "" })], []);
4403
4551
  let current = path.node;
4404
4552
  while (current.type === "CallExpression") {
4405
4553
  for (const arg of current.arguments.reverse()) {
@@ -4425,7 +4573,7 @@ var transpile_default = mergeTransforms({
4425
4573
 
4426
4574
  // transform/delance/stringaes.ts
4427
4575
  import traverse14 from "@babel/traverse";
4428
- import * as t43 from "@babel/types";
4576
+ import * as t45 from "@babel/types";
4429
4577
 
4430
4578
  // utils/crypto.ts
4431
4579
  import crypto from "node:crypto";
@@ -4528,7 +4676,7 @@ var stringaes_default = {
4528
4676
  $id.assertIdentifier();
4529
4677
  const $string = $.get("arguments")[0];
4530
4678
  $string.assertStringLiteral();
4531
- $.replaceWith(t43.stringLiteral(decrypt($string.node.value)));
4679
+ $.replaceWith(t45.stringLiteral(decrypt($string.node.value)));
4532
4680
  this.changes++;
4533
4681
  }
4534
4682
  }
@@ -4537,7 +4685,7 @@ var stringaes_default = {
4537
4685
  };
4538
4686
 
4539
4687
  // transform/delance/antifeature.ts
4540
- import * as t44 from "@babel/types";
4688
+ import * as t46 from "@babel/types";
4541
4689
  import tmpl6 from "@babel/template";
4542
4690
  var entry = capture(numericLiteral());
4543
4691
  var main = callExpression(memberExpression(callExpression(identifier("require"), [entry]), identifier("main"), false), [booleanLiteral(true)]);
@@ -4552,7 +4700,7 @@ var antifeature_default = {
4552
4700
  if (!main.match($.node)) {
4553
4701
  return;
4554
4702
  }
4555
- t44.assertNumericLiteral(entry.current);
4703
+ t46.assertNumericLiteral(entry.current);
4556
4704
  const _target = $.find((p2) => chunk_default.match(p2.node));
4557
4705
  if (!_target) {
4558
4706
  throw new Error("Could not find module chunk");