@floe-ai/sdk 0.1.0-dev.24 → 0.1.0-dev.26

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.
@@ -21,21 +21,21 @@ function vc(r) {
21
21
  var js = Number.isNaN || function(e) {
22
22
  return e !== e;
23
23
  };
24
- function ue() {
25
- ue.init.call(this);
24
+ function de() {
25
+ de.init.call(this);
26
26
  }
27
- di.exports = ue;
27
+ di.exports = de;
28
28
  di.exports.once = xc;
29
- ue.EventEmitter = ue;
30
- ue.prototype._events = void 0;
31
- ue.prototype._eventsCount = 0;
32
- ue.prototype._maxListeners = void 0;
29
+ de.EventEmitter = de;
30
+ de.prototype._events = void 0;
31
+ de.prototype._eventsCount = 0;
32
+ de.prototype._maxListeners = void 0;
33
33
  var Ri = 10;
34
34
  function sr(r) {
35
35
  if (typeof r != "function")
36
36
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof r);
37
37
  }
38
- Object.defineProperty(ue, "defaultMaxListeners", {
38
+ Object.defineProperty(de, "defaultMaxListeners", {
39
39
  enumerable: !0,
40
40
  get: function() {
41
41
  return Ri;
@@ -46,21 +46,21 @@ Object.defineProperty(ue, "defaultMaxListeners", {
46
46
  Ri = r;
47
47
  }
48
48
  });
49
- ue.init = function() {
49
+ de.init = function() {
50
50
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
51
51
  };
52
- ue.prototype.setMaxListeners = function(e) {
52
+ de.prototype.setMaxListeners = function(e) {
53
53
  if (typeof e != "number" || e < 0 || js(e))
54
54
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
55
55
  return this._maxListeners = e, this;
56
56
  };
57
57
  function Us(r) {
58
- return r._maxListeners === void 0 ? ue.defaultMaxListeners : r._maxListeners;
58
+ return r._maxListeners === void 0 ? de.defaultMaxListeners : r._maxListeners;
59
59
  }
60
- ue.prototype.getMaxListeners = function() {
60
+ de.prototype.getMaxListeners = function() {
61
61
  return Us(this);
62
62
  };
63
- ue.prototype.emit = function(e) {
63
+ de.prototype.emit = function(e) {
64
64
  for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
65
65
  var i = e === "error", o = this._events;
66
66
  if (o !== void 0)
@@ -99,11 +99,11 @@ function Hs(r, e, t, n) {
99
99
  }
100
100
  return r;
101
101
  }
102
- ue.prototype.addListener = function(e, t) {
102
+ de.prototype.addListener = function(e, t) {
103
103
  return Hs(this, e, t, !1);
104
104
  };
105
- ue.prototype.on = ue.prototype.addListener;
106
- ue.prototype.prependListener = function(e, t) {
105
+ de.prototype.on = de.prototype.addListener;
106
+ de.prototype.prependListener = function(e, t) {
107
107
  return Hs(this, e, t, !0);
108
108
  };
109
109
  function wc() {
@@ -114,13 +114,13 @@ function zs(r, e, t) {
114
114
  var n = { fired: !1, wrapFn: void 0, target: r, type: e, listener: t }, i = wc.bind(n);
115
115
  return i.listener = t, n.wrapFn = i, i;
116
116
  }
117
- ue.prototype.once = function(e, t) {
117
+ de.prototype.once = function(e, t) {
118
118
  return sr(t), this.on(e, zs(this, e, t)), this;
119
119
  };
120
- ue.prototype.prependOnceListener = function(e, t) {
120
+ de.prototype.prependOnceListener = function(e, t) {
121
121
  return sr(t), this.prependListener(e, zs(this, e, t)), this;
122
122
  };
123
- ue.prototype.removeListener = function(e, t) {
123
+ de.prototype.removeListener = function(e, t) {
124
124
  var n, i, o, s, a;
125
125
  if (sr(t), i = this._events, i === void 0)
126
126
  return this;
@@ -140,8 +140,8 @@ ue.prototype.removeListener = function(e, t) {
140
140
  }
141
141
  return this;
142
142
  };
143
- ue.prototype.off = ue.prototype.removeListener;
144
- ue.prototype.removeAllListeners = function(e) {
143
+ de.prototype.off = de.prototype.removeListener;
144
+ de.prototype.removeAllListeners = function(e) {
145
145
  var t, n, i;
146
146
  if (n = this._events, n === void 0)
147
147
  return this;
@@ -167,16 +167,16 @@ function qs(r, e, t) {
167
167
  var i = n[e];
168
168
  return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ? kc(i) : Ks(i, i.length);
169
169
  }
170
- ue.prototype.listeners = function(e) {
170
+ de.prototype.listeners = function(e) {
171
171
  return qs(this, e, !0);
172
172
  };
173
- ue.prototype.rawListeners = function(e) {
173
+ de.prototype.rawListeners = function(e) {
174
174
  return qs(this, e, !1);
175
175
  };
176
- ue.listenerCount = function(r, e) {
176
+ de.listenerCount = function(r, e) {
177
177
  return typeof r.listenerCount == "function" ? r.listenerCount(e) : Vs.call(r, e);
178
178
  };
179
- ue.prototype.listenerCount = Vs;
179
+ de.prototype.listenerCount = Vs;
180
180
  function Vs(r) {
181
181
  var e = this._events;
182
182
  if (e !== void 0) {
@@ -188,7 +188,7 @@ function Vs(r) {
188
188
  }
189
189
  return 0;
190
190
  }
191
- ue.prototype.eventNames = function() {
191
+ de.prototype.eventNames = function() {
192
192
  return this._eventsCount > 0 ? Vn(this._events) : [];
193
193
  };
194
194
  function Ks(r, e) {
@@ -2604,30 +2604,30 @@ function st(r, e) {
2604
2604
  function Fc(r) {
2605
2605
  return r && r.__esModule ? r.default : r;
2606
2606
  }
2607
- function de(r, e, t, n) {
2607
+ function he(r, e, t, n) {
2608
2608
  Object.defineProperty(r, e, { get: t, set: n, enumerable: !0, configurable: !0 });
2609
2609
  }
2610
2610
  var rn = {}, Gs = {};
2611
- de(Gs, "PipecatClient", () => Qe);
2611
+ he(Gs, "PipecatClient", () => Qe);
2612
2612
  var Xt = {};
2613
2613
  Xt = JSON.parse('{"name":"@pipecat-ai/client-js","version":"1.6.0","license":"BSD-2-Clause","main":"dist/index.js","module":"dist/index.module.js","types":"dist/index.d.ts","source":"index.ts","repository":{"type":"git","url":"git+https://github.com/pipecat-ai/pipecat-client-web.git"},"files":["dist","package.json","README.md"],"scripts":{"build":"jest --silent --passWithNoTests && parcel build --no-cache","dev":"parcel watch","lint":"eslint . --report-unused-disable-directives --max-warnings 0","test":"jest"},"jest":{"preset":"ts-jest","testEnvironment":"jsdom","setupFilesAfterEnv":["<rootDir>/tests/jest.setup.ts"]},"devDependencies":{"@jest/globals":"^29.7.0","@types/clone-deep":"^4.0.4","@types/jest":"^29.5.12","@types/uuid":"^10.0.0","eslint":"^9.11.1","eslint-config-prettier":"^9.1.0","eslint-plugin-simple-import-sort":"^12.1.1","jest":"^29.7.0","jest-environment-jsdom":"^30.0.2","ts-jest":"^29.2.5","whatwg-fetch":"^3.6.20"},"dependencies":{"@types/events":"^3.0.3","bowser":"^2.11.0","clone-deep":"^4.0.1","events":"^3.3.0","typed-emitter":"^2.1.0","uuid":"^10.0.0"}}');
2614
2614
  var ar = {}, Ys = {};
2615
- de(Ys, "TransportStateEnum", () => Br);
2615
+ he(Ys, "TransportStateEnum", () => Br);
2616
2616
  var Br;
2617
2617
  (function(r) {
2618
2618
  r.DISCONNECTED = "disconnected", r.INITIALIZING = "initializing", r.INITIALIZED = "initialized", r.AUTHENTICATING = "authenticating", r.AUTHENTICATED = "authenticated", r.CONNECTING = "connecting", r.CONNECTED = "connected", r.READY = "ready", r.DISCONNECTING = "disconnecting", r.ERROR = "error";
2619
2619
  })(Br || (Br = {}));
2620
2620
  var et = {};
2621
- de(et, "RTVIError", () => Le);
2622
- de(et, "ConnectionTimeoutError", () => $c);
2623
- de(et, "StartBotError", () => Xs);
2624
- de(et, "TransportStartError", () => Qs);
2625
- de(et, "InvalidTransportParamsError", () => jc);
2626
- de(et, "BotNotReadyError", () => Zs);
2627
- de(et, "BotAlreadyStartedError", () => ea);
2628
- de(et, "UnsupportedFeatureError", () => Uc);
2629
- de(et, "MessageTooLargeError", () => ta);
2630
- de(et, "DeviceError", () => at);
2621
+ he(et, "RTVIError", () => Le);
2622
+ he(et, "ConnectionTimeoutError", () => $c);
2623
+ he(et, "StartBotError", () => Xs);
2624
+ he(et, "TransportStartError", () => Qs);
2625
+ he(et, "InvalidTransportParamsError", () => jc);
2626
+ he(et, "BotNotReadyError", () => Zs);
2627
+ he(et, "BotAlreadyStartedError", () => ea);
2628
+ he(et, "UnsupportedFeatureError", () => Uc);
2629
+ he(et, "MessageTooLargeError", () => ta);
2630
+ he(et, "DeviceError", () => at);
2631
2631
  class Le extends Error {
2632
2632
  constructor(e, t) {
2633
2633
  super(e), this.status = t;
@@ -2680,18 +2680,18 @@ class at extends Le {
2680
2680
  }
2681
2681
  }
2682
2682
  var na = {};
2683
- de(na, "RTVIEvent", () => z);
2683
+ he(na, "RTVIEvent", () => z);
2684
2684
  var z;
2685
2685
  (function(r) {
2686
2686
  r.Connected = "connected", r.Disconnected = "disconnected", r.TransportStateChanged = "transportStateChanged", r.BotStarted = "botStarted", r.BotConnected = "botConnected", r.BotReady = "botReady", r.BotDisconnected = "botDisconnected", r.Error = "error", r.ServerMessage = "serverMessage", r.ServerResponse = "serverResponse", r.MessageError = "messageError", r.Metrics = "metrics", r.BotStartedSpeaking = "botStartedSpeaking", r.BotStoppedSpeaking = "botStoppedSpeaking", r.UserStartedSpeaking = "userStartedSpeaking", r.UserStoppedSpeaking = "userStoppedSpeaking", r.UserMuteStarted = "userMuteStarted", r.UserMuteStopped = "userMuteStopped", r.UserTranscript = "userTranscript", r.BotOutput = "botOutput", r.BotTranscript = "botTranscript", r.BotLlmText = "botLlmText", r.BotLlmStarted = "botLlmStarted", r.BotLlmStopped = "botLlmStopped", r.LLMFunctionCall = "llmFunctionCall", r.LLMFunctionCallStarted = "llmFunctionCallStarted", r.LLMFunctionCallInProgress = "llmFunctionCallInProgress", r.LLMFunctionCallStopped = "llmFunctionCallStopped", r.BotLlmSearchResponse = "botLlmSearchResponse", r.BotTtsText = "botTtsText", r.BotTtsStarted = "botTtsStarted", r.BotTtsStopped = "botTtsStopped", r.ParticipantConnected = "participantConnected", r.ParticipantLeft = "participantLeft", r.TrackStarted = "trackStarted", r.TrackStopped = "trackStopped", r.ScreenTrackStarted = "screenTrackStarted", r.ScreenTrackStopped = "screenTrackStopped", r.ScreenShareError = "screenShareError", r.LocalAudioLevel = "localAudioLevel", r.RemoteAudioLevel = "remoteAudioLevel", r.AvailableCamsUpdated = "availableCamsUpdated", r.AvailableMicsUpdated = "availableMicsUpdated", r.AvailableSpeakersUpdated = "availableSpeakersUpdated", r.CamUpdated = "camUpdated", r.MicUpdated = "micUpdated", r.SpeakerUpdated = "speakerUpdated", r.DeviceError = "deviceError";
2687
2687
  })(z || (z = {}));
2688
2688
  var Ut = {};
2689
- de(Ut, "RTVI_PROTOCOL_VERSION", () => ra);
2690
- de(Ut, "RTVI_MESSAGE_LABEL", () => ia);
2691
- de(Ut, "RTVIMessageType", () => Y);
2692
- de(Ut, "AggregationType", () => Fr);
2693
- de(Ut, "setAboutClient", () => oa);
2694
- de(Ut, "RTVIMessage", () => we);
2689
+ he(Ut, "RTVI_PROTOCOL_VERSION", () => ra);
2690
+ he(Ut, "RTVI_MESSAGE_LABEL", () => ia);
2691
+ he(Ut, "RTVIMessageType", () => Y);
2692
+ he(Ut, "AggregationType", () => Fr);
2693
+ he(Ut, "setAboutClient", () => oa);
2694
+ he(Ut, "RTVIMessage", () => we);
2695
2695
  const ra = "1.2.0", ia = "rtvi-ai";
2696
2696
  var Y;
2697
2697
  (function(r) {
@@ -2756,10 +2756,10 @@ function hi(r, e, t) {
2756
2756
  }, t;
2757
2757
  }
2758
2758
  var sa = {};
2759
- de(sa, "MessageDispatcher", () => aa);
2759
+ he(sa, "MessageDispatcher", () => aa);
2760
2760
  var pi = {};
2761
- de(pi, "LogLevel", () => kt);
2762
- de(pi, "logger", () => ne);
2761
+ he(pi, "LogLevel", () => kt);
2762
+ he(pi, "logger", () => ne);
2763
2763
  var kt;
2764
2764
  (function(r) {
2765
2765
  r[r.NONE = 0] = "NONE", r[r.ERROR = 1] = "ERROR", r[r.WARN = 2] = "WARN", r[r.INFO = 3] = "INFO", r[r.DEBUG = 4] = "DEBUG";
@@ -2845,8 +2845,8 @@ class aa {
2845
2845
  }
2846
2846
  }
2847
2847
  var fi = {};
2848
- de(fi, "isAPIRequest", () => ca);
2849
- de(fi, "makeRequest", () => la);
2848
+ he(fi, "isAPIRequest", () => ca);
2849
+ he(fi, "makeRequest", () => la);
2850
2850
  function ca(r) {
2851
2851
  if (typeof r == "object" && r !== null && Object.keys(r).includes("endpoint")) {
2852
2852
  const e = r.endpoint;
@@ -2891,8 +2891,8 @@ async function la(r, e) {
2891
2891
  });
2892
2892
  }
2893
2893
  var gi = {};
2894
- de(gi, "Transport", () => ua);
2895
- de(gi, "TransportWrapper", () => da);
2894
+ he(gi, "Transport", () => ua);
2895
+ he(gi, "TransportWrapper", () => da);
2896
2896
  class ua {
2897
2897
  constructor() {
2898
2898
  this._state = "disconnected", this._maxMessageSize = 65536;
@@ -2986,8 +2986,8 @@ class da {
2986
2986
  }
2987
2987
  }
2988
2988
  var mi = {};
2989
- de(mi, "learnAboutClient", () => ha);
2990
- de(mi, "messageSizeWithinLimit", () => pa);
2989
+ he(mi, "learnAboutClient", () => ha);
2990
+ he(mi, "messageSizeWithinLimit", () => pa);
2991
2991
  function ha() {
2992
2992
  var t, n, i, o, s, a;
2993
2993
  let r = {
@@ -4039,62 +4039,62 @@ class O {
4039
4039
  return ga[e] || "";
4040
4040
  }
4041
4041
  }
4042
- const he = /version\/(\d+(\.?_?\d+)+)/i, Vc = [{ test: [/googlebot/i], describe(r) {
4043
- const e = { name: "Googlebot" }, t = O.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, r) || O.getFirstMatch(he, r);
4042
+ const pe = /version\/(\d+(\.?_?\d+)+)/i, Vc = [{ test: [/googlebot/i], describe(r) {
4043
+ const e = { name: "Googlebot" }, t = O.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, r) || O.getFirstMatch(pe, r);
4044
4044
  return t && (e.version = t), e;
4045
4045
  } }, { test: [/opera/i], describe(r) {
4046
- const e = { name: "Opera" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, r);
4046
+ const e = { name: "Opera" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, r);
4047
4047
  return t && (e.version = t), e;
4048
4048
  } }, { test: [/opr\/|opios/i], describe(r) {
4049
- const e = { name: "Opera" }, t = O.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, r) || O.getFirstMatch(he, r);
4049
+ const e = { name: "Opera" }, t = O.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, r) || O.getFirstMatch(pe, r);
4050
4050
  return t && (e.version = t), e;
4051
4051
  } }, { test: [/SamsungBrowser/i], describe(r) {
4052
- const e = { name: "Samsung Internet for Android" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, r);
4052
+ const e = { name: "Samsung Internet for Android" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, r);
4053
4053
  return t && (e.version = t), e;
4054
4054
  } }, { test: [/Whale/i], describe(r) {
4055
- const e = { name: "NAVER Whale Browser" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, r);
4055
+ const e = { name: "NAVER Whale Browser" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, r);
4056
4056
  return t && (e.version = t), e;
4057
4057
  } }, { test: [/MZBrowser/i], describe(r) {
4058
- const e = { name: "MZ Browser" }, t = O.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(he, r);
4058
+ const e = { name: "MZ Browser" }, t = O.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(pe, r);
4059
4059
  return t && (e.version = t), e;
4060
4060
  } }, { test: [/focus/i], describe(r) {
4061
- const e = { name: "Focus" }, t = O.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(he, r);
4061
+ const e = { name: "Focus" }, t = O.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(pe, r);
4062
4062
  return t && (e.version = t), e;
4063
4063
  } }, { test: [/swing/i], describe(r) {
4064
- const e = { name: "Swing" }, t = O.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(he, r);
4064
+ const e = { name: "Swing" }, t = O.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, r) || O.getFirstMatch(pe, r);
4065
4065
  return t && (e.version = t), e;
4066
4066
  } }, { test: [/coast/i], describe(r) {
4067
- const e = { name: "Opera Coast" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, r);
4067
+ const e = { name: "Opera Coast" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, r);
4068
4068
  return t && (e.version = t), e;
4069
4069
  } }, { test: [/opt\/\d+(?:.?_?\d+)+/i], describe(r) {
4070
- const e = { name: "Opera Touch" }, t = O.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4070
+ const e = { name: "Opera Touch" }, t = O.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4071
4071
  return t && (e.version = t), e;
4072
4072
  } }, { test: [/yabrowser/i], describe(r) {
4073
- const e = { name: "Yandex Browser" }, t = O.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4073
+ const e = { name: "Yandex Browser" }, t = O.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4074
4074
  return t && (e.version = t), e;
4075
4075
  } }, { test: [/ucbrowser/i], describe(r) {
4076
- const e = { name: "UC Browser" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, r);
4076
+ const e = { name: "UC Browser" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, r);
4077
4077
  return t && (e.version = t), e;
4078
4078
  } }, { test: [/Maxthon|mxios/i], describe(r) {
4079
- const e = { name: "Maxthon" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, r);
4079
+ const e = { name: "Maxthon" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, r);
4080
4080
  return t && (e.version = t), e;
4081
4081
  } }, { test: [/epiphany/i], describe(r) {
4082
- const e = { name: "Epiphany" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, r);
4082
+ const e = { name: "Epiphany" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, r);
4083
4083
  return t && (e.version = t), e;
4084
4084
  } }, { test: [/puffin/i], describe(r) {
4085
- const e = { name: "Puffin" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, r);
4085
+ const e = { name: "Puffin" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, r);
4086
4086
  return t && (e.version = t), e;
4087
4087
  } }, { test: [/sleipnir/i], describe(r) {
4088
- const e = { name: "Sleipnir" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, r);
4088
+ const e = { name: "Sleipnir" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, r);
4089
4089
  return t && (e.version = t), e;
4090
4090
  } }, { test: [/k-meleon/i], describe(r) {
4091
- const e = { name: "K-Meleon" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, r);
4091
+ const e = { name: "K-Meleon" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, r);
4092
4092
  return t && (e.version = t), e;
4093
4093
  } }, { test: [/micromessenger/i], describe(r) {
4094
- const e = { name: "WeChat" }, t = O.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4094
+ const e = { name: "WeChat" }, t = O.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4095
4095
  return t && (e.version = t), e;
4096
4096
  } }, { test: [/qqbrowser/i], describe(r) {
4097
- const e = { name: /qqbrowserlite/i.test(r) ? "QQ Browser Lite" : "QQ Browser" }, t = O.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4097
+ const e = { name: /qqbrowserlite/i.test(r) ? "QQ Browser Lite" : "QQ Browser" }, t = O.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4098
4098
  return t && (e.version = t), e;
4099
4099
  } }, { test: [/msie|trident/i], describe(r) {
4100
4100
  const e = { name: "Internet Explorer" }, t = O.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, r);
@@ -4124,19 +4124,19 @@ const he = /version\/(\d+(\.?_?\d+)+)/i, Vc = [{ test: [/googlebot/i], describe(
4124
4124
  const e = { name: "SlimerJS" }, t = O.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, r);
4125
4125
  return t && (e.version = t), e;
4126
4126
  } }, { test: [/blackberry|\bbb\d+/i, /rim\stablet/i], describe(r) {
4127
- const e = { name: "BlackBerry" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, r);
4127
+ const e = { name: "BlackBerry" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, r);
4128
4128
  return t && (e.version = t), e;
4129
4129
  } }, { test: [/(web|hpw)[o0]s/i], describe(r) {
4130
- const e = { name: "WebOS Browser" }, t = O.getFirstMatch(he, r) || O.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, r);
4130
+ const e = { name: "WebOS Browser" }, t = O.getFirstMatch(pe, r) || O.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, r);
4131
4131
  return t && (e.version = t), e;
4132
4132
  } }, { test: [/bada/i], describe(r) {
4133
4133
  const e = { name: "Bada" }, t = O.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, r);
4134
4134
  return t && (e.version = t), e;
4135
4135
  } }, { test: [/tizen/i], describe(r) {
4136
- const e = { name: "Tizen" }, t = O.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4136
+ const e = { name: "Tizen" }, t = O.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4137
4137
  return t && (e.version = t), e;
4138
4138
  } }, { test: [/qupzilla/i], describe(r) {
4139
- const e = { name: "QupZilla" }, t = O.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4139
+ const e = { name: "QupZilla" }, t = O.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4140
4140
  return t && (e.version = t), e;
4141
4141
  } }, { test: [/firefox|iceweasel|fxios/i], describe(r) {
4142
4142
  const e = { name: "Firefox" }, t = O.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, r);
@@ -4148,7 +4148,7 @@ const he = /version\/(\d+(\.?_?\d+)+)/i, Vc = [{ test: [/googlebot/i], describe(
4148
4148
  const e = { name: "Miui" }, t = O.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, r);
4149
4149
  return t && (e.version = t), e;
4150
4150
  } }, { test: [/chromium/i], describe(r) {
4151
- const e = { name: "Chromium" }, t = O.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(he, r);
4151
+ const e = { name: "Chromium" }, t = O.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, r) || O.getFirstMatch(pe, r);
4152
4152
  return t && (e.version = t), e;
4153
4153
  } }, { test: [/chrome|crios|crmo/i], describe(r) {
4154
4154
  const e = { name: "Chrome" }, t = O.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, r);
@@ -4160,13 +4160,13 @@ const he = /version\/(\d+(\.?_?\d+)+)/i, Vc = [{ test: [/googlebot/i], describe(
4160
4160
  const e = !r.test(/like android/i), t = r.test(/android/i);
4161
4161
  return e && t;
4162
4162
  }, describe(r) {
4163
- const e = { name: "Android Browser" }, t = O.getFirstMatch(he, r);
4163
+ const e = { name: "Android Browser" }, t = O.getFirstMatch(pe, r);
4164
4164
  return t && (e.version = t), e;
4165
4165
  } }, { test: [/playstation 4/i], describe(r) {
4166
- const e = { name: "PlayStation 4" }, t = O.getFirstMatch(he, r);
4166
+ const e = { name: "PlayStation 4" }, t = O.getFirstMatch(pe, r);
4167
4167
  return t && (e.version = t), e;
4168
4168
  } }, { test: [/safari|applewebkit/i], describe(r) {
4169
- const e = { name: "Safari" }, t = O.getFirstMatch(he, r);
4169
+ const e = { name: "Safari" }, t = O.getFirstMatch(pe, r);
4170
4170
  return t && (e.version = t), e;
4171
4171
  } }, { test: [/.*/i], describe(r) {
4172
4172
  const e = r.search("\\(") !== -1 ? /^(.*)\/(.*)[ \t]\((.*)/ : /^(.*)\/(.*) /;
@@ -7978,7 +7978,7 @@ var Fd = function() {
7978
7978
  return this.sendMessageToCallMachine({ action: "update-participants", participants: l }), this;
7979
7979
  } }, { key: "updateWaitingParticipant", value: (ve = W(function* () {
7980
7980
  var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7981
- if (Ke(this._callObjectMode, "updateWaitingParticipant()"), pe(this._callState, "updateWaitingParticipant()"), typeof f != "string" || ae(p) !== "object") throw new Error("updateWaitingParticipant() must take an id string and a updates object");
7981
+ if (Ke(this._callObjectMode, "updateWaitingParticipant()"), fe(this._callState, "updateWaitingParticipant()"), typeof f != "string" || ae(p) !== "object") throw new Error("updateWaitingParticipant() must take an id string and a updates object");
7982
7982
  return new Promise(function(S, k) {
7983
7983
  l.sendMessageToCallMachine({ action: "daily-method-update-waiting-participant", id: f, updates: p }, function(E) {
7984
7984
  E.error && k(E.error), E.id || k(new Error("unknown error in updateWaitingParticipant()")), S({ id: E.id });
@@ -7988,7 +7988,7 @@ var Fd = function() {
7988
7988
  return ve.apply(this, arguments);
7989
7989
  }) }, { key: "updateWaitingParticipants", value: (Te = W(function* () {
7990
7990
  var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7991
- if (Ke(this._callObjectMode, "updateWaitingParticipants()"), pe(this._callState, "updateWaitingParticipants()"), ae(f) !== "object") throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");
7991
+ if (Ke(this._callObjectMode, "updateWaitingParticipants()"), fe(this._callState, "updateWaitingParticipants()"), ae(f) !== "object") throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");
7992
7992
  return new Promise(function(p, S) {
7993
7993
  l.sendMessageToCallMachine({ action: "daily-method-update-waiting-participants", updatesById: f }, function(k) {
7994
7994
  k.error && S(k.error), k.ids || S(new Error("unknown error in updateWaitingParticipants()")), p({ ids: k.ids });
@@ -7998,7 +7998,7 @@ var Fd = function() {
7998
7998
  return Te.apply(this, arguments);
7999
7999
  }) }, { key: "requestAccess", value: (Z = W(function* () {
8000
8000
  var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = f.access, S = p === void 0 ? { level: uu } : p, k = f.name, E = k === void 0 ? "" : k;
8001
- return Ke(this._callObjectMode, "requestAccess()"), pe(this._callState, "requestAccess()"), new Promise(function(M, L) {
8001
+ return Ke(this._callObjectMode, "requestAccess()"), fe(this._callState, "requestAccess()"), new Promise(function(M, L) {
8002
8002
  l.sendMessageToCallMachine({ action: "daily-method-request-access", access: S, name: E }, function(I) {
8003
8003
  I.error && L(I.error), I.access || L(new Error("unknown error in requestAccess()")), M({ access: I.access, granted: I.granted });
8004
8004
  });
@@ -8045,7 +8045,7 @@ var Fd = function() {
8045
8045
  }) }, { key: "updateReceiveSettings", value: (Q = W(function* (l) {
8046
8046
  var f = this;
8047
8047
  if (Ke(this._callObjectMode, "updateReceiveSettings()"), !Ga(l, { allowAllParticipantsKey: !0 })) throw new Error(Qa({ allowAllParticipantsKey: !0 }));
8048
- return pe(this._callState, "updateReceiveSettings()", "To specify receive settings earlier, use the receiveSettings config property."), new Promise(function(p) {
8048
+ return fe(this._callState, "updateReceiveSettings()", "To specify receive settings earlier, use the receiveSettings config property."), new Promise(function(p) {
8049
8049
  f.sendMessageToCallMachine({ action: "update-receive-settings", receiveSettings: l }, function(S) {
8050
8050
  p({ receiveSettings: S.receiveSettings });
8051
8051
  });
@@ -8132,7 +8132,7 @@ var Fd = function() {
8132
8132
  return [gt, mt].includes(this._callState) ? this._finalSummaryOfPrevSession : this._meetingSessionSummary;
8133
8133
  } }, { key: "getMeetingSession", value: (N = W(function* () {
8134
8134
  var l = this;
8135
- return console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"), pe(this._callState, "getMeetingSession()"), new Promise(function(f) {
8135
+ return console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"), fe(this._callState, "getMeetingSession()"), new Promise(function(f) {
8136
8136
  l.sendMessageToCallMachine({ action: "get-meeting-session" }, function(p) {
8137
8137
  delete p.action, delete p.callbackStamp, f(p);
8138
8138
  });
@@ -8140,10 +8140,10 @@ var Fd = function() {
8140
8140
  }), function() {
8141
8141
  return N.apply(this, arguments);
8142
8142
  }) }, { key: "meetingSessionState", value: function() {
8143
- return pe(this._callState, "meetingSessionState"), this._meetingSessionState;
8143
+ return fe(this._callState, "meetingSessionState"), this._meetingSessionState;
8144
8144
  } }, { key: "setMeetingSessionData", value: function(l) {
8145
8145
  var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "replace";
8146
- Ke(this._callObjectMode, "setMeetingSessionData()"), pe(this._callState, "setMeetingSessionData");
8146
+ Ke(this._callObjectMode, "setMeetingSessionData()"), fe(this._callState, "setMeetingSessionData");
8147
8147
  try {
8148
8148
  (function(p, S) {
8149
8149
  new bd({ data: p, mergeStrategy: S });
@@ -8236,14 +8236,14 @@ var Fd = function() {
8236
8236
  if (!(l instanceof MediaStreamTrack)) throw new Error("Custom tracks provided must be instances of MediaStreamTrack");
8237
8237
  } }, { key: "startCustomTrack", value: function() {
8238
8238
  var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { track, mode, trackName, ignoreAudioLevel };
8239
- return ie(), pe(this._callState, "startCustomTrack()"), this.validateCustomTrack(f.track, f.mode, f.trackName), new Promise(function(p, S) {
8239
+ return ie(), fe(this._callState, "startCustomTrack()"), this.validateCustomTrack(f.track, f.mode, f.trackName), new Promise(function(p, S) {
8240
8240
  l._sharedTracks.customTrack = f.track, f.track = ht, l.sendMessageToCallMachine({ action: "start-custom-track", properties: f }, function(k) {
8241
8241
  k.error ? S({ error: k.error }) : p(k.mediaTag);
8242
8242
  });
8243
8243
  });
8244
8244
  } }, { key: "stopCustomTrack", value: function(l) {
8245
8245
  var f = this;
8246
- return ie(), pe(this._callState, "stopCustomTrack()"), new Promise(function(p) {
8246
+ return ie(), fe(this._callState, "stopCustomTrack()"), new Promise(function(p) {
8247
8247
  f.sendMessageToCallMachine({ action: "stop-custom-track", mediaTag: l }, function(S) {
8248
8248
  p(S.mediaTag);
8249
8249
  });
@@ -8510,19 +8510,19 @@ var Fd = function() {
8510
8510
  }), function(l) {
8511
8511
  return w.apply(this, arguments);
8512
8512
  }) }, { key: "startTranscription", value: function(l) {
8513
- pe(this._callState, "startTranscription()"), this.sendMessageToCallMachine(F({ action: "daily-method-start-transcription" }, l));
8513
+ fe(this._callState, "startTranscription()"), this.sendMessageToCallMachine(F({ action: "daily-method-start-transcription" }, l));
8514
8514
  } }, { key: "updateTranscription", value: function(l) {
8515
- if (pe(this._callState, "updateTranscription()"), !l) throw new Error("updateTranscription Error: options is mandatory");
8515
+ if (fe(this._callState, "updateTranscription()"), !l) throw new Error("updateTranscription Error: options is mandatory");
8516
8516
  if (ae(l) !== "object") throw new Error("updateTranscription Error: options must be object type");
8517
8517
  if (l.participants && !Array.isArray(l.participants)) throw new Error("updateTranscription Error: participants must be an array");
8518
8518
  this.sendMessageToCallMachine(F({ action: "daily-method-update-transcription" }, l));
8519
8519
  } }, { key: "stopTranscription", value: function(l) {
8520
- if (pe(this._callState, "stopTranscription()"), l && ae(l) !== "object") throw new Error("stopTranscription Error: options must be object type");
8520
+ if (fe(this._callState, "stopTranscription()"), l && ae(l) !== "object") throw new Error("stopTranscription Error: options must be object type");
8521
8521
  if (l && !l.instanceId) throw new Error('"instanceId" not provided');
8522
8522
  this.sendMessageToCallMachine(F({ action: "daily-method-stop-transcription" }, l));
8523
8523
  } }, { key: "startDialOut", value: (y = W(function* (l) {
8524
8524
  var f = this;
8525
- pe(this._callState, "startDialOut()");
8525
+ fe(this._callState, "startDialOut()");
8526
8526
  var p = function(M) {
8527
8527
  if (M) {
8528
8528
  if (!Array.isArray(M)) throw new Error("Error starting dial out: audio codec must be an array");
@@ -8585,14 +8585,14 @@ var Fd = function() {
8585
8585
  return y.apply(this, arguments);
8586
8586
  }) }, { key: "stopDialOut", value: function(l) {
8587
8587
  var f = this;
8588
- return pe(this._callState, "stopDialOut()"), new Promise(function(p, S) {
8588
+ return fe(this._callState, "stopDialOut()"), new Promise(function(p, S) {
8589
8589
  f.sendMessageToCallMachine(F({ action: "dialout-stop" }, l), function(k) {
8590
8590
  k.error ? S(k.error) : p(k);
8591
8591
  });
8592
8592
  });
8593
8593
  } }, { key: "sipCallTransfer", value: (m = W(function* (l) {
8594
8594
  var f = this;
8595
- if (pe(this._callState, "sipCallTransfer()"), !l) throw new Error("sipCallTransfer() requires a sessionId and toEndPoint");
8595
+ if (fe(this._callState, "sipCallTransfer()"), !l) throw new Error("sipCallTransfer() requires a sessionId and toEndPoint");
8596
8596
  return l.useSipRefer = !1, Os(l, "sipCallTransfer"), Ms(l), new Promise(function(p, S) {
8597
8597
  f.sendMessageToCallMachine(F({ action: rs }, l), function(k) {
8598
8598
  k.error ? S(k.error) : p(k);
@@ -8602,7 +8602,7 @@ var Fd = function() {
8602
8602
  return m.apply(this, arguments);
8603
8603
  }) }, { key: "sipRefer", value: (b = W(function* (l) {
8604
8604
  var f = this;
8605
- if (pe(this._callState, "sipRefer()"), !l) throw new Error("sessionId and toEndPoint are mandatory parameter");
8605
+ if (fe(this._callState, "sipRefer()"), !l) throw new Error("sessionId and toEndPoint are mandatory parameter");
8606
8606
  return l.useSipRefer = !0, Os(l, "sipRefer"), new Promise(function(p, S) {
8607
8607
  f.sendMessageToCallMachine(F({ action: rs }, l), function(k) {
8608
8608
  k.error ? S(k.error) : p(k);
@@ -8612,7 +8612,7 @@ var Fd = function() {
8612
8612
  return b.apply(this, arguments);
8613
8613
  }) }, { key: "sendDTMF", value: (v = W(function* (l) {
8614
8614
  var f = this;
8615
- return pe(this._callState, "sendDTMF()"), function(p) {
8615
+ return fe(this._callState, "sendDTMF()"), function(p) {
8616
8616
  var S = p.sessionId, k = p.tones;
8617
8617
  if (!S || !k) throw new Error("sessionId and tones are mandatory parameter");
8618
8618
  if (typeof S != "string" || typeof k != "string") throw new Error("sessionId and tones should be of string type");
@@ -8787,7 +8787,7 @@ var Fd = function() {
8787
8787
  } }, { key: "subscribeToTracksAutomatically", value: function() {
8788
8788
  return this._preloadCache.subscribeToTracksAutomatically;
8789
8789
  } }, { key: "setSubscribeToTracksAutomatically", value: function(l) {
8790
- return pe(this._callState, "setSubscribeToTracksAutomatically()", "Use the subscribeToTracksAutomatically configuration property."), this._preloadCache.subscribeToTracksAutomatically = l, this.sendMessageToCallMachine({ action: "daily-method-subscribe-to-tracks-automatically", enabled: l }), this;
8790
+ return fe(this._callState, "setSubscribeToTracksAutomatically()", "Use the subscribeToTracksAutomatically configuration property."), this._preloadCache.subscribeToTracksAutomatically = l, this.sendMessageToCallMachine({ action: "daily-method-subscribe-to-tracks-automatically", enabled: l }), this;
8791
8791
  } }, { key: "enumerateDevices", value: (a = W(function* () {
8792
8792
  var l = this;
8793
8793
  if (this._callObjectMode) {
@@ -8812,29 +8812,29 @@ var Fd = function() {
8812
8812
  return a.apply(this, arguments);
8813
8813
  }) }, { key: "sendAppMessage", value: function(l) {
8814
8814
  var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "*";
8815
- if (pe(this._callState, "sendAppMessage()"), JSON.stringify(l).length > this._maxAppMessageSize) throw new Error("Message data too large. Max size is " + this._maxAppMessageSize);
8815
+ if (fe(this._callState, "sendAppMessage()"), JSON.stringify(l).length > this._maxAppMessageSize) throw new Error("Message data too large. Max size is " + this._maxAppMessageSize);
8816
8816
  return this.sendMessageToCallMachine({ action: "app-msg", data: l, to: f }), this;
8817
8817
  } }, { key: "addFakeParticipant", value: function(l) {
8818
- return ie(), pe(this._callState, "addFakeParticipant()"), this.sendMessageToCallMachine(F({ action: "add-fake-participant" }, l)), this;
8818
+ return ie(), fe(this._callState, "addFakeParticipant()"), this.sendMessageToCallMachine(F({ action: "add-fake-participant" }, l)), this;
8819
8819
  } }, { key: "setShowNamesMode", value: function(l) {
8820
8820
  return Pe(this._callObjectMode, "setShowNamesMode()"), ie(), l && l !== "always" && l !== "never" ? (console.error('setShowNamesMode argument should be "always", "never", or false'), this) : (this.sendMessageToCallMachine({ action: "set-show-names", mode: l }), this);
8821
8821
  } }, { key: "setShowLocalVideo", value: function() {
8822
8822
  var l = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0];
8823
- return Pe(this._callObjectMode, "setShowLocalVideo()"), ie(), pe(this._callState, "setShowLocalVideo()"), typeof l != "boolean" ? (console.error("setShowLocalVideo only accepts a boolean value"), this) : (this.sendMessageToCallMachine({ action: "set-show-local-video", show: l }), this._showLocalVideo = l, this);
8823
+ return Pe(this._callObjectMode, "setShowLocalVideo()"), ie(), fe(this._callState, "setShowLocalVideo()"), typeof l != "boolean" ? (console.error("setShowLocalVideo only accepts a boolean value"), this) : (this.sendMessageToCallMachine({ action: "set-show-local-video", show: l }), this._showLocalVideo = l, this);
8824
8824
  } }, { key: "showLocalVideo", value: function() {
8825
8825
  return Pe(this._callObjectMode, "showLocalVideo()"), ie(), this._showLocalVideo;
8826
8826
  } }, { key: "setShowParticipantsBar", value: function() {
8827
8827
  var l = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0];
8828
- return Pe(this._callObjectMode, "setShowParticipantsBar()"), ie(), pe(this._callState, "setShowParticipantsBar()"), typeof l != "boolean" ? (console.error("setShowParticipantsBar only accepts a boolean value"), this) : (this.sendMessageToCallMachine({ action: "set-show-participants-bar", show: l }), this._showParticipantsBar = l, this);
8828
+ return Pe(this._callObjectMode, "setShowParticipantsBar()"), ie(), fe(this._callState, "setShowParticipantsBar()"), typeof l != "boolean" ? (console.error("setShowParticipantsBar only accepts a boolean value"), this) : (this.sendMessageToCallMachine({ action: "set-show-participants-bar", show: l }), this._showParticipantsBar = l, this);
8829
8829
  } }, { key: "showParticipantsBar", value: function() {
8830
8830
  return Pe(this._callObjectMode, "showParticipantsBar()"), ie(), this._showParticipantsBar;
8831
8831
  } }, { key: "customIntegrations", value: function() {
8832
8832
  return ie(), Pe(this._callObjectMode, "customIntegrations()"), this._customIntegrations;
8833
8833
  } }, { key: "setCustomIntegrations", value: function(l) {
8834
- return ie(), Pe(this._callObjectMode, "setCustomIntegrations()"), pe(this._callState, "setCustomIntegrations()"), tc(l) ? (this.sendMessageToCallMachine({ action: "set-custom-integrations", integrations: l }), this._customIntegrations = l, this) : this;
8834
+ return ie(), Pe(this._callObjectMode, "setCustomIntegrations()"), fe(this._callState, "setCustomIntegrations()"), tc(l) ? (this.sendMessageToCallMachine({ action: "set-custom-integrations", integrations: l }), this._customIntegrations = l, this) : this;
8835
8835
  } }, { key: "startCustomIntegrations", value: function(l) {
8836
8836
  var f = this;
8837
- if (ie(), Pe(this._callObjectMode, "startCustomIntegrations()"), pe(this._callState, "startCustomIntegrations()"), Array.isArray(l) && l.some(function(k) {
8837
+ if (ie(), Pe(this._callObjectMode, "startCustomIntegrations()"), fe(this._callState, "startCustomIntegrations()"), Array.isArray(l) && l.some(function(k) {
8838
8838
  return typeof k != "string";
8839
8839
  }) || !Array.isArray(l) && typeof l != "string") return console.error("startCustomIntegrations() only accepts string | string[]"), this;
8840
8840
  var p = typeof l == "string" ? [l] : l, S = p.filter(function(k) {
@@ -8843,7 +8843,7 @@ var Fd = function() {
8843
8843
  return S.length ? (console.error(`Can't find custom integration(s): "`.concat(S.join(", "), '"')), this) : (this.sendMessageToCallMachine({ action: "start-custom-integrations", ids: p }), this);
8844
8844
  } }, { key: "stopCustomIntegrations", value: function(l) {
8845
8845
  var f = this;
8846
- if (ie(), Pe(this._callObjectMode, "stopCustomIntegrations()"), pe(this._callState, "stopCustomIntegrations()"), Array.isArray(l) && l.some(function(k) {
8846
+ if (ie(), Pe(this._callObjectMode, "stopCustomIntegrations()"), fe(this._callState, "stopCustomIntegrations()"), Array.isArray(l) && l.some(function(k) {
8847
8847
  return typeof k != "string";
8848
8848
  }) || !Array.isArray(l) && typeof l != "string") return console.error("stopCustomIntegrations() only accepts string | string[]"), this;
8849
8849
  var p = typeof l == "string" ? [l] : l, S = p.filter(function(k) {
@@ -8853,7 +8853,7 @@ var Fd = function() {
8853
8853
  } }, { key: "customTrayButtons", value: function() {
8854
8854
  return Pe(this._callObjectMode, "customTrayButtons()"), ie(), this._customTrayButtons;
8855
8855
  } }, { key: "updateCustomTrayButtons", value: function(l) {
8856
- return Pe(this._callObjectMode, "updateCustomTrayButtons()"), ie(), pe(this._callState, "updateCustomTrayButtons()"), ec(l) ? (this.sendMessageToCallMachine({ action: "update-custom-tray-buttons", btns: l }), this._customTrayButtons = l, this) : (console.error("updateCustomTrayButtons only accepts a dictionary of the type ".concat(JSON.stringify(ir))), this);
8856
+ return Pe(this._callObjectMode, "updateCustomTrayButtons()"), ie(), fe(this._callState, "updateCustomTrayButtons()"), ec(l) ? (this.sendMessageToCallMachine({ action: "update-custom-tray-buttons", btns: l }), this._customTrayButtons = l, this) : (console.error("updateCustomTrayButtons only accepts a dictionary of the type ".concat(JSON.stringify(ir))), this);
8857
8857
  } }, { key: "theme", value: function() {
8858
8858
  return Pe(this._callObjectMode, "theme()"), this.properties.theme;
8859
8859
  } }, { key: "setTheme", value: function(l) {
@@ -8912,7 +8912,7 @@ var Fd = function() {
8912
8912
  return n.apply(this, arguments);
8913
8913
  }) }, { key: "setNetworkTopology", value: (t = W(function* (l) {
8914
8914
  var f = this;
8915
- return ie(), pe(this._callState, "setNetworkTopology()"), new Promise(function(p, S) {
8915
+ return ie(), fe(this._callState, "setNetworkTopology()"), new Promise(function(p, S) {
8916
8916
  f.sendMessageToCallMachine({ action: "set-network-topology", opts: l }, function(k) {
8917
8917
  k.error ? S({ error: k.error }) : p({ workerId: k.workerId });
8918
8918
  });
@@ -9364,7 +9364,7 @@ function qt(r, e) {
9364
9364
  } else t[n] = r[n];
9365
9365
  return t;
9366
9366
  }
9367
- function pe(r) {
9367
+ function fe(r) {
9368
9368
  var e = arguments.length > 2 ? arguments[2] : void 0;
9369
9369
  if (r !== Lt) {
9370
9370
  var t = "".concat(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "This daily-js method", " only supported after join.");
@@ -15454,7 +15454,7 @@ const St = class St {
15454
15454
  };
15455
15455
  // Static reference to DOMIntrospector for bounding box lookups
15456
15456
  A(St, "domIntrospector", null);
15457
- let fe = St;
15457
+ let ue = St;
15458
15458
  class dh {
15459
15459
  constructor() {
15460
15460
  A(this, "confirmationSound");
@@ -15506,7 +15506,7 @@ class dh {
15506
15506
  }
15507
15507
  if (e.target.optionText && e.action === "click") {
15508
15508
  console.log("[ActionExecutor] 🔽 Dropdown option click detected:", e.target.optionText);
15509
- let s = fe.resolveTarget(e.target);
15509
+ let s = ue.resolveTarget(e.target);
15510
15510
  if (!s) {
15511
15511
  console.log("[ActionExecutor] Option not visible - dropdown may be closed, attempting to open...");
15512
15512
  let a = !1;
@@ -15522,23 +15522,23 @@ class dh {
15522
15522
  }
15523
15523
  if (!a && e.target.selector) {
15524
15524
  console.log("[ActionExecutor] Trying to find dropdown by selector:", e.target.selector);
15525
- const c = { ...e.target, optionText: void 0 }, u = fe.resolveTarget(c);
15525
+ const c = { ...e.target, optionText: void 0 }, u = ue.resolveTarget(c);
15526
15526
  if (u) {
15527
15527
  const d = this.findComboboxInput(u);
15528
15528
  d && (this.handleComboboxClick(d), a = !0);
15529
15529
  }
15530
15530
  }
15531
15531
  if (a) {
15532
- if (console.log("[ActionExecutor] Waiting for dropdown to open..."), await new Promise((c) => setTimeout(c, 300)), s = fe.resolveTarget(e.target), !s)
15532
+ if (console.log("[ActionExecutor] Waiting for dropdown to open..."), await new Promise((c) => setTimeout(c, 300)), s = ue.resolveTarget(e.target), !s)
15533
15533
  return console.warn("[ActionExecutor] ❌ Option still not found after opening dropdown:", e.target.optionText), !1;
15534
15534
  console.log("[ActionExecutor] ✅ Found option after opening dropdown");
15535
15535
  } else
15536
15536
  return console.warn("[ActionExecutor] ❌ Could not open dropdown - no trigger found. Add a separate task to open the dropdown first."), !1;
15537
15537
  }
15538
- return t && this.isHybridActionDestructive(e) && !await this.getHybridConsent(e) ? !1 : (fe.scrollIntoView(s), await new Promise((a) => setTimeout(a, 100)), this.performClick(s), this.confirmationSound.play().catch(() => {
15538
+ return t && this.isHybridActionDestructive(e) && !await this.getHybridConsent(e) ? !1 : (ue.scrollIntoView(s), await new Promise((a) => setTimeout(a, 100)), this.performClick(s), this.confirmationSound.play().catch(() => {
15539
15539
  }), console.log(`[ActionExecutor] ✅ Successfully clicked dropdown option: "${e.target.optionText}"`), !0);
15540
15540
  }
15541
- const n = fe.resolveTarget(e.target);
15541
+ const n = ue.resolveTarget(e.target);
15542
15542
  if (!n)
15543
15543
  return console.warn("[ActionExecutor] Could not resolve target:", e.target), !1;
15544
15544
  if (t && this.isHybridActionDestructive(e) && !await this.getHybridConsent(e))
@@ -15558,7 +15558,7 @@ class dh {
15558
15558
  * @param selector - Optional selector for special dropdown handling
15559
15559
  */
15560
15560
  async executeOnElement(e, t, n, i) {
15561
- switch (fe.scrollIntoView(t), await new Promise((o) => setTimeout(o, 300)), e) {
15561
+ switch (ue.scrollIntoView(t), await new Promise((o) => setTimeout(o, 300)), e) {
15562
15562
  case "click":
15563
15563
  await this.expandCollapsedContainer(t), this.simulateClick(t, i);
15564
15564
  break;
@@ -15852,7 +15852,7 @@ class dh {
15852
15852
  for (const i of t) {
15853
15853
  const o = document.querySelectorAll(i);
15854
15854
  for (const s of o) {
15855
- if (!fe.isVisible(s)) continue;
15855
+ if (!ue.isVisible(s)) continue;
15856
15856
  const a = [
15857
15857
  '[role="option"]',
15858
15858
  '[class*="option"]',
@@ -16551,7 +16551,7 @@ class hh {
16551
16551
  */
16552
16552
  highlightTarget(e, t = {}) {
16553
16553
  console.log("╔══════════════════════════════════════════════════════════════╗"), console.log("║ [OverlaySystem] 💡 HIGHLIGHT TARGET CALLED ║"), console.log("╚══════════════════════════════════════════════════════════════╝"), console.log("[OverlaySystem] Target:", JSON.stringify(e, null, 2)), console.log("[OverlaySystem] Options:", t);
16554
- const n = fe.resolveTarget(e);
16554
+ const n = ue.resolveTarget(e);
16555
16555
  return n ? (console.log("[OverlaySystem] ✅ Element found, applying highlight..."), console.log("[OverlaySystem] Element details:"), console.log(" • tagName:", n.tagName), console.log(" • id:", n.id || "(none)"), console.log(" • classes:", n.className || "(none)"), console.log(" • innerText:", (n.innerText || "").substring(0, 50) + "..."), this.highlightElement(n, t), console.log("[OverlaySystem] 🎨 Highlight applied successfully!"), !0) : (console.warn("[OverlaySystem] ❌ Element not found for target"), !1);
16556
16556
  }
16557
16557
  /**
@@ -16585,7 +16585,7 @@ class hh {
16585
16585
  const h = c.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
16586
16586
  h && (o = parseInt(h[1]), s = parseInt(h[2]), a = parseInt(h[3]));
16587
16587
  }
16588
- if (this.highlightEl || (console.log("[OverlaySystem] Creating new highlight element"), this.highlightEl = document.createElement("div"), this.highlightEl.id = "hse-highlight-element", this.highlightEl.setAttribute(Wt, "highlight"), (d = this.container) == null || d.appendChild(this.highlightEl)), console.log("[OverlaySystem] Scrolling element into view..."), fe.scrollIntoView(e), console.log("[OverlaySystem] Waiting 300ms for scroll to complete..."), setTimeout(() => {
16588
+ if (this.highlightEl || (console.log("[OverlaySystem] Creating new highlight element"), this.highlightEl = document.createElement("div"), this.highlightEl.id = "hse-highlight-element", this.highlightEl.setAttribute(Wt, "highlight"), (d = this.container) == null || d.appendChild(this.highlightEl)), console.log("[OverlaySystem] Scrolling element into view..."), ue.scrollIntoView(e), console.log("[OverlaySystem] Waiting 300ms for scroll to complete..."), setTimeout(() => {
16589
16589
  const h = e.getBoundingClientRect();
16590
16590
  console.log("[OverlaySystem] Element position after scroll:"), console.log(" • top:", h.top), console.log(" • left:", h.left), console.log(" • width:", h.width), console.log(" • height:", h.height), this.highlightEl && (this.highlightEl.style.cssText = `
16591
16591
  position: fixed;
@@ -17460,7 +17460,7 @@ class mh {
17460
17460
  let i = null;
17461
17461
  const o = 3, s = [300, 500, 800];
17462
17462
  for (let g = 0; g <= o; g++)
17463
- if (g > 0 && (console.log(`[BatchedActionExecutor] Retry ${g}/${o} in ${s[g - 1]}ms...`), await new Promise((v) => setTimeout(v, s[g - 1]))), i = fe.resolveTarget(e.target), i) {
17463
+ if (g > 0 && (console.log(`[BatchedActionExecutor] Retry ${g}/${o} in ${s[g - 1]}ms...`), await new Promise((v) => setTimeout(v, s[g - 1]))), i = ue.resolveTarget(e.target), i) {
17464
17464
  const v = ((d = i.textContent) == null ? void 0 : d.trim().toLowerCase()) || "", b = i.tagName.toLowerCase();
17465
17465
  if (t && !v.includes(t)) {
17466
17466
  console.warn(`[BatchedActionExecutor] ⚠️ Found element text "${v.slice(0, 50)}" doesn't match expected "${t}"`), i = null;
@@ -17535,13 +17535,13 @@ class mh {
17535
17535
  async executeScrollStep(e) {
17536
17536
  if (!e.target)
17537
17537
  return console.warn("[BatchedActionExecutor] Scroll step has no target"), !1;
17538
- const t = fe.resolveTarget(e.target);
17538
+ const t = ue.resolveTarget(e.target);
17539
17539
  return t ? (t.scrollIntoView({ behavior: "auto", block: "center" }), await new Promise((n) => setTimeout(n, 100)), !0) : (console.warn("[BatchedActionExecutor] Scroll target not found:", e.target), !0);
17540
17540
  }
17541
17541
  async waitForElement(e, t) {
17542
17542
  const n = Date.now();
17543
17543
  for (; Date.now() - n < t; ) {
17544
- if (fe.resolveTarget(e)) return !0;
17544
+ if (ue.resolveTarget(e)) return !0;
17545
17545
  await new Promise((o) => setTimeout(o, 100));
17546
17546
  }
17547
17547
  return !1;
@@ -17635,7 +17635,7 @@ class dc extends lh {
17635
17635
  localStorage.getItem("floe_text_mode") === "true" && (this.textModeEnabled = !0);
17636
17636
  } catch {
17637
17637
  }
17638
- this.sessionId = this.generateSessionId(), this.overlay = new hh(), this.capture = new Li(this.config.redactionPatterns), this.actionExecutor = new dh(), this.pageTracker = new ph(this), this.domIntrospector = new uh(), fe.setDOMIntrospector(this.domIntrospector), this.accessibleSnapshot = new ui(), this.batchedActionExecutor = new mh(this.overlay, this.actionExecutor), this.batchedActionExecutor.setDOMIntrospector(this.domIntrospector), window.__onboardingSDK = this, this.config.debug && console.log("[OnboardingSDK] Initialized with config:", this.config);
17638
+ this.sessionId = this.generateSessionId(), this.overlay = new hh(), this.capture = new Li(this.config.redactionPatterns), this.actionExecutor = new dh(), this.pageTracker = new ph(this), this.domIntrospector = new uh(), ue.setDOMIntrospector(this.domIntrospector), this.accessibleSnapshot = new ui(), this.batchedActionExecutor = new mh(this.overlay, this.actionExecutor), this.batchedActionExecutor.setDOMIntrospector(this.domIntrospector), window.__onboardingSDK = this, this.config.debug && console.log("[OnboardingSDK] Initialized with config:", this.config);
17639
17639
  }
17640
17640
  /**
17641
17641
  * Generate unique session ID
@@ -17757,7 +17757,7 @@ class dc extends lh {
17757
17757
  */
17758
17758
  setupNavigationDetection() {
17759
17759
  this.navigationCompleteDetector || (this.navigationCompleteDetector = new gh()), this.navigationCompleteDetector.start((t) => {
17760
- console.log("[OnboardingSDK] Navigation complete detected:", t), this.overlay.clearHighlight(), this.overlay.hideFloeCursor(), this.sendMetadata({
17760
+ console.log("[OnboardingSDK] Navigation complete detected:", t), this.overlay.cleanup(), this.sendMetadata({
17761
17761
  type: "navigation_complete",
17762
17762
  url: t,
17763
17763
  timestamp: Date.now()
@@ -18164,13 +18164,13 @@ class dc extends lh {
18164
18164
  console.log("[OnboardingSDK] 🎯 Received direct hybrid action:", n.action), this.handleHybridAction(n);
18165
18165
  return;
18166
18166
  }
18167
- n.type === "highlight" ? (console.log("[OnboardingSDK] Handling highlight command"), n.target ? this.overlay.highlightTarget(n.target, n.options) : n.selector && this.overlay.highlight(n.selector, n.options)) : n.type === "tooltip" && n.text ? this.overlay.showTooltip(n.text, n.options) : n.type === "action" ? n.target ? this.handleHybridAction(n) : this.actionExecutor.executeWithConsent(n.action) : n.type === "clear_highlight" ? this.overlay.clearHighlight() : n.type === "batched_navigation" ? this.handleBatchedNavigation(n) : n.type === "fast_action" ? this.executeActionFast(n) : n.type === "execute_api" || n.action === "execute_api" ? this.handleExecuteApi(n) : n.type === "session_paused" ? (console.log("[OnboardingSDK] Session paused:", n), this.agentState = "paused", this.pausedSessionId = n.session_id || null, this.overlay.clearHighlight(), this.overlay.hideFloeCursor(), this.renderReactUI(), this.emit("sessionPaused", n)) : n.type === "plan_progress" ? (console.log("[OnboardingSDK] Plan progress:", n), this.planProgress = {
18167
+ n.type === "highlight" ? (console.log("[OnboardingSDK] Handling highlight command"), n.target ? this.overlay.highlightTarget(n.target, n.options) : n.selector && this.overlay.highlight(n.selector, n.options)) : n.type === "tooltip" && n.text ? this.overlay.showTooltip(n.text, n.options) : n.type === "action" ? n.target ? this.handleHybridAction(n) : this.actionExecutor.executeWithConsent(n.action) : n.type === "clear_highlight" ? this.overlay.clearHighlight() : n.type === "batched_navigation" ? this.handleBatchedNavigation(n) : n.type === "fast_action" ? this.executeActionFast(n) : n.type === "execute_api" || n.action === "execute_api" ? this.handleExecuteApi(n) : n.type === "session_paused" ? (console.log("[OnboardingSDK] Session paused:", n), this.agentState = "paused", this.pausedSessionId = n.session_id || null, this.overlay.cleanup(), this.renderReactUI(), this.emit("sessionPaused", n)) : n.type === "plan_progress" ? (console.log("[OnboardingSDK] Plan progress:", n), this.planProgress = {
18168
18168
  planName: n.planName || "",
18169
18169
  currentStep: n.currentStep || 0,
18170
18170
  totalSteps: n.totalSteps || 0,
18171
18171
  progressPercent: n.progressPercent || 0,
18172
18172
  currentTaskTitle: n.currentTaskTitle || ""
18173
- }, this.renderReactUI(), this.emit("planProgress", this.planProgress)) : n.type === "plan_started" ? (console.log("[OnboardingSDK] Plan started:", n), this.emit("planStarted", { planName: n.planName, totalSteps: n.totalSteps })) : n.type === "plan_complete" ? (console.log("[OnboardingSDK] Plan complete:", n), this.planProgress = null, this.overlay.clearHighlight(), this.overlay.hideFloeCursor(), this.renderReactUI(), this.emit("planComplete", { planName: n.planName })) : console.log("[OnboardingSDK] Unhandled server message type:", n.type || "unknown");
18173
+ }, this.renderReactUI(), this.emit("planProgress", this.planProgress)) : n.type === "plan_started" ? (console.log("[OnboardingSDK] Plan started:", n), this.emit("planStarted", { planName: n.planName, totalSteps: n.totalSteps })) : n.type === "plan_complete" ? (console.log("[OnboardingSDK] Plan complete:", n), this.planProgress = null, this.overlay.cleanup(), this.renderReactUI(), this.emit("planComplete", { planName: n.planName })) : console.log("[OnboardingSDK] Unhandled server message type:", n.type || "unknown");
18174
18174
  }
18175
18175
  /**
18176
18176
  * Handle hybrid UI action from bot
@@ -18200,9 +18200,9 @@ class dc extends lh {
18200
18200
  console.log("[OnboardingSDK] 🎯 Dropdown option selection detected:", t.target.optionText), await this.handleDropdownOptionClick(t);
18201
18201
  break;
18202
18202
  }
18203
- let o = fe.resolveTarget(t.target);
18203
+ let o = ue.resolveTarget(t.target);
18204
18204
  if (!o) {
18205
- console.warn("[OnboardingSDK] ⚠️ Click target not found"), this.overlay.clearHighlight(), this.overlay.hideFloeCursor(), this.sendMetadata({
18205
+ console.warn("[OnboardingSDK] ⚠️ Click target not found"), this.overlay.cleanup(), this.sendMetadata({
18206
18206
  type: "bot_action_complete",
18207
18207
  action: "click",
18208
18208
  success: !1,
@@ -18212,7 +18212,7 @@ class dc extends lh {
18212
18212
  });
18213
18213
  break;
18214
18214
  }
18215
- fe.scrollIntoView(o), setTimeout(async () => {
18215
+ ue.scrollIntoView(o), setTimeout(async () => {
18216
18216
  var g, v;
18217
18217
  const a = this.findCollapsedSidebar(o);
18218
18218
  if (a) {
@@ -18224,8 +18224,8 @@ class dc extends lh {
18224
18224
  400
18225
18225
  ), a.dispatchEvent(new MouseEvent("mouseenter", { bubbles: !0 })), a.dispatchEvent(new MouseEvent("mouseover", { bubbles: !0 })), await new Promise((m) => setTimeout(m, 450)), console.log("[OnboardingSDK] 📂 Sidebar expanded");
18226
18226
  }
18227
- if (!await fe.waitForPositionStability(o, 800)) {
18228
- console.error("[OnboardingSDK] ❌ Element disappeared during stability wait"), this.overlay.clearHighlight(), this.overlay.hideFloeCursor(), this.sendMetadata({
18227
+ if (!await ue.waitForPositionStability(o, 800)) {
18228
+ console.error("[OnboardingSDK] ❌ Element disappeared during stability wait"), this.overlay.cleanup(), this.sendMetadata({
18229
18229
  type: "bot_action_complete",
18230
18230
  action: "click",
18231
18231
  success: !1,
@@ -18235,7 +18235,7 @@ class dc extends lh {
18235
18235
  });
18236
18236
  return;
18237
18237
  }
18238
- const u = fe.reResolveAndVerify(t.target, o);
18238
+ const u = ue.reResolveAndVerify(t.target, o);
18239
18239
  u ? (o = u, console.log("[OnboardingSDK] 🔄 Re-resolved element after stability wait")) : console.warn("[OnboardingSDK] ⚠️ Could not re-resolve element, using original"), await this.overlay.moveToElementAndClick(o), await new Promise((b) => setTimeout(b, 150)), this._botActionDepth++;
18240
18240
  const d = {
18241
18241
  ...t,
@@ -18292,13 +18292,13 @@ class dc extends lh {
18292
18292
  });
18293
18293
  }
18294
18294
  await new Promise((b) => setTimeout(b, 100)), setTimeout(() => {
18295
- this.overlay.clearHighlight(), this.overlay.hideFloeCursor();
18295
+ this.overlay.cleanup();
18296
18296
  }, 800);
18297
18297
  }, 350);
18298
18298
  break;
18299
18299
  case "type":
18300
18300
  console.log("[OnboardingSDK] ⌨️ Executing TYPE action, value:", t.value);
18301
- const s = fe.resolveTarget(t.target);
18301
+ const s = ue.resolveTarget(t.target);
18302
18302
  s && this.overlay.highlightResolvedElement(s, {
18303
18303
  color: "rgba(76, 175, 80, 0.6)",
18304
18304
  // Green for input
@@ -18320,7 +18320,7 @@ class dc extends lh {
18320
18320
  console.log("[OnboardingSDK] 📋 Executing MULTI_SELECT action"), await this.handleMultiSelectAction(t);
18321
18321
  break;
18322
18322
  case "navigate":
18323
- console.log("[OnboardingSDK] 🧭 Executing NAVIGATE action to URL:", t.value), this.overlay.clearHighlight(), this.overlay.hideFloeCursor();
18323
+ console.log("[OnboardingSDK] 🧭 Executing NAVIGATE action to URL:", t.value), this.overlay.cleanup();
18324
18324
  {
18325
18325
  const a = t.value;
18326
18326
  if (!a) {
@@ -18593,7 +18593,7 @@ class dc extends lh {
18593
18593
  c = `Invalid selector for element_visible: "${u}"`;
18594
18594
  break;
18595
18595
  }
18596
- a = !!(d && fe.isVisible(d)), c = a ? `Element "${u}" is visible` : `Element "${u}" is NOT visible or not found`;
18596
+ a = !!(d && ue.isVisible(d)), c = a ? `Element "${u}" is visible` : `Element "${u}" is NOT visible or not found`;
18597
18597
  }
18598
18598
  break;
18599
18599
  case "element_enabled":
@@ -18657,7 +18657,7 @@ class dc extends lh {
18657
18657
  });
18658
18658
  return;
18659
18659
  }
18660
- fe.scrollIntoView(i), await new Promise((c) => setTimeout(c, 200)), await this.overlay.moveToElementAndClick(i), console.log("[OnboardingSDK] 📂 Opening multi-select dropdown..."), this._botActionDepth++;
18660
+ ue.scrollIntoView(i), await new Promise((c) => setTimeout(c, 200)), await this.overlay.moveToElementAndClick(i), console.log("[OnboardingSDK] 📂 Opening multi-select dropdown..."), this._botActionDepth++;
18661
18661
  try {
18662
18662
  this.actionExecutor.openDropdown(i);
18663
18663
  } finally {
@@ -18740,9 +18740,10 @@ class dc extends lh {
18740
18740
  console.log("[OnboardingSDK] ✅ Option already visible, clicking directly"), await this.clickDropdownOption(i, t);
18741
18741
  return;
18742
18742
  }
18743
- console.log("[OnboardingSDK] 🔍 Option not visible, opening dropdown first");
18744
- const o = this.findDropdownTrigger(t.target);
18745
- if (!o) {
18743
+ const o = this.isDropdownCurrentlyOpen();
18744
+ console.log("[OnboardingSDK] 🔍 Option not visible, dropdown already open:", o);
18745
+ const s = this.findDropdownTrigger(t.target);
18746
+ if (!s) {
18746
18747
  console.error("[OnboardingSDK] ❌ Could not find dropdown trigger"), this.sendMetadata({
18747
18748
  type: "bot_action_complete",
18748
18749
  action: "click",
@@ -18753,29 +18754,60 @@ class dc extends lh {
18753
18754
  });
18754
18755
  return;
18755
18756
  }
18756
- fe.scrollIntoView(o), await new Promise((u) => setTimeout(u, 200)), await this.overlay.moveToElementAndClick(o), console.log("[OnboardingSDK] 📂 Opening dropdown..."), this._botActionDepth++;
18757
- try {
18758
- this.actionExecutor.openDropdown(o);
18759
- } finally {
18760
- this._botActionDepth--;
18757
+ if (o) {
18758
+ console.log("[OnboardingSDK] 📜 Dropdown open but option not visible — trying scroll first");
18759
+ const h = await this.scrollToDropdownOption(n);
18760
+ if (h) {
18761
+ console.log("[OnboardingSDK] ✅ Found option after scrolling"), await this.clickDropdownOption(h, t);
18762
+ return;
18763
+ }
18761
18764
  }
18762
- await new Promise((u) => setTimeout(u, 200));
18763
- const s = 3e3, a = 150;
18764
- let c = 0;
18765
- for (; c < s; ) {
18765
+ const a = this.findDropdownSearchInput(s);
18766
+ if (a) {
18767
+ if (console.log("[OnboardingSDK] ⌨️ Typing to filter dropdown:", n), i = await this.typeToFilterDropdown(a, n), i) {
18768
+ console.log("[OnboardingSDK] Found option after typing to filter"), await this.clickDropdownOption(i, t);
18769
+ return;
18770
+ }
18771
+ console.log("[OnboardingSDK] ⚠️ Typing to filter did not reveal the option");
18772
+ }
18773
+ if (!o) {
18774
+ ue.scrollIntoView(s), await new Promise((v) => setTimeout(v, 200)), await this.overlay.moveToElementAndClick(s), console.log("[OnboardingSDK] 📂 Opening dropdown..."), this._botActionDepth++;
18775
+ try {
18776
+ this.actionExecutor.openDropdown(s);
18777
+ } finally {
18778
+ this._botActionDepth--;
18779
+ }
18780
+ if (await new Promise((v) => setTimeout(v, 300)), i = this.findVisibleDropdownOption(n), i) {
18781
+ console.log("[OnboardingSDK] ✅ Option visible after opening dropdown"), await this.clickDropdownOption(i, t);
18782
+ return;
18783
+ }
18784
+ const h = this.findDropdownSearchInput(s);
18785
+ if (h && (console.log("[OnboardingSDK] ⌨️ Typing to filter after opening dropdown:", n), i = await this.typeToFilterDropdown(h, n), i)) {
18786
+ console.log("[OnboardingSDK] ✅ Found option after typing to filter"), await this.clickDropdownOption(i, t);
18787
+ return;
18788
+ }
18789
+ const g = await this.scrollToDropdownOption(n);
18790
+ if (g) {
18791
+ console.log("[OnboardingSDK] ✅ Found option after scrolling"), await this.clickDropdownOption(g, t);
18792
+ return;
18793
+ }
18794
+ }
18795
+ const c = 1500, u = 150;
18796
+ let d = 0;
18797
+ for (; d < c; ) {
18766
18798
  if (i = this.findVisibleDropdownOption(n), i) {
18767
- console.log("[OnboardingSDK] ✅ Option appeared after", c, "ms");
18799
+ console.log("[OnboardingSDK] ✅ Option appeared after", d, "ms (final poll)");
18768
18800
  break;
18769
18801
  }
18770
- await new Promise((u) => setTimeout(u, a)), c += a;
18802
+ await new Promise((h) => setTimeout(h, u)), d += u;
18771
18803
  }
18772
18804
  if (!i) {
18773
- console.error("[OnboardingSDK] ❌ Option did not appear after", s, "ms"), console.error("[OnboardingSDK] Looking for:", n);
18774
- const u = document.querySelectorAll('[role="option"], [class*="option"]'), d = Array.from(u).slice(0, 10).map((h) => {
18775
- var g;
18776
- return (g = h.textContent) == null ? void 0 : g.trim().slice(0, 50);
18805
+ console.error("[OnboardingSDK] ❌ All strategies failed for option:", n);
18806
+ const h = document.querySelectorAll('[role="option"], [class*="option"], nz-option-item, .ant-select-item-option'), g = Array.from(h).slice(0, 10).map((v) => {
18807
+ var b;
18808
+ return (b = v.textContent) == null ? void 0 : b.trim().slice(0, 50);
18777
18809
  }).filter(Boolean);
18778
- d.length > 0 ? console.log("[OnboardingSDK] Available options:", d) : console.log("[OnboardingSDK] No options visible - dropdown may not have opened"), this.sendMetadata({
18810
+ g.length > 0 ? console.log("[OnboardingSDK] Available options:", g) : console.log("[OnboardingSDK] No options visible - dropdown may not have opened"), this.sendMetadata({
18779
18811
  type: "bot_action_complete",
18780
18812
  action: "click",
18781
18813
  success: !1,
@@ -18787,12 +18819,111 @@ class dc extends lh {
18787
18819
  }
18788
18820
  await this.clickDropdownOption(i, t);
18789
18821
  }
18822
+ /**
18823
+ * Check if a dropdown/listbox is currently open on the page.
18824
+ * Detects Angular NZ Select, CDK overlays, React Select, and generic dropdowns.
18825
+ */
18826
+ isDropdownCurrentlyOpen() {
18827
+ const t = [
18828
+ // Angular NZ Select: overlay pane with dropdown content
18829
+ ".cdk-overlay-pane nz-option-container",
18830
+ ".cdk-overlay-pane .ant-select-dropdown",
18831
+ // Angular CDK overlay with listbox
18832
+ '.cdk-overlay-pane [role="listbox"]',
18833
+ // Generic open dropdowns
18834
+ '[role="listbox"]:not([aria-hidden="true"])',
18835
+ // React Select open menu
18836
+ '[class*="menu"][class*="--is-open"]',
18837
+ '[class*="MenuList"]',
18838
+ // Ant Design dropdown visible
18839
+ ".ant-select-dropdown:not(.ant-select-dropdown-hidden)",
18840
+ // Expanded combobox
18841
+ 'input[role="combobox"][aria-expanded="true"]'
18842
+ ];
18843
+ for (const n of t)
18844
+ try {
18845
+ const i = document.querySelector(n);
18846
+ if (i && ue.isVisible(i)) {
18847
+ const o = i.getBoundingClientRect();
18848
+ if (o.height > 20 && o.width > 20)
18849
+ return console.log("[OnboardingSDK] Dropdown detected as open via:", n), !0;
18850
+ }
18851
+ } catch {
18852
+ continue;
18853
+ }
18854
+ return !1;
18855
+ }
18856
+ /**
18857
+ * Find the search input within or associated with a dropdown.
18858
+ * Works with Angular NZ Select, React Select, and generic combobox patterns.
18859
+ */
18860
+ findDropdownSearchInput(t) {
18861
+ if (t instanceof HTMLInputElement && (t.getAttribute("role") === "combobox" || t.classList.contains("ant-select-selection-search-input") || t.type === "search"))
18862
+ return console.log("[OnboardingSDK] 🔍 Trigger itself is search input"), t;
18863
+ const n = [
18864
+ "input.ant-select-selection-search-input",
18865
+ // Angular NZ Select
18866
+ 'input[role="combobox"]',
18867
+ // Generic combobox
18868
+ 'input[type="search"]',
18869
+ // Search input
18870
+ 'input[class*="search"]',
18871
+ // Search class
18872
+ 'input[class*="Search"]',
18873
+ // Search class (camel)
18874
+ 'input[aria-autocomplete="list"]'
18875
+ // Autocomplete combobox
18876
+ ], o = t.closest('nz-select, [class*="select-container"], [class*="Select"], [class*="combobox"]') || t.parentElement;
18877
+ if (o)
18878
+ for (const c of n) {
18879
+ const u = o.querySelector(c);
18880
+ if (u)
18881
+ return console.log("[OnboardingSDK] 🔍 Found search input via:", c), u;
18882
+ }
18883
+ const s = document.querySelectorAll(".cdk-overlay-pane");
18884
+ for (const c of s)
18885
+ if (ue.isVisible(c))
18886
+ for (const u of n) {
18887
+ const d = c.querySelector(u);
18888
+ if (d)
18889
+ return console.log("[OnboardingSDK] 🔍 Found search input in CDK overlay via:", u), d;
18890
+ }
18891
+ const a = document.activeElement;
18892
+ return a instanceof HTMLInputElement && (a.getAttribute("role") === "combobox" || a.classList.contains("ant-select-selection-search-input")) ? (console.log("[OnboardingSDK] 🔍 Found search input as active element"), a) : (console.log("[OnboardingSDK] ⚠️ No search input found for dropdown"), null);
18893
+ }
18894
+ /**
18895
+ * Type text into a dropdown search input to filter options, then find the target option.
18896
+ * Uses progressive typing: tries the first word first, then adds more if needed.
18897
+ */
18898
+ async typeToFilterDropdown(t, n) {
18899
+ const i = this.getSearchTermsForOption(n);
18900
+ for (const o of i) {
18901
+ console.log(`[OnboardingSDK] ⌨️ Typing search term: "${o}"`), t.focus(), await new Promise((a) => setTimeout(a, 50)), t.value = "", t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 })), await new Promise((a) => setTimeout(a, 100));
18902
+ for (let a = 0; a < o.length; a++) {
18903
+ const c = o[a];
18904
+ t.value = o.substring(0, a + 1), t.dispatchEvent(new KeyboardEvent("keydown", { key: c, bubbles: !0 })), t.dispatchEvent(new KeyboardEvent("keypress", { key: c, bubbles: !0 })), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new KeyboardEvent("keyup", { key: c, bubbles: !0 })), await new Promise((u) => setTimeout(u, 30));
18905
+ }
18906
+ t.dispatchEvent(new Event("change", { bubbles: !0 })), await new Promise((a) => setTimeout(a, 400));
18907
+ let s = this.findVisibleDropdownOption(n);
18908
+ if (s || (await new Promise((a) => setTimeout(a, 300)), s = this.findVisibleDropdownOption(n), s))
18909
+ return s;
18910
+ }
18911
+ return t.value = "", t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 })), await new Promise((o) => setTimeout(o, 200)), null;
18912
+ }
18913
+ /**
18914
+ * Generate search terms to try for a given option text.
18915
+ * Returns progressively more specific terms: ["Brandon", "Brandon Mora"]
18916
+ */
18917
+ getSearchTermsForOption(t) {
18918
+ const n = [], i = t.match(/^([^(]+)/), o = i ? i[1].trim() : t, s = o.split(/\s+/)[0];
18919
+ return s && s.length >= 2 && n.push(s), o !== s && n.push(o), n.length === 0 && n.push(t), n;
18920
+ }
18790
18921
  /**
18791
18922
  * Find a visible dropdown option by text
18792
18923
  * Uses STRICT matching to avoid selecting wrong options
18793
18924
  */
18794
18925
  findVisibleDropdownOption(t) {
18795
- var a;
18926
+ var c;
18796
18927
  const n = t.toLowerCase().trim(), i = [
18797
18928
  '[role="listbox"]',
18798
18929
  '[role="menu"]',
@@ -18803,40 +18934,52 @@ class dc extends lh {
18803
18934
  // Angular NZ Select dropdown
18804
18935
  "nz-option-container",
18805
18936
  // Angular NZ Select option container
18806
- ".cdk-overlay-pane"
18937
+ ".cdk-overlay-pane",
18807
18938
  // Angular CDK overlay
18808
- ];
18809
- let o = null, s = null;
18810
- for (const c of i) {
18811
- let u;
18939
+ ".cdk-virtual-scroll-content-wrapper"
18940
+ // CDK virtual scroll content (items rendered here)
18941
+ ], o = [
18942
+ '[role="option"]',
18943
+ '[class*="option"]:not([class*="singleValue"]):not([class*="placeholder"])',
18944
+ "nz-option-item",
18945
+ ".ant-select-item-option",
18946
+ ".ant-select-item-option-content",
18947
+ ".ant-select-item"
18948
+ // Generic Ant Design item
18949
+ ].join(", ");
18950
+ let s = null, a = null;
18951
+ for (const u of i) {
18952
+ let d;
18812
18953
  try {
18813
- u = document.querySelectorAll(c);
18954
+ d = document.querySelectorAll(u);
18814
18955
  } catch {
18815
18956
  continue;
18816
18957
  }
18817
- for (const d of u) {
18818
- const h = d;
18819
- if (!fe.isVisible(h) || h.getBoundingClientRect().height < 20) continue;
18820
- const v = d.querySelectorAll('[role="option"], [class*="option"]:not([class*="singleValue"]):not([class*="placeholder"]), nz-option-item, .ant-select-item-option, .ant-select-item-option-content');
18821
- for (const b of v) {
18822
- const m = b, y = m.className || "";
18823
- if (y.toLowerCase().includes("singlevalue") || y.toLowerCase().includes("placeholder"))
18958
+ for (const h of d) {
18959
+ const g = h;
18960
+ if (!ue.isVisible(g) || g.getBoundingClientRect().height < 20) continue;
18961
+ const b = h.querySelectorAll(o);
18962
+ for (const m of b) {
18963
+ const y = m, w = y.className || "";
18964
+ if (w.toLowerCase().includes("singlevalue") || w.toLowerCase().includes("placeholder"))
18824
18965
  continue;
18825
- const w = ((a = m.textContent) == null ? void 0 : a.trim().toLowerCase()) || "";
18826
- if (w === n) {
18827
- console.log(`[OnboardingSDK] Found EXACT match for option: "${t}"`), o = m;
18966
+ const x = y.getBoundingClientRect();
18967
+ if (x.height === 0 || x.width === 0) continue;
18968
+ const C = ((c = y.textContent) == null ? void 0 : c.trim().toLowerCase()) || "";
18969
+ if (C === n) {
18970
+ console.log(`[OnboardingSDK] Found EXACT match for option: "${t}"`), s = y;
18828
18971
  break;
18829
18972
  }
18830
- if (!s && w.includes(n)) {
18831
- const x = n.length / w.length;
18832
- x > 0.7 && (console.log(`[OnboardingSDK] Found partial match (${(x * 100).toFixed(0)}%): "${w.slice(0, 50)}"`), s = m);
18973
+ if (!a && C.includes(n)) {
18974
+ const D = n.length / C.length;
18975
+ D > 0.7 && (console.log(`[OnboardingSDK] Found partial match (${(D * 100).toFixed(0)}%): "${C.slice(0, 50)}"`), a = y);
18833
18976
  }
18834
18977
  }
18835
- if (o) break;
18978
+ if (s) break;
18836
18979
  }
18837
- if (o) break;
18980
+ if (s) break;
18838
18981
  }
18839
- return o || (s ? (console.warn(`[OnboardingSDK] ⚠️ Using partial match for "${t}" - verify this is correct`), s) : (console.log(`[OnboardingSDK] No option found for: "${t}"`), null));
18982
+ return s || (a ? (console.warn(`[OnboardingSDK] ⚠️ Using partial match for "${t}" - verify this is correct`), a) : (console.log(`[OnboardingSDK] No option found for: "${t}"`), null));
18840
18983
  }
18841
18984
  /**
18842
18985
  * Try to scroll within the dropdown to find an option that might be off-screen.
@@ -18846,22 +18989,49 @@ class dc extends lh {
18846
18989
  var o;
18847
18990
  const n = t.toLowerCase().trim();
18848
18991
  console.log(`[OnboardingSDK] 🔍 Scrolling dropdown to find: "${t}"`);
18849
- const i = document.querySelectorAll(
18850
- '[role="listbox"], [class*="-menu"] [class*="menu-list"], [class*="options-container"], [class*="virtual-list"]'
18851
- );
18992
+ const i = [
18993
+ "cdk-virtual-scroll-viewport",
18994
+ // Angular CDK virtual scroll (tag)
18995
+ ".cdk-virtual-scroll-viewport",
18996
+ // CDK virtual scroll (class)
18997
+ '[role="listbox"]',
18998
+ // Generic listbox
18999
+ '[class*="-menu"] [class*="menu-list"]',
19000
+ // React Select menu list
19001
+ '[class*="options-container"]',
19002
+ // Generic options container
19003
+ '[class*="virtual-list"]'
19004
+ // Virtual list
19005
+ ];
18852
19006
  for (const s of i) {
18853
- const a = s;
18854
- if (!fe.isVisible(a) || a.scrollHeight <= a.clientHeight) continue;
18855
- console.log(`[OnboardingSDK] Found scrollable container, scrollHeight: ${a.scrollHeight}`);
18856
- const c = 200, u = Math.ceil(a.scrollHeight / c);
18857
- for (let d = 0; d < u; d++) {
18858
- a.scrollTop = d * c, await new Promise((g) => setTimeout(g, 100));
18859
- const h = a.querySelectorAll('[role="option"], [class*="option"]');
18860
- for (const g of h) {
18861
- const v = g, b = ((o = v.textContent) == null ? void 0 : o.trim().toLowerCase()) || "";
18862
- if (b === n || b.includes(n))
18863
- return console.log(`[OnboardingSDK] Found option after scrolling: "${t}"`), v.scrollIntoView({ block: "center" }), await new Promise((m) => setTimeout(m, 100)), v;
19007
+ let a;
19008
+ try {
19009
+ a = document.querySelectorAll(s);
19010
+ } catch {
19011
+ continue;
19012
+ }
19013
+ for (const c of a) {
19014
+ const u = c;
19015
+ if (!ue.isVisible(u) || u.scrollHeight <= u.clientHeight + 5) continue;
19016
+ const d = window.getComputedStyle(u).overflowY;
19017
+ if (d === "visible" || d === "hidden") {
19018
+ console.log(`[OnboardingSDK] Skipping non-scrollable container (${s}), overflow-y: ${d}`);
19019
+ continue;
19020
+ }
19021
+ console.log(`[OnboardingSDK] Found scrollable container (${s}), scrollHeight: ${u.scrollHeight}, clientHeight: ${u.clientHeight}, overflow-y: ${d}`);
19022
+ const h = 150, g = Math.ceil(u.scrollHeight / h) + 2, v = u.scrollTop;
19023
+ for (let b = 0; b < g; b++) {
19024
+ u.scrollTop = b * h, await new Promise((w) => setTimeout(w, 120));
19025
+ const y = u.querySelectorAll('[role="option"], [class*="option"]:not([class*="singleValue"]), nz-option-item, .ant-select-item-option, .ant-select-item');
19026
+ for (const w of y) {
19027
+ const x = w, C = x.getBoundingClientRect();
19028
+ if (C.height === 0 || C.width === 0) continue;
19029
+ const D = ((o = x.textContent) == null ? void 0 : o.trim().toLowerCase()) || "";
19030
+ if (D === n || D.includes(n))
19031
+ return console.log(`[OnboardingSDK] ✅ Found option after scrolling to position ${u.scrollTop}: "${t}"`), x.scrollIntoView({ block: "center" }), await new Promise((P) => setTimeout(P, 100)), x;
19032
+ }
18864
19033
  }
19034
+ u.scrollTop = v;
18865
19035
  }
18866
19036
  }
18867
19037
  return console.log(`[OnboardingSDK] Option not found after scrolling: "${t}"`), null;
@@ -19106,7 +19276,7 @@ class dc extends lh {
19106
19276
  target: n.target.optionText || n.target.text || "dropdown option",
19107
19277
  timestamp: Date.now()
19108
19278
  }), console.log("[OnboardingSDK] 📤 Sent bot_action_complete for auto-advance"), await new Promise((o) => setTimeout(o, 200)), setTimeout(() => {
19109
- this.overlay.clearHighlight(), this.overlay.hideFloeCursor();
19279
+ this.overlay.cleanup();
19110
19280
  }, 600);
19111
19281
  }
19112
19282
  /**
@@ -19141,8 +19311,8 @@ class dc extends lh {
19141
19311
  */
19142
19312
  async executeActionFast(t) {
19143
19313
  console.log("[OnboardingSDK] ⚡ Fast executing action:", t.action);
19144
- let n = fe.resolveTarget(t.target);
19145
- if (!n && (await new Promise((o) => setTimeout(o, 150)), n = fe.resolveTarget(t.target), !n))
19314
+ let n = ue.resolveTarget(t.target);
19315
+ if (!n && (await new Promise((o) => setTimeout(o, 150)), n = ue.resolveTarget(t.target), !n))
19146
19316
  return console.warn("[OnboardingSDK] ⚠️ Fast action target not found"), !1;
19147
19317
  n.scrollIntoView({ behavior: "auto", block: "center" }), await new Promise((o) => setTimeout(o, 50)), this.overlay.highlightResolvedElement(n, {
19148
19318
  color: "rgba(124, 58, 237, 0.4)",