@fewangsit/wangsvue 1.5.229-alpha.32 → 1.5.229-alpha.34

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.
package/mcp/main.js CHANGED
@@ -21,6 +21,10 @@ const cl = "https://fewangsit.gitbook.io", ul = "https://fewangsit.gitbook.io/vu
21
21
  alwaysApply: !0,
22
22
  output_dir: ".trae/rules"
23
23
  },
24
+ copilot: {
25
+ applyTo: "'**'",
26
+ output_dir: ".github/instructions"
27
+ },
24
28
  default: {
25
29
  inclusion: "always",
26
30
  output_dir: "docs"
@@ -43,17 +47,23 @@ function Qi(t) {
43
47
  });
44
48
  });
45
49
  }
46
- function ll(t) {
47
- const e = t.split(`
48
- `), n = [];
49
- for (const r of e) {
50
- const s = r.match(/\[([^\]]+)\]\(([^)]*\/(?:style-guide|testing-guide)\/[^)]+)\)/);
51
- s && n.push({
52
- title: s[1],
53
- path: s[2]
54
- });
50
+ function ll(t, e = !1) {
51
+ const n = t.split(`
52
+ `), r = [];
53
+ for (const s of n) {
54
+ const i = s.match(/\[([^\]]+)\]\(([^)]*\/(?:style-guide|testing-guide)\/[^)]+)\)/);
55
+ if (i) {
56
+ const a = i[1], o = i[2];
57
+ e ? (a.toLowerCase().includes("api-services") || o.toLowerCase().includes("api-services")) && r.push({
58
+ title: a,
59
+ path: o
60
+ }) : r.push({
61
+ title: a,
62
+ path: o
63
+ });
64
+ }
55
65
  }
56
- return n;
66
+ return r;
57
67
  }
58
68
  function Ds(t) {
59
69
  const n = t.replace(/^\/vue\/docs\//, "").split("/");
@@ -85,26 +95,26 @@ function fl(t, e, n) {
85
95
  return l.endsWith(".md") || (l += ".md"), `[${o}](${l})`;
86
96
  }), s + i;
87
97
  }
88
- async function pl(t) {
98
+ async function pl(t, e = !1) {
89
99
  try {
90
- const e = yc(t), n = `${process.cwd()}/${e.output_dir}`;
100
+ const n = yc(t), r = `${process.cwd()}/${n.output_dir}`;
91
101
  console.log("Fetching documentation index...");
92
- const r = await Qi(ul), s = ll(r);
93
- console.log(`Found ${s.length} documentation pages to fetch`), console.log(`Output directory: ${e.output_dir}`);
94
- for (const i of s)
102
+ const s = await Qi(ul), i = ll(s, e);
103
+ console.log(`Found ${i.length} documentation pages to fetch`), console.log(`Output directory: ${n.output_dir}`), e && console.log("Filter: API services documentation only");
104
+ for (const a of i)
95
105
  try {
96
- console.log(`Fetching: ${i.title} from ${i.path}`);
97
- const a = `${cl}${i.path}`, o = await Qi(a), c = Ds(i.path), l = `${n}/${c}`;
98
- dl(l);
99
- const d = fl(o, i.title, t);
100
- xr.writeFileSync(l, d, "utf8"), console.log(`✓ Saved: ${e.output_dir}/${c}`);
101
- } catch (a) {
102
- console.error(`✗ Failed to fetch ${i.title}:`, a instanceof Error ? a.message : String(a));
106
+ console.log(`Fetching: ${a.title} from ${a.path}`);
107
+ const o = `${cl}${a.path}`, c = await Qi(o), l = Ds(a.path), d = `${r}/${l}`;
108
+ dl(d);
109
+ const h = fl(c, a.title, t);
110
+ xr.writeFileSync(d, h, "utf8"), console.log(`✓ Saved: ${n.output_dir}/${l}`);
111
+ } catch (o) {
112
+ console.error(`✗ Failed to fetch ${a.title}:`, o instanceof Error ? o.message : String(o));
103
113
  }
104
114
  console.log(`
105
115
  Documentation fetch completed!`);
106
- } catch (e) {
107
- throw console.error("Error:", e instanceof Error ? e.message : String(e)), e;
116
+ } catch (n) {
117
+ throw console.error("Error:", n instanceof Error ? n.message : String(n)), n;
108
118
  }
109
119
  }
110
120
  function vc(t) {
@@ -415,7 +425,7 @@ var ea;
415
425
  // second overwrites first
416
426
  });
417
427
  })(ea || (ea = {}));
