zudoku 0.14.0 → 0.14.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 (43) hide show
  1. package/dist/lib/components/Header.js +3 -2
  2. package/dist/lib/components/Header.js.map +1 -1
  3. package/dist/lib/components/SlotletProvider.d.ts +2 -1
  4. package/dist/lib/components/SlotletProvider.js.map +1 -1
  5. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  6. package/dist/lib/ui/Command.d.ts +80 -0
  7. package/dist/lib/ui/Command.js +31 -0
  8. package/dist/lib/ui/Command.js.map +1 -0
  9. package/dist/lib/util/useExposedProps.js +3 -2
  10. package/dist/lib/util/useExposedProps.js.map +1 -1
  11. package/lib/Dialog-k70Qfukb.js +67 -0
  12. package/lib/Dialog-k70Qfukb.js.map +1 -0
  13. package/lib/{OperationList-DnaAtLxP.js → OperationList-Tj7ubW_t.js} +2 -2
  14. package/lib/{OperationList-DnaAtLxP.js.map → OperationList-Tj7ubW_t.js.map} +1 -1
  15. package/lib/{Route-DSbLrlig.js → Route-C3DGB6OS.js} +2 -2
  16. package/lib/{Route-DSbLrlig.js.map → Route-C3DGB6OS.js.map} +1 -1
  17. package/lib/{SlotletProvider-4Naek_5M.js → SlotletProvider-Da7eFgd2.js} +2 -2
  18. package/lib/{SlotletProvider-4Naek_5M.js.map → SlotletProvider-Da7eFgd2.js.map} +1 -1
  19. package/lib/{index-B3F9d8oi.js → index-AjWCJNGC.js} +1210 -1265
  20. package/lib/index-AjWCJNGC.js.map +1 -0
  21. package/lib/ui/Command.js +550 -0
  22. package/lib/ui/Command.js.map +1 -0
  23. package/lib/{urql-core-CqTI9H6N.js → urql-core-KJnLL26g.js} +261 -289
  24. package/lib/urql-core-KJnLL26g.js.map +1 -0
  25. package/lib/useExposedProps-ChOIUaS4.js +9 -0
  26. package/lib/useExposedProps-ChOIUaS4.js.map +1 -0
  27. package/lib/zudoku.components.js +44 -38
  28. package/lib/zudoku.components.js.map +1 -1
  29. package/lib/zudoku.openapi-worker.js +1 -1
  30. package/lib/zudoku.plugin-api-keys.js +1 -1
  31. package/lib/zudoku.plugin-custom-pages.js +13 -13
  32. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  33. package/lib/zudoku.plugin-openapi.js +2 -2
  34. package/package.json +2 -1
  35. package/src/lib/components/Header.tsx +9 -2
  36. package/src/lib/components/SlotletProvider.tsx +2 -0
  37. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  38. package/src/lib/ui/Command.tsx +151 -0
  39. package/src/lib/util/useExposedProps.tsx +8 -2
  40. package/lib/index-B3F9d8oi.js.map +0 -1
  41. package/lib/urql-core-CqTI9H6N.js.map +0 -1
  42. package/lib/useExposedProps-B9K-9GTc.js +0 -9
  43. package/lib/useExposedProps-B9K-9GTc.js.map +0 -1
@@ -25,14 +25,14 @@ var M = {
25
25
  NON_NULL_TYPE: "NonNullType"
26
26
  };
