@acrobits/ipc-sdk 0.1.5-alpha.0 → 0.1.5-alpha.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.
@@ -26,7 +26,7 @@
26
26
  <ul class="tsd-hierarchy">
27
27
  <li><span class="target">UriContactItem</span></li></ul></li></ul></section><aside class="tsd-sources">
28
28
  <ul>
29
- <li>Defined in ipc-protocol/lib/index.d.ts:1661</li></ul></aside>
29
+ <li>Defined in ipc-protocol/lib/index.d.ts:1685</li></ul></aside>
30
30
  <section class="tsd-panel-group tsd-index-group">
31
31
  <section class="tsd-panel tsd-index-panel">
32
32
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -57,7 +57,7 @@
57
57
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
58
58
  <p>Overrides <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#type">type</a></p>
59
59
  <ul>
60
- <li>Defined in ipc-protocol/lib/index.d.ts:1662</li></ul></aside></section>
60
+ <li>Defined in ipc-protocol/lib/index.d.ts:1686</li></ul></aside></section>
61
61
  <section class="tsd-panel tsd-member"><a id="uri" class="tsd-anchor"></a>
62
62
  <h3 class="tsd-anchor-link"><span>uri</span><a href="#uri" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
63
63
  <div class="tsd-signature"><span class="tsd-kind-property">uri</span><span class="tsd-signature-symbol">:</span> <a href="../types/ContactURI.html" class="tsd-signature-type tsd-kind-type-alias">ContactURI</a></div>
@@ -65,7 +65,7 @@
65
65
  </div>
66
66
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
67
67
  <ul>
68
- <li>Defined in ipc-protocol/lib/index.d.ts:1666</li></ul></aside></section></section></div>
68
+ <li>Defined in ipc-protocol/lib/index.d.ts:1690</li></ul></aside></section></section></div>
69
69
  <div class="col-sidebar">
70
70
  <div class="page-menu">
71
71
  <div class="tsd-navigation settings">
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
22
22
  <ul>
23
- <li>Defined in ipc-protocol/lib/index.d.ts:972</li></ul></aside></div>
23
+ <li>Defined in ipc-protocol/lib/index.d.ts:996</li></ul></aside></div>
24
24
  <div class="col-sidebar">
25
25
  <div class="page-menu">
26
26
  <div class="tsd-navigation settings">
package/lib/ipc-sdk.js CHANGED
@@ -74,7 +74,7 @@ var N = Z(function(n) {
74
74
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
75
75
  };
76
76
  });
