zudoku 0.15.2 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/lib/oas/graphql/index.js +4 -4
  2. package/dist/lib/oas/graphql/index.js.map +1 -1
  3. package/dist/lib/oas/parser/upgrade/index.js +3 -1
  4. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  5. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  6. package/dist/lib/plugins/openapi/CollapsibleCode.js +22 -0
  7. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  8. package/dist/lib/plugins/openapi/OperationList.js +14 -0
  9. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  10. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  11. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  12. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  13. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  14. package/dist/lib/plugins/openapi/Sidecar.js +2 -1
  15. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  16. package/dist/lib/plugins/openapi/graphql/gql.d.ts +3 -2
  17. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  18. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  19. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +16 -117
  20. package/dist/lib/plugins/openapi/graphql/graphql.js +116 -0
  21. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  22. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  23. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  24. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  25. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  26. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  27. package/dist/vite/output.js +3 -1
  28. package/dist/vite/output.js.map +1 -1
  29. package/dist/vite/prerender.js +3 -2
  30. package/dist/vite/prerender.js.map +1 -1
  31. package/lib/{OperationList-Tj7ubW_t.js → OperationList-35iw_Gil.js} +17 -3
  32. package/lib/OperationList-35iw_Gil.js.map +1 -0
  33. package/lib/{Route-C3DGB6OS.js → Route-BsEZmkNl.js} +2 -2
  34. package/lib/{Route-C3DGB6OS.js.map → Route-BsEZmkNl.js.map} +1 -1
  35. package/lib/assets/{worker-Bf8vjASY.js → worker-YA-aCP3P.js} +542 -540
  36. package/lib/assets/{worker-Bf8vjASY.js.map → worker-YA-aCP3P.js.map} +1 -1
  37. package/lib/{index-AjWCJNGC.js → index-BdD8UbS-.js} +1772 -1547
  38. package/lib/index-BdD8UbS-.js.map +1 -0
  39. package/lib/zudoku.openapi-worker.js +140 -138
  40. package/lib/zudoku.openapi-worker.js.map +1 -1
  41. package/lib/zudoku.plugin-openapi.js +1 -1
  42. package/package.json +2 -2
  43. package/src/app/main.css +1 -1
  44. package/src/lib/oas/graphql/index.ts +4 -4
  45. package/src/lib/oas/parser/upgrade/index.ts +3 -1
  46. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  47. package/src/lib/plugins/openapi/OperationList.tsx +14 -0
  48. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  49. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  50. package/src/lib/plugins/openapi/Sidecar.tsx +10 -7
  51. package/src/lib/plugins/openapi/graphql/gql.ts +4 -3
  52. package/src/lib/plugins/openapi/graphql/graphql.ts +132 -133
  53. package/src/lib/plugins/openapi/schema/SchemaView.tsx +4 -1
  54. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  55. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  56. package/lib/index-AjWCJNGC.js.map +0 -1