27
27
  class fe extends Error {
28
- constructor(r, t, n, i, a, o, s) {
28
+ constructor(r, t, n, i, a, o, l) {
29
29
  super(r), this.name = "GraphQLError", this.message = r, a && (this.path = a), t && (this.nodes = Array.isArray(t) ? t : [t]), n && (this.source = n), i && (this.positions = i), o && (this.originalError = o);
30
- var c = s;
31
- if (!c && o) {
30
+ var f = l;
31
+ if (!f && o) {
32
32
  var u = o.extensions;
33
- u && typeof u == "object" && (c = u);
33
+ u && typeof u == "object" && (f = u);
34
34
  }
35
- this.extensions = c || {};
35
+ this.extensions = f || {};
36
36
  }
37
37
  toJSON() {
38
38
  return {
@@ -60,12 +60,12 @@ function Qe(e) {
60
60
  for (var r = e.split(`
61
61
  `), t = "", n = 0, i = 0, a = r.length - 1, o = 0; o < r.length; o++)
62
62
  Y.lastIndex = 0, Y.test(r[o]) && (o && (!n || Y.lastIndex < n) && (n = Y.lastIndex), i = i || o, a = o);
63
- for (var s = i; s <= a; s++)
64
- s !== i && (t += `
65
- `), t += r[s].slice(n).replace(/\\"""/g, '"""');
63
+ for (var l = i; l <= a; l++)
64
+ l !== i && (t += `
65
+ `), t += r[l].slice(n).replace(/\\"""/g, '"""');
66
66
  return t;
67
67
  }
68
- function p() {
68
+ function h() {
69
69
  for (var e = 0 | g.charCodeAt(d++); e === 9 || e === 10 || e === 13 || e === 32 || e === 35 || e === 44 || e === 65279; e = 0 | g.charCodeAt(d++))
70
70
  if (e === 35)
71
71
  for (; (e = g.charCodeAt(d++)) !== 10 && e !== 13; )
@@ -78,19 +78,19 @@ var O = /[_A-Za-z]\w*/y, se = new RegExp("(?:(null|true|false)|\\$(" + O.source
78
78
  function K(e) {
79
79
  var r, t;
80
80
  if (se.lastIndex = d, g.charCodeAt(d) === 91) {
81
- d++, p();
81
+ d++, h();
82
82
  for (var n = []; g.charCodeAt(d) !== 93; )
83
83
  n.push(K(e));
84
- return d++, p(), {
84
+ return d++, h(), {
85
85
  kind: "ListValue",
86
86
  values: n
87
87
  };
88
88
  } else if (g.charCodeAt(d) === 123) {
89
- d++, p();
89
+ d++, h();
90
90
  for (var i = []; g.charCodeAt(d) !== 125; ) {
91
- if ((r = _(O)) == null || (p(), g.charCodeAt(d++) !== 58))
91
+ if ((r = _(O)) == null || (h(), g.charCodeAt(d++) !== 58))
92
92
  throw N("ObjectField");
93
- p(), i.push({
93
+ h(), i.push({
94
94
  kind: "ObjectField",
95
95
  name: {
96
96
  kind: "Name",
@@ -99,12 +99,12 @@ function K(e) {
99
99
  value: K(e)
100
100
  });
101
101
  }
102
- return d++, p(), {
102
+ return d++, h(), {
103
103
  kind: "ObjectValue",
104
104
  fields: i
105
105
  };
106
106
  } else if ((t = se.exec(g)) != null) {
107
- if (d = se.lastIndex, p(), (r = t[L.Const]) != null)
107
+ if (d = se.lastIndex, h(), (r = t[L.Const]) != null)
108
108
  return r === "null" ? {
109
109
  kind: "NullValue"
110
110
  } : {
@@ -155,12 +155,12 @@ function K(e) {
155
155
  function Le(e) {
156
156
  if (g.charCodeAt(d) === 40) {
157
157
  var r = [];
158
- d++, p();
158
+ d++, h();
159
159
  var t;
160
160
  do {
161
- if ((t = _(O)) == null || (p(), g.charCodeAt(d++) !== 58))
161
+ if ((t = _(O)) == null || (h(), g.charCodeAt(d++) !== 58))
162
162
  throw N("Argument");
163
- p(), r.push({
163
+ h(), r.push({
164
164
  kind: "Argument",
165
165
  name: {
166
166
  kind: "Name",
@@ -169,7 +169,7 @@ function Le(e) {
169
169
  value: K(e)
170
170
  });
171
171
  } while (g.charCodeAt(d) !== 41);
172
- return d++, p(), r;
172
+ return d++, h(), r;
173
173
  }
174
174
  }
175
175
  function $(e) {
@@ -178,7 +178,7 @@ function $(e) {
178
178
  do {
179
179
  if (d++, (t = _(O)) == null)
180
180
  throw N("Directive");
181
- p(), r.push({
181
+ h(), r.push({
182
182
  kind: "Directive",
183
183
  name: {
184
184
  kind: "Name",
@@ -192,10 +192,10 @@ function $(e) {
192
192
  }
193
193
  function ze() {
194
194
  for (var e, r = 0; g.charCodeAt(d) === 91; )
195
- r++, d++, p();
195
+ r++, d++, h();
196
196
  if ((e = _(O)) == null)
197
197
  throw N("NamedType");
198
- p();
198
+ h();
199
199
  var t = {
200
200
  kind: "NamedType",
201
201
  name: {
@@ -204,13 +204,13 @@ function ze() {
204
204
  }
205
205
  };
206
206
  do
207
- if (g.charCodeAt(d) === 33 && (d++, p(), t = {
207
+ if (g.charCodeAt(d) === 33 && (d++, h(), t = {
208
208
  kind: "NonNullType",
209
209
  type: t
210
210
  }), r) {
211
211
  if (g.charCodeAt(d++) !== 93)
212
212
  throw N("NamedType");
213
- p(), t = {
213
+ h(), t = {
214
214
  kind: "ListType",
215
215
  type: t
216
216
  };
@@ -226,10 +226,10 @@ function X() {
226
226
  do
227
227
  if (le.lastIndex = d, (t = le.exec(g)) != null) {
228
228
  if (d = le.lastIndex, t[ve.Spread] != null) {
229
- p();
229
+ h();
230
230
  var n = _(O);
231
231
  if (n != null && n !== "on")
232
- p(), e.push({
232
+ h(), e.push({
233
233
  kind: "FragmentSpread",
234
234
  name: {
235
235
  kind: "Name",
@@ -238,15 +238,15 @@ function X() {
238
238
  directives: $(!1)
239
239
  });
240
240
  else {
241
- if (p(), n === "on") {
241
+ if (h(), n === "on") {
242
242
  if ((n = _(O)) == null)
243
243
  throw N("NamedType");
244
- p();
244
+ h();
245
245
  }
246
246
  var i = $(!1);
247
247
  if (g.charCodeAt(d++) !== 123)
248
248
  throw N("InlineFragment");
249
- p(), e.push({
249
+ h(), e.push({
250
250
  kind: "InlineFragment",
251
251
  typeCondition: n ? {
252
252
  kind: "NamedType",
@@ -261,15 +261,15 @@ function X() {
261
261
  }
262
262
  } else if ((r = t[ve.Name]) != null) {
263
263
  var a = void 0;
264
- if (p(), g.charCodeAt(d) === 58) {
265
- if (d++, p(), a = r, (r = _(O)) == null)
264
+ if (h(), g.charCodeAt(d) === 58) {
265
+ if (d++, h(), a = r, (r = _(O)) == null)
266
266
  throw N("Field");
267
- p();
267
+ h();
268
268
  }
269
269
  var o = Le(!1);
270
- p();
271
- var s = $(!1), c = void 0;
272
- g.charCodeAt(d) === 123 && (d++, p(), c = X()), e.push({
270
+ h();
271
+ var l = $(!1), f = void 0;
272
+ g.charCodeAt(d) === 123 && (d++, h(), f = X()), e.push({
273
273
  kind: "Field",
274
274
  alias: a ? {
275
275
  kind: "Name",
@@ -280,27 +280,27 @@ function X() {
280
280
  value: r
281
281
  },
282
282
  arguments: o,
283
- directives: s,
284
- selectionSet: c
283
+ directives: l,
284
+ selectionSet: f
285
285
  });
286
286
  }
287
287
  } else
288
288
  throw N("SelectionSet");
289
289
  while (g.charCodeAt(d) !== 125);
290
- return d++, p(), {
290
+ return d++, h(), {
291
291
  kind: "SelectionSet",
292
292
  selections: e
293
293
  };
294
294
  }
295
295
  function Ye() {
296
296
  var e, r;
297
- if ((e = _(O)) == null || (p(), _(O) !== "on") || (p(), (r = _(O)) == null))
297
+ if ((e = _(O)) == null || (h(), _(O) !== "on") || (h(), (r = _(O)) == null))
298
298
  throw N("FragmentDefinition");
299
- p();
299
+ h();
300
300
  var t = $(!1);
301
301
  if (g.charCodeAt(d++) !== 123)
302
302
  throw N("FragmentDefinition");
303
- return p(), {
303
+ return h(), {
304
304
  kind: "FragmentDefinition",
305
305
  name: {
306
306
  kind: "Name",
@@ -320,19 +320,19 @@ function Ye() {
320
320
  var We = /(?:query|mutation|subscription|fragment)/y;
321
321
  function He(e) {
322
322
  var r, t, n;
323
- if (e && (p(), r = _(O), t = function() {
324
- if (p(), g.charCodeAt(d) === 40) {
323
+ if (e && (h(), r = _(O), t = function() {
324
+ if (h(), g.charCodeAt(d) === 40) {
325
325
  var a = [];
326
- d++, p();
326
+ d++, h();
327
327
  var o;
328
328
  do {
329
329
  if (g.charCodeAt(d++) !== 36 || (o = _(O)) == null)
330
330
  throw N("Variable");
331
- if (p(), g.charCodeAt(d++) !== 58)
331
+ if (h(), g.charCodeAt(d++) !== 58)
332
332
  throw N("VariableDefinition");
333
- p();
334
- var s = ze(), c = void 0;
335
- g.charCodeAt(d) === 61 && (d++, p(), c = K(!0)), p(), a.push({
333
+ h();
334
+ var l = ze(), f = void 0;
335
+ g.charCodeAt(d) === 61 && (d++, h(), f = K(!0)), h(), a.push({
336
336
  kind: "VariableDefinition",
337
337
  variable: {
338
338
  kind: "Variable",
@@ -341,15 +341,15 @@ function He(e) {
341
341
  value: o
342
342
  }
343
343
  },
344
- type: s,
345
- defaultValue: c,
344
+ type: l,
345
+ defaultValue: f,
346
346
  directives: $(!0)
347
347
  });
348
348
  } while (g.charCodeAt(d) !== 41);
349
- return d++, p(), a;
349
+ return d++, h(), a;
350
350
  }
351
351
  }(), n = $(!1)), g.charCodeAt(d) === 123)
352
- return d++, p(), {
352
+ return d++, h(), {
353
353
  kind: "OperationDefinition",
354
354
  operation: e || "query",
355
355
  name: r ? {
@@ -362,49 +362,23 @@ function He(e) {
362
362
  };
363
363
  }
364
364
  function Ze(e, r) {
365
- return d = 0, function(n, i) {
366
- var a, o;
367
- p();
368
- var s = [];
365
+ return g = typeof e.body == "string" ? e.body : e, d = 0, function() {
366
+ var n, i;
367
+ h();
368
+ var a = [];
369
369
  do
370
- if ((a = _(We)) === "fragment")
371
- p(), s.push(Ye());
372
- else if ((o = He(a)) != null)
373
- s.push(o);
370
+ if ((n = _(We)) === "fragment")
371
+ h(), a.push(Ye());
372
+ else if ((i = He(n)) != null)
373
+ a.push(i);
374
374
  else
375
375
  throw N("Document");
376
- while (d < n.length);
377
- if (!i) {
378
- var c;
379
- return {
380
- kind: "Document",
381
- definitions: s,
382
- set loc(u) {
383
- c = u;
384
- },
385
- get loc() {
386
- return c || (c = {
387
- start: 0,
388
- end: n.length,
389
- startToken: void 0,
390
- endToken: void 0,
391
- source: {
392
- body: n,
393
- name: "graphql.web",
394
- locationOffset: {
395
- line: 1,
396
- column: 1
397
- }
398
- }
399
- }), c;
400
- }
401
- };
402
- }
376
+ while (d < g.length);
403
377
  return {
404
378
  kind: "Document",
405
- definitions: s
379
+ definitions: a
406
380
  };
407
- }(g = typeof e.body == "string" ? e.body : e, r && r.noLocation);
381
+ }();
408
382
  }
409
383
  function S(e, r, t) {
410
384
  for (var n = "", i = 0; i < e.length; i++)
@@ -512,28 +486,28 @@ function W(e) {
512
486
  function ee(e) {
513
487
  return (r) => (t) => {
514
488
  var n = [], i = T, a = !1, o = !1;
515
- r((s) => {
516
- o || (s === 0 ? (o = !0, n.length || t(0)) : s.tag === 0 ? i = s[0] : (a = !1, function(u) {
517
- var h = T;
518
- u((f) => {
519
- if (f === 0) {
489
+ r((l) => {
490
+ o || (l === 0 ? (o = !0, n.length || t(0)) : l.tag === 0 ? i = l[0] : (a = !1, function(u) {
491
+ var p = T;
492
+ u((c) => {
493
+ if (c === 0) {
520
494
  if (n.length) {
521
- var m = n.indexOf(h);
495
+ var m = n.indexOf(p);
522
496
  m > -1 && (n = n.slice()).splice(m, 1), n.length || (o ? t(0) : a || (a = !0, i(0)));
523
497
  }
524
- } else f.tag === 0 ? (n.push(h = f[0]), h(0)) : n.length && (t(f), h(0));
498
+ } else c.tag === 0 ? (n.push(p = c[0]), p(0)) : n.length && (t(c), p(0));
525
499
  });
526
- }(e(s[0])), a || (a = !0, i(0))));
527
- }), t(C((s) => {
528
- if (s === 1) {
500
+ }(e(l[0])), a || (a = !0, i(0))));
501
+ }), t(C((l) => {
502
+ if (l === 1) {
529
503
  o || (o = !0, i(1));
530
- for (var c = 0, u = n, h = n.length; c < h; c++)
531
- u[c](1);
504
+ for (var f = 0, u = n, p = n.length; f < p; f++)
505
+ u[f](1);
532
506
  n.length = 0;
533
507
  } else {
534
508
  !o && !a ? (a = !0, i(0)) : a = !1;
535
- for (var f = 0, m = n, x = n.length; f < x; f++)
536
- m[f](0);
509
+ for (var c = 0, m = n, x = n.length; c < x; c++)
510
+ m[c](0);
537
511
  }
538
512
  }));
539
513
  };
@@ -586,15 +560,15 @@ function Q(e) {
586
560
  return (i) => {
587
561
  r.push(i), r.length === 1 && e((a) => {
588
562
  if (a === 0) {
589
- for (var o = 0, s = r, c = r.length; o < c; o++)
590
- s[o](0);
563
+ for (var o = 0, l = r, f = r.length; o < f; o++)
564
+ l[o](0);
591
565
  r.length = 0;
592
566
  } else if (a.tag === 0)
593
567
  t = a[0];
594
568
  else {
595
569
  n = !1;
596
- for (var u = 0, h = r, f = r.length; u < f; u++)
597
- h[u](a);
570
+ for (var u = 0, p = r, c = r.length; u < c; u++)
571
+ p[u](a);
598
572
  }
599
573
  }), i(C((a) => {
600
574
  if (a === 1) {
@@ -606,15 +580,15 @@ function Q(e) {
606
580
  }
607
581
  function we(e) {
608
582
  return (r) => (t) => {
609
- var n = T, i = T, a = !1, o = !1, s = !1, c = !1;
583
+ var n = T, i = T, a = !1, o = !1, l = !1, f = !1;
610
584
  r((u) => {
611
- c || (u === 0 ? (c = !0, s || t(0)) : u.tag === 0 ? n = u[0] : (s && (i(1), i = T), a ? a = !1 : (a = !0, n(0)), function(f) {
612
- s = !0, f((m) => {
613
- s && (m === 0 ? (s = !1, c ? t(0) : a || (a = !0, n(0))) : m.tag === 0 ? (o = !1, (i = m[0])(0)) : (t(m), o ? o = !1 : i(0)));
585
+ f || (u === 0 ? (f = !0, l || t(0)) : u.tag === 0 ? n = u[0] : (l && (i(1), i = T), a ? a = !1 : (a = !0, n(0)), function(c) {
586
+ l = !0, c((m) => {
587
+ l && (m === 0 ? (l = !1, f ? t(0) : a || (a = !0, n(0))) : m.tag === 0 ? (o = !1, (i = m[0])(0)) : (t(m), o ? o = !1 : i(0)));
614
588
  });
615
589
  }(e(u[0]))));
616
590
  }), t(C((u) => {
617
- u === 1 ? (c || (c = !0, n(1)), s && (s = !1, i(1))) : (!c && !a && (a = !0, n(0)), s && !o && (o = !0, i(0)));
591
+ u === 1 ? (f || (f = !0, n(1)), l && (l = !1, i(1))) : (!f && !a && (a = !0, n(0)), l && !o && (o = !0, i(0)));
618
592
  }));
619
593
  };
620
594
  }
@@ -632,8 +606,8 @@ function Me(e) {
632
606
  return (r) => (t) => {
633
607
  var n = T, i = T, a = !1;
634
608
  r((o) => {
635
- a || (o === 0 ? (a = !0, i(1), t(0)) : o.tag === 0 ? (n = o[0], e((s) => {
636
- s === 0 || (s.tag === 0 ? (i = s[0])(0) : (a = !0, i(1), n(1), t(0)));
609
+ a || (o === 0 ? (a = !0, i(1), t(0)) : o.tag === 0 ? (n = o[0], e((l) => {
610
+ l === 0 || (l.tag === 0 ? (i = l[0])(0) : (a = !0, i(1), n(1), t(0)));
637
611
  })) : t(o));
638
612
  }), t(C((o) => {
639
613
  o === 1 && !a ? (a = !0, n(1), i(1)) : a || n(0);
@@ -654,8 +628,8 @@ function ar(e) {
654
628
  function $e(e) {
655
629
  return (r) => {
656
630
  var t = e[Ne()] && e[Ne()]() || e, n = !1, i = !1, a = !1, o;
657
- r(C(async (s) => {
658
- if (s === 1)
631
+ r(C(async (l) => {
632
+ if (l === 1)
659
633
  n = !0, t.return && t.return();
660
634
  else if (i)
661
635
  a = !0;
@@ -666,11 +640,11 @@ function $e(e) {
666
640
  else
667
641
  try {
668
642
  a = !1, r(z(o.value));
669
- } catch (c) {
643
+ } catch (f) {
670
644
  if (t.throw)
671
- (n = !!(await t.throw(c)).done) && r(0);
645
+ (n = !!(await t.throw(f)).done) && r(0);
672
646
  else
673
- throw c;
647
+ throw f;
674
648
  }
675
649
  i = !1;
676
650
  }
@@ -680,8 +654,8 @@ function $e(e) {
680
654
  function ir(e) {
681
655
  return e[Symbol.asyncIterator] ? $e(e) : (r) => {
682
656
  var t = e[Symbol.iterator](), n = !1, i = !1, a = !1, o;
683
- r(C((s) => {
684
- if (s === 1)
657
+ r(C((l) => {
658
+ if (l === 1)
685
659
  n = !0, t.return && t.return();
686
660
  else if (i)
687
661
  a = !0;
@@ -692,11 +666,11 @@ function ir(e) {
692
666
  else
693
667
  try {
694
668
  a = !1, r(z(o.value));
695
- } catch (c) {
669
+ } catch (f) {
696
670
  if (t.throw)
697
- (n = !!t.throw(c).done) && r(0);
671
+ (n = !!t.throw(f).done) && r(0);
698
672
  else
699
- throw c;
673
+ throw f;
700
674
  }
701
675
  i = !1;
702
676
  }
@@ -778,9 +752,9 @@ class ke extends Error {
778
752
  if (i)
779
753
  return `[Network] ${i.message}`;
780
754
  if (a)
781
- for (var s of a)
755
+ for (var l of a)
782
756
  o && (o += `
783
- `), o += `[GraphQL] ${s.message}`;
757
+ `), o += `[GraphQL] ${l.message}`;
784
758
  return o;
785
759
  })(r.networkError, t);
786
760
  super(n), this.name = "CombinedError", this.message = n, this.graphQLErrors = t, this.networkError = r.networkError, this.response = r.response;
@@ -816,9 +790,9 @@ var H = (e, r) => {
816
790
  }
817
791
  j.add(e);
818
792
  var o = "{";
819
- for (var s of i) {
820
- var c = R(e[s], r);
821
- c && (o.length > 1 && (o += ","), o += R(s, r) + ":" + c);
793
+ for (var l of i) {
794
+ var f = R(e[l], r);
795
+ f && (o.length > 1 && (o += ","), o += R(l, r) + ":" + f);
822
796
  }
823
797
  return j.delete(e), o += "}";
824
798
  }, de = (e, r, t) => {
@@ -862,9 +836,7 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
862
836
  return r;
863
837
  }, Ge = (e) => {
864
838
  var r, t;
865
- return typeof e == "string" ? (r = Ie(e), t = Z.get(r) || Ze(e, {
866
- noLocation: !0
867
- })) : (r = e.__key || Ie(e), t = Z.get(r) || e), t.loc || xe(t), t.__key = r, Z.set(r, t), t;
839
+ return typeof e == "string" ? (r = Ie(e), t = Z.get(r) || Ze(e)) : (r = e.__key || Ie(e), t = Z.get(r) || e), t.loc || xe(t), t.__key = r, Z.set(r, t), t;
868
840
  }, ue = (e, r, t) => {
869
841
  var n = r || {}, i = Ge(e), a = te(n, !0), o = i.__key;
870
842
  return a !== "{}" && (o = H(a, o)), {
@@ -881,7 +853,7 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
881
853
  for (var r of e.definitions)
882
854
  if (r.kind === M.OPERATION_DEFINITION)
883
855
  return r.operation;
884
- }, he = (e, r, t) => {
856
+ }, pe = (e, r, t) => {
885
857
  if (!("data" in r || "errors" in r && Array.isArray(r.errors)))
886
858
  throw new Error("No Content");
887
859
  var n = e.kind === "subscription";
@@ -898,51 +870,51 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
898
870
  hasNext: r.hasNext == null ? n : r.hasNext,
899
871
  stale: !1
900
872
  };
901
- }, pe = (e, r) => {
873
+ }, he = (e, r) => {
902
874
  if (typeof e == "object" && e != null && (!e.constructor || e.constructor === Object || Array.isArray(e))) {
903
875
  e = Array.isArray(e) ? [...e] : {
904
876
  ...e
905
877
  };
906
878
  for (var t of Object.keys(r))
907
- e[t] = pe(e[t], r[t]);
879
+ e[t] = he(e[t], r[t]);
908
880
  return e;
909
881
  }
910
882
  return r;
911
- }, hr = (e, r, t, n) => {
883
+ }, pr = (e, r, t, n) => {
912
884
  var i = e.error ? e.error.graphQLErrors : [], a = !!e.extensions || !!(r.payload || r).extensions, o = {
913
885
  ...e.extensions,
914
886
  ...(r.payload || r).extensions
915
- }, s = r.incremental;
916
- "path" in r && (s = [r]);
917
- var c = {
887
+ }, l = r.incremental;
888
+ "path" in r && (l = [r]);
889
+ var f = {
918
890
  data: e.data
919
891
  };
920
- if (s) {
921
- var u = function(f) {
922
- Array.isArray(f.errors) && i.push(...f.errors), f.extensions && (Object.assign(o, f.extensions), a = !0);
923
- var m = "data", x = c, k = [];
924
- if (f.path)
925
- k = f.path;
892
+ if (l) {
893
+ var u = function(c) {
894
+ Array.isArray(c.errors) && i.push(...c.errors), c.extensions && (Object.assign(o, c.extensions), a = !0);
895
+ var m = "data", x = f, k = [];
896
+ if (c.path)
897
+ k = c.path;
926
898
  else if (n) {
927
- var w = n.find((y) => y.id === f.id);
928
- f.subPath ? k = [...w.path, ...f.subPath] : k = w.path;
899
+ var w = n.find((y) => y.id === c.id);
900
+ c.subPath ? k = [...w.path, ...c.subPath] : k = w.path;
929
901
  }
930
902
  for (var E = 0, D = k.length; E < D; m = k[E++])
931
903
  x = x[m] = Array.isArray(x[m]) ? [...x[m]] : {
932
904
  ...x[m]
933
905
  };
934
- if (f.items)
935
- for (var q = +m >= 0 ? m : 0, I = 0, l = f.items.length; I < l; I++)
936
- x[q + I] = pe(x[q + I], f.items[I]);
937
- else f.data !== void 0 && (x[m] = pe(x[m], f.data));
906
+ if (c.items)
907
+ for (var q = +m >= 0 ? m : 0, I = 0, s = c.items.length; I < s; I++)
908
+ x[q + I] = he(x[q + I], c.items[I]);
909
+ else c.data !== void 0 && (x[m] = he(x[m], c.data));
938
910
  };
939
- for (var h of s)
940
- u(h);
911
+ for (var p of l)
912
+ u(p);
941
913
  } else
942
- c.data = (r.payload || r).data || e.data, i = r.errors || r.payload && r.payload.errors || i;
914
+ f.data = (r.payload || r).data || e.data, i = r.errors || r.payload && r.payload.errors || i;
943
915
  return {
944
916
  operation: e.operation,
945
- data: c.data,
917
+ data: f.data,
946
918
  error: i.length ? new ke({
947
919
  graphQLErrors: i,
948
920
  response: t
@@ -951,7 +923,7 @@ var ne = typeof File < "u" ? File : B, ae = typeof Blob < "u" ? Blob : B, cr = /
951
923
  hasNext: r.hasNext != null ? r.hasNext : e.hasNext,
952
924
  stale: !1
953
925
  };
954
- }, pr = (e, r, t) => ({
926
+ }, hr = (e, r, t) => ({
955
927
  operation: e,
956
928
  data: void 0,
957
929
  error: new ke({
@@ -988,14 +960,14 @@ var mr = (e, r) => {
988
960
  return r > -1 ? [e.slice(0, r), new URLSearchParams(e.slice(r + 1))] : [e, new URLSearchParams()];
989
961
  }, kr = (e, r) => {
990
962
  if (r && !(e.kind === "query" && e.context.preferGetMethod)) {
991
- var t = te(r), n = ((s) => {
992
- var c = /* @__PURE__ */ new Map();
993
- return (ne !== B || ae !== B) && (j.clear(), de(c, "variables", s)), c;
963
+ var t = te(r), n = ((l) => {
964
+ var f = /* @__PURE__ */ new Map();
965
+ return (ne !== B || ae !== B) && (j.clear(), de(f, "variables", l)), f;
994
966
  })(r.variables);
995
967
  if (n.size) {
996
968
  var i = new FormData();
997
969
  i.append("operations", t), i.append("map", te({
998
- ...[...n.keys()].map((s) => [s])
970
+ ...[...n.keys()].map((l) => [l])
999
971
  }));
1000
972
  var a = 0;
1001
973
  for (var o of n.values())
@@ -1010,12 +982,12 @@ var mr = (e, r) => {
1010
982
  }, n = (typeof e.context.fetchOptions == "function" ? e.context.fetchOptions() : e.context.fetchOptions) || {};
1011
983
  if (n.headers)
1012
984
  if (((o) => "has" in o && !Object.keys(o).length)(n.headers))
1013
- n.headers.forEach((o, s) => {
1014
- t[s] = o;
985
+ n.headers.forEach((o, l) => {
986
+ t[l] = o;
1015
987
  });
1016
988
  else if (Array.isArray(n.headers))
1017
- n.headers.forEach((o, s) => {
1018
- Array.isArray(o) ? t[o[0]] ? t[o[0]] = `${t[o[0]]},${o[1]}` : t[o[0]] = o[1] : t[s] = o;
989
+ n.headers.forEach((o, l) => {
990
+ Array.isArray(o) ? t[o[0]] ? t[o[0]] = `${t[o[0]]},${o[1]}` : t[o[0]] = o[1] : t[l] = o;
1019
991
  });
1020
992
  else
1021
993
  for (var i in n.headers)
@@ -1052,9 +1024,9 @@ async function* Er(e, r, t) {
1052
1024
  var n = !0, i = null, a;
1053
1025
  try {
1054
1026
  yield await Promise.resolve();
1055
- var o = (a = await (e.context.fetch || fetch)(r, t)).headers.get("Content-Type") || "", s;
1056
- /multipart\/mixed/i.test(o) ? s = async function* (f, m) {
1057
- var x = f.match(br), k = "--" + (x ? x[1] : "-"), w = !0, E;
1027
+ var o = (a = await (e.context.fetch || fetch)(r, t)).headers.get("Content-Type") || "", l;
1028
+ /multipart\/mixed/i.test(o) ? l = async function* (c, m) {
1029
+ var x = c.match(br), k = "--" + (x ? x[1] : "-"), w = !0, E;
1058
1030
  for await (var D of Te(_e(m), `\r
1059
1031
  ` + k)) {
1060
1032
  if (w) {
@@ -1079,9 +1051,9 @@ async function* Er(e, r, t) {
1079
1051
  E && E.hasNext !== !1 && (yield {
1080
1052
  hasNext: !1
1081
1053
  });
1082
- }(o, a) : /text\/event-stream/i.test(o) ? s = async function* (f) {
1054
+ }(o, a) : /text\/event-stream/i.test(o) ? l = async function* (c) {
1083
1055
  var m;
1084
- for await (var x of Te(_e(f), `
1056
+ for await (var x of Te(_e(c), `
1085
1057
 
1086
1058
  `)) {
1087
1059
  var k = x.match(wr);
@@ -1100,25 +1072,25 @@ async function* Er(e, r, t) {
1100
1072
  m && m.hasNext !== !1 && (yield {
1101
1073
  hasNext: !1
1102
1074
  });
1103
- }(a) : /text\//i.test(o) ? s = async function* (f) {
1104
- var m = await f.text();
1075
+ }(a) : /text\//i.test(o) ? l = async function* (c) {
1076
+ var m = await c.text();
1105
1077
  try {
1106
1078
  var x = JSON.parse(m);
1107
1079
  process.env.NODE_ENV !== "production" && console.warn('Found response with content-type "text/plain" but it had a valid "application/json" response.'), yield x;
1108
1080
  } catch {
1109
1081
  throw new Error(m);
1110
1082
  }
1111
- }(a) : s = async function* (f) {
1112
- yield JSON.parse(await f.text());
1083
+ }(a) : l = async function* (c) {
1084
+ yield JSON.parse(await c.text());
1113
1085
  }(a);
1114
- var c;
1115
- for await (var u of s)
1116
- u.pending && !i ? c = u.pending : u.pending && (c = [...c, ...u.pending]), i = i ? hr(i, u, a, c) : he(e, u, a), n = !1, yield i, n = !0;
1117
- i || (yield i = he(e, {}, a));
1118
- } catch (h) {
1086
+ var f;
1087
+ for await (var u of l)
1088
+ u.pending && !i ? f = u.pending : u.pending && (f = [...f, ...u.pending]), i = i ? pr(i, u, a, f) : pe(e, u, a), n = !1, yield i, n = !0;
1089
+ i || (yield i = pe(e, {}, a));
1090
+ } catch (p) {
1119
1091
  if (!n)
1120
- throw h;
1121
- yield pr(e, a && (a.status < 200 || a.status >= 300) && a.statusText ? new Error(a.statusText) : h, a);
1092
+ throw p;
1093
+ yield hr(e, a && (a.status < 200 || a.status >= 300) && a.statusText ? new Error(a.statusText) : p, a);
1122
1094
  }
1123
1095
  }
1124
1096
  function Or(e, r, t) {
@@ -1150,8 +1122,8 @@ var ye = (e, r) => {
1150
1122
  if ("directives" in e && e.directives && e.directives.length) {
1151
1123
  var i = [], a = {};
1152
1124
  for (var o of e.directives) {
1153
- var s = o.name.value;
1154
- s[0] !== "_" ? i.push(o) : s = s.slice(1), a[s] = o;
1125
+ var l = o.name.value;
1126
+ l[0] !== "_" ? i.push(o) : l = l.slice(1), a[l] = o;
1155
1127
  }
1156
1128
  e = {
1157
1129
  ...e,
@@ -1160,14 +1132,14 @@ var ye = (e, r) => {
1160
1132
  };
1161
1133
  }
1162
1134
  if ("selectionSet" in e) {
1163
- var c = [], u = e.kind === M.OPERATION_DEFINITION;
1135
+ var f = [], u = e.kind === M.OPERATION_DEFINITION;
1164
1136
  if (e.selectionSet) {
1165
- for (var h of e.selectionSet.selections || []) {
1166
- u = u || h.kind === M.FIELD && h.name.value === "__typename" && !h.alias;
1167
- var f = me(h);
1168
- c.push(f);
1137
+ for (var p of e.selectionSet.selections || []) {
1138
+ u = u || p.kind === M.FIELD && p.name.value === "__typename" && !p.alias;
1139
+ var c = me(p);
1140
+ f.push(c);
1169
1141
  }
1170
- return u || c.push({
1142
+ return u || f.push({
1171
1143
  kind: M.FIELD,
1172
1144
  name: {
1173
1145
  kind: M.NAME,
@@ -1178,7 +1150,7 @@ var ye = (e, r) => {
1178
1150
  ...e,
1179
1151
  selectionSet: {
1180
1152
  ...e.selectionSet,
1181
- selections: c
1153
+ selections: f
1182
1154
  }
1183
1155
  };
1184
1156
  }
@@ -1221,11 +1193,11 @@ var Fe = (e, r) => U(e.kind, e, {
1221
1193
  }, _r = ({ forward: e, client: r, dispatchDebug: t }) => {
1222
1194
  var n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = (o) => o.kind === "query" && o.context.requestPolicy !== "network-only" && (o.context.requestPolicy === "cache-only" || n.has(o.key));
1223
1195
  return (o) => {
1224
- var s = W((u) => {
1225
- var h = n.get(u.key);
1196
+ var l = W((u) => {
1197
+ var p = n.get(u.key);
1226
1198
  process.env.NODE_ENV !== "production" && t({
1227
1199
  operation: u,
1228
- ...h ? {
1200
+ ...p ? {
1229
1201
  type: "cacheHit",
1230
1202
  message: "The result was successfully retried from the cache"
1231
1203
  } : {
@@ -1234,79 +1206,79 @@ var Fe = (e, r) => U(e.kind, e, {
1234
1206
  },
1235
1207
  source: "cacheExchange"
1236
1208
  });
1237
- var f = h || he(u, {
1209
+ var c = p || pe(u, {
1238
1210
  data: null
1239
1211
  });
1240
- return f = {
1241
- ...f,
1212
+ return c = {
1213
+ ...c,
1242
1214
  operation: process.env.NODE_ENV !== "production" ? Fe(u, {
1243
- cacheOutcome: h ? "hit" : "miss"
1215
+ cacheOutcome: p ? "hit" : "miss"
1244
1216
  }) : u
1245
- }, u.context.requestPolicy === "cache-and-network" && (f.stale = !0, Pe(r, u)), f;
1246
- })(A((u) => !ce(u) && a(u))(o)), c = ie((u) => {
1247
- var { operation: h } = u;
1248
- if (h) {
1249
- var f = h.context.additionalTypenames || [];
1250
- if (u.operation.kind !== "subscription" && (f = ((y) => [...ye(y, /* @__PURE__ */ new Set())])(u.data).concat(f)), u.operation.kind === "mutation" || u.operation.kind === "subscription") {
1217
+ }, u.context.requestPolicy === "cache-and-network" && (c.stale = !0, Pe(r, u)), c;
1218
+ })(A((u) => !ce(u) && a(u))(o)), f = ie((u) => {
1219
+ var { operation: p } = u;
1220
+ if (p) {
1221
+ var c = p.context.additionalTypenames || [];
1222
+ if (u.operation.kind !== "subscription" && (c = ((y) => [...ye(y, /* @__PURE__ */ new Set())])(u.data).concat(c)), u.operation.kind === "mutation" || u.operation.kind === "subscription") {
1251
1223
  var m = /* @__PURE__ */ new Set();
1252
1224
  process.env.NODE_ENV !== "production" && t({
1253
1225
  type: "cacheInvalidation",
1254
- message: `The following typenames have been invalidated: ${f}`,
1255
- operation: h,
1226
+ message: `The following typenames have been invalidated: ${c}`,
1227
+ operation: p,
1256
1228
  data: {
1257
- typenames: f,
1229
+ typenames: c,
1258
1230
  response: u
1259
1231
  },
1260
1232
  source: "cacheExchange"
1261
1233
  });
1262
- for (var x = 0; x < f.length; x++) {
1263
- var k = f[x], w = i.get(k);
1234
+ for (var x = 0; x < c.length; x++) {
1235
+ var k = c[x], w = i.get(k);
1264
1236
  w || i.set(k, w = /* @__PURE__ */ new Set());
1265
1237
  for (var E of w.values())
1266
1238
  m.add(E);
1267
1239
  w.clear();
1268
1240
  }
1269
1241
  for (var D of m.values())
1270
- n.has(D) && (h = n.get(D).operation, n.delete(D), Pe(r, h));
1271
- } else if (h.kind === "query" && u.data) {
1272
- n.set(h.key, u);
1273
- for (var q = 0; q < f.length; q++) {
1274
- var I = f[q], l = i.get(I);
1275
- l || i.set(I, l = /* @__PURE__ */ new Set()), l.add(h.key);
1242
+ n.has(D) && (p = n.get(D).operation, n.delete(D), Pe(r, p));
1243
+ } else if (p.kind === "query" && u.data) {
1244
+ n.set(p.key, u);
1245
+ for (var q = 0; q < c.length; q++) {
1246
+ var I = c[q], s = i.get(I);
1247
+ s || i.set(I, s = /* @__PURE__ */ new Set()), s.add(p.key);
1276
1248
  }
1277
1249
  }
1278
1250
  }
1279
1251
  })(e(A((u) => u.kind !== "query" || u.context.requestPolicy !== "cache-only")(W((u) => process.env.NODE_ENV !== "production" ? Fe(u, {
1280
1252
  cacheOutcome: "miss"
1281
1253
  }) : u)(J([W(Dr)(A((u) => !ce(u) && !a(u))(o)), A((u) => ce(u))(o)])))));
1282
- return J([s, c]);
1254
+ return J([l, f]);
1283
1255
  };
1284
1256
  }, Pe = (e, r) => e.reexecuteOperation(U(r.kind, r, {
1285
1257
  requestPolicy: "network-only"
1286
1258
  })), Tr = ({ forward: e, dispatchDebug: r }) => (t) => {
1287
1259
  var n = ee((a) => {
1288
- var o = yr(a), s = mr(a, o), c = xr(a, o);
1260
+ var o = yr(a), l = mr(a, o), f = xr(a, o);
1289
1261
  process.env.NODE_ENV !== "production" && r({
1290
1262
  type: "fetchRequest",
1291
1263
  message: "A fetch request is being executed.",
1292
1264
  operation: a,
1293
1265
  data: {
1294
- url: s,
1295
- fetchOptions: c
1266
+ url: l,
1267
+ fetchOptions: f
1296
1268
  },
1297
1269
  source: "fetchExchange"
1298
1270
  });
1299
- var u = Me(A((h) => h.kind === "teardown" && h.key === a.key)(t))(Or(a, s, c));
1300
- return process.env.NODE_ENV !== "production" ? ie((h) => {
1301
- var f = h.data ? void 0 : h.error;
1271
+ var u = Me(A((p) => p.kind === "teardown" && p.key === a.key)(t))(Or(a, l, f));
1272
+ return process.env.NODE_ENV !== "production" ? ie((p) => {
1273
+ var c = p.data ? void 0 : p.error;
1302
1274
  process.env.NODE_ENV !== "production" && r({
1303
- type: f ? "fetchError" : "fetchSuccess",
1304
- message: `A ${f ? "failed" : "successful"} fetch response has been returned.`,
1275
+ type: c ? "fetchError" : "fetchSuccess",
1276
+ message: `A ${c ? "failed" : "successful"} fetch response has been returned.`,
1305
1277
  operation: a,
1306
1278
  data: {
1307
- url: s,
1308
- fetchOptions: c,
1309
- value: f || h
1279
+ url: l,
1280
+ fetchOptions: f,
1281
+ value: c || p
1310
1282
  },
1311
1283
  source: "fetchExchange"
1312
1284
  });
@@ -1317,19 +1289,19 @@ var Fe = (e, r) => U(e.kind, e, {
1317
1289
  var o = !1;
1318
1290
  return a({
1319
1291
  client: r,
1320
- forward(s) {
1292
+ forward(l) {
1321
1293
  if (process.env.NODE_ENV !== "production") {
1322
1294
  if (o)
1323
1295
  throw new Error("forward() must only be called once in each Exchange.");
1324
1296
  o = !0;
1325
1297
  }
1326
- return Q(i(Q(s)));
1298
+ return Q(i(Q(l)));
1327
1299
  },
1328
- dispatchDebug(s) {
1300
+ dispatchDebug(l) {
1329
1301
  process.env.NODE_ENV !== "production" && n({
1330
1302
  timestamp: Date.now(),
1331
1303
  source: a.name,
1332
- ...s
1304
+ ...l
1333
1305
  });
1334
1306
  }
1335
1307
  });
@@ -1353,112 +1325,112 @@ var Fe = (e, r) => U(e.kind, e, {
1353
1325
  })(r)), A((t) => !1)(r)), Cr = function e(r) {
1354
1326
  if (process.env.NODE_ENV !== "production" && !r.url)
1355
1327
  throw new Error("You are creating an urql-client without a url.");
1356
- var t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = [], s = {
1328
+ var t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = [], l = {
1357
1329
  url: r.url,
1358
1330
  fetchSubscriptions: r.fetchSubscriptions,
1359
1331
  fetchOptions: r.fetchOptions,
1360
1332
  fetch: r.fetch,
1361
1333
  preferGetMethod: r.preferGetMethod,
1362
1334
  requestPolicy: r.requestPolicy || "cache-first"
1363
- }, c = Ee();
1364
- function u(l) {
1365
- (l.kind === "mutation" || l.kind === "teardown" || !a.has(l.key)) && (l.kind === "teardown" ? a.delete(l.key) : l.kind !== "mutation" && a.add(l.key), c.next(l));
1335
+ }, f = Ee();
1336
+ function u(s) {
1337
+ (s.kind === "mutation" || s.kind === "teardown" || !a.has(s.key)) && (s.kind === "teardown" ? a.delete(s.key) : s.kind !== "mutation" && a.add(s.key), f.next(s));
1366
1338
  }
1367
- var h = !1;
1368
- function f(l) {
1369
- if (l && u(l), !h) {
1370
- for (h = !0; h && (l = o.shift()); )
1371
- u(l);
1372
- h = !1;
1339
+ var p = !1;
1340
+ function c(s) {
1341
+ if (s && u(s), !p) {
1342
+ for (p = !0; p && (s = o.shift()); )
1343
+ u(s);
1344
+ p = !1;
1373
1345
  }
1374
1346
  }
1375
- var m = (l) => {
1376
- var y = Me(A((v) => v.kind === "teardown" && v.key === l.key)(c.source))(A((v) => v.operation.kind === l.kind && v.operation.key === l.key && (!v.operation.context._instance || v.operation.context._instance === l.context._instance))(I));
1377
- return l.kind !== "query" ? y = nr((v) => !!v.hasNext, !0)(y) : y = we((v) => {
1347
+ var m = (s) => {
1348
+ var y = Me(A((v) => v.kind === "teardown" && v.key === s.key)(f.source))(A((v) => v.operation.kind === s.kind && v.operation.key === s.key && (!v.operation.context._instance || v.operation.context._instance === s.context._instance))(I));
1349
+ return s.kind !== "query" ? y = nr((v) => !!v.hasNext, !0)(y) : y = we((v) => {
1378
1350
  var V = G(v);
1379
- return v.stale || v.hasNext ? V : J([V, W(() => (v.stale = !0, v))(Re(1)(A((oe) => oe.key === l.key)(c.source)))]);
1380
- })(y), l.kind !== "mutation" ? y = je(() => {
1381
- a.delete(l.key), n.delete(l.key), i.delete(l.key), h = !1;
1351
+ return v.stale || v.hasNext ? V : J([V, W(() => (v.stale = !0, v))(Re(1)(A((oe) => oe.key === s.key)(f.source)))]);
1352
+ })(y), s.kind !== "mutation" ? y = je(() => {
1353
+ a.delete(s.key), n.delete(s.key), i.delete(s.key), p = !1;
1382
1354
  for (var v = o.length - 1; v >= 0; v--)
1383
- o[v].key === l.key && o.splice(v, 1);
1384
- u(U("teardown", l, l.context));
1355
+ o[v].key === s.key && o.splice(v, 1);
1356
+ u(U("teardown", s, s.context));
1385
1357
  })(ie((v) => {
1386
1358
  if (v.stale) {
1387
1359
  if (!v.hasNext)
1388
- a.delete(l.key);
1360
+ a.delete(s.key);
1389
1361
  else
1390
1362
  for (var V of o)
1391
1363
  if (V.key === v.operation.key) {
1392
1364
  a.delete(V.key);
1393
1365
  break;
1394
1366
  }
1395
- } else v.hasNext || a.delete(l.key);
1396
- n.set(l.key, v);
1367
+ } else v.hasNext || a.delete(s.key);
1368
+ n.set(s.key, v);
1397
1369
  })(y)) : y = be(() => {
1398
- u(l);
1370
+ u(s);
1399
1371
  })(y), Q(y);
1400
1372
  }, x = this instanceof e ? this : Object.create(e.prototype), k = Object.assign(x, {
1401
1373
  suspense: !!r.suspense,
1402
- operations$: c.source,
1403
- reexecuteOperation(l) {
1404
- if (l.kind === "teardown")
1405
- f(l);
1406
- else if (l.kind === "mutation")
1407
- o.push(l), Promise.resolve().then(f);
1408
- else if (i.has(l.key)) {
1374
+ operations$: f.source,
1375
+ reexecuteOperation(s) {
1376
+ if (s.kind === "teardown")
1377
+ c(s);
1378
+ else if (s.kind === "mutation")
1379
+ o.push(s), Promise.resolve().then(c);
1380
+ else if (i.has(s.key)) {
1409
1381
  for (var y = !1, v = 0; v < o.length; v++)
1410
- o[v].key === l.key && (o[v] = l, y = !0);
1411
- y || a.has(l.key) && l.context.requestPolicy !== "network-only" ? (a.delete(l.key), Promise.resolve().then(f)) : (o.push(l), Promise.resolve().then(f));
1382
+ o[v].key === s.key && (o[v] = s, y = !0);
1383
+ y || a.has(s.key) && s.context.requestPolicy !== "network-only" ? (a.delete(s.key), Promise.resolve().then(c)) : (o.push(s), Promise.resolve().then(c));
1412
1384
  }
1413
1385
  },
1414
- createRequestOperation(l, y, v) {
1386
+ createRequestOperation(s, y, v) {
1415
1387
  v || (v = {});
1416
1388
  var V;
1417
- if (process.env.NODE_ENV !== "production" && l !== "teardown" && (V = dr(y.query)) !== l)
1418
- throw new Error(`Expected operation of type "${l}" but found "${V}"`);
1419
- return U(l, y, {
1420
- _instance: l === "mutation" ? t = t + 1 | 0 : void 0,
1421
- ...s,
1389
+ if (process.env.NODE_ENV !== "production" && s !== "teardown" && (V = dr(y.query)) !== s)
1390
+ throw new Error(`Expected operation of type "${s}" but found "${V}"`);
1391
+ return U(s, y, {
1392
+ _instance: s === "mutation" ? t = t + 1 | 0 : void 0,
1393
+ ...l,
1422
1394
  ...v,
1423
- requestPolicy: v.requestPolicy || s.requestPolicy,
1395
+ requestPolicy: v.requestPolicy || l.requestPolicy,
1424
1396
  suspense: v.suspense || v.suspense !== !1 && k.suspense
1425
1397
  });
1426
1398
  },
1427
- executeRequestOperation(l) {
1428
- return l.kind === "mutation" ? Ce(m(l)) : Ce(ar(() => {
1429
- var y = i.get(l.key);
1430
- y || i.set(l.key, y = m(l)), y = be(() => {
1431
- f(l);
1399
+ executeRequestOperation(s) {
1400
+ return s.kind === "mutation" ? Ce(m(s)) : Ce(ar(() => {
1401
+ var y = i.get(s.key);
1402
+ y || i.set(s.key, y = m(s)), y = be(() => {
1403
+ c(s);
1432
1404
  })(y);
1433
- var v = n.get(l.key);
1434
- return l.kind === "query" && v && (v.stale || v.hasNext) ? we(G)(J([y, A((V) => V === n.get(l.key))(G(v))])) : y;
1405
+ var v = n.get(s.key);
1406
+ return s.kind === "query" && v && (v.stale || v.hasNext) ? we(G)(J([y, A((V) => V === n.get(s.key))(G(v))])) : y;
1435
1407
  }));
1436
1408
  },
1437
- executeQuery(l, y) {
1438
- var v = k.createRequestOperation("query", l, y);
1409
+ executeQuery(s, y) {
1410
+ var v = k.createRequestOperation("query", s, y);
1439
1411
  return k.executeRequestOperation(v);
1440
1412
  },
1441
- executeSubscription(l, y) {
1442
- var v = k.createRequestOperation("subscription", l, y);
1413
+ executeSubscription(s, y) {
1414
+ var v = k.createRequestOperation("subscription", s, y);
1443
1415
  return k.executeRequestOperation(v);
1444
1416
  },
1445
- executeMutation(l, y) {
1446
- var v = k.createRequestOperation("mutation", l, y);
1417
+ executeMutation(s, y) {
1418
+ var v = k.createRequestOperation("mutation", s, y);
1447
1419
  return k.executeRequestOperation(v);
1448
1420
  },
1449
- readQuery(l, y, v) {
1421
+ readQuery(s, y, v) {
1450
1422
  var V = null;
1451
1423
  return re((oe) => {
1452
1424
  V = oe;
1453
- })(k.query(l, y, v)).unsubscribe(), V;
1425
+ })(k.query(s, y, v)).unsubscribe(), V;
1454
1426
  },
1455
- query: (l, y, v) => k.executeQuery(ue(l, y), v),
1456
- subscription: (l, y, v) => k.executeSubscription(ue(l, y), v),
1457
- mutation: (l, y, v) => k.executeMutation(ue(l, y), v)
1427
+ query: (s, y, v) => k.executeQuery(ue(s, y), v),
1428
+ subscription: (s, y, v) => k.executeSubscription(ue(s, y), v),
1429
+ mutation: (s, y, v) => k.executeMutation(ue(s, y), v)
1458
1430
  }), w = Ar;
1459
1431
  if (process.env.NODE_ENV !== "production") {
1460
1432
  var { next: E, source: D } = Ee();
1461
- k.subscribeToDebugTarget = (l) => re(l)(D), w = E;
1433
+ k.subscribeToDebugTarget = (s) => re(s)(D), w = E;
1462
1434
  }
1463
1435
  var q = Ir(r.exchanges), I = Q(q({
1464
1436
  client: k,
@@ -1466,7 +1438,7 @@ var Fe = (e, r) => U(e.kind, e, {
1466
1438
  forward: Vr({
1467
1439
  dispatchDebug: w
1468
1440
  })
1469
- })(c.source));
1441
+ })(f.source));
1470
1442
  return sr(I), k;
1471
1443
  };
1472
1444
  export {
@@ -1480,4 +1452,4 @@ export {
1480
1452
  re as s,
1481
1453
  nr as t
1482
1454
  };
1483
- //# sourceMappingURL=urql-core-CqTI9H6N.js.map
1455
+ //# sourceMappingURL=urql-core-KJnLL26g.js.map