77
- function j(n, t) {
77
+ function V(n, t) {
78
78
  if (n) {
79
79
  var e = n.indexOf(t);
80
80
  0 <= e && n.splice(e, 1);
@@ -122,7 +122,7 @@ var T = function() {
122
122
  for (var w = G(f), y = w.next(); !y.done; y = w.next()) {
123
123
  var D = y.value;
124
124
  try {
125
- ie(D);
125
+ oe(D);
126
126
  } catch (h) {
127
127
  o = o ?? [], h instanceof N ? o = I(I([], M(o)), M(h.errors)) : o.push(h);
128
128
  }
@@ -145,7 +145,7 @@ var T = function() {
145
145
  var e;
146
146
  if (t && t !== this)
147
147
  if (this.closed)
148
- ie(t);
148
+ oe(t);
149
149
  else {
150
150
  if (t instanceof n) {
151
151
  if (t.closed || t._hasParent(this))
@@ -162,22 +162,22 @@ var T = function() {
162
162
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
163
163
  }, n.prototype._removeParent = function(t) {
164
164
  var e = this._parentage;
165
- e === t ? this._parentage = null : Array.isArray(e) && j(e, t);
165
+ e === t ? this._parentage = null : Array.isArray(e) && V(e, t);
166
166
  }, n.prototype.remove = function(t) {
167
167
  var e = this._finalizers;
168
- e && j(e, t), t instanceof n && t._removeParent(this);
168
+ e && V(e, t), t instanceof n && t._removeParent(this);
169
169
  }, n.EMPTY = function() {
170
170
  var t = new n();
171
171
  return t.closed = !0, t;
172
172
  }(), n;
173
- }(), ye = T.EMPTY;
174
- function me(n) {
173
+ }(), me = T.EMPTY;
174
+ function we(n) {
175
175
  return n instanceof T || n && "closed" in n && b(n.remove) && b(n.add) && b(n.unsubscribe);
176
176
  }
177
- function ie(n) {
177
+ function oe(n) {
178
178
  b(n) ? n() : n.unsubscribe();
179
179
  }
180
- var we = {
180
+ var Se = {
181
181
  onUnhandledError: null,
182
182
  onStoppedNotification: null,
183
183
  Promise: void 0,
@@ -201,7 +201,7 @@ function Re(n) {
201
201
  throw n;
202
202
  });
203
203
  }
204
- function oe() {
204
+ function se() {
205
205
  }
206
206
  function U(n) {
207
207
  n();
@@ -210,10 +210,10 @@ var ee = function(n) {
210
210
  x(t, n);
211
211
  function t(e) {
212
212
  var r = n.call(this) || this;
213
- return r.isStopped = !1, e ? (r.destination = e, me(e) && e.add(r)) : r.destination = Le, r;
213
+ return r.isStopped = !1, e ? (r.destination = e, we(e) && e.add(r)) : r.destination = je, r;
214
214
  }
215
215
  return t.create = function(e, r, i) {
216
- return new L(e, r, i);
216
+ return new j(e, r, i);
217
217
  }, t.prototype.next = function(e) {
218
218
  this.isStopped || this._next(e);
219
219
  }, t.prototype.error = function(e) {
@@ -272,7 +272,7 @@ var $e = function() {
272
272
  P(e);
273
273
  }
274
274
  }, n;
275
- }(), L = function(n) {
275
+ }(), j = function(n) {
276
276
  x(t, n);
277
277
  function t(e, r, i) {
278
278
  var o = n.call(this) || this, s;
@@ -284,7 +284,7 @@ var $e = function() {
284
284
  };
285
285
  else {
286
286
  var c;
287
- o && we.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
287
+ o && Se.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
288
288
  return o.unsubscribe();
289
289
  }, s = {
290
290
  next: e.next && k(e.next, c),
@@ -299,22 +299,22 @@ var $e = function() {
299
299
  function P(n) {
300
300
  Re(n);
301
301
  }
302
- function je(n) {
302
+ function Ve(n) {
303
303
  throw n;
304
304
  }
305
- var Le = {
305
+ var je = {
306
306
  closed: !0,
307
- next: oe,
308
- error: je,
309
- complete: oe
310
- }, Ve = function() {
307
+ next: se,
308
+ error: Ve,
309
+ complete: se
310
+ }, Le = function() {
311
311
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
312
312
  }();
313
- function Se(n) {
313
+ function Ce(n) {
314
314
  return n;
315
315
  }
316
316
  function Fe(n) {
317
- return n.length === 0 ? Se : n.length === 1 ? n[0] : function(e) {
317
+ return n.length === 0 ? Ce : n.length === 1 ? n[0] : function(e) {
318
318
  return n.reduce(function(r, i) {
319
319
  return i(r);
320
320
  }, e);
@@ -328,7 +328,7 @@ var Y = function() {
328
328
  var e = new n();
329
329
  return e.source = this, e.operator = t, e;
330
330
  }, n.prototype.subscribe = function(t, e, r) {
331
- var i = this, o = De(t) ? t : new L(t, e, r);
331
+ var i = this, o = De(t) ? t : new j(t, e, r);
332
332
  return U(function() {
333
333
  var s = i, c = s.operator, u = s.source;
334
334
  o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
@@ -341,8 +341,8 @@ var Y = function() {
341
341
  }
342
342
  }, n.prototype.forEach = function(t, e) {
343
343
  var r = this;
344
- return e = se(e), new e(function(i, o) {
345
- var s = new L({
344
+ return e = ue(e), new e(function(i, o) {
345
+ var s = new j({
346
346
  next: function(c) {
347
347
  try {
348
348
  t(c);
@@ -358,7 +358,7 @@ var Y = function() {
358
358
  }, n.prototype._subscribe = function(t) {
359
359
  var e;
360
360
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
361
- }, n.prototype[Ve] = function() {
361
+ }, n.prototype[Le] = function() {
362
362
  return this;
363
363
  }, n.prototype.pipe = function() {
364
364
  for (var t = [], e = 0; e < arguments.length; e++)
@@ -366,7 +366,7 @@ var Y = function() {
366
366
  return Fe(t)(this);
367
367
  }, n.prototype.toPromise = function(t) {
368
368
  var e = this;
369
- return t = se(t), new t(function(r, i) {
369
+ return t = ue(t), new t(function(r, i) {
370
370
  var o;
371
371
  e.subscribe(function(s) {
372
372
  return o = s;
@@ -380,20 +380,20 @@ var Y = function() {
380
380
  return new n(t);
381
381
  }, n;
382
382
  }();
383
- function se(n) {
383
+ function ue(n) {
384
384
  var t;
385
- return (t = n ?? we.Promise) !== null && t !== void 0 ? t : Promise;
385
+ return (t = n ?? Se.Promise) !== null && t !== void 0 ? t : Promise;
386
386
  }
387
387
  function He(n) {
388
388
  return n && b(n.next) && b(n.error) && b(n.complete);
389
389
  }
390
390
  function De(n) {
391
- return n && n instanceof ee || He(n) && me(n);
391
+ return n && n instanceof ee || He(n) && we(n);
392
392
  }
393
393
  function Ne(n) {
394
394
  return b(n == null ? void 0 : n.lift);
395
395
  }
396
- function Ce(n) {
396
+ function Ee(n) {
397
397
  return function(t) {
398
398
  if (Ne(t))
399
399
  return t.lift(function(e) {
@@ -406,7 +406,7 @@ function Ce(n) {
406
406
  throw new TypeError("Unable to lift unknown Observable type");
407
407
  };
408
408
  }
409
- function Ee(n, t, e, r, i) {
409
+ function xe(n, t, e, r, i) {
410
410
  return new ke(n, t, e, r, i);
411
411
  }
412
412
  var ke = function(n) {
@@ -448,14 +448,14 @@ var ke = function(n) {
448
448
  return function() {
449
449
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
450
450
  };
451
- }), xe = function(n) {
451
+ }), _e = function(n) {
452
452
  x(t, n);
453
453
  function t() {
454
454
  var e = n.call(this) || this;
455
455
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
456
456
  }
457
457
  return t.prototype.lift = function(e) {
458
- var r = new ue(this, this);
458
+ var r = new ce(this, this);
459
459
  return r.operator = e, r;
460
460
  }, t.prototype._throwIfClosed = function() {
461
461
  if (this.closed)
@@ -516,8 +516,8 @@ var ke = function(n) {
516
516
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
517
517
  }, t.prototype._innerSubscribe = function(e) {
518
518
  var r = this, i = this, o = i.hasError, s = i.isStopped, c = i.observers;
519
- return o || s ? ye : (this.currentObservers = null, c.push(e), new T(function() {
520
- r.currentObservers = null, j(c, e);
519
+ return o || s ? me : (this.currentObservers = null, c.push(e), new T(function() {
520
+ r.currentObservers = null, V(c, e);
521
521
  }));
522
522
  }, t.prototype._checkFinalizedStatuses = function(e) {
523
523
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
@@ -526,9 +526,9 @@ var ke = function(n) {
526
526
  var e = new Y();
527
527
  return e.source = this, e;
528
528
  }, t.create = function(e, r) {
529
- return new ue(e, r);
529
+ return new ce(e, r);
530
530
  }, t;
531
- }(Y), ue = function(n) {
531
+ }(Y), ce = function(n) {
532
532
  x(t, n);
533
533
  function t(e, r) {
534
534
  var i = n.call(this) || this;
@@ -545,11 +545,11 @@ var ke = function(n) {
545
545
  (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
546
546
  }, t.prototype._subscribe = function(e) {
547
547
  var r, i;
548
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : ye;
548
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : me;
549
549
  }, t;
550
- }(xe), _e = {
550
+ }(_e), Me = {
551
551
  now: function() {
552
- return (_e.delegate || Date).now();
552
+ return (Me.delegate || Date).now();
553
553
  },
554
554
  delegate: void 0
555
555
  }, qe = function(n) {
@@ -560,15 +560,15 @@ var ke = function(n) {
560
560
  return t.prototype.schedule = function(e, r) {
561
561
  return this;
562
562
  }, t;
563
- }(T), V = {
563
+ }(T), L = {
564
564
  setInterval: function(n, t) {
565
565
  for (var e = [], r = 2; r < arguments.length; r++)
566
566
  e[r - 2] = arguments[r];
567
- var i = V.delegate;
567
+ var i = L.delegate;
568
568
  return i != null && i.setInterval ? i.setInterval.apply(i, I([n, t], M(e))) : setInterval.apply(void 0, I([n, t], M(e)));
569
569
  },
570
570
  clearInterval: function(n) {
571
- var t = V.delegate;
571
+ var t = L.delegate;
572
572
  return ((t == null ? void 0 : t.clearInterval) || clearInterval)(n);
573
573
  },
574
574
  delegate: void 0
@@ -586,11 +586,11 @@ var ke = function(n) {
586
586
  var o = this.id, s = this.scheduler;
587
587
  return o != null && (this.id = this.recycleAsyncId(s, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(s, this.id, r), this;
588
588
  }, t.prototype.requestAsyncId = function(e, r, i) {
589
- return i === void 0 && (i = 0), V.setInterval(e.flush.bind(e, this), i);
589
+ return i === void 0 && (i = 0), L.setInterval(e.flush.bind(e, this), i);
590
590
  }, t.prototype.recycleAsyncId = function(e, r, i) {
591
591
  if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
592
592
  return r;
593
- r != null && V.clearInterval(r);
593
+ r != null && L.clearInterval(r);
594
594
  }, t.prototype.execute = function(e, r) {
595
595
  if (this.closed)
596
596
  return new Error("executing a cancelled action");
@@ -611,20 +611,20 @@ var ke = function(n) {
611
611
  }, t.prototype.unsubscribe = function() {
612
612
  if (!this.closed) {
613
613
  var e = this, r = e.id, i = e.scheduler, o = i.actions;
614
- this.work = this.state = this.scheduler = null, this.pending = !1, j(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, n.prototype.unsubscribe.call(this);
614
+ this.work = this.state = this.scheduler = null, this.pending = !1, V(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, n.prototype.unsubscribe.call(this);
615
615
  }
616
616
  }, t;
617
- }(qe), ce = function() {
617
+ }(qe), ae = function() {
618
618
  function n(t, e) {
619
619
  e === void 0 && (e = n.now), this.schedulerActionCtor = t, this.now = e;
620
620
  }
621
621
  return n.prototype.schedule = function(t, e, r) {
622
622
  return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(r, e);
623
- }, n.now = _e.now, n;
623
+ }, n.now = Me.now, n;
624
624
  }(), Ge = function(n) {
625
625
  x(t, n);
626
626
  function t(e, r) {
627
- r === void 0 && (r = ce.now);
627
+ r === void 0 && (r = ae.now);
628
628
  var i = n.call(this, e, r) || this;
629
629
  return i.actions = [], i._active = !1, i;
630
630
  }
@@ -646,7 +646,7 @@ var ke = function(n) {
646
646
  throw i;
647
647
  }
648
648
  }, t;
649
- }(ce), ze = new Ge(Qe), Ye = ze;
649
+ }(ae), ze = new Ge(Qe), Ye = ze;
650
650
  function Je(n) {
651
651
  return n && b(n.schedule);
652
652
  }
@@ -658,7 +658,7 @@ var We = Z(function(n) {
658
658
  function O(n, t) {
659
659
  var e = typeof t == "object";
660
660
  return new Promise(function(r, i) {
661
- var o = new L({
661
+ var o = new j({
662
662
  next: function(s) {
663
663
  r(s), o.unsubscribe();
664
664
  },
@@ -674,9 +674,9 @@ function Ke(n) {
674
674
  return n instanceof Date && !isNaN(n);
675
675
  }
676
676
  function A(n, t) {
677
- return Ce(function(e, r) {
677
+ return Ee(function(e, r) {
678
678
  var i = 0;
679
- e.subscribe(Ee(r, function(o) {
679
+ e.subscribe(xe(r, function(o) {
680
680
  r.next(n.call(t, o, i++));
681
681
  }));
682
682
  });
@@ -695,11 +695,11 @@ function Xe(n, t, e) {
695
695
  }
696
696
  function Ze(n, t, e) {
697
697
  var r = b(n) || t || e ? { next: n, error: t, complete: e } : n;
698
- return r ? Ce(function(i, o) {
698
+ return r ? Ee(function(i, o) {
699
699
  var s;
700
700
  (s = r.subscribe) === null || s === void 0 || s.call(r);
701
701
  var c = !0;
702
- i.subscribe(Ee(o, function(u) {
702
+ i.subscribe(xe(o, function(u) {
703
703
  var a;
704
704
  (a = r.next) === null || a === void 0 || a.call(r, u), o.next(u);
705
705
  }, function() {
@@ -712,7 +712,7 @@ function Ze(n, t, e) {
712
712
  var u, a;
713
713
  c && ((u = r.unsubscribe) === null || u === void 0 || u.call(r)), (a = r.finalize) === null || a === void 0 || a.call(r);
714
714
  }));
715
- }) : Se;
715
+ }) : Ce;
716
716
  }
717
717
  var et = Object.defineProperty, tt = (n, t, e) => t in n ? et(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, E = (n, t, e) => (tt(n, typeof t != "symbol" ? t + "" : t, e), e);
718
718
  class d extends Error {
@@ -737,12 +737,12 @@ class nt extends Error {
737
737
  super(`Invalid version format: ${t}`);
738
738
  }
739
739
  }
740
- class ae extends Error {
740
+ class le extends Error {
741
741
  constructor(t) {
742
742
  super(`${t} needs to be initialized before it can be used.`);
743
743
  }
744
744
  }
745
- class le extends Error {
745
+ class he extends Error {
746
746
  constructor(t, e) {
747
747
  let r = `Unsupported Protocol ${Array.isArray(t) ? "versions" : "version"}: (${t}).`;
748
748
  e && (r += ` Minimum version supported is ${e}.`), super(r), this.version = t;
@@ -784,7 +784,7 @@ function te(n, t) {
784
784
  }
785
785
  n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
786
786
  }
787
- function he(n) {
787
+ function de(n) {
788
788
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
789
789
  if (e)
790
790
  return e.call(n);
@@ -837,7 +837,7 @@ var B = ot(function(n) {
837
837
  `) : "", this.name = "UnsubscriptionError", this.errors = t;
838
838
  };
839
839
  });
840
- function de(n, t) {
840
+ function pe(n, t) {
841
841
  if (n) {
842
842
  var e = n.indexOf(t);
843
843
  0 <= e && n.splice(e, 1);
@@ -855,7 +855,7 @@ var re = function() {
855
855
  if (s)
856
856
  if (this._parentage = null, Array.isArray(s))
857
857
  try {
858
- for (var c = he(s), u = c.next(); !u.done; u = c.next()) {
858
+ for (var c = de(s), u = c.next(); !u.done; u = c.next()) {
859
859
  var a = u.value;
860
860
  a.remove(this);
861
861
  }
@@ -882,10 +882,10 @@ var re = function() {
882
882
  if (f) {
883
883
  this._finalizers = null;
884
884
  try {
885
- for (var w = he(f), y = w.next(); !y.done; y = w.next()) {
885
+ for (var w = de(f), y = w.next(); !y.done; y = w.next()) {
886
886
  var D = y.value;
887
887
  try {
888
- pe(D);
888
+ fe(D);
889
889
  } catch (h) {
890
890
  o = o ?? [], h instanceof B ? o = K(K([], W(o)), W(h.errors)) : o.push(h);
891
891
  }
@@ -908,7 +908,7 @@ var re = function() {
908
908
  var e;
909
909
  if (t && t !== this)
910
910
  if (this.closed)
911
- pe(t);
911
+ fe(t);
912
912
  else {
913
913
  if (t instanceof n) {
914
914
  if (t.closed || t._hasParent(this))
@@ -925,23 +925,23 @@ var re = function() {
925
925
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
926
926
  }, n.prototype._removeParent = function(t) {
927
927
  var e = this._parentage;
928
- e === t ? this._parentage = null : Array.isArray(e) && de(e, t);
928
+ e === t ? this._parentage = null : Array.isArray(e) && pe(e, t);
929
929
  }, n.prototype.remove = function(t) {
930
930
  var e = this._finalizers;
931
- e && de(e, t), t instanceof n && t._removeParent(this);
931
+ e && pe(e, t), t instanceof n && t._removeParent(this);
932
932
  }, n.EMPTY = function() {
933
933
  var t = new n();
934
934
  return t.closed = !0, t;
935
935
  }(), n;
936
936
  }();
937
937
  re.EMPTY;
938
- function Me(n) {
938
+ function Ie(n) {
939
939
  return n instanceof re || n && "closed" in n && m(n.remove) && m(n.add) && m(n.unsubscribe);
940
940
  }
941
- function pe(n) {
941
+ function fe(n) {
942
942
  m(n) ? n() : n.unsubscribe();
943
943
  }
944
- var Ie = {
944
+ var Oe = {
945
945
  onUnhandledError: null,
946
946
  onStoppedNotification: null,
947
947
  Promise: void 0,
@@ -963,7 +963,7 @@ function ut(n) {
963
963
  throw n;
964
964
  });
965
965
  }
966
- function fe() {
966
+ function ve() {
967
967
  }
968
968
  function ct(n) {
969
969
  n();
@@ -972,7 +972,7 @@ var ne = function(n) {
972
972
  te(t, n);
973
973
  function t(e) {
974
974
  var r = n.call(this) || this;
975
- return r.isStopped = !1, e ? (r.destination = e, Me(e) && e.add(r)) : r.destination = dt, r;
975
+ return r.isStopped = !1, e ? (r.destination = e, Ie(e) && e.add(r)) : r.destination = dt, r;
976
976
  }
977
977
  return t.create = function(e, r, i) {
978
978
  return new X(e, r, i);
@@ -1046,7 +1046,7 @@ var lt = function() {
1046
1046
  };
1047
1047
  else {
1048
1048
  var c;
1049
- o && Ie.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
1049
+ o && Oe.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
1050
1050
  return o.unsubscribe();
1051
1051
  }, s = {
1052
1052
  next: e.next && q(e.next, c),
@@ -1066,17 +1066,17 @@ function ht(n) {
1066
1066
  }
1067
1067
  var dt = {
1068
1068
  closed: !0,
1069
- next: fe,
1069
+ next: ve,
1070
1070
  error: ht,
1071
- complete: fe
1071
+ complete: ve
1072
1072
  }, pt = function() {
1073
1073
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1074
1074
  }();
1075
- function Oe(n) {
1075
+ function Te(n) {
1076
1076
  return n;
1077
1077
  }
1078
1078
  function ft(n) {
1079
- return n.length === 0 ? Oe : n.length === 1 ? n[0] : function(t) {
1079
+ return n.length === 0 ? Te : n.length === 1 ? n[0] : function(t) {
1080
1080
  return n.reduce(function(e, r) {
1081
1081
  return r(e);
1082
1082
  }, t);
@@ -1103,7 +1103,7 @@ var vt = function() {
1103
1103
  }
1104
1104
  }, n.prototype.forEach = function(t, e) {
1105
1105
  var r = this;
1106
- return e = ve(e), new e(function(i, o) {
1106
+ return e = ge(e), new e(function(i, o) {
1107
1107
  var s = new X({
1108
1108
  next: function(c) {
1109
1109
  try {
@@ -1128,7 +1128,7 @@ var vt = function() {
1128
1128
  return ft(t)(this);
1129
1129
  }, n.prototype.toPromise = function(t) {
1130
1130
  var e = this;
1131
- return t = ve(t), new t(function(r, i) {
1131
+ return t = ge(t), new t(function(r, i) {
1132
1132
  var o;
1133
1133
  e.subscribe(function(s) {
1134
1134
  return o = s;
@@ -1142,15 +1142,15 @@ var vt = function() {
1142
1142
  return new n(t);
1143
1143
  }, n;
1144
1144
  }();
1145
- function ve(n) {
1145
+ function ge(n) {
1146
1146
  var t;
1147
- return (t = n ?? Ie.Promise) !== null && t !== void 0 ? t : Promise;
1147
+ return (t = n ?? Oe.Promise) !== null && t !== void 0 ? t : Promise;
1148
1148
  }
1149
1149
  function gt(n) {
1150
1150
  return n && m(n.next) && m(n.error) && m(n.complete);
1151
1151
  }
1152
1152
  function bt(n) {
1153
- return n && n instanceof ne || gt(n) && Me(n);
1153
+ return n && n instanceof ne || gt(n) && Ie(n);
1154
1154
  }
1155
1155
  function H(n, t, e, r, i) {
1156
1156
  return new yt(n, t, e, r, i);
@@ -1239,7 +1239,7 @@ function v(n, t, e) {
1239
1239
  var u, a;
1240
1240
  c && ((u = r.unsubscribe) === null || u === void 0 || u.call(r)), (a = r.finalize) === null || a === void 0 || a.call(r);
1241
1241
  }));
1242
- }) : Oe;
1242
+ }) : Te;
1243
1243
  }
1244
1244
  const wt = /^(\d+)\.(\d+)$/;
1245
1245
  function St(n) {
@@ -1250,21 +1250,21 @@ function St(n) {
1250
1250
  }
1251
1251
  throw new nt(n);
1252
1252
  }
1253
- function ge(n) {
1253
+ function be(n) {
1254
1254
  const t = St(n), [e, r] = t.split("."), [i, o] = [parseInt(e), parseInt(r)];
1255
1255
  return [i, o];
1256
1256
  }
1257
- function Te(n, t) {
1258
- const [e, r] = ge(n), [i, o] = ge(t);
1257
+ function ie(n, t) {
1258
+ const [e, r] = be(n), [i, o] = be(t);
1259
1259
  return e < i ? -1 : e > i ? 1 : r < o ? -1 : r > o ? 1 : 0;
1260
1260
  }
1261
1261
  function Ct(n, t) {
1262
- return Te(n, t) === 1;
1262
+ return ie(n, t) === 1;
1263
1263
  }
1264
1264
  function Et(n, t) {
1265
- return Te(n, t) >= 0;
1265
+ return ie(n, t) >= 0;
1266
1266
  }
1267
- const be = "2.0";
1267
+ const ye = "2.0";
1268
1268
  class xt {
1269
1269
  /**
1270
1270
  * Create a new instance of the {@link IpcHelper | IPC Protocol Helper}.
@@ -1276,8 +1276,8 @@ class xt {
1276
1276
  * @param logService - An instance of a logging service or utility
1277
1277
  */
1278
1278
  constructor(t, e) {
1279
- if (E(this, "negotiatedProtocolVersion"), E(this, "currentContext"), E(this, "incomingMessages$"), E(this, "inIframe", !1), E(this, "embeddedResult"), E(this, "iframePort1"), E(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new xe(), this.supportedVersions = t.filter((r) => Et(r, be)), !this.supportedVersions.length)
1280
- throw new le(t, be);
1279
+ if (E(this, "negotiatedProtocolVersion"), E(this, "currentContext"), E(this, "incomingMessages$"), E(this, "inIframe", !1), E(this, "embeddedResult"), E(this, "iframePort1"), E(this, "iframePort2"), this.supportedVersions = t, this.logService = e, this.incomingMessages$ = new _e(), this.supportedVersions = t.filter((r) => Et(r, ye)), !this.supportedVersions.length)
1280
+ throw new he(t, ye);
1281
1281
  this.negotiatedProtocolVersion = this.supportedVersions[0], this.embeddedResult = null, this.iframePort2 = null;
1282
1282
  }
1283
1283
  get parent() {
@@ -1299,11 +1299,11 @@ class xt {
1299
1299
  var t, e, r, i;
1300
1300
  if (this.inIframe) {
1301
1301
  if (!this.iframePort2)
1302
- throw new ae("port2");
1302
+ throw new le("port2");
1303
1303
  return this.iframePort2;
1304
1304
  } else {
1305
1305
  if (!((e = (t = window.Acrobits) == null ? void 0 : t.messageChannel) != null && e.port2))
1306
- throw new ae("port2");
1306
+ throw new le("port2");
1307
1307
  return (i = (r = window.Acrobits) == null ? void 0 : r.messageChannel) == null ? void 0 : i.port2;
1308
1308
  }
1309
1309
  }
@@ -1335,7 +1335,7 @@ class xt {
1335
1335
  v(this.logReceived(t)),
1336
1336
  l((i) => {
1337
1337
  if (this.supportedVersions.some((o) => Ct(o, i.protocolVersion)))
1338
- throw new le(i.protocolVersion, this.supportedVersions[0]);
1338
+ throw new he(i.protocolVersion, this.supportedVersions[0]);
1339
1339
  return i;
1340
1340
  }),
1341
1341
  v((i) => {
@@ -1881,6 +1881,32 @@ class xt {
1881
1881
  let t = !1;
1882
1882
  return this.logService.debug("Checking if running in iframe..."), t = !!this.frameElement, t || (t = this.self !== this.parent), t ? (this.logService.debug("In iframe"), this.inIframe = !0, this.embeddedResult = !0, !0) : (this.logService.debug("Not in iframe"), this.logService.debug("Checking if running in native app..."), !t && (t = !!window.Acrobits, t) ? (this.logService.debug("In native app"), this.embeddedResult = !0, t) : (this.logService.debug("Not running in native app"), this.embeddedResult = !1, this.embeddedResult));
1883
1883
  }
1884
+ /**
1885
+ * Compares the negotiated protocol version with the provided version.
1886
+ *
1887
+ * @remarks
1888
+ * This method is used to compare the negotiated protocol version with the provided version. This
1889
+ * is useful when you want to check if the client app supports a certain feature or not.
1890
+ *
1891
+ * @example
1892
+ * Here is an example of how you can use this method to check if the client app supports
1893
+ * {@link ViewTransitionMessage}:
1894
+ *
1895
+ * ```ts
1896
+ * const ipcHelper = new IpcHelper(['2.0'], console);
1897
+ *
1898
+ * const supportsViewTransition = ipcHelper.compareVersion('2.0') >= 0;
1899
+ * ```
1900
+ *
1901
+ * @param version - The version to compare against
1902
+ * @returns Returns the result of a comparison between the negotiated protocol version and the
1903
+ * provided version. Returns `0` if the versions are equal, `-1` if the negotiated version is
1904
+ * lower than the provided version and `1` if the negotiated version is higher than the provided
1905
+ * version.
1906
+ */
1907
+ compareVersion(t) {
1908
+ return ie(this.negotiatedProtocolVersion, t);
1909
+ }
1884
1910
  logReceived(t, e) {
1885
1911
  const r = (i) => this.logService.debug(`[IPC] Received ${t} message`, i);
1886
1912
  return e && r(e), r;