@reapit/elements 5.0.0-beta.77 → 5.0.0-beta.78

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.
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222035,11 +222035,12 @@ var require_commonjs = __commonJS({
222035
222035
  }
222036
222036
  });
222037
222037
 
222038
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222038
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222039
222039
  var require_commonjs2 = __commonJS({
222040
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222040
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222041
222041
  "use strict";
222042
222042
  Object.defineProperty(exports, "__esModule", { value: true });
222043
+ exports.EXPANSION_MAX = void 0;
222043
222044
  exports.expand = expand;
222044
222045
  var balanced_match_1 = require_commonjs();
222045
222046
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222057,6 +222058,7 @@ var require_commonjs2 = __commonJS({
222057
222058
  var closePattern = /\\}/g;
222058
222059
  var commaPattern = /\\,/g;
222059
222060
  var periodPattern = /\\./g;
222061
+ exports.EXPANSION_MAX = 1e5;
222060
222062
  function numeric(str) {
222061
222063
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222062
222064
  }
@@ -222091,14 +222093,15 @@ var require_commonjs2 = __commonJS({
222091
222093
  return parts;
222092
222094
  }
222093
222095
  __name(parseCommaParts, "parseCommaParts");
222094
- function expand(str) {
222096
+ function expand(str, options = {}) {
222095
222097
  if (!str) {
222096
222098
  return [];
222097
222099
  }
222100
+ const { max = exports.EXPANSION_MAX } = options;
222098
222101
  if (str.slice(0, 2) === "{}") {
222099
222102
  str = "\\{\\}" + str.slice(2);
222100
222103
  }
222101
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222104
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222102
222105
  }
222103
222106
  __name(expand, "expand");
222104
222107
  function embrace(str) {
@@ -222117,15 +222120,15 @@ var require_commonjs2 = __commonJS({
222117
222120
  return i >= y;
222118
222121
  }
222119
222122
  __name(gte, "gte");
222120
- function expand_(str, isTop) {
222123
+ function expand_(str, max, isTop) {
222121
222124
  const expansions = [];
222122
222125
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222123
222126
  if (!m)
222124
222127
  return [str];
222125
222128
  const pre = m.pre;
222126
- const post = m.post.length ? expand_(m.post, false) : [""];
222129
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222127
222130
  if (/\$$/.test(m.pre)) {
222128
- for (let k = 0; k < post.length; k++) {
222131
+ for (let k = 0; k < post.length && k < max; k++) {
222129
222132
  const expansion = pre + "{" + m.body + "}" + post[k];
222130
222133
  expansions.push(expansion);
222131
222134
  }
@@ -222137,7 +222140,7 @@ var require_commonjs2 = __commonJS({
222137
222140
  if (!isSequence && !isOptions) {
222138
222141
  if (m.post.match(/,(?!,).*\}/)) {
222139
222142
  str = m.pre + "{" + m.body + escClose + m.post;
222140
- return expand_(str);
222143
+ return expand_(str, max, true);
222141
222144
  }
222142
222145
  return [str];
222143
222146
  }
@@ -222147,7 +222150,7 @@ var require_commonjs2 = __commonJS({
222147
222150
  } else {
222148
222151
  n = parseCommaParts(m.body);
222149
222152
  if (n.length === 1 && n[0] !== void 0) {
222150
- n = expand_(n[0], false).map(embrace);
222153
+ n = expand_(n[0], max, false).map(embrace);
222151
222154
  if (n.length === 1) {
222152
222155
  return post.map((p) => m.pre + n[0] + p);
222153
222156
  }
@@ -222193,11 +222196,11 @@ var require_commonjs2 = __commonJS({
222193
222196
  } else {
222194
222197
  N = [];
222195
222198
  for (let j = 0; j < n.length; j++) {
222196
- N.push.apply(N, expand_(n[j], false));
222199
+ N.push.apply(N, expand_(n[j], max, false));
222197
222200
  }
222198
222201
  }
222199
222202
  for (let j = 0; j < N.length; j++) {
222200
- for (let k = 0; k < post.length; k++) {
222203
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222201
222204
  const expansion = pre + N[j] + post[k];
222202
222205
  if (!isTop || isSequence || expansion) {
222203
222206
  expansions.push(expansion);
@@ -248201,7 +248204,7 @@ Node text: ${this.#forgottenText}`;
248201
248204
  }
248202
248205
  };
248203
248206
  var JsxElementBase = PrimaryExpression;
248204
- var JsxElement5 = class extends JsxElementBase {
248207
+ var JsxElement4 = class extends JsxElementBase {
248205
248208
  static {
248206
248209
  __name(this, "JsxElement");
248207
248210
  }
@@ -251249,7 +251252,7 @@ Node text: ${this.#forgottenText}`;
251249
251252
  [common.SyntaxKind.JsxAttribute]: JsxAttribute2,
251250
251253
  [common.SyntaxKind.JsxClosingElement]: JsxClosingElement,
251251
251254
  [common.SyntaxKind.JsxClosingFragment]: JsxClosingFragment,
251252
- [common.SyntaxKind.JsxElement]: JsxElement5,
251255
+ [common.SyntaxKind.JsxElement]: JsxElement4,
251253
251256
  [common.SyntaxKind.JsxExpression]: JsxExpression4,
251254
251257
  [common.SyntaxKind.JsxFragment]: JsxFragment4,
251255
251258
  [common.SyntaxKind.JsxNamespacedName]: JsxNamespacedName,
@@ -253115,7 +253118,7 @@ Node text: ${this.#forgottenText}`;
253115
253118
  exports.JsxClosingElement = JsxClosingElement;
253116
253119
  exports.JsxClosingElementBase = JsxClosingElementBase;
253117
253120
  exports.JsxClosingFragment = JsxClosingFragment;
253118
- exports.JsxElement = JsxElement5;
253121
+ exports.JsxElement = JsxElement4;
253119
253122
  exports.JsxElementBase = JsxElementBase;
253120
253123
  exports.JsxExpression = JsxExpression4;
253121
253124
  exports.JsxExpressionBase = JsxExpressionBase;
@@ -257242,7 +257245,7 @@ function transformTypeReferences3(sourceFile) {
257242
257245
  }
257243
257246
  return rewrote;
257244
257247
  }
257245
- function transformJsxElements3(sourceFile, aliases, localName) {
257248
+ function transformJsxElements3(sourceFile, aliases) {
257246
257249
  const commentInsertions = [];
257247
257250
  const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxOpeningElement).slice();
257248
257251
  const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement).slice();
@@ -257270,7 +257273,6 @@ function transformJsxElements3(sourceFile, aliases, localName) {
257270
257273
  if (closingTag.getTagNameNode().getText() === "DeprecatedButtonGroup") {
257271
257274
  closingTag.getTagNameNode().replaceWithText("ButtonGroup");
257272
257275
  }
257273
- wrapChildren(jsxElement, commentInsertions, localName);
257274
257276
  }
257275
257277
  }
257276
257278
  const sorted = commentInsertions.sort((a, b) => b.pos - a.pos);
@@ -257310,26 +257312,6 @@ function transformAlignmentProp(element, commentInsertions) {
257310
257312
  commentInsertions.push({ pos: elementStart, text: todoText });
257311
257313
  }
257312
257314
  }
257313
- function wrapChildren(jsxElement, commentInsertions, localName) {
257314
- const itemTag = `${localName}.Item`;
257315
- const children = jsxElement.getJsxChildren();
257316
- for (const child of children) {
257317
- const kind = child.getKind();
257318
- if (kind === import_ts_morph8.SyntaxKind.JsxText) {
257319
- continue;
257320
- }
257321
- if (kind === import_ts_morph8.SyntaxKind.JsxElement || kind === import_ts_morph8.SyntaxKind.JsxSelfClosingElement) {
257322
- const tagText = kind === import_ts_morph8.SyntaxKind.JsxElement ? child.asKind(import_ts_morph8.SyntaxKind.JsxElement).getOpeningElement().getTagNameNode().getText() : child.asKind(import_ts_morph8.SyntaxKind.JsxSelfClosingElement).getTagNameNode().getText();
257323
- if (tagText === itemTag) continue;
257324
- const childText = child.getText();
257325
- child.replaceWithText(`<${itemTag}>${childText}</${itemTag}>`);
257326
- continue;
257327
- }
257328
- if (kind === import_ts_morph8.SyntaxKind.JsxExpression) {
257329
- commentInsertions.push({ pos: child.getStart(), text: TODO_DYNAMIC_CHILDREN });
257330
- }
257331
- }
257332
- }
257333
257315
  function transform9(source, filePath = "file.tsx", options) {
257334
257316
  if (!source.includes("DeprecatedButtonGroup")) return source;
257335
257317
  const project = new import_ts_morph8.Project({
@@ -257358,11 +257340,10 @@ function transform9(source, filePath = "file.tsx", options) {
257358
257340
  targetImportDecl.addNamedImport({ name: "ButtonGroup", isTypeOnly: true });
257359
257341
  }
257360
257342
  }
257361
- const localName = importLocalName ?? "ButtonGroup";
257362
- transformJsxElements3(sourceFile, aliases, localName);
257343
+ transformJsxElements3(sourceFile, aliases);
257363
257344
  return sourceFile.getFullText();
257364
257345
  }
257365
- var import_ts_morph8, ALIGNMENT_TO_JUSTIFY_CONTENT, TODO_DYNAMIC_ALIGNMENT_JSX, TODO_DYNAMIC_ALIGNMENT_JS, TODO_DYNAMIC_CHILDREN, IMPORTS_TO_REMOVE2;
257346
+ var import_ts_morph8, ALIGNMENT_TO_JUSTIFY_CONTENT, TODO_DYNAMIC_ALIGNMENT_JSX, TODO_DYNAMIC_ALIGNMENT_JS, IMPORTS_TO_REMOVE2;
257366
257347
  var init_transform9 = __esm({
257367
257348
  "codemods/upgrade-deprecated-button-group/transform.ts"() {
257368
257349
  "use strict";
@@ -257375,7 +257356,6 @@ var init_transform9 = __esm({
257375
257356
  };
257376
257357
  TODO_DYNAMIC_ALIGNMENT_JSX = "{/* TODO: DeprecatedButtonGroup had a dynamic alignment prop that cannot be migrated automatically */}";
257377
257358
  TODO_DYNAMIC_ALIGNMENT_JS = "// TODO: DeprecatedButtonGroup had a dynamic alignment prop that cannot be migrated automatically";
257378
- TODO_DYNAMIC_CHILDREN = "{/* TODO: wrap each button in this expression in <ButtonGroup.Item> manually */}";
257379
257359
  __name(shouldUseJsxComment, "shouldUseJsxComment");
257380
257360
  __name(getDeprecatedButtonGroupAliases, "getDeprecatedButtonGroupAliases");
257381
257361
  IMPORTS_TO_REMOVE2 = /* @__PURE__ */ new Set(["DeprecatedButtonGroupProps", "DeprecatedButtonGroupAlignment"]);
@@ -257383,7 +257363,6 @@ var init_transform9 = __esm({
257383
257363
  __name(transformTypeReferences3, "transformTypeReferences");
257384
257364
  __name(transformJsxElements3, "transformJsxElements");
257385
257365
  __name(transformAlignmentProp, "transformAlignmentProp");
257386
- __name(wrapChildren, "wrapChildren");
257387
257366
  __name(transform9, "transform");
257388
257367
  }
257389
257368
  });
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);