@fairfox/polly 0.88.0 → 0.89.0

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 (102) hide show
  1. package/dist/cli/polly.js +4 -4
  2. package/dist/cli/polly.js.map +2 -2
  3. package/dist/gallery/gallery.css +51 -59
  4. package/dist/gallery/gallery.js +1155 -1047
  5. package/dist/src/actions/index.js +5 -78
  6. package/dist/src/actions/index.js.map +2 -2
  7. package/dist/src/background/index.js +126 -152
  8. package/dist/src/background/index.js.map +4 -4
  9. package/dist/src/background/message-router.js +126 -152
  10. package/dist/src/background/message-router.js.map +4 -4
  11. package/dist/src/client/index.js +186 -259
  12. package/dist/src/client/index.js.map +5 -5
  13. package/dist/src/elysia/index.js +21 -35
  14. package/dist/src/elysia/index.js.map +2 -2
  15. package/dist/src/index.js +218 -246
  16. package/dist/src/index.js.map +10 -10
  17. package/dist/src/mesh.js +49 -61
  18. package/dist/src/mesh.js.map +4 -4
  19. package/dist/src/peer.js +23 -52
  20. package/dist/src/peer.js.map +2 -2
  21. package/dist/src/polly-ui/Button.d.ts +7 -0
  22. package/dist/src/polly-ui/Collapsible.d.ts +3 -1
  23. package/dist/src/polly-ui/Layout.d.ts +16 -1
  24. package/dist/src/polly-ui/index.css +47 -59
  25. package/dist/src/polly-ui/index.js +112 -124
  26. package/dist/src/polly-ui/index.js.map +13 -13
  27. package/dist/src/polly-ui/markdown.js +72 -145
  28. package/dist/src/polly-ui/markdown.js.map +2 -2
  29. package/dist/src/polly-ui/styles.css +47 -59
  30. package/dist/src/polly-ui/theme.css +10 -0
  31. package/dist/src/shared/adapters/index.js +31 -44
  32. package/dist/src/shared/adapters/index.js.map +2 -2
  33. package/dist/src/shared/lib/context-helpers.js +126 -152
  34. package/dist/src/shared/lib/context-helpers.js.map +4 -4
  35. package/dist/src/shared/lib/errors.js +1 -74
  36. package/dist/src/shared/lib/errors.js.map +2 -2
  37. package/dist/src/shared/lib/guards.js +1 -74
  38. package/dist/src/shared/lib/guards.js.map +2 -2
  39. package/dist/src/shared/lib/message-bus.js +126 -152
  40. package/dist/src/shared/lib/message-bus.js.map +4 -4
  41. package/dist/src/shared/lib/resource.js +16 -27
  42. package/dist/src/shared/lib/resource.js.map +5 -5
  43. package/dist/src/shared/lib/state.js +13 -26
  44. package/dist/src/shared/lib/state.js.map +2 -2
  45. package/dist/src/shared/lib/test-helpers.js +1 -74
  46. package/dist/src/shared/lib/test-helpers.js.map +2 -2
  47. package/dist/src/shared/state/app-state.js +35 -46
  48. package/dist/src/shared/state/app-state.js.map +5 -5
  49. package/dist/src/shared/types/messages.js +1 -74
  50. package/dist/src/shared/types/messages.js.map +2 -2
  51. package/dist/tools/bdd/src/cli.js +11 -15
  52. package/dist/tools/bdd/src/cli.js.map +2 -2
  53. package/dist/tools/bdd/src/index.js +11 -19
  54. package/dist/tools/bdd/src/index.js.map +2 -2
  55. package/dist/tools/gallery/src/cli.js +1 -18
  56. package/dist/tools/gallery/src/cli.js.map +2 -2
  57. package/dist/tools/init/src/cli.js +1 -18
  58. package/dist/tools/init/src/cli.js.map +2 -2
  59. package/dist/tools/mutate/src/cli.js +8 -25
  60. package/dist/tools/mutate/src/cli.js.map +2 -2
  61. package/dist/tools/mutate/src/index.js +8 -26
  62. package/dist/tools/mutate/src/index.js.map +2 -2
  63. package/dist/tools/quality/src/cli.js +39 -46
  64. package/dist/tools/quality/src/cli.js.map +3 -3
  65. package/dist/tools/quality/src/css/check-layout.d.ts +5 -3
  66. package/dist/tools/quality/src/index.js +39 -47
  67. package/dist/tools/quality/src/index.js.map +3 -3
  68. package/dist/tools/test/src/adapters/index.js +4 -77
  69. package/dist/tools/test/src/adapters/index.js.map +2 -2
  70. package/dist/tools/test/src/browser/index.js +1 -74
  71. package/dist/tools/test/src/browser/index.js.map +2 -2
  72. package/dist/tools/test/src/browser/run.js +5 -22
  73. package/dist/tools/test/src/browser/run.js.map +2 -2
  74. package/dist/tools/test/src/contrast/index.js +1 -74
  75. package/dist/tools/test/src/contrast/index.js.map +2 -2
  76. package/dist/tools/test/src/coverage-policy/cli.js +13 -25
  77. package/dist/tools/test/src/coverage-policy/cli.js.map +2 -2
  78. package/dist/tools/test/src/coverage-policy/index.js +11 -23
  79. package/dist/tools/test/src/coverage-policy/index.js.map +2 -2
  80. package/dist/tools/test/src/e2e-mesh/index.js +18 -43
  81. package/dist/tools/test/src/e2e-mesh/index.js.map +2 -2
  82. package/dist/tools/test/src/e2e-relay/index.js +615 -623
  83. package/dist/tools/test/src/e2e-relay/index.js.map +2 -2
  84. package/dist/tools/test/src/index.js +30 -103
  85. package/dist/tools/test/src/index.js.map +5 -5
  86. package/dist/tools/test/src/test-utils.js +1 -74
  87. package/dist/tools/test/src/test-utils.js.map +2 -2
  88. package/dist/tools/test/src/tiers/cli.js +1 -18
  89. package/dist/tools/test/src/tiers/cli.js.map +2 -2
  90. package/dist/tools/test/src/tiers/worker.js +11 -15
  91. package/dist/tools/test/src/tiers/worker.js.map +2 -2
  92. package/dist/tools/test/src/visual/index.js +1112 -1134
  93. package/dist/tools/test/src/visual/index.js.map +3 -3
  94. package/dist/tools/verify/src/cli.js +103 -169
  95. package/dist/tools/verify/src/cli.js.map +2 -2
  96. package/dist/tools/verify/src/config.js +1 -74
  97. package/dist/tools/verify/src/config.js.map +2 -2
  98. package/dist/tools/verify/src/stryker/index.js +1 -19
  99. package/dist/tools/verify/src/stryker/index.js.map +2 -2
  100. package/dist/tools/visualize/src/cli.js +69 -85
  101. package/dist/tools/visualize/src/cli.js.map +2 -2
  102. package/package.json +1 -1
@@ -1,87 +1,3 @@
1
- var __create = Object.create;
2
- var __getProtoOf = Object.getPrototypeOf;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- function __accessProp(key) {
8
- return this[key];
9
- }
10
- var __toESMCache_node;
11
- var __toESMCache_esm;
12
- var __toESM = (mod, isNodeMode, target) => {
13
- var canCache = mod != null && typeof mod === "object";
14
- if (canCache) {
15
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
- var cached = cache.get(mod);
17
- if (cached)
18
- return cached;
19
- }
20
- target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- if (mod && typeof mod === "object" || typeof mod === "function") {
23
- for (let key of __getOwnPropNames(mod))
24
- if (!__hasOwnProp.call(to, key))
25
- __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
27
- enumerable: true
28
- });
29
- }
30
- if (canCache)
31
- cache.set(mod, to);
32
- return to;
33
- };
34
- var __toCommonJS = (from) => {
35
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
36
- if (entry)
37
- return entry;
38
- entry = __defProp({}, "__esModule", { value: true });
39
- if (from && typeof from === "object" || typeof from === "function") {
40
- for (var key of __getOwnPropNames(from))
41
- if (!__hasOwnProp.call(entry, key))
42
- __defProp(entry, key, {
43
- get: __accessProp.bind(from, key),
44
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
45
- });
46
- }
47
- __moduleCache.set(from, entry);
48
- return entry;
49
- };
50
- var __moduleCache;
51
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
52
- var __returnValue = (v) => v;
53
- function __exportSetter(name, newValue) {
54
- this[name] = __returnValue.bind(null, newValue);
55
- }
56
- var __export = (target, all) => {
57
- for (var name in all)
58
- __defProp(target, name, {
59
- get: all[name],
60
- enumerable: true,
61
- configurable: true,
62
- set: __exportSetter.bind(all, name)
63
- });
64
- };
65
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
66
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
67
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
68
- }) : x)(function(x) {
69
- if (typeof require !== "undefined")
70
- return require.apply(this, arguments);
71
- throw Error('Dynamic require of "' + x + '" is not supported');
72
- });
73
-
74
- // src/shared/lib/guards.ts
75
- function hasKeyInObject(input, key) {
76
- return typeof input === "object" && input !== null && Object.hasOwn(input, key);
77
- }
78
- function isRecord(input) {
79
- return typeof input === "object" && input !== null && !Array.isArray(input);
80
- }
81
- function assertNever(value) {
82
- throw new Error(`assertNever: unexpected value ${JSON.stringify(value)}`);
83
- }
84
-
85
1
  // src/client/wrapper.ts
86
2
  import { treaty } from "@elysiajs/eden";
87
3
 
@@ -89,14 +5,14 @@ import { treaty } from "@elysiajs/eden";
89
5
  var i = Symbol.for("preact-signals");
90
6
  function t() {
91
7
  if (!(s > 1)) {
92
- var i2, t2 = false;
8
+ var i, t = false;
93
9
  (function() {
94
- var i3 = c;
10
+ var i = c;
95
11
  c = undefined;
96
- while (i3 !== undefined) {
97
- if (i3.S.v === i3.v)
98
- i3.S.i = i3.i;
99
- i3 = i3.o;
12
+ while (i !== undefined) {
13
+ if (i.S.v === i.v)
14
+ i.S.i = i.i;
15
+ i = i.o;
100
16
  }
101
17
  })();
102
18
  while (h !== undefined) {
@@ -110,10 +26,10 @@ function t() {
110
26
  if (!(8 & n.f) && w(n))
111
27
  try {
112
28
  n.c();
113
- } catch (n2) {
114
- if (!t2) {
115
- i2 = n2;
116
- t2 = true;
29
+ } catch (n) {
30
+ if (!t) {
31
+ i = n;
32
+ t = true;
117
33
  }
118
34
  }
119
35
  n = r;
@@ -121,19 +37,19 @@ function t() {
121
37
  }
122
38
  v = 0;
123
39
  s--;
124
- if (t2)
125
- throw i2;
40
+ if (t)
41
+ throw i;
126
42
  } else
127
43
  s--;
128
44
  }
129
45
  var r = undefined;
130
- function o(i2) {
131
- var t2 = r;
46
+ function o(i) {
47
+ var t = r;
132
48
  r = undefined;
133
49
  try {
134
- return i2();
50
+ return i();
135
51
  } finally {
136
- r = t2;
52
+ r = t;
137
53
  }
138
54
  }
139
55
  var f;
@@ -143,92 +59,92 @@ var v = 0;
143
59
  var e = 0;
144
60
  var c = undefined;
145
61
  var d = 0;
146
- function a(i2) {
62
+ function a(i) {
147
63
  if (r !== undefined) {
148
- var t2 = i2.n;
149
- if (t2 === undefined || t2.t !== r) {
150
- t2 = { i: 0, S: i2, p: r.s, n: undefined, t: r, e: undefined, x: undefined, r: t2 };
64
+ var t = i.n;
65
+ if (t === undefined || t.t !== r) {
66
+ t = { i: 0, S: i, p: r.s, n: undefined, t: r, e: undefined, x: undefined, r: t };
151
67
  if (r.s !== undefined)
152
- r.s.n = t2;
153
- r.s = t2;
154
- i2.n = t2;
68
+ r.s.n = t;
69
+ r.s = t;
70
+ i.n = t;
155
71
  if (32 & r.f)
156
- i2.S(t2);
157
- return t2;
158
- } else if (t2.i === -1) {
159
- t2.i = 0;
160
- if (t2.n !== undefined) {
161
- t2.n.p = t2.p;
162
- if (t2.p !== undefined)
163
- t2.p.n = t2.n;
164
- t2.p = r.s;
165
- t2.n = undefined;
166
- r.s.n = t2;
167
- r.s = t2;
72
+ i.S(t);
73
+ return t;
74
+ } else if (t.i === -1) {
75
+ t.i = 0;
76
+ if (t.n !== undefined) {
77
+ t.n.p = t.p;
78
+ if (t.p !== undefined)
79
+ t.p.n = t.n;
80
+ t.p = r.s;
81
+ t.n = undefined;
82
+ r.s.n = t;
83
+ r.s = t;
168
84
  }
169
- return t2;
85
+ return t;
170
86
  }
171
87
  }
172
88
  }
173
- function l(i2, t2) {
174
- this.v = i2;
89
+ function l(i, t) {
90
+ this.v = i;
175
91
  this.i = 0;
176
92
  this.n = undefined;
177
93
  this.t = undefined;
178
94
  this.l = 0;
179
- this.W = t2 == null ? undefined : t2.watched;
180
- this.Z = t2 == null ? undefined : t2.unwatched;
181
- this.name = t2 == null ? undefined : t2.name;
95
+ this.W = t == null ? undefined : t.watched;
96
+ this.Z = t == null ? undefined : t.unwatched;
97
+ this.name = t == null ? undefined : t.name;
182
98
  }
183
99
  l.prototype.brand = i;
184
100
  l.prototype.h = function() {
185
101
  return true;
186
102
  };
187
- l.prototype.S = function(i2) {
188
- var t2 = this, n = this.t;
189
- if (n !== i2 && i2.e === undefined) {
190
- i2.x = n;
191
- this.t = i2;
103
+ l.prototype.S = function(i) {
104
+ var t = this, n = this.t;
105
+ if (n !== i && i.e === undefined) {
106
+ i.x = n;
107
+ this.t = i;
192
108
  if (n !== undefined)
193
- n.e = i2;
109
+ n.e = i;
194
110
  else
195
111
  o(function() {
196
- var i3;
197
- (i3 = t2.W) == null || i3.call(t2);
112
+ var i;
113
+ (i = t.W) == null || i.call(t);
198
114
  });
199
115
  }
200
116
  };
201
- l.prototype.U = function(i2) {
202
- var t2 = this;
117
+ l.prototype.U = function(i) {
118
+ var t = this;
203
119
  if (this.t !== undefined) {
204
- var { e: n, x: r2 } = i2;
120
+ var { e: n, x: r } = i;
205
121
  if (n !== undefined) {
206
- n.x = r2;
207
- i2.e = undefined;
122
+ n.x = r;
123
+ i.e = undefined;
208
124
  }
209
- if (r2 !== undefined) {
210
- r2.e = n;
211
- i2.x = undefined;
125
+ if (r !== undefined) {
126
+ r.e = n;
127
+ i.x = undefined;
212
128
  }
213
- if (i2 === this.t) {
214
- this.t = r2;
215
- if (r2 === undefined)
129
+ if (i === this.t) {
130
+ this.t = r;
131
+ if (r === undefined)
216
132
  o(function() {
217
- var i3;
218
- (i3 = t2.Z) == null || i3.call(t2);
133
+ var i;
134
+ (i = t.Z) == null || i.call(t);
219
135
  });
220
136
  }
221
137
  }
222
138
  };
223
- l.prototype.subscribe = function(i2) {
224
- var t2 = this;
139
+ l.prototype.subscribe = function(i) {
140
+ var t = this;
225
141
  return j(function() {
226
- var n = t2.value, o2 = r;
142
+ var n = t.value, o = r;
227
143
  r = undefined;
228
144
  try {
229
- i2(n);
145
+ i(n);
230
146
  } finally {
231
- r = o2;
147
+ r = o;
232
148
  }
233
149
  }, { name: "sub" });
234
150
  };
@@ -242,29 +158,29 @@ l.prototype.toJSON = function() {
242
158
  return this.value;
243
159
  };
244
160
  l.prototype.peek = function() {
245
- var i2 = this;
161
+ var i = this;
246
162
  return o(function() {
247
- return i2.value;
163
+ return i.value;
248
164
  });
249
165
  };
250
166
  Object.defineProperty(l.prototype, "value", { get: function() {
251
- var i2 = a(this);
252
- if (i2 !== undefined)
253
- i2.i = this.i;
167
+ var i = a(this);
168
+ if (i !== undefined)
169
+ i.i = this.i;
254
170
  return this.v;
255
- }, set: function(i2) {
256
- if (i2 !== this.v) {
171
+ }, set: function(i) {
172
+ if (i !== this.v) {
257
173
  if (v > 100)
258
174
  throw new Error("Cycle detected");
259
- (function(i3) {
175
+ (function(i) {
260
176
  if (s !== 0 && v === 0) {
261
- if (i3.l !== e) {
262
- i3.l = e;
263
- c = { S: i3, v: i3.v, i: i3.i, o: c };
177
+ if (i.l !== e) {
178
+ i.l = e;
179
+ c = { S: i, v: i.v, i: i.i, o: c };
264
180
  }
265
181
  }
266
182
  })(this);
267
- this.v = i2;
183
+ this.v = i;
268
184
  this.i++;
269
185
  d++;
270
186
  s++;
@@ -276,56 +192,56 @@ Object.defineProperty(l.prototype, "value", { get: function() {
276
192
  }
277
193
  }
278
194
  } });
279
- function y(i2, t2) {
280
- return new l(i2, t2);
195
+ function y(i, t) {
196
+ return new l(i, t);
281
197
  }
282
- function w(i2) {
283
- for (var t2 = i2.s;t2 !== undefined; t2 = t2.n)
284
- if (t2.S.i !== t2.i || !t2.S.h() || t2.S.i !== t2.i)
198
+ function w(i) {
199
+ for (var t = i.s;t !== undefined; t = t.n)
200
+ if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i)
285
201
  return true;
286
202
  return false;
287
203
  }
288
- function _(i2) {
289
- for (var t2 = i2.s;t2 !== undefined; t2 = t2.n) {
290
- var n = t2.S.n;
204
+ function _(i) {
205
+ for (var t = i.s;t !== undefined; t = t.n) {
206
+ var n = t.S.n;
291
207
  if (n !== undefined)
292
- t2.r = n;
293
- t2.S.n = t2;
294
- t2.i = -1;
295
- if (t2.n === undefined) {
296
- i2.s = t2;
208
+ t.r = n;
209
+ t.S.n = t;
210
+ t.i = -1;
211
+ if (t.n === undefined) {
212
+ i.s = t;
297
213
  break;
298
214
  }
299
215
  }
300
216
  }
301
- function b(i2) {
302
- var t2 = i2.s, n = undefined;
303
- while (t2 !== undefined) {
304
- var r2 = t2.p;
305
- if (t2.i === -1) {
306
- t2.S.U(t2);
307
- if (r2 !== undefined)
308
- r2.n = t2.n;
309
- if (t2.n !== undefined)
310
- t2.n.p = r2;
217
+ function b(i) {
218
+ var t = i.s, n = undefined;
219
+ while (t !== undefined) {
220
+ var r = t.p;
221
+ if (t.i === -1) {
222
+ t.S.U(t);
223
+ if (r !== undefined)
224
+ r.n = t.n;
225
+ if (t.n !== undefined)
226
+ t.n.p = r;
311
227
  } else
312
- n = t2;
313
- t2.S.n = t2.r;
314
- if (t2.r !== undefined)
315
- t2.r = undefined;
316
- t2 = r2;
228
+ n = t;
229
+ t.S.n = t.r;
230
+ if (t.r !== undefined)
231
+ t.r = undefined;
232
+ t = r;
317
233
  }
318
- i2.s = n;
234
+ i.s = n;
319
235
  }
320
- function p(i2, t2) {
236
+ function p(i, t) {
321
237
  l.call(this, undefined);
322
- this.x = i2;
238
+ this.x = i;
323
239
  this.s = undefined;
324
240
  this.g = d - 1;
325
241
  this.f = 4;
326
- this.W = t2 == null ? undefined : t2.watched;
327
- this.Z = t2 == null ? undefined : t2.unwatched;
328
- this.name = t2 == null ? undefined : t2.name;
242
+ this.W = t == null ? undefined : t.watched;
243
+ this.Z = t == null ? undefined : t.unwatched;
244
+ this.name = t == null ? undefined : t.name;
329
245
  }
330
246
  p.prototype = new l;
331
247
  p.prototype.h = function() {
@@ -343,121 +259,121 @@ p.prototype.h = function() {
343
259
  this.f &= -2;
344
260
  return true;
345
261
  }
346
- var i2 = r;
262
+ var i = r;
347
263
  try {
348
264
  _(this);
349
265
  r = this;
350
- var t2 = this.x();
351
- if (16 & this.f || this.v !== t2 || this.i === 0) {
352
- this.v = t2;
266
+ var t = this.x();
267
+ if (16 & this.f || this.v !== t || this.i === 0) {
268
+ this.v = t;
353
269
  this.f &= -17;
354
270
  this.i++;
355
271
  }
356
- } catch (i3) {
357
- this.v = i3;
272
+ } catch (i) {
273
+ this.v = i;
358
274
  this.f |= 16;
359
275
  this.i++;
360
276
  }
361
- r = i2;
277
+ r = i;
362
278
  b(this);
363
279
  this.f &= -2;
364
280
  return true;
365
281
  };
366
- p.prototype.S = function(i2) {
282
+ p.prototype.S = function(i) {
367
283
  if (this.t === undefined) {
368
284
  this.f |= 36;
369
- for (var t2 = this.s;t2 !== undefined; t2 = t2.n)
370
- t2.S.S(t2);
285
+ for (var t = this.s;t !== undefined; t = t.n)
286
+ t.S.S(t);
371
287
  }
372
- l.prototype.S.call(this, i2);
288
+ l.prototype.S.call(this, i);
373
289
  };
374
- p.prototype.U = function(i2) {
290
+ p.prototype.U = function(i) {
375
291
  if (this.t !== undefined) {
376
- l.prototype.U.call(this, i2);
292
+ l.prototype.U.call(this, i);
377
293
  if (this.t === undefined) {
378
294
  this.f &= -33;
379
- for (var t2 = this.s;t2 !== undefined; t2 = t2.n)
380
- t2.S.U(t2);
295
+ for (var t = this.s;t !== undefined; t = t.n)
296
+ t.S.U(t);
381
297
  }
382
298
  }
383
299
  };
384
300
  p.prototype.N = function() {
385
301
  if (!(2 & this.f)) {
386
302
  this.f |= 6;
387
- for (var i2 = this.t;i2 !== undefined; i2 = i2.x)
388
- i2.t.N();
303
+ for (var i = this.t;i !== undefined; i = i.x)
304
+ i.t.N();
389
305
  }
390
306
  };
391
307
  Object.defineProperty(p.prototype, "value", { get: function() {
392
308
  if (1 & this.f)
393
309
  throw new Error("Cycle detected");
394
- var i2 = a(this);
310
+ var i = a(this);
395
311
  this.h();
396
- if (i2 !== undefined)
397
- i2.i = this.i;
312
+ if (i !== undefined)
313
+ i.i = this.i;
398
314
  if (16 & this.f)
399
315
  throw this.v;
400
316
  return this.v;
401
317
  } });
402
- function S(i2) {
403
- var n = i2.m;
404
- i2.m = undefined;
318
+ function S(i) {
319
+ var n = i.m;
320
+ i.m = undefined;
405
321
  if (typeof n == "function") {
406
322
  s++;
407
- var o2 = r;
323
+ var o = r;
408
324
  r = undefined;
409
325
  try {
410
326
  n();
411
- } catch (t2) {
412
- i2.f &= -2;
413
- i2.f |= 8;
414
- m(i2);
415
- throw t2;
327
+ } catch (t) {
328
+ i.f &= -2;
329
+ i.f |= 8;
330
+ m(i);
331
+ throw t;
416
332
  } finally {
417
- r = o2;
333
+ r = o;
418
334
  t();
419
335
  }
420
336
  }
421
337
  }
422
- function m(i2) {
423
- for (var t2 = i2.s;t2 !== undefined; t2 = t2.n)
424
- t2.S.U(t2);
425
- i2.x = undefined;
426
- i2.s = undefined;
427
- S(i2);
338
+ function m(i) {
339
+ for (var t = i.s;t !== undefined; t = t.n)
340
+ t.S.U(t);
341
+ i.x = undefined;
342
+ i.s = undefined;
343
+ S(i);
428
344
  }
429
- function x(i2) {
345
+ function x(i) {
430
346
  if (r !== this)
431
347
  throw new Error("Out-of-order effect");
432
348
  b(this);
433
- r = i2;
349
+ r = i;
434
350
  this.f &= -2;
435
351
  if (8 & this.f)
436
352
  m(this);
437
353
  t();
438
354
  }
439
- function E(i2, t2) {
440
- this.x = i2;
355
+ function E(i, t) {
356
+ this.x = i;
441
357
  this.m = undefined;
442
358
  this.s = undefined;
443
359
  this.u = undefined;
444
360
  this.f = 32;
445
- this.name = t2 == null ? undefined : t2.name;
361
+ this.name = t == null ? undefined : t.name;
446
362
  if (f)
447
363
  f.push(this);
448
364
  }
449
365
  E.prototype.c = function() {
450
- var i2 = this.S();
366
+ var i = this.S();
451
367
  try {
452
368
  if (8 & this.f)
453
369
  return;
454
370
  if (this.x === undefined)
455
371
  return;
456
- var t2 = this.x();
457
- if (typeof t2 == "function")
458
- this.m = t2;
372
+ var t = this.x();
373
+ if (typeof t == "function")
374
+ this.m = t;
459
375
  } finally {
460
- i2();
376
+ i();
461
377
  }
462
378
  };
463
379
  E.prototype.S = function() {
@@ -468,9 +384,9 @@ E.prototype.S = function() {
468
384
  S(this);
469
385
  _(this);
470
386
  s++;
471
- var i2 = r;
387
+ var i = r;
472
388
  r = this;
473
- return x.bind(this, i2);
389
+ return x.bind(this, i);
474
390
  };
475
391
  E.prototype.N = function() {
476
392
  if (!(2 & this.f)) {
@@ -487,17 +403,17 @@ E.prototype.d = function() {
487
403
  E.prototype.dispose = function() {
488
404
  this.d();
489
405
  };
490
- function j(i2, t2) {
491
- var n = new E(i2, t2);
406
+ function j(i, t) {
407
+ var n = new E(i, t);
492
408
  try {
493
409
  n.c();
494
- } catch (i3) {
410
+ } catch (i) {
495
411
  n.d();
496
- throw i3;
412
+ throw i;
497
413
  }
498
- var r2 = n.d.bind(n);
499
- r2[Symbol.dispose] = r2;
500
- return r2;
414
+ var r = n.d.bind(n);
415
+ r[Symbol.dispose] = r;
416
+ return r;
501
417
  }
502
418
 
503
419
  // src/core/clock.ts
@@ -530,9 +446,9 @@ function matchRoute(pattern, method, path) {
530
446
  if (patternSegments.length !== pathSegments.length && !patternPath.includes("*")) {
531
447
  return false;
532
448
  }
533
- for (let i2 = 0;i2 < patternSegments.length; i2++) {
534
- const patternSeg = patternSegments[i2];
535
- const pathSeg = pathSegments[i2];
449
+ for (let i = 0;i < patternSegments.length; i++) {
450
+ const patternSeg = patternSegments[i];
451
+ const pathSeg = pathSegments[i];
536
452
  if (patternSeg === "*")
537
453
  return true;
538
454
  if (patternSeg?.startsWith(":"))
@@ -561,10 +477,10 @@ function extractRouteParams(pattern, path) {
561
477
  const patternSegments = patternPath.split("/").filter(Boolean);
562
478
  const pathSegments = path.split("/").filter(Boolean);
563
479
  const params = {};
564
- for (let i2 = 0;i2 < patternSegments.length; i2++) {
565
- const seg = patternSegments[i2];
480
+ for (let i = 0;i < patternSegments.length; i++) {
481
+ const seg = patternSegments[i];
566
482
  if (seg?.startsWith(":")) {
567
- const value = pathSegments[i2];
483
+ const value = pathSegments[i];
568
484
  if (value !== undefined)
569
485
  params[seg.slice(1)] = value;
570
486
  }
@@ -572,6 +488,17 @@ function extractRouteParams(pattern, path) {
572
488
  return params;
573
489
  }
574
490
 
491
+ // src/shared/lib/guards.ts
492
+ function hasKeyInObject(input, key) {
493
+ return typeof input === "object" && input !== null && Object.hasOwn(input, key);
494
+ }
495
+ function isRecord(input) {
496
+ return typeof input === "object" && input !== null && !Array.isArray(input);
497
+ }
498
+ function assertNever(value) {
499
+ throw new Error(`assertNever: unexpected value ${JSON.stringify(value)}`);
500
+ }
501
+
575
502
  // src/client/wrapper.ts
576
503
  var HTTP_METHODS = new Set(["get", "post", "put", "patch", "delete", "head", "options"]);
577
504
  function propOf(node, key) {
@@ -750,4 +677,4 @@ export {
750
677
  createPollyClient
751
678
  };
752
679
 
753
- //# debugId=EB4DE1B3D3F4C04F64756E2164756E21
680
+ //# debugId=CE235DB7AEBCF1D864756E2164756E21