418
- const B = he.arrayToEnum([
428
+ const G = he.arrayToEnum([
419
429
  "string",
420
430
  "nan",
421
431
  "number",
@@ -439,23 +449,23 @@ const B = he.arrayToEnum([
439
449
  ]), It = (t) => {
440
450
  switch (typeof t) {
441
451
  case "undefined":
442
- return B.undefined;
452
+ return G.undefined;
443
453
  case "string":
444
- return B.string;
454
+ return G.string;
445
455
  case "number":
446
- return Number.isNaN(t) ? B.nan : B.number;
456
+ return Number.isNaN(t) ? G.nan : G.number;
447
457
  case "boolean":
448
- return B.boolean;
458
+ return G.boolean;
449
459
  case "function":
450
- return B.function;
460
+ return G.function;
451
461
  case "bigint":
452
- return B.bigint;
462
+ return G.bigint;
453
463
  case "symbol":
454
- return B.symbol;
464
+ return G.symbol;
455
465
  case "object":
456
- return Array.isArray(t) ? B.array : t === null ? B.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? B.promise : typeof Map < "u" && t instanceof Map ? B.map : typeof Set < "u" && t instanceof Set ? B.set : typeof Date < "u" && t instanceof Date ? B.date : B.object;
466
+ return Array.isArray(t) ? G.array : t === null ? G.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? G.promise : typeof Map < "u" && t instanceof Map ? G.map : typeof Set < "u" && t instanceof Set ? G.set : typeof Date < "u" && t instanceof Date ? G.date : G.object;
457
467
  default:
458
- return B.unknown;
468
+ return G.unknown;
459
469
  }
460
470
  }, L = he.arrayToEnum([
461
471
  "invalid_type",
@@ -543,7 +553,7 @@ const qs = (t, e) => {
543
553
  let n;
544
554
  switch (t.code) {
545
555
  case L.invalid_type:
546
- t.received === B.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
556
+ t.received === G.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
547
557
  break;
548
558
  case L.invalid_literal:
549
559
  n = `Invalid literal value, expected ${JSON.stringify(t.expected, he.jsonStringifyReplacer)}`;
@@ -903,7 +913,7 @@ let pe = class {
903
913
  });
904
914
  }
905
915
  brand() {
906
- return new Gl({
916
+ return new Bl({
907
917
  typeName: F.ZodBranded,
908
918
  type: this,
909
919
  ...ue(this._def)
@@ -929,7 +939,7 @@ let pe = class {
929
939
  return pi.create(this, e);
930
940
  }
931
941
  readonly() {
932
- return Bs.create(this);
942
+ return Gs.create(this);
933
943
  }
934
944
  isOptional() {
935
945
  return this.safeParse(void 0).success;
@@ -976,11 +986,11 @@ function Wl(t, e) {
976
986
  }
977
987
  let Ls = class mn extends pe {
978
988
  _parse(e) {
979
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== B.string) {
989
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== G.string) {
980
990
  const i = this._getOrReturnCtx(e);
981
991
  return W(i, {
982
992
  code: L.invalid_type,
983
- expected: B.string,
993
+ expected: G.string,
984
994
  received: i.parsedType
985
995
  }), se;
986
996
  }
@@ -1357,7 +1367,7 @@ Ls.create = (t) => new Ls({
1357
1367
  coerce: t?.coerce ?? !1,
1358
1368
  ...ue(t)
1359
1369
  });
1360
- function Bl(t, e) {
1370
+ function Gl(t, e) {
1361
1371
  const n = (t.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, s = n > r ? n : r, i = Number.parseInt(t.toFixed(s).replace(".", "")), a = Number.parseInt(e.toFixed(s).replace(".", ""));
1362
1372
  return i % a / 10 ** s;
1363
1373
  }
@@ -1366,11 +1376,11 @@ let sa = class Vs extends pe {
1366
1376
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1367
1377
  }
1368
1378
  _parse(e) {
1369
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== B.number) {
1379
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== G.number) {
1370
1380
  const i = this._getOrReturnCtx(e);
1371
1381
  return W(i, {
1372
1382
  code: L.invalid_type,
1373
- expected: B.number,
1383
+ expected: G.number,
1374
1384
  received: i.parsedType
1375
1385
  }), se;
1376
1386
  }
@@ -1396,7 +1406,7 @@ let sa = class Vs extends pe {
1396
1406
  inclusive: i.inclusive,
1397
1407
  exact: !1,
1398
1408
  message: i.message
1399
- }), s.dirty()) : i.kind === "multipleOf" ? Bl(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), W(r, {
1409
+ }), s.dirty()) : i.kind === "multipleOf" ? Gl(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), W(r, {
1400
1410
  code: L.not_multiple_of,
1401
1411
  multipleOf: i.value,
1402
1412
  message: i.message
@@ -1544,7 +1554,7 @@ class kn extends pe {
1544
1554
  } catch {
1545
1555
  return this._getInvalidInput(e);
1546
1556
  }
1547
- if (this._getType(e) !== B.bigint)
1557
+ if (this._getType(e) !== G.bigint)
1548
1558
  return this._getInvalidInput(e);
1549
1559
  let r;
1550
1560
  const s = new Je();
@@ -1572,7 +1582,7 @@ class kn extends pe {
1572
1582
  const n = this._getOrReturnCtx(e);
1573
1583
  return W(n, {
1574
1584
  code: L.invalid_type,
1575
- expected: B.bigint,
1585
+ expected: G.bigint,
1576
1586
  received: n.parsedType
1577
1587
  }), se;
1578
1588
  }
@@ -1668,11 +1678,11 @@ kn.create = (t) => new kn({
1668
1678
  });
1669
1679
  let Fs = class extends pe {
1670
1680
  _parse(e) {
1671
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== B.boolean) {
1681
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== G.boolean) {
1672
1682
  const r = this._getOrReturnCtx(e);
1673
1683
  return W(r, {
1674
1684
  code: L.invalid_type,
1675
- expected: B.boolean,
1685
+ expected: G.boolean,
1676
1686
  received: r.parsedType
1677
1687
  }), se;
1678
1688
  }
@@ -1686,11 +1696,11 @@ Fs.create = (t) => new Fs({
1686
1696
  });
1687
1697
  class jr extends pe {
1688
1698
  _parse(e) {
1689
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== B.date) {
1699
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== G.date) {
1690
1700
  const i = this._getOrReturnCtx(e);
1691
1701
  return W(i, {
1692
1702
  code: L.invalid_type,
1693
- expected: B.date,
1703
+ expected: G.date,
1694
1704
  received: i.parsedType
1695
1705
  }), se;
1696
1706
  }
@@ -1764,11 +1774,11 @@ jr.create = (t) => new jr({
1764
1774
  });
1765
1775
  class ia extends pe {
1766
1776
  _parse(e) {
1767
- if (this._getType(e) !== B.symbol) {
1777
+ if (this._getType(e) !== G.symbol) {
1768
1778
  const r = this._getOrReturnCtx(e);
1769
1779
  return W(r, {
1770
1780
  code: L.invalid_type,
1771
- expected: B.symbol,
1781
+ expected: G.symbol,
1772
1782
  received: r.parsedType
1773
1783
  }), se;
1774
1784
  }
@@ -1781,11 +1791,11 @@ ia.create = (t) => new ia({
1781
1791
  });
1782
1792
  class aa extends pe {
1783
1793
  _parse(e) {
1784
- if (this._getType(e) !== B.undefined) {
1794
+ if (this._getType(e) !== G.undefined) {
1785
1795
  const r = this._getOrReturnCtx(e);
1786
1796
  return W(r, {
1787
1797
  code: L.invalid_type,
1788
- expected: B.undefined,
1798
+ expected: G.undefined,
1789
1799
  received: r.parsedType
1790
1800
  }), se;
1791
1801
  }
@@ -1798,11 +1808,11 @@ aa.create = (t) => new aa({
1798
1808
  });
1799
1809
  let oa = class extends pe {
1800
1810
  _parse(e) {
1801
- if (this._getType(e) !== B.null) {
1811
+ if (this._getType(e) !== G.null) {
1802
1812
  const r = this._getOrReturnCtx(e);
1803
1813
  return W(r, {
1804
1814
  code: L.invalid_type,
1805
- expected: B.null,
1815
+ expected: G.null,
1806
1816
  received: r.parsedType
1807
1817
  }), se;
1808
1818
  }
@@ -1842,7 +1852,7 @@ let Nt = class extends pe {
1842
1852
  const n = this._getOrReturnCtx(e);
1843
1853
  return W(n, {
1844
1854
  code: L.invalid_type,
1845
- expected: B.never,
1855
+ expected: G.never,
1846
1856
  received: n.parsedType
1847
1857
  }), se;
1848
1858
  }
@@ -1853,11 +1863,11 @@ Nt.create = (t) => new Nt({
1853
1863
  });
1854
1864
  class la extends pe {
1855
1865
  _parse(e) {
1856
- if (this._getType(e) !== B.undefined) {
1866
+ if (this._getType(e) !== G.undefined) {
1857
1867
  const r = this._getOrReturnCtx(e);
1858
1868
  return W(r, {
1859
1869
  code: L.invalid_type,
1860
- expected: B.void,
1870
+ expected: G.void,
1861
1871
  received: r.parsedType
1862
1872
  }), se;
1863
1873
  }
@@ -1871,10 +1881,10 @@ la.create = (t) => new la({
1871
1881
  let en = class Cr extends pe {
1872
1882
  _parse(e) {
1873
1883
  const { ctx: n, status: r } = this._processInputParams(e), s = this._def;
1874
- if (n.parsedType !== B.array)
1884
+ if (n.parsedType !== G.array)
1875
1885
  return W(n, {
1876
1886
  code: L.invalid_type,
1877
- expected: B.array,
1887
+ expected: G.array,
1878
1888
  received: n.parsedType
1879
1889
  }), se;
1880
1890
  if (s.exactLength !== null) {
@@ -1968,11 +1978,11 @@ let $t = class at extends pe {
1968
1978
  return this._cached = { shape: e, keys: n }, this._cached;
1969
1979
  }
1970
1980
  _parse(e) {
1971
- if (this._getType(e) !== B.object) {
1981
+ if (this._getType(e) !== G.object) {
1972
1982
  const l = this._getOrReturnCtx(e);
1973
1983
  return W(l, {
1974
1984
  code: L.invalid_type,
1975
- expected: B.object,
1985
+ expected: G.object,
1976
1986
  received: l.parsedType
1977
1987
  }), se;
1978
1988
  }
@@ -2321,7 +2331,7 @@ function Us(t, e) {
2321
2331
  const n = It(t), r = It(e);
2322
2332
  if (t === e)
2323
2333
  return { valid: !0, data: t };
2324
- if (n === B.object && r === B.object) {
2334
+ if (n === G.object && r === G.object) {
2325
2335
  const s = he.objectKeys(e), i = he.objectKeys(t).filter((o) => s.indexOf(o) !== -1), a = { ...t, ...e };
2326
2336
  for (const o of i) {
2327
2337
  const c = Us(t[o], e[o]);
@@ -2330,7 +2340,7 @@ function Us(t, e) {
2330
2340
  a[o] = c.data;
2331
2341
  }
2332
2342
  return { valid: !0, data: a };
2333
- } else if (n === B.array && r === B.array) {
2343
+ } else if (n === G.array && r === G.array) {
2334
2344
  if (t.length !== e.length)
2335
2345
  return { valid: !1 };
2336
2346
  const s = [];
@@ -2341,7 +2351,7 @@ function Us(t, e) {
2341
2351
  s.push(c.data);
2342
2352
  }
2343
2353
  return { valid: !0, data: s };
2344
- } else return n === B.date && r === B.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2354
+ } else return n === G.date && r === G.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2345
2355
  }
2346
2356
  let Mr = class extends pe {
2347
2357
  _parse(e) {
@@ -2384,10 +2394,10 @@ Mr.create = (t, e, n) => new Mr({
2384
2394
  class Ut extends pe {
2385
2395
  _parse(e) {
2386
2396
  const { status: n, ctx: r } = this._processInputParams(e);
2387
- if (r.parsedType !== B.array)
2397
+ if (r.parsedType !== G.array)
2388
2398
  return W(r, {
2389
2399
  code: L.invalid_type,
2390
- expected: B.array,
2400
+ expected: G.array,
2391
2401
  received: r.parsedType
2392
2402
  }), se;
2393
2403
  if (r.data.length < this._def.items.length)
@@ -2440,10 +2450,10 @@ class da extends pe {
2440
2450
  }
2441
2451
  _parse(e) {
2442
2452
  const { status: n, ctx: r } = this._processInputParams(e);
2443
- if (r.parsedType !== B.map)
2453
+ if (r.parsedType !== G.map)
2444
2454
  return W(r, {
2445
2455
  code: L.invalid_type,
2446
- expected: B.map,
2456
+ expected: G.map,
2447
2457
  received: r.parsedType
2448
2458
  }), se;
2449
2459
  const s = this._def.keyType, i = this._def.valueType, a = [...r.data.entries()].map(([o, c], l) => ({
@@ -2482,10 +2492,10 @@ da.create = (t, e, n) => new da({
2482
2492
  class Sn extends pe {
2483
2493
  _parse(e) {
2484
2494
  const { status: n, ctx: r } = this._processInputParams(e);
2485
- if (r.parsedType !== B.set)
2495
+ if (r.parsedType !== G.set)
2486
2496
  return W(r, {
2487
2497
  code: L.invalid_type,
2488
- expected: B.set,
2498
+ expected: G.set,
2489
2499
  received: r.parsedType
2490
2500
  }), se;
2491
2501
  const s = this._def;
@@ -2643,7 +2653,7 @@ fi.create = wc;
2643
2653
  class ha extends pe {
2644
2654
  _parse(e) {
2645
2655
  const n = he.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
2646
- if (r.parsedType !== B.string && r.parsedType !== B.number) {
2656
+ if (r.parsedType !== G.string && r.parsedType !== G.number) {
2647
2657
  const s = he.objectValues(n);
2648
2658
  return W(r, {
2649
2659
  expected: he.joinValues(s),
@@ -2676,13 +2686,13 @@ class Zr extends pe {
2676
2686
  }
2677
2687
  _parse(e) {
2678
2688
  const { ctx: n } = this._processInputParams(e);
2679
- if (n.parsedType !== B.promise && n.common.async === !1)
2689
+ if (n.parsedType !== G.promise && n.common.async === !1)
2680
2690
  return W(n, {
2681
2691
  code: L.invalid_type,
2682
- expected: B.promise,
2692
+ expected: G.promise,
2683
2693
  received: n.parsedType
2684
2694
  }), se;
2685
- const r = n.parsedType === B.promise ? n.data : Promise.resolve(n.data);
2695
+ const r = n.parsedType === G.promise ? n.data : Promise.resolve(n.data);
2686
2696
  return Xe(r.then((s) => this._def.type.parseAsync(s, {
2687
2697
  path: n.path,
2688
2698
  errorMap: n.common.contextualErrorMap
@@ -2788,7 +2798,7 @@ tn.createWithPreprocess = (t, e, n) => new tn({
2788
2798
  });
2789
2799
  let Ct = class extends pe {
2790
2800
  _parse(e) {
2791
- return this._getType(e) === B.undefined ? Xe(void 0) : this._def.innerType._parse(e);
2801
+ return this._getType(e) === G.undefined ? Xe(void 0) : this._def.innerType._parse(e);
2792
2802
  }
2793
2803
  unwrap() {
2794
2804
  return this._def.innerType;
@@ -2801,7 +2811,7 @@ Ct.create = (t, e) => new Ct({
2801
2811
  });
2802
2812
  let nn = class extends pe {
2803
2813
  _parse(e) {
2804
- return this._getType(e) === B.null ? Xe(null) : this._def.innerType._parse(e);
2814
+ return this._getType(e) === G.null ? Xe(null) : this._def.innerType._parse(e);
2805
2815
  }
2806
2816
  unwrap() {
2807
2817
  return this._def.innerType;
@@ -2816,7 +2826,7 @@ let Ks = class extends pe {
2816
2826
  _parse(e) {
2817
2827
  const { ctx: n } = this._processInputParams(e);
2818
2828
  let r = n.data;
2819
- return n.parsedType === B.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
2829
+ return n.parsedType === G.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
2820
2830
  data: r,
2821
2831
  path: n.path,
2822
2832
  parent: n
@@ -2877,11 +2887,11 @@ Ws.create = (t, e) => new Ws({
2877
2887
  });
2878
2888
  class ma extends pe {
2879
2889
  _parse(e) {
2880
- if (this._getType(e) !== B.nan) {
2890
+ if (this._getType(e) !== G.nan) {
2881
2891
  const r = this._getOrReturnCtx(e);
2882
2892
  return W(r, {
2883
2893
  code: L.invalid_type,
2884
- expected: B.nan,
2894
+ expected: G.nan,
2885
2895
  received: r.parsedType
2886
2896
  }), se;
2887
2897
  }
@@ -2892,7 +2902,7 @@ ma.create = (t) => new ma({
2892
2902
  typeName: F.ZodNaN,
2893
2903
  ...ue(t)
2894
2904
  });
2895
- class Gl extends pe {
2905
+ class Bl extends pe {
2896
2906
  _parse(e) {
2897
2907
  const { ctx: n } = this._processInputParams(e), r = n.data;
2898
2908
  return this._def.type._parse({
@@ -2945,7 +2955,7 @@ class pi extends pe {
2945
2955
  });
2946
2956
  }
2947
2957
  }
2948
- let Bs = class extends pe {
2958
+ let Gs = class extends pe {
2949
2959
  _parse(e) {
2950
2960
  const n = this._def.innerType._parse(e), r = (s) => (Xt(s) && (s.value = Object.freeze(s.value)), s);
2951
2961
  return Ar(n) ? n.then((s) => r(s)) : r(n);
@@ -2954,7 +2964,7 @@ let Bs = class extends pe {
2954
2964
  return this._def.innerType;
2955
2965
  }
2956
2966
  };
2957
- Bs.create = (t, e) => new Bs({
2967
+ Gs.create = (t, e) => new Gs({
2958
2968
  innerType: t,
2959
2969
  typeName: F.ZodReadonly,
2960
2970
  ...ue(e)
@@ -3565,9 +3575,9 @@ const jd = (t) => {
3565
3575
  continue: !e.abort
3566
3576
  });
3567
3577
  };
3568
- }), Bd = /* @__PURE__ */ A("$ZodCheckLowerCase", (t, e) => {
3578
+ }), Gd = /* @__PURE__ */ A("$ZodCheckLowerCase", (t, e) => {
3569
3579
  e.pattern ?? (e.pattern = qd), ts.init(t, e);
3570
- }), Gd = /* @__PURE__ */ A("$ZodCheckUpperCase", (t, e) => {
3580
+ }), Bd = /* @__PURE__ */ A("$ZodCheckUpperCase", (t, e) => {
3571
3581
  e.pattern ?? (e.pattern = Ld), ts.init(t, e);
3572
3582
  }), Jd = /* @__PURE__ */ A("$ZodCheckIncludes", (t, e) => {
3573
3583
  Ke.init(t, e);
@@ -4220,7 +4230,7 @@ const Lc = /* @__PURE__ */ A("$ZodUnion", (t, e) => {
4220
4230
  return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([c, l]) => ba(n, c, l)) : ba(n, i, a);
4221
4231
  };
4222
4232
  });
4223
- function Gs(t, e) {
4233
+ function Bs(t, e) {
4224
4234
  if (t === e)
4225
4235
  return { valid: !0, data: t };
4226
4236
  if (t instanceof Date && e instanceof Date && +t == +e)
@@ -4228,7 +4238,7 @@ function Gs(t, e) {
4228
4238
  if (qr(t) && qr(e)) {
4229
4239
  const n = Object.keys(e), r = Object.keys(t).filter((i) => n.indexOf(i) !== -1), s = { ...t, ...e };
4230
4240
  for (const i of r) {
4231
- const a = Gs(t[i], e[i]);
4241
+ const a = Bs(t[i], e[i]);
4232
4242
  if (!a.valid)
4233
4243
  return {
4234
4244
  valid: !1,
@@ -4243,7 +4253,7 @@ function Gs(t, e) {
4243
4253
  return { valid: !1, mergeErrorPath: [] };
4244
4254
  const n = [];
4245
4255
  for (let r = 0; r < t.length; r++) {
4246
- const s = t[r], i = e[r], a = Gs(s, i);
4256
+ const s = t[r], i = e[r], a = Bs(s, i);
4247
4257
  if (!a.valid)
4248
4258
  return {
4249
4259
  valid: !1,
@@ -4258,7 +4268,7 @@ function Gs(t, e) {
4258
4268
  function ba(t, e, n) {
4259
4269
  if (e.issues.length && t.issues.push(...e.issues), n.issues.length && t.issues.push(...n.issues), vn(t))
4260
4270
  return t;
4261
- const r = Gs(e.value, n.value);
4271
+ const r = Bs(e.value, n.value);
4262
4272
  if (!r.valid)
4263
4273
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
4264
4274
  return t.value = r.data, t;
@@ -4426,7 +4436,7 @@ const Wf = /* @__PURE__ */ A("$ZodReadonly", (t, e) => {
4426
4436
  function $a(t) {
4427
4437
  return t.value = Object.freeze(t.value), t;
4428
4438
  }
4429
- const Bf = /* @__PURE__ */ A("$ZodCustom", (t, e) => {
4439
+ const Gf = /* @__PURE__ */ A("$ZodCustom", (t, e) => {
4430
4440
  Ke.init(t, e), Se.init(t, e), t._zod.parse = (n, r) => n, t._zod.check = (n) => {
4431
4441
  const r = n.value, s = e.fn(r);
4432
4442
  if (s instanceof Promise)
@@ -4481,10 +4491,10 @@ class Vc {
4481
4491
  return this._map.has(e);
4482
4492
  }
4483
4493
  }
4484
- function Gf() {
4494
+ function Bf() {
4485
4495
  return new Vc();
4486
4496
  }
4487
- const gn = /* @__PURE__ */ Gf();
4497
+ const gn = /* @__PURE__ */ Bf();
4488
4498
  function Jf(t, e) {
4489
4499
  return new t({
4490
4500
  type: "string",
@@ -4836,14 +4846,14 @@ function Rp(t, e) {
4836
4846
  });
4837
4847
  }
4838
4848
  function Ip(t) {
4839
- return new Bd({
4849
+ return new Gd({
4840
4850
  check: "string_format",
4841
4851
  format: "lowercase",
4842
4852
  ...Y(t)
4843
4853
  });
4844
4854
  }
4845
4855
  function Cp(t) {
4846
- return new Gd({
4856
+ return new Bd({
4847
4857
  check: "string_format",
4848
4858
  format: "uppercase",
4849
4859
  ...Y(t)
@@ -5570,14 +5580,14 @@ function Kc(t) {
5570
5580
  const Wp = /* @__PURE__ */ A("ZodISODate", (t, e) => {
5571
5581
  mf.init(t, e), Pe.init(t, e);
5572
5582
  });
5573
- function Bp(t) {
5583
+ function Gp(t) {
5574
5584
  return _p(Wp, t);
5575
5585
  }
5576
- const Gp = /* @__PURE__ */ A("ZodISOTime", (t, e) => {
5586
+ const Bp = /* @__PURE__ */ A("ZodISOTime", (t, e) => {
5577
5587
  gf.init(t, e), Pe.init(t, e);
5578
5588
  });
5579
5589
  function Jp(t) {
5580
- return bp(Gp, t);
5590
+ return bp(Bp, t);
5581
5591
  }
5582
5592
  const Yp = /* @__PURE__ */ A("ZodISODuration", (t, e) => {
5583
5593
  yf.init(t, e), Pe.init(t, e);
@@ -5621,7 +5631,7 @@ const Xp = (t, e) => {
5621
5631
  ]
5622
5632
  }
5623
5633
  // { parent: true }
5624
- ), t.clone = (n, r) => zt(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => eh(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => nh(t, n, r), t.parseAsync = async (n, r) => th(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => rh(t, n, r), t.spa = t.safeParseAsync, t.refine = (n, r) => t.check(Wh(n, r)), t.superRefine = (n) => t.check(Bh(n)), t.overwrite = (n) => t.check(xn(n)), t.optional = () => X(t), t.nullable = () => Aa(t), t.nullish = () => X(Aa(t)), t.nonoptional = (n) => Dh(t, n), t.array = () => de(t), t.or = (n) => Te([t, n]), t.and = (n) => wi(t, n), t.transform = (n) => Ys(t, Xc(n)), t.default = (n) => zh(t, n), t.prefault = (n) => Zh(t, n), t.catch = (n) => Lh(t, n), t.pipe = (n) => Ys(t, n), t.readonly = () => Uh(t), t.describe = (n) => {
5634
+ ), t.clone = (n, r) => zt(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => eh(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => nh(t, n, r), t.parseAsync = async (n, r) => th(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => rh(t, n, r), t.spa = t.safeParseAsync, t.refine = (n, r) => t.check(Wh(n, r)), t.superRefine = (n) => t.check(Gh(n)), t.overwrite = (n) => t.check(xn(n)), t.optional = () => X(t), t.nullable = () => Aa(t), t.nullish = () => X(Aa(t)), t.nonoptional = (n) => Dh(t, n), t.array = () => de(t), t.or = (n) => Te([t, n]), t.and = (n) => wi(t, n), t.transform = (n) => Ys(t, Xc(n)), t.default = (n) => zh(t, n), t.prefault = (n) => Zh(t, n), t.catch = (n) => Lh(t, n), t.pipe = (n) => Ys(t, n), t.readonly = () => Uh(t), t.describe = (n) => {
5625
5635
  const r = t.clone();
5626
5636
  return gn.add(r, { description: n }), r;
5627
5637
  }, Object.defineProperty(t, "description", {
@@ -5639,7 +5649,7 @@ const Xp = (t, e) => {
5639
5649
  const n = t._zod.bag;
5640
5650
  t.format = n.format ?? null, t.minLength = n.minimum ?? null, t.maxLength = n.maximum ?? null, t.regex = (...r) => t.check(Rp(...r)), t.includes = (...r) => t.check(Op(...r)), t.startsWith = (...r) => t.check(Np(...r)), t.endsWith = (...r) => t.check(xp(...r)), t.min = (...r) => t.check(Lr(...r)), t.max = (...r) => t.check(Fc(...r)), t.length = (...r) => t.check(Uc(...r)), t.nonempty = (...r) => t.check(Lr(1, ...r)), t.lowercase = (r) => t.check(Ip(r)), t.uppercase = (r) => t.check(Cp(r)), t.trim = () => t.check(jp()), t.normalize = (...r) => t.check(Ap(...r)), t.toLowerCase = () => t.check(zp()), t.toUpperCase = () => t.check(Mp());
5641
5651
  }), sh = /* @__PURE__ */ A("ZodString", (t, e) => {
5642
- bi.init(t, e), Wc.init(t, e), t.email = (n) => t.check(Yf(ih, n)), t.url = (n) => t.check(np(ah, n)), t.jwt = (n) => t.check(yp(wh, n)), t.emoji = (n) => t.check(rp(oh, n)), t.guid = (n) => t.check(Ea(Na, n)), t.uuid = (n) => t.check(Qf(Ln, n)), t.uuidv4 = (n) => t.check(Xf(Ln, n)), t.uuidv6 = (n) => t.check(ep(Ln, n)), t.uuidv7 = (n) => t.check(tp(Ln, n)), t.nanoid = (n) => t.check(sp(ch, n)), t.guid = (n) => t.check(Ea(Na, n)), t.cuid = (n) => t.check(ip(uh, n)), t.cuid2 = (n) => t.check(ap(lh, n)), t.ulid = (n) => t.check(op(dh, n)), t.base64 = (n) => t.check(hp(vh, n)), t.base64url = (n) => t.check(mp(_h, n)), t.xid = (n) => t.check(cp(fh, n)), t.ksuid = (n) => t.check(up(ph, n)), t.ipv4 = (n) => t.check(lp(hh, n)), t.ipv6 = (n) => t.check(dp(mh, n)), t.cidrv4 = (n) => t.check(fp(gh, n)), t.cidrv6 = (n) => t.check(pp(yh, n)), t.e164 = (n) => t.check(gp(bh, n)), t.datetime = (n) => t.check(Kc(n)), t.date = (n) => t.check(Bp(n)), t.time = (n) => t.check(Jp(n)), t.duration = (n) => t.check(Qp(n));
5652
+ bi.init(t, e), Wc.init(t, e), t.email = (n) => t.check(Yf(ih, n)), t.url = (n) => t.check(np(ah, n)), t.jwt = (n) => t.check(yp(wh, n)), t.emoji = (n) => t.check(rp(oh, n)), t.guid = (n) => t.check(Ea(Na, n)), t.uuid = (n) => t.check(Qf(Ln, n)), t.uuidv4 = (n) => t.check(Xf(Ln, n)), t.uuidv6 = (n) => t.check(ep(Ln, n)), t.uuidv7 = (n) => t.check(tp(Ln, n)), t.nanoid = (n) => t.check(sp(ch, n)), t.guid = (n) => t.check(Ea(Na, n)), t.cuid = (n) => t.check(ip(uh, n)), t.cuid2 = (n) => t.check(ap(lh, n)), t.ulid = (n) => t.check(op(dh, n)), t.base64 = (n) => t.check(hp(vh, n)), t.base64url = (n) => t.check(mp(_h, n)), t.xid = (n) => t.check(cp(fh, n)), t.ksuid = (n) => t.check(up(ph, n)), t.ipv4 = (n) => t.check(lp(hh, n)), t.ipv6 = (n) => t.check(dp(mh, n)), t.cidrv4 = (n) => t.check(fp(gh, n)), t.cidrv6 = (n) => t.check(pp(yh, n)), t.e164 = (n) => t.check(gp(bh, n)), t.datetime = (n) => t.check(Kc(n)), t.date = (n) => t.check(Gp(n)), t.time = (n) => t.check(Jp(n)), t.duration = (n) => t.check(Qp(n));
5643
5653
  });
5644
5654
  function x(t) {
5645
5655
  return Jf(sh, t);
@@ -5684,16 +5694,16 @@ const Pe = /* @__PURE__ */ A("ZodStringFormat", (t, e) => {
5684
5694
  Tf.init(t, e), Pe.init(t, e);
5685
5695
  }), wh = /* @__PURE__ */ A("ZodJWT", (t, e) => {
5686
5696
  Pf.init(t, e), Pe.init(t, e);
5687
- }), Bc = /* @__PURE__ */ A("ZodNumber", (t, e) => {
5697
+ }), Gc = /* @__PURE__ */ A("ZodNumber", (t, e) => {
5688
5698
  Dc.init(t, e), Ee.init(t, e), t.gt = (r, s) => t.check(Ra(r, s)), t.gte = (r, s) => t.check(_s(r, s)), t.min = (r, s) => t.check(_s(r, s)), t.lt = (r, s) => t.check(Pa(r, s)), t.lte = (r, s) => t.check(vs(r, s)), t.max = (r, s) => t.check(vs(r, s)), t.int = (r) => t.check(xa(r)), t.safe = (r) => t.check(xa(r)), t.positive = (r) => t.check(Ra(0, r)), t.nonnegative = (r) => t.check(_s(0, r)), t.negative = (r) => t.check(Pa(0, r)), t.nonpositive = (r) => t.check(vs(0, r)), t.multipleOf = (r, s) => t.check(Ia(r, s)), t.step = (r, s) => t.check(Ia(r, s)), t.finite = () => t;
5689
5699
  const n = t._zod.bag;
5690
5700
  t.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, t.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, t.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), t.isFinite = !0, t.format = n.format ?? null;
5691
5701
  });
5692
5702
  function ke(t) {
5693
- return kp(Bc, t);
5703
+ return kp(Gc, t);
5694
5704
  }
5695
5705
  const kh = /* @__PURE__ */ A("ZodNumberFormat", (t, e) => {
5696
- Rf.init(t, e), Bc.init(t, e);
5706
+ Rf.init(t, e), Gc.init(t, e);
5697
5707
  });
5698
5708
  function xa(t) {
5699
5709
  return Sp(kh, t);
@@ -5707,7 +5717,7 @@ function Me(t) {
5707
5717
  const $h = /* @__PURE__ */ A("ZodNull", (t, e) => {
5708
5718
  Cf.init(t, e), Ee.init(t, e);
5709
5719
  });
5710
- function Gc(t) {
5720
+ function Bc(t) {
5711
5721
  return Tp($h, t);
5712
5722
  }
5713
5723
  const Th = /* @__PURE__ */ A("ZodUnknown", (t, e) => {
@@ -5951,7 +5961,7 @@ function Uh(t) {
5951
5961
  });
5952
5962
  }
5953
5963
  const nu = /* @__PURE__ */ A("ZodCustom", (t, e) => {
5954
- Bf.init(t, e), Ee.init(t, e);
5964
+ Gf.init(t, e), Ee.init(t, e);
5955
5965
  });
5956
5966
  function Hh(t) {
5957
5967
  const e = new Ke({
@@ -5966,7 +5976,7 @@ function Kh(t, e) {
5966
5976
  function Wh(t, e = {}) {
5967
5977
  return qp(nu, t, e);
5968
5978
  }
5969
- function Bh(t) {
5979
+ function Gh(t) {
5970
5980
  const e = Hh((n) => (n.addIssue = (r) => {
5971
5981
  if (typeof r == "string")
5972
5982
  n.issues.push(Tn(r, n.value, e._zod.def));
@@ -5980,12 +5990,12 @@ function Bh(t) {
5980
5990
  function ru(t, e) {
5981
5991
  return Ys(Xc(t), e);
5982
5992
  }
5983
- const su = "2025-11-25", Gh = [su, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], bt = "io.modelcontextprotocol/related-task", rs = "2.0", mt = Kh((t) => t !== null && (typeof t == "object" || typeof t == "function")), iu = Te([x(), ke().int()]), au = x(), Jh = lt({
5993
+ const su = "2025-11-25", Bh = [su, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], bt = "io.modelcontextprotocol/related-task", rs = "2.0", mt = Kh((t) => t !== null && (typeof t == "object" || typeof t == "function")), iu = Te([x(), ke().int()]), au = x(), Jh = lt({
5984
5994
  /**
5985
5995
  * Time in milliseconds to keep task results available after completion.
5986
5996
  * If null, the task has unlimited lifetime until manually cleaned up.
5987
5997
  */
5988
- ttl: Te([ke(), Gc()]).optional(),
5998
+ ttl: Te([ke(), Bc()]).optional(),
5989
5999
  /**
5990
6000
  * Time in milliseconds to wait between task status requests.
5991
6001
  */
@@ -6341,7 +6351,7 @@ const lu = U({
6341
6351
  * Time in milliseconds to keep task results available after completion.
6342
6352
  * If null, the task has unlimited lifetime until manually cleaned up.
6343
6353
  */
6344
- ttl: Te([ke(), Gc()]),
6354
+ ttl: Te([ke(), Bc()]),
6345
6355
  /**
6346
6356
  * ISO 8601 timestamp when the task was created.
6347
6357
  */
@@ -6828,7 +6838,7 @@ const Vm = We.extend({
6828
6838
  * A hint for a model name.
6829
6839
  */
6830
6840
  name: x().optional()
6831
- }), Bm = U({
6841
+ }), Gm = U({
6832
6842
  /**
6833
6843
  * Optional hints to use for model selection.
6834
6844
  */
@@ -6845,7 +6855,7 @@ const Vm = We.extend({
6845
6855
  * How much to prioritize intelligence and capabilities when selecting a model.
6846
6856
  */
6847
6857
  intelligencePriority: X(ke().min(0).max(1))
6848
- }), Gm = U({
6858
+ }), Bm = U({
6849
6859
  /**
6850
6860
  * Controls when tools are used:
6851
6861
  * - "auto": Model decides whether to use tools (default)
@@ -6883,7 +6893,7 @@ const Vm = We.extend({
6883
6893
  /**
6884
6894
  * The server's preferences for which model to select. The client MAY modify or omit this request.
6885
6895
  */
6886
- modelPreferences: Bm.optional(),
6896
+ modelPreferences: Gm.optional(),
6887
6897
  /**
6888
6898
  * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
6889
6899
  */
@@ -6918,7 +6928,7 @@ const Vm = We.extend({
6918
6928
  * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
6919
6929
  * Default is `{ mode: "auto" }`.
6920
6930
  */
6921
- toolChoice: X(Gm)
6931
+ toolChoice: X(Bm)
6922
6932
  }), eg = ze.extend({
6923
6933
  method: ee("sampling/createMessage"),
6924
6934
  params: Xm
@@ -7820,7 +7830,7 @@ function Wg(t) {
7820
7830
  })
7821
7831
  };
7822
7832
  }
7823
- function Bg(t) {
7833
+ function Gg(t) {
7824
7834
  return t.target === "openApi3" ? {
7825
7835
  enum: ["null"],
7826
7836
  nullable: !0
@@ -7835,7 +7845,7 @@ const Kr = {
7835
7845
  ZodBoolean: "boolean",
7836
7846
  ZodNull: "null"
7837
7847
  };
7838
- function Gg(t, e) {
7848
+ function Bg(t, e) {
7839
7849
  if (e.target === "openApi3")
7840
7850
  return Za(t, e);
7841
7851
  const n = t.options instanceof Map ? Array.from(t.options.values()) : t.options;
@@ -8074,12 +8084,12 @@ const cy = (t, e) => ye(t.innerType._def, e), uy = (t, e, n) => {
8074
8084
  case F.ZodUndefined:
8075
8085
  return ay(n);
8076
8086
  case F.ZodNull:
8077
- return Bg(n);
8087
+ return Gg(n);
8078
8088
  case F.ZodArray:
8079
8089
  return Ng(t, n);
8080
8090
  case F.ZodUnion:
8081
8091
  case F.ZodDiscriminatedUnion:
8082
- return Gg(t, n);
8092
+ return Bg(t, n);
8083
8093
  case F.ZodIntersection:
8084
8094
  return Lg(t, n);
8085
8095
  case F.ZodTuple:
@@ -9281,8 +9291,8 @@ function oe() {
9281
9291
  super(), this.varKind = k, this.name = T, this.rhs = j;
9282
9292
  }
9283
9293
  render({ es5: k, _n: T }) {
9284
- const j = k ? n.varKinds.var : this.varKind, G = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
9285
- return `${j} ${this.name}${G};` + T;
9294
+ const j = k ? n.varKinds.var : this.varKind, B = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
9295
+ return `${j} ${this.name}${B};` + T;
9286
9296
  }
9287
9297
  optimizeNames(k, T) {
9288
9298
  if (k[this.name.str])
@@ -9309,8 +9319,8 @@ function oe() {
9309
9319
  }
9310
9320
  }
9311
9321
  class c extends o {
9312
- constructor(k, T, j, G) {
9313
- super(k, j, G), this.op = T;
9322
+ constructor(k, T, j, B) {
9323
+ super(k, j, B), this.op = T;
9314
9324
  }
9315
9325
  render({ _n: k }) {
9316
9326
  return `${this.lhs} ${this.op}= ${this.rhs};` + k;
@@ -9378,10 +9388,10 @@ function oe() {
9378
9388
  }
9379
9389
  optimizeNames(k, T) {
9380
9390
  const { nodes: j } = this;
9381
- let G = j.length;
9382
- for (; G--; ) {
9383
- const te = j[G];
9384
- te.optimizeNames(k, T) || (ie(k, te.names), j.splice(G, 1));
9391
+ let B = j.length;
9392
+ for (; B--; ) {
9393
+ const te = j[B];
9394
+ te.optimizeNames(k, T) || (ie(k, te.names), j.splice(B, 1));
9385
9395
  }
9386
9396
  return j.length > 0 ? this : void 0;
9387
9397
  }
@@ -9452,12 +9462,12 @@ function oe() {
9452
9462
  }
9453
9463
  }
9454
9464
  class _ extends u {
9455
- constructor(k, T, j, G) {
9456
- super(), this.varKind = k, this.name = T, this.from = j, this.to = G;
9465
+ constructor(k, T, j, B) {
9466
+ super(), this.varKind = k, this.name = T, this.from = j, this.to = B;
9457
9467
  }
9458
9468
  render(k) {
9459
- const T = k.es5 ? n.varKinds.var : this.varKind, { name: j, from: G, to: te } = this;
9460
- return `for(${T} ${j}=${G}; ${j}<${te}; ${j}++)` + super.render(k);
9469
+ const T = k.es5 ? n.varKinds.var : this.varKind, { name: j, from: B, to: te } = this;
9470
+ return `for(${T} ${j}=${B}; ${j}<${te}; ${j}++)` + super.render(k);
9461
9471
  }
9462
9472
  get names() {
9463
9473
  const k = q(super.names, this.from);
@@ -9465,8 +9475,8 @@ function oe() {
9465
9475
  }
9466
9476
  }
9467
9477
  class w extends u {
9468
- constructor(k, T, j, G) {
9469
- super(), this.loop = k, this.varKind = T, this.name = j, this.iterable = G;
9478
+ constructor(k, T, j, B) {
9479
+ super(), this.loop = k, this.varKind = T, this.name = j, this.iterable = B;
9470
9480
  }
9471
9481
  render(k) {
9472
9482
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(k);
@@ -9504,8 +9514,8 @@ function oe() {
9504
9514
  return super.optimizeNodes(), (k = this.catch) === null || k === void 0 || k.optimizeNodes(), (T = this.finally) === null || T === void 0 || T.optimizeNodes(), this;
9505
9515
  }
9506
9516
  optimizeNames(k, T) {
9507
- var j, G;
9508
- return super.optimizeNames(k, T), (j = this.catch) === null || j === void 0 || j.optimizeNames(k, T), (G = this.finally) === null || G === void 0 || G.optimizeNames(k, T), this;
9517
+ var j, B;
9518
+ return super.optimizeNames(k, T), (j = this.catch) === null || j === void 0 || j.optimizeNames(k, T), (B = this.finally) === null || B === void 0 || B.optimizeNames(k, T), this;
9509
9519
  }
9510
9520
  get names() {
9511
9521
  const k = super.names;
@@ -9559,9 +9569,9 @@ function oe() {
9559
9569
  scopeCode() {
9560
9570
  return this._extScope.scopeCode(this._values);
9561
9571
  }
9562
- _def(k, T, j, G) {
9572
+ _def(k, T, j, B) {
9563
9573
  const te = this._scope.toName(T);
9564
- return j !== void 0 && G && (this._constants[te.str] = j), this._leafNode(new a(k, te, j)), te;
9574
+ return j !== void 0 && B && (this._constants[te.str] = j), this._leafNode(new a(k, te, j)), te;
9565
9575
  }
9566
9576
  // `const` declaration (`var` in es5 mode)
9567
9577
  const(k, T, j) {
@@ -9590,8 +9600,8 @@ function oe() {
9590
9600
  // returns code for object literal for the passed argument list of key-value pairs
9591
9601
  object(...k) {
9592
9602
  const T = ["{"];
9593
- for (const [j, G] of k)
9594
- T.length > 1 && T.push(","), T.push(j), (j !== G || this.opts.es5) && (T.push(":"), (0, e.addCodeArg)(T, G));
9603
+ for (const [j, B] of k)
9604
+ T.length > 1 && T.push(","), T.push(j), (j !== B || this.opts.es5) && (T.push(":"), (0, e.addCodeArg)(T, B));
9595
9605
  return T.push("}"), new e._Code(T);
9596
9606
  }
9597
9607
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
@@ -9624,12 +9634,12 @@ function oe() {
9624
9634
  return this._for(new p(k), T);
9625
9635
  }
9626
9636
  // `for` statement for a range of values
9627
- forRange(k, T, j, G, te = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
9637
+ forRange(k, T, j, B, te = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
9628
9638
  const ge = this._scope.toName(k);
9629
- return this._for(new _(te, ge, T, j), () => G(ge));
9639
+ return this._for(new _(te, ge, T, j), () => B(ge));
9630
9640
  }
9631
9641
  // `for-of` statement (in es5 mode replace with a normal for loop)
9632
- forOf(k, T, j, G = n.varKinds.const) {
9642
+ forOf(k, T, j, B = n.varKinds.const) {
9633
9643
  const te = this._scope.toName(k);
9634
9644
  if (this.opts.es5) {
9635
9645
  const ge = T instanceof e.Name ? T : this.var("_arr", T);
@@ -9637,15 +9647,15 @@ function oe() {
9637
9647
  this.var(te, (0, e._)`${ge}[${le}]`), j(te);
9638
9648
  });
9639
9649
  }
9640
- return this._for(new w("of", G, te, T), () => j(te));
9650
+ return this._for(new w("of", B, te, T), () => j(te));
9641
9651
  }
9642
9652
  // `for-in` statement.
9643
9653
  // With option `ownProperties` replaced with a `for-of` loop for object keys
9644
- forIn(k, T, j, G = this.opts.es5 ? n.varKinds.var : n.varKinds.const) {
9654
+ forIn(k, T, j, B = this.opts.es5 ? n.varKinds.var : n.varKinds.const) {
9645
9655
  if (this.opts.ownProperties)
9646
9656
  return this.forOf(k, (0, e._)`Object.keys(${T})`, j);
9647
9657
  const te = this._scope.toName(k);
9648
- return this._for(new w("in", G, te, T), () => j(te));
9658
+ return this._for(new w("in", B, te, T), () => j(te));
9649
9659
  }
9650
9660
  // end `for` loop
9651
9661
  endFor() {
@@ -9670,12 +9680,12 @@ function oe() {
9670
9680
  try(k, T, j) {
9671
9681
  if (!T && !j)
9672
9682
  throw new Error('CodeGen: "try" without "catch" and "finally"');
9673
- const G = new E();
9674
- if (this._blockNode(G), this.code(k), T) {
9683
+ const B = new E();
9684
+ if (this._blockNode(B), this.code(k), T) {
9675
9685
  const te = this.name("e");
9676
- this._currNode = G.catch = new R(te), T(te);
9686
+ this._currNode = B.catch = new R(te), T(te);
9677
9687
  }
9678
- return j && (this._currNode = G.finally = new z(), this.code(j)), this._endBlockNode(R, z);
9688
+ return j && (this._currNode = B.finally = new z(), this.code(j)), this._endBlockNode(R, z);
9679
9689
  }
9680
9690
  // `throw` statement
9681
9691
  throw(k) {
@@ -9696,8 +9706,8 @@ function oe() {
9696
9706
  return this._nodes.length = T, this;
9697
9707
  }
9698
9708
  // `function` heading (or definition if funcBody is passed)
9699
- func(k, T = e.nil, j, G) {
9700
- return this._blockNode(new g(k, T, j)), G && this.code(G).endFunc(), this;
9709
+ func(k, T = e.nil, j, B) {
9710
+ return this._blockNode(new g(k, T, j)), B && this.code(B).endFunc(), this;
9701
9711
  }
9702
9712
  // end function definition
9703
9713
  endFunc() {
@@ -9749,14 +9759,14 @@ function oe() {
9749
9759
  function H(N, k, T) {
9750
9760
  if (N instanceof e.Name)
9751
9761
  return j(N);
9752
- if (!G(N))
9762
+ if (!B(N))
9753
9763
  return N;
9754
9764
  return new e._Code(N._items.reduce((te, ge) => (ge instanceof e.Name && (ge = j(ge)), ge instanceof e._Code ? te.push(...ge._items) : te.push(ge), te), []));
9755
9765
  function j(te) {
9756
9766
  const ge = T[te.str];
9757
9767
  return ge === void 0 || k[te.str] !== 1 ? te : (delete k[te.str], ge);
9758
9768
  }
9759
- function G(te) {
9769
+ function B(te) {
9760
9770
  return te instanceof e._Code && te._items.some((ge) => ge instanceof e.Name && k[ge.str] === 1 && T[ge.str] !== void 0);
9761
9771
  }
9762
9772
  }
@@ -9927,10 +9937,10 @@ function me() {
9927
9937
  }
9928
9938
  return ae.checkStrictMode = _, ae;
9929
9939
  }
9930
- var Un = {}, Ba;
9940
+ var Un = {}, Ga;
9931
9941
  function Mt() {
9932
- if (Ba) return Un;
9933
- Ba = 1, Object.defineProperty(Un, "__esModule", { value: !0 });
9942
+ if (Ga) return Un;
9943
+ Ga = 1, Object.defineProperty(Un, "__esModule", { value: !0 });
9934
9944
  const t = oe(), e = {
9935
9945
  // validation function arguments
9936
9946
  data: new t.Name("data"),
@@ -9962,9 +9972,9 @@ function Mt() {
9962
9972
  };
9963
9973
  return Un.default = e, Un;
9964
9974
  }
9965
- var Ga;
9975
+ var Ba;
9966
9976
  function as() {
9967
- return Ga || (Ga = 1, function(t) {
9977
+ return Ba || (Ba = 1, function(t) {
9968
9978
  Object.defineProperty(t, "__esModule", { value: !0 }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0;
9969
9979
  const e = oe(), n = me(), r = Mt();
9970
9980
  t.keywordError = {
@@ -10116,7 +10126,7 @@ function Cu() {
10116
10126
  return yt.shouldUseRule = n, yt;
10117
10127
  }
10118
10128
  var Xa;
10119
- function Br() {
10129
+ function Gr() {
10120
10130
  if (Xa) return je;
10121
10131
  Xa = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.reportTypeError = je.checkDataTypes = je.checkDataType = je.coerceAndCheckDataType = je.getJSONTypes = je.getSchemaTypes = je.DataType = void 0;
10122
10132
  const t = Iu(), e = Cu(), n = as(), r = oe(), s = me();
@@ -10760,7 +10770,7 @@ var oo;
10760
10770
  function cs() {
10761
10771
  if (oo) return gt;
10762
10772
  oo = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.getData = gt.KeywordCxt = gt.validateFunctionCode = void 0;
10763
- const t = yy(), e = Br(), n = Cu(), r = Br(), s = vy(), i = _y(), a = by(), o = oe(), c = Mt(), l = os(), d = me(), h = as();
10773
+ const t = yy(), e = Gr(), n = Cu(), r = Gr(), s = vy(), i = _y(), a = by(), o = oe(), c = Mt(), l = os(), d = me(), h = as();
10764
10774
  function S(P) {
10765
10775
  if (w(P) && ($(P), _(P))) {
10766
10776
  f(P);
@@ -10866,7 +10876,7 @@ function cs() {
10866
10876
  function ve(P, O, Z, K) {
10867
10877
  const { gen: Q, schema: ce, data: xe, allErrors: nt, opts: Fe, self: Ue } = P, { RULES: Ae } = Ue;
10868
10878
  if (ce.$ref && (Fe.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(ce, Ae))) {
10869
- Q.block(() => G(P, "$ref", Ae.all.$ref.definition));
10879
+ Q.block(() => B(P, "$ref", Ae.all.$ref.definition));
10870
10880
  return;
10871
10881
  }
10872
10882
  Fe.jtd || fe(P, O), Q.block(() => {
@@ -10882,7 +10892,7 @@ function cs() {
10882
10892
  const { gen: Z, schema: K, opts: { useDefaults: Q } } = P;
10883
10893
  Q && (0, s.assignDefaults)(P, O.type), Z.block(() => {
10884
10894
  for (const ce of O.rules)
10885
- (0, n.shouldUseRule)(K, ce) && G(P, ce.keyword, ce.definition, O.type);
10895
+ (0, n.shouldUseRule)(K, ce) && B(P, ce.keyword, ce.definition, O.type);
10886
10896
  });
10887
10897
  }
10888
10898
  function fe(P, O) {
@@ -11030,7 +11040,7 @@ function cs() {
11030
11040
  }
11031
11041
  }
11032
11042
  gt.KeywordCxt = j;
11033
- function G(P, O, Z, K) {
11043
+ function B(P, O, Z, K) {
11034
11044
  const Q = new j(P, Z, O);
11035
11045
  "code" in Z ? Z.code(Q, K) : Q.$data && Z.validate ? (0, i.funcKeywordCode)(Q, Z) : "macro" in Z ? (0, i.macroKeywordCode)(Q, Z) : (Z.compile || Z.validate) && (0, i.funcKeywordCode)(Q, Z);
11036
11046
  }
@@ -11092,10 +11102,10 @@ function us() {
11092
11102
  }
11093
11103
  return Kn.default = e, Kn;
11094
11104
  }
11095
- var Be = {}, lo;
11105
+ var Ge = {}, lo;
11096
11106
  function qi() {
11097
- if (lo) return Be;
11098
- lo = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.resolveSchema = Be.getCompilingSchema = Be.resolveRef = Be.compileSchema = Be.SchemaEnv = void 0;
11107
+ if (lo) return Ge;
11108
+ lo = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.resolveSchema = Ge.getCompilingSchema = Ge.resolveRef = Ge.compileSchema = Ge.SchemaEnv = void 0;
11099
11109
  const t = oe(), e = Di(), n = Mt(), r = os(), s = me(), i = cs();
11100
11110
  class a {
11101
11111
  constructor(m) {
@@ -11105,7 +11115,7 @@ function qi() {
11105
11115
  typeof m.schema == "object" && (p = m.schema), this.schema = m.schema, this.schemaId = m.schemaId, this.root = m.root || this, this.baseId = (u = m.baseId) !== null && u !== void 0 ? u : (0, r.normalizeId)(p?.[m.schemaId || "$id"]), this.schemaPath = m.schemaPath, this.localRefs = m.localRefs, this.meta = m.meta, this.$async = p?.$async, this.refs = {};
11106
11116
  }
11107
11117
  }
11108
- Be.SchemaEnv = a;
11118
+ Ge.SchemaEnv = a;
11109
11119
  function o(f) {
11110
11120
  const m = d.call(this, f);
11111
11121
  if (m)
@@ -11165,7 +11175,7 @@ function qi() {
11165
11175
  this._compilations.delete(f);
11166
11176
  }
11167
11177
  }
11168
- Be.compileSchema = o;
11178
+ Ge.compileSchema = o;
11169
11179
  function c(f, m, u) {
11170
11180
  var p;
11171
11181
  u = (0, r.resolveUrl)(this.opts.uriResolver, m, u);
@@ -11180,7 +11190,7 @@ function qi() {
11180
11190
  if (w !== void 0)
11181
11191
  return f.refs[u] = l.call(this, w);
11182
11192
  }
11183
- Be.resolveRef = c;
11193
+ Ge.resolveRef = c;
11184
11194
  function l(f) {
11185
11195
  return (0, r.inlineRef)(f.schema, this.opts.inlineRefs) ? f.schema : f.validate ? f : o.call(this, f);
11186
11196
  }
@@ -11189,7 +11199,7 @@ function qi() {
11189
11199
  if (h(m, f))
11190
11200
  return m;
11191
11201
  }
11192
- Be.getCompilingSchema = d;
11202
+ Ge.getCompilingSchema = d;
11193
11203
  function h(f, m) {
11194
11204
  return f.schema === m.schema && f.root === m.root && f.baseId === m.baseId;
11195
11205
  }
@@ -11217,7 +11227,7 @@ function qi() {
11217
11227
  return y.call(this, u, g);
11218
11228
  }
11219
11229
  }
11220
- Be.resolveSchema = b;
11230
+ Ge.resolveSchema = b;
11221
11231
  const v = /* @__PURE__ */ new Set([
11222
11232
  "properties",
11223
11233
  "patternProperties",
@@ -11248,7 +11258,7 @@ function qi() {
11248
11258
  if (w = w || new a({ schema: u, schemaId: g, root: p, baseId: m }), w.schema !== w.root.schema)
11249
11259
  return w;
11250
11260
  }
11251
- return Be;
11261
+ return Ge;
11252
11262
  }
11253
11263
  const ky = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Sy = "Meta-schema for $data reference (JSON AnySchema extension proposal)", $y = "object", Ty = ["$data"], Ey = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Py = !1, Ry = {
11254
11264
  $id: ky,
@@ -11642,7 +11652,7 @@ function Ay() {
11642
11652
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
11643
11653
  return n.CodeGen;
11644
11654
  } });
11645
- const r = Di(), s = us(), i = Iu(), a = qi(), o = oe(), c = os(), l = Br(), d = me(), h = Ry, S = xy(), b = (V, I) => new RegExp(V, I);
11655
+ const r = Di(), s = us(), i = Iu(), a = qi(), o = oe(), c = os(), l = Gr(), d = me(), h = Ry, S = xy(), b = (V, I) => new RegExp(V, I);
11646
11656
  b.code = "new RegExp";
11647
11657
  const v = ["removeAdditional", "useDefaults", "coerceTypes"], y = /* @__PURE__ */ new Set([
11648
11658
  "validate",
@@ -11680,15 +11690,15 @@ function Ay() {
11680
11690
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
11681
11691
  }, u = 200;
11682
11692
  function p(V) {
11683
- var I, D, N, k, T, j, G, te, ge, le, P, O, Z, K, Q, ce, xe, nt, Fe, Ue, Ae, Wt, Ye, hs, ms;
11684
- const on = V.strict, gs = (I = V.code) === null || I === void 0 ? void 0 : I.optimize, Bi = gs === !0 || gs === void 0 ? 1 : gs || 0, Gi = (N = (D = V.code) === null || D === void 0 ? void 0 : D.regExp) !== null && N !== void 0 ? N : b, Xu = (k = V.uriResolver) !== null && k !== void 0 ? k : S.default;
11693
+ var I, D, N, k, T, j, B, te, ge, le, P, O, Z, K, Q, ce, xe, nt, Fe, Ue, Ae, Wt, Ye, hs, ms;
11694
+ const on = V.strict, gs = (I = V.code) === null || I === void 0 ? void 0 : I.optimize, Gi = gs === !0 || gs === void 0 ? 1 : gs || 0, Bi = (N = (D = V.code) === null || D === void 0 ? void 0 : D.regExp) !== null && N !== void 0 ? N : b, Xu = (k = V.uriResolver) !== null && k !== void 0 ? k : S.default;
11685
11695
  return {
11686
11696
  strictSchema: (j = (T = V.strictSchema) !== null && T !== void 0 ? T : on) !== null && j !== void 0 ? j : !0,
11687
- strictNumbers: (te = (G = V.strictNumbers) !== null && G !== void 0 ? G : on) !== null && te !== void 0 ? te : !0,
11697
+ strictNumbers: (te = (B = V.strictNumbers) !== null && B !== void 0 ? B : on) !== null && te !== void 0 ? te : !0,
11688
11698
  strictTypes: (le = (ge = V.strictTypes) !== null && ge !== void 0 ? ge : on) !== null && le !== void 0 ? le : "log",
11689
11699
  strictTuples: (O = (P = V.strictTuples) !== null && P !== void 0 ? P : on) !== null && O !== void 0 ? O : "log",
11690
11700
  strictRequired: (K = (Z = V.strictRequired) !== null && Z !== void 0 ? Z : on) !== null && K !== void 0 ? K : !1,
11691
- code: V.code ? { ...V.code, optimize: Bi, regExp: Gi } : { optimize: Bi, regExp: Gi },
11701
+ code: V.code ? { ...V.code, optimize: Gi, regExp: Bi } : { optimize: Gi, regExp: Bi },
11692
11702
  loopRequired: (Q = V.loopRequired) !== null && Q !== void 0 ? Q : u,
11693
11703
  loopEnum: (ce = V.loopEnum) !== null && ce !== void 0 ? ce : u,
11694
11704
  meta: (xe = V.meta) !== null && xe !== void 0 ? xe : !0,
@@ -11756,10 +11766,10 @@ function Ay() {
11756
11766
  } catch (P) {
11757
11767
  if (!(P instanceof s.default))
11758
11768
  throw P;
11759
- return G.call(this, P), await te.call(this, P.missingSchema), j.call(this, le);
11769
+ return B.call(this, P), await te.call(this, P.missingSchema), j.call(this, le);
11760
11770
  }
11761
11771
  }
11762
- function G({ missingSchema: le, missingRef: P }) {
11772
+ function B({ missingSchema: le, missingRef: P }) {
11763
11773
  if (this.refs[le])
11764
11774
  throw new Error(`AnySchema ${le} is loaded but ${P} cannot be resolved`);
11765
11775
  }
@@ -11907,14 +11917,14 @@ function Ay() {
11907
11917
  for (const k of D) {
11908
11918
  const T = k.split("/").slice(1);
11909
11919
  let j = I;
11910
- for (const G of T)
11911
- j = j[G];
11912
- for (const G in N) {
11913
- const te = N[G];
11920
+ for (const B of T)
11921
+ j = j[B];
11922
+ for (const B in N) {
11923
+ const te = N[B];
11914
11924
  if (typeof te != "object")
11915
11925
  continue;
11916
- const { $data: ge } = te.definition, le = j[G];
11917
- ge && le && (j[G] = tt(le));
11926
+ const { $data: ge } = te.definition, le = j[B];
11927
+ ge && le && (j[B] = tt(le));
11918
11928
  }
11919
11929
  }
11920
11930
  return I;
@@ -11927,9 +11937,9 @@ function Ay() {
11927
11937
  }
11928
11938
  _addSchema(I, D, N, k = this.opts.validateSchema, T = this.opts.addUsedSchema) {
11929
11939
  let j;
11930
- const { schemaId: G } = this.opts;
11940
+ const { schemaId: B } = this.opts;
11931
11941
  if (typeof I == "object")
11932
- j = I[G];
11942
+ j = I[B];
11933
11943
  else {
11934
11944
  if (this.opts.jtd)
11935
11945
  throw new Error("schema must be object");
@@ -11941,7 +11951,7 @@ function Ay() {
11941
11951
  return te;
11942
11952
  N = (0, c.normalizeId)(j || N);
11943
11953
  const ge = c.getSchemaRefs.call(this, I, N);
11944
- return te = new a.SchemaEnv({ schema: I, schemaId: G, meta: D, baseId: N, localRefs: ge }), this._cache.set(te.schema, te), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = te), k && this.validateSchema(I, !0), te;
11954
+ return te = new a.SchemaEnv({ schema: I, schemaId: B, meta: D, baseId: N, localRefs: ge }), this._cache.set(te.schema, te), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = te), k && this.validateSchema(I, !0), te;
11945
11955
  }
11946
11956
  _checkUnique(I) {
11947
11957
  if (this.schemas[I] || this.refs[I])
@@ -12037,7 +12047,7 @@ function Ay() {
12037
12047
  let j = k ? T.post : T.rules.find(({ type: te }) => te === D);
12038
12048
  if (j || (j = { type: D, rules: [] }, T.rules.push(j)), T.keywords[V] = !0, !I)
12039
12049
  return;
12040
- const G = {
12050
+ const B = {
12041
12051
  keyword: V,
12042
12052
  definition: {
12043
12053
  ...I,
@@ -12045,7 +12055,7 @@ function Ay() {
12045
12055
  schemaType: (0, l.getJSONTypes)(I.schemaType)
12046
12056
  }
12047
12057
  };
12048
- I.before ? ve.call(this, j, G, I.before) : j.rules.push(G), T.all[V] = G, (N = I.implements) === null || N === void 0 || N.forEach((te) => this.addKeyword(te));
12058
+ I.before ? ve.call(this, j, B, I.before) : j.rules.push(B), T.all[V] = B, (N = I.implements) === null || N === void 0 || N.forEach((te) => this.addKeyword(te));
12049
12059
  }
12050
12060
  function ve(V, I, D) {
12051
12061
  const N = V.rules.findIndex((k) => k.keyword === D);
@@ -12063,7 +12073,7 @@ function Ay() {
12063
12073
  }
12064
12074
  }($s)), $s;
12065
12075
  }
12066
- var Bn = {}, Gn = {}, Jn = {}, vo;
12076
+ var Gn = {}, Bn = {}, Jn = {}, vo;
12067
12077
  function jy() {
12068
12078
  if (vo) return Jn;
12069
12079
  vo = 1, Object.defineProperty(Jn, "__esModule", { value: !0 });
@@ -12164,8 +12174,8 @@ function zy() {
12164
12174
  }
12165
12175
  var bo;
12166
12176
  function My() {
12167
- if (bo) return Gn;
12168
- bo = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
12177
+ if (bo) return Bn;
12178
+ bo = 1, Object.defineProperty(Bn, "__esModule", { value: !0 });
12169
12179
  const t = jy(), e = zy(), n = [
12170
12180
  "$schema",
12171
12181
  "$id",
@@ -12176,7 +12186,7 @@ function My() {
12176
12186
  t.default,
12177
12187
  e.default
12178
12188
  ];
12179
- return Gn.default = n, Gn;
12189
+ return Bn.default = n, Bn;
12180
12190
  }
12181
12191
  var Yn = {}, Qn = {}, wo;
12182
12192
  function Zy() {
@@ -12393,7 +12403,7 @@ var Co;
12393
12403
  function Ky() {
12394
12404
  if (Co) return ar;
12395
12405
  Co = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
12396
- const t = Br(), e = oe(), n = me(), r = Li(), i = {
12406
+ const t = Gr(), e = oe(), n = me(), r = Li(), i = {
12397
12407
  keyword: "uniqueItems",
12398
12408
  type: "array",
12399
12409
  schemaType: "boolean",
@@ -12452,7 +12462,7 @@ function Wy() {
12452
12462
  return cr.default = s, cr;
12453
12463
  }
12454
12464
  var ur = {}, No;
12455
- function By() {
12465
+ function Gy() {
12456
12466
  if (No) return ur;
12457
12467
  No = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
12458
12468
  const t = oe(), e = me(), n = Li(), s = {
@@ -12492,10 +12502,10 @@ function By() {
12492
12502
  return ur.default = s, ur;
12493
12503
  }
12494
12504
  var xo;
12495
- function Gy() {
12505
+ function By() {
12496
12506
  if (xo) return Yn;
12497
12507
  xo = 1, Object.defineProperty(Yn, "__esModule", { value: !0 });
12498
- const t = Zy(), e = Dy(), n = Ly(), r = Vy(), s = Fy(), i = Uy(), a = Hy(), o = Ky(), c = Wy(), l = By(), d = [
12508
+ const t = Zy(), e = Dy(), n = Ly(), r = Vy(), s = Fy(), i = Uy(), a = Hy(), o = Ky(), c = Wy(), l = Gy(), d = [
12499
12509
  // number
12500
12510
  t.default,
12501
12511
  e.default,
@@ -12516,10 +12526,10 @@ function Gy() {
12516
12526
  ];
12517
12527
  return Yn.default = d, Yn;
12518
12528
  }
12519
- var lr = {}, Bt = {}, Ao;
12529
+ var lr = {}, Gt = {}, Ao;
12520
12530
  function Nu() {
12521
- if (Ao) return Bt;
12522
- Ao = 1, Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.validateAdditionalItems = void 0;
12531
+ if (Ao) return Gt;
12532
+ Ao = 1, Object.defineProperty(Gt, "__esModule", { value: !0 }), Gt.validateAdditionalItems = void 0;
12523
12533
  const t = oe(), e = me(), r = {
12524
12534
  keyword: "additionalItems",
12525
12535
  type: "array",
@@ -12554,12 +12564,12 @@ function Nu() {
12554
12564
  });
12555
12565
  }
12556
12566
  }
12557
- return Bt.validateAdditionalItems = s, Bt.default = r, Bt;
12567
+ return Gt.validateAdditionalItems = s, Gt.default = r, Gt;
12558
12568
  }
12559
- var dr = {}, Gt = {}, jo;
12569
+ var dr = {}, Bt = {}, jo;
12560
12570
  function xu() {
12561
- if (jo) return Gt;
12562
- jo = 1, Object.defineProperty(Gt, "__esModule", { value: !0 }), Gt.validateTuple = void 0;
12571
+ if (jo) return Bt;
12572
+ jo = 1, Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.validateTuple = void 0;
12563
12573
  const t = oe(), e = me(), n = ft(), r = {
12564
12574
  keyword: "items",
12565
12575
  type: "array",
@@ -12591,7 +12601,7 @@ function xu() {
12591
12601
  }
12592
12602
  }
12593
12603
  }
12594
- return Gt.validateTuple = s, Gt.default = r, Gt;
12604
+ return Bt.validateTuple = s, Bt.default = r, Bt;
12595
12605
  }
12596
12606
  var zo;
12597
12607
  function Jy() {
@@ -13032,10 +13042,10 @@ function av() {
13032
13042
  };
13033
13043
  return wr.default = e, wr;
13034
13044
  }
13035
- var kr = {}, Bo;
13045
+ var kr = {}, Go;
13036
13046
  function ov() {
13037
- if (Bo) return kr;
13038
- Bo = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
13047
+ if (Go) return kr;
13048
+ Go = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
13039
13049
  const t = oe(), e = me(), r = {
13040
13050
  keyword: "if",
13041
13051
  schemaType: ["object", "boolean"],
@@ -13079,10 +13089,10 @@ function ov() {
13079
13089
  }
13080
13090
  return kr.default = r, kr;
13081
13091
  }
13082
- var Sr = {}, Go;
13092
+ var Sr = {}, Bo;
13083
13093
  function cv() {
13084
- if (Go) return Sr;
13085
- Go = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
13094
+ if (Bo) return Sr;
13095
+ Bo = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
13086
13096
  const t = me(), e = {
13087
13097
  keyword: ["then", "else"],
13088
13098
  schemaType: ["object", "boolean"],
@@ -13211,9 +13221,9 @@ function fv() {
13211
13221
  }
13212
13222
  var ec;
13213
13223
  function pv() {
13214
- if (ec) return Bn;
13215
- ec = 1, Object.defineProperty(Bn, "__esModule", { value: !0 });
13216
- const t = My(), e = Gy(), n = uv(), r = dv(), s = fv(), i = [
13224
+ if (ec) return Gn;
13225
+ ec = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
13226
+ const t = My(), e = By(), n = uv(), r = dv(), s = fv(), i = [
13217
13227
  t.default,
13218
13228
  e.default,
13219
13229
  (0, n.default)(),
@@ -13221,7 +13231,7 @@ function pv() {
13221
13231
  s.metadataVocabulary,
13222
13232
  s.contentVocabulary
13223
13233
  ];
13224
- return Bn.default = i, Bn;
13234
+ return Gn.default = i, Gn;
13225
13235
  }
13226
13236
  var Er = {}, fn = {}, tc;
13227
13237
  function hv() {
@@ -13939,7 +13949,7 @@ class Av extends my {
13939
13949
  async _oninitialize(e) {
13940
13950
  const n = e.params.protocolVersion;
13941
13951
  return this._clientCapabilities = e.params.capabilities, this._clientVersion = e.params.clientInfo, {
13942
- protocolVersion: Gh.includes(n) ? n : su,
13952
+ protocolVersion: Bh.includes(n) ? n : su,
13943
13953
  capabilities: this.getCapabilities(),
13944
13954
  serverInfo: this._serverInfo,
13945
13955
  ...this._instructions && { instructions: this._instructions }
@@ -14802,8 +14812,8 @@ class Vi {
14802
14812
  };
14803
14813
  }
14804
14814
  }
14805
- const ls = "-", ot = "- ", Zu = ",", dt = ":", dc = " ", Du = "|", Gr = ".", Or = "[", Hv = "]", Kv = "{", fc = "}", Fi = "null", qu = "true", Lu = "false", Qe = "\\", Ve = '"', Wv = `
14806
- `, Bv = "\r", En = " ", oi = {
14815
+ const ls = "-", ot = "- ", Zu = ",", dt = ":", dc = " ", Du = "|", Br = ".", Or = "[", Hv = "]", Kv = "{", fc = "}", Fi = "null", qu = "true", Lu = "false", Qe = "\\", Ve = '"', Wv = `
14816
+ `, Gv = "\r", En = " ", oi = {
14807
14817
  comma: Zu,
14808
14818
  tab: En,
14809
14819
  pipe: Du
@@ -14826,7 +14836,7 @@ function Fu(t) {
14826
14836
  continue;
14827
14837
  }
14828
14838
  if (r === "r") {
14829
- e += Bv, n += 2;
14839
+ e += Gv, n += 2;
14830
14840
  continue;
14831
14841
  }
14832
14842
  if (r === Qe) {
@@ -14874,7 +14884,7 @@ function Uu(t, e, n = 0) {
14874
14884
  function Hu(t) {
14875
14885
  return t === qu || t === Lu || t === Fi;
14876
14886
  }
14877
- function Gv(t) {
14887
+ function Bv(t) {
14878
14888
  if (!t || t.length > 1 && t[0] === "0" && t[1] !== ".") return !1;
14879
14889
  const e = Number(t);
14880
14890
  return !Number.isNaN(e) && Number.isFinite(e);
@@ -14969,7 +14979,7 @@ function fs(t) {
14969
14979
  if (e === Lu) return !1;
14970
14980
  if (e === Fi) return null;
14971
14981
  }
14972
- if (Gv(e)) {
14982
+ if (Bv(e)) {
14973
14983
  const n = Number.parseFloat(e);
14974
14984
  return Object.is(n, -0) ? 0 : n;
14975
14985
  }
@@ -15073,7 +15083,7 @@ function s_(t, e, n) {
15073
15083
  function i_(t, e, n) {
15074
15084
  if (t?.depth === e && !t.content.startsWith(ot) && a_(t.content, n.delimiter)) throw new RangeError(`Expected ${n.length} tabular rows, but found more`);
15075
15085
  }
15076
- function Bu(t, e, n, r, s) {
15086
+ function Gu(t, e, n, r, s) {
15077
15087
  if (!r) return;
15078
15088
  const i = n.find((a) => a.lineNumber > t && a.lineNumber < e);
15079
15089
  if (i) throw new SyntaxError(`Line ${i.lineNumber}: Blank lines inside ${s} are not allowed in strict mode`);
@@ -15250,7 +15260,7 @@ function* d_(t, e, n, r) {
15250
15260
  yield* m_(t.fields, d), i++;
15251
15261
  } else break;
15252
15262
  }
15253
- Pn(i, t.length, "tabular rows", r), r.strict && a !== void 0 && o !== void 0 && Bu(a, o, e.getBlankLines(), r.strict, "tabular array"), r.strict && i_(e.peekSync(), s, t);
15263
+ Pn(i, t.length, "tabular rows", r), r.strict && a !== void 0 && o !== void 0 && Gu(a, o, e.getBlankLines(), r.strict, "tabular array"), r.strict && i_(e.peekSync(), s, t);
15254
15264
  }
15255
15265
  function* f_(t, e, n, r) {
15256
15266
  const s = n + 1;
@@ -15265,7 +15275,7 @@ function* f_(t, e, n, r) {
15265
15275
  d && (o = d.lineNumber), i++;
15266
15276
  } else break;
15267
15277
  }
15268
- Pn(i, t.length, "list array items", r), r.strict && a !== void 0 && o !== void 0 && Bu(a, o, e.getBlankLines(), r.strict, "list array"), r.strict && s_(e.peekSync(), s, t.length);
15278
+ Pn(i, t.length, "list array items", r), r.strict && a !== void 0 && o !== void 0 && Gu(a, o, e.getBlankLines(), r.strict, "list array"), r.strict && s_(e.peekSync(), s, t.length);
15269
15279
  }
15270
15280
  function* p_(t, e, n) {
15271
15281
  const r = t.nextSync();
@@ -15404,7 +15414,7 @@ function In(t) {
15404
15414
  function y_(t) {
15405
15415
  return t.length === 0 || t.every((e) => jt(e));
15406
15416
  }
15407
- function Gu(t) {
15417
+ function Bu(t) {
15408
15418
  return t.length === 0 || t.every((e) => ct(e));
15409
15419
  }
15410
15420
  function v_(t) {
@@ -15518,7 +15528,7 @@ function E_(t, e, n, r, s, i, a) {
15518
15528
  if (r.keyFolding !== "safe" || !ct(e)) return;
15519
15529
  const { segments: o, tail: c, leafValue: l } = P_(t, e, a ?? r.flattenDepth);
15520
15530
  if (o.length < 2 || !o.every((S) => __(S))) return;
15521
- const d = R_(o), h = i ? `${i}${Gr}${d}` : d;
15531
+ const d = R_(o), h = i ? `${i}${Br}${d}` : d;
15522
15532
  if (!n.includes(d) && !(s && s.has(h)))
15523
15533
  return {
15524
15534
  foldedKey: d,
@@ -15547,7 +15557,7 @@ function P_(t, e, n) {
15547
15557
  };
15548
15558
  }
15549
15559
  function R_(t) {
15550
- return t.join(Gr);
15560
+ return t.join(Br);
15551
15561
  }
15552
15562
  function sn(t, e) {
15553
15563
  return t === null ? Fi : typeof t == "boolean" || typeof t == "number" ? String(t) : I_(t, e);
@@ -15585,51 +15595,51 @@ function* Qt(t, e, n, r, s, i) {
15585
15595
  for (const [c, l] of Object.entries(t)) yield* O_(c, l, e, n, a, r, s, o);
15586
15596
  }
15587
15597
  function* O_(t, e, n, r, s, i, a, o) {
15588
- const c = a ? `${a}${Gr}${t}` : t, l = o ?? r.flattenDepth;
15598
+ const c = a ? `${a}${Br}${t}` : t, l = o ?? r.flattenDepth;
15589
15599
  if (r.keyFolding === "safe" && s) {
15590
15600
  const h = E_(t, e, s, r, i, a, l);
15591
15601
  if (h) {
15592
15602
  const { foldedKey: S, remainder: b, leafValue: v, segmentCount: y } = h, f = Cn(S);
15593
15603
  if (b === void 0) {
15594
15604
  if (Ht(v)) {
15595
- yield Ge(n, `${f}: ${sn(v, r.delimiter)}`, r.indent);
15605
+ yield Be(n, `${f}: ${sn(v, r.delimiter)}`, r.indent);
15596
15606
  return;
15597
15607
  } else if (jt(v)) {
15598
15608
  yield* ui(S, v, n, r);
15599
15609
  return;
15600
15610
  } else if (ct(v) && Rn(v)) {
15601
- yield Ge(n, `${f}:`, r.indent);
15611
+ yield Be(n, `${f}:`, r.indent);
15602
15612
  return;
15603
15613
  }
15604
15614
  }
15605
15615
  if (ct(b)) {
15606
- yield Ge(n, `${f}:`, r.indent);
15607
- const m = l - y, u = a ? `${a}${Gr}${S}` : S;
15616
+ yield Be(n, `${f}:`, r.indent);
15617
+ const m = l - y, u = a ? `${a}${Br}${S}` : S;
15608
15618
  yield* Qt(b, n + 1, r, i, u, m);
15609
15619
  return;
15610
15620
  }
15611
15621
  }
15612
15622
  }
15613
15623
  const d = Cn(t);
15614
- Ht(e) ? yield Ge(n, `${d}: ${sn(e, r.delimiter)}`, r.indent) : jt(e) ? yield* ui(t, e, n, r) : ct(e) && (yield Ge(n, `${d}:`, r.indent), Rn(e) || (yield* Qt(e, n + 1, r, i, c, l)));
15624
+ Ht(e) ? yield Be(n, `${d}: ${sn(e, r.delimiter)}`, r.indent) : jt(e) ? yield* ui(t, e, n, r) : ct(e) && (yield Be(n, `${d}:`, r.indent), Rn(e) || (yield* Qt(e, n + 1, r, i, c, l)));
15615
15625
  }
15616
15626
  function* ui(t, e, n, r) {
15617
15627
  if (e.length === 0) {
15618
- yield Ge(n, kt(0, {
15628
+ yield Be(n, kt(0, {
15619
15629
  key: t,
15620
15630
  delimiter: r.delimiter
15621
15631
  }), r.indent);
15622
15632
  return;
15623
15633
  }
15624
15634
  if (In(e)) {
15625
- yield Ge(n, ps(e, r.delimiter, t), r.indent);
15635
+ yield Be(n, ps(e, r.delimiter, t), r.indent);
15626
15636
  return;
15627
15637
  }
15628
15638
  if (y_(e) && e.every((s) => In(s))) {
15629
15639
  yield* N_(t, e, n, r);
15630
15640
  return;
15631
15641
  }
15632
- if (Gu(e)) {
15642
+ if (Bu(e)) {
15633
15643
  const s = Yu(e);
15634
15644
  s ? yield* x_(t, e, s, n, r) : yield* hc(t, e, n, r);
15635
15645
  return;
@@ -15637,7 +15647,7 @@ function* ui(t, e, n, r) {
15637
15647
  yield* hc(t, e, n, r);
15638
15648
  }
15639
15649
  function* N_(t, e, n, r) {
15640
- yield Ge(n, kt(e.length, {
15650
+ yield Be(n, kt(e.length, {
15641
15651
  key: t,
15642
15652
  delimiter: r.delimiter
15643
15653
  }), r.indent);
@@ -15654,7 +15664,7 @@ function ps(t, e, n) {
15654
15664
  return t.length === 0 ? r : `${r} ${s}`;
15655
15665
  }
15656
15666
  function* x_(t, e, n, r, s) {
15657
- yield Ge(r, kt(e.length, {
15667
+ yield Be(r, kt(e.length, {
15658
15668
  key: t,
15659
15669
  fields: n,
15660
15670
  delimiter: s.delimiter
@@ -15675,10 +15685,10 @@ function A_(t, e) {
15675
15685
  return !0;
15676
15686
  }
15677
15687
  function* Qu(t, e, n, r) {
15678
- for (const s of t) yield Ge(n, Ju(e.map((i) => s[i]), r.delimiter), r.indent);
15688
+ for (const s of t) yield Be(n, Ju(e.map((i) => s[i]), r.delimiter), r.indent);
15679
15689
  }
15680
15690
  function* hc(t, e, n, r) {
15681
- yield Ge(n, kt(e.length, {
15691
+ yield Be(n, kt(e.length, {
15682
15692
  key: t,
15683
15693
  delimiter: r.delimiter
15684
15694
  }), r.indent);
@@ -15686,11 +15696,11 @@ function* hc(t, e, n, r) {
15686
15696
  }
15687
15697
  function* j_(t, e, n) {
15688
15698
  if (Rn(t)) {
15689
- yield Ge(e, ls, n.indent);
15699
+ yield Be(e, ls, n.indent);
15690
15700
  return;
15691
15701
  }
15692
15702
  const r = Object.entries(t), [s, i] = r[0], a = r.slice(1);
15693
- if (jt(i) && Gu(i)) {
15703
+ if (jt(i) && Bu(i)) {
15694
15704
  const c = Yu(i);
15695
15705
  if (c) {
15696
15706
  yield ht(e, kt(i.length, {
@@ -15721,11 +15731,11 @@ function* Hi(t, e, n) {
15721
15731
  }
15722
15732
  else ct(t) && (yield* j_(t, e, n));
15723
15733
  }
15724
- function Ge(t, e, n) {
15734
+ function Be(t, e, n) {
15725
15735
  return " ".repeat(n * t) + e;
15726
15736
  }
15727
15737
  function ht(t, e, n) {
15728
- return Ge(t, ot + e, n);
15738
+ return Be(t, ot + e, n);
15729
15739
  }
15730
15740
  function z_(t, e) {
15731
15741
  const n = e("", t, []);
@@ -16169,7 +16179,7 @@ ${JSON.stringify(o, null, 2)}`
16169
16179
  }
16170
16180
  );
16171
16181
  }
16172
- const B_ = Xr(li(import.meta.url)), Ms = /* @__PURE__ */ new Map();
16182
+ const G_ = Xr(li(import.meta.url)), Ms = /* @__PURE__ */ new Map();
16173
16183
  function Ki(t, e = t) {
16174
16184
  const n = `${t}:${e}`;
16175
16185
  if (Ms.has(n))
@@ -16190,7 +16200,7 @@ function Ki(t, e = t) {
16190
16200
  }
16191
16201
  return Ms.set(n, r), r;
16192
16202
  }
16193
- function G_(t) {
16203
+ function B_(t) {
16194
16204
  const e = /* @__PURE__ */ new Map(), n = [
16195
16205
  // import { Type1, Type2 } from 'package'
16196
16206
  /import\s*\{\s*([^}]+)\s*\}\s*from\s*['"]([^'"]+)['"]/g,
@@ -16256,7 +16266,7 @@ function Y_(t) {
16256
16266
  return e;
16257
16267
  }
16258
16268
  function Q_(t, e) {
16259
- const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = G_(t), a = t.replace(/import\s+.*?from\s+['"][^'"]*['"];?\s*/g, "").replace(/\/\*\*[\s\S]*?\*\//g, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/.*$/gm, ""), o = [
16269
+ const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = B_(t), a = t.replace(/import\s+.*?from\s+['"][^'"]*['"];?\s*/g, "").replace(/\/\*\*[\s\S]*?\*\//g, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/.*$/gm, ""), o = [
16260
16270
  // Type references: SomeType, SomeType<T>, SomeType[]
16261
16271
  /\b([A-Z][a-zA-Z0-9_]*(?:<[^>]*>)?(?:\[\])?)/g,
16262
16272
  // Interface/type properties: prop: SomeType
@@ -16455,7 +16465,7 @@ function n0(t, e) {
16455
16465
  async (n) => {
16456
16466
  const { types: r, includeRelated: s = !0 } = n;
16457
16467
  try {
16458
- const i = tl(B_, "..");
16468
+ const i = tl(G_, "..");
16459
16469
  let a = "packageName";
16460
16470
  try {
16461
16471
  const g = wn(i, "package.json");
@@ -17568,15 +17578,19 @@ Usage: wangsvue-mcp <command> [arguments]
17568
17578
 
17569
17579
  Commands:
17570
17580
  run Start the MCP server with STDIO transport
17571
- init-rules <editor> Fetch documentation and initialize rules for agentic editors
17581
+ init-rules <editor> [options] Fetch documentation and initialize rules for agentic editors
17572
17582
 
17573
17583
  Arguments for init-rules:
17574
17584
  editor Set agentic editor for metadata configuration (required)
17575
17585
 
17586
+ Options:
17587
+ --api-services Only initialize rules for API services documentation
17588
+
17576
17589
  Available editors:
17577
17590
  kiro - Kiro editor (inclusion: always, output: .kiro/steering/)
17578
17591
  windsurf - Windsurf editor (trigger: always-on, output: .windsurf/rules/)
17579
17592
  trae - Trae editor (alwaysApply: true, output: .trae/rules/)
17593
+ copilot - GitHub Copilot (meta: applyTo: **, output: .github/instructions/)
17580
17594
  default - Generic configuration (inclusion: always, output: docs/)
17581
17595
 
17582
17596
  Examples:
@@ -17584,7 +17598,9 @@ Examples:
17584
17598
  wangsvue-mcp init-rules kiro
17585
17599
  wangsvue-mcp init-rules windsurf
17586
17600
  wangsvue-mcp init-rules trae
17601
+ wangsvue-mcp init-rules copilot
17587
17602
  wangsvue-mcp init-rules default
17603
+ wangsvue-mcp init-rules kiro --api-services
17588
17604
  `);
17589
17605
  }
17590
17606
  async function y0() {
@@ -17596,7 +17612,7 @@ async function y0() {
17596
17612
  await m0();
17597
17613
  break;
17598
17614
  case "init-rules":
17599
- const n = t[1];
17615
+ const n = t[1], r = t.includes("--api-services");
17600
17616
  n || (console.log(`
17601
17617
  Usage: wangsvue-mcp init-rules <editor>
17602
17618
 
@@ -17607,18 +17623,21 @@ Available editors:
17607
17623
  kiro - Kiro editor (inclusion: always, output: .kiro/steering/)
17608
17624
  windsurf - Windsurf editor (trigger: always-on, output: .windsurf/rules/)
17609
17625
  trae - Trae editor (alwaysApply: true, output: .trae/rules/)
17626
+ copilot - GitHub Copilot (meta: applyTo: **, output: .github/instructions/)
17610
17627
  default - Generic configuration (inclusion: always, output: docs/)
17611
17628
 
17612
17629
  Examples:
17613
17630
  wangsvue-mcp init-rules kiro
17614
17631
  wangsvue-mcp init-rules windsurf
17615
17632
  wangsvue-mcp init-rules trae
17633
+ wangsvue-mcp init-rules copilot
17616
17634
  wangsvue-mcp init-rules default
17635
+ wangsvue-mcp init-rules kiro --api-services
17617
17636
  `), process.exit(1));
17618
17637
  try {
17619
- console.log("Initializing rules..."), await pl(n), console.log("Rules initialization completed successfully!"), process.exit(0);
17620
- } catch (r) {
17621
- console.error("Failed to initialize rules:", r), process.exit(1);
17638
+ console.log("Initializing rules..."), await pl(n, r), console.log("Rules initialization completed successfully!"), process.exit(0);
17639
+ } catch (s) {
17640
+ console.error("Failed to initialize rules:", s), process.exit(1);
17622
17641
  }
17623
17642
  break;
17624
17643
  default: