@openfin/node-adapter 45.100.72 → 45.100.74

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 (2) hide show
  1. package/out/node-adapter.js +373 -245
  2. package/package.json +2 -2
@@ -35,13 +35,13 @@ var net__namespace = /*#__PURE__*/_interopNamespaceDefault(net);
35
35
  var os__namespace = /*#__PURE__*/_interopNamespaceDefault(os);
36
36
  var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
37
37
 
38
- var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
38
+ var __classPrivateFieldSet$k = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
39
39
  if (kind === "m") throw new TypeError("Private method is not writable");
40
40
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
41
41
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
42
42
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
43
43
  };
44
- var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
44
+ var __classPrivateFieldGet$l = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
45
45
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
46
46
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
47
47
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -122,9 +122,9 @@ class EmitterBase extends Base {
122
122
  this.emit = (eventType, payload, ...args) => {
123
123
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
124
124
  };
125
- this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
125
+ this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
126
126
  this.getOrCreateEmitter = () => {
127
- return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
127
+ return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
128
128
  };
129
129
  this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
130
130
  this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
@@ -162,8 +162,8 @@ class EmitterBase extends Base {
162
162
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
163
163
  return Promise.resolve();
164
164
  };
165
- __classPrivateFieldSet$i(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
166
- __classPrivateFieldSet$i(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
165
+ __classPrivateFieldSet$k(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
166
+ __classPrivateFieldSet$k(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
167
167
  }
168
168
  /**
169
169
  * Adds a listener to the end of the listeners array for the specified event.
@@ -191,7 +191,7 @@ class EmitterBase extends Base {
191
191
  */
192
192
  async once(eventType, listener, options) {
193
193
  const deregister = () => this.deregisterEventListener(eventType);
194
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
194
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
195
195
  await this.registerEventListener(eventType, options, (emitter) => {
196
196
  emitter.once(eventType, deregister);
197
197
  emitter.once(eventType, listener);
@@ -222,7 +222,7 @@ class EmitterBase extends Base {
222
222
  */
223
223
  async prependOnceListener(eventType, listener, options) {
224
224
  const deregister = () => this.deregisterEventListener(eventType);
225
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
225
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
226
226
  await this.registerEventListener(eventType, options, (emitter) => {
227
227
  emitter.prependOnceListener(eventType, listener);
228
228
  emitter.once(eventType, deregister);
@@ -241,7 +241,7 @@ class EmitterBase extends Base {
241
241
  const emitter = await this.deregisterEventListener(eventType, options);
242
242
  if (emitter) {
243
243
  emitter.removeListener(eventType, listener);
244
- const deregister = __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
244
+ const deregister = __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
245
245
  if (deregister) {
246
246
  emitter.removeListener(eventType, deregister);
247
247
  }
@@ -287,7 +287,7 @@ class EmitterBase extends Base {
287
287
  deleteEmitterIfNothingRegistered(emitter) {
288
288
  // TODO: maybe emitterMap should clean up itself..
289
289
  if (emitter.eventNames().length === 0) {
290
- this.wire.eventAggregator.delete(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
290
+ this.wire.eventAggregator.delete(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
291
291
  }
292
292
  }
293
293
  }
@@ -7390,12 +7390,12 @@ let ChannelError$1 = class ChannelError extends Error {
7390
7390
  }
7391
7391
  };
7392
7392
 
7393
- var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7393
+ var __classPrivateFieldGet$k = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7394
7394
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7395
7395
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7396
7396
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7397
7397
  };
7398
- var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7398
+ var __classPrivateFieldSet$j = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7399
7399
  if (kind === "m") throw new TypeError("Private method is not writable");
7400
7400
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7401
7401
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -7434,7 +7434,7 @@ class ChannelClient extends ChannelBase {
7434
7434
  static closeChannelByEndpointId(id) {
7435
7435
  const channel = channelClientsByEndpointId.get(id);
7436
7436
  if (channel) {
7437
- __classPrivateFieldGet$i(channel, _ChannelClient_close, "f").call(channel);
7437
+ __classPrivateFieldGet$k(channel, _ChannelClient_close, "f").call(channel);
7438
7438
  }
7439
7439
  }
7440
7440
  /**
@@ -7445,7 +7445,7 @@ class ChannelClient extends ChannelBase {
7445
7445
  for (const channelClient of channelClientsByEndpointId.values()) {
7446
7446
  if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
7447
7447
  channelClient.disconnectListener(eventPayload);
7448
- __classPrivateFieldGet$i(channelClient, _ChannelClient_close, "f").call(channelClient);
7448
+ __classPrivateFieldGet$k(channelClient, _ChannelClient_close, "f").call(channelClient);
7449
7449
  }
7450
7450
  }
7451
7451
  }
@@ -7460,12 +7460,12 @@ class ChannelClient extends ChannelBase {
7460
7460
  this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
7461
7461
  _ChannelClient_close.set(this, () => {
7462
7462
  channelClientsByEndpointId.delete(this.endpointId);
7463
- __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").close();
7463
+ __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").close();
7464
7464
  });
7465
- __classPrivateFieldSet$h(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7465
+ __classPrivateFieldSet$j(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7466
7466
  this.disconnectListener = () => undefined;
7467
7467
  this.endpointId = routingInfo.endpointId;
7468
- __classPrivateFieldSet$h(this, _ChannelClient_strategy, strategy, "f");
7468
+ __classPrivateFieldSet$j(this, _ChannelClient_strategy, strategy, "f");
7469
7469
  channelClientsByEndpointId.set(this.endpointId, this);
7470
7470
  strategy.receive(this.processAction);
7471
7471
  }
@@ -7473,7 +7473,7 @@ class ChannelClient extends ChannelBase {
7473
7473
  * a read-only provider identity
7474
7474
  */
7475
7475
  get providerIdentity() {
7476
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7476
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7477
7477
  return protectedObj.providerIdentity;
7478
7478
  }
7479
7479
  /**
@@ -7502,9 +7502,9 @@ class ChannelClient extends ChannelBase {
7502
7502
  * ```
7503
7503
  */
7504
7504
  async dispatch(action, payload) {
7505
- if (__classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7505
+ if (__classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7506
7506
  const callSites = RuntimeError.getCallSite();
7507
- return __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7507
+ return __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7508
7508
  throw new ChannelError$1(e, action, payload, callSites);
7509
7509
  });
7510
7510
  }
@@ -7556,10 +7556,10 @@ class ChannelClient extends ChannelBase {
7556
7556
  */
7557
7557
  async disconnect() {
7558
7558
  await this.sendDisconnectAction();
7559
- __classPrivateFieldGet$i(this, _ChannelClient_close, "f").call(this);
7559
+ __classPrivateFieldGet$k(this, _ChannelClient_close, "f").call(this);
7560
7560
  }
7561
7561
  async sendDisconnectAction() {
7562
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7562
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7563
7563
  await protectedObj.close();
7564
7564
  }
7565
7565
  /**
@@ -7582,13 +7582,13 @@ function exhaustiveCheck(value, allowed) {
7582
7582
  throw new Error(`Unsupported value: ${value}${allowed ? `\n Supported values are: ${allowed.join('')}` : ''}`);
7583
7583
  }
7584
7584
 
7585
- var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7585
+ var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7586
7586
  if (kind === "m") throw new TypeError("Private method is not writable");
7587
7587
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7588
7588
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
7589
7589
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7590
7590
  };
7591
- var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7591
+ var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7592
7592
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7593
7593
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7594
7594
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -7611,7 +7611,7 @@ class ClassicStrategy {
7611
7611
  // connection problems occur
7612
7612
  _ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
7613
7613
  this.send = async (endpointId, action, payload) => {
7614
- const to = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7614
+ const to = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7615
7615
  if (!to) {
7616
7616
  throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
7617
7617
  }
@@ -7623,13 +7623,13 @@ class ClassicStrategy {
7623
7623
  }
7624
7624
  delete cleanId.isLocalEndpointId;
7625
7625
  // grab the promise before awaiting it to save in our pending messages map
7626
- const p = __classPrivateFieldGet$h(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7626
+ const p = __classPrivateFieldGet$j(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7627
7627
  ...cleanId,
7628
7628
  providerIdentity: this.providerIdentity,
7629
7629
  action,
7630
7630
  payload
7631
7631
  });
7632
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7632
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7633
7633
  const raw = await p
7634
7634
  .catch((error) => {
7635
7635
  if ('cause' in error) {
@@ -7639,16 +7639,16 @@ class ClassicStrategy {
7639
7639
  })
7640
7640
  .finally(() => {
7641
7641
  // clean up the pending promise
7642
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7642
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7643
7643
  });
7644
7644
  return raw.payload.data.result;
7645
7645
  };
7646
7646
  this.close = async () => {
7647
7647
  this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
7648
- [...__classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7649
- __classPrivateFieldSet$g(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7648
+ [...__classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7649
+ __classPrivateFieldSet$i(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7650
7650
  };
7651
- __classPrivateFieldSet$g(this, _ClassicStrategy_wire, wire, "f");
7651
+ __classPrivateFieldSet$i(this, _ClassicStrategy_wire, wire, "f");
7652
7652
  }
7653
7653
  onEndpointDisconnect(endpointId, listener) {
7654
7654
  // Never fires for 'classic'.
@@ -7657,20 +7657,20 @@ class ClassicStrategy {
7657
7657
  this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
7658
7658
  }
7659
7659
  async closeEndpoint(endpointId) {
7660
- const id = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7661
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7662
- const pendingSet = __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7660
+ const id = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7661
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7662
+ const pendingSet = __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7663
7663
  pendingSet?.forEach((p) => {
7664
7664
  const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
7665
7665
  p.cancel(new Error(errorMsg));
7666
7666
  });
7667
7667
  }
7668
7668
  isEndpointConnected(endpointId) {
7669
- return __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7669
+ return __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7670
7670
  }
7671
7671
  addEndpoint(endpointId, payload) {
7672
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7673
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7672
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7673
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7674
7674
  }
7675
7675
  isValidEndpointPayload(payload) {
7676
7676
  return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
@@ -7695,12 +7695,12 @@ function errorToPOJO(error) {
7695
7695
  return errorObj;
7696
7696
  }
7697
7697
 
7698
- var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7698
+ var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7699
7699
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7700
7700
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7701
7701
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7702
7702
  };
7703
- var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7703
+ var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7704
7704
  if (kind === "m") throw new TypeError("Private method is not writable");
7705
7705
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7706
7706
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -7731,8 +7731,8 @@ class RTCEndpoint {
7731
7731
  if (this.rtc.rtcClient.connectionState !== 'connected') {
7732
7732
  this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
7733
7733
  this.close();
7734
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7735
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7734
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7735
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7736
7736
  }
7737
7737
  }
7738
7738
  };
@@ -7780,9 +7780,9 @@ class RTCEndpoint {
7780
7780
  data = new TextDecoder().decode(e.data);
7781
7781
  }
7782
7782
  const { messageId, action, payload } = JSON.parse(data);
7783
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
7783
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
7784
7784
  try {
7785
- const res = await __classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7785
+ const res = await __classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7786
7786
  this.rtc.channels.response.send(JSON.stringify({
7787
7787
  messageId,
7788
7788
  payload: res,
@@ -7816,25 +7816,25 @@ class RTCEndpoint {
7816
7816
  datachannel.onclose = (e) => {
7817
7817
  [...this.responseMap.values()].forEach((promise) => promise.reject(new Error('RTCDataChannel closed unexpectedly, this is most commonly caused by message size. Note: RTC Channels have a message size limit of ~255kB.')));
7818
7818
  this.close();
7819
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7820
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7819
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7820
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7821
7821
  }
7822
7822
  };
7823
7823
  });
7824
7824
  }
7825
7825
  onDisconnect(listener) {
7826
- if (!__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7827
- __classPrivateFieldSet$f(this, _RTCEndpoint_disconnectListener, listener, "f");
7826
+ if (!__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7827
+ __classPrivateFieldSet$h(this, _RTCEndpoint_disconnectListener, listener, "f");
7828
7828
  }
7829
7829
  else {
7830
7830
  throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
7831
7831
  }
7832
7832
  }
7833
7833
  receive(listener) {
7834
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
7834
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
7835
7835
  throw new Error('You have already set a listener for this RTC Endpoint.');
7836
7836
  }
7837
- __classPrivateFieldSet$f(this, _RTCEndpoint_processAction, listener, "f");
7837
+ __classPrivateFieldSet$h(this, _RTCEndpoint_processAction, listener, "f");
7838
7838
  }
7839
7839
  get connected() {
7840
7840
  return this.rtc.rtcClient.connectionState === 'connected';
@@ -7842,12 +7842,12 @@ class RTCEndpoint {
7842
7842
  }
7843
7843
  _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
7844
7844
 
7845
- var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7845
+ var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7846
7846
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7847
7847
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7848
7848
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7849
7849
  };
7850
- var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7850
+ var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7851
7851
  if (kind === "m") throw new TypeError("Private method is not writable");
7852
7852
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7853
7853
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -7866,11 +7866,11 @@ class EndpointStrategy {
7866
7866
  return this.getEndpointById(endpointId).send(action, payload);
7867
7867
  };
7868
7868
  this.close = async () => {
7869
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
7870
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7871
- __classPrivateFieldSet$e(this, _EndpointStrategy_endpointMap, new Map(), "f");
7869
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
7870
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7871
+ __classPrivateFieldSet$g(this, _EndpointStrategy_endpointMap, new Map(), "f");
7872
7872
  }
7873
- __classPrivateFieldSet$e(this, _EndpointStrategy_connected, false, "f");
7873
+ __classPrivateFieldSet$g(this, _EndpointStrategy_connected, false, "f");
7874
7874
  };
7875
7875
  this.isValidEndpointPayload = validateEndpoint;
7876
7876
  }
@@ -7878,39 +7878,39 @@ class EndpointStrategy {
7878
7878
  this.getEndpointById(endpointId).onDisconnect(listener);
7879
7879
  }
7880
7880
  receive(listener) {
7881
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
7881
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
7882
7882
  throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
7883
7883
  }
7884
- __classPrivateFieldSet$e(this, _EndpointStrategy_processAction, listener, "f");
7884
+ __classPrivateFieldSet$g(this, _EndpointStrategy_processAction, listener, "f");
7885
7885
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7886
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")));
7886
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")));
7887
7887
  }
7888
7888
  getEndpointById(endpointId) {
7889
- const endpoint = __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
7889
+ const endpoint = __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
7890
7890
  if (!endpoint) {
7891
7891
  throw new Error(`Client with endpoint id ${endpointId} is not connected`);
7892
7892
  }
7893
7893
  return endpoint;
7894
7894
  }
7895
7895
  get connected() {
7896
- return __classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f");
7896
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f");
7897
7897
  }
7898
7898
  isEndpointConnected(endpointId) {
7899
- return __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
7899
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
7900
7900
  }
7901
7901
  addEndpoint(endpointId, payload) {
7902
- if (!__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
7902
+ if (!__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
7903
7903
  console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
7904
7904
  return;
7905
7905
  }
7906
7906
  const clientStrat = new this.EndpointType(payload);
7907
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
7908
- clientStrat.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f"));
7907
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
7908
+ clientStrat.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f"));
7909
7909
  }
7910
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
7910
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
7911
7911
  }
7912
7912
  async closeEndpoint(endpointId) {
7913
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
7913
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
7914
7914
  }
7915
7915
  }
7916
7916
  _EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
@@ -8071,12 +8071,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
8071
8071
  return meetsMinimumRuntimeVersion(runtimeVersion, minVersion);
8072
8072
  }
8073
8073
 
8074
- var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8074
+ var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8075
8075
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8076
8076
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8077
8077
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8078
8078
  };
8079
- var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8079
+ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8080
8080
  if (kind === "m") throw new TypeError("Private method is not writable");
8081
8081
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8082
8082
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -8114,19 +8114,19 @@ class ChannelProvider extends ChannelBase {
8114
8114
  * a read-only array containing all the identities of connecting clients.
8115
8115
  */
8116
8116
  get connections() {
8117
- return [...__classPrivateFieldGet$e(this, _ChannelProvider_connections, "f")];
8117
+ return [...__classPrivateFieldGet$g(this, _ChannelProvider_connections, "f")];
8118
8118
  }
8119
8119
  static handleClientDisconnection(channel, payload) {
8120
8120
  if (payload?.endpointId) {
8121
8121
  const { uuid, name, endpointId, isLocalEndpointId } = payload;
8122
- __classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8122
+ __classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8123
8123
  }
8124
8124
  else {
8125
8125
  // this is here to support older runtimes that did not have endpointId
8126
8126
  const multipleRemoves = channel.connections.filter((identity) => {
8127
8127
  return identity.uuid === payload.uuid && identity.name === payload.name;
8128
8128
  });
8129
- multipleRemoves.forEach(__classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f"));
8129
+ multipleRemoves.forEach(__classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f"));
8130
8130
  }
8131
8131
  channel.disconnectListener(payload);
8132
8132
  }
@@ -8143,8 +8143,8 @@ class ChannelProvider extends ChannelBase {
8143
8143
  _ChannelProvider_strategy.set(this, void 0);
8144
8144
  _ChannelProvider_removeEndpoint.set(this, (identity) => {
8145
8145
  const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
8146
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8147
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, remainingConnections, "f");
8146
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8147
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, remainingConnections, "f");
8148
8148
  });
8149
8149
  // Must be bound.
8150
8150
  this.processAction = async (action, payload, senderIdentity) => {
@@ -8158,17 +8158,17 @@ class ChannelProvider extends ChannelBase {
8158
8158
  return super.processAction(action, payload, senderIdentity);
8159
8159
  };
8160
8160
  _ChannelProvider_close.set(this, () => {
8161
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").close();
8161
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8162
8162
  const remove = ChannelProvider.removalMap.get(this);
8163
8163
  if (remove) {
8164
8164
  remove();
8165
8165
  }
8166
8166
  });
8167
- __classPrivateFieldSet$d(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8167
+ __classPrivateFieldSet$f(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8168
8168
  this.connectListener = () => undefined;
8169
8169
  this.disconnectListener = () => undefined;
8170
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8171
- __classPrivateFieldSet$d(this, _ChannelProvider_strategy, strategy, "f");
8170
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8171
+ __classPrivateFieldSet$f(this, _ChannelProvider_strategy, strategy, "f");
8172
8172
  strategy.receive(this.processAction);
8173
8173
  }
8174
8174
  /**
@@ -8199,16 +8199,16 @@ class ChannelProvider extends ChannelBase {
8199
8199
  */
8200
8200
  dispatch(to, action, payload) {
8201
8201
  const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
8202
- if (endpointId && __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8202
+ if (endpointId && __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8203
8203
  const callSites = RuntimeError.getCallSite();
8204
- return __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8204
+ return __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8205
8205
  throw new ChannelError$1(e, action, payload, callSites);
8206
8206
  });
8207
8207
  }
8208
8208
  return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
8209
8209
  }
8210
8210
  async processConnection(senderId, payload) {
8211
- __classPrivateFieldGet$e(this, _ChannelProvider_connections, "f").push(senderId);
8211
+ __classPrivateFieldGet$g(this, _ChannelProvider_connections, "f").push(senderId);
8212
8212
  return this.connectListener(senderId, payload);
8213
8213
  }
8214
8214
  /**
@@ -8231,7 +8231,7 @@ class ChannelProvider extends ChannelBase {
8231
8231
  * ```
8232
8232
  */
8233
8233
  publish(action, payload) {
8234
- return this.connections.map((to) => __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8234
+ return this.connections.map((to) => __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8235
8235
  }
8236
8236
  /**
8237
8237
  * Register a listener that is called on every new client connection.
@@ -8305,11 +8305,11 @@ class ChannelProvider extends ChannelBase {
8305
8305
  * ```
8306
8306
  */
8307
8307
  async destroy() {
8308
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8308
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8309
8309
  protectedObj.providerIdentity;
8310
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8310
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8311
8311
  await protectedObj.close();
8312
- __classPrivateFieldGet$e(this, _ChannelProvider_close, "f").call(this);
8312
+ __classPrivateFieldGet$g(this, _ChannelProvider_close, "f").call(this);
8313
8313
  }
8314
8314
  /**
8315
8315
  * Returns an array with info on every Client connected to the Provider
@@ -8379,7 +8379,7 @@ class ChannelProvider extends ChannelBase {
8379
8379
  getEndpointIdForOpenFinId(clientIdentity, action) {
8380
8380
  const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
8381
8381
  if (matchingConnections.length >= 2) {
8382
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8382
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8383
8383
  const { uuid, name } = clientIdentity;
8384
8384
  const providerUuid = protectedObj?.providerIdentity.uuid;
8385
8385
  const providerName = protectedObj?.providerIdentity.name;
@@ -8573,13 +8573,13 @@ class CombinedStrategy {
8573
8573
  }
8574
8574
  }
8575
8575
 
8576
- var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8576
+ var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8577
8577
  if (kind === "m") throw new TypeError("Private method is not writable");
8578
8578
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8579
8579
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
8580
8580
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8581
8581
  };
8582
- var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8582
+ var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8583
8583
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8584
8584
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8585
8585
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8614,8 +8614,8 @@ class ConnectionManager extends Base {
8614
8614
  };
8615
8615
  this.providerMap = new Map();
8616
8616
  this.protocolManager = new ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
8617
- __classPrivateFieldSet$c(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8618
- __classPrivateFieldSet$c(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8617
+ __classPrivateFieldSet$e(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8618
+ __classPrivateFieldSet$e(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8619
8619
  wire.registerMessageHandler(this.onmessage.bind(this));
8620
8620
  }
8621
8621
  createProvider(options, providerIdentity) {
@@ -8626,7 +8626,7 @@ class ConnectionManager extends Base {
8626
8626
  case 'rtc':
8627
8627
  return new RTCStrategy();
8628
8628
  case 'classic':
8629
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"),
8629
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"),
8630
8630
  // Providers do not have an endpointId, use channelId as endpointId in the strategy.
8631
8631
  providerIdentity.channelId, providerIdentity);
8632
8632
  default:
@@ -8662,7 +8662,7 @@ class ConnectionManager extends Base {
8662
8662
  const supportedProtocols = await Promise.all(protocols.map(async (type) => {
8663
8663
  switch (type) {
8664
8664
  case 'rtc': {
8665
- const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8665
+ const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8666
8666
  rtcPacket = { rtcClient, channels, channelsOpened };
8667
8667
  return {
8668
8668
  type: 'rtc',
@@ -8689,18 +8689,18 @@ class ConnectionManager extends Base {
8689
8689
  routingInfo.endpointId = this.wire.environment.getNextMessageId();
8690
8690
  // For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
8691
8691
  // clients that are in the same context as the newly-connected client.
8692
- __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8692
+ __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8693
8693
  }
8694
8694
  const answer = routingInfo.answer ?? {
8695
8695
  supportedProtocols: [{ type: 'classic', version: 1 }]
8696
8696
  };
8697
8697
  const createStrategyFromAnswer = async (protocol) => {
8698
8698
  if (protocol.type === 'rtc' && rtcPacket) {
8699
- await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8699
+ await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8700
8700
  return new RTCStrategy();
8701
8701
  }
8702
8702
  if (protocol.type === 'classic') {
8703
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8703
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8704
8704
  }
8705
8705
  return null;
8706
8706
  };
@@ -8768,7 +8768,7 @@ class ConnectionManager extends Base {
8768
8768
  clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
8769
8769
  const answer = await accumP;
8770
8770
  if (protocolToUse.type === 'rtc') {
8771
- const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8771
+ const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8772
8772
  answer.supportedProtocols.push({
8773
8773
  type: 'rtc',
8774
8774
  version: RTCInfo.version,
@@ -8815,13 +8815,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
8815
8815
  *
8816
8816
  * @packageDocumentation
8817
8817
  */
8818
- var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8818
+ var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8819
8819
  if (kind === "m") throw new TypeError("Private method is not writable");
8820
8820
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8821
8821
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
8822
8822
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8823
8823
  };
8824
- var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8824
+ var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8825
8825
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8826
8826
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8827
8827
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8869,11 +8869,11 @@ class Channel extends EmitterBase {
8869
8869
  ChannelClient.handleProviderDisconnect(eventPayload);
8870
8870
  }),
8871
8871
  this.on('connected', (...args) => {
8872
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").emit('connected', ...args);
8872
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").emit('connected', ...args);
8873
8873
  })
8874
8874
  ]).catch(() => new Error('error setting up channel connection listeners'));
8875
8875
  }));
8876
- __classPrivateFieldSet$b(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
8876
+ __classPrivateFieldSet$d(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
8877
8877
  }
8878
8878
  /**
8879
8879
  *
@@ -8948,7 +8948,7 @@ class Channel extends EmitterBase {
8948
8948
  resolve(true);
8949
8949
  }
8950
8950
  };
8951
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
8951
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
8952
8952
  });
8953
8953
  try {
8954
8954
  if (retryInfo.count > 0) {
@@ -8980,7 +8980,7 @@ class Channel extends EmitterBase {
8980
8980
  finally {
8981
8981
  retryInfo.count += 1;
8982
8982
  // in case of other errors, remove our listener
8983
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
8983
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
8984
8984
  }
8985
8985
  } while (shouldWait); // If we're waiting we retry the above loop
8986
8986
  // Should wait was false, no channel was found.
@@ -9039,12 +9039,12 @@ class Channel extends EmitterBase {
9039
9039
  async connect(channelName, options = {}) {
9040
9040
  // Make sure we don't connect before listeners are set up
9041
9041
  // This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
9042
- await __classPrivateFieldGet$c(this, _Channel_readyToConnect, "f").getValue();
9042
+ await __classPrivateFieldGet$e(this, _Channel_readyToConnect, "f").getValue();
9043
9043
  if (!channelName || typeof channelName !== 'string') {
9044
9044
  throw new Error('Please provide a channelName string to connect to a channel.');
9045
9045
  }
9046
9046
  const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
9047
- const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientOffer(opts);
9047
+ const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientOffer(opts);
9048
9048
  let connectionUrl;
9049
9049
  if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
9050
9050
  connectionUrl = (await this.fin.me.getInfo()).url;
@@ -9056,7 +9056,7 @@ class Channel extends EmitterBase {
9056
9056
  connectionUrl
9057
9057
  };
9058
9058
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
9059
- const strategy = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9059
+ const strategy = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9060
9060
  const channel = new ChannelClient(routingInfo, () => ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
9061
9061
  // It is the client's responsibility to handle endpoint disconnection to the provider.
9062
9062
  // If the endpoint dies, the client will force a disconnection through the core.
@@ -9125,7 +9125,7 @@ class Channel extends EmitterBase {
9125
9125
  throw new Error('Please provide a channelName to create a channel');
9126
9126
  }
9127
9127
  const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
9128
- const channel = __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9128
+ const channel = __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9129
9129
  // TODO: fix typing (internal)
9130
9130
  // @ts-expect-error
9131
9131
  this.on('client-disconnected', (eventPayload) => {
@@ -9882,13 +9882,13 @@ class GlobalHotkey extends EmitterBase {
9882
9882
  }
9883
9883
  }
9884
9884
 
9885
- var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9885
+ var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9886
9886
  if (kind === "m") throw new TypeError("Private method is not writable");
9887
9887
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9888
9888
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
9889
9889
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9890
9890
  };
9891
- var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9891
+ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9892
9892
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9893
9893
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
9894
9894
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9920,24 +9920,24 @@ class Platform extends EmitterBase {
9920
9920
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
9921
9921
  // don't expose
9922
9922
  });
9923
- if (!Platform.clientMap.has(__classPrivateFieldGet$b(this, _Platform_channelName, "f"))) {
9924
- const clientPromise = __classPrivateFieldGet$b(this, _Platform_connectToProvider, "f").call(this);
9925
- Platform.clientMap.set(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), clientPromise);
9923
+ if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
9924
+ const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
9925
+ Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
9926
9926
  }
9927
9927
  // we set it above
9928
9928
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9929
- return Platform.clientMap.get(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9929
+ return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9930
9930
  };
9931
9931
  _Platform_connectToProvider.set(this, async () => {
9932
9932
  try {
9933
- const client = await this._channel.connect(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), { wait: false });
9933
+ const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
9934
9934
  client.onDisconnection(() => {
9935
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9935
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9936
9936
  });
9937
9937
  return client;
9938
9938
  }
9939
9939
  catch (e) {
9940
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9940
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9941
9941
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
9942
9942
  }
9943
9943
  });
@@ -9950,7 +9950,7 @@ class Platform extends EmitterBase {
9950
9950
  if (errorMsg) {
9951
9951
  throw new Error(errorMsg);
9952
9952
  }
9953
- __classPrivateFieldSet$a(this, _Platform_channelName, channelName, "f");
9953
+ __classPrivateFieldSet$c(this, _Platform_channelName, channelName, "f");
9954
9954
  this._channel = this.fin.InterApplicationBus.Channel;
9955
9955
  this.identity = { uuid: identity.uuid };
9956
9956
  this.Layout = this.fin.Platform.Layout;
@@ -10806,13 +10806,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
10806
10806
  }
10807
10807
  };
10808
10808
 
10809
- var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10809
+ var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10810
10810
  if (kind === "m") throw new TypeError("Private method is not writable");
10811
10811
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10812
10812
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10813
10813
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10814
10814
  };
10815
- var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10815
+ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10816
10816
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10817
10817
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10818
10818
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -10862,7 +10862,7 @@ class LayoutNode {
10862
10862
  * console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
10863
10863
  * ```
10864
10864
  */
10865
- this.isRoot = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").isRoot(this.entityId);
10865
+ this.isRoot = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").isRoot(this.entityId);
10866
10866
  /**
10867
10867
  * Checks if the TabStack or ColumnOrRow exists
10868
10868
  *
@@ -10882,7 +10882,7 @@ class LayoutNode {
10882
10882
  * console.log(`The entity exists: ${exists}`);
10883
10883
  * ```
10884
10884
  */
10885
- this.exists = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").exists(this.entityId);
10885
+ this.exists = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").exists(this.entityId);
10886
10886
  /**
10887
10887
  * Retrieves the parent of the TabStack or ColumnOrRow
10888
10888
  *
@@ -10903,11 +10903,11 @@ class LayoutNode {
10903
10903
  * ```
10904
10904
  */
10905
10905
  this.getParent = async () => {
10906
- const parent = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getParent(this.entityId);
10906
+ const parent = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getParent(this.entityId);
10907
10907
  if (!parent) {
10908
10908
  return undefined;
10909
10909
  }
10910
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
10910
+ return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
10911
10911
  };
10912
10912
  /**
10913
10913
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -10958,8 +10958,8 @@ class LayoutNode {
10958
10958
  * @experimental
10959
10959
  */
10960
10960
  this.createAdjacentStack = async (views, options) => {
10961
- const entityId = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
10962
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
10961
+ const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
10962
+ return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
10963
10963
  };
10964
10964
  /**
10965
10965
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -10987,16 +10987,16 @@ class LayoutNode {
10987
10987
  * @experimental
10988
10988
  */
10989
10989
  this.getAdjacentStacks = async (edge) => {
10990
- const adjacentStacks = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getAdjacentStacks({
10990
+ const adjacentStacks = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getAdjacentStacks({
10991
10991
  targetId: this.entityId,
10992
10992
  edge
10993
10993
  });
10994
10994
  return adjacentStacks.map((stack) => LayoutNode.getEntity({
10995
10995
  type: 'stack',
10996
10996
  entityId: stack.entityId
10997
- }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f")));
10997
+ }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
10998
10998
  };
10999
- __classPrivateFieldSet$9(this, _LayoutNode_client, client, "f");
10999
+ __classPrivateFieldSet$b(this, _LayoutNode_client, client, "f");
11000
11000
  this.entityId = entityId;
11001
11001
  }
11002
11002
  }
@@ -11069,7 +11069,7 @@ class TabStack extends LayoutNode {
11069
11069
  * ```
11070
11070
  * @experimental
11071
11071
  */
11072
- this.getViews = () => __classPrivateFieldGet$a(this, _TabStack_client, "f").getStackViews(this.entityId);
11072
+ this.getViews = () => __classPrivateFieldGet$c(this, _TabStack_client, "f").getStackViews(this.entityId);
11073
11073
  /**
11074
11074
  * Adds or creates a view in this {@link TabStack}.
11075
11075
  *
@@ -11100,7 +11100,7 @@ class TabStack extends LayoutNode {
11100
11100
  * ```
11101
11101
  * @experimental
11102
11102
  */
11103
- this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$a(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11103
+ this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$c(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11104
11104
  /**
11105
11105
  * Removes a view from this {@link TabStack}.
11106
11106
  *
@@ -11130,7 +11130,7 @@ class TabStack extends LayoutNode {
11130
11130
  * ```
11131
11131
  */
11132
11132
  this.removeView = async (view) => {
11133
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11133
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11134
11134
  };
11135
11135
  /**
11136
11136
  * Sets the active view of the {@link TabStack} without focusing it.
@@ -11154,9 +11154,9 @@ class TabStack extends LayoutNode {
11154
11154
  * @experimental
11155
11155
  */
11156
11156
  this.setActiveView = async (view) => {
11157
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11157
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11158
11158
  };
11159
- __classPrivateFieldSet$9(this, _TabStack_client, client, "f");
11159
+ __classPrivateFieldSet$b(this, _TabStack_client, client, "f");
11160
11160
  }
11161
11161
  }
11162
11162
  _TabStack_client = new WeakMap();
@@ -11194,10 +11194,10 @@ class ColumnOrRow extends LayoutNode {
11194
11194
  * ```
11195
11195
  */
11196
11196
  this.getContent = async () => {
11197
- const contentItemEntities = await __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11198
- return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f")));
11197
+ const contentItemEntities = await __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11198
+ return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f")));
11199
11199
  };
11200
- __classPrivateFieldSet$9(this, _ColumnOrRow_client, client, "f");
11200
+ __classPrivateFieldSet$b(this, _ColumnOrRow_client, client, "f");
11201
11201
  this.type = type;
11202
11202
  }
11203
11203
  }
@@ -11207,7 +11207,7 @@ const LAYOUT_CONTROLLER_ID = 'layout-entities';
11207
11207
  // TODO: eventually export this somehow
11208
11208
  const DEFAULT_LAYOUT_KEY = '__default__';
11209
11209
 
11210
- var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11210
+ var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11211
11211
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11212
11212
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11213
11213
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11350,7 +11350,7 @@ class Layout extends Base {
11350
11350
  * @internal
11351
11351
  */
11352
11352
  static getClient(layout) {
11353
- return __classPrivateFieldGet$9(layout, _Layout_layoutClient, "f").getValue();
11353
+ return __classPrivateFieldGet$b(layout, _Layout_layoutClient, "f").getValue();
11354
11354
  }
11355
11355
  /**
11356
11356
  * @internal
@@ -11573,7 +11573,7 @@ class Layout extends Base {
11573
11573
  this.wire.sendAction('layout-get-root-item').catch(() => {
11574
11574
  // don't expose
11575
11575
  });
11576
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11576
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11577
11577
  const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
11578
11578
  return LayoutNode.getEntity(root, client);
11579
11579
  }
@@ -11591,7 +11591,7 @@ class Layout extends Base {
11591
11591
  this.wire.sendAction('layout-get-stack-by-view').catch(() => {
11592
11592
  // don't expose
11593
11593
  });
11594
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11594
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11595
11595
  const stack = await client.getStackByView(identity);
11596
11596
  if (!stack) {
11597
11597
  throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
@@ -11611,7 +11611,7 @@ class Layout extends Base {
11611
11611
  this.wire.sendAction('layout-add-view').catch((e) => {
11612
11612
  // don't expose
11613
11613
  });
11614
- const { identity } = await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11614
+ const { identity } = await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11615
11615
  viewOptions,
11616
11616
  location,
11617
11617
  targetView
@@ -11629,7 +11629,7 @@ class Layout extends Base {
11629
11629
  this.wire.sendAction('layout-close-view').catch((e) => {
11630
11630
  // don't expose
11631
11631
  });
11632
- await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11632
+ await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11633
11633
  }
11634
11634
  }
11635
11635
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
@@ -11642,12 +11642,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
11642
11642
  return client.dispatch(action, { target: this.identity, opts: payload });
11643
11643
  };
11644
11644
 
11645
- var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11645
+ var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11646
11646
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11647
11647
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11648
11648
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11649
11649
  };
11650
- var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11650
+ var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11651
11651
  if (kind === "m") throw new TypeError("Private method is not writable");
11652
11652
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11653
11653
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -11706,23 +11706,23 @@ class LayoutModule extends Base {
11706
11706
  if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
11707
11707
  throw new Error('Layout.init can only be called from a Window context.');
11708
11708
  }
11709
- if (__classPrivateFieldGet$8(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11709
+ if (__classPrivateFieldGet$a(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11710
11710
  throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
11711
11711
  }
11712
11712
  if (this.wire.environment.type === 'openfin') {
11713
11713
  // preload the client
11714
11714
  await this.fin.Platform.getCurrentSync().getClient();
11715
11715
  }
11716
- __classPrivateFieldSet$8(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11716
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11717
11717
  // TODO: rename to createLayoutManager
11718
- __classPrivateFieldSet$8(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11719
- await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f"), options);
11718
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11719
+ await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f"), options);
11720
11720
  const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
11721
11721
  if (!options.layoutManagerOverride) {
11722
11722
  // CORE-1081 to be removed when we actually delete the `layoutManager` prop
11723
11723
  // in single-layout case, we return the undocumented layoutManager type
11724
11724
  const layoutIdentity = { layoutName: DEFAULT_LAYOUT_KEY, ...meIdentity };
11725
- return __classPrivateFieldGet$8(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11725
+ return __classPrivateFieldGet$a(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11726
11726
  }
11727
11727
  return this.wrapSync(meIdentity);
11728
11728
  };
@@ -11751,13 +11751,13 @@ class LayoutModule extends Base {
11751
11751
  * @returns
11752
11752
  */
11753
11753
  this.getCurrentLayoutManagerSync = () => {
11754
- return __classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11754
+ return __classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11755
11755
  };
11756
11756
  this.create = async (options) => {
11757
- return this.wire.environment.createLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11757
+ return this.wire.environment.createLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11758
11758
  };
11759
11759
  this.destroy = async (layoutIdentity) => {
11760
- return this.wire.environment.destroyLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11760
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11761
11761
  };
11762
11762
  }
11763
11763
  /**
@@ -11887,10 +11887,10 @@ class LayoutModule extends Base {
11887
11887
  }
11888
11888
  }
11889
11889
  _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11890
- if (!__classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f")) {
11890
+ if (!__classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f")) {
11891
11891
  throw new Error(`You must call init before using the API ${method}`);
11892
11892
  }
11893
- return __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f");
11893
+ return __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f");
11894
11894
  };
11895
11895
 
11896
11896
  /**
@@ -12726,13 +12726,13 @@ class PrivateChannelProvider {
12726
12726
  }
12727
12727
  }
12728
12728
 
12729
- var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12729
+ var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12730
12730
  if (kind === "m") throw new TypeError("Private method is not writable");
12731
12731
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12732
12732
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
12733
12733
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12734
12734
  };
12735
- var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12735
+ var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12736
12736
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12737
12737
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
12738
12738
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -12912,12 +12912,12 @@ class InteropBroker extends Base {
12912
12912
  _InteropBroker_contextGroups.set(this, void 0);
12913
12913
  _InteropBroker_providerPromise.set(this, void 0);
12914
12914
  this.getProvider = () => {
12915
- return __classPrivateFieldGet$7(this, _InteropBroker_providerPromise, "f").getValue();
12915
+ return __classPrivateFieldGet$9(this, _InteropBroker_providerPromise, "f").getValue();
12916
12916
  };
12917
12917
  this.interopClients = new Map();
12918
12918
  this.contextGroupsById = new Map();
12919
- __classPrivateFieldSet$7(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
12920
- __classPrivateFieldSet$7(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
12919
+ __classPrivateFieldSet$9(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
12920
+ __classPrivateFieldSet$9(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
12921
12921
  if (options?.logging) {
12922
12922
  this.logging = options.logging;
12923
12923
  }
@@ -12925,7 +12925,7 @@ class InteropBroker extends Base {
12925
12925
  this.lastContextMap = new Map();
12926
12926
  this.sessionContextGroupMap = new Map();
12927
12927
  this.privateChannelProviderMap = new Map();
12928
- __classPrivateFieldSet$7(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
12928
+ __classPrivateFieldSet$9(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
12929
12929
  this.setContextGroupMap();
12930
12930
  this.setupChannelProvider();
12931
12931
  }
@@ -13208,7 +13208,7 @@ class InteropBroker extends Base {
13208
13208
  // don't expose, analytics-only call
13209
13209
  });
13210
13210
  // Create copy for immutability
13211
- return __classPrivateFieldGet$7(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13211
+ return __classPrivateFieldGet$9(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13212
13212
  return { ...contextGroup };
13213
13213
  });
13214
13214
  }
@@ -13619,7 +13619,7 @@ class InteropBroker extends Base {
13619
13619
  const { fdc3Version } = payload;
13620
13620
  return {
13621
13621
  fdc3Version,
13622
- ...__classPrivateFieldGet$7(this, _InteropBroker_fdc3Info, "f"),
13622
+ ...__classPrivateFieldGet$9(this, _InteropBroker_fdc3Info, "f"),
13623
13623
  optionalFeatures: {
13624
13624
  OriginatingAppMetadata: false,
13625
13625
  UserChannelMembershipAPIs: true
@@ -13999,13 +13999,13 @@ class InteropBroker extends Base {
13999
13999
  _InteropBroker_fdc3Info = new WeakMap(), _InteropBroker_contextGroups = new WeakMap(), _InteropBroker_providerPromise = new WeakMap();
14000
14000
  InteropBroker.checkContextIntegrity = checkContextIntegrity;
14001
14001
 
14002
- var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14002
+ var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14003
14003
  if (kind === "m") throw new TypeError("Private method is not writable");
14004
14004
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14005
14005
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14006
14006
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14007
14007
  };
14008
- var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14008
+ var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14009
14009
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14010
14010
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14011
14011
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14016,7 +14016,7 @@ class SessionContextGroupClient extends Base {
14016
14016
  super(wire);
14017
14017
  _SessionContextGroupClient_clientPromise.set(this, void 0);
14018
14018
  this.id = id;
14019
- __classPrivateFieldSet$6(this, _SessionContextGroupClient_clientPromise, client, "f");
14019
+ __classPrivateFieldSet$8(this, _SessionContextGroupClient_clientPromise, client, "f");
14020
14020
  }
14021
14021
  /**
14022
14022
  * Sets a context for the session context group.
@@ -14028,7 +14028,7 @@ class SessionContextGroupClient extends Base {
14028
14028
  this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
14029
14029
  // don't expose, analytics-only call
14030
14030
  });
14031
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14031
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14032
14032
  return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
14033
14033
  sessionContextGroupId: this.id,
14034
14034
  context
@@ -14038,7 +14038,7 @@ class SessionContextGroupClient extends Base {
14038
14038
  this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
14039
14039
  // don't expose, analytics-only call
14040
14040
  });
14041
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14041
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14042
14042
  return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
14043
14043
  sessionContextGroupId: this.id,
14044
14044
  type
@@ -14051,7 +14051,7 @@ class SessionContextGroupClient extends Base {
14051
14051
  if (typeof contextHandler !== 'function') {
14052
14052
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14053
14053
  }
14054
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14054
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14055
14055
  let handlerId;
14056
14056
  if (contextType) {
14057
14057
  handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${generateId()}`;
@@ -14064,7 +14064,7 @@ class SessionContextGroupClient extends Base {
14064
14064
  return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
14065
14065
  }
14066
14066
  async createUnsubscribeCb(handlerId) {
14067
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14067
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14068
14068
  return async () => {
14069
14069
  client.remove(handlerId);
14070
14070
  await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
@@ -14081,13 +14081,13 @@ class SessionContextGroupClient extends Base {
14081
14081
  }
14082
14082
  _SessionContextGroupClient_clientPromise = new WeakMap();
14083
14083
 
14084
- var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14084
+ var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14085
14085
  if (kind === "m") throw new TypeError("Private method is not writable");
14086
14086
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14087
14087
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14088
14088
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14089
14089
  };
14090
- var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14090
+ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14091
14091
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14092
14092
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14093
14093
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14105,11 +14105,11 @@ class ChannelEvents {
14105
14105
  _ChannelEvents_channelClient.set(this, void 0);
14106
14106
  _ChannelEvents_isChannelReady.set(this, false);
14107
14107
  _ChannelEvents_getActions.set(this, async () => {
14108
- const channelClient = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14109
- let actions = __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14108
+ const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14109
+ let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14110
14110
  if (!actions) {
14111
14111
  actions = {};
14112
- __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14112
+ __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14113
14113
  }
14114
14114
  return actions;
14115
14115
  });
@@ -14126,7 +14126,7 @@ class ChannelEvents {
14126
14126
  if (index >= 0) {
14127
14127
  callbacks.splice(index, 1);
14128
14128
  if (callbacks.length === 0) {
14129
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14129
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14130
14130
  client.remove(actionId);
14131
14131
  }
14132
14132
  }
@@ -14135,7 +14135,7 @@ class ChannelEvents {
14135
14135
  // Use lazy eval to only setup and register the channel on first attempt.
14136
14136
  if (!registrationPromise) {
14137
14137
  registrationPromise = (async () => {
14138
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14138
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14139
14139
  await client.register(actionId, onChannelAction);
14140
14140
  })();
14141
14141
  }
@@ -14144,14 +14144,14 @@ class ChannelEvents {
14144
14144
  };
14145
14145
  });
14146
14146
  _ChannelEvents_getRegistration.set(this, async (actionId) => {
14147
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14147
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14148
14148
  return actions[actionId];
14149
14149
  });
14150
14150
  _ChannelEvents_getOrCreateRegistration.set(this, async (actionId) => {
14151
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14152
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14151
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14152
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14153
14153
  if (!registration) {
14154
- actions[actionId] = __classPrivateFieldGet$5(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14154
+ actions[actionId] = __classPrivateFieldGet$7(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14155
14155
  }
14156
14156
  return actions[actionId];
14157
14157
  });
@@ -14166,7 +14166,7 @@ class ChannelEvents {
14166
14166
  * @param callback Callback to be called whenever the action is dispatched.
14167
14167
  */
14168
14168
  this.addListener = async (action, callback) => {
14169
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14169
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14170
14170
  event.callbacks.push(callback);
14171
14171
  // This ensures we only resolve the subscription once the action is registered
14172
14172
  await event.waitForRegistration();
@@ -14180,19 +14180,19 @@ class ChannelEvents {
14180
14180
  * @param callback Callback to remove.
14181
14181
  */
14182
14182
  this.removeListener = async (action, callback) => {
14183
- if (!__classPrivateFieldGet$5(this, _ChannelEvents_isChannelReady, "f")) {
14183
+ if (!__classPrivateFieldGet$7(this, _ChannelEvents_isChannelReady, "f")) {
14184
14184
  return;
14185
14185
  }
14186
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, action);
14186
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, action);
14187
14187
  if (registration) {
14188
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14188
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14189
14189
  await event.dispose(callback);
14190
14190
  }
14191
14191
  };
14192
- __classPrivateFieldSet$5(this, _ChannelEvents_channelClient, channelClient, "f");
14192
+ __classPrivateFieldSet$7(this, _ChannelEvents_channelClient, channelClient, "f");
14193
14193
  Promise.resolve(channelClient)
14194
14194
  .then(() => {
14195
- __classPrivateFieldSet$5(this, _ChannelEvents_isChannelReady, true, "f");
14195
+ __classPrivateFieldSet$7(this, _ChannelEvents_isChannelReady, true, "f");
14196
14196
  })
14197
14197
  .catch(() => {
14198
14198
  // eslint-disable-next-line
@@ -14209,13 +14209,13 @@ _a = ChannelEvents, _ChannelEvents_channelClient = new WeakMap(), _ChannelEvents
14209
14209
  */
14210
14210
  _ChannelEvents_actionsByClient = { value: new WeakMap() };
14211
14211
 
14212
- var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14212
+ var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14213
14213
  if (kind === "m") throw new TypeError("Private method is not writable");
14214
14214
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14215
14215
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14216
14216
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14217
14217
  };
14218
- var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14218
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14219
14219
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14220
14220
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14221
14221
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14291,7 +14291,7 @@ class InteropClient extends Base {
14291
14291
  */
14292
14292
  this.addListener = async (type, listener) => {
14293
14293
  try {
14294
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14294
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14295
14295
  }
14296
14296
  catch (error) {
14297
14297
  throw new Error(`An unexpected error occurred when adding a listener to the event ${type}. \n${error.stack}.`);
@@ -14305,16 +14305,16 @@ class InteropClient extends Base {
14305
14305
  */
14306
14306
  this.removeListener = async (type, listener) => {
14307
14307
  try {
14308
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14308
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14309
14309
  }
14310
14310
  catch (error) {
14311
14311
  throw new Error(`An unexpected error occurred when removing a listener for the event ${type}. \n${error.stack}.`);
14312
14312
  }
14313
14313
  };
14314
- __classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
14315
- __classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
14316
- __classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14317
- __classPrivateFieldSet$4(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14314
+ __classPrivateFieldSet$6(this, _InteropClient_sessionContextGroups, new Map(), "f");
14315
+ __classPrivateFieldSet$6(this, _InteropClient_clientPromise, clientPromise, "f");
14316
+ __classPrivateFieldSet$6(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14317
+ __classPrivateFieldSet$6(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14318
14318
  }
14319
14319
  /**
14320
14320
  * Sets a context for the context group of the current entity.
@@ -14339,7 +14339,7 @@ class InteropClient extends Base {
14339
14339
  this.wire.sendAction('interop-client-set-context').catch((e) => {
14340
14340
  // don't expose, analytics-only call
14341
14341
  });
14342
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14342
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14343
14343
  return client.dispatch('setContext', { context });
14344
14344
  }
14345
14345
  /**
@@ -14406,7 +14406,7 @@ class InteropClient extends Base {
14406
14406
  if (typeof handler !== 'function') {
14407
14407
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14408
14408
  }
14409
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14409
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14410
14410
  let handlerId;
14411
14411
  if (contextType) {
14412
14412
  handlerId = `invokeContextHandler-${contextType}-${generateId()}`;
@@ -14446,7 +14446,7 @@ class InteropClient extends Base {
14446
14446
  this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
14447
14447
  // don't expose, analytics-only call
14448
14448
  });
14449
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14449
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14450
14450
  return client.dispatch('getContextGroups');
14451
14451
  }
14452
14452
  /**
@@ -14477,7 +14477,7 @@ class InteropClient extends Base {
14477
14477
  this.wire.sendAction('interop-client-join-context-group').catch((e) => {
14478
14478
  // don't expose, analytics-only call
14479
14479
  });
14480
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14480
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14481
14481
  if (!contextGroupId) {
14482
14482
  throw new Error('No contextGroupId specified for joinContextGroup.');
14483
14483
  }
@@ -14506,7 +14506,7 @@ class InteropClient extends Base {
14506
14506
  this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
14507
14507
  // don't expose, analytics-only call
14508
14508
  });
14509
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14509
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14510
14510
  return client.dispatch('removeFromContextGroup', { target });
14511
14511
  }
14512
14512
  /**
@@ -14529,7 +14529,7 @@ class InteropClient extends Base {
14529
14529
  this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
14530
14530
  // don't expose, analytics-only call
14531
14531
  });
14532
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14532
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14533
14533
  if (!contextGroupId) {
14534
14534
  throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
14535
14535
  }
@@ -14554,7 +14554,7 @@ class InteropClient extends Base {
14554
14554
  this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
14555
14555
  // don't expose, analytics-only call
14556
14556
  });
14557
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14557
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14558
14558
  if (!contextGroupId) {
14559
14559
  throw new Error('No contextGroupId specified for getInfoForContextGroup.');
14560
14560
  }
@@ -14582,7 +14582,7 @@ class InteropClient extends Base {
14582
14582
  this.wire.sendAction('interop-client-fire-intent').catch((e) => {
14583
14583
  // don't expose, this is only for api analytics purposes
14584
14584
  });
14585
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14585
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14586
14586
  return client.dispatch('fireIntent', intent);
14587
14587
  }
14588
14588
  /**
@@ -14609,7 +14609,7 @@ class InteropClient extends Base {
14609
14609
  this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
14610
14610
  // don't expose, this is only for api analytics purposes
14611
14611
  });
14612
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14612
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14613
14613
  const handlerId = `intent-handler-${intentName}`;
14614
14614
  const wrappedHandler = wrapIntentHandler(handler, handlerId);
14615
14615
  try {
@@ -14647,7 +14647,7 @@ class InteropClient extends Base {
14647
14647
  this.wire.sendAction('interop-client-get-current-context').catch((e) => {
14648
14648
  // don't expose, analytics-only call
14649
14649
  });
14650
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14650
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14651
14651
  return client.dispatch('getCurrentContext', { contextType });
14652
14652
  }
14653
14653
  /**
@@ -14667,7 +14667,7 @@ class InteropClient extends Base {
14667
14667
  this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
14668
14668
  // don't expose, analytics-only call
14669
14669
  });
14670
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14670
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14671
14671
  return client.dispatch('getInfoForIntent', options);
14672
14672
  }
14673
14673
  /**
@@ -14698,7 +14698,7 @@ class InteropClient extends Base {
14698
14698
  this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
14699
14699
  // don't expose, analytics-only call
14700
14700
  });
14701
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14701
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14702
14702
  return client.dispatch('getInfoForIntentsByContext', context);
14703
14703
  }
14704
14704
  /**
@@ -14730,7 +14730,7 @@ class InteropClient extends Base {
14730
14730
  this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
14731
14731
  // don't expose, analytics-only call
14732
14732
  });
14733
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14733
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14734
14734
  return client.dispatch('fireIntentForContext', context);
14735
14735
  }
14736
14736
  /**
@@ -14767,19 +14767,19 @@ class InteropClient extends Base {
14767
14767
  */
14768
14768
  async joinSessionContextGroup(sessionContextGroupId) {
14769
14769
  try {
14770
- const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14770
+ const currentSessionContextGroup = __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14771
14771
  if (currentSessionContextGroup) {
14772
14772
  return currentSessionContextGroup.getUserInstance();
14773
14773
  }
14774
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14774
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14775
14775
  const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
14776
14776
  sessionContextGroupId
14777
14777
  });
14778
14778
  if (hasConflict) {
14779
14779
  console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
14780
14780
  }
14781
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14782
- __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14781
+ const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14782
+ __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14783
14783
  return newSessionContextGroup.getUserInstance();
14784
14784
  }
14785
14785
  catch (error) {
@@ -14806,14 +14806,14 @@ class InteropClient extends Base {
14806
14806
  this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
14807
14807
  // don't expose, analytics-only call
14808
14808
  });
14809
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14809
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14810
14810
  return client.onDisconnection((event) => {
14811
14811
  const { uuid } = event;
14812
14812
  listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
14813
14813
  });
14814
14814
  }
14815
14815
  getFDC3Sync(version) {
14816
- return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14816
+ return __classPrivateFieldGet$6(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14817
14817
  }
14818
14818
  async getFDC3(version) {
14819
14819
  return this.getFDC3Sync(version);
@@ -14824,7 +14824,7 @@ class InteropClient extends Base {
14824
14824
  * Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
14825
14825
  */
14826
14826
  static async ferryFdc3Call(interopClient, action, payload) {
14827
- const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
14827
+ const client = await __classPrivateFieldGet$6(interopClient, _InteropClient_clientPromise, "f");
14828
14828
  return client.dispatch(action, payload || null);
14829
14829
  }
14830
14830
  }
@@ -15190,12 +15190,12 @@ const getIntentResolution = async (interopModule, context, app, intent) => {
15190
15190
  return { ...intentResolutionInfoFromBroker, getResult };
15191
15191
  };
15192
15192
 
15193
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15193
+ var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15194
15194
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15195
15195
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
15196
15196
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15197
15197
  };
15198
- var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15198
+ var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15199
15199
  if (kind === "m") throw new TypeError("Private method is not writable");
15200
15200
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15201
15201
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -15204,7 +15204,7 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
15204
15204
  var _FDC3ModuleBase_producer;
15205
15205
  class FDC3ModuleBase {
15206
15206
  get client() {
15207
- return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
15207
+ return __classPrivateFieldGet$5(this, _FDC3ModuleBase_producer, "f").call(this);
15208
15208
  }
15209
15209
  get fin() {
15210
15210
  return this.wire.getFin();
@@ -15213,7 +15213,7 @@ class FDC3ModuleBase {
15213
15213
  constructor(producer, wire) {
15214
15214
  this.wire = wire;
15215
15215
  _FDC3ModuleBase_producer.set(this, void 0);
15216
- __classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
15216
+ __classPrivateFieldSet$5(this, _FDC3ModuleBase_producer, producer, "f");
15217
15217
  }
15218
15218
  /**
15219
15219
  * Broadcasts a context for the channel of the current entity.
@@ -16013,13 +16013,13 @@ class InteropModule extends Base {
16013
16013
  const channelPrefix = 'snapshot-source-provider-';
16014
16014
  const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
16015
16015
 
16016
- var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16016
+ var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16017
16017
  if (kind === "m") throw new TypeError("Private method is not writable");
16018
16018
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16019
16019
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16020
16020
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16021
16021
  };
16022
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16022
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16023
16023
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16024
16024
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16025
16025
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16046,26 +16046,26 @@ class SnapshotSource extends Base {
16046
16046
  return connectionMap.get(this.identity.uuid);
16047
16047
  });
16048
16048
  _SnapshotSource_getClient.set(this, () => {
16049
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16050
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
16049
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16050
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$4(this, _SnapshotSource_startConnection, "f").call(this);
16051
16051
  }
16052
- return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16052
+ return __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16053
16053
  });
16054
16054
  _SnapshotSource_startConnection.set(this, async () => {
16055
16055
  const channelName = getSnapshotSourceChannelName(this.identity);
16056
16056
  try {
16057
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16058
- await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16057
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16058
+ await __classPrivateFieldGet$4(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16059
16059
  }
16060
16060
  const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
16061
16061
  client.onDisconnection(() => {
16062
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16063
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16062
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16063
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16064
16064
  });
16065
16065
  return client;
16066
16066
  }
16067
16067
  catch (e) {
16068
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16068
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16069
16069
  throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
16070
16070
  }
16071
16071
  });
@@ -16077,7 +16077,7 @@ class SnapshotSource extends Base {
16077
16077
  resolve = y;
16078
16078
  reject = n;
16079
16079
  });
16080
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16080
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16081
16081
  const listener = async (e) => {
16082
16082
  try {
16083
16083
  if (e.channelName === channelName) {
@@ -16091,10 +16091,10 @@ class SnapshotSource extends Base {
16091
16091
  };
16092
16092
  await this.fin.InterApplicationBus.Channel.on('connected', listener);
16093
16093
  });
16094
- __classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
16094
+ __classPrivateFieldSet$4(this, _SnapshotSource_identity, id, "f");
16095
16095
  }
16096
16096
  get identity() {
16097
- return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
16097
+ return __classPrivateFieldGet$4(this, _SnapshotSource_identity, "f");
16098
16098
  }
16099
16099
  /**
16100
16100
  * Method to determine if the SnapshotSource has been initialized.
@@ -16128,11 +16128,11 @@ class SnapshotSource extends Base {
16128
16128
  // eslint-disable-next-line no-async-promise-executor
16129
16129
  try {
16130
16130
  // If getClient was already called before this, do we have a timing issue where the channel might have been created but we missed the event but this still fails?
16131
- await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16131
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16132
16132
  }
16133
16133
  catch (e) {
16134
16134
  // it was not running.
16135
- await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16135
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16136
16136
  }
16137
16137
  }
16138
16138
  /**
@@ -16141,7 +16141,7 @@ class SnapshotSource extends Base {
16141
16141
  */
16142
16142
  async getSnapshot() {
16143
16143
  this.wire.recordAnalytic('snapshot-source-get-snapshot');
16144
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16144
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16145
16145
  const response = (await client.dispatch('get-snapshot'));
16146
16146
  return (await response).snapshot;
16147
16147
  }
@@ -16151,7 +16151,7 @@ class SnapshotSource extends Base {
16151
16151
  */
16152
16152
  async applySnapshot(snapshot) {
16153
16153
  this.wire.recordAnalytic('snapshot-source-apply-snapshot');
16154
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16154
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16155
16155
  return client.dispatch('apply-snapshot', { snapshot });
16156
16156
  }
16157
16157
  }
@@ -16228,13 +16228,13 @@ class SnapshotSourceModule extends Base {
16228
16228
  }
16229
16229
  }
16230
16230
 
16231
- var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16231
+ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16232
16232
  if (kind === "m") throw new TypeError("Private method is not writable");
16233
16233
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16234
16234
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16235
16235
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16236
16236
  };
16237
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16237
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16238
16238
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16239
16239
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16240
16240
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16263,11 +16263,11 @@ class NotificationManagerInstance {
16263
16263
  _NotificationManagerInstance_handler.set(this, void 0);
16264
16264
  _NotificationManagerInstance_id.set(this, void 0);
16265
16265
  _NotificationManagerInstance_isReceivingNotifications.set(this, new Lazy(async () => {
16266
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16267
- if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
16266
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16267
+ if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f")) {
16268
16268
  const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
16269
16269
  try {
16270
- __classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16270
+ __classPrivateFieldGet$3(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16271
16271
  properties,
16272
16272
  images: {
16273
16273
  image,
@@ -16305,8 +16305,8 @@ class NotificationManagerInstance {
16305
16305
  * ```
16306
16306
  */
16307
16307
  this.setNotificationHandler = async (handler) => {
16308
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16309
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
16308
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16309
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_handler, handler, "f");
16310
16310
  };
16311
16311
  /**
16312
16312
  * Destroys the current NotificationManagerInstance.
@@ -16317,7 +16317,7 @@ class NotificationManagerInstance {
16317
16317
  * ```
16318
16318
  */
16319
16319
  this.destroy = async () => {
16320
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
16320
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f") });
16321
16321
  };
16322
16322
  /**
16323
16323
  * Dispatches a Notification lifecycle event ('close' | 'click' | 'show').
@@ -16343,13 +16343,13 @@ class NotificationManagerInstance {
16343
16343
  */
16344
16344
  this.dispatch = async (event) => {
16345
16345
  const { notificationId, type } = event;
16346
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16346
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16347
16347
  notificationId,
16348
16348
  type
16349
16349
  });
16350
16350
  };
16351
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
16352
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
16351
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_wire, wire, "f");
16352
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_id, id, "f");
16353
16353
  }
16354
16354
  }
16355
16355
  _NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
@@ -16383,6 +16383,133 @@ class NotificationManagerModule extends Base {
16383
16383
  }
16384
16384
  }
16385
16385
 
16386
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16387
+ if (kind === "m") throw new TypeError("Private method is not writable");
16388
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16389
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16390
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16391
+ };
16392
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16393
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16394
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16395
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16396
+ };
16397
+ var _Writable_value, _Writable_listeners, _Writable_readonlyWrapper;
16398
+ /**
16399
+ * Internal, a mutable implementation of the observable pattern.
16400
+ * It strictly controls its internal state and provides a secure
16401
+ * read-only wrapper for public consumption.
16402
+ */
16403
+ class Writable {
16404
+ constructor(initialValue) {
16405
+ _Writable_value.set(this, void 0);
16406
+ _Writable_listeners.set(this, new Set());
16407
+ _Writable_readonlyWrapper.set(this, null);
16408
+ this.get = () => {
16409
+ return __classPrivateFieldGet$2(this, _Writable_value, "f");
16410
+ };
16411
+ this.set = (newValue) => {
16412
+ if (__classPrivateFieldGet$2(this, _Writable_value, "f") !== newValue) {
16413
+ __classPrivateFieldSet$2(this, _Writable_value, newValue, "f");
16414
+ // Snapshot listeners before invoking so subscribe/unsubscribe calls
16415
+ // made by a listener affect future emits, not the in-flight one.
16416
+ for (const listener of [...__classPrivateFieldGet$2(this, _Writable_listeners, "f")]) {
16417
+ try {
16418
+ listener();
16419
+ }
16420
+ catch (err) {
16421
+ // A throwing listener must not block later listeners; rethrow async
16422
+ // so the error surfaces via the host's unhandled-error reporter.
16423
+ setTimeout(() => {
16424
+ throw err;
16425
+ }, 0);
16426
+ }
16427
+ }
16428
+ }
16429
+ };
16430
+ this.subscribe = (listener) => {
16431
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").add(listener);
16432
+ return () => {
16433
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").delete(listener);
16434
+ };
16435
+ };
16436
+ __classPrivateFieldSet$2(this, _Writable_value, initialValue, "f");
16437
+ }
16438
+ get readonly() {
16439
+ if (!__classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f")) {
16440
+ __classPrivateFieldSet$2(this, _Writable_readonlyWrapper, {
16441
+ get: this.get,
16442
+ subscribe: this.subscribe
16443
+ }, "f");
16444
+ }
16445
+ return __classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f");
16446
+ }
16447
+ }
16448
+ _Writable_value = new WeakMap(), _Writable_listeners = new WeakMap(), _Writable_readonlyWrapper = new WeakMap();
16449
+
16450
+ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16451
+ if (kind === "m") throw new TypeError("Private method is not writable");
16452
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16453
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16454
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16455
+ };
16456
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16457
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16458
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16459
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16460
+ };
16461
+ var _ChromeBrowserActionsImpl_wire, _ChromeBrowserActionsImpl_state;
16462
+ class ChromeBrowserActionsImpl {
16463
+ constructor(wire) {
16464
+ _ChromeBrowserActionsImpl_wire.set(this, void 0);
16465
+ _ChromeBrowserActionsImpl_state.set(this, new Writable([]));
16466
+ __classPrivateFieldSet$1(this, _ChromeBrowserActionsImpl_wire, wire, "f");
16467
+ }
16468
+ get state() {
16469
+ return __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_state, "f").readonly;
16470
+ }
16471
+ /**
16472
+ * @internal Wires up the runtime push-update handler. Called once at construction
16473
+ * for window contexts; views never receive these updates.
16474
+ */
16475
+ static activate(instance) {
16476
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_wire, "f").registerMessageHandler((msg) => {
16477
+ if (msg?.action === 'chrome-browser-actions-update') {
16478
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_state, "f").set(msg?.payload?.actions ?? []);
16479
+ return true;
16480
+ }
16481
+ return false;
16482
+ });
16483
+ }
16484
+ async getExtensionActions() {
16485
+ const ack = await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-get-extension-actions', {});
16486
+ return ack.payload.data.actions;
16487
+ }
16488
+ async invokeExtensionAction(options) {
16489
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-invoke-extension-action', options);
16490
+ }
16491
+ async hideActiveExtensionPopup() {
16492
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-hide-active-extension-popup', {});
16493
+ }
16494
+ }
16495
+ _ChromeBrowserActionsImpl_wire = new WeakMap(), _ChromeBrowserActionsImpl_state = new WeakMap();
16496
+
16497
+ /**
16498
+ * Client-side handle for the chrome-browser feature on the current window.
16499
+ *
16500
+ * The window must have been created with `chromeBrowser: true` for these APIs to do
16501
+ * anything meaningful — there is no separate `init()` step. From a view or a non
16502
+ * chrome-browser window, calls into `Actions` will resolve to empty results.
16503
+ */
16504
+ class ChromeBrowserModule {
16505
+ constructor(wire, isWindow) {
16506
+ this.Actions = new ChromeBrowserActionsImpl(wire);
16507
+ if (isWindow) {
16508
+ ChromeBrowserActionsImpl.activate(this.Actions);
16509
+ }
16510
+ }
16511
+ }
16512
+
16386
16513
  /**
16387
16514
  * @internal
16388
16515
  */
@@ -16406,6 +16533,7 @@ class Fin extends events.EventEmitter {
16406
16533
  this.Interop = new InteropModule(wire);
16407
16534
  this.SnapshotSource = new SnapshotSourceModule(wire);
16408
16535
  this.NotificationManager = new NotificationManagerModule(wire);
16536
+ this.ChromeBrowser = new ChromeBrowserModule(wire, wire.me.entityType === 'window');
16409
16537
  wire.registerFin(this);
16410
16538
  this.me = getMe(wire);
16411
16539
  // Handle disconnect events
@@ -17158,7 +17286,7 @@ class NodeEnvironment extends BaseEnvironment {
17158
17286
  };
17159
17287
  }
17160
17288
  getAdapterVersionSync() {
17161
- return "45.100.72";
17289
+ return "45.100.74";
17162
17290
  }
17163
17291
  observeBounds(element, onChange) {
17164
17292
  throw new Error('Method not implemented.');