@storybook/react 11.0.0-alpha.1 → 11.0.0-alpha.3

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_moh6ij0aoc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_moh6ij0aoc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_moh6ij0aoc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_zh4h2xjvlz from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_zh4h2xjvlz from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_zh4h2xjvlz from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_moh6ij0aoc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_moh6ij0aoc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_moh6ij0aoc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_zh4h2xjvlz.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_zh4h2xjvlz.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_zh4h2xjvlz.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -2203,22 +2203,22 @@ var require_createProject = __commonJS({
2203
2203
  // ../../../node_modules/vscode-uri/lib/umd/index.js
2204
2204
  var require_umd = __commonJS({
2205
2205
  "../../../node_modules/vscode-uri/lib/umd/index.js"(exports, module) {
2206
- (function(t5, e) {
2206
+ (function(t4, e) {
2207
2207
  if (typeof exports == "object" && typeof module == "object") module.exports = e();
2208
2208
  else if (typeof define == "function" && define.amd) define([], e);
2209
2209
  else {
2210
2210
  var r = e();
2211
- for (var n in r) (typeof exports == "object" ? exports : t5)[n] = r[n];
2211
+ for (var n in r) (typeof exports == "object" ? exports : t4)[n] = r[n];
2212
2212
  }
2213
2213
  })(exports, (() => (() => {
2214
2214
  "use strict";
2215
- var t5 = { 975: (t6) => {
2216
- function e2(t7) {
2217
- if (typeof t7 != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(t7));
2215
+ var t4 = { 975: (t5) => {
2216
+ function e2(t6) {
2217
+ if (typeof t6 != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(t6));
2218
2218
  }
2219
- function r2(t7, e3) {
2220
- for (var r3, n3 = "", i2 = 0, o = -1, s = 0, a = 0; a <= t7.length; ++a) {
2221
- if (a < t7.length) r3 = t7.charCodeAt(a);
2219
+ function r2(t6, e3) {
2220
+ for (var r3, n3 = "", i2 = 0, o = -1, s = 0, a = 0; a <= t6.length; ++a) {
2221
+ if (a < t6.length) r3 = t6.charCodeAt(a);
2222
2222
  else {
2223
2223
  if (r3 === 47) break;
2224
2224
  r3 = 47;
@@ -2238,70 +2238,70 @@ var require_umd = __commonJS({
2238
2238
  }
2239
2239
  }
2240
2240
  e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i2 = 2);
2241
- } else n3.length > 0 ? n3 += "/" + t7.slice(o + 1, a) : n3 = t7.slice(o + 1, a), i2 = a - o - 1;
2241
+ } else n3.length > 0 ? n3 += "/" + t6.slice(o + 1, a) : n3 = t6.slice(o + 1, a), i2 = a - o - 1;
2242
2242
  o = a, s = 0;
2243
2243
  } else r3 === 46 && s !== -1 ? ++s : s = -1;
2244
2244
  }
2245
2245
  return n3;
2246
2246
  }
2247
2247
  var n2 = { resolve: function() {
2248
- for (var t7, n3 = "", i2 = !1, o = arguments.length - 1; o >= -1 && !i2; o--) {
2248
+ for (var t6, n3 = "", i2 = !1, o = arguments.length - 1; o >= -1 && !i2; o--) {
2249
2249
  var s;
2250
- o >= 0 ? s = arguments[o] : (t7 === void 0 && (t7 = process.cwd()), s = t7), e2(s), s.length !== 0 && (n3 = s + "/" + n3, i2 = s.charCodeAt(0) === 47);
2250
+ o >= 0 ? s = arguments[o] : (t6 === void 0 && (t6 = process.cwd()), s = t6), e2(s), s.length !== 0 && (n3 = s + "/" + n3, i2 = s.charCodeAt(0) === 47);
2251
2251
  }
2252
2252
  return n3 = r2(n3, !i2), i2 ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
2253
- }, normalize: function(t7) {
2254
- if (e2(t7), t7.length === 0) return ".";
2255
- var n3 = t7.charCodeAt(0) === 47, i2 = t7.charCodeAt(t7.length - 1) === 47;
2256
- return (t7 = r2(t7, !n3)).length !== 0 || n3 || (t7 = "."), t7.length > 0 && i2 && (t7 += "/"), n3 ? "/" + t7 : t7;
2257
- }, isAbsolute: function(t7) {
2258
- return e2(t7), t7.length > 0 && t7.charCodeAt(0) === 47;
2253
+ }, normalize: function(t6) {
2254
+ if (e2(t6), t6.length === 0) return ".";
2255
+ var n3 = t6.charCodeAt(0) === 47, i2 = t6.charCodeAt(t6.length - 1) === 47;
2256
+ return (t6 = r2(t6, !n3)).length !== 0 || n3 || (t6 = "."), t6.length > 0 && i2 && (t6 += "/"), n3 ? "/" + t6 : t6;
2257
+ }, isAbsolute: function(t6) {
2258
+ return e2(t6), t6.length > 0 && t6.charCodeAt(0) === 47;
2259
2259
  }, join: function() {
2260
2260
  if (arguments.length === 0) return ".";
2261
- for (var t7, r3 = 0; r3 < arguments.length; ++r3) {
2261
+ for (var t6, r3 = 0; r3 < arguments.length; ++r3) {
2262
2262
  var i2 = arguments[r3];
2263
- e2(i2), i2.length > 0 && (t7 === void 0 ? t7 = i2 : t7 += "/" + i2);
2263
+ e2(i2), i2.length > 0 && (t6 === void 0 ? t6 = i2 : t6 += "/" + i2);
2264
2264
  }
2265
- return t7 === void 0 ? "." : n2.normalize(t7);
2266
- }, relative: function(t7, r3) {
2267
- if (e2(t7), e2(r3), t7 === r3 || (t7 = n2.resolve(t7)) === (r3 = n2.resolve(r3))) return "";
2268
- for (var i2 = 1; i2 < t7.length && t7.charCodeAt(i2) === 47; ++i2) ;
2269
- for (var o = t7.length, s = o - i2, a = 1; a < r3.length && r3.charCodeAt(a) === 47; ++a) ;
2265
+ return t6 === void 0 ? "." : n2.normalize(t6);
2266
+ }, relative: function(t6, r3) {
2267
+ if (e2(t6), e2(r3), t6 === r3 || (t6 = n2.resolve(t6)) === (r3 = n2.resolve(r3))) return "";
2268
+ for (var i2 = 1; i2 < t6.length && t6.charCodeAt(i2) === 47; ++i2) ;
2269
+ for (var o = t6.length, s = o - i2, a = 1; a < r3.length && r3.charCodeAt(a) === 47; ++a) ;
2270
2270
  for (var h = r3.length - a, c = s < h ? s : h, f = -1, u = 0; u <= c; ++u) {
2271
2271
  if (u === c) {
2272
2272
  if (h > c) {
2273
2273
  if (r3.charCodeAt(a + u) === 47) return r3.slice(a + u + 1);
2274
2274
  if (u === 0) return r3.slice(a + u);
2275
- } else s > c && (t7.charCodeAt(i2 + u) === 47 ? f = u : u === 0 && (f = 0));
2275
+ } else s > c && (t6.charCodeAt(i2 + u) === 47 ? f = u : u === 0 && (f = 0));
2276
2276
  break;
2277
2277
  }
2278
- var l = t7.charCodeAt(i2 + u);
2278
+ var l = t6.charCodeAt(i2 + u);
2279
2279
  if (l !== r3.charCodeAt(a + u)) break;
2280
2280
  l === 47 && (f = u);
2281
2281
  }
2282
2282
  var d = "";
2283
- for (u = i2 + f + 1; u <= o; ++u) u !== o && t7.charCodeAt(u) !== 47 || (d.length === 0 ? d += ".." : d += "/..");
2283
+ for (u = i2 + f + 1; u <= o; ++u) u !== o && t6.charCodeAt(u) !== 47 || (d.length === 0 ? d += ".." : d += "/..");
2284
2284
  return d.length > 0 ? d + r3.slice(a + f) : (a += f, r3.charCodeAt(a) === 47 && ++a, r3.slice(a));
2285
- }, _makeLong: function(t7) {
2286
- return t7;
2287
- }, dirname: function(t7) {
2288
- if (e2(t7), t7.length === 0) return ".";
2289
- for (var r3 = t7.charCodeAt(0), n3 = r3 === 47, i2 = -1, o = !0, s = t7.length - 1; s >= 1; --s) if ((r3 = t7.charCodeAt(s)) === 47) {
2285
+ }, _makeLong: function(t6) {
2286
+ return t6;
2287
+ }, dirname: function(t6) {
2288
+ if (e2(t6), t6.length === 0) return ".";
2289
+ for (var r3 = t6.charCodeAt(0), n3 = r3 === 47, i2 = -1, o = !0, s = t6.length - 1; s >= 1; --s) if ((r3 = t6.charCodeAt(s)) === 47) {
2290
2290
  if (!o) {
2291
2291
  i2 = s;
2292
2292
  break;
2293
2293
  }
2294
2294
  } else o = !1;
2295
- return i2 === -1 ? n3 ? "/" : "." : n3 && i2 === 1 ? "//" : t7.slice(0, i2);
2296
- }, basename: function(t7, r3) {
2295
+ return i2 === -1 ? n3 ? "/" : "." : n3 && i2 === 1 ? "//" : t6.slice(0, i2);
2296
+ }, basename: function(t6, r3) {
2297
2297
  if (r3 !== void 0 && typeof r3 != "string") throw new TypeError('"ext" argument must be a string');
2298
- e2(t7);
2298
+ e2(t6);
2299
2299
  var n3, i2 = 0, o = -1, s = !0;
2300
- if (r3 !== void 0 && r3.length > 0 && r3.length <= t7.length) {
2301
- if (r3.length === t7.length && r3 === t7) return "";
2300
+ if (r3 !== void 0 && r3.length > 0 && r3.length <= t6.length) {
2301
+ if (r3.length === t6.length && r3 === t6) return "";
2302
2302
  var a = r3.length - 1, h = -1;
2303
- for (n3 = t7.length - 1; n3 >= 0; --n3) {
2304
- var c = t7.charCodeAt(n3);
2303
+ for (n3 = t6.length - 1; n3 >= 0; --n3) {
2304
+ var c = t6.charCodeAt(n3);
2305
2305
  if (c === 47) {
2306
2306
  if (!s) {
2307
2307
  i2 = n3 + 1;
@@ -2309,79 +2309,79 @@ var require_umd = __commonJS({
2309
2309
  }
2310
2310
  } else h === -1 && (s = !1, h = n3 + 1), a >= 0 && (c === r3.charCodeAt(a) ? --a == -1 && (o = n3) : (a = -1, o = h));
2311
2311
  }
2312
- return i2 === o ? o = h : o === -1 && (o = t7.length), t7.slice(i2, o);
2312
+ return i2 === o ? o = h : o === -1 && (o = t6.length), t6.slice(i2, o);
2313
2313
  }
2314
- for (n3 = t7.length - 1; n3 >= 0; --n3) if (t7.charCodeAt(n3) === 47) {
2314
+ for (n3 = t6.length - 1; n3 >= 0; --n3) if (t6.charCodeAt(n3) === 47) {
2315
2315
  if (!s) {
2316
2316
  i2 = n3 + 1;
2317
2317
  break;
2318
2318
  }
2319
2319
  } else o === -1 && (s = !1, o = n3 + 1);
2320
- return o === -1 ? "" : t7.slice(i2, o);
2321
- }, extname: function(t7) {
2322
- e2(t7);
2323
- for (var r3 = -1, n3 = 0, i2 = -1, o = !0, s = 0, a = t7.length - 1; a >= 0; --a) {
2324
- var h = t7.charCodeAt(a);
2320
+ return o === -1 ? "" : t6.slice(i2, o);
2321
+ }, extname: function(t6) {
2322
+ e2(t6);
2323
+ for (var r3 = -1, n3 = 0, i2 = -1, o = !0, s = 0, a = t6.length - 1; a >= 0; --a) {
2324
+ var h = t6.charCodeAt(a);
2325
2325
  if (h !== 47) i2 === -1 && (o = !1, i2 = a + 1), h === 46 ? r3 === -1 ? r3 = a : s !== 1 && (s = 1) : r3 !== -1 && (s = -1);
2326
2326
  else if (!o) {
2327
2327
  n3 = a + 1;
2328
2328
  break;
2329
2329
  }
2330
2330
  }
2331
- return r3 === -1 || i2 === -1 || s === 0 || s === 1 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t7.slice(r3, i2);
2332
- }, format: function(t7) {
2333
- if (t7 === null || typeof t7 != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t7);
2334
- return (function(t8, e3) {
2331
+ return r3 === -1 || i2 === -1 || s === 0 || s === 1 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t6.slice(r3, i2);
2332
+ }, format: function(t6) {
2333
+ if (t6 === null || typeof t6 != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t6);
2334
+ return (function(t7, e3) {
2335
2335
  var r3 = e3.dir || e3.root, n3 = e3.base || (e3.name || "") + (e3.ext || "");
2336
2336
  return r3 ? r3 === e3.root ? r3 + n3 : r3 + "/" + n3 : n3;
2337
- })(0, t7);
2338
- }, parse: function(t7) {
2339
- e2(t7);
2337
+ })(0, t6);
2338
+ }, parse: function(t6) {
2339
+ e2(t6);
2340
2340
  var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
2341
- if (t7.length === 0) return r3;
2342
- var n3, i2 = t7.charCodeAt(0), o = i2 === 47;
2341
+ if (t6.length === 0) return r3;
2342
+ var n3, i2 = t6.charCodeAt(0), o = i2 === 47;
2343
2343
  o ? (r3.root = "/", n3 = 1) : n3 = 0;
2344
- for (var s = -1, a = 0, h = -1, c = !0, f = t7.length - 1, u = 0; f >= n3; --f) if ((i2 = t7.charCodeAt(f)) !== 47) h === -1 && (c = !1, h = f + 1), i2 === 46 ? s === -1 ? s = f : u !== 1 && (u = 1) : s !== -1 && (u = -1);
2344
+ for (var s = -1, a = 0, h = -1, c = !0, f = t6.length - 1, u = 0; f >= n3; --f) if ((i2 = t6.charCodeAt(f)) !== 47) h === -1 && (c = !1, h = f + 1), i2 === 46 ? s === -1 ? s = f : u !== 1 && (u = 1) : s !== -1 && (u = -1);
2345
2345
  else if (!c) {
2346
2346
  a = f + 1;
2347
2347
  break;
2348
2348
  }
2349
- return s === -1 || h === -1 || u === 0 || u === 1 && s === h - 1 && s === a + 1 ? h !== -1 && (r3.base = r3.name = a === 0 && o ? t7.slice(1, h) : t7.slice(a, h)) : (a === 0 && o ? (r3.name = t7.slice(1, s), r3.base = t7.slice(1, h)) : (r3.name = t7.slice(a, s), r3.base = t7.slice(a, h)), r3.ext = t7.slice(s, h)), a > 0 ? r3.dir = t7.slice(0, a - 1) : o && (r3.dir = "/"), r3;
2349
+ return s === -1 || h === -1 || u === 0 || u === 1 && s === h - 1 && s === a + 1 ? h !== -1 && (r3.base = r3.name = a === 0 && o ? t6.slice(1, h) : t6.slice(a, h)) : (a === 0 && o ? (r3.name = t6.slice(1, s), r3.base = t6.slice(1, h)) : (r3.name = t6.slice(a, s), r3.base = t6.slice(a, h)), r3.ext = t6.slice(s, h)), a > 0 ? r3.dir = t6.slice(0, a - 1) : o && (r3.dir = "/"), r3;
2350
2350
  }, sep: "/", delimiter: ":", win32: null, posix: null };
2351
- n2.posix = n2, t6.exports = n2;
2352
- }, 70: (t6, e2) => {
2351
+ n2.posix = n2, t5.exports = n2;
2352
+ }, 70: (t5, e2) => {
2353
2353
  if (Object.defineProperty(e2, "__esModule", { value: !0 }), e2.isWindows = void 0, typeof process == "object") e2.isWindows = process.platform === "win32";
2354
2354
  else if (typeof navigator == "object") {
2355
- let t7 = navigator.userAgent;
2356
- e2.isWindows = t7.indexOf("Windows") >= 0;
2355
+ let t6 = navigator.userAgent;
2356
+ e2.isWindows = t6.indexOf("Windows") >= 0;
2357
2357
  }
2358
- }, 231: (t6, e2, r2) => {
2358
+ }, 231: (t5, e2, r2) => {
2359
2359
  Object.defineProperty(e2, "__esModule", { value: !0 }), e2.uriToFsPath = e2.URI = void 0;
2360
2360
  let n2 = r2(70), i2 = /^\w[\w\d+.-]*$/, o = /^\//, s = /^\/\//;
2361
- function a(t7, e3) {
2362
- if (!t7.scheme && e3) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t7.authority}", path: "${t7.path}", query: "${t7.query}", fragment: "${t7.fragment}"}`);
2363
- if (t7.scheme && !i2.test(t7.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
2364
- if (t7.path) {
2365
- if (t7.authority) {
2366
- if (!o.test(t7.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
2367
- } else if (s.test(t7.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
2361
+ function a(t6, e3) {
2362
+ if (!t6.scheme && e3) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t6.authority}", path: "${t6.path}", query: "${t6.query}", fragment: "${t6.fragment}"}`);
2363
+ if (t6.scheme && !i2.test(t6.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
2364
+ if (t6.path) {
2365
+ if (t6.authority) {
2366
+ if (!o.test(t6.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
2367
+ } else if (s.test(t6.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');
2368
2368
  }
2369
2369
  }
2370
2370
  let h = "", c = "/", f = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
2371
2371
  class u {
2372
- static isUri(t7) {
2373
- return t7 instanceof u || !!t7 && typeof t7.authority == "string" && typeof t7.fragment == "string" && typeof t7.path == "string" && typeof t7.query == "string" && typeof t7.scheme == "string" && typeof t7.fsPath == "string" && typeof t7.with == "function" && typeof t7.toString == "function";
2372
+ static isUri(t6) {
2373
+ return t6 instanceof u || !!t6 && typeof t6.authority == "string" && typeof t6.fragment == "string" && typeof t6.path == "string" && typeof t6.query == "string" && typeof t6.scheme == "string" && typeof t6.fsPath == "string" && typeof t6.with == "function" && typeof t6.toString == "function";
2374
2374
  }
2375
2375
  scheme;
2376
2376
  authority;
2377
2377
  path;
2378
2378
  query;
2379
2379
  fragment;
2380
- constructor(t7, e3, r3, n3, i3, o2 = !1) {
2381
- typeof t7 == "object" ? (this.scheme = t7.scheme || h, this.authority = t7.authority || h, this.path = t7.path || h, this.query = t7.query || h, this.fragment = t7.fragment || h) : (this.scheme = /* @__PURE__ */ (function(t8, e4) {
2382
- return t8 || e4 ? t8 : "file";
2383
- })(t7, o2), this.authority = e3 || h, this.path = (function(t8, e4) {
2384
- switch (t8) {
2380
+ constructor(t6, e3, r3, n3, i3, o2 = !1) {
2381
+ typeof t6 == "object" ? (this.scheme = t6.scheme || h, this.authority = t6.authority || h, this.path = t6.path || h, this.query = t6.query || h, this.fragment = t6.fragment || h) : (this.scheme = /* @__PURE__ */ (function(t7, e4) {
2382
+ return t7 || e4 ? t7 : "file";
2383
+ })(t6, o2), this.authority = e3 || h, this.path = (function(t7, e4) {
2384
+ switch (t7) {
2385
2385
  case "https":
2386
2386
  case "http":
2387
2387
  case "file":
@@ -2393,42 +2393,42 @@ var require_umd = __commonJS({
2393
2393
  get fsPath() {
2394
2394
  return v(this, !1);
2395
2395
  }
2396
- with(t7) {
2397
- if (!t7) return this;
2398
- let { scheme: e3, authority: r3, path: n3, query: i3, fragment: o2 } = t7;
2396
+ with(t6) {
2397
+ if (!t6) return this;
2398
+ let { scheme: e3, authority: r3, path: n3, query: i3, fragment: o2 } = t6;
2399
2399
  return e3 === void 0 ? e3 = this.scheme : e3 === null && (e3 = h), r3 === void 0 ? r3 = this.authority : r3 === null && (r3 = h), n3 === void 0 ? n3 = this.path : n3 === null && (n3 = h), i3 === void 0 ? i3 = this.query : i3 === null && (i3 = h), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = h), e3 === this.scheme && r3 === this.authority && n3 === this.path && i3 === this.query && o2 === this.fragment ? this : new d(e3, r3, n3, i3, o2);
2400
2400
  }
2401
- static parse(t7, e3 = !1) {
2402
- let r3 = f.exec(t7);
2401
+ static parse(t6, e3 = !1) {
2402
+ let r3 = f.exec(t6);
2403
2403
  return r3 ? new d(r3[2] || h, w(r3[4] || h), w(r3[5] || h), w(r3[7] || h), w(r3[9] || h), e3) : new d(h, h, h, h, h);
2404
2404
  }
2405
- static file(t7) {
2405
+ static file(t6) {
2406
2406
  let e3 = h;
2407
- if (n2.isWindows && (t7 = t7.replace(/\\/g, c)), t7[0] === c && t7[1] === c) {
2408
- let r3 = t7.indexOf(c, 2);
2409
- r3 === -1 ? (e3 = t7.substring(2), t7 = c) : (e3 = t7.substring(2, r3), t7 = t7.substring(r3) || c);
2407
+ if (n2.isWindows && (t6 = t6.replace(/\\/g, c)), t6[0] === c && t6[1] === c) {
2408
+ let r3 = t6.indexOf(c, 2);
2409
+ r3 === -1 ? (e3 = t6.substring(2), t6 = c) : (e3 = t6.substring(2, r3), t6 = t6.substring(r3) || c);
2410
2410
  }
2411
- return new d("file", e3, t7, h, h);
2411
+ return new d("file", e3, t6, h, h);
2412
2412
  }
2413
- static from(t7) {
2414
- let e3 = new d(t7.scheme, t7.authority, t7.path, t7.query, t7.fragment);
2413
+ static from(t6) {
2414
+ let e3 = new d(t6.scheme, t6.authority, t6.path, t6.query, t6.fragment);
2415
2415
  return a(e3, !0), e3;
2416
2416
  }
2417
- toString(t7 = !1) {
2418
- return y(this, t7);
2417
+ toString(t6 = !1) {
2418
+ return y(this, t6);
2419
2419
  }
2420
2420
  toJSON() {
2421
2421
  return this;
2422
2422
  }
2423
- static revive(t7) {
2424
- if (t7) {
2425
- if (t7 instanceof u) return t7;
2423
+ static revive(t6) {
2424
+ if (t6) {
2425
+ if (t6 instanceof u) return t6;
2426
2426
  {
2427
- let e3 = new d(t7);
2428
- return e3._formatted = t7.external, e3._fsPath = t7._sep === l ? t7.fsPath : null, e3;
2427
+ let e3 = new d(t6);
2428
+ return e3._formatted = t6.external, e3._fsPath = t6._sep === l ? t6.fsPath : null, e3;
2429
2429
  }
2430
2430
  }
2431
- return t7;
2431
+ return t6;
2432
2432
  }
2433
2433
  }
2434
2434
  e2.URI = u;
@@ -2439,112 +2439,112 @@ var require_umd = __commonJS({
2439
2439
  get fsPath() {
2440
2440
  return this._fsPath || (this._fsPath = v(this, !1)), this._fsPath;
2441
2441
  }
2442
- toString(t7 = !1) {
2443
- return t7 ? y(this, !0) : (this._formatted || (this._formatted = y(this, !1)), this._formatted);
2442
+ toString(t6 = !1) {
2443
+ return t6 ? y(this, !0) : (this._formatted || (this._formatted = y(this, !1)), this._formatted);
2444
2444
  }
2445
2445
  toJSON() {
2446
- let t7 = { $mid: 1 };
2447
- return this._fsPath && (t7.fsPath = this._fsPath, t7._sep = l), this._formatted && (t7.external = this._formatted), this.path && (t7.path = this.path), this.scheme && (t7.scheme = this.scheme), this.authority && (t7.authority = this.authority), this.query && (t7.query = this.query), this.fragment && (t7.fragment = this.fragment), t7;
2446
+ let t6 = { $mid: 1 };
2447
+ return this._fsPath && (t6.fsPath = this._fsPath, t6._sep = l), this._formatted && (t6.external = this._formatted), this.path && (t6.path = this.path), this.scheme && (t6.scheme = this.scheme), this.authority && (t6.authority = this.authority), this.query && (t6.query = this.query), this.fragment && (t6.fragment = this.fragment), t6;
2448
2448
  }
2449
2449
  }
2450
2450
  let p = { 58: "%3A", 47: "%2F", 63: "%3F", 35: "%23", 91: "%5B", 93: "%5D", 64: "%40", 33: "%21", 36: "%24", 38: "%26", 39: "%27", 40: "%28", 41: "%29", 42: "%2A", 43: "%2B", 44: "%2C", 59: "%3B", 61: "%3D", 32: "%20" };
2451
- function g(t7, e3, r3) {
2451
+ function g(t6, e3, r3) {
2452
2452
  let n3, i3 = -1;
2453
- for (let o2 = 0; o2 < t7.length; o2++) {
2454
- let s2 = t7.charCodeAt(o2);
2455
- if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || s2 === 45 || s2 === 46 || s2 === 95 || s2 === 126 || e3 && s2 === 47 || r3 && s2 === 91 || r3 && s2 === 93 || r3 && s2 === 58) i3 !== -1 && (n3 += encodeURIComponent(t7.substring(i3, o2)), i3 = -1), n3 !== void 0 && (n3 += t7.charAt(o2));
2453
+ for (let o2 = 0; o2 < t6.length; o2++) {
2454
+ let s2 = t6.charCodeAt(o2);
2455
+ if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || s2 === 45 || s2 === 46 || s2 === 95 || s2 === 126 || e3 && s2 === 47 || r3 && s2 === 91 || r3 && s2 === 93 || r3 && s2 === 58) i3 !== -1 && (n3 += encodeURIComponent(t6.substring(i3, o2)), i3 = -1), n3 !== void 0 && (n3 += t6.charAt(o2));
2456
2456
  else {
2457
- n3 === void 0 && (n3 = t7.substr(0, o2));
2457
+ n3 === void 0 && (n3 = t6.substr(0, o2));
2458
2458
  let e4 = p[s2];
2459
- e4 !== void 0 ? (i3 !== -1 && (n3 += encodeURIComponent(t7.substring(i3, o2)), i3 = -1), n3 += e4) : i3 === -1 && (i3 = o2);
2459
+ e4 !== void 0 ? (i3 !== -1 && (n3 += encodeURIComponent(t6.substring(i3, o2)), i3 = -1), n3 += e4) : i3 === -1 && (i3 = o2);
2460
2460
  }
2461
2461
  }
2462
- return i3 !== -1 && (n3 += encodeURIComponent(t7.substring(i3))), n3 !== void 0 ? n3 : t7;
2462
+ return i3 !== -1 && (n3 += encodeURIComponent(t6.substring(i3))), n3 !== void 0 ? n3 : t6;
2463
2463
  }
2464
- function m(t7) {
2464
+ function m(t6) {
2465
2465
  let e3;
2466
- for (let r3 = 0; r3 < t7.length; r3++) {
2467
- let n3 = t7.charCodeAt(r3);
2468
- n3 === 35 || n3 === 63 ? (e3 === void 0 && (e3 = t7.substr(0, r3)), e3 += p[n3]) : e3 !== void 0 && (e3 += t7[r3]);
2466
+ for (let r3 = 0; r3 < t6.length; r3++) {
2467
+ let n3 = t6.charCodeAt(r3);
2468
+ n3 === 35 || n3 === 63 ? (e3 === void 0 && (e3 = t6.substr(0, r3)), e3 += p[n3]) : e3 !== void 0 && (e3 += t6[r3]);
2469
2469
  }
2470
- return e3 !== void 0 ? e3 : t7;
2470
+ return e3 !== void 0 ? e3 : t6;
2471
2471
  }
2472
- function v(t7, e3) {
2472
+ function v(t6, e3) {
2473
2473
  let r3;
2474
- return r3 = t7.authority && t7.path.length > 1 && t7.scheme === "file" ? `//${t7.authority}${t7.path}` : t7.path.charCodeAt(0) === 47 && (t7.path.charCodeAt(1) >= 65 && t7.path.charCodeAt(1) <= 90 || t7.path.charCodeAt(1) >= 97 && t7.path.charCodeAt(1) <= 122) && t7.path.charCodeAt(2) === 58 ? e3 ? t7.path.substr(1) : t7.path[1].toLowerCase() + t7.path.substr(2) : t7.path, n2.isWindows && (r3 = r3.replace(/\//g, "\\")), r3;
2474
+ return r3 = t6.authority && t6.path.length > 1 && t6.scheme === "file" ? `//${t6.authority}${t6.path}` : t6.path.charCodeAt(0) === 47 && (t6.path.charCodeAt(1) >= 65 && t6.path.charCodeAt(1) <= 90 || t6.path.charCodeAt(1) >= 97 && t6.path.charCodeAt(1) <= 122) && t6.path.charCodeAt(2) === 58 ? e3 ? t6.path.substr(1) : t6.path[1].toLowerCase() + t6.path.substr(2) : t6.path, n2.isWindows && (r3 = r3.replace(/\//g, "\\")), r3;
2475
2475
  }
2476
- function y(t7, e3) {
2477
- let r3 = e3 ? m : g, n3 = "", { scheme: i3, authority: o2, path: s2, query: a2, fragment: h2 } = t7;
2476
+ function y(t6, e3) {
2477
+ let r3 = e3 ? m : g, n3 = "", { scheme: i3, authority: o2, path: s2, query: a2, fragment: h2 } = t6;
2478
2478
  if (i3 && (n3 += i3, n3 += ":"), (o2 || i3 === "file") && (n3 += c, n3 += c), o2) {
2479
- let t8 = o2.indexOf("@");
2480
- if (t8 !== -1) {
2481
- let e4 = o2.substr(0, t8);
2482
- o2 = o2.substr(t8 + 1), t8 = e4.lastIndexOf(":"), t8 === -1 ? n3 += r3(e4, !1, !1) : (n3 += r3(e4.substr(0, t8), !1, !1), n3 += ":", n3 += r3(e4.substr(t8 + 1), !1, !0)), n3 += "@";
2479
+ let t7 = o2.indexOf("@");
2480
+ if (t7 !== -1) {
2481
+ let e4 = o2.substr(0, t7);
2482
+ o2 = o2.substr(t7 + 1), t7 = e4.lastIndexOf(":"), t7 === -1 ? n3 += r3(e4, !1, !1) : (n3 += r3(e4.substr(0, t7), !1, !1), n3 += ":", n3 += r3(e4.substr(t7 + 1), !1, !0)), n3 += "@";
2483
2483
  }
2484
- o2 = o2.toLowerCase(), t8 = o2.lastIndexOf(":"), t8 === -1 ? n3 += r3(o2, !1, !0) : (n3 += r3(o2.substr(0, t8), !1, !0), n3 += o2.substr(t8));
2484
+ o2 = o2.toLowerCase(), t7 = o2.lastIndexOf(":"), t7 === -1 ? n3 += r3(o2, !1, !0) : (n3 += r3(o2.substr(0, t7), !1, !0), n3 += o2.substr(t7));
2485
2485
  }
2486
2486
  if (s2) {
2487
2487
  if (s2.length >= 3 && s2.charCodeAt(0) === 47 && s2.charCodeAt(2) === 58) {
2488
- let t8 = s2.charCodeAt(1);
2489
- t8 >= 65 && t8 <= 90 && (s2 = `/${String.fromCharCode(t8 + 32)}:${s2.substr(3)}`);
2488
+ let t7 = s2.charCodeAt(1);
2489
+ t7 >= 65 && t7 <= 90 && (s2 = `/${String.fromCharCode(t7 + 32)}:${s2.substr(3)}`);
2490
2490
  } else if (s2.length >= 2 && s2.charCodeAt(1) === 58) {
2491
- let t8 = s2.charCodeAt(0);
2492
- t8 >= 65 && t8 <= 90 && (s2 = `${String.fromCharCode(t8 + 32)}:${s2.substr(2)}`);
2491
+ let t7 = s2.charCodeAt(0);
2492
+ t7 >= 65 && t7 <= 90 && (s2 = `${String.fromCharCode(t7 + 32)}:${s2.substr(2)}`);
2493
2493
  }
2494
2494
  n3 += r3(s2, !0, !1);
2495
2495
  }
2496
2496
  return a2 && (n3 += "?", n3 += r3(a2, !1, !1)), h2 && (n3 += "#", n3 += e3 ? h2 : g(h2, !1, !1)), n3;
2497
2497
  }
2498
- function b(t7) {
2498
+ function b(t6) {
2499
2499
  try {
2500
- return decodeURIComponent(t7);
2500
+ return decodeURIComponent(t6);
2501
2501
  } catch {
2502
- return t7.length > 3 ? t7.substr(0, 3) + b(t7.substr(3)) : t7;
2502
+ return t6.length > 3 ? t6.substr(0, 3) + b(t6.substr(3)) : t6;
2503
2503
  }
2504
2504
  }
2505
2505
  e2.uriToFsPath = v;
2506
2506
  let C = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
2507
- function w(t7) {
2508
- return t7.match(C) ? t7.replace(C, ((t8) => b(t8))) : t7;
2507
+ function w(t6) {
2508
+ return t6.match(C) ? t6.replace(C, ((t7) => b(t7))) : t6;
2509
2509
  }
2510
- }, 552: function(t6, e2, r2) {
2511
- var n2 = this && this.__createBinding || (Object.create ? function(t7, e3, r3, n3) {
2510
+ }, 552: function(t5, e2, r2) {
2511
+ var n2 = this && this.__createBinding || (Object.create ? function(t6, e3, r3, n3) {
2512
2512
  n3 === void 0 && (n3 = r3);
2513
2513
  var i3 = Object.getOwnPropertyDescriptor(e3, r3);
2514
2514
  i3 && !("get" in i3 ? !e3.__esModule : i3.writable || i3.configurable) || (i3 = { enumerable: !0, get: function() {
2515
2515
  return e3[r3];
2516
- } }), Object.defineProperty(t7, n3, i3);
2517
- } : function(t7, e3, r3, n3) {
2518
- n3 === void 0 && (n3 = r3), t7[n3] = e3[r3];
2519
- }), i2 = this && this.__setModuleDefault || (Object.create ? function(t7, e3) {
2520
- Object.defineProperty(t7, "default", { enumerable: !0, value: e3 });
2521
- } : function(t7, e3) {
2522
- t7.default = e3;
2523
- }), o = this && this.__importStar || function(t7) {
2524
- if (t7 && t7.__esModule) return t7;
2516
+ } }), Object.defineProperty(t6, n3, i3);
2517
+ } : function(t6, e3, r3, n3) {
2518
+ n3 === void 0 && (n3 = r3), t6[n3] = e3[r3];
2519
+ }), i2 = this && this.__setModuleDefault || (Object.create ? function(t6, e3) {
2520
+ Object.defineProperty(t6, "default", { enumerable: !0, value: e3 });
2521
+ } : function(t6, e3) {
2522
+ t6.default = e3;
2523
+ }), o = this && this.__importStar || function(t6) {
2524
+ if (t6 && t6.__esModule) return t6;
2525
2525
  var e3 = {};
2526
- if (t7 != null) for (var r3 in t7) r3 !== "default" && Object.prototype.hasOwnProperty.call(t7, r3) && n2(e3, t7, r3);
2527
- return i2(e3, t7), e3;
2526
+ if (t6 != null) for (var r3 in t6) r3 !== "default" && Object.prototype.hasOwnProperty.call(t6, r3) && n2(e3, t6, r3);
2527
+ return i2(e3, t6), e3;
2528
2528
  };
2529
2529
  Object.defineProperty(e2, "__esModule", { value: !0 }), e2.Utils = void 0;
2530
2530
  let s = o(r2(975)), a = s.posix || s, h = "/";
2531
2531
  var c;
2532
- (function(t7) {
2533
- t7.joinPath = function(t8, ...e3) {
2534
- return t8.with({ path: a.join(t8.path, ...e3) });
2535
- }, t7.resolvePath = function(t8, ...e3) {
2536
- let r3 = t8.path, n3 = !1;
2532
+ (function(t6) {
2533
+ t6.joinPath = function(t7, ...e3) {
2534
+ return t7.with({ path: a.join(t7.path, ...e3) });
2535
+ }, t6.resolvePath = function(t7, ...e3) {
2536
+ let r3 = t7.path, n3 = !1;
2537
2537
  r3[0] !== h && (r3 = h + r3, n3 = !0);
2538
2538
  let i3 = a.resolve(r3, ...e3);
2539
- return n3 && i3[0] === h && !t8.authority && (i3 = i3.substring(1)), t8.with({ path: i3 });
2540
- }, t7.dirname = function(t8) {
2541
- if (t8.path.length === 0 || t8.path === h) return t8;
2542
- let e3 = a.dirname(t8.path);
2543
- return e3.length === 1 && e3.charCodeAt(0) === 46 && (e3 = ""), t8.with({ path: e3 });
2544
- }, t7.basename = function(t8) {
2545
- return a.basename(t8.path);
2546
- }, t7.extname = function(t8) {
2547
- return a.extname(t8.path);
2539
+ return n3 && i3[0] === h && !t7.authority && (i3 = i3.substring(1)), t7.with({ path: i3 });
2540
+ }, t6.dirname = function(t7) {
2541
+ if (t7.path.length === 0 || t7.path === h) return t7;
2542
+ let e3 = a.dirname(t7.path);
2543
+ return e3.length === 1 && e3.charCodeAt(0) === 46 && (e3 = ""), t7.with({ path: e3 });
2544
+ }, t6.basename = function(t7) {
2545
+ return a.basename(t7.path);
2546
+ }, t6.extname = function(t7) {
2547
+ return a.extname(t7.path);
2548
2548
  };
2549
2549
  })(c || (e2.Utils = c = {}));
2550
2550
  } }, e = {};
@@ -2552,18 +2552,18 @@ var require_umd = __commonJS({
2552
2552
  var i2 = e[n2];
2553
2553
  if (i2 !== void 0) return i2.exports;
2554
2554
  var o = e[n2] = { exports: {} };
2555
- return t5[n2].call(o.exports, o, o.exports, r), o.exports;
2555
+ return t4[n2].call(o.exports, o, o.exports, r), o.exports;
2556
2556
  }
2557
2557
  var n = {};
2558
2558
  return (() => {
2559
- var t6 = n;
2560
- Object.defineProperty(t6, "__esModule", { value: !0 }), t6.Utils = t6.URI = void 0;
2559
+ var t5 = n;
2560
+ Object.defineProperty(t5, "__esModule", { value: !0 }), t5.Utils = t5.URI = void 0;
2561
2561
  let e2 = r(231);
2562
- Object.defineProperty(t6, "URI", { enumerable: !0, get: function() {
2562
+ Object.defineProperty(t5, "URI", { enumerable: !0, get: function() {
2563
2563
  return e2.URI;
2564
2564
  } });
2565
2565
  let i2 = r(552);
2566
- Object.defineProperty(t6, "Utils", { enumerable: !0, get: function() {
2566
+ Object.defineProperty(t5, "Utils", { enumerable: !0, get: function() {
2567
2567
  return i2.Utils;
2568
2568
  } });
2569
2569
  })(), n;
@@ -10235,12 +10235,12 @@ var require_dist2 = __commonJS({
10235
10235
  "../../../node_modules/@base2/pretty-print-object/dist/index.js"(exports) {
10236
10236
  "use strict";
10237
10237
  var __assign = exports && exports.__assign || function() {
10238
- return __assign = Object.assign || function(t5) {
10238
+ return __assign = Object.assign || function(t4) {
10239
10239
  for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
10240
10240
  s = arguments[i2];
10241
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t5[p] = s[p]);
10241
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t4[p] = s[p]);
10242
10242
  }
10243
- return t5;
10243
+ return t4;
10244
10244
  }, __assign.apply(this, arguments);
10245
10245
  }, __spreadArrays = exports && exports.__spreadArrays || function() {
10246
10246
  for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
@@ -10331,7 +10331,7 @@ var require_dist2 = __commonJS({
10331
10331
  var require_react_is_production_min = __commonJS({
10332
10332
  "../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
10333
10333
  "use strict";
10334
- var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t5 = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
10334
+ var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t4 = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
10335
10335
  u = /* @__PURE__ */ Symbol.for("react.module.reference");
10336
10336
  function v(a) {
10337
10337
  if (typeof a == "object" && a !== null) {
@@ -10418,7 +10418,7 @@ var require_react_is_production_min = __commonJS({
10418
10418
  return v(a) === n;
10419
10419
  };
10420
10420
  exports.isValidElementType = function(a) {
10421
- return typeof a == "string" || typeof a == "function" || a === d || a === f || a === e || a === m || a === n || a === t5 || typeof a == "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || a.getModuleId !== void 0);
10421
+ return typeof a == "string" || typeof a == "function" || a === d || a === f || a === e || a === m || a === n || a === t4 || typeof a == "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || a.getModuleId !== void 0);
10422
10422
  };
10423
10423
  exports.typeOf = v;
10424
10424
  }
@@ -11655,12 +11655,12 @@ var require_tsconfig_loader = __commonJS({
11655
11655
  "../../../node_modules/tsconfig-paths/lib/tsconfig-loader.js"(exports) {
11656
11656
  "use strict";
11657
11657
  var __assign = exports && exports.__assign || function() {
11658
- return __assign = Object.assign || function(t5) {
11658
+ return __assign = Object.assign || function(t4) {
11659
11659
  for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
11660
11660
  s = arguments[i2];
11661
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t5[p] = s[p]);
11661
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t4[p] = s[p]);
11662
11662
  }
11663
- return t5;
11663
+ return t4;
11664
11664
  }, __assign.apply(this, arguments);
11665
11665
  };
11666
11666
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -11806,7 +11806,7 @@ var require_minimist = __commonJS({
11806
11806
  var key = keys[keys.length - 1];
11807
11807
  return key in o;
11808
11808
  }
11809
- function isNumber(x) {
11809
+ function isNumber2(x) {
11810
11810
  return typeof x == "number" || /^0x[0-9a-f]+$/i.test(x) ? !0 : /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
11811
11811
  }
11812
11812
  function isConstructorOrProto(obj, key) {
@@ -11855,7 +11855,7 @@ var require_minimist = __commonJS({
11855
11855
  }
11856
11856
  function setArg(key2, val, arg2) {
11857
11857
  if (!(arg2 && flags.unknownFn && !argDefined(key2, arg2) && flags.unknownFn(arg2) === !1)) {
11858
- var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
11858
+ var value2 = !flags.strings[key2] && isNumber2(val) ? Number(val) : val;
11859
11859
  setKey(argv, key2.split("."), value2), (aliases[key2] || []).forEach(function(x) {
11860
11860
  setKey(argv, x.split("."), value2);
11861
11861
  });
@@ -11898,7 +11898,7 @@ var require_minimist = __commonJS({
11898
11898
  setArg(letters[j], flags.strings[letters[j]] ? "" : !0, arg);
11899
11899
  }
11900
11900
  key = arg.slice(-1)[0], !broken && key !== "-" && (args[i2 + 1] && !/^(-|--)[^-]/.test(args[i2 + 1]) && !flags.bools[key] && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, args[i2 + 1], arg), i2 += 1) : args[i2 + 1] && /^(true|false)$/.test(args[i2 + 1]) ? (setArg(key, args[i2 + 1] === "true", arg), i2 += 1) : setArg(key, flags.strings[key] ? "" : !0, arg));
11901
- } else if ((!flags.unknownFn || flags.unknownFn(arg) !== !1) && argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg)), opts.stopEarly) {
11901
+ } else if ((!flags.unknownFn || flags.unknownFn(arg) !== !1) && argv._.push(flags.strings._ || !isNumber2(arg) ? arg : Number(arg)), opts.stopEarly) {
11902
11902
  argv._.push.apply(argv._, args.slice(i2 + 1));
11903
11903
  break;
11904
11904
  }
@@ -13444,9 +13444,9 @@ function serializeType(typescript, checker, type, isRequired, depth = 0) {
13444
13444
  return { name: checker.typeToString(type) };
13445
13445
  if (type.isUnion()) {
13446
13446
  let nonUndefinedTypes = type.types.filter(
13447
- (t5) => !(t5.getFlags() & typescript.TypeFlags.Undefined)
13447
+ (t4) => !(t4.getFlags() & typescript.TypeFlags.Undefined)
13448
13448
  ), booleanLiterals = nonUndefinedTypes.filter(
13449
- (t5) => t5.getFlags() & typescript.TypeFlags.BooleanLiteral
13449
+ (t4) => t4.getFlags() & typescript.TypeFlags.BooleanLiteral
13450
13450
  );
13451
13451
  if (booleanLiterals.length === 2 && booleanLiterals.length === nonUndefinedTypes.length)
13452
13452
  return { name: "boolean" };
@@ -14440,8 +14440,7 @@ import {
14440
14440
 
14441
14441
  // ../../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
14442
14442
  function isPlainObject(value) {
14443
- if (!value || typeof value != "object")
14444
- return !1;
14443
+ if (!value || typeof value != "object") return !1;
14445
14444
  let proto = Object.getPrototypeOf(value);
14446
14445
  return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
14447
14446
  }
@@ -14480,13 +14479,13 @@ function _arrayLikeToArray(r, a) {
14480
14479
  function _arrayWithoutHoles(r) {
14481
14480
  if (Array.isArray(r)) return _arrayLikeToArray(r);
14482
14481
  }
14483
- function _defineProperty(e, r, t5) {
14482
+ function _defineProperty(e, r, t4) {
14484
14483
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
14485
- value: t5,
14484
+ value: t4,
14486
14485
  enumerable: !0,
14487
14486
  configurable: !0,
14488
14487
  writable: !0
14489
- }) : e[r] = t5, e;
14488
+ }) : e[r] = t4, e;
14490
14489
  }
14491
14490
  function _iterableToArray(r) {
14492
14491
  if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
@@ -14496,22 +14495,22 @@ function _nonIterableSpread() {
14496
14495
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14497
14496
  }
14498
14497
  function ownKeys(e, r) {
14499
- var t5 = Object.keys(e);
14498
+ var t4 = Object.keys(e);
14500
14499
  if (Object.getOwnPropertySymbols) {
14501
14500
  var o = Object.getOwnPropertySymbols(e);
14502
14501
  r && (o = o.filter(function(r2) {
14503
14502
  return Object.getOwnPropertyDescriptor(e, r2).enumerable;
14504
- })), t5.push.apply(t5, o);
14503
+ })), t4.push.apply(t4, o);
14505
14504
  }
14506
- return t5;
14505
+ return t4;
14507
14506
  }
14508
14507
  function _objectSpread2(e) {
14509
14508
  for (var r = 1; r < arguments.length; r++) {
14510
- var t5 = arguments[r] != null ? arguments[r] : {};
14511
- r % 2 ? ownKeys(Object(t5), !0).forEach(function(r2) {
14512
- _defineProperty(e, r2, t5[r2]);
14513
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t5)) : ownKeys(Object(t5)).forEach(function(r2) {
14514
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t5, r2));
14509
+ var t4 = arguments[r] != null ? arguments[r] : {};
14510
+ r % 2 ? ownKeys(Object(t4), !0).forEach(function(r2) {
14511
+ _defineProperty(e, r2, t4[r2]);
14512
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t4)) : ownKeys(Object(t4)).forEach(function(r2) {
14513
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t4, r2));
14515
14514
  });
14516
14515
  }
14517
14516
  return e;
@@ -14519,18 +14518,18 @@ function _objectSpread2(e) {
14519
14518
  function _toConsumableArray(r) {
14520
14519
  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
14521
14520
  }
14522
- function _toPrimitive(t5, r) {
14523
- if (typeof t5 != "object" || !t5) return t5;
14524
- var e = t5[Symbol.toPrimitive];
14521
+ function _toPrimitive(t4, r) {
14522
+ if (typeof t4 != "object" || !t4) return t4;
14523
+ var e = t4[Symbol.toPrimitive];
14525
14524
  if (e !== void 0) {
14526
- var i2 = e.call(t5, r || "default");
14525
+ var i2 = e.call(t4, r || "default");
14527
14526
  if (typeof i2 != "object") return i2;
14528
14527
  throw new TypeError("@@toPrimitive must return a primitive value.");
14529
14528
  }
14530
- return (r === "string" ? String : Number)(t5);
14529
+ return (r === "string" ? String : Number)(t4);
14531
14530
  }
14532
- function _toPropertyKey(t5) {
14533
- var i2 = _toPrimitive(t5, "string");
14531
+ function _toPropertyKey(t4) {
14532
+ var i2 = _toPrimitive(t4, "string");
14534
14533
  return typeof i2 == "symbol" ? i2 : i2 + "";
14535
14534
  }
14536
14535
  function _typeof(o) {
@@ -14544,8 +14543,8 @@ function _typeof(o) {
14544
14543
  function _unsupportedIterableToArray(r, a) {
14545
14544
  if (r) {
14546
14545
  if (typeof r == "string") return _arrayLikeToArray(r, a);
14547
- var t5 = {}.toString.call(r).slice(8, -1);
14548
- return t5 === "Object" && r.constructor && (t5 = r.constructor.name), t5 === "Map" || t5 === "Set" ? Array.from(r) : t5 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t5) ? _arrayLikeToArray(r, a) : void 0;
14546
+ var t4 = {}.toString.call(r).slice(8, -1);
14547
+ return t4 === "Object" && r.constructor && (t4 = r.constructor.name), t4 === "Map" || t4 === "Set" ? Array.from(r) : t4 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t4) ? _arrayLikeToArray(r, a) : void 0;
14549
14548
  }
14550
14549
  }
14551
14550
  function safeSortObject(value, seen) {
@@ -15666,7 +15665,7 @@ var _lazyMatch = () => {
15666
15665
  var m = Object.defineProperty, V = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, q = (r, e) => {
15667
15666
  for (var n in e) m(r, n, { get: e[n], enumerable: !0 });
15668
15667
  }, H = (r, e, n, a) => {
15669
- if (e && typeof e == "object" || typeof e == "function") for (let t5 of G(e)) !T.call(r, t5) && t5 !== n && m(r, t5, { get: () => e[t5], enumerable: !(a = V(e, t5)) || a.enumerable });
15668
+ if (e && typeof e == "object" || typeof e == "function") for (let t4 of G(e)) !T.call(r, t4) && t4 !== n && m(r, t4, { get: () => e[t4], enumerable: !(a = V(e, t4)) || a.enumerable });
15670
15669
  return r;
15671
15670
  }, J = (r) => H(m({}, "__esModule", { value: !0 }), r), w = {};
15672
15671
  q(w, { default: () => re });
@@ -15675,8 +15674,8 @@ var _lazyMatch = () => {
15675
15674
  return (n) => {
15676
15675
  let a = e.get(n);
15677
15676
  if (a) return a;
15678
- let t5 = r(n);
15679
- return e.set(n, t5), t5;
15677
+ let t4 = r(n);
15678
+ return e.set(n, t4), t4;
15680
15679
  };
15681
15680
  }, rr = (r, e, n = {}) => {
15682
15681
  let a = { cache: {}, input: r, index: 0, indexMax: 0, options: n, output: [] };
@@ -15686,16 +15685,16 @@ var _lazyMatch = () => {
15686
15685
  let n = {};
15687
15686
  for (let a of r) {
15688
15687
  if (a.length !== 1) throw new Error(`Invalid character: "${a}"`);
15689
- let t5 = a.charCodeAt(0);
15690
- n[t5] = !0;
15688
+ let t4 = a.charCodeAt(0);
15689
+ n[t4] = !0;
15691
15690
  }
15692
15691
  return (a) => {
15693
- let t5 = a.index, o = a.input;
15692
+ let t4 = a.index, o = a.input;
15694
15693
  for (; a.index < o.length && o.charCodeAt(a.index) in n; ) a.index += 1;
15695
15694
  let u = a.index;
15696
- if (u > t5) {
15695
+ if (u > t4) {
15697
15696
  if (!h(e) && !a.options.silent) {
15698
- let s = a.input.slice(t5, u), c = d(e) ? e(s, o, String(t5)) : e;
15697
+ let s = a.input.slice(t4, u), c = d(e) ? e(s, o, String(t4)) : e;
15699
15698
  h(c) || a.output.push(c);
15700
15699
  }
15701
15700
  a.indexMax = Math.max(a.indexMax, a.index);
@@ -15703,10 +15702,10 @@ var _lazyMatch = () => {
15703
15702
  return !0;
15704
15703
  };
15705
15704
  }, nr = (r, e) => {
15706
- let n = r.source, a = r.flags.replace(/y|$/, "y"), t5 = new RegExp(n, a);
15705
+ let n = r.source, a = r.flags.replace(/y|$/, "y"), t4 = new RegExp(n, a);
15707
15706
  return g((o) => {
15708
- t5.lastIndex = o.index;
15709
- let u = t5.exec(o.input);
15707
+ t4.lastIndex = o.index;
15708
+ let u = t4.exec(o.input);
15710
15709
  if (u) {
15711
15710
  if (!h(e) && !o.options.silent) {
15712
15711
  let s = d(e) ? e(...u, o.input, String(o.index)) : e;
@@ -15718,56 +15717,56 @@ var _lazyMatch = () => {
15718
15717
  }, ar = (r, e) => (n) => {
15719
15718
  if (n.input.startsWith(r, n.index)) {
15720
15719
  if (!h(e) && !n.options.silent) {
15721
- let t5 = d(e) ? e(r, n.input, String(n.index)) : e;
15722
- h(t5) || n.output.push(t5);
15720
+ let t4 = d(e) ? e(r, n.input, String(n.index)) : e;
15721
+ h(t4) || n.output.push(t4);
15723
15722
  }
15724
15723
  return n.index += r.length, n.indexMax = Math.max(n.indexMax, n.index), !0;
15725
15724
  } else return !1;
15726
15725
  }, C = (r, e, n, a) => {
15727
- let t5 = v(r);
15726
+ let t4 = v(r);
15728
15727
  return g(_(M((o) => {
15729
15728
  let u = 0;
15730
15729
  for (; u < n; ) {
15731
15730
  let s = o.index;
15732
- if (!t5(o) || (u += 1, o.index === s)) break;
15731
+ if (!t4(o) || (u += 1, o.index === s)) break;
15733
15732
  }
15734
15733
  return u >= e;
15735
15734
  })));
15736
15735
  }, tr = (r, e) => C(r, 0, 1), f = (r, e) => C(r, 0, 1 / 0), x = (r, e) => {
15737
15736
  let n = r.map(v);
15738
15737
  return g(_(M((a) => {
15739
- for (let t5 = 0, o = n.length; t5 < o; t5++) if (!n[t5](a)) return !1;
15738
+ for (let t4 = 0, o = n.length; t4 < o; t4++) if (!n[t4](a)) return !1;
15740
15739
  return !0;
15741
15740
  })));
15742
15741
  }, l = (r, e) => {
15743
15742
  let n = r.map(v);
15744
15743
  return g(_((a) => {
15745
- for (let t5 = 0, o = n.length; t5 < o; t5++) if (n[t5](a)) return !0;
15744
+ for (let t4 = 0, o = n.length; t4 < o; t4++) if (n[t4](a)) return !0;
15746
15745
  return !1;
15747
15746
  }));
15748
15747
  }, M = (r, e = !1) => {
15749
15748
  let n = v(r);
15750
15749
  return (a) => {
15751
- let t5 = a.index, o = a.output.length, u = n(a);
15752
- return (!u || e) && (a.index = t5, a.output.length !== o && (a.output.length = o)), u;
15750
+ let t4 = a.index, o = a.output.length, u = n(a);
15751
+ return (!u || e) && (a.index = t4, a.output.length !== o && (a.output.length = o)), u;
15753
15752
  };
15754
15753
  }, _ = (r, e) => v(r), g = /* @__PURE__ */ (() => {
15755
15754
  let r = 0;
15756
15755
  return (e) => {
15757
15756
  let n = v(e), a = r += 1;
15758
- return (t5) => {
15757
+ return (t4) => {
15759
15758
  var o;
15760
- if (t5.options.memoization === !1) return n(t5);
15761
- let u = t5.index, s = (o = t5.cache)[a] || (o[a] = /* @__PURE__ */ new Map()), c = s.get(u);
15759
+ if (t4.options.memoization === !1) return n(t4);
15760
+ let u = t4.index, s = (o = t4.cache)[a] || (o[a] = /* @__PURE__ */ new Map()), c = s.get(u);
15762
15761
  if (c === !1) return !1;
15763
- if (W(c)) return t5.index = c, !0;
15764
- if (c) return t5.index = c.index, c.output?.length && t5.output.push(...c.output), !0;
15762
+ if (W(c)) return t4.index = c, !0;
15763
+ if (c) return t4.index = c.index, c.output?.length && t4.output.push(...c.output), !0;
15765
15764
  {
15766
- let Z = t5.output.length;
15767
- if (n(t5)) {
15768
- let D = t5.index, U = t5.output.length;
15765
+ let Z = t4.output.length;
15766
+ if (n(t4)) {
15767
+ let D = t4.index, U = t4.output.length;
15769
15768
  if (U > Z) {
15770
- let ee = t5.output.slice(Z, U);
15769
+ let ee = t4.output.slice(Z, U);
15771
15770
  s.set(u, { index: D, output: ee });
15772
15771
  } else s.set(u, D);
15773
15772
  return !0;
@@ -15806,7 +15805,7 @@ var _lazyMatch = () => {
15806
15805
  }, sr = i2(/^\*\*\/\*$/, ".*"), cr = i2(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r, e, n) => `.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}`), lr = i2(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r, e, n, a) => `.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}(?:${a.replaceAll(",", "|").replaceAll(".", "\\.")})`), y = i2(/\\./, p), pr = i2(/[$.*+?^(){}[\]\|]/, (r) => `\\${r}`), vr = i2(/./, p), hr = i2(/^(?:!!)*!(.*)$/, (r, e) => `(?!^${L(e)}$).*?`), dr = i2(/^(!!)+/, ""), fr = l([hr, dr]), xr = i2(/\/(\*\*\/)+/, "(?:/.+/|/)"), gr = i2(/^(\*\*\/)+/, "(?:^|.*/)"), mr = i2(/\/(\*\*)$/, "(?:/.*|$)"), _r = i2(/\*\*/, ".*"), j = l([xr, gr, mr, _r]), Sr = i2(/\*\/(?!\*\*\/)/, "[^/]*/"), yr = i2(/\*/, "[^/]*"), N = l([Sr, yr]), k = i2("?", "[^/]"), $r = i2("[", p), wr = i2("]", p), Ar = i2(/[!^]/, "^/"), br = i2(/[a-z]-[a-z]|[0-9]-[0-9]/i, p), Cr = i2(/[$.*+?^(){}[\|]/, (r) => `\\${r}`), Mr = i2(/[^\]]/, p), Er = l([y, Cr, br, Mr]), B = x([$r, tr(Ar), f(Er), wr]), Pr = i2("{", "(?:"), Or = i2("}", ")"), Rr = i2(/(\d+)\.\.(\d+)/, (r, e, n) => or(+e, +n, Math.min(e.length, n.length)).join("|")), zr = i2(/([a-z]+)\.\.([a-z]+)/, (r, e, n) => R(e, n).join("|")), jr = i2(/([A-Z]+)\.\.([A-Z]+)/, (r, e, n) => R(e.toLowerCase(), n.toLowerCase()).join("|").toUpperCase()), Nr = l([Rr, zr, jr]), I = x([Pr, Nr, Or]), kr = i2("{", "(?:"), Br = i2("}", ")"), Ir = i2(",", "|"), Fr = i2(/[$.*+?^(){[\]\|]/, (r) => `\\${r}`), Lr = i2(/[^}]/, p), Zr = E(() => F), Dr = l([j, N, k, B, I, Zr, y, Fr, Ir, Lr]), F = x([kr, f(Dr), Br]), Ur = f(l([sr, cr, lr, fr, j, N, k, B, I, F, y, pr, vr])), Vr = Ur, Gr = z(Vr), L = Gr, Tr = i2(/\\./, p), qr = i2(/./, p), Hr = i2(/\*\*\*+/, "*"), Jr = i2(/([^/{[(!])\*\*/, (r, e) => `${e}*`), Qr = i2(/(^|.)\*\*(?=[^*/)\]}])/, (r, e) => `${e}*`), Wr = f(l([Tr, Hr, Jr, Qr, qr])), Kr = Wr, Xr = z(Kr), Yr = Xr, $ = (r, e) => {
15807
15806
  let n = Array.isArray(r) ? r : [r];
15808
15807
  if (!n.length) return !1;
15809
- let a = n.map($.compile), t5 = n.every((s) => /(\/(?:\*\*)?|\[\/\])$/.test(s)), o = e.replace(/[\\\/]+/g, "/").replace(/\/$/, t5 ? "/" : "");
15808
+ let a = n.map($.compile), t4 = n.every((s) => /(\/(?:\*\*)?|\[\/\])$/.test(s)), o = e.replace(/[\\\/]+/g, "/").replace(/\/$/, t4 ? "/" : "");
15810
15809
  return a.some((s) => s.test(o));
15811
15810
  };
15812
15811
  $.compile = (r) => new RegExp(`^${L(Yr(r))}$`, "s");
@@ -16357,6 +16356,7 @@ function normalizeFileName(typescript, fileName) {
16357
16356
 
16358
16357
  // src/componentManifest/resolveComponents.ts
16359
16358
  import { recast } from "storybook/internal/babel";
16359
+ import { extractDeclaredSubcomponents } from "storybook/internal/common";
16360
16360
  import { storyNameFromExport } from "storybook/internal/csf/csf-utils";
16361
16361
  import {
16362
16362
  createStoryArgsResolver as createStoryArgsResolver2,
@@ -16477,64 +16477,10 @@ ${message}`
16477
16477
  };
16478
16478
 
16479
16479
  // src/componentManifest/subcomponents.ts
16480
- import { types as t4 } from "storybook/internal/babel";
16481
16480
  function findExactComponentMatch(components, componentName) {
16482
16481
  if (componentName)
16483
16482
  return components.find((component) => component.componentName === componentName);
16484
16483
  }
16485
- function extractDeclaredSubcomponents(csf) {
16486
- let rawSubcomponents = unwrapSubcomponentNode(
16487
- csf._metaAnnotations.subcomponents,
16488
- csf._ast.program
16489
- );
16490
- return !rawSubcomponents || !t4.isObjectExpression(rawSubcomponents) ? [] : rawSubcomponents.properties.flatMap((property) => {
16491
- if (!t4.isObjectProperty(property))
16492
- return [];
16493
- let name = getObjectKeyName(property.key), directComponentName = getComponentExpressionName(property.value), componentExpression = unwrapSubcomponentNode(property.value, csf._ast.program), componentName = getComponentExpressionName(componentExpression) ?? directComponentName;
16494
- return name && componentName ? [{ name, componentName }] : [];
16495
- });
16496
- }
16497
- function findVariableInitialization(identifier, program) {
16498
- for (let node of program.body) {
16499
- let declaration = (t4.isVariableDeclaration(node) ? node.declarations : t4.isExportNamedDeclaration(node) && t4.isVariableDeclaration(node.declaration) ? node.declaration.declarations : void 0)?.find(
16500
- (decl) => t4.isVariableDeclarator(decl) && t4.isIdentifier(decl.id) && decl.id.name === identifier
16501
- );
16502
- if (declaration?.init && t4.isExpression(declaration.init))
16503
- return declaration.init;
16504
- }
16505
- }
16506
- function unwrapSubcomponentNode(node, program, visitedIdentifiers = /* @__PURE__ */ new Set()) {
16507
- let current2 = node;
16508
- for (; current2; ) {
16509
- if (t4.isIdentifier(current2)) {
16510
- if (visitedIdentifiers.has(current2.name))
16511
- return;
16512
- visitedIdentifiers.add(current2.name), current2 = findVariableInitialization(current2.name, program);
16513
- continue;
16514
- }
16515
- if (t4.isParenthesizedExpression(current2) || t4.isTSAsExpression(current2) || t4.isTSSatisfiesExpression(current2) || t4.isTSNonNullExpression(current2)) {
16516
- current2 = current2.expression;
16517
- continue;
16518
- }
16519
- return current2;
16520
- }
16521
- }
16522
- function getObjectKeyName(key) {
16523
- if (t4.isIdentifier(key))
16524
- return key.name;
16525
- if (t4.isStringLiteral(key))
16526
- return key.value;
16527
- }
16528
- function getComponentExpressionName(node) {
16529
- if (node) {
16530
- if (t4.isIdentifier(node))
16531
- return node.name;
16532
- if (t4.isMemberExpression(node) && !node.computed) {
16533
- let objectName = getComponentExpressionName(node.object), propertyName = getComponentExpressionName(node.property);
16534
- return objectName && propertyName ? `${objectName}.${propertyName}` : void 0;
16535
- }
16536
- }
16537
- }
16538
16484
 
16539
16485
  // src/componentManifest/resolveComponents.ts
16540
16486
  function findMatchingComponent(components, componentName, title) {