@@ -94,7 +94,7 @@ caused by: ${gt.fullStack(n)}` : e.stack ?? "";
94
94
  return this.message && (e = `${e}: ${this.message}`), e;
95
95
  }
96
96
  }
97
- const xi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Hn = 32, So = 281474976710655, _o = 10, ql = 16, An = Object.freeze({
97
+ const Fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Hn = 32, So = 281474976710655, _o = 10, ql = 16, An = Object.freeze({
98
98
  source: "ulid"
99
99
  });
100
100
  function zl(t) {
@@ -153,14 +153,14 @@ function Io(t, e) {
153
153
  }, `Time must be an integer: ${t}`);
154
154
  let n, i = "";
155
155
  for (let r = e; r > 0; r--)
156
- n = t % Hn, i = xi.charAt(n) + i, t = (t - n) / Hn;
156
+ n = t % Hn, i = Fi.charAt(n) + i, t = (t - n) / Hn;
157
157
  return i;
158
158
  }
159
159
  function Hl(t) {
160
160
  let e, n = t.length, i, r, s = t;
161
161
  const o = Hn - 1;
162
162
  for (; !e && n-- >= 0; ) {
163
- if (i = s[n], r = xi.indexOf(i), r === -1)
163
+ if (i = s[n], r = Fi.indexOf(i), r === -1)
164
164
  throw new gt({
165
165
  info: {
166
166
  code: "B32_INC_ENC",
@@ -168,10 +168,10 @@ function Hl(t) {
168
168
  }
169
169
  }, "Incorrectly encoded string");
170
170
  if (r === o) {
171
- s = Oo(s, n, xi[0]);
171
+ s = Oo(s, n, Fi[0]);
172
172
  continue;
173
173
  }
174
- e = Oo(s, n, xi[r + 1]);
174
+ e = Oo(s, n, Fi[r + 1]);
175
175
  }
176
176
  if (typeof e == "string")
177
177
  return e;
@@ -201,7 +201,7 @@ function Jl(t) {
201
201
  }
202
202
  function Kl(t) {
203
203
  let e = Math.floor(t() * Hn);
204
- return e === Hn && (e = Hn - 1), xi.charAt(e);
204
+ return e === Hn && (e = Hn - 1), Fi.charAt(e);
205
205
  }
206
206
  function Oo(t, e, n) {
207
207
  return e > t.length - 1 ? t : t.substr(0, e) + n + t.substr(e + 1);
@@ -1133,7 +1133,7 @@ var I;
1133
1133
  function ps(t) {
1134
1134
  return t === 9 || t === 32;
1135
1135
  }
1136
- function Ci(t) {
1136
+ function ki(t) {
1137
1137
  return t >= 48 && t <= 57;
1138
1138
  }
1139
1139
  function nu(t) {
@@ -1144,7 +1144,7 @@ function Bs(t) {
1144
1144
  return nu(t) || t === 95;
1145
1145
  }
1146
1146
  function iu(t) {
1147
- return nu(t) || Ci(t) || t === 95;
1147
+ return nu(t) || ki(t) || t === 95;
1148
1148
  }
1149
1149
  function _c(t) {
1150
1150
  var e;
@@ -1227,7 +1227,7 @@ class Nc {
1227
1227
  function Ac(t) {
1228
1228
  return t === D.BANG || t === D.DOLLAR || t === D.AMP || t === D.PAREN_L || t === D.PAREN_R || t === D.SPREAD || t === D.COLON || t === D.EQUALS || t === D.AT || t === D.BRACKET_L || t === D.BRACKET_R || t === D.BRACE_L || t === D.PIPE || t === D.BRACE_R;
1229
1229
  }
1230
- function ci(t) {
1230
+ function fi(t) {
1231
1231
  return t >= 0 && t <= 55295 || t >= 57344 && t <= 1114111;
1232
1232
  }
1233
1233
  function kr(t, e) {
@@ -1306,14 +1306,14 @@ function xc(t, e) {
1306
1306
  case 34:
1307
1307
  return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? $c(t, r) : Lc(t, r);
1308
1308
  }
1309
- if (Ci(s) || s === 45)
1309
+ if (ki(s) || s === 45)
1310
1310
  return Rc(t, r, s);
1311
1311
  if (Bs(s))
1312
1312
  return jc(t, r);
1313
1313
  throw $e(
1314
1314
  t.source,
1315
1315
  r,
1316
- s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ci(s) || kr(n, r) ? `Unexpected character: ${kn(t, r)}.` : `Invalid character: ${kn(t, r)}.`
1316
+ s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : fi(s) || kr(n, r) ? `Unexpected character: ${kn(t, r)}.` : `Invalid character: ${kn(t, r)}.`
1317
1317
  );
1318
1318
  }
1319
1319
  return _e(t, D.EOF, i, i);
@@ -1325,7 +1325,7 @@ function Fc(t, e) {
1325
1325
  const s = n.charCodeAt(r);
1326
1326
  if (s === 10 || s === 13)
1327
1327
  break;
1328
- if (ci(s))
1328
+ if (fi(s))
1329
1329
  ++r;
1330
1330
  else if (kr(n, r))
1331
1331
  r += 2;
@@ -1344,7 +1344,7 @@ function Rc(t, e, n) {
1344
1344
  const i = t.source.body;
1345
1345
  let r = e, s = n, o = !1;
1346
1346
  if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
1347
- if (s = i.charCodeAt(++r), Ci(s))
1347
+ if (s = i.charCodeAt(++r), ki(s))
1348
1348
  throw $e(
1349
1349
  t.source,
1350
1350
  r,
@@ -1373,7 +1373,7 @@ function Rc(t, e, n) {
1373
1373
  );
1374
1374
  }
1375
1375
  function es(t, e, n) {
1376
- if (!Ci(n))
1376
+ if (!ki(n))
1377
1377
  throw $e(
1378
1378
  t.source,
1379
1379
  e,
@@ -1384,7 +1384,7 @@ function es(t, e, n) {
1384
1384
  );
1385
1385
  const i = t.source.body;
1386
1386
  let r = e + 1;
1387
- for (; Ci(i.charCodeAt(r)); )
1387
+ for (; ki(i.charCodeAt(r)); )
1388
1388
  ++r;
1389
1389
  return r;
1390
1390
  }
@@ -1403,7 +1403,7 @@ function Lc(t, e) {
1403
1403
  }
1404
1404
  if (a === 10 || a === 13)
1405
1405
  break;
1406
- if (ci(a))
1406
+ if (fi(a))
1407
1407
  ++r;
1408
1408
  else if (kr(n, r))
1409
1409
  r += 2;
@@ -1425,14 +1425,14 @@ function Cc(t, e) {
1425
1425
  for (; r < 12; ) {
1426
1426
  const s = n.charCodeAt(e + r++);
1427
1427
  if (s === 125) {
1428
- if (r < 5 || !ci(i))
1428
+ if (r < 5 || !fi(i))
1429
1429
  break;
1430
1430
  return {
1431
1431
  value: String.fromCodePoint(i),
1432
1432
  size: r
1433
1433
  };
1434
1434
  }
1435
- if (i = i << 4 | Ei(s), i < 0)
1435
+ if (i = i << 4 | vi(s), i < 0)
1436
1436
  break;
1437
1437
  }
1438
1438
  throw $e(
@@ -1446,7 +1446,7 @@ function Cc(t, e) {
1446
1446
  }
1447
1447
  function kc(t, e) {
1448
1448
  const n = t.source.body, i = Do(n, e + 2);
1449
- if (ci(i))
1449
+ if (fi(i))
1450
1450
  return {
1451
1451
  value: String.fromCodePoint(i),
1452
1452
  size: 6
@@ -1466,9 +1466,9 @@ function kc(t, e) {
1466
1466
  );
1467
1467
  }
1468
1468
  function Do(t, e) {
1469
- return Ei(t.charCodeAt(e)) << 12 | Ei(t.charCodeAt(e + 1)) << 8 | Ei(t.charCodeAt(e + 2)) << 4 | Ei(t.charCodeAt(e + 3));
1469
+ return vi(t.charCodeAt(e)) << 12 | vi(t.charCodeAt(e + 1)) << 8 | vi(t.charCodeAt(e + 2)) << 4 | vi(t.charCodeAt(e + 3));
1470
1470
  }
1471
- function Ei(t) {
1471
+ function vi(t) {
1472
1472
  return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
1473
1473
  }
1474
1474
  function Dc(t, e) {
@@ -1552,7 +1552,7 @@ function $c(t, e) {
1552
1552
  a += n.slice(o, s), u.push(a), c === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, a = "", o = s, r = s;
1553
1553
  continue;
1554
1554
  }
1555
- if (ci(c))
1555
+ if (fi(c))
1556
1556
  ++s;
1557
1557
  else if (kr(n, s))
1558
1558
  s += 2;
@@ -3129,7 +3129,7 @@ const ef = [
3129
3129
  "\\u009D",
3130
3130
  "\\u009E",
3131
3131
  "\\u009F"
3132
- ], vi = Object.freeze({});
3132
+ ], Ti = Object.freeze({});
3133
3133
  function Gs(t, e, n = tu) {
3134
3134
  const i = /* @__PURE__ */ new Map();
3135
3135
  for (const y of Object.values(I))
@@ -3167,7 +3167,7 @@ function Gs(t, e, n = tu) {
3167
3167
  var w, R;
3168
3168
  hs(c) || ae(!1, `Invalid AST Node: ${G(c)}.`);
3169
3169
  const O = y ? (w = i.get(c.kind)) === null || w === void 0 ? void 0 : w.leave : (R = i.get(c.kind)) === null || R === void 0 ? void 0 : R.enter;
3170
- if (A = O == null ? void 0 : O.call(e, c, f, g, p, v), A === vi)
3170
+ if (A = O == null ? void 0 : O.call(e, c, f, g, p, v), A === Ti)
3171
3171
  break;
3172
3172
  if (A === !1) {
3173
3173
  if (!y) {
@@ -3217,8 +3217,8 @@ function tf(t) {
3217
3217
  const p = (f = s[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
3218
3218
  if (p === !1)
3219
3219
  e[g] = c;
3220
- else if (p === vi)
3221
- e[g] = vi;
3220
+ else if (p === Ti)
3221
+ e[g] = Ti;
3222
3222
  else if (p !== void 0)
3223
3223
  return p;
3224
3224
  }
@@ -3229,8 +3229,8 @@ function tf(t) {
3229
3229
  if (e[g] === null) {
3230
3230
  var f;
3231
3231
  const p = (f = o[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
3232
- if (p === vi)
3233
- e[g] = vi;
3232
+ if (p === Ti)
3233
+ e[g] = Ti;
3234
3234
  else if (p !== void 0 && p !== !1)
3235
3235
  return p;
3236
3236
  } else e[g] === c && (e[g] = null);
@@ -3576,7 +3576,7 @@ function Gt(t) {
3576
3576
  return qt(t, ai);
3577
3577
  }
3578
3578
  function ze(t) {
3579
- return qt(t, Ri);
3579
+ return qt(t, Li);
3580
3580
  }
3581
3581
  function Pe(t) {
3582
3582
  return qt(t, Ue);
@@ -3587,8 +3587,8 @@ function re(t) {
3587
3587
  function Pt(t) {
3588
3588
  return jn(t) || Gt(t) || ze(t) || zs(t) && Pt(t.ofType);
3589
3589
  }
3590
- function Fi(t) {
3591
- return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || zs(t) && Fi(t.ofType);
3590
+ function Ri(t) {
3591
+ return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || zs(t) && Ri(t.ofType);
3592
3592
  }
3593
3593
  function bn(t) {
3594
3594
  return jn(t) || Gt(t);
@@ -4000,7 +4000,7 @@ function Mo(t, e) {
4000
4000
  astNode: i.astNode
4001
4001
  }));
4002
4002
  }
4003
- class Ri {
4003
+ class Li {
4004
4004
  constructor(e) {
4005
4005
  var n, i;
4006
4006
  this.name = zt(e.name), this.description = e.description, this.extensions = yt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (i = e.isOneOf) !== null && i !== void 0 ? i : !1, this._fields = lf.bind(void 0, e);
@@ -4357,9 +4357,9 @@ const Qs = new rn({
4357
4357
  function Eu(t) {
4358
4358
  return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
4359
4359
  }
4360
- function Ti(t, e) {
4360
+ function Si(t, e) {
4361
4361
  if (re(e)) {
4362
- const n = Ti(t, e.ofType);
4362
+ const n = Si(t, e.ofType);
4363
4363
  return (n == null ? void 0 : n.kind) === I.NULL ? null : n;
4364
4364
  }
4365
4365
  if (t === null)
@@ -4373,7 +4373,7 @@ function Ti(t, e) {
4373
4373
  if (Eu(t)) {
4374
4374
  const i = [];
4375
4375
  for (const r of t) {
4376
- const s = Ti(r, n);
4376
+ const s = Si(r, n);
4377
4377
  s != null && i.push(s);
4378
4378
  }
4379
4379
  return {
@@ -4381,14 +4381,14 @@ function Ti(t, e) {
4381
4381
  values: i
4382
4382
  };
4383
4383
  }
4384
- return Ti(t, n);
4384
+ return Si(t, n);
4385
4385
  }
4386
4386
  if (ze(e)) {
4387
4387
  if (!Jt(t))
4388
4388
  return null;
4389
4389
  const n = [];
4390
4390
  for (const i of Object.values(e.getFields())) {
4391
- const r = Ti(t[i.name], i.type);
4391
+ const r = Si(t[i.name], i.type);
4392
4392
  r && n.push({
4393
4393
  kind: I.OBJECT_FIELD,
4394
4394
  name: {
@@ -4766,7 +4766,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
4766
4766
  type: ue,
4767
4767
  description: "A GraphQL-formatted string representing the default value for this input value.",
4768
4768
  resolve(t) {
4769
- const { type: e, defaultValue: n } = t, i = Ti(n, e);
4769
+ const { type: e, defaultValue: n } = t, i = Si(n, e);
4770
4770
  return i ? be(i) : null;
4771
4771
  }
4772
4772
  },
@@ -5184,7 +5184,7 @@ function Bo(t, e) {
5184
5184
  ...e.extensionASTNodes
5185
5185
  ]);
5186
5186
  for (const o of n) {
5187
- if (Dn(t, o), !Fi(o.type)) {
5187
+ if (Dn(t, o), !Ri(o.type)) {
5188
5188
  var i;
5189
5189
  t.reportError(
5190
5190
  `The type of ${e.name}.${o.name} must be Output Type but got: ${G(o.type)}.`,
@@ -5219,21 +5219,21 @@ function Go(t, e) {
5219
5219
  if (!Ee(i)) {
5220
5220
  t.reportError(
5221
5221
  `Type ${G(e)} must only implement Interface types, it cannot implement ${G(i)}.`,
5222
- Li(e, i)
5222
+ Ci(e, i)
5223
5223
  );
5224
5224
  continue;
5225
5225
  }
5226
5226
  if (e === i) {
5227
5227
  t.reportError(
5228
5228
  `Type ${e.name} cannot implement itself because it would create a circular reference.`,
5229
- Li(e, i)
5229
+ Ci(e, i)
5230
5230
  );
5231
5231
  continue;
5232
5232
  }
5233
5233
  if (n[i.name]) {
5234
5234
  t.reportError(
5235
5235
  `Type ${e.name} can only implement ${i.name} once.`,
5236
- Li(e, i)
5236
+ Ci(e, i)
5237
5237
  );
5238
5238
  continue;
5239
5239
  }
@@ -5296,8 +5296,8 @@ function vf(t, e, n) {
5296
5296
  i.includes(r) || t.reportError(
5297
5297
  r === e ? `Type ${e.name} cannot implement ${n.name} because it would create a circular reference.` : `Type ${e.name} must implement ${r.name} because it is implemented by ${n.name}.`,
5298
5298
  [
5299
- ...Li(n, r),
5300
- ...Li(e, n)
5299
+ ...Ci(n, r),
5300
+ ...Ci(e, n)
5301
5301
  ]
5302
5302
  );
5303
5303
  }
@@ -5396,7 +5396,7 @@ function Of(t) {
5396
5396
  i[s.name] = void 0;
5397
5397
  }
5398
5398
  }
5399
- function Li(t, e) {
5399
+ function Ci(t, e) {
5400
5400
  const { astNode: n, extensionASTNodes: i } = t;
5401
5401
  return (n != null ? [n, ...i] : i).flatMap((s) => {
5402
5402
  var o;
@@ -5438,7 +5438,7 @@ function it(t, e) {
5438
5438
  }
5439
5439
  class Fu {
5440
5440
  constructor(e, n, i) {
5441
- this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Nf, n && (Pt(n) && this._inputTypeStack.push(n), wn(n) && this._parentTypeStack.push(n), Fi(n) && this._typeStack.push(n));
5441
+ this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Nf, n && (Pt(n) && this._inputTypeStack.push(n), wn(n) && this._parentTypeStack.push(n), Ri(n) && this._typeStack.push(n));
5442
5442
  }
5443
5443
  get [Symbol.toStringTag]() {
5444
5444
  return "TypeInfo";
@@ -5489,7 +5489,7 @@ class Fu {
5489
5489
  case I.FIELD: {
5490
5490
  const r = this.getParentType();
5491
5491
  let s, o;
5492
- r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(Fi(o) ? o : void 0);
5492
+ r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(Ri(o) ? o : void 0);
5493
5493
  break;
5494
5494
  }
5495
5495
  case I.DIRECTIVE:
@@ -5503,7 +5503,7 @@ class Fu {
5503
5503
  case I.INLINE_FRAGMENT:
5504
5504
  case I.FRAGMENT_DEFINITION: {
5505
5505
  const r = e.typeCondition, s = r ? it(n, r) : Mt(this.getType());
5506
- this._typeStack.push(Fi(s) ? s : void 0);
5506
+ this._typeStack.push(Ri(s) ? s : void 0);
5507
5507
  break;
5508
5508
  }
5509
5509
  case I.VARIABLE_DEFINITION: {
@@ -6668,16 +6668,16 @@ function Xt(t) {
6668
6668
  return e.reverse();
6669
6669
  }
6670
6670
  function dd(t, e, n = hd) {
6671
- return Si(t, e, n, void 0);
6671
+ return _i(t, e, n, void 0);
6672
6672
  }
6673
6673
  function hd(t, e, n) {
6674
6674
  let i = "Invalid value " + G(e);
6675
6675
  throw t.length > 0 && (i += ` at "value${fd(t)}"`), n.message = i + ": " + n.message, n;
6676
6676
  }
6677
- function Si(t, e, n, i) {
6677
+ function _i(t, e, n, i) {
6678
6678
  if (re(e)) {
6679
6679
  if (t != null)
6680
- return Si(t, e.ofType, n, i);
6680
+ return _i(t, e.ofType, n, i);
6681
6681
  n(
6682
6682
  Xt(i),
6683
6683
  t,
@@ -6693,8 +6693,8 @@ function Si(t, e, n, i) {
6693
6693
  const r = e.ofType;
6694
6694
  return Eu(t) ? Array.from(t, (s, o) => {
6695
6695
  const a = Wo(i, o, void 0);
6696
- return Si(s, r, n, a);
6697
- }) : [Si(t, r, n, i)];
6696
+ return _i(s, r, n, a);
6697
+ }) : [_i(t, r, n, i)];
6698
6698
  }
6699
6699
  if (ze(e)) {
6700
6700
  if (!Jt(t)) {
@@ -6723,7 +6723,7 @@ function Si(t, e, n, i) {
6723
6723
  }
6724
6724
  continue;
6725
6725
  }
6726
- r[o.name] = Si(
6726
+ r[o.name] = _i(
6727
6727
  a,
6728
6728
  o.type,
6729
6729
  n,
@@ -7736,7 +7736,7 @@ function jd(t) {
7736
7736
  }
7737
7737
  if (ze(p)) {
7738
7738
  const v = p.toConfig();
7739
- return new Ri({
7739
+ return new Li({
7740
7740
  ...v,
7741
7741
  fields: () => c(v.fields)
7742
7742
  });
@@ -7780,7 +7780,7 @@ function Md(t) {
7780
7780
  return e.set(r, s), s;
7781
7781
  };
7782
7782
  }
7783
- function hi(t, e, n) {
7783
+ function pi(t, e, n) {
7784
7784
  return e in t ? Object.defineProperty(t, e, {
7785
7785
  value: n,
7786
7786
  enumerable: !0,
@@ -7788,7 +7788,7 @@ function hi(t, e, n) {
7788
7788
  writable: !0
7789
7789
  }) : t[e] = n, t;
7790
7790
  }
7791
- const pi = /* @__PURE__ */ new WeakMap();
7791
+ const gi = /* @__PURE__ */ new WeakMap();
7792
7792
  class Ud {
7793
7793
  /**
7794
7794
  * Called for each type defined with the SchemaBuilder
@@ -7872,11 +7872,11 @@ class Ud {
7872
7872
  return e;
7873
7873
  }
7874
7874
  runUnique(e, n) {
7875
- if (pi.has(this.builder) || pi.set(this.builder, /* @__PURE__ */ new Map()), !pi.get(this.builder).has(e)) {
7875
+ if (gi.has(this.builder) || gi.set(this.builder, /* @__PURE__ */ new Map()), !gi.get(this.builder).has(e)) {
7876
7876
  const i = n();
7877
- return pi.get(this.builder).set(e, i), i;
7877
+ return gi.get(this.builder).set(e, i), i;
7878
7878
  }
7879
- return pi.get(this.builder).get(e);
7879
+ return gi.get(this.builder).get(e);
7880
7880
  }
7881
7881
  /**
7882
7882
  * Creates a data object unique to the current request for use by this plugin
@@ -7895,7 +7895,7 @@ class Ud {
7895
7895
  return this.requestDataMap(e);
7896
7896
  }
7897
7897
  constructor(e, n) {
7898
- hi(this, "name", void 0), hi(this, "builder", void 0), hi(this, "buildCache", void 0), hi(this, "options", void 0), hi(this, "requestDataMap", Md((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
7898
+ pi(this, "name", void 0), pi(this, "builder", void 0), pi(this, "buildCache", void 0), pi(this, "options", void 0), pi(this, "requestDataMap", Md((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
7899
7899
  }
7900
7900
  }
7901
7901
  function Vd(t, e, n) {
@@ -7942,7 +7942,7 @@ class Bd extends Ud {
7942
7942
  super(e, "PothosMergedPlugin"), Vd(this, "plugins", void 0), this.plugins = n;
7943
7943
  }
7944
7944
  }
7945
- const Pn = Symbol.for("Pothos.outputShapeKey"), fi = Symbol.for("Pothos.parentShapeKey"), Wi = Symbol.for("Pothos.inputShapeKey"), Gd = Symbol.for("Pothos.inputFieldShapeKey"), qd = Symbol.for("Pothos.outputFieldShapeKey"), Fr = Symbol.for("Pothos.typeBrandKey");
7945
+ const Pn = Symbol.for("Pothos.outputShapeKey"), di = Symbol.for("Pothos.parentShapeKey"), Wi = Symbol.for("Pothos.inputShapeKey"), Gd = Symbol.for("Pothos.inputFieldShapeKey"), qd = Symbol.for("Pothos.outputFieldShapeKey"), Fr = Symbol.for("Pothos.typeBrandKey");
7946
7946
  function Ko(t, e, n) {
7947
7947
  return e in t ? Object.defineProperty(t, e, {
7948
7948
  value: n,
@@ -7967,7 +7967,7 @@ function Un(t, e, n) {
7967
7967
  writable: !0
7968
7968
  }) : t[e] = n, t;
7969
7969
  }
7970
- let zd = Pn, Qd = fi, Wd = Wi;
7970
+ let zd = Pn, Qd = di, Wd = Wi;
7971
7971
  class Mu extends Ne {
7972
7972
  constructor(e) {
7973
7973
  super("Scalar", e), Un(this, "kind", "Scalar"), Un(this, "$inferType", void 0), Un(this, "$inferInput", void 0), Un(this, zd, void 0), Un(this, Qd, void 0), Un(this, Wd, void 0);
@@ -7986,7 +7986,7 @@ class Uu extends Mu {
7986
7986
  super(e.name), Hd(this, "type", void 0), this.type = e;
7987
7987
  }
7988
7988
  }
7989
- function gi(t, e, n) {
7989
+ function mi(t, e, n) {
7990
7990
  return e in t ? Object.defineProperty(t, e, {
7991
7991
  value: n,
7992
7992
  enumerable: !0,
@@ -7997,7 +7997,7 @@ function gi(t, e, n) {
7997
7997
  let Yd = Wi;
7998
7998
  class Ur extends Ne {
7999
7999
  constructor(e, n) {
8000
- super("InputList", `InputList<${String(e)}>`), gi(this, "kind", "InputList"), gi(this, Yd, void 0), gi(this, "$inferInput", void 0), gi(this, "listType", void 0), gi(this, "required", void 0), this.listType = e, this.required = n;
8000
+ super("InputList", `InputList<${String(e)}>`), mi(this, "kind", "InputList"), mi(this, Yd, void 0), mi(this, "$inferInput", void 0), mi(this, "listType", void 0), mi(this, "required", void 0), this.listType = e, this.required = n;
8001
8001
  }
8002
8002
  }
8003
8003
  function Vn(t, e, n) {
@@ -8008,7 +8008,7 @@ function Vn(t, e, n) {
8008
8008
  writable: !0
8009
8009
  }) : t[e] = n, t;
8010
8010
  }
8011
- let Jd = Pn, Kd = fi;
8011
+ let Jd = Pn, Kd = di;
8012
8012
  class Vr extends Ne {
8013
8013
  constructor(e, n) {
8014
8014
  super("List", `List<${String(e)}>`), Vn(this, "kind", "List"), Vn(this, "$inferType", void 0), Vn(this, Jd, void 0), Vn(this, Kd, void 0), Vn(this, "listType", void 0), Vn(this, "nullable", void 0), this.listType = e, this.nullable = n;
@@ -8166,7 +8166,7 @@ class ih {
8166
8166
  }), this.configStore.typeConfigs.forEach((e) => {
8167
8167
  e.kind === "InputObject" && this.buildTypeFromConfig(e);
8168
8168
  }), this.types.forEach((e) => {
8169
- e instanceof Ri && e.getFields();
8169
+ e instanceof Li && e.getFields();
8170
8170
  }), this.configStore.typeConfigs.forEach((e) => {
8171
8171
  e.kind === "Interface" && this.buildTypeFromConfig(e);
8172
8172
  }), this.configStore.typeConfigs.forEach((e) => {
@@ -8313,7 +8313,7 @@ class ih {
8313
8313
  }
8314
8314
  getOutputType(e) {
8315
8315
  const n = this.getType(e);
8316
- if (n instanceof Ri)
8316
+ if (n instanceof Li)
8317
8317
  throw new ie(`Expected ${String(e)} to be an output type but it was defined as an InputObject`);
8318
8318
  return n;
8319
8319
  }
@@ -8430,7 +8430,7 @@ class ih {
8430
8430
  });
8431
8431
  }
8432
8432
  buildInputObject(e) {
8433
- const n = new Ri({
8433
+ const n = new Li({
8434
8434
  ...e,
8435
8435
  extensions: {
8436
8436
  ...e.extensions,
@@ -8501,7 +8501,7 @@ function er(t, e, n) {
8501
8501
  writable: !0
8502
8502
  }) : t[e] = n, t;
8503
8503
  }
8504
- let oh = Pn, ah = fi;
8504
+ let oh = Pn, ah = di;
8505
8505
  class uh extends Ne {
8506
8506
  constructor(e, n) {
8507
8507
  super(e, n), er(this, "kind", void 0), er(this, "$inferType", void 0), er(this, oh, void 0), er(this, ah, void 0), this.kind = e;
@@ -8815,7 +8815,7 @@ class _s {
8815
8815
  }), this.builder = e, this.kind = n, this.typename = i;
8816
8816
  }
8817
8817
  }
8818
- function mi(t, e, n) {
8818
+ function yi(t, e, n) {
8819
8819
  return e in t ? Object.defineProperty(t, e, {
8820
8820
  value: n,
8821
8821
  enumerable: !0,
@@ -8829,7 +8829,7 @@ class hh {
8829
8829
  return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
8830
8830
  }
8831
8831
  constructor(e, n) {
8832
- mi(this, "kind", void 0), mi(this, "parentTypename", void 0), mi(this, "fieldName", void 0), mi(this, "$inferType", void 0), mi(this, dh, void 0), this.kind = e, this.parentTypename = n;
8832
+ yi(this, "kind", void 0), yi(this, "parentTypename", void 0), yi(this, "fieldName", void 0), yi(this, "$inferType", void 0), yi(this, dh, void 0), this.kind = e, this.parentTypename = n;
8833
8833
  }
8834
8834
  }
8835
8835
  function tr(t, e, n) {
@@ -9212,7 +9212,7 @@ class or extends Br {
9212
9212
  super("Subscription", e, "Subscription", "Object");
9213
9213
  }
9214
9214
  }
9215
- function yi(t, e, n) {
9215
+ function bi(t, e, n) {
9216
9216
  return e in t ? Object.defineProperty(t, e, {
9217
9217
  value: n,
9218
9218
  enumerable: !0,
@@ -9223,7 +9223,7 @@ function yi(t, e, n) {
9223
9223
  let mh = Pn, yh = Wi;
9224
9224
  class bh extends Ne {
9225
9225
  constructor(e) {
9226
- super("Enum", e), yi(this, "kind", "Enum"), yi(this, "$inferType", void 0), yi(this, "$inferInput", void 0), yi(this, mh, void 0), yi(this, yh, void 0);
9226
+ super("Enum", e), bi(this, "kind", "Enum"), bi(this, "$inferType", void 0), bi(this, "$inferInput", void 0), bi(this, mh, void 0), bi(this, yh, void 0);
9227
9227
  }
9228
9228
  }
9229
9229
  function pr(t, e, n) {
@@ -9248,7 +9248,7 @@ class Eh extends Bu {
9248
9248
  super(n), pr(this, "builder", void 0), this.builder = e;
9249
9249
  }
9250
9250
  }
9251
- function _i(t, e, n) {
9251
+ function Ii(t, e, n) {
9252
9252
  return e in t ? Object.defineProperty(t, e, {
9253
9253
  value: n,
9254
9254
  enumerable: !0,
@@ -9256,10 +9256,10 @@ function _i(t, e, n) {
9256
9256
  writable: !0
9257
9257
  }) : t[e] = n, t;
9258
9258
  }
9259
- let vh = Pn, Th = fi;
9259
+ let vh = Pn, Th = di;
9260
9260
  class Gu extends Ne {
9261
9261
  constructor(e) {
9262
- super("Interface", e), _i(this, "kind", "Interface"), _i(this, "$inferType", void 0), _i(this, vh, void 0), _i(this, Th, void 0);
9262
+ super("Interface", e), Ii(this, "kind", "Interface"), Ii(this, "$inferType", void 0), Ii(this, vh, void 0), Ii(this, Th, void 0);
9263
9263
  }
9264
9264
  }
9265
9265
  class Sh extends Gu {
@@ -9267,10 +9267,10 @@ class Sh extends Gu {
9267
9267
  return this.builder.interfaceType(this, e);
9268
9268
  }
9269
9269
  constructor(e, n) {
9270
- super(n), _i(this, "builder", void 0), this.builder = e;
9270
+ super(n), Ii(this, "builder", void 0), this.builder = e;
9271
9271
  }
9272
9272
  }
9273
- function Ii(t, e, n) {
9273
+ function Oi(t, e, n) {
9274
9274
  return e in t ? Object.defineProperty(t, e, {
9275
9275
  value: n,
9276
9276
  enumerable: !0,
@@ -9278,10 +9278,10 @@ function Ii(t, e, n) {
9278
9278
  writable: !0
9279
9279
  }) : t[e] = n, t;
9280
9280
  }
9281
- let _h = Pn, Ih = fi;
9281
+ let _h = Pn, Ih = di;
9282
9282
  class Is extends Ne {
9283
9283
  constructor(e) {
9284
- super("Object", e), Ii(this, "kind", "Object"), Ii(this, "$inferType", void 0), Ii(this, _h, void 0), Ii(this, Ih, void 0);
9284
+ super("Object", e), Oi(this, "kind", "Object"), Oi(this, "$inferType", void 0), Oi(this, _h, void 0), Oi(this, Ih, void 0);
9285
9285
  }
9286
9286
  }
9287
9287
  class Oh extends Is {
@@ -9289,7 +9289,7 @@ class Oh extends Is {
9289
9289
  return this.builder.objectType(this, e);
9290
9290
  }
9291
9291
  constructor(e, n) {
9292
- super(n), Ii(this, "builder", void 0), this.builder = e;
9292
+ super(n), Oi(this, "builder", void 0), this.builder = e;
9293
9293
  }
9294
9294
  }
9295
9295
  function ar(t, e, n) {
@@ -9300,7 +9300,7 @@ function ar(t, e, n) {
9300
9300
  writable: !0
9301
9301
  }) : t[e] = n, t;
9302
9302
  }
9303
- let Nh = Pn, Ah = fi;
9303
+ let Nh = Pn, Ah = di;
9304
9304
  class xh extends Ne {
9305
9305
  constructor(e) {
9306
9306
  super("Union", e), ar(this, "kind", "Union"), ar(this, "$inferType", void 0), ar(this, Nh, void 0), ar(this, Ah, void 0);
@@ -10022,7 +10022,7 @@ const Hh = Bh(function(e, n, i, r, s) {
10022
10022
  function qr(t) {
10023
10023
  return (t == null ? void 0 : t[Symbol.asyncIterator]) != null;
10024
10024
  }
10025
- function di(t, e, n) {
10025
+ function hi(t, e, n) {
10026
10026
  return { prev: t, key: e, typename: n };
10027
10027
  }
10028
10028
  function Ve(t) {
@@ -10112,7 +10112,7 @@ const En = {
10112
10112
  magenta: "\x1B[35m",
10113
10113
  cyan: "\x1B[36m",
10114
10114
  reset: "\x1B[0m"
10115
- }, aa = En.yellow + "WARN" + En.reset, ua = En.cyan + "INFO" + En.reset, la = En.red + "ERR" + En.reset, ca = En.magenta + "DEBUG" + En.reset, bi = {
10115
+ }, aa = En.yellow + "WARN" + En.reset, ua = En.cyan + "INFO" + En.reset, la = En.red + "ERR" + En.reset, ca = En.magenta + "DEBUG" + En.reset, wi = {
10116
10116
  debug: 0,
10117
10117
  info: 1,
10118
10118
  warn: 2,
@@ -10120,12 +10120,12 @@ const En = {
10120
10120
  silent: 4
10121
10121
  }, ur = () => {
10122
10122
  }, zr = (t) => (...e) => console.log(t, ...e), Zh = console.debug ? (...t) => console.debug(ca, ...t) : zr(ca), ep = console.info ? (...t) => console.info(ua, ...t) : zr(ua), tp = console.warn ? (...t) => console.warn(aa, ...t) : zr(aa), np = console.error ? (...t) => console.error(la, ...t) : zr(la), us = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
10123
- const n = bi[t];
10123
+ const n = wi[t];
10124
10124
  return {
10125
- debug: n > bi.debug ? ur : Zh,
10126
- info: n > bi.info ? ur : ep,
10127
- warn: n > bi.warn ? ur : tp,
10128
- error: n > bi.error ? ur : np
10125
+ debug: n > wi.debug ? ur : Zh,
10126
+ info: n > wi.info ? ur : ep,
10127
+ warn: n > wi.warn ? ur : tp,
10128
+ error: n > wi.error ? ur : np
10129
10129
  };
10130
10130
  }, ip = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
10131
10131
  function rp({ headers: t, method: e }) {
@@ -10503,7 +10503,7 @@ function yp(t) {
10503
10503
  function bp(t, e, n, i, r) {
10504
10504
  return Uh(r, (s, [o, a]) => {
10505
10505
  var c;
10506
- const u = di(i, o, e.name);
10506
+ const u = hi(i, o, e.name);
10507
10507
  if ((c = t.signal) != null && c.aborted)
10508
10508
  throw t.signal.reason;
10509
10509
  return new pt(() => nl(t, e, n, a, u)).then((f) => (f === void 0 || (s[o] = f), s));
@@ -10517,7 +10517,7 @@ function ro(t, e, n, i, r, s) {
10517
10517
  for (const [c, f] of r) {
10518
10518
  if ((u = t.signal) != null && u.aborted)
10519
10519
  throw t.signal.reason;
10520
- const g = di(i, c, e.name), p = nl(t, e, n, f, g, s);
10520
+ const g = hi(i, c, e.name), p = nl(t, e, n, f, g, s);
10521
10521
  p !== void 0 && (o[c] = p, Ae(p) && (a = !0));
10522
10522
  }
10523
10523
  } catch (c) {
@@ -10625,7 +10625,7 @@ async function Ep(t, e, n, i, r, s, o) {
10625
10625
  Rp(g, s, t, n, i, e, r, u.label, o);
10626
10626
  break;
10627
10627
  }
10628
- const v = di(r, g, void 0);
10628
+ const v = hi(r, g, void 0);
10629
10629
  let w;
10630
10630
  try {
10631
10631
  if (w = await s.next(), w.done)
@@ -10652,7 +10652,7 @@ function vp(t, e, n, i, r, s, o) {
10652
10652
  const p = [];
10653
10653
  let v = 0;
10654
10654
  for (const w of s) {
10655
- const R = di(r, v, void 0);
10655
+ const R = hi(r, v, void 0);
10656
10656
  if (c && typeof c.initialCount == "number" && v >= c.initialCount) {
10657
10657
  g = xp(r, R, w, t, n, i, a, c.label, g), v++;
10658
10658
  continue;
@@ -10841,7 +10841,7 @@ function Ap(t) {
10841
10841
  throw X(`The subscription field "${f}" is not defined.`, {
10842
10842
  nodes: c
10843
10843
  });
10844
- const p = di(void 0, u, o.name), v = il(t, g, c, o, p);
10844
+ const p = hi(void 0, u, o.name), v = il(t, g, c, o, p);
10845
10845
  try {
10846
10846
  const w = Hu(g, c[0], r), R = t.contextValue, y = (g.subscribe ?? t.subscribeFieldResolver)(s, w, R, v);
10847
10847
  return Ae(y) ? y.then(Ea).then(void 0, (S) => {
@@ -10931,7 +10931,7 @@ async function Fp(t, e, n, i, r, s, o) {
10931
10931
  async function Rp(t, e, n, i, r, s, o, a, u) {
10932
10932
  let c = t, f = u ?? void 0;
10933
10933
  for (; ; ) {
10934
- const g = di(o, c, void 0), p = new ul({
10934
+ const g = hi(o, c, void 0), p = new ul({
10935
10935
  label: a,
10936
10936
  path: g,
10937
10937
  parentContext: f,
@@ -11878,7 +11878,7 @@ function vg(t) {
11878
11878
  const e = new oo(t);
11879
11879
  return gl(e);
11880
11880
  }
11881
- function ki(t, e) {
11881
+ function Di(t, e) {
11882
11882
  let n = t.headers.get("content-type");
11883
11883
  return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
11884
11884
  }
@@ -11890,14 +11890,14 @@ function Sg(t) {
11890
11890
  return gl(n);
11891
11891
  }
11892
11892
  function _g(t) {
11893
- return t.method === "POST" && ki(t, "application/x-www-form-urlencoded");
11893
+ return t.method === "POST" && Di(t, "application/x-www-form-urlencoded");
11894
11894
  }
11895
11895
  async function Ig(t) {
11896
11896
  const e = await t.text();
11897
11897
  return vg(e);
11898
11898
  }
11899
11899
  function Og(t) {
11900
- return t.method === "POST" && ki(t, "application/graphql");
11900
+ return t.method === "POST" && Di(t, "application/graphql");
11901
11901
  }
11902
11902
  async function Ng(t) {
11903
11903
  return {
@@ -11905,7 +11905,7 @@ async function Ng(t) {
11905
11905
  };
11906
11906
  }
11907
11907
  function Ag(t) {
11908
- return t.method === "POST" && (ki(t, "application/json") || ki(t, "application/graphql+json"));
11908
+ return t.method === "POST" && (Di(t, "application/json") || Di(t, "application/graphql+json"));
11909
11909
  }
11910
11910
  async function xg(t) {
11911
11911
  let e;
@@ -11950,7 +11950,7 @@ function Fg(t, e, n) {
11950
11950
  s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
11951
11951
  }
11952
11952
  function Rg(t) {
11953
- return t.method === "POST" && ki(t, "multipart/form-data");
11953
+ return t.method === "POST" && Di(t, "multipart/form-data");
11954
11954
  }
11955
11955
  async function Lg(t) {
11956
11956
  let e;
@@ -12020,7 +12020,7 @@ function kg(t, e) {
12020
12020
  }
12021
12021
  function Dg(t, e) {
12022
12022
  if (!jg(t))
12023
- throw X(`Expected params to be an object but given ${Oi(t)}.`, {
12023
+ throw X(`Expected params to be an object but given ${Ni(t)}.`, {
12024
12024
  extensions: {
12025
12025
  http: {
12026
12026
  status: 400,
@@ -12042,7 +12042,7 @@ function Dg(t, e) {
12042
12042
  }
12043
12043
  }
12044
12044
  });
12045
- const n = Oi(t.query);
12045
+ const n = Ni(t.query);
12046
12046
  if (n !== "string")
12047
12047
  throw X(`Expected "query" param to be a string, but given ${n}.`, {
12048
12048
  extensions: {
@@ -12054,7 +12054,7 @@ function Dg(t, e) {
12054
12054
  }
12055
12055
  }
12056
12056
  });
12057
- const i = Oi(t.variables);
12057
+ const i = Ni(t.variables);
12058
12058
  if (!["object", "null", "undefined"].includes(i))
12059
12059
  throw X(`Expected "variables" param to be empty or an object, but given ${i}.`, {
12060
12060
  extensions: {
@@ -12066,7 +12066,7 @@ function Dg(t, e) {
12066
12066
  }
12067
12067
  }
12068
12068
  });
12069
- const r = Oi(t.extensions);
12069
+ const r = Ni(t.extensions);
12070
12070
  if (!["object", "null", "undefined"].includes(r))
12071
12071
  throw X(`Expected "extensions" param to be empty or an object, but given ${r}.`, {
12072
12072
  extensions: {
@@ -12087,11 +12087,11 @@ function $g(t) {
12087
12087
  }
12088
12088
  };
12089
12089
  }
12090
- function Oi(t) {
12090
+ function Ni(t) {
12091
12091
  return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
12092
12092
  }
12093
12093
  function jg(t) {
12094
- return Oi(t) === "object";
12094
+ return Ni(t) === "object";
12095
12095
  }
12096
12096
  function Pg(t) {
12097
12097
  return t === "GET" || t === "POST";
@@ -12283,7 +12283,7 @@ let Qg = (Ht = class {
12283
12283
  }
12284
12284
  }, Kn = new WeakMap(), // private constructor
12285
12285
  H(Ht, Kn, !1), Ht);
12286
- var Va, Ba, vt, rt, Tt, St, Xn, Zn, Ie, _t, Te, de, ee, Qe, st, Ge, Re, It, Le, Ot, Nt, ot, At, gn, We, V, Fs, Fn, en, $i, at, wl, Rn, ei, ji, on, an, Rs, br, wr, ce, Ls, Ni, un, Cs, ti;
12286
+ var Va, Ba, vt, rt, Tt, St, Xn, Zn, Ie, _t, Te, de, ee, Qe, st, Ge, Re, It, Le, Ot, Nt, ot, At, gn, We, V, Fs, Fn, en, $i, at, wl, Rn, ei, ji, on, an, Rs, br, wr, ce, Ls, Ai, un, Cs, ti;
12287
12287
  let Wg = (ti = class {
12288
12288
  constructor(e) {
12289
12289
  H(this, V);
@@ -12469,7 +12469,7 @@ let Wg = (ti = class {
12469
12469
  },
12470
12470
  moveToTail: (n) => {
12471
12471
  var i;
12472
- return k(i = e, V, Ni).call(i, n);
12472
+ return k(i = e, V, Ai).call(i, n);
12473
12473
  },
12474
12474
  indexes: (n) => {
12475
12475
  var i;
@@ -12771,7 +12771,7 @@ let Wg = (ti = class {
12771
12771
  if (g === void 0)
12772
12772
  g = l(this, Ie) === 0 ? l(this, Re) : l(this, It).length !== 0 ? l(this, It).pop() : l(this, Ie) === l(this, vt) ? k(this, V, br).call(this, !1) : l(this, Ie), l(this, de)[g] = e, l(this, ee)[g] = n, l(this, Te).set(e, g), l(this, Qe)[l(this, Re)] = g, l(this, st)[g] = l(this, Re), $(this, Re, g), Sn(this, Ie)._++, l(this, ei).call(this, g, f, u), u && (u.set = "add"), c = !1;
12773
12773
  else {
12774
- k(this, V, Ni).call(this, g);
12774
+ k(this, V, Ai).call(this, g);
12775
12775
  const y = l(this, ee)[g];
12776
12776
  if (n !== y) {
12777
12777
  if (l(this, gn) && k(this, V, ce).call(this, y)) {
@@ -12918,7 +12918,7 @@ let Wg = (ti = class {
12918
12918
  }
12919
12919
  const T = l(this, at).call(this, O);
12920
12920
  if (!x && !T)
12921
- return y && (y.fetch = "hit"), k(this, V, Ni).call(this, O), r && l(this, Fn).call(this, O), y && l(this, en).call(this, y, O), C;
12921
+ return y && (y.fetch = "hit"), k(this, V, Ai).call(this, O), r && l(this, Fn).call(this, O), y && l(this, en).call(this, y, O), C;
12922
12922
  const _ = k(this, V, wr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
12923
12923
  return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
12924
12924
  }
@@ -12952,7 +12952,7 @@ let Wg = (ti = class {
12952
12952
  const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Te).get(e);
12953
12953
  if (a !== void 0) {
12954
12954
  const u = l(this, ee)[a], c = k(this, V, ce).call(this, u);
12955
- return o && l(this, en).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, un).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V, Ni).call(this, a), r && l(this, Fn).call(this, a), u));
12955
+ return o && l(this, en).call(this, o, a), l(this, at).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, V, un).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, V, Ai).call(this, a), r && l(this, Fn).call(this, a), u));
12956
12956
  } else o && (o.get = "miss");
12957
12957
  }
12958
12958
  /**
@@ -13096,7 +13096,7 @@ let Wg = (ti = class {
13096
13096
  return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Lr;
13097
13097
  }, Ls = function(e, n) {
13098
13098
  l(this, st)[n] = e, l(this, Qe)[e] = n;
13099
- }, Ni = function(e) {
13099
+ }, Ai = function(e) {
13100
13100
  e !== l(this, Re) && (e === l(this, Ge) ? $(this, Ge, l(this, Qe)[e]) : k(this, V, Ls).call(this, l(this, st)[e], l(this, Qe)[e]), k(this, V, Ls).call(this, l(this, Re), e), $(this, Re, e));
13101
13101
  }, un = function(e, n) {
13102
13102
  var r, s, o, a;
@@ -13191,7 +13191,7 @@ function Jg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n
13191
13191
  };
13192
13192
  }
13193
13193
  const Kg = () => !0;
13194
- function wi(t) {
13194
+ function Ei(t) {
13195
13195
  const e = t.match || Kg;
13196
13196
  return {
13197
13197
  onRequestParse({ request: n, setRequestParser: i }) {
@@ -13649,23 +13649,23 @@ class fm {
13649
13649
  logger: this.logger
13650
13650
  }),
13651
13651
  // Middlewares before the GraphQL execution
13652
- wi({
13652
+ Ei({
13653
13653
  match: Tg,
13654
13654
  parse: Sg
13655
13655
  }),
13656
- wi({
13656
+ Ei({
13657
13657
  match: Ag,
13658
13658
  parse: xg
13659
13659
  }),
13660
- (e == null ? void 0 : e.multipart) !== !1 && wi({
13660
+ (e == null ? void 0 : e.multipart) !== !1 && Ei({
13661
13661
  match: Rg,
13662
13662
  parse: Lg
13663
13663
  }),
13664
- wi({
13664
+ Ei({
13665
13665
  match: Og,
13666
13666
  parse: Ng
13667
13667
  }),
13668
- wi({
13668
+ Ei({
13669
13669
  match: _g,
13670
13670
  parse: Ig
13671
13671
  }),
@@ -13854,7 +13854,7 @@ const Nn = class Nn {
13854
13854
  ni = new WeakMap(), // private constructor
13855
13855
  H(Nn, ni, !1);
13856
13856
  let Ds = Nn;
13857
- var qa, za, xt, ut, Ft, Rt, ii, ri, Oe, Lt, Se, he, te, He, lt, qe, Ce, Ct, ke, kt, Dt, ct, $t, mn, Ye, B, js, Ln, tn, Pi, ft, _l, Cn, si, Mi, cn, fn, Ps, vr, Tr, fe, Ms, Ai, dn, Us;
13857
+ var qa, za, xt, ut, Ft, Rt, ii, ri, Oe, Lt, Se, he, te, He, lt, qe, Ce, Ct, ke, kt, Dt, ct, $t, mn, Ye, B, js, Ln, tn, Pi, ft, _l, Cn, si, Mi, cn, fn, Ps, vr, Tr, fe, Ms, xi, dn, Us;
13858
13858
  const yo = class yo {
13859
13859
  constructor(e) {
13860
13860
  H(this, B);
@@ -14040,7 +14040,7 @@ const yo = class yo {
14040
14040
  },
14041
14041
  moveToTail: (n) => {
14042
14042
  var i;
14043
- return k(i = e, B, Ai).call(i, n);
14043
+ return k(i = e, B, xi).call(i, n);
14044
14044
  },
14045
14045
  indexes: (n) => {
14046
14046
  var i;
@@ -14342,7 +14342,7 @@ const yo = class yo {
14342
14342
  if (g === void 0)
14343
14343
  g = l(this, Oe) === 0 ? l(this, Ce) : l(this, Ct).length !== 0 ? l(this, Ct).pop() : l(this, Oe) === l(this, xt) ? k(this, B, vr).call(this, !1) : l(this, Oe), l(this, he)[g] = e, l(this, te)[g] = n, l(this, Se).set(e, g), l(this, He)[l(this, Ce)] = g, l(this, lt)[g] = l(this, Ce), $(this, Ce, g), Sn(this, Oe)._++, l(this, si).call(this, g, f, u), u && (u.set = "add"), c = !1;
14344
14344
  else {
14345
- k(this, B, Ai).call(this, g);
14345
+ k(this, B, xi).call(this, g);
14346
14346
  const y = l(this, te)[g];
14347
14347
  if (n !== y) {
14348
14348
  if (l(this, mn) && k(this, B, fe).call(this, y)) {
@@ -14489,7 +14489,7 @@ const yo = class yo {
14489
14489
  }
14490
14490
  const T = l(this, ft).call(this, O);
14491
14491
  if (!x && !T)
14492
- return y && (y.fetch = "hit"), k(this, B, Ai).call(this, O), r && l(this, Ln).call(this, O), y && l(this, tn).call(this, y, O), C;
14492
+ return y && (y.fetch = "hit"), k(this, B, xi).call(this, O), r && l(this, Ln).call(this, O), y && l(this, tn).call(this, y, O), C;
14493
14493
  const _ = k(this, B, Tr).call(this, e, O, A, R), b = _.__staleWhileFetching !== void 0 && i;
14494
14494
  return y && (y.fetch = T ? "stale" : "refresh", b && T && (y.returnedStale = !0)), b ? _.__staleWhileFetching : _.__returned = _;
14495
14495
  }
@@ -14523,7 +14523,7 @@ const yo = class yo {
14523
14523
  const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = l(this, Se).get(e);
14524
14524
  if (a !== void 0) {
14525
14525
  const u = l(this, te)[a], c = k(this, B, fe).call(this, u);
14526
- return o && l(this, tn).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, dn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B, Ai).call(this, a), r && l(this, Ln).call(this, a), u));
14526
+ return o && l(this, tn).call(this, o, a), l(this, ft).call(this, a) ? (o && (o.get = "stale"), c ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, dn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), c ? u.__staleWhileFetching : (k(this, B, xi).call(this, a), r && l(this, Ln).call(this, a), u));
14527
14527
  } else o && (o.get = "miss");
14528
14528
  }
14529
14529
  /**
@@ -14668,7 +14668,7 @@ xt = new WeakMap(), ut = new WeakMap(), Ft = new WeakMap(), Rt = new WeakMap(),
14668
14668
  return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Cr;
14669
14669
  }, Ms = function(e, n) {
14670
14670
  l(this, lt)[n] = e, l(this, He)[e] = n;
14671
- }, Ai = function(e) {
14671
+ }, xi = function(e) {
14672
14672
  e !== l(this, Ce) && (e === l(this, qe) ? $(this, qe, l(this, He)[e]) : k(this, B, Ms).call(this, l(this, lt)[e], l(this, He)[e]), k(this, B, Ms).call(this, l(this, Ce), e), $(this, Ce, e));
14673
14673
  }, dn = function(e, n) {
14674
14674
  var r, s, o, a;
@@ -15910,7 +15910,9 @@ function hn(t, e) {
15910
15910
  const Qm = (t) => {
15911
15911
  var e;
15912
15912
  return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = hn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = hn(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = hn(t, (n) => (n.example !== void 0 && (n.examples = {
15913
- default: n.example
15913
+ default: {
15914
+ value: n.example
15915
+ }
15914
15916
  }, delete n.example), n)), t = hn(t, (n) => {
15915
15917
  if (n.type === "object" && n.properties !== void 0)
15916
15918
  for (const [, i] of Object.entries(n.properties)) {
@@ -15979,7 +15981,7 @@ const Qm = (t) => {
15979
15981
  ttl: 60 * 10 * 1e3,
15980
15982
  ttlAutopurge: !0,
15981
15983
  fetchMethod: (t, e, { context: n }) => Ym(n)
15982
- }), Me = new Fh({}), Di = Me.addScalarType("JSON", Rh), Xm = Me.addScalarType("JSONObject", Lh), xl = (t) => {
15984
+ }), Me = new Fh({}), ci = Me.addScalarType("JSON", Rh), Xm = Me.addScalarType("JSONObject", Lh), xl = (t) => {
15983
15985
  const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
15984
15986
  (r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
15985
15987
  ), i = [...new Set(n)].filter(
@@ -16059,7 +16061,7 @@ const Qm = (t) => {
16059
16061
  name: t.exposeString("name"),
16060
16062
  summary: t.exposeString("summary", { nullable: !0 }),
16061
16063
  description: t.exposeString("description", { nullable: !0 }),
16062
- value: t.exposeString("value", { nullable: !0 }),
16064
+ value: t.expose("value", { type: ci, nullable: !0 }),
16063
16065
  externalValue: t.exposeString("externalValue", { nullable: !0 })
16064
16066
  })
16065
16067
  }), ry = Me.enumType("ParameterIn", {
@@ -16086,12 +16088,12 @@ const Qm = (t) => {
16086
16088
  })),
16087
16089
  nullable: !0
16088
16090
  }),
16089
- schema: t.expose("schema", { type: Di, nullable: !0 })
16091
+ schema: t.expose("schema", { type: ci, nullable: !0 })
16090
16092
  })
16091
16093
  }), Ll = Me.objectRef("MediaTypeObject").implement({
16092
16094
  fields: (t) => ({
16093
16095
  mediaType: t.exposeString("mediaType"),
16094
- schema: t.expose("schema", { type: Di, nullable: !0 }),
16096
+ schema: t.expose("schema", { type: ci, nullable: !0 }),
16095
16097
  examples: t.expose("examples", { type: [Rl], nullable: !0 }),
16096
16098
  encoding: t.expose("encoding", { type: [iy], nullable: !0 })
16097
16099
  })
@@ -16106,8 +16108,8 @@ const Qm = (t) => {
16106
16108
  statusCode: t.exposeString("statusCode"),
16107
16109
  description: t.exposeString("description", { nullable: !0 }),
16108
16110
  content: t.expose("content", { type: [Ll], nullable: !0 }),
16109
- headers: t.expose("headers", { type: Di, nullable: !0 }),
16110
- links: t.expose("links", { type: Di, nullable: !0 })
16111
+ headers: t.expose("headers", { type: ci, nullable: !0 }),
16112
+ links: t.expose("links", { type: ci, nullable: !0 })
16111
16113
  })
16112
16114
  }), Cl = Me.objectRef("OperationItem").implement({
16113
16115
  fields: (t) => ({
@@ -16157,11 +16159,11 @@ const Qm = (t) => {
16157
16159
  statusCode: n,
16158
16160
  description: i.description,
16159
16161
  content: Object.entries(i.content ?? {}).map(
16160
- ([r, s]) => ({
16162
+ ([r, { schema: s, examples: o }]) => ({
16161
16163
  mediaType: r,
16162
- schema: s.schema,
16163
- examples: Object.entries(s.examples ?? {}).map(
16164
- ([o, a]) => ({ name: o, ...a })
16164
+ schema: s,
16165
+ examples: Object.entries(o ?? {}).map(
16166
+ ([a, u]) => ({ name: a, ...u })
16165
16167
  )
16166
16168
  })
16167
16169
  ),
@@ -16246,7 +16248,7 @@ Me.queryType({
16246
16248
  type: uy,
16247
16249
  args: {
16248
16250
  type: t.arg({ type: cy, required: !0 }),
16249
- input: t.arg({ type: Di, required: !0 })
16251
+ input: t.arg({ type: ci, required: !0 })
16250
16252
  },
16251
16253
  resolve: async (e, n, i) => {
16252
16254
  const r = await ly(n.input);
@@ -16295,7 +16297,7 @@ const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16295
16297
  return gy();
16296
16298
  const e = new SharedWorker(new URL(
16297
16299
  /* @vite-ignore */
16298
- "./assets/worker-Bf8vjASY.js",
16300
+ "./assets/worker-YA-aCP3P.js",
16299
16301
  import.meta.url
16300
16302
  ), {
16301
16303
  type: "module"