@elizaos/config 1.7.1-alpha.2 → 1.7.1-alpha.4

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 (2) hide show
  1. package/dist/index.js +627 -510
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7625,7 +7625,7 @@ var require_Referencer = __commonJS((exports) => {
7625
7625
  this.visitForIn(node);
7626
7626
  }
7627
7627
  ForStatement(node) {
7628
- if (node.init && node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && node.init.kind !== "var") {
7628
+ if (node.init?.type === types_1.AST_NODE_TYPES.VariableDeclaration && node.init.kind !== "var") {
7629
7629
  this.scopeManager.nestForScope(node);
7630
7630
  }
7631
7631
  this.visitChildren(node);
@@ -179888,7 +179888,12 @@ var require_getParsedConfigFile = __commonJS((exports) => {
179888
179888
  useCaseSensitiveFileNames: tsserver.sys.useCaseSensitiveFileNames
179889
179889
  });
179890
179890
  if (parsed?.errors.length) {
179891
- throw new Error(formatDiagnostics(parsed.errors));
179891
+ throw new Error([
179892
+ "Unable to parse the specified 'tsconfig' file. Ensure it's correct and has valid syntax.",
179893
+ formatDiagnostics(parsed.errors)
179894
+ ].join(`
179895
+
179896
+ `));
179892
179897
  }
179893
179898
  return parsed;
179894
179899
  function getCurrentDirectory() {
@@ -183830,7 +183835,7 @@ var require_convert = __commonJS((exports) => {
183830
183835
  this.#checkForStatementDeclaration(node.initializer, node.kind);
183831
183836
  return this.createNode(node, {
183832
183837
  type: ts_estree_1.AST_NODE_TYPES.ForOfStatement,
183833
- await: Boolean(node.awaitModifier && node.awaitModifier.kind === SyntaxKind.AwaitKeyword),
183838
+ await: node.awaitModifier?.kind === SyntaxKind.AwaitKeyword,
183834
183839
  body: this.convertChild(node.statement),
183835
183840
  left: this.convertPattern(node.initializer),
183836
183841
  right: this.convertChild(node.expression)
@@ -183866,77 +183871,73 @@ var require_convert = __commonJS((exports) => {
183866
183871
  return this.fixExports(node, result);
183867
183872
  }
183868
183873
  case SyntaxKind.VariableDeclaration: {
183869
- const definite = !!node.exclamationToken;
183870
- if (definite) {
183874
+ const hasExclamationToken = !!node.exclamationToken;
183875
+ if (hasExclamationToken) {
183871
183876
  if (node.initializer) {
183872
183877
  this.#throwError(node, "Declarations with initializers cannot also have definite assignment assertions.");
183873
183878
  } else if (node.name.kind !== SyntaxKind.Identifier || !node.type) {
183874
183879
  this.#throwError(node, "Declarations with definite assignment assertions must also have type annotations.");
183875
183880
  }
183876
183881
  }
183882
+ if (node.parent.kind === SyntaxKind.VariableDeclarationList) {
183883
+ const variableDeclarationList = node.parent;
183884
+ const kind = (0, node_utils_1.getDeclarationKind)(variableDeclarationList);
183885
+ if ((variableDeclarationList.parent.kind === SyntaxKind.ForInStatement || variableDeclarationList.parent.kind === SyntaxKind.ForStatement) && (kind === "using" || kind === "await using")) {
183886
+ if (!node.initializer) {
183887
+ this.#throwError(node, `'${kind}' declarations may not be initialized in for statement.`);
183888
+ }
183889
+ if (node.name.kind !== SyntaxKind.Identifier) {
183890
+ this.#throwError(node.name, `'${kind}' declarations may not have binding patterns.`);
183891
+ }
183892
+ }
183893
+ if (variableDeclarationList.parent.kind === SyntaxKind.VariableStatement) {
183894
+ const variableStatement = variableDeclarationList.parent;
183895
+ if (kind === "using" || kind === "await using") {
183896
+ if (!node.initializer) {
183897
+ this.#throwError(node, `'${kind}' declarations must be initialized.`);
183898
+ }
183899
+ if (node.name.kind !== SyntaxKind.Identifier) {
183900
+ this.#throwError(node.name, `'${kind}' declarations may not have binding patterns.`);
183901
+ }
183902
+ }
183903
+ const hasDeclareKeyword = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, variableStatement);
183904
+ if ((hasDeclareKeyword || ["await using", "const", "using"].includes(kind)) && hasExclamationToken) {
183905
+ this.#throwError(node, `A definite assignment assertion '!' is not permitted in this context.`);
183906
+ }
183907
+ if (hasDeclareKeyword && node.initializer && (["let", "var"].includes(kind) || node.type)) {
183908
+ this.#throwError(node, `Initializers are not permitted in ambient contexts.`);
183909
+ }
183910
+ }
183911
+ }
183877
183912
  const init = this.convertChild(node.initializer);
183878
183913
  const id = this.convertBindingNameWithTypeAnnotation(node.name, node.type, node);
183879
183914
  return this.createNode(node, {
183880
183915
  type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator,
183881
- definite,
183916
+ definite: hasExclamationToken,
183882
183917
  id,
183883
183918
  init
183884
183919
  });
183885
183920
  }
183886
183921
  case SyntaxKind.VariableStatement: {
183922
+ const declarations = node.declarationList.declarations;
183923
+ if (!declarations.length) {
183924
+ this.#throwError(node, "A variable declaration list must have at least one variable declarator.");
183925
+ }
183887
183926
  const result = this.createNode(node, {
183888
183927
  type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration,
183889
- declarations: this.convertChildren(node.declarationList.declarations),
183928
+ declarations: this.convertChildren(declarations),
183890
183929
  declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node),
183891
183930
  kind: (0, node_utils_1.getDeclarationKind)(node.declarationList)
183892
183931
  });
183893
- if (!result.declarations.length) {
183894
- this.#throwError(node, "A variable declaration list must have at least one variable declarator.");
183895
- }
183896
- if (result.kind === "using" || result.kind === "await using") {
183897
- node.declarationList.declarations.forEach((declaration, i) => {
183898
- if (result.declarations[i].init == null) {
183899
- this.#throwError(declaration, `'${result.kind}' declarations must be initialized.`);
183900
- }
183901
- if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
183902
- this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
183903
- }
183904
- });
183905
- }
183906
- if (result.declare || ["await using", "const", "using"].includes(result.kind)) {
183907
- node.declarationList.declarations.forEach((declaration, i) => {
183908
- if (result.declarations[i].definite) {
183909
- this.#throwError(declaration, `A definite assignment assertion '!' is not permitted in this context.`);
183910
- }
183911
- });
183912
- }
183913
- if (result.declare) {
183914
- node.declarationList.declarations.forEach((declaration, i) => {
183915
- if (result.declarations[i].init && (["let", "var"].includes(result.kind) || result.declarations[i].id.typeAnnotation)) {
183916
- this.#throwError(declaration, `Initializers are not permitted in ambient contexts.`);
183917
- }
183918
- });
183919
- }
183920
183932
  return this.fixExports(node, result);
183921
183933
  }
183922
183934
  case SyntaxKind.VariableDeclarationList: {
183923
- const result = this.createNode(node, {
183935
+ return this.createNode(node, {
183924
183936
  type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration,
183925
183937
  declarations: this.convertChildren(node.declarations),
183926
183938
  declare: false,
183927
183939
  kind: (0, node_utils_1.getDeclarationKind)(node)
183928
183940
  });
183929
- if (result.kind === "using" || result.kind === "await using") {
183930
- node.declarations.forEach((declaration, i) => {
183931
- if (result.declarations[i].init != null) {
183932
- this.#throwError(declaration, `'${result.kind}' declarations may not be initialized in for statement.`);
183933
- }
183934
- if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
183935
- this.#throwError(declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
183936
- }
183937
- });
183938
- }
183939
- return result;
183940
183941
  }
183941
183942
  case SyntaxKind.ExpressionStatement:
183942
183943
  return this.createNode(node, {
@@ -184272,7 +184273,7 @@ var require_convert = __commonJS((exports) => {
184272
184273
  } else {
184273
184274
  result = this.createNode(node, {
184274
184275
  type: ts_estree_1.AST_NODE_TYPES.Property,
184275
- computed: Boolean(node.propertyName && node.propertyName.kind === SyntaxKind.ComputedPropertyName),
184276
+ computed: node.propertyName?.kind === SyntaxKind.ComputedPropertyName,
184276
184277
  key: this.convertChild(node.propertyName ?? node.name),
184277
184278
  kind: "init",
184278
184279
  method: false,
@@ -191131,7 +191132,7 @@ var require_resolveProjectList = __commonJS((exports) => {
191131
191132
  var require_package2 = __commonJS((exports, module) => {
191132
191133
  module.exports = {
191133
191134
  name: "@typescript-eslint/typescript-estree",
191134
- version: "8.50.1",
191135
+ version: "8.51.0",
191135
191136
  description: "A parser that converts TypeScript source code into an ESTree compatible form",
191136
191137
  files: [
191137
191138
  "dist",
@@ -191183,15 +191184,15 @@ var require_package2 = __commonJS((exports, module) => {
191183
191184
  typecheck: "yarn run -BT nx typecheck"
191184
191185
  },
191185
191186
  dependencies: {
191186
- "@typescript-eslint/project-service": "8.50.1",
191187
- "@typescript-eslint/tsconfig-utils": "8.50.1",
191188
- "@typescript-eslint/types": "8.50.1",
191189
- "@typescript-eslint/visitor-keys": "8.50.1",
191187
+ "@typescript-eslint/project-service": "8.51.0",
191188
+ "@typescript-eslint/tsconfig-utils": "8.51.0",
191189
+ "@typescript-eslint/types": "8.51.0",
191190
+ "@typescript-eslint/visitor-keys": "8.51.0",
191190
191191
  debug: "^4.3.4",
191191
191192
  minimatch: "^9.0.4",
191192
191193
  semver: "^7.6.0",
191193
191194
  tinyglobby: "^0.2.15",
191194
- "ts-api-utils": "^2.1.0"
191195
+ "ts-api-utils": "^2.2.0"
191195
191196
  },
191196
191197
  devDependencies: {
191197
191198
  "@vitest/coverage-v8": "^3.1.3",
@@ -193587,7 +193588,7 @@ var require_parser2 = __commonJS((exports) => {
193587
193588
  var require_package3 = __commonJS((exports, module) => {
193588
193589
  module.exports = {
193589
193590
  name: "@typescript-eslint/parser",
193590
- version: "8.50.1",
193591
+ version: "8.51.0",
193591
193592
  description: "An ESLint custom parser which leverages TypeScript ESTree",
193592
193593
  files: [
193593
193594
  "dist",
@@ -193638,10 +193639,10 @@ var require_package3 = __commonJS((exports, module) => {
193638
193639
  typescript: ">=4.8.4 <6.0.0"
193639
193640
  },
193640
193641
  dependencies: {
193641
- "@typescript-eslint/scope-manager": "8.50.1",
193642
- "@typescript-eslint/types": "8.50.1",
193643
- "@typescript-eslint/typescript-estree": "8.50.1",
193644
- "@typescript-eslint/visitor-keys": "8.50.1",
193642
+ "@typescript-eslint/scope-manager": "8.51.0",
193643
+ "@typescript-eslint/types": "8.51.0",
193644
+ "@typescript-eslint/typescript-estree": "8.51.0",
193645
+ "@typescript-eslint/visitor-keys": "8.51.0",
193645
193646
  debug: "^4.3.4"
193646
193647
  },
193647
193648
  devDependencies: {
@@ -195641,7 +195642,7 @@ var require_eslint_utils = __commonJS((exports) => {
195641
195642
  const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
195642
195643
  start = arrowToken.loc.start;
195643
195644
  end = arrowToken.loc.end;
195644
- } else if (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition") {
195645
+ } else if (parent && (parent.type === "Property" || parent.type === "MethodDefinition" || parent.type === "PropertyDefinition")) {
195645
195646
  start = parent.loc.start;
195646
195647
  end = getOpeningParenOfParams(node, sourceCode).loc.start;
195647
195648
  } else {
@@ -196312,6 +196313,9 @@ var require_eslint_utils = __commonJS((exports) => {
196312
196313
  }
196313
196314
  function getFunctionNameWithKind(node, sourceCode) {
196314
196315
  const parent = node.parent;
196316
+ if (!parent) {
196317
+ return "";
196318
+ }
196315
196319
  const tokens = [];
196316
196320
  const isObjectMethod = parent.type === "Property" && parent.value === node;
196317
196321
  const isClassMethod = parent.type === "MethodDefinition" && parent.value === node;
@@ -196502,6 +196506,9 @@ var require_eslint_utils = __commonJS((exports) => {
196502
196506
  }
196503
196507
  function getParentSyntaxParen(node, sourceCode) {
196504
196508
  const parent = node.parent;
196509
+ if (!parent) {
196510
+ return null;
196511
+ }
196505
196512
  switch (parent.type) {
196506
196513
  case "CallExpression":
196507
196514
  case "NewExpression":
@@ -196816,6 +196823,9 @@ var require_eslint_utils = __commonJS((exports) => {
196816
196823
  node = node.parent;
196817
196824
  }
196818
196825
  const parent = node.parent;
196826
+ if (!parent) {
196827
+ return;
196828
+ }
196819
196829
  if (parent.type === "MemberExpression") {
196820
196830
  if (parent.object === node) {
196821
196831
  const key = getPropertyName(parent);
@@ -197625,7 +197635,7 @@ var require_RuleCreator = __commonJS((exports) => {
197625
197635
  var applyDefault_1 = require_applyDefault();
197626
197636
  function RuleCreator(urlCreator) {
197627
197637
  return function createNamedRule({ meta, name, ...rule }) {
197628
- return createRule({
197638
+ const ruleWithDocs = createRule({
197629
197639
  meta: {
197630
197640
  ...meta,
197631
197641
  docs: {
@@ -197633,18 +197643,21 @@ var require_RuleCreator = __commonJS((exports) => {
197633
197643
  url: urlCreator(name)
197634
197644
  }
197635
197645
  },
197646
+ name,
197636
197647
  ...rule
197637
197648
  });
197649
+ return ruleWithDocs;
197638
197650
  };
197639
197651
  }
197640
- function createRule({ create, defaultOptions, meta }) {
197652
+ function createRule({ create, defaultOptions, meta, name }) {
197641
197653
  return {
197642
197654
  create(context) {
197643
197655
  const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options);
197644
197656
  return create(context, optionsWithDefault);
197645
197657
  },
197646
197658
  defaultOptions,
197647
- meta
197659
+ meta,
197660
+ name
197648
197661
  };
197649
197662
  }
197650
197663
  RuleCreator.withoutDocs = function withoutDocs(args) {
@@ -275171,12 +275184,11 @@ var require_esquery_min = __commonJS((exports, module) => {
275171
275184
  (function(e, t) {
275172
275185
  typeof exports == "object" && typeof module != "undefined" ? module.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = e || self).esquery = t();
275173
275186
  })(exports, function() {
275174
- function e(t2) {
275175
- return (e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e2) {
275176
- return typeof e2;
275177
- } : function(e2) {
275178
- return e2 && typeof Symbol == "function" && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2;
275179
- })(t2);
275187
+ function e(e2, t2) {
275188
+ (t2 == null || t2 > e2.length) && (t2 = e2.length);
275189
+ for (var r2 = 0, n2 = Array(t2);r2 < t2; r2++)
275190
+ n2[r2] = e2[r2];
275191
+ return n2;
275180
275192
  }
275181
275193
  function t(e2, t2) {
275182
275194
  return function(e3) {
@@ -275207,36 +275219,37 @@ var require_esquery_min = __commonJS((exports, module) => {
275207
275219
  }
275208
275220
  return s2;
275209
275221
  }
275210
- }(e2, t2) || n(e2, t2) || function() {
275222
+ }(e2, t2) || o(e2, t2) || function() {
275211
275223
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
275212
275224
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
275213
275225
  }();
275214
275226
  }
275215
- function r(e2) {
275216
- return function(e3) {
275217
- if (Array.isArray(e3))
275218
- return o(e3);
275219
- }(e2) || function(e3) {
275220
- if (typeof Symbol != "undefined" && e3[Symbol.iterator] != null || e3["@@iterator"] != null)
275221
- return Array.from(e3);
275222
- }(e2) || n(e2) || function() {
275227
+ function r(t2) {
275228
+ return function(t3) {
275229
+ if (Array.isArray(t3))
275230
+ return e(t3);
275231
+ }(t2) || function(e2) {
275232
+ if (typeof Symbol != "undefined" && e2[Symbol.iterator] != null || e2["@@iterator"] != null)
275233
+ return Array.from(e2);
275234
+ }(t2) || o(t2) || function() {
275223
275235
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
275224
275236
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
275225
275237
  }();
275226
275238
  }
275227
- function n(e2, t2) {
275228
- if (e2) {
275229
- if (typeof e2 == "string")
275230
- return o(e2, t2);
275231
- var r2 = Object.prototype.toString.call(e2).slice(8, -1);
275232
- return r2 === "Object" && e2.constructor && (r2 = e2.constructor.name), r2 === "Map" || r2 === "Set" ? Array.from(e2) : r2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r2) ? o(e2, t2) : undefined;
275233
- }
275239
+ function n(e2) {
275240
+ return (n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e3) {
275241
+ return typeof e3;
275242
+ } : function(e3) {
275243
+ return e3 && typeof Symbol == "function" && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
275244
+ })(e2);
275234
275245
  }
275235
- function o(e2, t2) {
275236
- (t2 == null || t2 > e2.length) && (t2 = e2.length);
275237
- for (var r2 = 0, n2 = new Array(t2);r2 < t2; r2++)
275238
- n2[r2] = e2[r2];
275239
- return n2;
275246
+ function o(t2, r2) {
275247
+ if (t2) {
275248
+ if (typeof t2 == "string")
275249
+ return e(t2, r2);
275250
+ var n2 = {}.toString.call(t2).slice(8, -1);
275251
+ return n2 === "Object" && t2.constructor && (n2 = t2.constructor.name), n2 === "Map" || n2 === "Set" ? Array.from(t2) : n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? e(t2, r2) : undefined;
275252
+ }
275240
275253
  }
275241
275254
  typeof globalThis != "undefined" || typeof window != "undefined" || typeof global != "undefined" && global;
275242
275255
  function a(e2, t2) {
@@ -275264,13 +275277,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275264
275277
  function h2(e3, t4) {
275265
275278
  return (e3 === r2.ObjectExpression || e3 === r2.ObjectPattern) && t4 === "properties";
275266
275279
  }
275267
- function y2(e3, t4) {
275280
+ function d2(e3, t4) {
275268
275281
  for (var r3 = e3.length - 1;r3 >= 0; --r3)
275269
275282
  if (e3[r3].node === t4)
275270
275283
  return true;
275271
275284
  return false;
275272
275285
  }
275273
- function d2(e3, t4) {
275286
+ function y2(e3, t4) {
275274
275287
  return new f2().traverse(e3, t4);
275275
275288
  }
275276
275289
  function m2(e3, t4) {
@@ -275325,7 +275338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275325
275338
  }, f2.prototype.__initialize = function(e3, t4) {
275326
275339
  this.visitor = t4, this.root = e3, this.__worklist = [], this.__leavelist = [], this.__current = null, this.__state = null, this.__fallback = null, t4.fallback === "iteration" ? this.__fallback = Object.keys : typeof t4.fallback == "function" && (this.__fallback = t4.fallback), this.__keys = o2, t4.keys && (this.__keys = Object.assign(Object.create(this.__keys), t4.keys));
275327
275340
  }, f2.prototype.traverse = function(e3, t4) {
275328
- var r3, n3, o3, s3, u3, l3, f3, d3, m3, x2, v2, g2;
275341
+ var r3, n3, o3, s3, u3, l3, f3, y3, m3, x2, v2, g2;
275329
275342
  for (this.__initialize(e3, t4), g2 = {}, r3 = this.__worklist, n3 = this.__leavelist, r3.push(new c2(e3, null, null, null)), n3.push(new c2(null, null, null, null));r3.length; )
275330
275343
  if ((o3 = r3.pop()) !== g2) {
275331
275344
  if (o3.node) {
@@ -275338,12 +275351,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275338
275351
  throw new Error("Unknown node type " + u3 + ".");
275339
275352
  x2 = this.__fallback(s3);
275340
275353
  }
275341
- for (d3 = x2.length;(d3 -= 1) >= 0; )
275342
- if (v2 = s3[f3 = x2[d3]]) {
275354
+ for (y3 = x2.length;(y3 -= 1) >= 0; )
275355
+ if (v2 = s3[f3 = x2[y3]]) {
275343
275356
  if (Array.isArray(v2)) {
275344
275357
  for (m3 = v2.length;(m3 -= 1) >= 0; )
275345
- if (v2[m3] && !y2(n3, v2[m3])) {
275346
- if (h2(u3, x2[d3]))
275358
+ if (v2[m3] && !d2(n3, v2[m3])) {
275359
+ if (h2(u3, x2[y3]))
275347
275360
  o3 = new c2(v2[m3], [f3, m3], "Property", null);
275348
275361
  else {
275349
275362
  if (!p2(v2[m3]))
@@ -275353,7 +275366,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275353
275366
  r3.push(o3);
275354
275367
  }
275355
275368
  } else if (p2(v2)) {
275356
- if (y2(n3, v2))
275369
+ if (d2(n3, v2))
275357
275370
  continue;
275358
275371
  r3.push(new c2(v2, f3, null, null));
275359
275372
  }
@@ -275362,7 +275375,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275362
275375
  } else if (o3 = n3.pop(), l3 = this.__execute(t4.leave, o3), this.__state === a2 || l3 === a2)
275363
275376
  return;
275364
275377
  }, f2.prototype.replace = function(e3, t4) {
275365
- var r3, n3, o3, u3, f3, y3, d3, m3, x2, v2, g2, A2, E;
275378
+ var r3, n3, o3, u3, f3, d3, y3, m3, x2, v2, g2, A2, E;
275366
275379
  function b(e4) {
275367
275380
  var t5, n4, o4, a3;
275368
275381
  if (e4.ref.remove()) {
@@ -275374,37 +275387,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275374
275387
  }
275375
275388
  }
275376
275389
  }
275377
- for (this.__initialize(e3, t4), g2 = {}, r3 = this.__worklist, n3 = this.__leavelist, y3 = new c2(e3, null, null, new l2(A2 = { root: e3 }, "root")), r3.push(y3), n3.push(y3);r3.length; )
275378
- if ((y3 = r3.pop()) !== g2) {
275379
- if ((f3 = this.__execute(t4.enter, y3)) !== undefined && f3 !== a2 && f3 !== i2 && f3 !== s2 && (y3.ref.replace(f3), y3.node = f3), this.__state !== s2 && f3 !== s2 || (b(y3), y3.node = null), this.__state === a2 || f3 === a2)
275390
+ for (this.__initialize(e3, t4), g2 = {}, r3 = this.__worklist, n3 = this.__leavelist, d3 = new c2(e3, null, null, new l2(A2 = { root: e3 }, "root")), r3.push(d3), n3.push(d3);r3.length; )
275391
+ if ((d3 = r3.pop()) !== g2) {
275392
+ if ((f3 = this.__execute(t4.enter, d3)) !== undefined && f3 !== a2 && f3 !== i2 && f3 !== s2 && (d3.ref.replace(f3), d3.node = f3), this.__state !== s2 && f3 !== s2 || (b(d3), d3.node = null), this.__state === a2 || f3 === a2)
275380
275393
  return A2.root;
275381
- if ((o3 = y3.node) && (r3.push(g2), n3.push(y3), this.__state !== i2 && f3 !== i2)) {
275382
- if (u3 = o3.type || y3.wrap, !(x2 = this.__keys[u3])) {
275394
+ if ((o3 = d3.node) && (r3.push(g2), n3.push(d3), this.__state !== i2 && f3 !== i2)) {
275395
+ if (u3 = o3.type || d3.wrap, !(x2 = this.__keys[u3])) {
275383
275396
  if (!this.__fallback)
275384
275397
  throw new Error("Unknown node type " + u3 + ".");
275385
275398
  x2 = this.__fallback(o3);
275386
275399
  }
275387
- for (d3 = x2.length;(d3 -= 1) >= 0; )
275388
- if (v2 = o3[E = x2[d3]])
275400
+ for (y3 = x2.length;(y3 -= 1) >= 0; )
275401
+ if (v2 = o3[E = x2[y3]])
275389
275402
  if (Array.isArray(v2)) {
275390
275403
  for (m3 = v2.length;(m3 -= 1) >= 0; )
275391
275404
  if (v2[m3]) {
275392
- if (h2(u3, x2[d3]))
275393
- y3 = new c2(v2[m3], [E, m3], "Property", new l2(v2, m3));
275405
+ if (h2(u3, x2[y3]))
275406
+ d3 = new c2(v2[m3], [E, m3], "Property", new l2(v2, m3));
275394
275407
  else {
275395
275408
  if (!p2(v2[m3]))
275396
275409
  continue;
275397
- y3 = new c2(v2[m3], [E, m3], null, new l2(v2, m3));
275410
+ d3 = new c2(v2[m3], [E, m3], null, new l2(v2, m3));
275398
275411
  }
275399
- r3.push(y3);
275412
+ r3.push(d3);
275400
275413
  }
275401
275414
  } else
275402
275415
  p2(v2) && r3.push(new c2(v2, E, null, new l2(o3, E)));
275403
275416
  }
275404
- } else if (y3 = n3.pop(), (f3 = this.__execute(t4.leave, y3)) !== undefined && f3 !== a2 && f3 !== i2 && f3 !== s2 && y3.ref.replace(f3), this.__state !== s2 && f3 !== s2 || b(y3), this.__state === a2 || f3 === a2)
275417
+ } else if (d3 = n3.pop(), (f3 = this.__execute(t4.leave, d3)) !== undefined && f3 !== a2 && f3 !== i2 && f3 !== s2 && d3.ref.replace(f3), this.__state !== s2 && f3 !== s2 || b(d3), this.__state === a2 || f3 === a2)
275405
275418
  return A2.root;
275406
275419
  return A2.root;
275407
- }, t3.Syntax = r2, t3.traverse = d2, t3.replace = function(e3, t4) {
275420
+ }, t3.Syntax = r2, t3.traverse = y2, t3.replace = function(e3, t4) {
275408
275421
  return new f2().replace(e3, t4);
275409
275422
  }, t3.attachComments = function(e3, t4, r3) {
275410
275423
  var o3, a3, i3, s3, l3 = [];
@@ -275420,11 +275433,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275420
275433
  }
275421
275434
  for (i3 = 0, a3 = t4.length;i3 < a3; i3 += 1)
275422
275435
  l3.push(m2(u2(t4[i3]), r3));
275423
- return s3 = 0, d2(e3, { enter: function(e4) {
275436
+ return s3 = 0, y2(e3, { enter: function(e4) {
275424
275437
  for (var t5;s3 < l3.length && !((t5 = l3[s3]).extendedRange[1] > e4.range[0]); )
275425
275438
  t5.extendedRange[1] === e4.range[0] ? (e4.leadingComments || (e4.leadingComments = []), e4.leadingComments.push(t5), l3.splice(s3, 1)) : s3 += 1;
275426
275439
  return s3 === l3.length ? n2.Break : l3[s3].extendedRange[0] > e4.range[1] ? n2.Skip : undefined;
275427
- } }), s3 = 0, d2(e3, { leave: function(e4) {
275440
+ } }), s3 = 0, y2(e3, { leave: function(e4) {
275428
275441
  for (var t5;s3 < l3.length && (t5 = l3[s3], !(e4.range[1] < t5.extendedRange[0])); )
275429
275442
  e4.range[1] === t5.extendedRange[0] ? (e4.trailingComments || (e4.trailingComments = []), e4.trailingComments.push(t5), l3.splice(s3, 1)) : s3 += 1;
275430
275443
  return s3 === l3.length ? n2.Break : l3[s3].extendedRange[0] > e4.range[1] ? n2.Skip : undefined;
@@ -275497,15 +275510,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275497
275510
  }(t2) + " found.";
275498
275511
  }, { SyntaxError: e3, parse: function(t2, r2) {
275499
275512
  r2 = r2 !== undefined ? r2 : {};
275500
- var n2, o2, a2, i2, s2 = {}, u2 = { start: me }, l2 = me, c2 = fe(" ", false), f2 = /^[^ [\],():#!=><~+.]/, p2 = pe([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), h2 = fe(">", false), y2 = fe("~", false), d2 = fe("+", false), m2 = fe(",", false), x2 = function(e4, t3) {
275513
+ var n2, o2, a2, i2, s2 = {}, u2 = { start: Ae }, l2 = Ae, c2 = ye(" ", false), f2 = /^[^ [\],():#!=><~+.]/, p2 = me([" ", "[", "]", ",", "(", ")", ":", "#", "!", "=", ">", "<", "~", "+", "."], true, false), h2 = ye(">", false), d2 = ye("~", false), y2 = ye("+", false), m2 = ye(",", false), x2 = function(e4, t3) {
275501
275514
  return [e4].concat(t3.map(function(e5) {
275502
275515
  return e5[3];
275503
275516
  }));
275504
- }, v2 = fe("!", false), g2 = fe("*", false), A2 = fe("#", false), E = fe("[", false), b = fe("]", false), S = /^[><!]/, _ = pe([">", "<", "!"], false, false), C = fe("=", false), w = function(e4) {
275517
+ }, v2 = ye("!", false), g2 = ye("*", false), A2 = ye("#", false), E = ye("[", false), b = ye("]", false), S = /^[><!]/, _ = me([">", "<", "!"], false, false), C = ye("=", false), P = function(e4) {
275505
275518
  return (e4 || "") + "=";
275506
- }, P = /^[><]/, k = pe([">", "<"], false, false), D = fe(".", false), I = function(e4, t3, r3) {
275519
+ }, w = /^[><]/, k = me([">", "<"], false, false), D = ye(".", false), I = function(e4, t3, r3) {
275507
275520
  return { type: "attribute", name: e4, operator: t3, value: r3 };
275508
- }, j = fe('"', false), T = /^[^\\"]/, F = pe(["\\", '"'], true, false), R = fe("\\", false), O = { type: "any" }, L = function(e4, t3) {
275521
+ }, j = ye('"', false), T = /^[^\\"]/, F = me(["\\", '"'], true, false), R = ye("\\", false), O = { type: "any" }, L = function(e4, t3) {
275509
275522
  return e4 + t3;
275510
275523
  }, M = function(e4) {
275511
275524
  return { type: "literal", value: (t3 = e4.join(""), t3.replace(/\\(.)/g, function(e5, t4) {
@@ -275528,307 +275541,342 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275528
275541
  }
275529
275542
  })) };
275530
275543
  var t3;
275531
- }, B = fe("'", false), U = /^[^\\']/, K = pe(["\\", "'"], true, false), N = /^[0-9]/, W = pe([["0", "9"]], false, false), q = fe("type(", false), V = /^[^ )]/, G = pe([" ", ")"], true, false), z = fe(")", false), H = /^[imsu]/, Y = pe(["i", "m", "s", "u"], false, false), $ = fe("/", false), J = /^[^\/]/, Q = pe(["/"], true, false), X = fe(":not(", false), Z = fe(":matches(", false), ee = fe(":has(", false), te = fe(":first-child", false), re = fe(":last-child", false), ne = fe(":nth-child(", false), oe = fe(":nth-last-child(", false), ae = fe(":", false), ie = 0, se = [{ line: 1, column: 1 }], ue = 0, le = [], ce = {};
275544
+ }, B = ye("'", false), U = /^[^\\']/, K = me(["\\", "'"], true, false), N = /^[0-9]/, W = me([["0", "9"]], false, false), q = ye("type(", false), V = /^[^ )]/, G = me([" ", ")"], true, false), z = ye(")", false), H = /^[imsu]/, Y = me(["i", "m", "s", "u"], false, false), $ = ye("/", false), J = /^[^\]\\]/, Q = me(["]", "\\"], true, false), X = /^[^\/\\[]/, Z = me(["/", "\\", "["], true, false), ee = ye(":not(", false), te = ye(":matches(", false), re = function(e4) {
275545
+ return { type: "matches", selectors: e4 };
275546
+ }, ne = ye(":is(", false), oe = ye(":has(", false), ae = ye(":first-child", false), ie = ye(":last-child", false), se = ye(":nth-child(", false), ue = ye(":nth-last-child(", false), le = ye(":", false), ce = 0, fe = [{ line: 1, column: 1 }], pe = 0, he = [], de = {};
275532
275547
  if ("startRule" in r2) {
275533
275548
  if (!(r2.startRule in u2))
275534
275549
  throw new Error(`Can't start parsing from rule "` + r2.startRule + '".');
275535
275550
  l2 = u2[r2.startRule];
275536
275551
  }
275537
- function fe(e4, t3) {
275552
+ function ye(e4, t3) {
275538
275553
  return { type: "literal", text: e4, ignoreCase: t3 };
275539
275554
  }
275540
- function pe(e4, t3, r3) {
275555
+ function me(e4, t3, r3) {
275541
275556
  return { type: "class", parts: e4, inverted: t3, ignoreCase: r3 };
275542
275557
  }
275543
- function he(e4) {
275544
- var r3, n3 = se[e4];
275558
+ function xe(e4) {
275559
+ var r3, n3 = fe[e4];
275545
275560
  if (n3)
275546
275561
  return n3;
275547
- for (r3 = e4 - 1;!se[r3]; )
275562
+ for (r3 = e4 - 1;!fe[r3]; )
275548
275563
  r3--;
275549
- for (n3 = { line: (n3 = se[r3]).line, column: n3.column };r3 < e4; )
275564
+ for (n3 = { line: (n3 = fe[r3]).line, column: n3.column };r3 < e4; )
275550
275565
  t2.charCodeAt(r3) === 10 ? (n3.line++, n3.column = 1) : n3.column++, r3++;
275551
- return se[e4] = n3, n3;
275566
+ return fe[e4] = n3, n3;
275552
275567
  }
275553
- function ye(e4, t3) {
275554
- var r3 = he(e4), n3 = he(t3);
275568
+ function ve(e4, t3) {
275569
+ var r3 = xe(e4), n3 = xe(t3);
275555
275570
  return { start: { offset: e4, line: r3.line, column: r3.column }, end: { offset: t3, line: n3.line, column: n3.column } };
275556
275571
  }
275557
- function de(e4) {
275558
- ie < ue || (ie > ue && (ue = ie, le = []), le.push(e4));
275572
+ function ge(e4) {
275573
+ ce < pe || (ce > pe && (pe = ce, he = []), he.push(e4));
275559
275574
  }
275560
- function me() {
275561
- var e4, t3, r3, n3, o3 = 32 * ie + 0, a3 = ce[o3];
275562
- return a3 ? (ie = a3.nextPos, a3.result) : (e4 = ie, (t3 = xe()) !== s2 && (r3 = Ae()) !== s2 && xe() !== s2 ? e4 = t3 = (n3 = r3).length === 1 ? n3[0] : { type: "matches", selectors: n3 } : (ie = e4, e4 = s2), e4 === s2 && (e4 = ie, (t3 = xe()) !== s2 && (t3 = undefined), e4 = t3), ce[o3] = { nextPos: ie, result: e4 }, e4);
275575
+ function Ae() {
275576
+ var e4, t3, r3, n3, o3 = 36 * ce + 0, a3 = de[o3];
275577
+ return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, (t3 = Ee()) !== s2 && (r3 = _e()) !== s2 && Ee() !== s2 ? e4 = t3 = (n3 = r3).length === 1 ? n3[0] : { type: "matches", selectors: n3 } : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (t3 = Ee()) !== s2 && (t3 = undefined), e4 = t3), de[o3] = { nextPos: ce, result: e4 }, e4);
275563
275578
  }
275564
- function xe() {
275565
- var e4, r3, n3 = 32 * ie + 1, o3 = ce[n3];
275579
+ function Ee() {
275580
+ var e4, r3, n3 = 36 * ce + 1, o3 = de[n3];
275566
275581
  if (o3)
275567
- return ie = o3.nextPos, o3.result;
275568
- for (e4 = [], t2.charCodeAt(ie) === 32 ? (r3 = " ", ie++) : (r3 = s2, de(c2));r3 !== s2; )
275569
- e4.push(r3), t2.charCodeAt(ie) === 32 ? (r3 = " ", ie++) : (r3 = s2, de(c2));
275570
- return ce[n3] = { nextPos: ie, result: e4 }, e4;
275582
+ return ce = o3.nextPos, o3.result;
275583
+ for (e4 = [], t2.charCodeAt(ce) === 32 ? (r3 = " ", ce++) : (r3 = s2, ge(c2));r3 !== s2; )
275584
+ e4.push(r3), t2.charCodeAt(ce) === 32 ? (r3 = " ", ce++) : (r3 = s2, ge(c2));
275585
+ return de[n3] = { nextPos: ce, result: e4 }, e4;
275571
275586
  }
275572
- function ve() {
275573
- var e4, r3, n3, o3 = 32 * ie + 2, a3 = ce[o3];
275587
+ function be() {
275588
+ var e4, r3, n3, o3 = 36 * ce + 2, a3 = de[o3];
275574
275589
  if (a3)
275575
- return ie = a3.nextPos, a3.result;
275576
- if (r3 = [], f2.test(t2.charAt(ie)) ? (n3 = t2.charAt(ie), ie++) : (n3 = s2, de(p2)), n3 !== s2)
275590
+ return ce = a3.nextPos, a3.result;
275591
+ if (r3 = [], f2.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(p2)), n3 !== s2)
275577
275592
  for (;n3 !== s2; )
275578
- r3.push(n3), f2.test(t2.charAt(ie)) ? (n3 = t2.charAt(ie), ie++) : (n3 = s2, de(p2));
275593
+ r3.push(n3), f2.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(p2));
275579
275594
  else
275580
275595
  r3 = s2;
275581
- return r3 !== s2 && (r3 = r3.join("")), e4 = r3, ce[o3] = { nextPos: ie, result: e4 }, e4;
275596
+ return r3 !== s2 && (r3 = r3.join("")), e4 = r3, de[o3] = { nextPos: ce, result: e4 }, e4;
275582
275597
  }
275583
- function ge() {
275584
- var e4, r3, n3, o3 = 32 * ie + 3, a3 = ce[o3];
275585
- return a3 ? (ie = a3.nextPos, a3.result) : (e4 = ie, (r3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 62 ? (n3 = ">", ie++) : (n3 = s2, de(h2)), n3 !== s2 && xe() !== s2 ? e4 = r3 = "child" : (ie = e4, e4 = s2)) : (ie = e4, e4 = s2), e4 === s2 && (e4 = ie, (r3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 126 ? (n3 = "~", ie++) : (n3 = s2, de(y2)), n3 !== s2 && xe() !== s2 ? e4 = r3 = "sibling" : (ie = e4, e4 = s2)) : (ie = e4, e4 = s2), e4 === s2 && (e4 = ie, (r3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 43 ? (n3 = "+", ie++) : (n3 = s2, de(d2)), n3 !== s2 && xe() !== s2 ? e4 = r3 = "adjacent" : (ie = e4, e4 = s2)) : (ie = e4, e4 = s2), e4 === s2 && (e4 = ie, t2.charCodeAt(ie) === 32 ? (r3 = " ", ie++) : (r3 = s2, de(c2)), r3 !== s2 && (n3 = xe()) !== s2 ? e4 = r3 = "descendant" : (ie = e4, e4 = s2)))), ce[o3] = { nextPos: ie, result: e4 }, e4);
275598
+ function Se() {
275599
+ var e4, r3, n3, o3 = 36 * ce + 3, a3 = de[o3];
275600
+ return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, (r3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 62 ? (n3 = ">", ce++) : (n3 = s2, ge(h2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "child" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (r3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 126 ? (n3 = "~", ce++) : (n3 = s2, ge(d2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "sibling" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, (r3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 43 ? (n3 = "+", ce++) : (n3 = s2, ge(y2)), n3 !== s2 && Ee() !== s2 ? e4 = r3 = "adjacent" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), e4 === s2 && (e4 = ce, t2.charCodeAt(ce) === 32 ? (r3 = " ", ce++) : (r3 = s2, ge(c2)), r3 !== s2 && (n3 = Ee()) !== s2 ? e4 = r3 = "descendant" : (ce = e4, e4 = s2)))), de[o3] = { nextPos: ce, result: e4 }, e4);
275586
275601
  }
275587
- function Ae() {
275588
- var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 32 * ie + 5, f3 = ce[c3];
275602
+ function _e() {
275603
+ var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 36 * ce + 5, f3 = de[c3];
275589
275604
  if (f3)
275590
- return ie = f3.nextPos, f3.result;
275591
- if (e4 = ie, (r3 = be()) !== s2) {
275592
- for (n3 = [], o3 = ie, (a3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 44 ? (i3 = ",", ie++) : (i3 = s2, de(m2)), i3 !== s2 && (u3 = xe()) !== s2 && (l3 = be()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ie = o3, o3 = s2)) : (ie = o3, o3 = s2);o3 !== s2; )
275593
- n3.push(o3), o3 = ie, (a3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 44 ? (i3 = ",", ie++) : (i3 = s2, de(m2)), i3 !== s2 && (u3 = xe()) !== s2 && (l3 = be()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ie = o3, o3 = s2)) : (ie = o3, o3 = s2);
275594
- n3 !== s2 ? e4 = r3 = x2(r3, n3) : (ie = e4, e4 = s2);
275605
+ return ce = f3.nextPos, f3.result;
275606
+ if (e4 = ce, (r3 = Pe()) !== s2) {
275607
+ for (n3 = [], o3 = ce, (a3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 44 ? (i3 = ",", ce++) : (i3 = s2, ge(m2)), i3 !== s2 && (u3 = Ee()) !== s2 && (l3 = Pe()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ce = o3, o3 = s2)) : (ce = o3, o3 = s2);o3 !== s2; )
275608
+ n3.push(o3), o3 = ce, (a3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 44 ? (i3 = ",", ce++) : (i3 = s2, ge(m2)), i3 !== s2 && (u3 = Ee()) !== s2 && (l3 = Pe()) !== s2 ? o3 = a3 = [a3, i3, u3, l3] : (ce = o3, o3 = s2)) : (ce = o3, o3 = s2);
275609
+ n3 !== s2 ? e4 = r3 = x2(r3, n3) : (ce = e4, e4 = s2);
275595
275610
  } else
275596
- ie = e4, e4 = s2;
275597
- return ce[c3] = { nextPos: ie, result: e4 }, e4;
275611
+ ce = e4, e4 = s2;
275612
+ return de[c3] = { nextPos: ce, result: e4 }, e4;
275598
275613
  }
275599
- function Ee() {
275600
- var e4, t3, r3, n3, o3, a3 = 32 * ie + 6, i3 = ce[a3];
275601
- return i3 ? (ie = i3.nextPos, i3.result) : (e4 = ie, (t3 = ge()) === s2 && (t3 = null), t3 !== s2 && (r3 = be()) !== s2 ? (o3 = r3, e4 = t3 = (n3 = t3) ? { type: n3, left: { type: "exactNode" }, right: o3 } : o3) : (ie = e4, e4 = s2), ce[a3] = { nextPos: ie, result: e4 }, e4);
275614
+ function Ce() {
275615
+ var e4, t3, r3, n3, o3, a3 = 36 * ce + 6, i3 = de[a3];
275616
+ return i3 ? (ce = i3.nextPos, i3.result) : (e4 = ce, (t3 = Se()) === s2 && (t3 = null), t3 !== s2 && (r3 = Pe()) !== s2 ? (o3 = r3, e4 = t3 = (n3 = t3) ? { type: n3, left: { type: "exactNode" }, right: o3 } : o3) : (ce = e4, e4 = s2), de[a3] = { nextPos: ce, result: e4 }, e4);
275602
275617
  }
275603
- function be() {
275604
- var e4, t3, r3, n3, o3, a3, i3, u3 = 32 * ie + 7, l3 = ce[u3];
275618
+ function Pe() {
275619
+ var e4, t3, r3, n3, o3, a3, i3, u3 = 36 * ce + 7, l3 = de[u3];
275605
275620
  if (l3)
275606
- return ie = l3.nextPos, l3.result;
275607
- if (e4 = ie, (t3 = Se()) !== s2) {
275608
- for (r3 = [], n3 = ie, (o3 = ge()) !== s2 && (a3 = Se()) !== s2 ? n3 = o3 = [o3, a3] : (ie = n3, n3 = s2);n3 !== s2; )
275609
- r3.push(n3), n3 = ie, (o3 = ge()) !== s2 && (a3 = Se()) !== s2 ? n3 = o3 = [o3, a3] : (ie = n3, n3 = s2);
275621
+ return ce = l3.nextPos, l3.result;
275622
+ if (e4 = ce, (t3 = we()) !== s2) {
275623
+ for (r3 = [], n3 = ce, (o3 = Se()) !== s2 && (a3 = we()) !== s2 ? n3 = o3 = [o3, a3] : (ce = n3, n3 = s2);n3 !== s2; )
275624
+ r3.push(n3), n3 = ce, (o3 = Se()) !== s2 && (a3 = we()) !== s2 ? n3 = o3 = [o3, a3] : (ce = n3, n3 = s2);
275610
275625
  r3 !== s2 ? (i3 = t3, e4 = t3 = r3.reduce(function(e5, t4) {
275611
275626
  return { type: t4[0], left: e5, right: t4[1] };
275612
- }, i3)) : (ie = e4, e4 = s2);
275627
+ }, i3)) : (ce = e4, e4 = s2);
275613
275628
  } else
275614
- ie = e4, e4 = s2;
275615
- return ce[u3] = { nextPos: ie, result: e4 }, e4;
275629
+ ce = e4, e4 = s2;
275630
+ return de[u3] = { nextPos: ce, result: e4 }, e4;
275616
275631
  }
275617
- function Se() {
275618
- var e4, r3, n3, o3, a3, i3, u3, l3 = 32 * ie + 8, c3 = ce[l3];
275632
+ function we() {
275633
+ var e4, r3, n3, o3, a3, i3, u3, l3 = 36 * ce + 8, c3 = de[l3];
275619
275634
  if (c3)
275620
- return ie = c3.nextPos, c3.result;
275621
- if (e4 = ie, t2.charCodeAt(ie) === 33 ? (r3 = "!", ie++) : (r3 = s2, de(v2)), r3 === s2 && (r3 = null), r3 !== s2) {
275622
- if (n3 = [], (o3 = _e()) !== s2)
275635
+ return ce = c3.nextPos, c3.result;
275636
+ if (e4 = ce, t2.charCodeAt(ce) === 33 ? (r3 = "!", ce++) : (r3 = s2, ge(v2)), r3 === s2 && (r3 = null), r3 !== s2) {
275637
+ if (n3 = [], (o3 = ke()) !== s2)
275623
275638
  for (;o3 !== s2; )
275624
- n3.push(o3), o3 = _e();
275639
+ n3.push(o3), o3 = ke();
275625
275640
  else
275626
275641
  n3 = s2;
275627
- n3 !== s2 ? (a3 = r3, u3 = (i3 = n3).length === 1 ? i3[0] : { type: "compound", selectors: i3 }, a3 && (u3.subject = true), e4 = r3 = u3) : (ie = e4, e4 = s2);
275642
+ n3 !== s2 ? (a3 = r3, u3 = (i3 = n3).length === 1 ? i3[0] : { type: "compound", selectors: i3 }, a3 && (u3.subject = true), e4 = r3 = u3) : (ce = e4, e4 = s2);
275628
275643
  } else
275629
- ie = e4, e4 = s2;
275630
- return ce[l3] = { nextPos: ie, result: e4 }, e4;
275631
- }
275632
- function _e() {
275633
- var e4, r3 = 32 * ie + 9, n3 = ce[r3];
275634
- return n3 ? (ie = n3.nextPos, n3.result) : ((e4 = function() {
275635
- var e5, r4, n4 = 32 * ie + 10, o3 = ce[n4];
275636
- return o3 ? (ie = o3.nextPos, o3.result) : (t2.charCodeAt(ie) === 42 ? (r4 = "*", ie++) : (r4 = s2, de(g2)), r4 !== s2 && (r4 = { type: "wildcard", value: r4 }), e5 = r4, ce[n4] = { nextPos: ie, result: e5 }, e5);
275644
+ ce = e4, e4 = s2;
275645
+ return de[l3] = { nextPos: ce, result: e4 }, e4;
275646
+ }
275647
+ function ke() {
275648
+ var e4, r3 = 36 * ce + 9, n3 = de[r3];
275649
+ return n3 ? (ce = n3.nextPos, n3.result) : ((e4 = function() {
275650
+ var e5, r4, n4 = 36 * ce + 10, o3 = de[n4];
275651
+ return o3 ? (ce = o3.nextPos, o3.result) : (t2.charCodeAt(ce) === 42 ? (r4 = "*", ce++) : (r4 = s2, ge(g2)), r4 !== s2 && (r4 = { type: "wildcard", value: r4 }), e5 = r4, de[n4] = { nextPos: ce, result: e5 }, e5);
275637
275652
  }()) === s2 && (e4 = function() {
275638
- var e5, r4, n4, o3 = 32 * ie + 11, a3 = ce[o3];
275639
- return a3 ? (ie = a3.nextPos, a3.result) : (e5 = ie, t2.charCodeAt(ie) === 35 ? (r4 = "#", ie++) : (r4 = s2, de(A2)), r4 === s2 && (r4 = null), r4 !== s2 && (n4 = ve()) !== s2 ? e5 = r4 = { type: "identifier", value: n4 } : (ie = e5, e5 = s2), ce[o3] = { nextPos: ie, result: e5 }, e5);
275653
+ var e5, r4, n4, o3 = 36 * ce + 11, a3 = de[o3];
275654
+ return a3 ? (ce = a3.nextPos, a3.result) : (e5 = ce, t2.charCodeAt(ce) === 35 ? (r4 = "#", ce++) : (r4 = s2, ge(A2)), r4 === s2 && (r4 = null), r4 !== s2 && (n4 = be()) !== s2 ? e5 = r4 = { type: "identifier", value: n4 } : (ce = e5, e5 = s2), de[o3] = { nextPos: ce, result: e5 }, e5);
275640
275655
  }()) === s2 && (e4 = function() {
275641
- var e5, r4, n4, o3, a3 = 32 * ie + 12, i3 = ce[a3];
275642
- return i3 ? (ie = i3.nextPos, i3.result) : (e5 = ie, t2.charCodeAt(ie) === 91 ? (r4 = "[", ie++) : (r4 = s2, de(E)), r4 !== s2 && xe() !== s2 && (n4 = function() {
275643
- var e6, r5, n5, o4, a4 = 32 * ie + 16, i4 = ce[a4];
275644
- return i4 ? (ie = i4.nextPos, i4.result) : (e6 = ie, (r5 = Ce()) !== s2 && xe() !== s2 && (n5 = function() {
275645
- var e7, r6, n6, o5 = 32 * ie + 14, a5 = ce[o5];
275646
- return a5 ? (ie = a5.nextPos, a5.result) : (e7 = ie, t2.charCodeAt(ie) === 33 ? (r6 = "!", ie++) : (r6 = s2, de(v2)), r6 === s2 && (r6 = null), r6 !== s2 ? (t2.charCodeAt(ie) === 61 ? (n6 = "=", ie++) : (n6 = s2, de(C)), n6 !== s2 ? (r6 = w(r6), e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2), ce[o5] = { nextPos: ie, result: e7 }, e7);
275647
- }()) !== s2 && xe() !== s2 ? ((o4 = function() {
275648
- var e7, r6, n6, o5, a5, i5 = 32 * ie + 20, u3 = ce[i5];
275656
+ var e5, r4, n4, o3, a3 = 36 * ce + 12, i3 = de[a3];
275657
+ return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, t2.charCodeAt(ce) === 91 ? (r4 = "[", ce++) : (r4 = s2, ge(E)), r4 !== s2 && Ee() !== s2 && (n4 = function() {
275658
+ var e6, r5, n5, o4, a4 = 36 * ce + 16, i4 = de[a4];
275659
+ return i4 ? (ce = i4.nextPos, i4.result) : (e6 = ce, (r5 = De()) !== s2 && Ee() !== s2 && (n5 = function() {
275660
+ var e7, r6, n6, o5 = 36 * ce + 14, a5 = de[o5];
275661
+ return a5 ? (ce = a5.nextPos, a5.result) : (e7 = ce, t2.charCodeAt(ce) === 33 ? (r6 = "!", ce++) : (r6 = s2, ge(v2)), r6 === s2 && (r6 = null), r6 !== s2 ? (t2.charCodeAt(ce) === 61 ? (n6 = "=", ce++) : (n6 = s2, ge(C)), n6 !== s2 ? (r6 = P(r6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2), de[o5] = { nextPos: ce, result: e7 }, e7);
275662
+ }()) !== s2 && Ee() !== s2 ? ((o4 = function() {
275663
+ var e7, r6, n6, o5, a5, i5 = 36 * ce + 20, u3 = de[i5];
275649
275664
  if (u3)
275650
- return ie = u3.nextPos, u3.result;
275651
- if (e7 = ie, t2.substr(ie, 5) === "type(" ? (r6 = "type(", ie += 5) : (r6 = s2, de(q)), r6 !== s2)
275652
- if (xe() !== s2) {
275653
- if (n6 = [], V.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(G)), o5 !== s2)
275665
+ return ce = u3.nextPos, u3.result;
275666
+ if (e7 = ce, t2.substr(ce, 5) === "type(" ? (r6 = "type(", ce += 5) : (r6 = s2, ge(q)), r6 !== s2)
275667
+ if (Ee() !== s2) {
275668
+ if (n6 = [], V.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(G)), o5 !== s2)
275654
275669
  for (;o5 !== s2; )
275655
- n6.push(o5), V.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(G));
275670
+ n6.push(o5), V.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(G));
275656
275671
  else
275657
275672
  n6 = s2;
275658
- n6 !== s2 && (o5 = xe()) !== s2 ? (t2.charCodeAt(ie) === 41 ? (a5 = ")", ie++) : (a5 = s2, de(z)), a5 !== s2 ? (r6 = { type: "type", value: n6.join("") }, e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2);
275673
+ n6 !== s2 && (o5 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 41 ? (a5 = ")", ce++) : (a5 = s2, ge(z)), a5 !== s2 ? (r6 = { type: "type", value: n6.join("") }, e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
275659
275674
  } else
275660
- ie = e7, e7 = s2;
275675
+ ce = e7, e7 = s2;
275661
275676
  else
275662
- ie = e7, e7 = s2;
275663
- return ce[i5] = { nextPos: ie, result: e7 }, e7;
275677
+ ce = e7, e7 = s2;
275678
+ return de[i5] = { nextPos: ce, result: e7 }, e7;
275664
275679
  }()) === s2 && (o4 = function() {
275665
- var e7, r6, n6, o5, a5, i5, u3 = 32 * ie + 22, l3 = ce[u3];
275680
+ var e7, r6, n6, o5, a5, i5, u3 = 36 * ce + 22, l3 = de[u3];
275666
275681
  if (l3)
275667
- return ie = l3.nextPos, l3.result;
275668
- if (e7 = ie, t2.charCodeAt(ie) === 47 ? (r6 = "/", ie++) : (r6 = s2, de($)), r6 !== s2) {
275669
- if (n6 = [], J.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(Q)), o5 !== s2)
275682
+ return ce = l3.nextPos, l3.result;
275683
+ if (e7 = ce, t2.charCodeAt(ce) === 47 ? (r6 = "/", ce++) : (r6 = s2, ge($)), r6 !== s2) {
275684
+ if (n6 = [], (o5 = Ie()) === s2 && (o5 = je()) === s2 && (o5 = Te()), o5 !== s2)
275670
275685
  for (;o5 !== s2; )
275671
- n6.push(o5), J.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(Q));
275686
+ n6.push(o5), (o5 = Ie()) === s2 && (o5 = je()) === s2 && (o5 = Te());
275672
275687
  else
275673
275688
  n6 = s2;
275674
- n6 !== s2 ? (t2.charCodeAt(ie) === 47 ? (o5 = "/", ie++) : (o5 = s2, de($)), o5 !== s2 ? ((a5 = function() {
275675
- var e8, r7, n7 = 32 * ie + 21, o6 = ce[n7];
275689
+ n6 !== s2 ? (t2.charCodeAt(ce) === 47 ? (o5 = "/", ce++) : (o5 = s2, ge($)), o5 !== s2 ? ((a5 = function() {
275690
+ var e8, r7, n7 = 36 * ce + 21, o6 = de[n7];
275676
275691
  if (o6)
275677
- return ie = o6.nextPos, o6.result;
275678
- if (e8 = [], H.test(t2.charAt(ie)) ? (r7 = t2.charAt(ie), ie++) : (r7 = s2, de(Y)), r7 !== s2)
275692
+ return ce = o6.nextPos, o6.result;
275693
+ if (e8 = [], H.test(t2.charAt(ce)) ? (r7 = t2.charAt(ce), ce++) : (r7 = s2, ge(Y)), r7 !== s2)
275679
275694
  for (;r7 !== s2; )
275680
- e8.push(r7), H.test(t2.charAt(ie)) ? (r7 = t2.charAt(ie), ie++) : (r7 = s2, de(Y));
275695
+ e8.push(r7), H.test(t2.charAt(ce)) ? (r7 = t2.charAt(ce), ce++) : (r7 = s2, ge(Y));
275681
275696
  else
275682
275697
  e8 = s2;
275683
- return ce[n7] = { nextPos: ie, result: e8 }, e8;
275684
- }()) === s2 && (a5 = null), a5 !== s2 ? (i5 = a5, r6 = { type: "regexp", value: new RegExp(n6.join(""), i5 ? i5.join("") : "") }, e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2);
275698
+ return de[n7] = { nextPos: ce, result: e8 }, e8;
275699
+ }()) === s2 && (a5 = null), a5 !== s2 ? (i5 = a5, r6 = { type: "regexp", value: new RegExp(n6.join(""), i5 ? i5.join("") : "") }, e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
275685
275700
  } else
275686
- ie = e7, e7 = s2;
275687
- return ce[u3] = { nextPos: ie, result: e7 }, e7;
275688
- }()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ie = e6, e6 = s2)) : (ie = e6, e6 = s2), e6 === s2 && (e6 = ie, (r5 = Ce()) !== s2 && xe() !== s2 && (n5 = function() {
275689
- var e7, r6, n6, o5 = 32 * ie + 13, a5 = ce[o5];
275690
- return a5 ? (ie = a5.nextPos, a5.result) : (e7 = ie, S.test(t2.charAt(ie)) ? (r6 = t2.charAt(ie), ie++) : (r6 = s2, de(_)), r6 === s2 && (r6 = null), r6 !== s2 ? (t2.charCodeAt(ie) === 61 ? (n6 = "=", ie++) : (n6 = s2, de(C)), n6 !== s2 ? (r6 = w(r6), e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2), e7 === s2 && (P.test(t2.charAt(ie)) ? (e7 = t2.charAt(ie), ie++) : (e7 = s2, de(k))), ce[o5] = { nextPos: ie, result: e7 }, e7);
275691
- }()) !== s2 && xe() !== s2 ? ((o4 = function() {
275692
- var e7, r6, n6, o5, a5, i5, u3 = 32 * ie + 17, l3 = ce[u3];
275701
+ ce = e7, e7 = s2;
275702
+ return de[u3] = { nextPos: ce, result: e7 }, e7;
275703
+ }()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ce = e6, e6 = s2)) : (ce = e6, e6 = s2), e6 === s2 && (e6 = ce, (r5 = De()) !== s2 && Ee() !== s2 && (n5 = function() {
275704
+ var e7, r6, n6, o5 = 36 * ce + 13, a5 = de[o5];
275705
+ return a5 ? (ce = a5.nextPos, a5.result) : (e7 = ce, S.test(t2.charAt(ce)) ? (r6 = t2.charAt(ce), ce++) : (r6 = s2, ge(_)), r6 === s2 && (r6 = null), r6 !== s2 ? (t2.charCodeAt(ce) === 61 ? (n6 = "=", ce++) : (n6 = s2, ge(C)), n6 !== s2 ? (r6 = P(r6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2), e7 === s2 && (w.test(t2.charAt(ce)) ? (e7 = t2.charAt(ce), ce++) : (e7 = s2, ge(k))), de[o5] = { nextPos: ce, result: e7 }, e7);
275706
+ }()) !== s2 && Ee() !== s2 ? ((o4 = function() {
275707
+ var e7, r6, n6, o5, a5, i5, u3 = 36 * ce + 17, l3 = de[u3];
275693
275708
  if (l3)
275694
- return ie = l3.nextPos, l3.result;
275695
- if (e7 = ie, t2.charCodeAt(ie) === 34 ? (r6 = '"', ie++) : (r6 = s2, de(j)), r6 !== s2) {
275696
- for (n6 = [], T.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(F)), o5 === s2 && (o5 = ie, t2.charCodeAt(ie) === 92 ? (a5 = "\\", ie++) : (a5 = s2, de(R)), a5 !== s2 ? (t2.length > ie ? (i5 = t2.charAt(ie), ie++) : (i5 = s2, de(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ie = o5, o5 = s2)) : (ie = o5, o5 = s2));o5 !== s2; )
275697
- n6.push(o5), T.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(F)), o5 === s2 && (o5 = ie, t2.charCodeAt(ie) === 92 ? (a5 = "\\", ie++) : (a5 = s2, de(R)), a5 !== s2 ? (t2.length > ie ? (i5 = t2.charAt(ie), ie++) : (i5 = s2, de(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ie = o5, o5 = s2)) : (ie = o5, o5 = s2));
275698
- n6 !== s2 ? (t2.charCodeAt(ie) === 34 ? (o5 = '"', ie++) : (o5 = s2, de(j)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2);
275709
+ return ce = l3.nextPos, l3.result;
275710
+ if (e7 = ce, t2.charCodeAt(ce) === 34 ? (r6 = '"', ce++) : (r6 = s2, ge(j)), r6 !== s2) {
275711
+ for (n6 = [], T.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(F)), o5 === s2 && (o5 = ce, t2.charCodeAt(ce) === 92 ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));o5 !== s2; )
275712
+ n6.push(o5), T.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(F)), o5 === s2 && (o5 = ce, t2.charCodeAt(ce) === 92 ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));
275713
+ n6 !== s2 ? (t2.charCodeAt(ce) === 34 ? (o5 = '"', ce++) : (o5 = s2, ge(j)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
275699
275714
  } else
275700
- ie = e7, e7 = s2;
275715
+ ce = e7, e7 = s2;
275701
275716
  if (e7 === s2)
275702
- if (e7 = ie, t2.charCodeAt(ie) === 39 ? (r6 = "'", ie++) : (r6 = s2, de(B)), r6 !== s2) {
275703
- for (n6 = [], U.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(K)), o5 === s2 && (o5 = ie, t2.charCodeAt(ie) === 92 ? (a5 = "\\", ie++) : (a5 = s2, de(R)), a5 !== s2 ? (t2.length > ie ? (i5 = t2.charAt(ie), ie++) : (i5 = s2, de(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ie = o5, o5 = s2)) : (ie = o5, o5 = s2));o5 !== s2; )
275704
- n6.push(o5), U.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(K)), o5 === s2 && (o5 = ie, t2.charCodeAt(ie) === 92 ? (a5 = "\\", ie++) : (a5 = s2, de(R)), a5 !== s2 ? (t2.length > ie ? (i5 = t2.charAt(ie), ie++) : (i5 = s2, de(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ie = o5, o5 = s2)) : (ie = o5, o5 = s2));
275705
- n6 !== s2 ? (t2.charCodeAt(ie) === 39 ? (o5 = "'", ie++) : (o5 = s2, de(B)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ie = e7, e7 = s2)) : (ie = e7, e7 = s2);
275717
+ if (e7 = ce, t2.charCodeAt(ce) === 39 ? (r6 = "'", ce++) : (r6 = s2, ge(B)), r6 !== s2) {
275718
+ for (n6 = [], U.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(K)), o5 === s2 && (o5 = ce, t2.charCodeAt(ce) === 92 ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));o5 !== s2; )
275719
+ n6.push(o5), U.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(K)), o5 === s2 && (o5 = ce, t2.charCodeAt(ce) === 92 ? (a5 = "\\", ce++) : (a5 = s2, ge(R)), a5 !== s2 ? (t2.length > ce ? (i5 = t2.charAt(ce), ce++) : (i5 = s2, ge(O)), i5 !== s2 ? (a5 = L(a5, i5), o5 = a5) : (ce = o5, o5 = s2)) : (ce = o5, o5 = s2));
275720
+ n6 !== s2 ? (t2.charCodeAt(ce) === 39 ? (o5 = "'", ce++) : (o5 = s2, ge(B)), o5 !== s2 ? (r6 = M(n6), e7 = r6) : (ce = e7, e7 = s2)) : (ce = e7, e7 = s2);
275706
275721
  } else
275707
- ie = e7, e7 = s2;
275708
- return ce[u3] = { nextPos: ie, result: e7 }, e7;
275722
+ ce = e7, e7 = s2;
275723
+ return de[u3] = { nextPos: ce, result: e7 }, e7;
275709
275724
  }()) === s2 && (o4 = function() {
275710
- var e7, r6, n6, o5, a5, i5, u3, l3 = 32 * ie + 18, c3 = ce[l3];
275725
+ var e7, r6, n6, o5, a5, i5, u3, l3 = 36 * ce + 18, c3 = de[l3];
275711
275726
  if (c3)
275712
- return ie = c3.nextPos, c3.result;
275713
- for (e7 = ie, r6 = ie, n6 = [], N.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(W));o5 !== s2; )
275714
- n6.push(o5), N.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(W));
275715
- if (n6 !== s2 ? (t2.charCodeAt(ie) === 46 ? (o5 = ".", ie++) : (o5 = s2, de(D)), o5 !== s2 ? r6 = n6 = [n6, o5] : (ie = r6, r6 = s2)) : (ie = r6, r6 = s2), r6 === s2 && (r6 = null), r6 !== s2) {
275716
- if (n6 = [], N.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(W)), o5 !== s2)
275727
+ return ce = c3.nextPos, c3.result;
275728
+ for (e7 = ce, r6 = ce, n6 = [], N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W));o5 !== s2; )
275729
+ n6.push(o5), N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W));
275730
+ if (n6 !== s2 ? (t2.charCodeAt(ce) === 46 ? (o5 = ".", ce++) : (o5 = s2, ge(D)), o5 !== s2 ? r6 = n6 = [n6, o5] : (ce = r6, r6 = s2)) : (ce = r6, r6 = s2), r6 === s2 && (r6 = null), r6 !== s2) {
275731
+ if (n6 = [], N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W)), o5 !== s2)
275717
275732
  for (;o5 !== s2; )
275718
- n6.push(o5), N.test(t2.charAt(ie)) ? (o5 = t2.charAt(ie), ie++) : (o5 = s2, de(W));
275733
+ n6.push(o5), N.test(t2.charAt(ce)) ? (o5 = t2.charAt(ce), ce++) : (o5 = s2, ge(W));
275719
275734
  else
275720
275735
  n6 = s2;
275721
- n6 !== s2 ? (i5 = n6, u3 = (a5 = r6) ? [].concat.apply([], a5).join("") : "", r6 = { type: "literal", value: parseFloat(u3 + i5.join("")) }, e7 = r6) : (ie = e7, e7 = s2);
275736
+ n6 !== s2 ? (i5 = n6, u3 = (a5 = r6) ? [].concat.apply([], a5).join("") : "", r6 = { type: "literal", value: parseFloat(u3 + i5.join("")) }, e7 = r6) : (ce = e7, e7 = s2);
275722
275737
  } else
275723
- ie = e7, e7 = s2;
275724
- return ce[l3] = { nextPos: ie, result: e7 }, e7;
275738
+ ce = e7, e7 = s2;
275739
+ return de[l3] = { nextPos: ce, result: e7 }, e7;
275725
275740
  }()) === s2 && (o4 = function() {
275726
- var e7, t3, r6 = 32 * ie + 19, n6 = ce[r6];
275727
- return n6 ? (ie = n6.nextPos, n6.result) : ((t3 = ve()) !== s2 && (t3 = { type: "literal", value: t3 }), e7 = t3, ce[r6] = { nextPos: ie, result: e7 }, e7);
275728
- }()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ie = e6, e6 = s2)) : (ie = e6, e6 = s2), e6 === s2 && (e6 = ie, (r5 = Ce()) !== s2 && (r5 = { type: "attribute", name: r5 }), e6 = r5)), ce[a4] = { nextPos: ie, result: e6 }, e6);
275729
- }()) !== s2 && xe() !== s2 ? (t2.charCodeAt(ie) === 93 ? (o3 = "]", ie++) : (o3 = s2, de(b)), o3 !== s2 ? e5 = r4 = n4 : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2), ce[a3] = { nextPos: ie, result: e5 }, e5);
275741
+ var e7, t3, r6 = 36 * ce + 19, n6 = de[r6];
275742
+ return n6 ? (ce = n6.nextPos, n6.result) : ((t3 = be()) !== s2 && (t3 = { type: "literal", value: t3 }), e7 = t3, de[r6] = { nextPos: ce, result: e7 }, e7);
275743
+ }()), o4 !== s2 ? (r5 = I(r5, n5, o4), e6 = r5) : (ce = e6, e6 = s2)) : (ce = e6, e6 = s2), e6 === s2 && (e6 = ce, (r5 = De()) !== s2 && (r5 = { type: "attribute", name: r5 }), e6 = r5)), de[a4] = { nextPos: ce, result: e6 }, e6);
275744
+ }()) !== s2 && Ee() !== s2 ? (t2.charCodeAt(ce) === 93 ? (o3 = "]", ce++) : (o3 = s2, ge(b)), o3 !== s2 ? e5 = r4 = n4 : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), de[a3] = { nextPos: ce, result: e5 }, e5);
275730
275745
  }()) === s2 && (e4 = function() {
275731
- var e5, r4, n4, o3, a3, i3, u3, l3, c3 = 32 * ie + 23, f3 = ce[c3];
275746
+ var e5, r4, n4, o3, a3, i3, u3, l3, c3 = 36 * ce + 26, f3 = de[c3];
275732
275747
  if (f3)
275733
- return ie = f3.nextPos, f3.result;
275734
- if (e5 = ie, t2.charCodeAt(ie) === 46 ? (r4 = ".", ie++) : (r4 = s2, de(D)), r4 !== s2)
275735
- if ((n4 = ve()) !== s2) {
275736
- for (o3 = [], a3 = ie, t2.charCodeAt(ie) === 46 ? (i3 = ".", ie++) : (i3 = s2, de(D)), i3 !== s2 && (u3 = ve()) !== s2 ? a3 = i3 = [i3, u3] : (ie = a3, a3 = s2);a3 !== s2; )
275737
- o3.push(a3), a3 = ie, t2.charCodeAt(ie) === 46 ? (i3 = ".", ie++) : (i3 = s2, de(D)), i3 !== s2 && (u3 = ve()) !== s2 ? a3 = i3 = [i3, u3] : (ie = a3, a3 = s2);
275748
+ return ce = f3.nextPos, f3.result;
275749
+ if (e5 = ce, t2.charCodeAt(ce) === 46 ? (r4 = ".", ce++) : (r4 = s2, ge(D)), r4 !== s2)
275750
+ if ((n4 = be()) !== s2) {
275751
+ for (o3 = [], a3 = ce, t2.charCodeAt(ce) === 46 ? (i3 = ".", ce++) : (i3 = s2, ge(D)), i3 !== s2 && (u3 = be()) !== s2 ? a3 = i3 = [i3, u3] : (ce = a3, a3 = s2);a3 !== s2; )
275752
+ o3.push(a3), a3 = ce, t2.charCodeAt(ce) === 46 ? (i3 = ".", ce++) : (i3 = s2, ge(D)), i3 !== s2 && (u3 = be()) !== s2 ? a3 = i3 = [i3, u3] : (ce = a3, a3 = s2);
275738
275753
  o3 !== s2 ? (l3 = n4, r4 = { type: "field", name: o3.reduce(function(e6, t3) {
275739
275754
  return e6 + t3[0] + t3[1];
275740
- }, l3) }, e5 = r4) : (ie = e5, e5 = s2);
275755
+ }, l3) }, e5 = r4) : (ce = e5, e5 = s2);
275741
275756
  } else
275742
- ie = e5, e5 = s2;
275757
+ ce = e5, e5 = s2;
275743
275758
  else
275744
- ie = e5, e5 = s2;
275745
- return ce[c3] = { nextPos: ie, result: e5 }, e5;
275759
+ ce = e5, e5 = s2;
275760
+ return de[c3] = { nextPos: ce, result: e5 }, e5;
275746
275761
  }()) === s2 && (e4 = function() {
275747
- var e5, r4, n4, o3, a3 = 32 * ie + 24, i3 = ce[a3];
275748
- return i3 ? (ie = i3.nextPos, i3.result) : (e5 = ie, t2.substr(ie, 5) === ":not(" ? (r4 = ":not(", ie += 5) : (r4 = s2, de(X)), r4 !== s2 && xe() !== s2 && (n4 = Ae()) !== s2 && xe() !== s2 ? (t2.charCodeAt(ie) === 41 ? (o3 = ")", ie++) : (o3 = s2, de(z)), o3 !== s2 ? e5 = r4 = { type: "not", selectors: n4 } : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2), ce[a3] = { nextPos: ie, result: e5 }, e5);
275762
+ var e5, r4, n4, o3, a3 = 36 * ce + 27, i3 = de[a3];
275763
+ return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, t2.substr(ce, 5) === ":not(" ? (r4 = ":not(", ce += 5) : (r4 = s2, ge(ee)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (t2.charCodeAt(ce) === 41 ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? e5 = r4 = { type: "not", selectors: n4 } : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), de[a3] = { nextPos: ce, result: e5 }, e5);
275749
275764
  }()) === s2 && (e4 = function() {
275750
- var e5, r4, n4, o3, a3 = 32 * ie + 25, i3 = ce[a3];
275751
- return i3 ? (ie = i3.nextPos, i3.result) : (e5 = ie, t2.substr(ie, 9) === ":matches(" ? (r4 = ":matches(", ie += 9) : (r4 = s2, de(Z)), r4 !== s2 && xe() !== s2 && (n4 = Ae()) !== s2 && xe() !== s2 ? (t2.charCodeAt(ie) === 41 ? (o3 = ")", ie++) : (o3 = s2, de(z)), o3 !== s2 ? e5 = r4 = { type: "matches", selectors: n4 } : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2), ce[a3] = { nextPos: ie, result: e5 }, e5);
275765
+ var e5, r4, n4, o3, a3 = 36 * ce + 28, i3 = de[a3];
275766
+ return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, t2.substr(ce, 9) === ":matches(" ? (r4 = ":matches(", ce += 9) : (r4 = s2, ge(te)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (t2.charCodeAt(ce) === 41 ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? (r4 = re(n4), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), de[a3] = { nextPos: ce, result: e5 }, e5);
275752
275767
  }()) === s2 && (e4 = function() {
275753
- var e5, r4, n4, o3, a3 = 32 * ie + 26, i3 = ce[a3];
275754
- return i3 ? (ie = i3.nextPos, i3.result) : (e5 = ie, t2.substr(ie, 5) === ":has(" ? (r4 = ":has(", ie += 5) : (r4 = s2, de(ee)), r4 !== s2 && xe() !== s2 && (n4 = function() {
275755
- var e6, r5, n5, o4, a4, i4, u3, l3, c3 = 32 * ie + 4, f3 = ce[c3];
275768
+ var e5, r4, n4, o3, a3 = 36 * ce + 29, i3 = de[a3];
275769
+ return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, t2.substr(ce, 4) === ":is(" ? (r4 = ":is(", ce += 4) : (r4 = s2, ge(ne)), r4 !== s2 && Ee() !== s2 && (n4 = _e()) !== s2 && Ee() !== s2 ? (t2.charCodeAt(ce) === 41 ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? (r4 = re(n4), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), de[a3] = { nextPos: ce, result: e5 }, e5);
275770
+ }()) === s2 && (e4 = function() {
275771
+ var e5, r4, n4, o3, a3 = 36 * ce + 30, i3 = de[a3];
275772
+ return i3 ? (ce = i3.nextPos, i3.result) : (e5 = ce, t2.substr(ce, 5) === ":has(" ? (r4 = ":has(", ce += 5) : (r4 = s2, ge(oe)), r4 !== s2 && Ee() !== s2 && (n4 = function() {
275773
+ var e6, r5, n5, o4, a4, i4, u3, l3, c3 = 36 * ce + 4, f3 = de[c3];
275756
275774
  if (f3)
275757
- return ie = f3.nextPos, f3.result;
275758
- if (e6 = ie, (r5 = Ee()) !== s2) {
275759
- for (n5 = [], o4 = ie, (a4 = xe()) !== s2 ? (t2.charCodeAt(ie) === 44 ? (i4 = ",", ie++) : (i4 = s2, de(m2)), i4 !== s2 && (u3 = xe()) !== s2 && (l3 = Ee()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ie = o4, o4 = s2)) : (ie = o4, o4 = s2);o4 !== s2; )
275760
- n5.push(o4), o4 = ie, (a4 = xe()) !== s2 ? (t2.charCodeAt(ie) === 44 ? (i4 = ",", ie++) : (i4 = s2, de(m2)), i4 !== s2 && (u3 = xe()) !== s2 && (l3 = Ee()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ie = o4, o4 = s2)) : (ie = o4, o4 = s2);
275761
- n5 !== s2 ? e6 = r5 = x2(r5, n5) : (ie = e6, e6 = s2);
275775
+ return ce = f3.nextPos, f3.result;
275776
+ if (e6 = ce, (r5 = Ce()) !== s2) {
275777
+ for (n5 = [], o4 = ce, (a4 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 44 ? (i4 = ",", ce++) : (i4 = s2, ge(m2)), i4 !== s2 && (u3 = Ee()) !== s2 && (l3 = Ce()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ce = o4, o4 = s2)) : (ce = o4, o4 = s2);o4 !== s2; )
275778
+ n5.push(o4), o4 = ce, (a4 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 44 ? (i4 = ",", ce++) : (i4 = s2, ge(m2)), i4 !== s2 && (u3 = Ee()) !== s2 && (l3 = Ce()) !== s2 ? o4 = a4 = [a4, i4, u3, l3] : (ce = o4, o4 = s2)) : (ce = o4, o4 = s2);
275779
+ n5 !== s2 ? e6 = r5 = x2(r5, n5) : (ce = e6, e6 = s2);
275762
275780
  } else
275763
- ie = e6, e6 = s2;
275764
- return ce[c3] = { nextPos: ie, result: e6 }, e6;
275765
- }()) !== s2 && xe() !== s2 ? (t2.charCodeAt(ie) === 41 ? (o3 = ")", ie++) : (o3 = s2, de(z)), o3 !== s2 ? e5 = r4 = { type: "has", selectors: n4 } : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2), ce[a3] = { nextPos: ie, result: e5 }, e5);
275781
+ ce = e6, e6 = s2;
275782
+ return de[c3] = { nextPos: ce, result: e6 }, e6;
275783
+ }()) !== s2 && Ee() !== s2 ? (t2.charCodeAt(ce) === 41 ? (o3 = ")", ce++) : (o3 = s2, ge(z)), o3 !== s2 ? e5 = r4 = { type: "has", selectors: n4 } : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2), de[a3] = { nextPos: ce, result: e5 }, e5);
275766
275784
  }()) === s2 && (e4 = function() {
275767
- var e5, r4, n4 = 32 * ie + 27, o3 = ce[n4];
275768
- return o3 ? (ie = o3.nextPos, o3.result) : (t2.substr(ie, 12) === ":first-child" ? (r4 = ":first-child", ie += 12) : (r4 = s2, de(te)), r4 !== s2 && (r4 = we(1)), e5 = r4, ce[n4] = { nextPos: ie, result: e5 }, e5);
275785
+ var e5, r4, n4 = 36 * ce + 31, o3 = de[n4];
275786
+ return o3 ? (ce = o3.nextPos, o3.result) : (t2.substr(ce, 12) === ":first-child" ? (r4 = ":first-child", ce += 12) : (r4 = s2, ge(ae)), r4 !== s2 && (r4 = Fe(1)), e5 = r4, de[n4] = { nextPos: ce, result: e5 }, e5);
275769
275787
  }()) === s2 && (e4 = function() {
275770
- var e5, r4, n4 = 32 * ie + 28, o3 = ce[n4];
275771
- return o3 ? (ie = o3.nextPos, o3.result) : (t2.substr(ie, 11) === ":last-child" ? (r4 = ":last-child", ie += 11) : (r4 = s2, de(re)), r4 !== s2 && (r4 = Pe(1)), e5 = r4, ce[n4] = { nextPos: ie, result: e5 }, e5);
275788
+ var e5, r4, n4 = 36 * ce + 32, o3 = de[n4];
275789
+ return o3 ? (ce = o3.nextPos, o3.result) : (t2.substr(ce, 11) === ":last-child" ? (r4 = ":last-child", ce += 11) : (r4 = s2, ge(ie)), r4 !== s2 && (r4 = Re(1)), e5 = r4, de[n4] = { nextPos: ce, result: e5 }, e5);
275772
275790
  }()) === s2 && (e4 = function() {
275773
- var e5, r4, n4, o3, a3, i3 = 32 * ie + 29, u3 = ce[i3];
275791
+ var e5, r4, n4, o3, a3, i3 = 36 * ce + 33, u3 = de[i3];
275774
275792
  if (u3)
275775
- return ie = u3.nextPos, u3.result;
275776
- if (e5 = ie, t2.substr(ie, 11) === ":nth-child(" ? (r4 = ":nth-child(", ie += 11) : (r4 = s2, de(ne)), r4 !== s2)
275777
- if (xe() !== s2) {
275778
- if (n4 = [], N.test(t2.charAt(ie)) ? (o3 = t2.charAt(ie), ie++) : (o3 = s2, de(W)), o3 !== s2)
275793
+ return ce = u3.nextPos, u3.result;
275794
+ if (e5 = ce, t2.substr(ce, 11) === ":nth-child(" ? (r4 = ":nth-child(", ce += 11) : (r4 = s2, ge(se)), r4 !== s2)
275795
+ if (Ee() !== s2) {
275796
+ if (n4 = [], N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W)), o3 !== s2)
275779
275797
  for (;o3 !== s2; )
275780
- n4.push(o3), N.test(t2.charAt(ie)) ? (o3 = t2.charAt(ie), ie++) : (o3 = s2, de(W));
275798
+ n4.push(o3), N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W));
275781
275799
  else
275782
275800
  n4 = s2;
275783
- n4 !== s2 && (o3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 41 ? (a3 = ")", ie++) : (a3 = s2, de(z)), a3 !== s2 ? (r4 = we(parseInt(n4.join(""), 10)), e5 = r4) : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2);
275801
+ n4 !== s2 && (o3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 41 ? (a3 = ")", ce++) : (a3 = s2, ge(z)), a3 !== s2 ? (r4 = Fe(parseInt(n4.join(""), 10)), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2);
275784
275802
  } else
275785
- ie = e5, e5 = s2;
275803
+ ce = e5, e5 = s2;
275786
275804
  else
275787
- ie = e5, e5 = s2;
275788
- return ce[i3] = { nextPos: ie, result: e5 }, e5;
275805
+ ce = e5, e5 = s2;
275806
+ return de[i3] = { nextPos: ce, result: e5 }, e5;
275789
275807
  }()) === s2 && (e4 = function() {
275790
- var e5, r4, n4, o3, a3, i3 = 32 * ie + 30, u3 = ce[i3];
275808
+ var e5, r4, n4, o3, a3, i3 = 36 * ce + 34, u3 = de[i3];
275791
275809
  if (u3)
275792
- return ie = u3.nextPos, u3.result;
275793
- if (e5 = ie, t2.substr(ie, 16) === ":nth-last-child(" ? (r4 = ":nth-last-child(", ie += 16) : (r4 = s2, de(oe)), r4 !== s2)
275794
- if (xe() !== s2) {
275795
- if (n4 = [], N.test(t2.charAt(ie)) ? (o3 = t2.charAt(ie), ie++) : (o3 = s2, de(W)), o3 !== s2)
275810
+ return ce = u3.nextPos, u3.result;
275811
+ if (e5 = ce, t2.substr(ce, 16) === ":nth-last-child(" ? (r4 = ":nth-last-child(", ce += 16) : (r4 = s2, ge(ue)), r4 !== s2)
275812
+ if (Ee() !== s2) {
275813
+ if (n4 = [], N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W)), o3 !== s2)
275796
275814
  for (;o3 !== s2; )
275797
- n4.push(o3), N.test(t2.charAt(ie)) ? (o3 = t2.charAt(ie), ie++) : (o3 = s2, de(W));
275815
+ n4.push(o3), N.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(W));
275798
275816
  else
275799
275817
  n4 = s2;
275800
- n4 !== s2 && (o3 = xe()) !== s2 ? (t2.charCodeAt(ie) === 41 ? (a3 = ")", ie++) : (a3 = s2, de(z)), a3 !== s2 ? (r4 = Pe(parseInt(n4.join(""), 10)), e5 = r4) : (ie = e5, e5 = s2)) : (ie = e5, e5 = s2);
275818
+ n4 !== s2 && (o3 = Ee()) !== s2 ? (t2.charCodeAt(ce) === 41 ? (a3 = ")", ce++) : (a3 = s2, ge(z)), a3 !== s2 ? (r4 = Re(parseInt(n4.join(""), 10)), e5 = r4) : (ce = e5, e5 = s2)) : (ce = e5, e5 = s2);
275801
275819
  } else
275802
- ie = e5, e5 = s2;
275820
+ ce = e5, e5 = s2;
275803
275821
  else
275804
- ie = e5, e5 = s2;
275805
- return ce[i3] = { nextPos: ie, result: e5 }, e5;
275822
+ ce = e5, e5 = s2;
275823
+ return de[i3] = { nextPos: ce, result: e5 }, e5;
275806
275824
  }()) === s2 && (e4 = function() {
275807
- var e5, r4, n4, o3 = 32 * ie + 31, a3 = ce[o3];
275808
- return a3 ? (ie = a3.nextPos, a3.result) : (e5 = ie, t2.charCodeAt(ie) === 58 ? (r4 = ":", ie++) : (r4 = s2, de(ae)), r4 !== s2 && (n4 = ve()) !== s2 ? e5 = r4 = { type: "class", name: n4 } : (ie = e5, e5 = s2), ce[o3] = { nextPos: ie, result: e5 }, e5);
275809
- }()), ce[r3] = { nextPos: ie, result: e4 }, e4);
275825
+ var e5, r4, n4, o3 = 36 * ce + 35, a3 = de[o3];
275826
+ return a3 ? (ce = a3.nextPos, a3.result) : (e5 = ce, t2.charCodeAt(ce) === 58 ? (r4 = ":", ce++) : (r4 = s2, ge(le)), r4 !== s2 && (n4 = be()) !== s2 ? e5 = r4 = { type: "class", name: n4 } : (ce = e5, e5 = s2), de[o3] = { nextPos: ce, result: e5 }, e5);
275827
+ }()), de[r3] = { nextPos: ce, result: e4 }, e4);
275810
275828
  }
275811
- function Ce() {
275812
- var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 32 * ie + 15, f3 = ce[c3];
275829
+ function De() {
275830
+ var e4, r3, n3, o3, a3, i3, u3, l3, c3 = 36 * ce + 15, f3 = de[c3];
275813
275831
  if (f3)
275814
- return ie = f3.nextPos, f3.result;
275815
- if (e4 = ie, (r3 = ve()) !== s2) {
275816
- for (n3 = [], o3 = ie, t2.charCodeAt(ie) === 46 ? (a3 = ".", ie++) : (a3 = s2, de(D)), a3 !== s2 && (i3 = ve()) !== s2 ? o3 = a3 = [a3, i3] : (ie = o3, o3 = s2);o3 !== s2; )
275817
- n3.push(o3), o3 = ie, t2.charCodeAt(ie) === 46 ? (a3 = ".", ie++) : (a3 = s2, de(D)), a3 !== s2 && (i3 = ve()) !== s2 ? o3 = a3 = [a3, i3] : (ie = o3, o3 = s2);
275818
- n3 !== s2 ? (u3 = r3, l3 = n3, e4 = r3 = [].concat.apply([u3], l3).join("")) : (ie = e4, e4 = s2);
275832
+ return ce = f3.nextPos, f3.result;
275833
+ if (e4 = ce, (r3 = be()) !== s2) {
275834
+ for (n3 = [], o3 = ce, t2.charCodeAt(ce) === 46 ? (a3 = ".", ce++) : (a3 = s2, ge(D)), a3 !== s2 && (i3 = be()) !== s2 ? o3 = a3 = [a3, i3] : (ce = o3, o3 = s2);o3 !== s2; )
275835
+ n3.push(o3), o3 = ce, t2.charCodeAt(ce) === 46 ? (a3 = ".", ce++) : (a3 = s2, ge(D)), a3 !== s2 && (i3 = be()) !== s2 ? o3 = a3 = [a3, i3] : (ce = o3, o3 = s2);
275836
+ n3 !== s2 ? (u3 = r3, l3 = n3, e4 = r3 = [].concat.apply([u3], l3).join("")) : (ce = e4, e4 = s2);
275819
275837
  } else
275820
- ie = e4, e4 = s2;
275821
- return ce[c3] = { nextPos: ie, result: e4 }, e4;
275838
+ ce = e4, e4 = s2;
275839
+ return de[c3] = { nextPos: ce, result: e4 }, e4;
275840
+ }
275841
+ function Ie() {
275842
+ var e4, r3, n3, o3, a3 = 36 * ce + 23, i3 = de[a3];
275843
+ if (i3)
275844
+ return ce = i3.nextPos, i3.result;
275845
+ if (e4 = ce, t2.charCodeAt(ce) === 91 ? (r3 = "[", ce++) : (r3 = s2, ge(E)), r3 !== s2) {
275846
+ if (n3 = [], J.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(Q)), o3 === s2 && (o3 = je()), o3 !== s2)
275847
+ for (;o3 !== s2; )
275848
+ n3.push(o3), J.test(t2.charAt(ce)) ? (o3 = t2.charAt(ce), ce++) : (o3 = s2, ge(Q)), o3 === s2 && (o3 = je());
275849
+ else
275850
+ n3 = s2;
275851
+ n3 !== s2 ? (t2.charCodeAt(ce) === 93 ? (o3 = "]", ce++) : (o3 = s2, ge(b)), o3 !== s2 ? e4 = r3 = "[" + n3.join("") + "]" : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2);
275852
+ } else
275853
+ ce = e4, e4 = s2;
275854
+ return de[a3] = { nextPos: ce, result: e4 }, e4;
275855
+ }
275856
+ function je() {
275857
+ var e4, r3, n3, o3 = 36 * ce + 24, a3 = de[o3];
275858
+ return a3 ? (ce = a3.nextPos, a3.result) : (e4 = ce, t2.charCodeAt(ce) === 92 ? (r3 = "\\", ce++) : (r3 = s2, ge(R)), r3 !== s2 ? (t2.length > ce ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(O)), n3 !== s2 ? e4 = r3 = "\\" + n3 : (ce = e4, e4 = s2)) : (ce = e4, e4 = s2), de[o3] = { nextPos: ce, result: e4 }, e4);
275859
+ }
275860
+ function Te() {
275861
+ var e4, r3, n3, o3 = 36 * ce + 25, a3 = de[o3];
275862
+ if (a3)
275863
+ return ce = a3.nextPos, a3.result;
275864
+ if (r3 = [], X.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(Z)), n3 !== s2)
275865
+ for (;n3 !== s2; )
275866
+ r3.push(n3), X.test(t2.charAt(ce)) ? (n3 = t2.charAt(ce), ce++) : (n3 = s2, ge(Z));
275867
+ else
275868
+ r3 = s2;
275869
+ return r3 !== s2 && (r3 = r3.join("")), e4 = r3, de[o3] = { nextPos: ce, result: e4 }, e4;
275822
275870
  }
275823
- function we(e4) {
275871
+ function Fe(e4) {
275824
275872
  return { type: "nth-child", index: { type: "literal", value: e4 } };
275825
275873
  }
275826
- function Pe(e4) {
275874
+ function Re(e4) {
275827
275875
  return { type: "nth-last-child", index: { type: "literal", value: e4 } };
275828
275876
  }
275829
- if ((n2 = l2()) !== s2 && ie === t2.length)
275877
+ if ((n2 = l2()) !== s2 && ce === t2.length)
275830
275878
  return n2;
275831
- throw n2 !== s2 && ie < t2.length && de({ type: "end" }), o2 = le, a2 = ue < t2.length ? t2.charAt(ue) : null, i2 = ue < t2.length ? ye(ue, ue + 1) : ye(ue, ue), new e3(e3.buildMessage(o2, a2), o2, a2, i2);
275879
+ throw n2 !== s2 && ce < t2.length && ge({ type: "end" }), o2 = he, a2 = pe < t2.length ? t2.charAt(pe) : null, i2 = pe < t2.length ? ve(pe, pe + 1) : ve(pe, pe), new e3(e3.buildMessage(o2, a2), o2, a2, i2);
275832
275880
  } };
275833
275881
  }());
275834
275882
  });
@@ -275852,198 +275900,198 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
275852
275900
  }
275853
275901
  return f(e2);
275854
275902
  }
275855
- function f(t2) {
275856
- switch (t2.type) {
275903
+ function f(e2) {
275904
+ switch (e2.type) {
275857
275905
  case "wildcard":
275858
275906
  return function() {
275859
275907
  return true;
275860
275908
  };
275861
275909
  case "identifier":
275862
- var r2 = t2.value.toLowerCase();
275863
- return function(e2, t3, n3) {
275864
- var o3 = n3 && n3.nodeTypeKey || "type";
275865
- return r2 === e2[o3].toLowerCase();
275910
+ var t2 = e2.value.toLowerCase();
275911
+ return function(e3, r3, n2) {
275912
+ var o3 = n2 && n2.nodeTypeKey || "type";
275913
+ return t2 === e3[o3].toLowerCase();
275866
275914
  };
275867
275915
  case "exactNode":
275868
- return function(e2, t3) {
275916
+ return function(e3, t3) {
275869
275917
  return t3.length === 0;
275870
275918
  };
275871
275919
  case "field":
275872
- var n2 = t2.name.split(".");
275873
- return function(e2, t3) {
275874
- return function e(t4, r3, n3, o3) {
275875
- for (var a3 = r3, i2 = o3;i2 < n3.length; ++i2) {
275920
+ var r2 = e2.name.split(".");
275921
+ return function(e3, t3) {
275922
+ return function e(t4, r3, n2, o3) {
275923
+ for (var a3 = r3, i2 = o3;i2 < n2.length; ++i2) {
275876
275924
  if (a3 == null)
275877
275925
  return false;
275878
- var s3 = a3[n3[i2]];
275926
+ var s3 = a3[n2[i2]];
275879
275927
  if (Array.isArray(s3)) {
275880
275928
  for (var u2 = 0;u2 < s3.length; ++u2)
275881
- if (e(t4, s3[u2], n3, i2 + 1))
275929
+ if (e(t4, s3[u2], n2, i2 + 1))
275882
275930
  return true;
275883
275931
  return false;
275884
275932
  }
275885
275933
  a3 = s3;
275886
275934
  }
275887
275935
  return t4 === a3;
275888
- }(e2, t3[n2.length - 1], n2, 0);
275936
+ }(e3, t3[r2.length - 1], r2, 0);
275889
275937
  };
275890
275938
  case "matches":
275891
- var o2 = t2.selectors.map(c);
275892
- return function(e2, t3, r3) {
275893
- for (var n3 = 0;n3 < o2.length; ++n3)
275894
- if (o2[n3](e2, t3, r3))
275939
+ var o2 = e2.selectors.map(c);
275940
+ return function(e3, t3, r3) {
275941
+ for (var n2 = 0;n2 < o2.length; ++n2)
275942
+ if (o2[n2](e3, t3, r3))
275895
275943
  return true;
275896
275944
  return false;
275897
275945
  };
275898
275946
  case "compound":
275899
- var a2 = t2.selectors.map(c);
275900
- return function(e2, t3, r3) {
275901
- for (var n3 = 0;n3 < a2.length; ++n3)
275902
- if (!a2[n3](e2, t3, r3))
275947
+ var a2 = e2.selectors.map(c);
275948
+ return function(e3, t3, r3) {
275949
+ for (var n2 = 0;n2 < a2.length; ++n2)
275950
+ if (!a2[n2](e3, t3, r3))
275903
275951
  return false;
275904
275952
  return true;
275905
275953
  };
275906
275954
  case "not":
275907
- var s2 = t2.selectors.map(c);
275908
- return function(e2, t3, r3) {
275909
- for (var n3 = 0;n3 < s2.length; ++n3)
275910
- if (s2[n3](e2, t3, r3))
275955
+ var s2 = e2.selectors.map(c);
275956
+ return function(e3, t3, r3) {
275957
+ for (var n2 = 0;n2 < s2.length; ++n2)
275958
+ if (s2[n2](e3, t3, r3))
275911
275959
  return false;
275912
275960
  return true;
275913
275961
  };
275914
275962
  case "has":
275915
- var l2 = t2.selectors.map(c);
275916
- return function(e2, t3, r3) {
275917
- var n3 = false, o3 = [];
275918
- return i.traverse(e2, { enter: function(e3, t4) {
275963
+ var l2 = e2.selectors.map(c);
275964
+ return function(e3, t3, r3) {
275965
+ var n2 = false, o3 = [];
275966
+ return i.traverse(e3, { enter: function(e4, t4) {
275919
275967
  t4 != null && o3.unshift(t4);
275920
275968
  for (var a3 = 0;a3 < l2.length; ++a3)
275921
- if (l2[a3](e3, o3, r3))
275922
- return n3 = true, void this.break();
275969
+ if (l2[a3](e4, o3, r3))
275970
+ return n2 = true, void this.break();
275923
275971
  }, leave: function() {
275924
275972
  o3.shift();
275925
- }, keys: r3 && r3.visitorKeys, fallback: r3 && r3.fallback || "iteration" }), n3;
275973
+ }, keys: r3 && r3.visitorKeys, fallback: r3 && r3.fallback || "iteration" }), n2;
275926
275974
  };
275927
275975
  case "child":
275928
- var f2 = c(t2.left), p2 = c(t2.right);
275929
- return function(e2, t3, r3) {
275930
- return !!(t3.length > 0 && p2(e2, t3, r3)) && f2(t3[0], t3.slice(1), r3);
275976
+ var f2 = c(e2.left), p2 = c(e2.right);
275977
+ return function(e3, t3, r3) {
275978
+ return !!(t3.length > 0 && p2(e3, t3, r3)) && f2(t3[0], t3.slice(1), r3);
275931
275979
  };
275932
275980
  case "descendant":
275933
- var h2 = c(t2.left), x2 = c(t2.right);
275934
- return function(e2, t3, r3) {
275935
- if (x2(e2, t3, r3)) {
275936
- for (var n3 = 0, o3 = t3.length;n3 < o3; ++n3)
275937
- if (h2(t3[n3], t3.slice(n3 + 1), r3))
275981
+ var h2 = c(e2.left), x2 = c(e2.right);
275982
+ return function(e3, t3, r3) {
275983
+ if (x2(e3, t3, r3)) {
275984
+ for (var n2 = 0, o3 = t3.length;n2 < o3; ++n2)
275985
+ if (h2(t3[n2], t3.slice(n2 + 1), r3))
275938
275986
  return true;
275939
275987
  }
275940
275988
  return false;
275941
275989
  };
275942
275990
  case "attribute":
275943
- var v2 = t2.name.split(".");
275944
- switch (t2.operator) {
275991
+ var v2 = e2.name.split(".");
275992
+ switch (e2.operator) {
275945
275993
  case undefined:
275946
- return function(e2) {
275947
- return u(e2, v2) != null;
275994
+ return function(e3) {
275995
+ return u(e3, v2) != null;
275948
275996
  };
275949
275997
  case "=":
275950
- switch (t2.value.type) {
275998
+ switch (e2.value.type) {
275951
275999
  case "regexp":
275952
- return function(e2) {
275953
- var r3 = u(e2, v2);
275954
- return typeof r3 == "string" && t2.value.value.test(r3);
276000
+ return function(t3) {
276001
+ var r3 = u(t3, v2);
276002
+ return typeof r3 == "string" && e2.value.value.test(r3);
275955
276003
  };
275956
276004
  case "literal":
275957
- var g2 = "".concat(t2.value.value);
275958
- return function(e2) {
275959
- return g2 === "".concat(u(e2, v2));
276005
+ var g2 = "".concat(e2.value.value);
276006
+ return function(e3) {
276007
+ return g2 === "".concat(u(e3, v2));
275960
276008
  };
275961
276009
  case "type":
275962
- return function(r3) {
275963
- return t2.value.value === e(u(r3, v2));
276010
+ return function(t3) {
276011
+ return e2.value.value === n(u(t3, v2));
275964
276012
  };
275965
276013
  }
275966
- throw new Error("Unknown selector value type: ".concat(t2.value.type));
276014
+ throw new Error("Unknown selector value type: ".concat(e2.value.type));
275967
276015
  case "!=":
275968
- switch (t2.value.type) {
276016
+ switch (e2.value.type) {
275969
276017
  case "regexp":
275970
- return function(e2) {
275971
- return !t2.value.value.test(u(e2, v2));
276018
+ return function(t3) {
276019
+ return !e2.value.value.test(u(t3, v2));
275972
276020
  };
275973
276021
  case "literal":
275974
- var A2 = "".concat(t2.value.value);
275975
- return function(e2) {
275976
- return A2 !== "".concat(u(e2, v2));
276022
+ var A2 = "".concat(e2.value.value);
276023
+ return function(e3) {
276024
+ return A2 !== "".concat(u(e3, v2));
275977
276025
  };
275978
276026
  case "type":
275979
- return function(r3) {
275980
- return t2.value.value !== e(u(r3, v2));
276027
+ return function(t3) {
276028
+ return e2.value.value !== n(u(t3, v2));
275981
276029
  };
275982
276030
  }
275983
- throw new Error("Unknown selector value type: ".concat(t2.value.type));
276031
+ throw new Error("Unknown selector value type: ".concat(e2.value.type));
275984
276032
  case "<=":
275985
- return function(e2) {
275986
- return u(e2, v2) <= t2.value.value;
276033
+ return function(t3) {
276034
+ return u(t3, v2) <= e2.value.value;
275987
276035
  };
275988
276036
  case "<":
275989
- return function(e2) {
275990
- return u(e2, v2) < t2.value.value;
276037
+ return function(t3) {
276038
+ return u(t3, v2) < e2.value.value;
275991
276039
  };
275992
276040
  case ">":
275993
- return function(e2) {
275994
- return u(e2, v2) > t2.value.value;
276041
+ return function(t3) {
276042
+ return u(t3, v2) > e2.value.value;
275995
276043
  };
275996
276044
  case ">=":
275997
- return function(e2) {
275998
- return u(e2, v2) >= t2.value.value;
276045
+ return function(t3) {
276046
+ return u(t3, v2) >= e2.value.value;
275999
276047
  };
276000
276048
  }
276001
- throw new Error("Unknown operator: ".concat(t2.operator));
276049
+ throw new Error("Unknown operator: ".concat(e2.operator));
276002
276050
  case "sibling":
276003
- var E = c(t2.left), b = c(t2.right);
276004
- return function(e2, r3, n3) {
276005
- return b(e2, r3, n3) && y(e2, E, r3, "LEFT_SIDE", n3) || t2.left.subject && E(e2, r3, n3) && y(e2, b, r3, "RIGHT_SIDE", n3);
276051
+ var E = c(e2.left), b = c(e2.right);
276052
+ return function(t3, r3, n2) {
276053
+ return b(t3, r3, n2) && d(t3, E, r3, "LEFT_SIDE", n2) || e2.left.subject && E(t3, r3, n2) && d(t3, b, r3, "RIGHT_SIDE", n2);
276006
276054
  };
276007
276055
  case "adjacent":
276008
- var S = c(t2.left), _ = c(t2.right);
276009
- return function(e2, r3, n3) {
276010
- return _(e2, r3, n3) && d(e2, S, r3, "LEFT_SIDE", n3) || t2.right.subject && S(e2, r3, n3) && d(e2, _, r3, "RIGHT_SIDE", n3);
276056
+ var S = c(e2.left), _ = c(e2.right);
276057
+ return function(t3, r3, n2) {
276058
+ return _(t3, r3, n2) && y(t3, S, r3, "LEFT_SIDE", n2) || e2.right.subject && S(t3, r3, n2) && y(t3, _, r3, "RIGHT_SIDE", n2);
276011
276059
  };
276012
276060
  case "nth-child":
276013
- var C = t2.index.value, w = c(t2.right);
276014
- return function(e2, t3, r3) {
276015
- return w(e2, t3, r3) && m(e2, t3, C, r3);
276061
+ var C = e2.index.value, P = c(e2.right);
276062
+ return function(e3, t3, r3) {
276063
+ return P(e3, t3, r3) && m(e3, t3, C, r3);
276016
276064
  };
276017
276065
  case "nth-last-child":
276018
- var P = -t2.index.value, k = c(t2.right);
276019
- return function(e2, t3, r3) {
276020
- return k(e2, t3, r3) && m(e2, t3, P, r3);
276066
+ var w = -e2.index.value, k = c(e2.right);
276067
+ return function(e3, t3, r3) {
276068
+ return k(e3, t3, r3) && m(e3, t3, w, r3);
276021
276069
  };
276022
276070
  case "class":
276023
- var D = t2.name.toLowerCase();
276024
- return function(e2, r3, n3) {
276025
- if (n3 && n3.matchClass)
276026
- return n3.matchClass(t2.name, e2, r3);
276027
- if (n3 && n3.nodeTypeKey)
276071
+ var D = e2.name.toLowerCase();
276072
+ return function(t3, r3, n2) {
276073
+ if (n2 && n2.matchClass)
276074
+ return n2.matchClass(e2.name, t3, r3);
276075
+ if (n2 && n2.nodeTypeKey)
276028
276076
  return false;
276029
276077
  switch (D) {
276030
276078
  case "statement":
276031
- if (e2.type.slice(-9) === "Statement")
276079
+ if (t3.type.slice(-9) === "Statement")
276032
276080
  return true;
276033
276081
  case "declaration":
276034
- return e2.type.slice(-11) === "Declaration";
276082
+ return t3.type.slice(-11) === "Declaration";
276035
276083
  case "pattern":
276036
- if (e2.type.slice(-7) === "Pattern")
276084
+ if (t3.type.slice(-7) === "Pattern")
276037
276085
  return true;
276038
276086
  case "expression":
276039
- return e2.type.slice(-10) === "Expression" || e2.type.slice(-7) === "Literal" || e2.type === "Identifier" && (r3.length === 0 || r3[0].type !== "MetaProperty") || e2.type === "MetaProperty";
276087
+ return t3.type.slice(-10) === "Expression" || t3.type.slice(-7) === "Literal" || t3.type === "Identifier" && (r3.length === 0 || r3[0].type !== "MetaProperty") || t3.type === "MetaProperty";
276040
276088
  case "function":
276041
- return e2.type === "FunctionDeclaration" || e2.type === "FunctionExpression" || e2.type === "ArrowFunctionExpression";
276089
+ return t3.type === "FunctionDeclaration" || t3.type === "FunctionExpression" || t3.type === "ArrowFunctionExpression";
276042
276090
  }
276043
- throw new Error("Unknown class name: ".concat(t2.name));
276091
+ throw new Error("Unknown class name: ".concat(e2.name));
276044
276092
  };
276045
276093
  }
276046
- throw new Error("Unknown selector type: ".concat(t2.type));
276094
+ throw new Error("Unknown selector type: ".concat(e2.type));
276047
276095
  }
276048
276096
  function p(e2, t2) {
276049
276097
  var r2 = t2 && t2.nodeTypeKey || "type", n2 = e2[r2];
@@ -276051,11 +276099,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
276051
276099
  return e3 !== r2;
276052
276100
  });
276053
276101
  }
276054
- function h(t2, r2) {
276055
- var n2 = r2 && r2.nodeTypeKey || "type";
276056
- return t2 !== null && e(t2) === "object" && typeof t2[n2] == "string";
276102
+ function h(e2, t2) {
276103
+ var r2 = t2 && t2.nodeTypeKey || "type";
276104
+ return e2 !== null && n(e2) === "object" && typeof e2[r2] == "string";
276057
276105
  }
276058
- function y(e2, r2, n2, o2, a2) {
276106
+ function d(e2, r2, n2, o2, a2) {
276059
276107
  var i2 = t(n2, 1)[0];
276060
276108
  if (!i2)
276061
276109
  return false;
@@ -276065,16 +276113,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
276065
276113
  var c2 = l2.indexOf(e2);
276066
276114
  if (c2 < 0)
276067
276115
  continue;
276068
- var f2 = undefined, y2 = undefined;
276069
- o2 === "LEFT_SIDE" ? (f2 = 0, y2 = c2) : (f2 = c2 + 1, y2 = l2.length);
276070
- for (var d2 = f2;d2 < y2; ++d2)
276071
- if (h(l2[d2], a2) && r2(l2[d2], n2, a2))
276116
+ var f2 = undefined, d2 = undefined;
276117
+ o2 === "LEFT_SIDE" ? (f2 = 0, d2 = c2) : (f2 = c2 + 1, d2 = l2.length);
276118
+ for (var y2 = f2;y2 < d2; ++y2)
276119
+ if (h(l2[y2], a2) && r2(l2[y2], n2, a2))
276072
276120
  return true;
276073
276121
  }
276074
276122
  }
276075
276123
  return false;
276076
276124
  }
276077
- function d(e2, r2, n2, o2, a2) {
276125
+ function y(e2, r2, n2, o2, a2) {
276078
276126
  var i2 = t(n2, 1)[0];
276079
276127
  if (!i2)
276080
276128
  return false;
@@ -276108,30 +276156,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
276108
276156
  }
276109
276157
  return false;
276110
276158
  }
276111
- function x(t2, n2, o2, a2) {
276112
- if (n2) {
276113
- var s2 = [], u2 = c(n2), l2 = function t(n3, o3) {
276114
- if (n3 == null || e(n3) != "object")
276159
+ function x(e2, t2, o2, a2) {
276160
+ if (t2) {
276161
+ var s2 = [], u2 = c(t2), l2 = function e(t3, o3) {
276162
+ if (t3 == null || n(t3) != "object")
276115
276163
  return [];
276116
- o3 == null && (o3 = n3);
276117
- for (var a3 = n3.subject ? [o3] : [], i2 = Object.keys(n3), s3 = 0;s3 < i2.length; ++s3) {
276118
- var u3 = i2[s3], l3 = n3[u3];
276119
- a3.push.apply(a3, r(t(l3, u3 === "left" ? l3 : o3)));
276164
+ o3 == null && (o3 = t3);
276165
+ for (var a3 = t3.subject ? [o3] : [], i2 = Object.keys(t3), s3 = 0;s3 < i2.length; ++s3) {
276166
+ var u3 = i2[s3], l3 = t3[u3];
276167
+ a3.push.apply(a3, r(e(l3, u3 === "left" ? l3 : o3)));
276120
276168
  }
276121
276169
  return a3;
276122
- }(n2).map(c);
276123
- i.traverse(t2, { enter: function(e2, t3) {
276124
- if (t3 != null && s2.unshift(t3), u2(e2, s2, a2))
276170
+ }(t2).map(c);
276171
+ i.traverse(e2, { enter: function(e3, t3) {
276172
+ if (t3 != null && s2.unshift(t3), u2(e3, s2, a2))
276125
276173
  if (l2.length)
276126
- for (var r2 = 0, n3 = l2.length;r2 < n3; ++r2) {
276127
- l2[r2](e2, s2, a2) && o2(e2, t3, s2);
276174
+ for (var r2 = 0, n2 = l2.length;r2 < n2; ++r2) {
276175
+ l2[r2](e3, s2, a2) && o2(e3, t3, s2);
276128
276176
  for (var i2 = 0, c2 = s2.length;i2 < c2; ++i2) {
276129
276177
  var f2 = s2.slice(i2 + 1);
276130
276178
  l2[r2](s2[i2], f2, a2) && o2(s2[i2], t3, f2);
276131
276179
  }
276132
276180
  }
276133
276181
  else
276134
- o2(e2, t3, s2);
276182
+ o2(e3, t3, s2);
276135
276183
  }, leave: function() {
276136
276184
  s2.shift();
276137
276185
  }, keys: a2 && a2.visitorKeys, fallback: a2 && a2.fallback || "iteration" });
@@ -289899,7 +289947,7 @@ var require_predicates3 = __commonJS((exports) => {
289899
289947
  }
289900
289948
  for (const baseType of typeAndBaseTypes) {
289901
289949
  const baseSymbol = baseType.getSymbol();
289902
- if (baseSymbol && baseSymbol.name === parentSymbol.name) {
289950
+ if (baseSymbol?.name === parentSymbol.name) {
289903
289951
  return true;
289904
289952
  }
289905
289953
  }
@@ -290310,7 +290358,7 @@ var require_misc2 = __commonJS((exports) => {
290310
290358
  return groups;
290311
290359
  }
290312
290360
  function arraysAreEqual(a, b, eq) {
290313
- return a === b || a != null && b != null && a.length === b.length && a.every((x, idx) => eq(x, b[idx]));
290361
+ return a === b || a != null && a.length === b?.length && a.every((x, idx) => eq(x, b[idx]));
290314
290362
  }
290315
290363
  function findFirstResult(inputs, getResult) {
290316
290364
  for (const element of inputs) {
@@ -292273,7 +292321,7 @@ var require_consistent_generic_constructors = __commonJS((exports) => {
292273
292321
  }
292274
292322
  const [lhsName, rhs] = getLHSRHS();
292275
292323
  const lhs = lhsName.typeAnnotation?.typeAnnotation;
292276
- if (!rhs || rhs.type !== utils_1.AST_NODE_TYPES.NewExpression || rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) {
292324
+ if (rhs?.type !== utils_1.AST_NODE_TYPES.NewExpression || rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) {
292277
292325
  return;
292278
292326
  }
292279
292327
  if (lhs && (lhs.type !== utils_1.AST_NODE_TYPES.TSTypeReference || lhs.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || lhs.typeName.name !== rhs.callee.name || isBuiltInArray(lhs.typeName))) {
@@ -294001,7 +294049,7 @@ var require_explicitReturnTypeUtils = __commonJS((exports) => {
294001
294049
  return node.type === utils_1.AST_NODE_TYPES.NewExpression;
294002
294050
  }
294003
294051
  function isPropertyOfObjectWithType(property) {
294004
- if (!property || property.type !== utils_1.AST_NODE_TYPES.Property) {
294052
+ if (property?.type !== utils_1.AST_NODE_TYPES.Property) {
294005
294053
  return false;
294006
294054
  }
294007
294055
  const objectExpr = property.parent;
@@ -298390,7 +298438,7 @@ var require_no_dupe_class_members2 = __commonJS((exports) => {
298390
298438
  if (node.computed) {
298391
298439
  return;
298392
298440
  }
298393
- if (node.value && node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) {
298441
+ if (node.value?.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) {
298394
298442
  return;
298395
298443
  }
298396
298444
  return coreListener(node);
@@ -298717,7 +298765,6 @@ var require_no_dynamic_delete = __commonJS((exports) => {
298717
298765
  description: "Disallow using the `delete` operator on computed key expressions",
298718
298766
  recommended: "strict"
298719
298767
  },
298720
- fixable: "code",
298721
298768
  messages: {
298722
298769
  dynamicDelete: "Do not delete dynamically computed property keys."
298723
298770
  },
@@ -298725,12 +298772,6 @@ var require_no_dynamic_delete = __commonJS((exports) => {
298725
298772
  },
298726
298773
  defaultOptions: [],
298727
298774
  create(context) {
298728
- function createFixer(member) {
298729
- if (member.property.type === utils_1.AST_NODE_TYPES.Literal && typeof member.property.value === "string") {
298730
- return createPropertyReplacement(member.property, `.${member.property.value}`);
298731
- }
298732
- return;
298733
- }
298734
298775
  return {
298735
298776
  "UnaryExpression[operator=delete]"(node) {
298736
298777
  if (node.argument.type !== utils_1.AST_NODE_TYPES.MemberExpression || !node.argument.computed || isAcceptableIndexExpression(node.argument.property)) {
@@ -298738,20 +298779,10 @@ var require_no_dynamic_delete = __commonJS((exports) => {
298738
298779
  }
298739
298780
  context.report({
298740
298781
  node: node.argument.property,
298741
- messageId: "dynamicDelete",
298742
- fix: createFixer(node.argument)
298782
+ messageId: "dynamicDelete"
298743
298783
  });
298744
298784
  }
298745
298785
  };
298746
- function createPropertyReplacement(property, replacement) {
298747
- return (fixer) => fixer.replaceTextRange(getTokenRange(property), replacement);
298748
- }
298749
- function getTokenRange(property) {
298750
- return [
298751
- (0, util_1.nullThrows)(context.sourceCode.getTokenBefore(property), util_1.NullThrowsReasons.MissingToken("token before", "property")).range[0],
298752
- (0, util_1.nullThrows)(context.sourceCode.getTokenAfter(property), util_1.NullThrowsReasons.MissingToken("token after", "property")).range[1]
298753
- ];
298754
- }
298755
298786
  }
298756
298787
  });
298757
298788
  function isAcceptableIndexExpression(property) {
@@ -301434,7 +301465,7 @@ var require_no_misused_promises = __commonJS((exports) => {
301434
301465
  });
301435
301466
  }
301436
301467
  function checkJSXAttribute(node) {
301437
- if (node.value == null || node.value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) {
301468
+ if (node.value?.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) {
301438
301469
  return;
301439
301470
  }
301440
301471
  const expressionContainer = services.esTreeNodeToTSNodeMap.get(node.value);
@@ -302453,7 +302484,7 @@ var require_no_redeclare2 = __commonJS((exports) => {
302453
302484
  Program(node) {
302454
302485
  const scope = context.sourceCode.getScope(node);
302455
302486
  findVariablesInScope(scope);
302456
- if (scope.type === scope_manager_1.ScopeType.global && scope.childScopes[0] && scope.block === scope.childScopes[0].block) {
302487
+ if (scope.type === scope_manager_1.ScopeType.global && scope.block === scope.childScopes[0]?.block) {
302457
302488
  findVariablesInScope(scope.childScopes[0]);
302458
302489
  }
302459
302490
  },
@@ -304294,7 +304325,7 @@ var require_no_type_alias = __commonJS((exports) => {
304294
304325
  if (type.node.type === utils_1.AST_NODE_TYPES.TSTupleType) {
304295
304326
  return true;
304296
304327
  }
304297
- if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && ["keyof", "readonly"].includes(type.node.operator) && type.node.typeAnnotation && type.node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTupleType) {
304328
+ if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && ["keyof", "readonly"].includes(type.node.operator) && type.node.typeAnnotation?.type === utils_1.AST_NODE_TYPES.TSTupleType) {
304298
304329
  return true;
304299
304330
  }
304300
304331
  return false;
@@ -309027,7 +309058,7 @@ var require_classScopeAnalyzer = __commonJS((exports) => {
309027
309058
  switch (firstDef.node.type) {
309028
309059
  case utils_1.AST_NODE_TYPES.VariableDeclarator: {
309029
309060
  const value = firstDef.node.init;
309030
- if (value == null || value.type !== utils_1.AST_NODE_TYPES.ThisExpression) {
309061
+ if (value?.type !== utils_1.AST_NODE_TYPES.ThisExpression) {
309031
309062
  return null;
309032
309063
  }
309033
309064
  if (variable.references.some((ref) => ref.isWrite() && ref.init !== true)) {
@@ -310123,6 +310154,7 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310123
310154
  },
310124
310155
  fixable: "code",
310125
310156
  messages: {
310157
+ preferOptionalSyntax: "Using `= undefined` to make a parameter optional adds unnecessary runtime logic. Use the `?` optional syntax instead.",
310126
310158
  uselessDefaultAssignment: "Default value is useless because the {{ type }} is not optional.",
310127
310159
  uselessUndefined: "Default value is useless because it is undefined. Optional {{ type }}s are already undefined by default."
310128
310160
  },
@@ -310132,8 +310164,6 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310132
310164
  create(context) {
310133
310165
  const services = (0, util_1.getParserServices)(context);
310134
310166
  const checker = services.program.getTypeChecker();
310135
- const compilerOptions = services.program.getCompilerOptions();
310136
- const isNoUncheckedIndexedAccess = tsutils.isCompilerOptionEnabled(compilerOptions, "noUncheckedIndexedAccess");
310137
310167
  function canBeUndefined(type) {
310138
310168
  if ((0, util_1.isTypeAnyType)(type) || (0, util_1.isTypeUnknownType)(type)) {
310139
310169
  return true;
@@ -310143,10 +310173,7 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310143
310173
  function getPropertyType(objectType, propertyName) {
310144
310174
  const symbol = objectType.getProperty(propertyName);
310145
310175
  if (!symbol) {
310146
- if (isNoUncheckedIndexedAccess) {
310147
- return null;
310148
- }
310149
- return objectType.getStringIndexType() ?? null;
310176
+ return null;
310150
310177
  }
310151
310178
  return checker.getTypeOfSymbol(symbol);
310152
310179
  }
@@ -310157,15 +310184,17 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310157
310184
  return tupleArgs[elementIndex];
310158
310185
  }
310159
310186
  }
310160
- if (isNoUncheckedIndexedAccess) {
310161
- return null;
310162
- }
310163
310187
  return arrayType.getNumberIndexType() ?? null;
310164
310188
  }
310165
310189
  function checkAssignmentPattern(node) {
310166
310190
  if (node.right.type === utils_1.AST_NODE_TYPES.Identifier && node.right.name === "undefined") {
310191
+ const tsNode = services.esTreeNodeToTSNodeMap.get(node);
310192
+ if (ts.isParameter(tsNode) && tsNode.type && canBeUndefined(checker.getTypeFromTypeNode(tsNode.type))) {
310193
+ reportPreferOptionalSyntax(node);
310194
+ return;
310195
+ }
310167
310196
  const type = node.parent.type === utils_1.AST_NODE_TYPES.Property || node.parent.type === utils_1.AST_NODE_TYPES.ArrayPattern ? "property" : "parameter";
310168
- reportUselessDefault(node, type, "uselessUndefined");
310197
+ reportUselessUndefined(node, type);
310169
310198
  return;
310170
310199
  }
310171
310200
  const parent = node.parent;
@@ -310179,13 +310208,16 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310179
310208
  return;
310180
310209
  }
310181
310210
  const signatures = contextualType.getCallSignatures();
310211
+ if (signatures.length === 0 || signatures[0].getDeclaration() === tsFunc) {
310212
+ return;
310213
+ }
310182
310214
  const params = signatures[0].getParameters();
310183
310215
  if (paramIndex < params.length) {
310184
310216
  const paramSymbol = params[paramIndex];
310185
310217
  if ((paramSymbol.flags & ts.SymbolFlags.Optional) === 0) {
310186
310218
  const paramType = checker.getTypeOfSymbol(paramSymbol);
310187
310219
  if (!canBeUndefined(paramType)) {
310188
- reportUselessDefault(node, "parameter", "uselessDefaultAssignment");
310220
+ reportUselessDefaultAssignment(node, "parameter");
310189
310221
  }
310190
310222
  }
310191
310223
  }
@@ -310199,20 +310231,24 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310199
310231
  return;
310200
310232
  }
310201
310233
  if (!canBeUndefined(propertyType)) {
310202
- reportUselessDefault(node, "property", "uselessDefaultAssignment");
310234
+ reportUselessDefaultAssignment(node, "property");
310203
310235
  }
310204
310236
  } else if (parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) {
310205
310237
  const sourceType = getSourceTypeForPattern(parent);
310206
310238
  if (!sourceType) {
310207
310239
  return;
310208
310240
  }
310241
+ if (!checker.isTupleType(sourceType)) {
310242
+ return;
310243
+ }
310244
+ const tupleArgs = checker.getTypeArguments(sourceType);
310209
310245
  const elementIndex = parent.elements.indexOf(node);
310210
- const elementType = getArrayElementType(sourceType, elementIndex);
310211
- if (!elementType) {
310246
+ if (elementIndex < 0 || elementIndex >= tupleArgs.length) {
310212
310247
  return;
310213
310248
  }
310249
+ const elementType = tupleArgs[elementIndex];
310214
310250
  if (!canBeUndefined(elementType)) {
310215
- reportUselessDefault(node, "property", "uselessDefaultAssignment");
310251
+ reportUselessDefaultAssignment(node, "property");
310216
310252
  }
310217
310253
  }
310218
310254
  }
@@ -310268,18 +310304,40 @@ var require_no_useless_default_assignment = __commonJS((exports) => {
310268
310304
  return null;
310269
310305
  }
310270
310306
  }
310271
- function reportUselessDefault(node, type, messageId) {
310307
+ function reportUselessDefaultAssignment(node, type) {
310272
310308
  context.report({
310273
310309
  node: node.right,
310274
- messageId,
310310
+ messageId: "uselessDefaultAssignment",
310275
310311
  data: { type },
310276
- fix(fixer) {
310277
- const start = node.left.range[1];
310278
- const end = node.range[1];
310279
- return fixer.removeRange([start, end]);
310312
+ fix: (fixer) => removeDefault(fixer, node)
310313
+ });
310314
+ }
310315
+ function reportUselessUndefined(node, type) {
310316
+ context.report({
310317
+ node: node.right,
310318
+ messageId: "uselessUndefined",
310319
+ data: { type },
310320
+ fix: (fixer) => removeDefault(fixer, node)
310321
+ });
310322
+ }
310323
+ function reportPreferOptionalSyntax(node) {
310324
+ context.report({
310325
+ node: node.right,
310326
+ messageId: "preferOptionalSyntax",
310327
+ *fix(fixer) {
310328
+ yield removeDefault(fixer, node);
310329
+ const { left } = node;
310330
+ if (left.type === utils_1.AST_NODE_TYPES.Identifier) {
310331
+ yield fixer.insertTextAfterRange([left.range[0], left.range[0] + left.name.length], "?");
310332
+ }
310280
310333
  }
310281
310334
  });
310282
310335
  }
310336
+ function removeDefault(fixer, node) {
310337
+ const start = node.left.range[1];
310338
+ const end = node.range[1];
310339
+ return fixer.removeRange([start, end]);
310340
+ }
310283
310341
  return {
310284
310342
  AssignmentPattern: checkAssignmentPattern
310285
310343
  };
@@ -312109,7 +312167,7 @@ var require_prefer_namespace_keyword = __commonJS((exports) => {
312109
312167
  return;
312110
312168
  }
312111
312169
  const moduleType = context.sourceCode.getTokenBefore(node.id);
312112
- if (moduleType && moduleType.type === utils_1.AST_TOKEN_TYPES.Identifier && moduleType.value === "module") {
312170
+ if (moduleType?.type === utils_1.AST_TOKEN_TYPES.Identifier && moduleType.value === "module") {
312113
312171
  context.report({
312114
312172
  node,
312115
312173
  messageId: "useNamespace",
@@ -312461,7 +312519,7 @@ var require_prefer_nullish_coalescing = __commonJS((exports) => {
312461
312519
  } else if (node.consequent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) {
312462
312520
  assignmentExpression = node.consequent.expression;
312463
312521
  }
312464
- if (!assignmentExpression || assignmentExpression.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || !isMemberAccessLike(assignmentExpression.left)) {
312522
+ if (assignmentExpression?.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || !isMemberAccessLike(assignmentExpression.left)) {
312465
312523
  return;
312466
312524
  }
312467
312525
  const nullishCoalescingLeftNode = assignmentExpression.left;
@@ -312981,12 +313039,18 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
312981
313039
  };
312982
313040
  }();
312983
313041
  Object.defineProperty(exports, "__esModule", { value: true });
312984
- exports.ComparisonType = exports.NullishComparisonType = exports.OperandValidity = undefined;
313042
+ exports.ComparisonType = exports.NullishComparisonType = exports.OperandValidity = exports.Yoda = undefined;
312985
313043
  exports.gatherLogicalOperands = gatherLogicalOperands;
312986
313044
  var utils_1 = require_dist10();
312987
313045
  var ts_api_utils_1 = require_lib4();
312988
313046
  var ts = __importStar(require_typescript());
312989
313047
  var util_1 = require_util3();
313048
+ var Yoda;
313049
+ (function(Yoda2) {
313050
+ Yoda2[Yoda2["Yes"] = 0] = "Yes";
313051
+ Yoda2[Yoda2["No"] = 1] = "No";
313052
+ Yoda2[Yoda2["Unknown"] = 2] = "Unknown";
313053
+ })(Yoda || (exports.Yoda = Yoda = {}));
312990
313054
  var ComparisonValueType;
312991
313055
  (function(ComparisonValueType2) {
312992
313056
  ComparisonValueType2["Null"] = "Null";
@@ -313129,7 +313193,7 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
313129
313193
  }
313130
313194
  const binaryComparisonChain = getBinaryComparisonChain(operand);
313131
313195
  if (binaryComparisonChain) {
313132
- const { comparedName, comparedValue: comparedValue2, isYoda: isYoda2 } = binaryComparisonChain;
313196
+ const { comparedName, comparedValue: comparedValue2, yoda } = binaryComparisonChain;
313133
313197
  switch (operand.operator) {
313134
313198
  case "==":
313135
313199
  case "===": {
@@ -313138,9 +313202,9 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
313138
313202
  comparedName,
313139
313203
  comparisonType,
313140
313204
  comparisonValue: comparedValue2,
313141
- isYoda: isYoda2,
313142
313205
  node: operand,
313143
- type: OperandValidity.Last
313206
+ type: OperandValidity.Last,
313207
+ yoda
313144
313208
  });
313145
313209
  continue;
313146
313210
  }
@@ -313151,9 +313215,9 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
313151
313215
  comparedName,
313152
313216
  comparisonType,
313153
313217
  comparisonValue: comparedValue2,
313154
- isYoda: isYoda2,
313155
313218
  node: operand,
313156
- type: OperandValidity.Last
313219
+ type: OperandValidity.Last,
313220
+ yoda
313157
313221
  });
313158
313222
  continue;
313159
313223
  }
@@ -313234,26 +313298,40 @@ var require_gatherLogicalOperands = __commonJS((exports) => {
313234
313298
  }
313235
313299
  return null;
313236
313300
  }
313301
+ function isMemberBasedExpression(node2) {
313302
+ if (node2.type === utils_1.AST_NODE_TYPES.MemberExpression) {
313303
+ return true;
313304
+ }
313305
+ if (node2.type === utils_1.AST_NODE_TYPES.CallExpression && node2.callee.type === utils_1.AST_NODE_TYPES.MemberExpression) {
313306
+ return true;
313307
+ }
313308
+ return false;
313309
+ }
313237
313310
  function getBinaryComparisonChain(node2) {
313238
313311
  const { left, right } = node2;
313239
- let isYoda = false;
313240
- const isLeftMemberExpression = left.type === utils_1.AST_NODE_TYPES.MemberExpression;
313241
- const isRightMemberExpression = right.type === utils_1.AST_NODE_TYPES.MemberExpression;
313312
+ const isLeftMemberExpression = isMemberBasedExpression(left);
313313
+ const isRightMemberExpression = isMemberBasedExpression(right);
313242
313314
  if (isLeftMemberExpression && !isRightMemberExpression) {
313243
313315
  const [comparedName, comparedValue] = [left, right];
313244
313316
  return {
313245
313317
  comparedName,
313246
313318
  comparedValue,
313247
- isYoda
313319
+ yoda: Yoda.No
313248
313320
  };
313249
313321
  }
313250
313322
  if (!isLeftMemberExpression && isRightMemberExpression) {
313251
313323
  const [comparedName, comparedValue] = [right, left];
313252
- isYoda = true;
313253
313324
  return {
313254
313325
  comparedName,
313255
313326
  comparedValue,
313256
- isYoda
313327
+ yoda: Yoda.Yes
313328
+ };
313329
+ }
313330
+ if (isLeftMemberExpression && isRightMemberExpression) {
313331
+ return {
313332
+ comparedName: left,
313333
+ comparedValue: right,
313334
+ yoda: Yoda.Unknown
313257
313335
  };
313258
313336
  }
313259
313337
  return null;
@@ -313424,6 +313502,40 @@ var require_analyzeChain = __commonJS((exports) => {
313424
313502
  return null;
313425
313503
  }
313426
313504
  };
313505
+ var resolveOperandSubset = (previousOperand, lastChainOperand) => {
313506
+ const isNameSubset = (0, compareNodes_1.compareNodes)(previousOperand.comparedName, lastChainOperand.comparedName) === compareNodes_1.NodeComparisonResult.Subset;
313507
+ if (lastChainOperand.yoda !== gatherLogicalOperands_1.Yoda.Unknown) {
313508
+ return {
313509
+ comparedName: lastChainOperand.comparedName,
313510
+ comparisonValue: lastChainOperand.comparisonValue,
313511
+ isSubset: isNameSubset,
313512
+ isYoda: lastChainOperand.yoda === gatherLogicalOperands_1.Yoda.Yes
313513
+ };
313514
+ }
313515
+ const isValueSubset = (0, compareNodes_1.compareNodes)(previousOperand.comparedName, lastChainOperand.comparisonValue) === compareNodes_1.NodeComparisonResult.Subset;
313516
+ if (isNameSubset && !isValueSubset) {
313517
+ return {
313518
+ comparedName: lastChainOperand.comparedName,
313519
+ comparisonValue: lastChainOperand.comparisonValue,
313520
+ isSubset: true,
313521
+ isYoda: false
313522
+ };
313523
+ }
313524
+ if (!isNameSubset && isValueSubset) {
313525
+ return {
313526
+ comparedName: lastChainOperand.comparisonValue,
313527
+ comparisonValue: lastChainOperand.comparedName,
313528
+ isSubset: true,
313529
+ isYoda: true
313530
+ };
313531
+ }
313532
+ return {
313533
+ comparedName: lastChainOperand.comparisonValue,
313534
+ comparisonValue: lastChainOperand.comparisonValue,
313535
+ isSubset: false,
313536
+ isYoda: true
313537
+ };
313538
+ };
313427
313539
  function getReportRange(chain, boundary, sourceCode) {
313428
313540
  const leftNode = chain[0].node;
313429
313541
  const rightNode = chain[chain.length - 1].node;
@@ -313641,10 +313753,15 @@ var require_analyzeChain = __commonJS((exports) => {
313641
313753
  }
313642
313754
  const lastOperand = subChain.flat().at(-1);
313643
313755
  if (lastOperand && lastChainOperand) {
313644
- const comparisonResult = (0, compareNodes_1.compareNodes)(lastOperand.comparedName, lastChainOperand.comparedName);
313645
313756
  const isValidLastChainOperand = operator === "&&" ? isValidAndLastChainOperand : isValidOrLastChainOperand;
313646
- if (comparisonResult === compareNodes_1.NodeComparisonResult.Subset && isValidLastChainOperand(lastChainOperand.comparisonValue, lastChainOperand.comparisonType, parserServices)) {
313647
- lastChain = lastChainOperand;
313757
+ const { comparedName, comparisonValue, isSubset, isYoda } = resolveOperandSubset(lastOperand, lastChainOperand);
313758
+ if (isSubset && isValidLastChainOperand(comparisonValue, lastChainOperand.comparisonType, parserServices)) {
313759
+ lastChain = {
313760
+ ...lastChainOperand,
313761
+ comparedName,
313762
+ comparisonValue,
313763
+ isYoda
313764
+ };
313648
313765
  }
313649
313766
  }
313650
313767
  maybeReportThenReset();
@@ -318452,7 +318569,7 @@ var require_unified_signatures = __commonJS((exports) => {
318452
318569
  return parametersHaveEqualSigils(a, b) && a.type !== utils_1.AST_NODE_TYPES.RestElement ? { kind: "single-parameter-difference", p0: a, p1: b } : undefined;
318453
318570
  }
318454
318571
  function isThisParam(param) {
318455
- return param != null && param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === "this";
318572
+ return param?.type === utils_1.AST_NODE_TYPES.Identifier && param.name === "this";
318456
318573
  }
318457
318574
  function isThisVoidParam(param) {
318458
318575
  return isThisParam(param) && param.typeAnnotation?.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSVoidKeyword;
@@ -318544,7 +318661,7 @@ var require_unified_signatures = __commonJS((exports) => {
318544
318661
  return a === b || a != null && b != null && context.sourceCode.getText(a.typeAnnotation) === context.sourceCode.getText(b.typeAnnotation);
318545
318662
  }
318546
318663
  function constraintsAreEqual(a, b) {
318547
- return a === b || a != null && b != null && a.type === b.type;
318664
+ return a === b || a != null && a.type === b?.type;
318548
318665
  }
318549
318666
  function getIndexOfFirstDifference(a, b, equal) {
318550
318667
  for (let i = 0;i < a.length && i < b.length; i++) {
@@ -318586,7 +318703,7 @@ var require_unified_signatures = __commonJS((exports) => {
318586
318703
  }
318587
318704
  function addOverload(signature, key, containingNode) {
318588
318705
  key ??= getOverloadKey(signature);
318589
- if (currentScope && (containingNode ?? signature).parent === currentScope.parent) {
318706
+ if ((containingNode ?? signature).parent === currentScope?.parent) {
318590
318707
  const overloads = currentScope.overloads.get(key);
318591
318708
  if (overloads != null) {
318592
318709
  overloads.push(signature);
@@ -319218,7 +319335,7 @@ var require_rules4 = __commonJS((exports, module) => {
319218
319335
  var require_package7 = __commonJS((exports, module) => {
319219
319336
  module.exports = {
319220
319337
  name: "@typescript-eslint/eslint-plugin",
319221
- version: "8.50.1",
319338
+ version: "8.51.0",
319222
319339
  description: "TypeScript plugin for ESLint",
319223
319340
  files: [
319224
319341
  "dist",
@@ -319277,22 +319394,21 @@ var require_package7 = __commonJS((exports, module) => {
319277
319394
  },
319278
319395
  dependencies: {
319279
319396
  "@eslint-community/regexpp": "^4.10.0",
319280
- "@typescript-eslint/scope-manager": "8.50.1",
319281
- "@typescript-eslint/type-utils": "8.50.1",
319282
- "@typescript-eslint/utils": "8.50.1",
319283
- "@typescript-eslint/visitor-keys": "8.50.1",
319397
+ "@typescript-eslint/scope-manager": "8.51.0",
319398
+ "@typescript-eslint/type-utils": "8.51.0",
319399
+ "@typescript-eslint/utils": "8.51.0",
319400
+ "@typescript-eslint/visitor-keys": "8.51.0",
319284
319401
  ignore: "^7.0.0",
319285
319402
  "natural-compare": "^1.4.0",
319286
- "ts-api-utils": "^2.1.0"
319403
+ "ts-api-utils": "^2.2.0"
319287
319404
  },
319288
319405
  devDependencies: {
319289
319406
  "@types/mdast": "^4.0.3",
319290
319407
  "@types/natural-compare": "*",
319291
- "@typescript-eslint/rule-schema-to-typescript-types": "8.50.1",
319292
- "@typescript-eslint/rule-tester": "8.50.1",
319408
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.51.0",
319409
+ "@typescript-eslint/rule-tester": "8.51.0",
319293
319410
  "@vitest/coverage-v8": "^3.1.3",
319294
319411
  ajv: "^6.12.6",
319295
- "cross-fetch": "*",
319296
319412
  eslint: "*",
319297
319413
  "json-schema": "*",
319298
319414
  "markdown-table": "^3.0.3",
@@ -319309,7 +319425,7 @@ var require_package7 = __commonJS((exports, module) => {
319309
319425
  vitest: "^3.1.3"
319310
319426
  },
319311
319427
  peerDependencies: {
319312
- "@typescript-eslint/parser": "^8.50.1",
319428
+ "@typescript-eslint/parser": "^8.51.0",
319313
319429
  eslint: "^8.57.0 || ^9.0.0",
319314
319430
  typescript: ">=4.8.4 <6.0.0"
319315
319431
  },
@@ -319441,6 +319557,7 @@ var require_raw_plugin = __commonJS((exports, module) => {
319441
319557
  },
319442
319558
  meta: {
319443
319559
  name,
319560
+ namespace: "@typescript-eslint",
319444
319561
  version
319445
319562
  },
319446
319563
  rules: rules_1.default