@graffiti-garden/wrapper-vue 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  var pe = Object.defineProperty;
2
- var de = (t, r, e) => r in t ? pe(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
- var v = (t, r, e) => de(t, typeof r != "symbol" ? r + "" : r, e);
4
- import { inject as X, ref as N, computed as ye, watch as ve, onScopeDispose as me, toValue as j, defineComponent as L, toRef as g, renderSlot as W, unref as b } from "vue";
2
+ var de = (t, n, e) => n in t ? pe(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
+ var v = (t, n, e) => de(t, typeof n != "symbol" ? n + "" : n, e);
4
+ import { inject as X, ref as U, computed as ye, watch as ve, onScopeDispose as me, toValue as P, defineComponent as L, toRef as w, renderSlot as W, unref as m } from "vue";
5
5
  const Y = Symbol(), Z = Symbol();
6
- function M() {
6
+ function B() {
7
7
  const t = X(Y);
8
8
  if (!t)
9
9
  throw new Error(
@@ -12,7 +12,7 @@ function M() {
12
12
  return t;
13
13
  }
14
14
  function Le() {
15
- return M();
15
+ return B();
16
16
  }
17
17
  function ee() {
18
18
  const t = X(Z);
@@ -22,253 +22,326 @@ function ee() {
22
22
  );
23
23
  return t;
24
24
  }
25
- var we = class {
26
- }, be = class te extends Error {
27
- constructor(r) {
28
- super(r), this.name = "GraffitiErrorNotFound", Object.setPrototypeOf(this, te.prototype);
25
+ var be = class {
26
+ }, we = class te extends Error {
27
+ constructor(n) {
28
+ super(n), this.name = "GraffitiErrorNotFound", Object.setPrototypeOf(this, te.prototype);
29
29
  }
30
- }, ge = class re extends Error {
31
- constructor(r) {
32
- super(r), this.name = "GraffitiErrorInvalidSchema", Object.setPrototypeOf(this, re.prototype);
30
+ }, ge = class ne extends Error {
31
+ constructor(n) {
32
+ super(n), this.name = "GraffitiErrorInvalidSchema", Object.setPrototypeOf(this, ne.prototype);
33
33
  }
34
- }, Pe = class ne extends Error {
35
- constructor(r) {
36
- super(r), this.name = "GraffitiErrorPatchTestFailed", Object.setPrototypeOf(this, ne.prototype);
34
+ }, Pe = class re extends Error {
35
+ constructor(n) {
36
+ super(n), this.name = "GraffitiErrorPatchTestFailed", Object.setPrototypeOf(this, re.prototype);
37
37
  }
38
- }, xe = class ie extends Error {
39
- constructor(r) {
40
- super(r), this.name = "GraffitiErrorPatchError", Object.setPrototypeOf(this, ie.prototype);
38
+ }, je = class ie extends Error {
39
+ constructor(n) {
40
+ super(n), this.name = "GraffitiErrorPatchError", Object.setPrototypeOf(this, ie.prototype);
41
41
  }
42
42
  };
43
- class je {
44
- constructor(r) {
45
- v(this, "poll", async (r) => {
43
+ class xe {
44
+ constructor(n) {
45
+ v(this, "poll", async (n) => {
46
46
  let e;
47
- const n = this.getter;
47
+ const r = this.getter;
48
48
  try {
49
- e = await n();
49
+ e = await r();
50
50
  } catch {
51
- this.getter === n && r(null);
51
+ this.getter === r && n(null);
52
52
  return;
53
53
  }
54
- this.getter === n && r({ object: e });
54
+ this.getter === r && n({ object: e });
55
55
  });
56
- this.getter = r;
56
+ this.getter = n;
57
57
  }
58
58
  clear() {
59
59
  }
60
60
  }
61
61
  class oe {
62
- constructor(r) {
62
+ constructor(n) {
63
63
  v(this, "iterator");
64
64
  v(this, "continue");
65
- v(this, "poll", async (r) => {
65
+ v(this, "poll", async (n) => {
66
66
  if (!this.iterator)
67
67
  if (this.continue)
68
68
  try {
69
69
  this.iterator = this.continue();
70
70
  } catch (e) {
71
- if (e instanceof be)
72
- r("clear"), this.iterator = this.streamFactory();
71
+ if (e instanceof we)
72
+ n("clear"), this.iterator = this.streamFactory();
73
73
  else
74
74
  throw e;
75
75
  }
76
76
  else
77
77
  this.iterator = this.streamFactory();
78
78
  for (; this.iterator; ) {
79
- const e = this.iterator, n = await e.next();
79
+ const e = this.iterator, r = await e.next();
80
80
  if (e === this.iterator) {
81
- if (n.done) {
82
- n.value && (this.iterator = void 0, this.continue = n.value.continue);
81
+ if (r.done) {
82
+ r.value && (this.iterator = void 0, this.continue = r.value.continue);
83
83
  break;
84
84
  }
85
- if (n.value.error) {
86
- console.error(n.value.error);
85
+ if (r.value.error) {
86
+ console.error(r.value.error);
87
87
  continue;
88
88
  }
89
- r(n.value);
89
+ n(r.value);
90
90
  }
91
91
  }
92
92
  });
93
- this.streamFactory = r;
93
+ this.streamFactory = n;
94
94
  }
95
95
  clear() {
96
96
  if (this.iterator) {
97
- const r = this.iterator;
97
+ const n = this.iterator;
98
98
  this.iterator.return({
99
- continue: () => r,
99
+ continue: () => n,
100
100
  cursor: ""
101
101
  });
102
102
  }
103
103
  this.iterator = void 0, this.continue = void 0;
104
104
  }
105
105
  }
106
- function se(t, r) {
107
- return !r || t.object.lastModified > r.object.lastModified || t.object.lastModified === r.object.lastModified && !t.tombstone && !!r.tombstone;
106
+ function se(t, n) {
107
+ return !n || t.object.lastModified > n.object.lastModified || t.object.lastModified === n.object.lastModified && !t.tombstone && !!n.tombstone;
108
108
  }
109
109
  class Oe {
110
110
  constructor() {
111
- v(this, "entry", N());
111
+ v(this, "entry", U());
112
112
  }
113
113
  get result() {
114
114
  return ye(() => {
115
- const r = this.entry.value;
116
- return r && (r.tombstone ? null : r.object);
115
+ const n = this.entry.value;
116
+ return n && (n.tombstone ? null : n.object);
117
117
  });
118
118
  }
119
119
  clear() {
120
120
  this.entry.value = void 0;
121
121
  }
122
- onEntry(r) {
123
- if (r === "clear") {
122
+ onEntry(n) {
123
+ if (n === "clear") {
124
124
  this.clear();
125
125
  return;
126
126
  }
127
- (!r || se(r, this.entry.value)) && (this.entry.value = r);
127
+ (!n || se(n, this.entry.value)) && (this.entry.value = n);
128
128
  }
129
129
  }
130
130
  class ae {
131
- constructor(r) {
132
- v(this, "results", N([]));
131
+ constructor(n) {
132
+ v(this, "results", U([]));
133
133
  v(this, "resultsRaw", /* @__PURE__ */ new Map());
134
134
  v(this, "batchFlattenTimer");
135
- this.graffiti = r;
135
+ this.graffiti = n;
136
136
  }
137
137
  clear() {
138
138
  this.resultsRaw.clear(), this.results.value = [], clearTimeout(this.batchFlattenTimer), this.batchFlattenTimer = void 0;
139
139
  }
140
140
  flattenResults() {
141
- this.results.value = Array.from(this.resultsRaw.values()).reduce((r, e) => (e.tombstone || r.push(e.object), r), []);
141
+ this.results.value = Array.from(this.resultsRaw.values()).reduce((n, e) => (e.tombstone || n.push(e.object), n), []);
142
142
  }
143
- onEntry(r) {
144
- if (!r) return;
145
- if (r === "clear") {
143
+ onEntry(n) {
144
+ if (!n) return;
145
+ if (n === "clear") {
146
146
  this.clear();
147
147
  return;
148
148
  }
149
- const e = this.resultsRaw.get(r.object.url);
150
- se(r, e) && (this.resultsRaw.set(r.object.url, r), this.batchFlattenTimer || (this.batchFlattenTimer = setTimeout(() => {
149
+ const e = this.resultsRaw.get(n.object.url);
150
+ se(n, e) && (this.resultsRaw.set(n.object.url, n), this.batchFlattenTimer || (this.batchFlattenTimer = setTimeout(() => {
151
151
  this.flattenResults(), this.batchFlattenTimer = void 0;
152
152
  }, 0)));
153
153
  }
154
154
  }
155
- function J(t, r, e, n) {
156
- let o;
157
- async function i() {
158
- o = e();
159
- for await (const u of o) {
160
- if (u.error) {
161
- console.error(u.error);
155
+ function J(t, n, e, r, o) {
156
+ let i;
157
+ async function a() {
158
+ i = e();
159
+ for await (const f of i) {
160
+ if (f.error) {
161
+ console.error(f.error);
162
162
  continue;
163
163
  }
164
- t.onEntry(u);
164
+ t.onEntry(f);
165
165
  }
166
166
  }
167
- const a = () => r.poll(t.onEntry.bind(t)), l = N(!1);
167
+ let c = !1;
168
+ const l = async () => {
169
+ if (!c) {
170
+ c = !0;
171
+ try {
172
+ await n.poll(t.onEntry.bind(t));
173
+ } finally {
174
+ c = !1, P(o) && l();
175
+ }
176
+ }
177
+ }, s = U(!1);
168
178
  return ve(
169
- n,
170
- async (u, s) => {
171
- if (JSON.stringify(u) !== JSON.stringify(s)) {
172
- o == null || o.return(null), t.clear(), r.clear(), i(), l.value = !0;
179
+ r,
180
+ async (f, p) => {
181
+ if (JSON.stringify(f) !== JSON.stringify(p)) {
182
+ i == null || i.return(null), t.clear(), n.clear(), a(), s.value = !0;
173
183
  try {
174
- await a();
184
+ await l();
175
185
  } finally {
176
- l.value = !1;
186
+ s.value = !1;
177
187
  }
178
188
  }
179
189
  },
180
190
  {
181
191
  immediate: !0
182
192
  }
183
- ), me(() => o == null ? void 0 : o.return(null)), { poll: a, isPolling: l };
193
+ ), me(() => i == null ? void 0 : i.return(null)), { poll: l, isInitialPolling: s };
184
194
  }
185
- function ue(t, r) {
195
+ function ue(t, n) {
186
196
  return () => {
187
- const e = j(r);
197
+ const e = P(n);
188
198
  return e === void 0 ? t == null ? void 0 : t.value : e;
189
199
  };
190
200
  }
191
201
  function S(t) {
192
- return t.map((r) => r());
202
+ return t.map((n) => n());
193
203
  }
194
- function Ee(t, r, e) {
195
- const n = M(), o = ee(), i = () => j(t), a = () => j(r), l = ue(o, e), u = [i, a, l], s = () => n.synchronizeDiscover(...S(u)), f = () => n.discover(...S(u)), p = new ae(n), c = new oe(f), { poll: d, isPolling: h } = J(
196
- p,
197
- c,
204
+ function Ee(t, n, e, r = !1) {
205
+ const o = B(), i = ee(), a = () => P(t), c = () => P(n), l = ue(i, e), s = [a, c, l], f = () => o.synchronizeDiscover(...S(s)), p = () => o.discover(...S(s)), u = new ae(o), d = new oe(p), { poll: h, isInitialPolling: y } = J(
206
+ u,
207
+ d,
208
+ f,
198
209
  s,
199
- u
210
+ r
200
211
  );
201
212
  return {
202
213
  /**
203
- * A [Ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
204
- * an array of Graffiti objects. All tombstoned objects have been filtered out.
214
+ * A [ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
215
+ * an array of Graffiti objects.
205
216
  */
206
- results: p.results,
217
+ objects: u.results,
218
+ /**
219
+ * @deprecated Use {@link objects} instead.
220
+ */
221
+ get results() {
222
+ return console.warn(
223
+ "The `results` property is deprecated. Use `objects` instead."
224
+ ), this.objects;
225
+ },
207
226
  /**
208
227
  * A method to poll for new results.
209
228
  */
210
- poll: d,
229
+ poll: h,
211
230
  /**
212
- * A boolean [Ref](https://vuejs.org/api/reactivity-core.html#ref)
213
- * that indicates if the poll is currently running.
231
+ * A boolean [ref](https://vuejs.org/api/reactivity-core.html#ref)
232
+ * that indicates if the *first* poll is currently running.
214
233
  * Useful to show a loading spinner or disable a button.
234
+ *
235
+ * This also tracks new polls when the arguments have changed,
236
+ * but it does not track ongoing polls from either calling
237
+ * {@link poll} or using the `autopoll` argument.
215
238
  */
216
- isPolling: h
239
+ isInitialPolling: y,
240
+ /**
241
+ * @deprecated Use {@link isInitialPolling} instead.
242
+ */
243
+ get isPolling() {
244
+ return console.warn(
245
+ "The `isPolling` property is deprecated. Use `isInitialPolling` instead."
246
+ ), this.isInitialPolling;
247
+ }
217
248
  };
218
249
  }
219
- function Se(t, r, e) {
220
- const n = M(), o = ee(), i = () => j(t), a = () => j(r), l = ue(o, e), u = [
221
- i,
250
+ function Se(t, n, e, r = !1) {
251
+ const o = B(), i = ee(), a = () => P(t), c = () => P(n), l = ue(i, e), s = [
222
252
  a,
253
+ c,
223
254
  l
224
- ], s = () => n.synchronizeGet(...S(u)), f = new Oe(), p = () => n.get(...S(u)), c = new je(p), { poll: d, isPolling: h } = J(
255
+ ], f = () => o.synchronizeGet(...S(s)), p = new Oe(), u = () => o.get(...S(s)), d = new xe(u), { poll: h, isInitialPolling: y } = J(
256
+ p,
257
+ d,
225
258
  f,
226
- c,
227
259
  s,
228
- u
260
+ r
229
261
  );
230
262
  return {
231
263
  /**
232
- * A [Ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
264
+ * A [ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
233
265
  * the retrieved Graffiti object, if it exists. If the object has been deleted,
234
266
  * the result is `null`. If the object is still being fetched, the result is `undefined`.
235
267
  */
236
- result: f.result,
268
+ object: p.result,
269
+ /**
270
+ * @deprecated Use {@link object} instead.
271
+ */
272
+ get result() {
273
+ return console.warn(
274
+ "The `result` property is deprecated. Use `object` instead."
275
+ ), this.object;
276
+ },
237
277
  /**
238
278
  * A method to poll for new results.
239
279
  */
240
- poll: d,
280
+ poll: h,
241
281
  /**
242
- * A boolean [Ref](https://vuejs.org/api/reactivity-core.html#ref)
243
- * that indicates if the poll is currently running.
282
+ * A boolean [ref](https://vuejs.org/api/reactivity-core.html#ref)
283
+ * that indicates if the *first* poll is currently running.
244
284
  * Useful to show a loading spinner or disable a button.
285
+ *
286
+ * This also tracks new polls when the arguments have changed,
287
+ * but it does not track ongoing polls from either calling
288
+ * {@link poll} or using the `autopoll` argument.
289
+ */
290
+ isInitialPolling: y,
291
+ /**
292
+ * @deprecated Use {@link isInitialPolling} instead.
245
293
  */
246
- isPolling: h
294
+ get isPolling() {
295
+ return console.warn(
296
+ "The `isPolling` property is deprecated. Use `isInitialPolling` instead."
297
+ ), this.isInitialPolling;
298
+ }
247
299
  };
248
300
  }
249
- function Ge(t, r) {
250
- const e = M(), i = [() => j(t), () => j(r)], a = () => e.synchronizeRecoverOrphans(...S(i)), l = new ae(e), u = () => e.recoverOrphans(...S(i)), s = new oe(u), { poll: f, isPolling: p } = J(
301
+ function Ge(t, n, e = !1) {
302
+ const r = B(), a = [() => P(t), () => P(n)], c = () => r.synchronizeRecoverOrphans(...S(a)), l = new ae(r), s = () => r.recoverOrphans(...S(a)), f = new oe(s), { poll: p, isInitialPolling: u } = J(
251
303
  l,
252
- s,
304
+ f,
305
+ c,
253
306
  a,
254
- i
307
+ e
255
308
  );
256
309
  return {
257
310
  /**
258
- * A [Ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
259
- * an array of Graffiti objects. All tombstoned objects have been filtered out.
311
+ * A [ref](https://vuejs.org/api/reactivity-core.html#ref) that contains
312
+ * an array of Graffiti objects.
260
313
  */
261
- results: l.results,
314
+ objects: l.results,
315
+ /**
316
+ * @deprecated Use {@link objects} instead.
317
+ */
318
+ get results() {
319
+ return console.warn(
320
+ "The `result` property is deprecated. Use `object` instead."
321
+ ), this.objects;
322
+ },
262
323
  /**
263
324
  * A method to poll for new results.
264
325
  */
265
- poll: f,
326
+ poll: p,
266
327
  /**
267
- * A boolean [Ref](https://vuejs.org/api/reactivity-core.html#ref)
268
- * that indicates if the poll is currently running.
328
+ * A boolean [ref](https://vuejs.org/api/reactivity-core.html#ref)
329
+ * that indicates if the *first* poll is currently running.
269
330
  * Useful to show a loading spinner or disable a button.
331
+ *
332
+ * This also tracks new polls when the arguments have changed,
333
+ * but it does not track ongoing polls from either calling
334
+ * {@link poll} or using the `autopoll` argument.
335
+ */
336
+ isInitialPolling: u,
337
+ /**
338
+ * @deprecated Use {@link isInitialPolling} instead.
270
339
  */
271
- isPolling: p
340
+ get isPolling() {
341
+ return console.warn(
342
+ "The `isPolling` property is deprecated. Use `isInitialPolling` instead."
343
+ ), this.isInitialPolling;
344
+ }
272
345
  };
273
346
  }
274
347
  const ce = /* @__PURE__ */ L({
@@ -276,18 +349,22 @@ const ce = /* @__PURE__ */ L({
276
349
  props: {
277
350
  channels: {},
278
351
  schema: {},
279
- session: {}
352
+ session: {},
353
+ autopoll: { type: Boolean }
280
354
  },
281
355
  setup(t) {
282
- const r = t, { results: e, poll: n, isPolling: o } = Ee(
283
- g(r, "channels"),
284
- g(r, "schema"),
285
- g(r, "session")
356
+ const n = t, { objects: e, results: r, poll: o, isPolling: i, isInitialPolling: a } = Ee(
357
+ w(n, "channels"),
358
+ w(n, "schema"),
359
+ w(n, "session"),
360
+ w(n, "autopoll")
286
361
  );
287
- return (i, a) => W(i.$slots, "default", {
288
- results: b(e),
289
- poll: b(n),
290
- isPolling: b(o)
362
+ return (c, l) => W(c.$slots, "default", {
363
+ objects: m(e),
364
+ results: m(r),
365
+ poll: m(o),
366
+ isPolling: m(i),
367
+ isInitialPolling: m(a)
291
368
  });
292
369
  }
293
370
  }), le = /* @__PURE__ */ L({
@@ -295,35 +372,43 @@ const ce = /* @__PURE__ */ L({
295
372
  props: {
296
373
  url: {},
297
374
  schema: {},
298
- session: {}
375
+ session: {},
376
+ autopoll: { type: Boolean }
299
377
  },
300
378
  setup(t) {
301
- const r = t, { result: e, poll: n, isPolling: o } = Se(
302
- g(r, "url"),
303
- g(r, "schema"),
304
- g(r, "session")
379
+ const n = t, { object: e, result: r, poll: o, isPolling: i, isInitialPolling: a } = Se(
380
+ w(n, "url"),
381
+ w(n, "schema"),
382
+ w(n, "session"),
383
+ w(n, "autopoll")
305
384
  );
306
- return (i, a) => W(i.$slots, "default", {
307
- result: b(e),
308
- poll: b(n),
309
- isPolling: b(o)
385
+ return (c, l) => W(c.$slots, "default", {
386
+ object: m(e),
387
+ result: m(r),
388
+ poll: m(o),
389
+ isPolling: m(i),
390
+ isInitialPolling: m(a)
310
391
  });
311
392
  }
312
393
  }), fe = /* @__PURE__ */ L({
313
394
  __name: "RecoverOrphans",
314
395
  props: {
315
396
  schema: {},
316
- session: {}
397
+ session: {},
398
+ autopoll: { type: Boolean }
317
399
  },
318
400
  setup(t) {
319
- const r = t, { results: e, poll: n, isPolling: o } = Ge(
320
- g(r, "schema"),
321
- g(r, "session")
401
+ const n = t, { objects: e, results: r, poll: o, isPolling: i, isInitialPolling: a } = Ge(
402
+ w(n, "schema"),
403
+ w(n, "session"),
404
+ w(n, "autopoll")
322
405
  );
323
- return (i, a) => W(i.$slots, "default", {
324
- results: b(e),
325
- poll: b(n),
326
- isPolling: b(o)
406
+ return (c, l) => W(c.$slots, "default", {
407
+ objects: m(e),
408
+ results: m(r),
409
+ poll: m(o),
410
+ isPolling: m(i),
411
+ isInitialPolling: m(a)
327
412
  });
328
413
  }
329
414
  });
@@ -341,64 +426,64 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
341
426
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
342
427
  PERFORMANCE OF THIS SOFTWARE.
343
428
  ***************************************************************************** */
344
- var C = function(t, r) {
345
- return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
346
- e.__proto__ = n;
347
- } || function(e, n) {
348
- for (var o in n) n.hasOwnProperty(o) && (e[o] = n[o]);
349
- }, C(t, r);
429
+ var V = function(t, n) {
430
+ return V = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
431
+ e.__proto__ = r;
432
+ } || function(e, r) {
433
+ for (var o in r) r.hasOwnProperty(o) && (e[o] = r[o]);
434
+ }, V(t, n);
350
435
  };
351
- function _e(t, r) {
352
- C(t, r);
436
+ function _e(t, n) {
437
+ V(t, n);
353
438
  function e() {
354
439
  this.constructor = t;
355
440
  }
356
- t.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
441
+ t.prototype = n === null ? Object.create(n) : (e.prototype = n.prototype, new e());
357
442
  }
358
- function G(t, r, e, n) {
443
+ function G(t, n, e, r) {
359
444
  function o(i) {
360
445
  return i instanceof e ? i : new e(function(a) {
361
446
  a(i);
362
447
  });
363
448
  }
364
449
  return new (e || (e = Promise))(function(i, a) {
365
- function l(f) {
450
+ function c(f) {
366
451
  try {
367
- s(n.next(f));
452
+ s(r.next(f));
368
453
  } catch (p) {
369
454
  a(p);
370
455
  }
371
456
  }
372
- function u(f) {
457
+ function l(f) {
373
458
  try {
374
- s(n.throw(f));
459
+ s(r.throw(f));
375
460
  } catch (p) {
376
461
  a(p);
377
462
  }
378
463
  }
379
464
  function s(f) {
380
- f.done ? i(f.value) : o(f.value).then(l, u);
465
+ f.done ? i(f.value) : o(f.value).then(c, l);
381
466
  }
382
- s((n = n.apply(t, [])).next());
467
+ s((r = r.apply(t, [])).next());
383
468
  });
384
469
  }
385
- function P(t, r) {
470
+ function j(t, n) {
386
471
  var e = { label: 0, sent: function() {
387
472
  if (i[0] & 1) throw i[1];
388
473
  return i[1];
389
- }, trys: [], ops: [] }, n, o, i, a;
390
- return a = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
474
+ }, trys: [], ops: [] }, r, o, i, a;
475
+ return a = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
391
476
  return this;
392
477
  }), a;
393
- function l(s) {
478
+ function c(s) {
394
479
  return function(f) {
395
- return u([s, f]);
480
+ return l([s, f]);
396
481
  };
397
482
  }
398
- function u(s) {
399
- if (n) throw new TypeError("Generator is already executing.");
483
+ function l(s) {
484
+ if (r) throw new TypeError("Generator is already executing.");
400
485
  for (; e; ) try {
401
- if (n = 1, o && (i = s[0] & 2 ? o.return : s[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, s[1])).done) return i;
486
+ if (r = 1, o && (i = s[0] & 2 ? o.return : s[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, s[1])).done) return i;
402
487
  switch (o = 0, i && (s = [s[0] & 2, i.value]), s[0]) {
403
488
  case 0:
404
489
  case 1:
@@ -432,81 +517,81 @@ function P(t, r) {
432
517
  i[2] && e.ops.pop(), e.trys.pop();
433
518
  continue;
434
519
  }
435
- s = r.call(t, e);
520
+ s = n.call(t, e);
436
521
  } catch (f) {
437
522
  s = [6, f], o = 0;
438
523
  } finally {
439
- n = i = 0;
524
+ r = i = 0;
440
525
  }
441
526
  if (s[0] & 5) throw s[1];
442
527
  return { value: s[0] ? s[1] : void 0, done: !0 };
443
528
  }
444
529
  }
445
530
  function _(t) {
446
- var r = typeof Symbol == "function" && Symbol.iterator, e = r && t[r], n = 0;
531
+ var n = typeof Symbol == "function" && Symbol.iterator, e = n && t[n], r = 0;
447
532
  if (e) return e.call(t);
448
533
  if (t && typeof t.length == "number") return {
449
534
  next: function() {
450
- return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
535
+ return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t };
451
536
  }
452
537
  };
453
- throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
538
+ throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
454
539
  }
455
- function z(t) {
456
- return this instanceof z ? (this.v = t, this) : new z(t);
540
+ function T(t) {
541
+ return this instanceof T ? (this.v = t, this) : new T(t);
457
542
  }
458
- function Re(t, r, e) {
543
+ function Ie(t, n, e) {
459
544
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
460
- var n = e.apply(t, r || []), o, i = [];
545
+ var r = e.apply(t, n || []), o, i = [];
461
546
  return o = {}, a("next"), a("throw"), a("return"), o[Symbol.asyncIterator] = function() {
462
547
  return this;
463
548
  }, o;
464
- function a(c) {
465
- n[c] && (o[c] = function(d) {
549
+ function a(u) {
550
+ r[u] && (o[u] = function(d) {
466
551
  return new Promise(function(h, y) {
467
- i.push([c, d, h, y]) > 1 || l(c, d);
552
+ i.push([u, d, h, y]) > 1 || c(u, d);
468
553
  });
469
554
  });
470
555
  }
471
- function l(c, d) {
556
+ function c(u, d) {
472
557
  try {
473
- u(n[c](d));
558
+ l(r[u](d));
474
559
  } catch (h) {
475
560
  p(i[0][3], h);
476
561
  }
477
562
  }
478
- function u(c) {
479
- c.value instanceof z ? Promise.resolve(c.value.v).then(s, f) : p(i[0][2], c);
563
+ function l(u) {
564
+ u.value instanceof T ? Promise.resolve(u.value.v).then(s, f) : p(i[0][2], u);
480
565
  }
481
- function s(c) {
482
- l("next", c);
566
+ function s(u) {
567
+ c("next", u);
483
568
  }
484
- function f(c) {
485
- l("throw", c);
569
+ function f(u) {
570
+ c("throw", u);
486
571
  }
487
- function p(c, d) {
488
- c(d), i.shift(), i.length && l(i[0][0], i[0][1]);
572
+ function p(u, d) {
573
+ u(d), i.shift(), i.length && c(i[0][0], i[0][1]);
489
574
  }
490
575
  }
491
576
  var he = (
492
577
  /** @class */
493
578
  function(t) {
494
- _e(r, t);
495
- function r(e) {
496
- var n = t.call(this, e) || this;
497
- return Object.defineProperty(n, "name", {
579
+ _e(n, t);
580
+ function n(e) {
581
+ var r = t.call(this, e) || this;
582
+ return Object.defineProperty(r, "name", {
498
583
  value: "RepeaterOverflowError",
499
584
  enumerable: !1
500
- }), typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf(n, n.constructor.prototype) : n.__proto__ = n.constructor.prototype, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(n, n.constructor), n;
585
+ }), typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf(r, r.constructor.prototype) : r.__proto__ = r.constructor.prototype, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(r, r.constructor), r;
501
586
  }
502
- return r;
587
+ return n;
503
588
  }(Error)
504
589
  );
505
590
  (function() {
506
- function t(r) {
507
- if (r < 0)
591
+ function t(n) {
592
+ if (n < 0)
508
593
  throw new RangeError("Capacity may not be less than 0");
509
- this._c = r, this._q = [];
594
+ this._c = n, this._q = [];
510
595
  }
511
596
  return Object.defineProperty(t.prototype, "empty", {
512
597
  get: function() {
@@ -520,10 +605,10 @@ var he = (
520
605
  },
521
606
  enumerable: !1,
522
607
  configurable: !0
523
- }), t.prototype.add = function(r) {
608
+ }), t.prototype.add = function(n) {
524
609
  if (this.full)
525
610
  throw new Error("Buffer full");
526
- this._q.push(r);
611
+ this._q.push(n);
527
612
  }, t.prototype.remove = function() {
528
613
  if (this.empty)
529
614
  throw new Error("Buffer empty");
@@ -531,10 +616,10 @@ var he = (
531
616
  }, t;
532
617
  })();
533
618
  (function() {
534
- function t(r) {
535
- if (r < 1)
619
+ function t(n) {
620
+ if (n < 1)
536
621
  throw new RangeError("Capacity may not be less than 1");
537
- this._c = r, this._q = [];
622
+ this._c = n, this._q = [];
538
623
  }
539
624
  return Object.defineProperty(t.prototype, "empty", {
540
625
  get: function() {
@@ -548,10 +633,10 @@ var he = (
548
633
  },
549
634
  enumerable: !1,
550
635
  configurable: !0
551
- }), t.prototype.add = function(r) {
636
+ }), t.prototype.add = function(n) {
552
637
  for (; this._q.length >= this._c; )
553
638
  this._q.shift();
554
- this._q.push(r);
639
+ this._q.push(n);
555
640
  }, t.prototype.remove = function() {
556
641
  if (this.empty)
557
642
  throw new Error("Buffer empty");
@@ -559,10 +644,10 @@ var he = (
559
644
  }, t;
560
645
  })();
561
646
  (function() {
562
- function t(r) {
563
- if (r < 1)
647
+ function t(n) {
648
+ if (n < 1)
564
649
  throw new RangeError("Capacity may not be less than 1");
565
- this._c = r, this._q = [];
650
+ this._c = n, this._q = [];
566
651
  }
567
652
  return Object.defineProperty(t.prototype, "empty", {
568
653
  get: function() {
@@ -576,24 +661,24 @@ var he = (
576
661
  },
577
662
  enumerable: !1,
578
663
  configurable: !0
579
- }), t.prototype.add = function(r) {
580
- this._q.length < this._c && this._q.push(r);
664
+ }), t.prototype.add = function(n) {
665
+ this._q.length < this._c && this._q.push(n);
581
666
  }, t.prototype.remove = function() {
582
667
  if (this.empty)
583
668
  throw new Error("Buffer empty");
584
669
  return this._q.shift();
585
670
  }, t;
586
671
  })();
587
- function $(t) {
672
+ function C(t) {
588
673
  t != null && typeof t.then == "function" && t.then(A, A);
589
674
  }
590
- var B = 0, H = 1, O = 2, D = 3, U = 4, I = 1024, A = function() {
675
+ var M = 0, H = 1, O = 2, q = 3, $ = 4, D = 1024, A = function() {
591
676
  };
592
677
  function E(t) {
593
- var r = t.err, e = Promise.resolve(t.execution).then(function(n) {
594
- if (r != null)
595
- throw r;
596
- return n;
678
+ var n = t.err, e = Promise.resolve(t.execution).then(function(r) {
679
+ if (n != null)
680
+ throw n;
681
+ return r;
597
682
  });
598
683
  return t.err = void 0, t.execution = e.then(function() {
599
684
  }, function() {
@@ -601,124 +686,124 @@ function E(t) {
601
686
  return e;
602
687
  });
603
688
  }
604
- function x(t, r) {
605
- var e = t.state >= D;
606
- return Promise.resolve(r).then(function(n) {
607
- return !e && t.state >= U ? E(t).then(function(o) {
689
+ function x(t, n) {
690
+ var e = t.state >= q;
691
+ return Promise.resolve(n).then(function(r) {
692
+ return !e && t.state >= $ ? E(t).then(function(o) {
608
693
  return {
609
694
  value: o,
610
695
  done: !0
611
696
  };
612
- }) : { value: n, done: e };
697
+ }) : { value: r, done: e };
613
698
  });
614
699
  }
615
- function K(t, r) {
616
- var e, n;
700
+ function K(t, n) {
701
+ var e, r;
617
702
  if (!(t.state >= O))
618
- if (t.state = O, t.onnext(), t.onstop(), t.err == null && (t.err = r), t.pushes.length === 0 && (typeof t.buffer > "u" || t.buffer.empty))
619
- R(t);
703
+ if (t.state = O, t.onnext(), t.onstop(), t.err == null && (t.err = n), t.pushes.length === 0 && (typeof t.buffer > "u" || t.buffer.empty))
704
+ I(t);
620
705
  else
621
706
  try {
622
707
  for (var o = _(t.pushes), i = o.next(); !i.done; i = o.next()) {
623
708
  var a = i.value;
624
709
  a.resolve();
625
710
  }
626
- } catch (l) {
627
- e = { error: l };
711
+ } catch (c) {
712
+ e = { error: c };
628
713
  } finally {
629
714
  try {
630
- i && !i.done && (n = o.return) && n.call(o);
715
+ i && !i.done && (r = o.return) && r.call(o);
631
716
  } finally {
632
717
  if (e) throw e.error;
633
718
  }
634
719
  }
635
720
  }
636
- function R(t) {
637
- var r, e;
638
- if (!(t.state >= D)) {
639
- t.state < O && K(t), t.state = D, t.buffer = void 0;
721
+ function I(t) {
722
+ var n, e;
723
+ if (!(t.state >= q)) {
724
+ t.state < O && K(t), t.state = q, t.buffer = void 0;
640
725
  try {
641
- for (var n = _(t.nexts), o = n.next(); !o.done; o = n.next()) {
726
+ for (var r = _(t.nexts), o = r.next(); !o.done; o = r.next()) {
642
727
  var i = o.value, a = t.pending === void 0 ? E(t) : t.pending.then(function() {
643
728
  return E(t);
644
729
  });
645
730
  i.resolve(x(t, a));
646
731
  }
647
- } catch (l) {
648
- r = { error: l };
732
+ } catch (c) {
733
+ n = { error: c };
649
734
  } finally {
650
735
  try {
651
- o && !o.done && (e = n.return) && e.call(n);
736
+ o && !o.done && (e = r.return) && e.call(r);
652
737
  } finally {
653
- if (r) throw r.error;
738
+ if (n) throw n.error;
654
739
  }
655
740
  }
656
741
  t.pushes = [], t.nexts = [];
657
742
  }
658
743
  }
659
744
  function Q(t) {
660
- t.state >= U || (t.state < D && R(t), t.state = U);
745
+ t.state >= $ || (t.state < q && I(t), t.state = $);
661
746
  }
662
- function ze(t, r) {
663
- if ($(r), t.pushes.length >= I)
664
- throw new he("No more than " + I + " pending calls to push are allowed on a single repeater.");
747
+ function Te(t, n) {
748
+ if (C(n), t.pushes.length >= D)
749
+ throw new he("No more than " + D + " pending calls to push are allowed on a single repeater.");
665
750
  if (t.state >= O)
666
751
  return Promise.resolve(void 0);
667
- var e = t.pending === void 0 ? Promise.resolve(r) : t.pending.then(function() {
668
- return r;
752
+ var e = t.pending === void 0 ? Promise.resolve(n) : t.pending.then(function() {
753
+ return n;
669
754
  });
670
- e = e.catch(function(u) {
671
- t.state < O && (t.err = u), Q(t);
755
+ e = e.catch(function(l) {
756
+ t.state < O && (t.err = l), Q(t);
672
757
  });
673
- var n;
758
+ var r;
674
759
  if (t.nexts.length) {
675
760
  var o = t.nexts.shift();
676
- o.resolve(x(t, e)), t.nexts.length ? n = Promise.resolve(t.nexts[0].value) : typeof t.buffer < "u" && !t.buffer.full ? n = Promise.resolve(void 0) : n = new Promise(function(u) {
677
- return t.onnext = u;
761
+ o.resolve(x(t, e)), t.nexts.length ? r = Promise.resolve(t.nexts[0].value) : typeof t.buffer < "u" && !t.buffer.full ? r = Promise.resolve(void 0) : r = new Promise(function(l) {
762
+ return t.onnext = l;
678
763
  });
679
- } else typeof t.buffer < "u" && !t.buffer.full ? (t.buffer.add(e), n = Promise.resolve(void 0)) : n = new Promise(function(u) {
680
- return t.pushes.push({ resolve: u, value: e });
764
+ } else typeof t.buffer < "u" && !t.buffer.full ? (t.buffer.add(e), r = Promise.resolve(void 0)) : r = new Promise(function(l) {
765
+ return t.pushes.push({ resolve: l, value: e });
681
766
  });
682
- var i = !0, a = {}, l = n.catch(function(u) {
767
+ var i = !0, a = {}, c = r.catch(function(l) {
683
768
  if (i)
684
- throw u;
769
+ throw l;
685
770
  });
686
- return a.then = function(u, s) {
687
- return i = !1, Promise.prototype.then.call(n, u, s);
688
- }, a.catch = function(u) {
689
- return i = !1, Promise.prototype.catch.call(n, u);
690
- }, a.finally = n.finally.bind(n), t.pending = e.then(function() {
691
- return l;
692
- }).catch(function(u) {
693
- t.err = u, Q(t);
771
+ return a.then = function(l, s) {
772
+ return i = !1, Promise.prototype.then.call(r, l, s);
773
+ }, a.catch = function(l) {
774
+ return i = !1, Promise.prototype.catch.call(r, l);
775
+ }, a.finally = r.finally.bind(r), t.pending = e.then(function() {
776
+ return c;
777
+ }).catch(function(l) {
778
+ t.err = l, Q(t);
694
779
  }), a;
695
780
  }
696
- function ke(t) {
697
- var r = K.bind(null, t), e = new Promise(function(n) {
698
- return t.onstop = n;
781
+ function Re(t) {
782
+ var n = K.bind(null, t), e = new Promise(function(r) {
783
+ return t.onstop = r;
699
784
  });
700
- return r.then = e.then.bind(e), r.catch = e.catch.bind(e), r.finally = e.finally.bind(e), r;
785
+ return n.then = e.then.bind(e), n.catch = e.catch.bind(e), n.finally = e.finally.bind(e), n;
701
786
  }
702
- function Te(t) {
787
+ function ze(t) {
703
788
  if (!(t.state >= H)) {
704
789
  t.state = H;
705
- var r = ze.bind(null, t), e = ke(t);
706
- t.execution = new Promise(function(n) {
707
- return n(t.executor(r, e));
790
+ var n = Te.bind(null, t), e = Re(t);
791
+ t.execution = new Promise(function(r) {
792
+ return r(t.executor(n, e));
708
793
  }), t.execution.catch(function() {
709
794
  return K(t);
710
795
  });
711
796
  }
712
797
  }
713
- var q = /* @__PURE__ */ new WeakMap(), k = (
798
+ var F = /* @__PURE__ */ new WeakMap(), R = (
714
799
  /** @class */
715
800
  function() {
716
- function t(r, e) {
717
- q.set(this, {
718
- executor: r,
801
+ function t(n, e) {
802
+ F.set(this, {
803
+ executor: n,
719
804
  buffer: e,
720
805
  err: void 0,
721
- state: B,
806
+ state: M,
722
807
  pushes: [],
723
808
  nexts: [],
724
809
  pending: void 0,
@@ -727,62 +812,62 @@ var q = /* @__PURE__ */ new WeakMap(), k = (
727
812
  onstop: A
728
813
  });
729
814
  }
730
- return t.prototype.next = function(r) {
731
- $(r);
732
- var e = q.get(this);
815
+ return t.prototype.next = function(n) {
816
+ C(n);
817
+ var e = F.get(this);
733
818
  if (e === void 0)
734
819
  throw new Error("WeakMap error");
735
- if (e.nexts.length >= I)
736
- throw new he("No more than " + I + " pending calls to next are allowed on a single repeater.");
737
- if (e.state <= B && Te(e), e.onnext(r), typeof e.buffer < "u" && !e.buffer.empty) {
738
- var n = x(e, e.buffer.remove());
820
+ if (e.nexts.length >= D)
821
+ throw new he("No more than " + D + " pending calls to next are allowed on a single repeater.");
822
+ if (e.state <= M && ze(e), e.onnext(n), typeof e.buffer < "u" && !e.buffer.empty) {
823
+ var r = x(e, e.buffer.remove());
739
824
  if (e.pushes.length) {
740
825
  var o = e.pushes.shift();
741
826
  e.buffer.add(o.value), e.onnext = o.resolve;
742
827
  }
743
- return n;
828
+ return r;
744
829
  } else if (e.pushes.length) {
745
830
  var i = e.pushes.shift();
746
831
  return e.onnext = i.resolve, x(e, i.value);
747
832
  } else if (e.state >= O)
748
- return R(e), x(e, E(e));
833
+ return I(e), x(e, E(e));
749
834
  return new Promise(function(a) {
750
- return e.nexts.push({ resolve: a, value: r });
835
+ return e.nexts.push({ resolve: a, value: n });
751
836
  });
752
- }, t.prototype.return = function(r) {
753
- $(r);
754
- var e = q.get(this);
837
+ }, t.prototype.return = function(n) {
838
+ C(n);
839
+ var e = F.get(this);
755
840
  if (e === void 0)
756
841
  throw new Error("WeakMap error");
757
- return R(e), e.execution = Promise.resolve(e.execution).then(function() {
758
- return r;
842
+ return I(e), e.execution = Promise.resolve(e.execution).then(function() {
843
+ return n;
759
844
  }), x(e, E(e));
760
- }, t.prototype.throw = function(r) {
761
- var e = q.get(this);
845
+ }, t.prototype.throw = function(n) {
846
+ var e = F.get(this);
762
847
  if (e === void 0)
763
848
  throw new Error("WeakMap error");
764
- return e.state <= B || e.state >= O || typeof e.buffer < "u" && !e.buffer.empty ? (R(e), e.err == null && (e.err = r), x(e, E(e))) : this.next(Promise.reject(r));
849
+ return e.state <= M || e.state >= O || typeof e.buffer < "u" && !e.buffer.empty ? (I(e), e.err == null && (e.err = n), x(e, E(e))) : this.next(Promise.reject(n));
765
850
  }, t.prototype[Symbol.asyncIterator] = function() {
766
851
  return this;
767
- }, t.race = Fe, t.merge = qe, t.zip = De, t.latest = Ie, t;
852
+ }, t.race = ke, t.merge = Fe, t.zip = qe, t.latest = De, t;
768
853
  }()
769
854
  );
770
- function V(t, r) {
771
- var e, n, o = [], i = function(s) {
855
+ function N(t, n) {
856
+ var e, r, o = [], i = function(s) {
772
857
  s != null && typeof s[Symbol.asyncIterator] == "function" ? o.push(s[Symbol.asyncIterator]()) : s != null && typeof s[Symbol.iterator] == "function" ? o.push(s[Symbol.iterator]()) : o.push(function() {
773
- return Re(this, arguments, function() {
774
- return P(this, function(c) {
775
- switch (c.label) {
858
+ return Ie(this, arguments, function() {
859
+ return j(this, function(u) {
860
+ switch (u.label) {
776
861
  case 0:
777
- return r.yieldValues ? [4, z(s)] : [3, 3];
862
+ return n.yieldValues ? [4, T(s)] : [3, 3];
778
863
  case 1:
779
- return [4, c.sent()];
864
+ return [4, u.sent()];
780
865
  case 2:
781
- c.sent(), c.label = 3;
866
+ u.sent(), u.label = 3;
782
867
  case 3:
783
- return r.returnValues ? [4, z(s)] : [3, 5];
868
+ return n.returnValues ? [4, T(s)] : [3, 5];
784
869
  case 4:
785
- return [2, c.sent()];
870
+ return [2, u.sent()];
786
871
  case 5:
787
872
  return [
788
873
  2
@@ -794,27 +879,27 @@ function V(t, r) {
794
879
  }());
795
880
  };
796
881
  try {
797
- for (var a = _(t), l = a.next(); !l.done; l = a.next()) {
798
- var u = l.value;
799
- i(u);
882
+ for (var a = _(t), c = a.next(); !c.done; c = a.next()) {
883
+ var l = c.value;
884
+ i(l);
800
885
  }
801
886
  } catch (s) {
802
887
  e = { error: s };
803
888
  } finally {
804
889
  try {
805
- l && !l.done && (n = a.return) && n.call(a);
890
+ c && !c.done && (r = a.return) && r.call(a);
806
891
  } finally {
807
892
  if (e) throw e.error;
808
893
  }
809
894
  }
810
895
  return o;
811
896
  }
812
- function Fe(t) {
813
- var r = this, e = V(t, { returnValues: !0 });
814
- return new k(function(n, o) {
815
- return G(r, void 0, void 0, function() {
816
- var i, a, l, u, s, f;
817
- return P(this, function(p) {
897
+ function ke(t) {
898
+ var n = this, e = N(t, { returnValues: !0 });
899
+ return new R(function(r, o) {
900
+ return G(n, void 0, void 0, function() {
901
+ var i, a, c, l, s, f;
902
+ return j(this, function(p) {
818
903
  switch (p.label) {
819
904
  case 0:
820
905
  if (!e.length)
@@ -826,35 +911,35 @@ function Fe(t) {
826
911
  i(), a = !0;
827
912
  }), p.label = 1;
828
913
  case 1:
829
- p.trys.push([1, , 5, 7]), u = void 0, s = 0, f = function() {
830
- var c, d, h, y, m, T;
831
- return P(this, function(F) {
832
- switch (F.label) {
914
+ p.trys.push([1, , 5, 7]), l = void 0, s = 0, f = function() {
915
+ var u, d, h, y, b, z;
916
+ return j(this, function(k) {
917
+ switch (k.label) {
833
918
  case 0:
834
- c = s;
919
+ u = s;
835
920
  try {
836
- for (d = (m = void 0, _(e)), h = d.next(); !h.done; h = d.next())
837
- y = h.value, Promise.resolve(y.next()).then(function(w) {
838
- w.done ? (o(), l === void 0 && (l = w)) : s === c && (s++, i(w));
839
- }, function(w) {
840
- return o(w);
921
+ for (d = (b = void 0, _(e)), h = d.next(); !h.done; h = d.next())
922
+ y = h.value, Promise.resolve(y.next()).then(function(g) {
923
+ g.done ? (o(), c === void 0 && (c = g)) : s === u && (s++, i(g));
924
+ }, function(g) {
925
+ return o(g);
841
926
  });
842
- } catch (w) {
843
- m = { error: w };
927
+ } catch (g) {
928
+ b = { error: g };
844
929
  } finally {
845
930
  try {
846
- h && !h.done && (T = d.return) && T.call(d);
931
+ h && !h.done && (z = d.return) && z.call(d);
847
932
  } finally {
848
- if (m) throw m.error;
933
+ if (b) throw b.error;
849
934
  }
850
935
  }
851
- return [4, new Promise(function(w) {
852
- return i = w;
936
+ return [4, new Promise(function(g) {
937
+ return i = g;
853
938
  })];
854
939
  case 1:
855
- return u = F.sent(), u === void 0 ? [3, 3] : [4, n(u.value)];
940
+ return l = k.sent(), l === void 0 ? [3, 3] : [4, r(l.value)];
856
941
  case 2:
857
- F.sent(), F.label = 3;
942
+ k.sent(), k.label = 3;
858
943
  case 3:
859
944
  return [
860
945
  2
@@ -868,10 +953,10 @@ function Fe(t) {
868
953
  case 3:
869
954
  return p.sent(), [3, 2];
870
955
  case 4:
871
- return [2, l && l.value];
956
+ return [2, c && c.value];
872
957
  case 5:
873
- return o(), [4, Promise.race(e.map(function(c) {
874
- return c.return && c.return();
958
+ return o(), [4, Promise.race(e.map(function(u) {
959
+ return u.return && u.return();
875
960
  }))];
876
961
  case 6:
877
962
  return p.sent(), [
@@ -888,12 +973,12 @@ function Fe(t) {
888
973
  });
889
974
  });
890
975
  }
891
- function qe(t) {
892
- var r = this, e = V(t, { yieldValues: !0 });
893
- return new k(function(n, o) {
894
- return G(r, void 0, void 0, function() {
895
- var i, a, l, u = this;
896
- return P(this, function(s) {
976
+ function Fe(t) {
977
+ var n = this, e = N(t, { yieldValues: !0 });
978
+ return new R(function(r, o) {
979
+ return G(n, void 0, void 0, function() {
980
+ var i, a, c, l = this;
981
+ return j(this, function(s) {
897
982
  switch (s.label) {
898
983
  case 0:
899
984
  if (!e.length)
@@ -905,7 +990,7 @@ function qe(t) {
905
990
  var f, p;
906
991
  a = !0;
907
992
  try {
908
- for (var c = _(i), d = c.next(); !d.done; d = c.next()) {
993
+ for (var u = _(i), d = u.next(); !d.done; d = u.next()) {
909
994
  var h = d.value;
910
995
  h();
911
996
  }
@@ -913,7 +998,7 @@ function qe(t) {
913
998
  f = { error: y };
914
999
  } finally {
915
1000
  try {
916
- d && !d.done && (p = c.return) && p.call(c);
1001
+ d && !d.done && (p = u.return) && p.call(u);
917
1002
  } finally {
918
1003
  if (f) throw f.error;
919
1004
  }
@@ -921,9 +1006,9 @@ function qe(t) {
921
1006
  }), s.label = 1;
922
1007
  case 1:
923
1008
  return s.trys.push([1, , 3, 4]), [4, Promise.all(e.map(function(f, p) {
924
- return G(u, void 0, void 0, function() {
925
- var c, d;
926
- return P(this, function(h) {
1009
+ return G(l, void 0, void 0, function() {
1010
+ var u, d;
1011
+ return j(this, function(h) {
927
1012
  switch (h.label) {
928
1013
  case 0:
929
1014
  h.trys.push([0, , 6, 9]), h.label = 1;
@@ -936,10 +1021,10 @@ function qe(t) {
936
1021
  i[p] = y;
937
1022
  })]);
938
1023
  case 2:
939
- return c = h.sent(), c === void 0 ? [3, 4] : c.done ? (l = c, [
1024
+ return u = h.sent(), u === void 0 ? [3, 4] : u.done ? (c = u, [
940
1025
  2
941
1026
  /*return*/
942
- ]) : [4, n(c.value)];
1027
+ ]) : [4, r(u.value)];
943
1028
  case 3:
944
1029
  h.sent(), h.label = 4;
945
1030
  case 4:
@@ -965,7 +1050,7 @@ function qe(t) {
965
1050
  });
966
1051
  }))];
967
1052
  case 2:
968
- return s.sent(), [2, l && l.value];
1053
+ return s.sent(), [2, c && c.value];
969
1054
  case 3:
970
1055
  return o(), [
971
1056
  7
@@ -981,12 +1066,12 @@ function qe(t) {
981
1066
  });
982
1067
  });
983
1068
  }
984
- function De(t) {
985
- var r = this, e = V(t, { returnValues: !0 });
986
- return new k(function(n, o) {
987
- return G(r, void 0, void 0, function() {
988
- var i, a, l, u;
989
- return P(this, function(s) {
1069
+ function qe(t) {
1070
+ var n = this, e = N(t, { returnValues: !0 });
1071
+ return new R(function(r, o) {
1072
+ return G(n, void 0, void 0, function() {
1073
+ var i, a, c, l;
1074
+ return j(this, function(s) {
990
1075
  switch (s.label) {
991
1076
  case 0:
992
1077
  if (!e.length)
@@ -1007,14 +1092,14 @@ function De(t) {
1007
1092
  return i = f;
1008
1093
  })]);
1009
1094
  case 3:
1010
- return l = s.sent(), l === void 0 ? [
1095
+ return c = s.sent(), c === void 0 ? [
1011
1096
  2
1012
1097
  /*return*/
1013
- ] : (u = l.map(function(f) {
1098
+ ] : (l = c.map(function(f) {
1014
1099
  return f.value;
1015
- }), l.some(function(f) {
1100
+ }), c.some(function(f) {
1016
1101
  return f.done;
1017
- }) ? [2, u] : [4, n(u)]);
1102
+ }) ? [2, l] : [4, r(l)]);
1018
1103
  case 4:
1019
1104
  return s.sent(), [3, 2];
1020
1105
  case 5:
@@ -1038,77 +1123,77 @@ function De(t) {
1038
1123
  });
1039
1124
  });
1040
1125
  }
1041
- function Ie(t) {
1042
- var r = this, e = V(t, {
1126
+ function De(t) {
1127
+ var n = this, e = N(t, {
1043
1128
  yieldValues: !0,
1044
1129
  returnValues: !0
1045
1130
  });
1046
- return new k(function(n, o) {
1047
- return G(r, void 0, void 0, function() {
1048
- var i, a, l, u, s, f = this;
1049
- return P(this, function(p) {
1131
+ return new R(function(r, o) {
1132
+ return G(n, void 0, void 0, function() {
1133
+ var i, a, c, l, s, f = this;
1134
+ return j(this, function(p) {
1050
1135
  switch (p.label) {
1051
1136
  case 0:
1052
1137
  if (!e.length)
1053
1138
  return o(), [2, []];
1054
- a = [], l = !1, o.then(function() {
1055
- var c, d;
1139
+ a = [], c = !1, o.then(function() {
1140
+ var u, d;
1056
1141
  i();
1057
1142
  try {
1058
1143
  for (var h = _(a), y = h.next(); !y.done; y = h.next()) {
1059
- var m = y.value;
1060
- m();
1144
+ var b = y.value;
1145
+ b();
1061
1146
  }
1062
- } catch (T) {
1063
- c = { error: T };
1147
+ } catch (z) {
1148
+ u = { error: z };
1064
1149
  } finally {
1065
1150
  try {
1066
1151
  y && !y.done && (d = h.return) && d.call(h);
1067
1152
  } finally {
1068
- if (c) throw c.error;
1153
+ if (u) throw u.error;
1069
1154
  }
1070
1155
  }
1071
- l = !0;
1156
+ c = !0;
1072
1157
  }), p.label = 1;
1073
1158
  case 1:
1074
- return p.trys.push([1, , 5, 7]), Promise.all(e.map(function(c) {
1075
- return c.next();
1076
- })).then(function(c) {
1077
- return i(c);
1078
- }, function(c) {
1079
- return o(c);
1080
- }), [4, new Promise(function(c) {
1081
- return i = c;
1159
+ return p.trys.push([1, , 5, 7]), Promise.all(e.map(function(u) {
1160
+ return u.next();
1161
+ })).then(function(u) {
1162
+ return i(u);
1163
+ }, function(u) {
1164
+ return o(u);
1165
+ }), [4, new Promise(function(u) {
1166
+ return i = u;
1082
1167
  })];
1083
1168
  case 2:
1084
- return u = p.sent(), u === void 0 ? [
1169
+ return l = p.sent(), l === void 0 ? [
1085
1170
  2
1086
1171
  /*return*/
1087
- ] : (s = u.map(function(c) {
1088
- return c.value;
1089
- }), u.every(function(c) {
1090
- return c.done;
1091
- }) ? [2, s] : [4, n(s.slice())]);
1172
+ ] : (s = l.map(function(u) {
1173
+ return u.value;
1174
+ }), l.every(function(u) {
1175
+ return u.done;
1176
+ }) ? [2, s] : [4, r(s.slice())]);
1092
1177
  case 3:
1093
- return p.sent(), [4, Promise.all(e.map(function(c, d) {
1178
+ return p.sent(), [4, Promise.all(e.map(function(u, d) {
1094
1179
  return G(f, void 0, void 0, function() {
1095
1180
  var h;
1096
- return P(this, function(y) {
1181
+ return j(this, function(y) {
1097
1182
  switch (y.label) {
1098
1183
  case 0:
1099
- if (u[d].done)
1100
- return [2, u[d].value];
1184
+ if (l[d].done)
1185
+ return [2, l[d].value];
1101
1186
  y.label = 1;
1102
1187
  case 1:
1103
- return l ? [3, 4] : (Promise.resolve(c.next()).then(function(m) {
1104
- return a[d](m);
1105
- }, function(m) {
1106
- return o(m);
1107
- }), [4, new Promise(function(m) {
1108
- return a[d] = m;
1188
+ return c ? [3, 4] : (Promise.resolve(u.next()).then(function(b) {
1189
+ return a[d](b);
1190
+ }, function(b) {
1191
+ return o(b);
1192
+ }), [4, new Promise(function(b) {
1193
+ return a[d] = b;
1109
1194
  })]);
1110
1195
  case 2:
1111
- return h = y.sent(), h === void 0 ? [2, u[d].value] : h.done ? [2, h.value] : (s[d] = h.value, [4, n(s.slice())]);
1196
+ return h = y.sent(), h === void 0 ? [2, l[d].value] : h.done ? [2, h.value] : (s[d] = h.value, [4, r(s.slice())]);
1112
1197
  case 3:
1113
1198
  return y.sent(), [3, 1];
1114
1199
  case 4:
@@ -1123,8 +1208,8 @@ function Ie(t) {
1123
1208
  case 4:
1124
1209
  return [2, p.sent()];
1125
1210
  case 5:
1126
- return o(), [4, Promise.all(e.map(function(c) {
1127
- return c.return && c.return();
1211
+ return o(), [4, Promise.all(e.map(function(u) {
1212
+ return u.return && u.return();
1128
1213
  }))];
1129
1214
  case 6:
1130
1215
  return p.sent(), [
@@ -1144,39 +1229,39 @@ function Ie(t) {
1144
1229
  function Ae(t) {
1145
1230
  return typeof t == "string" ? t : t.url;
1146
1231
  }
1147
- function Ne(t, r, e, n) {
1148
- const o = e[r];
1232
+ function Ue(t, n, e, r) {
1233
+ const o = e[n];
1149
1234
  if (!(!o || !o.length))
1150
1235
  try {
1151
- n[r] = t(n[r], o, !0, !1).newDocument;
1236
+ r[n] = t(r[n], o, !0, !1).newDocument;
1152
1237
  } catch (i) {
1153
- throw typeof i == "object" && i && "name" in i && typeof i.name == "string" && "message" in i && typeof i.message == "string" ? i.name === "TEST_OPERATION_FAILED" ? new Pe(i.message) : new xe(i.name + ": " + i.message) : i;
1238
+ throw typeof i == "object" && i && "name" in i && typeof i.name == "string" && "message" in i && typeof i.message == "string" ? i.name === "TEST_OPERATION_FAILED" ? new Pe(i.message) : new je(i.name + ": " + i.message) : i;
1154
1239
  }
1155
1240
  }
1156
- function Me(t, r) {
1241
+ function Be(t, n) {
1157
1242
  try {
1158
- return t.compile(r);
1243
+ return t.compile(n);
1159
1244
  } catch (e) {
1160
1245
  throw new ge(
1161
1246
  e instanceof Error ? e.message : void 0
1162
1247
  );
1163
1248
  }
1164
1249
  }
1165
- function Ve(t, r, e) {
1250
+ function Ne(t, n, e) {
1166
1251
  t.actor !== (e == null ? void 0 : e.actor) && (t.allowed = t.allowed && e ? [e.actor] : void 0, t.channels = t.channels.filter(
1167
- (n) => r.includes(n)
1252
+ (r) => n.includes(r)
1168
1253
  ));
1169
1254
  }
1170
- function Be(t, r) {
1171
- return t.allowed === void 0 || t.allowed === null || !!(r != null && r.actor) && (t.actor === r.actor || t.allowed.includes(r.actor));
1255
+ function Me(t, n) {
1256
+ return t.allowed === void 0 || t.allowed === null || !!(n != null && n.actor) && (t.actor === n.actor || t.allowed.includes(n.actor));
1172
1257
  }
1173
- class Ce extends we {
1258
+ class Ve extends be {
1174
1259
  /**
1175
1260
  * Wraps a Graffiti API instance to provide the synchronize methods.
1176
1261
  * The GraffitiSyncrhonize class rather than the Graffiti class
1177
1262
  * must be used for all functions for the synchronize methods to work.
1178
1263
  */
1179
- constructor(e, n) {
1264
+ constructor(e, r) {
1180
1265
  super();
1181
1266
  v(this, "ajv_");
1182
1267
  v(this, "applyPatch_");
@@ -1188,12 +1273,12 @@ class Ce extends we {
1188
1273
  v(this, "logout");
1189
1274
  v(this, "sessionEvents");
1190
1275
  v(this, "get", async (...e) => {
1191
- const n = await this.graffiti.get(...e);
1192
- return this.synchronizeDispatch({ object: n }), n;
1276
+ const r = await this.graffiti.get(...e);
1277
+ return this.synchronizeDispatch({ object: r }), r;
1193
1278
  });
1194
1279
  v(this, "put", async (...e) => {
1195
- const n = await this.graffiti.put(...e), o = e[0], i = {
1196
- ...n,
1280
+ const r = await this.graffiti.put(...e), o = e[0], i = {
1281
+ ...r,
1197
1282
  value: o.value,
1198
1283
  channels: o.channels,
1199
1284
  allowed: o.allowed
@@ -1201,54 +1286,54 @@ class Ce extends we {
1201
1286
  return await this.synchronizeDispatch(
1202
1287
  {
1203
1288
  tombstone: !0,
1204
- object: n
1289
+ object: r
1205
1290
  },
1206
1291
  {
1207
1292
  object: i
1208
1293
  },
1209
1294
  !0
1210
- ), n;
1295
+ ), r;
1211
1296
  });
1212
1297
  v(this, "patch", async (...e) => {
1213
- const n = await this.graffiti.patch(...e), o = { ...n };
1298
+ const r = await this.graffiti.patch(...e), o = { ...r };
1214
1299
  for (const i of ["value", "channels", "allowed"])
1215
- Ne(await this.applyPatch, i, e[0], o);
1300
+ Ue(await this.applyPatch, i, e[0], o);
1216
1301
  return await this.synchronizeDispatch(
1217
1302
  {
1218
1303
  tombstone: !0,
1219
- object: n
1304
+ object: r
1220
1305
  },
1221
1306
  {
1222
1307
  object: o
1223
1308
  },
1224
1309
  !0
1225
- ), n;
1310
+ ), r;
1226
1311
  });
1227
1312
  v(this, "delete", async (...e) => {
1228
- const n = await this.graffiti.delete(...e);
1313
+ const r = await this.graffiti.delete(...e);
1229
1314
  return await this.synchronizeDispatch(
1230
1315
  {
1231
1316
  tombstone: !0,
1232
- object: n
1317
+ object: r
1233
1318
  },
1234
1319
  void 0,
1235
1320
  !0
1236
- ), n;
1321
+ ), r;
1237
1322
  });
1238
1323
  v(this, "discover", (...e) => {
1239
- const n = this.graffiti.discover(...e);
1240
- return this.objectStream(n);
1324
+ const r = this.graffiti.discover(...e);
1325
+ return this.objectStream(r);
1241
1326
  });
1242
1327
  v(this, "recoverOrphans", (...e) => {
1243
- const n = this.graffiti.recoverOrphans(...e);
1244
- return this.objectStream(n);
1328
+ const r = this.graffiti.recoverOrphans(...e);
1329
+ return this.objectStream(r);
1245
1330
  });
1246
1331
  v(this, "continueObjectStream", (...e) => this.graffiti.continueObjectStream(...e));
1247
- this.options = n ?? {}, this.graffiti = e, this.channelStats = e.channelStats.bind(e), this.login = e.login.bind(e), this.logout = e.logout.bind(e), this.sessionEvents = e.sessionEvents;
1332
+ this.options = r ?? {}, this.graffiti = e, this.channelStats = e.channelStats.bind(e), this.login = e.login.bind(e), this.logout = e.logout.bind(e), this.sessionEvents = e.sessionEvents;
1248
1333
  }
1249
1334
  get ajv() {
1250
1335
  return this.ajv_ || (this.ajv_ = (async () => {
1251
- const { default: e } = await import("./ajv-C30pimY5.mjs").then((n) => n.a);
1336
+ const { default: e } = await import("./ajv-C30pimY5.mjs").then((r) => r.a);
1252
1337
  return new e({ strict: !1 });
1253
1338
  })()), this.ajv_;
1254
1339
  }
@@ -1258,18 +1343,18 @@ class Ce extends we {
1258
1343
  return e;
1259
1344
  })()), this.applyPatch_;
1260
1345
  }
1261
- synchronize(e, n, o, i) {
1346
+ synchronize(e, r, o, i) {
1262
1347
  const a = /* @__PURE__ */ new Set();
1263
- return new k(
1264
- async (u, s) => {
1265
- const f = Me(await this.ajv, o), p = (c, d) => {
1266
- for (const h of [d, c])
1348
+ return new R(
1349
+ async (l, s) => {
1350
+ const f = Be(await this.ajv, o), p = (u, d) => {
1351
+ for (const h of [d, u])
1267
1352
  if (h != null && h.tombstone)
1268
- a.has(h.object.url) && u(h);
1269
- else if (h && e(h.object) && (this.options.omniscient || Be(h.object, i))) {
1353
+ a.has(h.object.url) && l(h);
1354
+ else if (h && e(h.object) && (this.options.omniscient || Me(h.object, i))) {
1270
1355
  const y = { ...h.object };
1271
- if (this.options.omniscient || Ve(y, n, i), f(y)) {
1272
- u({ object: y }), a.add(y.url);
1356
+ if (this.options.omniscient || Ne(y, r, i), f(y)) {
1357
+ l({ object: y }), a.add(y.url);
1273
1358
  break;
1274
1359
  }
1275
1360
  }
@@ -1292,11 +1377,11 @@ class Ce extends we {
1292
1377
  * @group Synchronize Methods
1293
1378
  */
1294
1379
  synchronizeDiscover(...e) {
1295
- const [n, o, i] = e;
1296
- function a(l) {
1297
- return l.channels.some((u) => n.includes(u));
1380
+ const [r, o, i] = e;
1381
+ function a(c) {
1382
+ return c.channels.some((l) => r.includes(l));
1298
1383
  }
1299
- return this.synchronize(a, n, o, i);
1384
+ return this.synchronize(a, r, o, i);
1300
1385
  }
1301
1386
  /**
1302
1387
  * This method has the same signature as {@link get} but
@@ -1311,11 +1396,11 @@ class Ce extends we {
1311
1396
  * @group Synchronize Methods
1312
1397
  */
1313
1398
  synchronizeGet(...e) {
1314
- const [n, o, i] = e, a = Ae(n);
1315
- function l(u) {
1316
- return u.url === a;
1399
+ const [r, o, i] = e, a = Ae(r);
1400
+ function c(l) {
1401
+ return l.url === a;
1317
1402
  }
1318
- return this.synchronize(l, [], o, i);
1403
+ return this.synchronize(c, [], o, i);
1319
1404
  }
1320
1405
  /**
1321
1406
  * This method has the same signature as {@link recoverOrphans} but
@@ -1331,11 +1416,11 @@ class Ce extends we {
1331
1416
  * @group Synchronize Methods
1332
1417
  */
1333
1418
  synchronizeRecoverOrphans(...e) {
1334
- const [n, o] = e;
1419
+ const [r, o] = e;
1335
1420
  function i(a) {
1336
1421
  return a.actor === o.actor && a.channels.length === 0;
1337
1422
  }
1338
- return this.synchronize(i, [], n, o);
1423
+ return this.synchronize(i, [], r, o);
1339
1424
  }
1340
1425
  /**
1341
1426
  * Streams changes made to *any* object in *any* channel
@@ -1347,37 +1432,37 @@ class Ce extends we {
1347
1432
  * Be careful using this method. Without additional filters it can
1348
1433
  * expose the user to content out of context.
1349
1434
  */
1350
- synchronizeAll(e, n) {
1351
- return this.synchronize(() => !0, [], e, n);
1435
+ synchronizeAll(e, r) {
1436
+ return this.synchronize(() => !0, [], e, r);
1352
1437
  }
1353
- async synchronizeDispatch(e, n, o = !1) {
1438
+ async synchronizeDispatch(e, r, o = !1) {
1354
1439
  for (const i of this.callbacks)
1355
- i(e, n);
1440
+ i(e, r);
1356
1441
  o && await new Promise((i) => setTimeout(i, 0));
1357
1442
  }
1358
1443
  objectStreamContinue(e) {
1359
- const n = this;
1444
+ const r = this;
1360
1445
  return async function* () {
1361
1446
  for (; ; ) {
1362
1447
  const o = await e.next();
1363
1448
  if (o.done) {
1364
1449
  const { continue: i, cursor: a } = o.value;
1365
1450
  return {
1366
- continue: () => n.objectStreamContinue(i()),
1451
+ continue: () => r.objectStreamContinue(i()),
1367
1452
  cursor: a
1368
1453
  };
1369
1454
  }
1370
- o.value.error || n.synchronizeDispatch(
1455
+ o.value.error || r.synchronizeDispatch(
1371
1456
  o.value
1372
1457
  ), yield o.value;
1373
1458
  }
1374
1459
  }();
1375
1460
  }
1376
1461
  objectStream(e) {
1377
- const n = this.objectStreamContinue(e);
1462
+ const r = this.objectStreamContinue(e);
1378
1463
  return async function* () {
1379
1464
  for (; ; ) {
1380
- const o = await n.next();
1465
+ const o = await r.next();
1381
1466
  if (o.done) return o.value;
1382
1467
  (o.value.error || !o.value.tombstone) && (yield o.value);
1383
1468
  }
@@ -1385,29 +1470,29 @@ class Ce extends we {
1385
1470
  }
1386
1471
  }
1387
1472
  const We = {
1388
- install(t, r) {
1389
- const e = r.graffiti, n = new Ce(e), o = N(void 0);
1390
- n.sessionEvents.addEventListener("initialized", async (i) => {
1473
+ install(t, n) {
1474
+ const e = n.graffiti, r = new Ve(e), o = U(void 0);
1475
+ r.sessionEvents.addEventListener("initialized", async (i) => {
1391
1476
  const a = i.detail;
1392
1477
  if (a && a.error && console.error(a.error), a && a.href) {
1393
- const l = t.config.globalProperties.$router;
1394
- if (l) {
1395
- const u = l.options.history.base, s = new URL(a.href);
1396
- s.pathname.startsWith(u) && (s.pathname = s.pathname.slice(u.length)), await l.replace(s.pathname + s.search + s.hash);
1478
+ const c = t.config.globalProperties.$router;
1479
+ if (c) {
1480
+ const l = c.options.history.base, s = new URL(a.href);
1481
+ s.pathname.startsWith(l) && (s.pathname = s.pathname.slice(l.length)), await c.replace(s.pathname + s.search + s.hash);
1397
1482
  }
1398
1483
  }
1399
1484
  o.value || (o.value = null);
1400
- }), n.sessionEvents.addEventListener("login", (i) => {
1485
+ }), r.sessionEvents.addEventListener("login", (i) => {
1401
1486
  const a = i.detail;
1402
1487
  if (a.error) {
1403
1488
  console.error("Error logging in:"), console.error(a.error);
1404
1489
  return;
1405
1490
  } else
1406
1491
  o.value = a.session;
1407
- }), n.sessionEvents.addEventListener("logout", (i) => {
1492
+ }), r.sessionEvents.addEventListener("logout", (i) => {
1408
1493
  const a = i.detail;
1409
1494
  a.error ? (console.error("Error logging out:"), console.error(a.error)) : o.value = null;
1410
- }), t.provide(Y, n), t.provide(Z, o), t.component("GraffitiDiscover", ce), t.component("GraffitiGet", le), t.component("GraffitiRecoverOrphans", fe), t.config.globalProperties.$graffiti = n, t.config.globalProperties.$graffitiSession = o;
1495
+ }), t.provide(Y, r), t.provide(Z, o), t.component("GraffitiDiscover", ce), t.component("GraffitiGet", le), t.component("GraffitiRecoverOrphans", fe), t.config.globalProperties.$graffiti = r, t.config.globalProperties.$graffitiSession = o;
1411
1496
  }
1412
1497
  }, Je = ce, Ke = le, He = fe;
1413
1498
  export {
@@ -1420,6 +1505,6 @@ export {
1420
1505
  Se as useGraffitiGet,
1421
1506
  Ge as useGraffitiRecoverOrphans,
1422
1507
  ee as useGraffitiSession,
1423
- M as useGraffitiSynchronize
1508
+ B as useGraffitiSynchronize
1424
1509
  };
1425
1510
  //# sourceMappingURL=plugin.mjs.map