hanc-webrtc-widgets 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,16 +3,16 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const rt = globalThis, Pt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, It = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
6
+ const at = globalThis, It = at.ShadowRoot && (at.ShadyCSS === void 0 || at.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, At = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
7
7
  let $n = class {
8
8
  constructor(r, t, c) {
9
- if (this._$cssResult$ = !0, c !== It) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, c !== At) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = r, this.t = t;
11
11
  }
12
12
  get styleSheet() {
13
13
  let r = this.o;
14
14
  const t = this.t;
15
- if (Pt && r === void 0) {
15
+ if (It && r === void 0) {
16
16
  const c = t !== void 0 && t.length === 1;
17
17
  c && (r = Lt.get(t)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), c && Lt.set(t, r));
18
18
  }
@@ -22,20 +22,20 @@ let $n = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0, It), At = (w, ...r) => {
25
+ const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0, At), kt = (w, ...r) => {
26
26
  const t = w.length === 1 ? w[0] : r.reduce((c, l, g) => c + ((y) => {
27
27
  if (y._$cssResult$ === !0) return y.cssText;
28
28
  if (typeof y == "number") return y;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + y + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(l) + w[g + 1], w[0]);
31
- return new $n(t, w, It);
31
+ return new $n(t, w, At);
32
32
  }, sr = (w, r) => {
33
- if (Pt) w.adoptedStyleSheets = r.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
33
+ if (It) w.adoptedStyleSheets = r.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
34
  else for (const t of r) {
35
- const c = document.createElement("style"), l = rt.litNonce;
35
+ const c = document.createElement("style"), l = at.litNonce;
36
36
  l !== void 0 && c.setAttribute("nonce", l), c.textContent = t.cssText, w.appendChild(c);
37
37
  }
38
- }, jt = Pt ? (w) => w : (w) => w instanceof CSSStyleSheet ? ((r) => {
38
+ }, jt = It ? (w) => w : (w) => w instanceof CSSStyleSheet ? ((r) => {
39
39
  let t = "";
40
40
  for (const c of r.cssRules) t += c.cssText;
41
41
  return ar(t);
@@ -45,7 +45,7 @@ const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0, It), At = (w
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnPropertyNames: dr, getOwnPropertySymbols: fr, getPrototypeOf: pr } = Object, fe = globalThis, Ut = fe.trustedTypes, hr = Ut ? Ut.emptyScript : "", ft = fe.reactiveElementPolyfillSupport, Fe = (w, r) => w, ot = { toAttribute(w, r) {
48
+ const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnPropertyNames: dr, getOwnPropertySymbols: fr, getPrototypeOf: pr } = Object, pe = globalThis, Ut = pe.trustedTypes, hr = Ut ? Ut.emptyScript : "", pt = pe.reactiveElementPolyfillSupport, Be = (w, r) => w, ct = { toAttribute(w, r) {
49
49
  switch (r) {
50
50
  case Boolean:
51
51
  w = w ? hr : null;
@@ -73,9 +73,9 @@ const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnProperty
73
73
  }
74
74
  }
75
75
  return t;
76
- } }, kt = (w, r) => !cr(w, r), Nt = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: kt };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), fe.litPropertyMetadata ?? (fe.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- class Pe extends HTMLElement {
76
+ } }, Rt = (w, r) => !cr(w, r), Nt = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Rt };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), pe.litPropertyMetadata ?? (pe.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ class Re extends HTMLElement {
79
79
  static addInitializer(r) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(r);
81
81
  }
@@ -105,13 +105,13 @@ class Pe extends HTMLElement {
105
105
  return this.elementProperties.get(r) ?? Nt;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(Fe("elementProperties"))) return;
108
+ if (this.hasOwnProperty(Be("elementProperties"))) return;
109
109
  const r = pr(this);
110
110
  r.finalize(), r.l !== void 0 && (this.l = [...r.l]), this.elementProperties = new Map(r.elementProperties);
111
111
  }
112
112
  static finalize() {
113
- if (this.hasOwnProperty(Fe("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Fe("properties"))) {
113
+ if (this.hasOwnProperty(Be("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Be("properties"))) {
115
115
  const t = this.properties, c = [...dr(t), ...fr(t)];
116
116
  for (const l of c) this.createProperty(l, t[l]);
117
117
  }
@@ -186,7 +186,7 @@ class Pe extends HTMLElement {
186
186
  var g;
187
187
  const c = this.constructor.elementProperties.get(r), l = this.constructor._$Eu(r, c);
188
188
  if (l !== void 0 && c.reflect === !0) {
189
- const y = (((g = c.converter) == null ? void 0 : g.toAttribute) !== void 0 ? c.converter : ot).toAttribute(t, c.type);
189
+ const y = (((g = c.converter) == null ? void 0 : g.toAttribute) !== void 0 ? c.converter : ct).toAttribute(t, c.type);
190
190
  this._$Em = r, y == null ? this.removeAttribute(l) : this.setAttribute(l, y), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,13 +194,13 @@ class Pe extends HTMLElement {
194
194
  var g;
195
195
  const c = this.constructor, l = c._$Eh.get(r);
196
196
  if (l !== void 0 && this._$Em !== l) {
197
- const y = c.getPropertyOptions(l), _ = typeof y.converter == "function" ? { fromAttribute: y.converter } : ((g = y.converter) == null ? void 0 : g.fromAttribute) !== void 0 ? y.converter : ot;
197
+ const y = c.getPropertyOptions(l), _ = typeof y.converter == "function" ? { fromAttribute: y.converter } : ((g = y.converter) == null ? void 0 : g.fromAttribute) !== void 0 ? y.converter : ct;
198
198
  this._$Em = l, this[l] = _.fromAttribute(t, y.type), this._$Em = null;
199
199
  }
200
200
  }
201
201
  requestUpdate(r, t, c) {
202
202
  if (r !== void 0) {
203
- if (c ?? (c = this.constructor.getPropertyOptions(r)), !(c.hasChanged ?? kt)(this[r], t)) return;
203
+ if (c ?? (c = this.constructor.getPropertyOptions(r)), !(c.hasChanged ?? Rt)(this[r], t)) return;
204
204
  this.P(r, t, c);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -273,74 +273,74 @@ class Pe extends HTMLElement {
273
273
  firstUpdated(r) {
274
274
  }
275
275
  }
276
- Pe.elementStyles = [], Pe.shadowRootOptions = { mode: "open" }, Pe[Fe("elementProperties")] = /* @__PURE__ */ new Map(), Pe[Fe("finalized")] = /* @__PURE__ */ new Map(), ft == null || ft({ ReactiveElement: Pe }), (fe.reactiveElementVersions ?? (fe.reactiveElementVersions = [])).push("2.0.4");
276
+ Re.elementStyles = [], Re.shadowRootOptions = { mode: "open" }, Re[Be("elementProperties")] = /* @__PURE__ */ new Map(), Re[Be("finalized")] = /* @__PURE__ */ new Map(), pt == null || pt({ ReactiveElement: Re }), (pe.reactiveElementVersions ?? (pe.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const $e = globalThis, at = $e.trustedTypes, Ft = at ? at.createPolicy("lit-html", { createHTML: (w) => w }) : void 0, Bn = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, qn = "?" + de, vr = `<${qn}>`, _e = document, Be = () => _e.createComment(""), qe = (w) => w === null || typeof w != "object" && typeof w != "function", Rt = Array.isArray, gr = (w) => Rt(w) || typeof (w == null ? void 0 : w[Symbol.iterator]) == "function", pt = `[
283
- \f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, Bt = />/g, he = RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, Hn = /^(?:script|style|textarea|title)$/i, mr = (w) => (r, ...t) => ({ _$litType$: w, strings: r, values: t }), Ie = mr(1), ke = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), me = _e.createTreeWalker(_e, 129);
282
+ const qe = globalThis, ut = qe.trustedTypes, Ft = ut ? ut.createPolicy("lit-html", { createHTML: (w) => w }) : void 0, Bn = "$lit$", fe = `lit$${Math.random().toFixed(9).slice(2)}$`, qn = "?" + fe, vr = `<${qn}>`, ye = document, He = () => ye.createComment(""), We = (w) => w === null || typeof w != "object" && typeof w != "function", xt = Array.isArray, gr = (w) => xt(w) || typeof (w == null ? void 0 : w[Symbol.iterator]) == "function", ht = `[
283
+ \f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, Bt = />/g, ve = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, Hn = /^(?:script|style|textarea|title)$/i, mr = (w) => (r, ...t) => ({ _$litType$: w, strings: r, values: t }), xe = mr(1), Oe = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), _e = ye.createTreeWalker(ye, 129);
285
285
  function Wn(w, r) {
286
- if (!Rt(w) || !w.hasOwnProperty("raw")) throw Error("invalid template strings array");
286
+ if (!xt(w) || !w.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return Ft !== void 0 ? Ft.createHTML(r) : r;
288
288
  }
289
289
  const _r = (w, r) => {
290
290
  const t = w.length - 1, c = [];
291
- let l, g = r === 2 ? "<svg>" : r === 3 ? "<math>" : "", y = Me;
291
+ let l, g = r === 2 ? "<svg>" : r === 3 ? "<math>" : "", y = je;
292
292
  for (let _ = 0; _ < t; _++) {
293
293
  const E = w[_];
294
294
  let C, S, m = -1, u = 0;
295
- for (; u < E.length && (y.lastIndex = u, S = y.exec(E), S !== null); ) u = y.lastIndex, y === Me ? S[1] === "!--" ? y = $t : S[1] !== void 0 ? y = Bt : S[2] !== void 0 ? (Hn.test(S[2]) && (l = RegExp("</" + S[2], "g")), y = he) : S[3] !== void 0 && (y = he) : y === he ? S[0] === ">" ? (y = l ?? Me, m = -1) : S[1] === void 0 ? m = -2 : (m = y.lastIndex - S[2].length, C = S[1], y = S[3] === void 0 ? he : S[3] === '"' ? Ht : qt) : y === Ht || y === qt ? y = he : y === $t || y === Bt ? y = Me : (y = he, l = void 0);
296
- const b = y === he && w[_ + 1].startsWith("/>") ? " " : "";
297
- g += y === Me ? E + vr : m >= 0 ? (c.push(C), E.slice(0, m) + Bn + E.slice(m) + de + b) : E + de + (m === -2 ? _ : b);
295
+ for (; u < E.length && (y.lastIndex = u, S = y.exec(E), S !== null); ) u = y.lastIndex, y === je ? S[1] === "!--" ? y = $t : S[1] !== void 0 ? y = Bt : S[2] !== void 0 ? (Hn.test(S[2]) && (l = RegExp("</" + S[2], "g")), y = ve) : S[3] !== void 0 && (y = ve) : y === ve ? S[0] === ">" ? (y = l ?? je, m = -1) : S[1] === void 0 ? m = -2 : (m = y.lastIndex - S[2].length, C = S[1], y = S[3] === void 0 ? ve : S[3] === '"' ? Ht : qt) : y === Ht || y === qt ? y = ve : y === $t || y === Bt ? y = je : (y = ve, l = void 0);
296
+ const b = y === ve && w[_ + 1].startsWith("/>") ? " " : "";
297
+ g += y === je ? E + vr : m >= 0 ? (c.push(C), E.slice(0, m) + Bn + E.slice(m) + fe + b) : E + fe + (m === -2 ? _ : b);
298
298
  }
299
299
  return [Wn(w, g + (w[t] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), c];
300
300
  };
301
- class He {
301
+ class Ve {
302
302
  constructor({ strings: r, _$litType$: t }, c) {
303
303
  let l;
304
304
  this.parts = [];
305
305
  let g = 0, y = 0;
306
306
  const _ = r.length - 1, E = this.parts, [C, S] = _r(r, t);
307
- if (this.el = He.createElement(C, c), me.currentNode = this.el.content, t === 2 || t === 3) {
307
+ if (this.el = Ve.createElement(C, c), _e.currentNode = this.el.content, t === 2 || t === 3) {
308
308
  const m = this.el.content.firstChild;
309
309
  m.replaceWith(...m.childNodes);
310
310
  }
311
- for (; (l = me.nextNode()) !== null && E.length < _; ) {
311
+ for (; (l = _e.nextNode()) !== null && E.length < _; ) {
312
312
  if (l.nodeType === 1) {
313
313
  if (l.hasAttributes()) for (const m of l.getAttributeNames()) if (m.endsWith(Bn)) {
314
- const u = S[y++], b = l.getAttribute(m).split(de), n = /([.?@])?(.*)/.exec(u);
315
- E.push({ type: 1, index: g, name: n[2], strings: b, ctor: n[1] === "." ? br : n[1] === "?" ? Sr : n[1] === "@" ? wr : st }), l.removeAttribute(m);
316
- } else m.startsWith(de) && (E.push({ type: 6, index: g }), l.removeAttribute(m));
314
+ const u = S[y++], b = l.getAttribute(m).split(fe), n = /([.?@])?(.*)/.exec(u);
315
+ E.push({ type: 1, index: g, name: n[2], strings: b, ctor: n[1] === "." ? br : n[1] === "?" ? Sr : n[1] === "@" ? wr : lt }), l.removeAttribute(m);
316
+ } else m.startsWith(fe) && (E.push({ type: 6, index: g }), l.removeAttribute(m));
317
317
  if (Hn.test(l.tagName)) {
318
- const m = l.textContent.split(de), u = m.length - 1;
318
+ const m = l.textContent.split(fe), u = m.length - 1;
319
319
  if (u > 0) {
320
- l.textContent = at ? at.emptyScript : "";
321
- for (let b = 0; b < u; b++) l.append(m[b], Be()), me.nextNode(), E.push({ type: 2, index: ++g });
322
- l.append(m[u], Be());
320
+ l.textContent = ut ? ut.emptyScript : "";
321
+ for (let b = 0; b < u; b++) l.append(m[b], He()), _e.nextNode(), E.push({ type: 2, index: ++g });
322
+ l.append(m[u], He());
323
323
  }
324
324
  }
325
325
  } else if (l.nodeType === 8) if (l.data === qn) E.push({ type: 2, index: g });
326
326
  else {
327
327
  let m = -1;
328
- for (; (m = l.data.indexOf(de, m + 1)) !== -1; ) E.push({ type: 7, index: g }), m += de.length - 1;
328
+ for (; (m = l.data.indexOf(fe, m + 1)) !== -1; ) E.push({ type: 7, index: g }), m += fe.length - 1;
329
329
  }
330
330
  g++;
331
331
  }
332
332
  }
333
333
  static createElement(r, t) {
334
- const c = _e.createElement("template");
334
+ const c = ye.createElement("template");
335
335
  return c.innerHTML = r, c;
336
336
  }
337
337
  }
338
- function Re(w, r, t = w, c) {
338
+ function Me(w, r, t = w, c) {
339
339
  var y, _;
340
- if (r === ke) return r;
340
+ if (r === Oe) return r;
341
341
  let l = c !== void 0 ? (y = t._$Co) == null ? void 0 : y[c] : t._$Cl;
342
- const g = qe(r) ? void 0 : r._$litDirective$;
343
- return (l == null ? void 0 : l.constructor) !== g && ((_ = l == null ? void 0 : l._$AO) == null || _.call(l, !1), g === void 0 ? l = void 0 : (l = new g(w), l._$AT(w, t, c)), c !== void 0 ? (t._$Co ?? (t._$Co = []))[c] = l : t._$Cl = l), l !== void 0 && (r = Re(w, l._$AS(w, r.values), l, c)), r;
342
+ const g = We(r) ? void 0 : r._$litDirective$;
343
+ return (l == null ? void 0 : l.constructor) !== g && ((_ = l == null ? void 0 : l._$AO) == null || _.call(l, !1), g === void 0 ? l = void 0 : (l = new g(w), l._$AT(w, t, c)), c !== void 0 ? (t._$Co ?? (t._$Co = []))[c] = l : t._$Cl = l), l !== void 0 && (r = Me(w, l._$AS(w, r.values), l, c)), r;
344
344
  }
345
345
  class yr {
346
346
  constructor(r, t) {
@@ -353,24 +353,24 @@ class yr {
353
353
  return this._$AM._$AU;
354
354
  }
355
355
  u(r) {
356
- const { el: { content: t }, parts: c } = this._$AD, l = ((r == null ? void 0 : r.creationScope) ?? _e).importNode(t, !0);
357
- me.currentNode = l;
358
- let g = me.nextNode(), y = 0, _ = 0, E = c[0];
356
+ const { el: { content: t }, parts: c } = this._$AD, l = ((r == null ? void 0 : r.creationScope) ?? ye).importNode(t, !0);
357
+ _e.currentNode = l;
358
+ let g = _e.nextNode(), y = 0, _ = 0, E = c[0];
359
359
  for (; E !== void 0; ) {
360
360
  if (y === E.index) {
361
361
  let C;
362
- E.type === 2 ? C = new We(g, g.nextSibling, this, r) : E.type === 1 ? C = new E.ctor(g, E.name, E.strings, this, r) : E.type === 6 && (C = new Cr(g, this, r)), this._$AV.push(C), E = c[++_];
362
+ E.type === 2 ? C = new Ge(g, g.nextSibling, this, r) : E.type === 1 ? C = new E.ctor(g, E.name, E.strings, this, r) : E.type === 6 && (C = new Cr(g, this, r)), this._$AV.push(C), E = c[++_];
363
363
  }
364
- y !== (E == null ? void 0 : E.index) && (g = me.nextNode(), y++);
364
+ y !== (E == null ? void 0 : E.index) && (g = _e.nextNode(), y++);
365
365
  }
366
- return me.currentNode = _e, l;
366
+ return _e.currentNode = ye, l;
367
367
  }
368
368
  p(r) {
369
369
  let t = 0;
370
370
  for (const c of this._$AV) c !== void 0 && (c.strings !== void 0 ? (c._$AI(r, c, t), t += c.strings.length - 2) : c._$AI(r[t])), t++;
371
371
  }
372
372
  }
373
- class We {
373
+ class Ge {
374
374
  get _$AU() {
375
375
  var r;
376
376
  return ((r = this._$AM) == null ? void 0 : r._$AU) ?? this._$Cv;
@@ -390,7 +390,7 @@ class We {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(r, t = this) {
393
- r = Re(this, r, t), qe(r) ? r === V || r == null || r === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : r !== this._$AH && r !== ke && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : gr(r) ? this.k(r) : this._(r);
393
+ r = Me(this, r, t), We(r) ? r === V || r == null || r === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : r !== this._$AH && r !== Oe && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : gr(r) ? this.k(r) : this._(r);
394
394
  }
395
395
  O(r) {
396
396
  return this._$AA.parentNode.insertBefore(r, this._$AB);
@@ -399,11 +399,11 @@ class We {
399
399
  this._$AH !== r && (this._$AR(), this._$AH = this.O(r));
400
400
  }
401
401
  _(r) {
402
- this._$AH !== V && qe(this._$AH) ? this._$AA.nextSibling.data = r : this.T(_e.createTextNode(r)), this._$AH = r;
402
+ this._$AH !== V && We(this._$AH) ? this._$AA.nextSibling.data = r : this.T(ye.createTextNode(r)), this._$AH = r;
403
403
  }
404
404
  $(r) {
405
405
  var g;
406
- const { values: t, _$litType$: c } = r, l = typeof c == "number" ? this._$AC(r) : (c.el === void 0 && (c.el = He.createElement(Wn(c.h, c.h[0]), this.options)), c);
406
+ const { values: t, _$litType$: c } = r, l = typeof c == "number" ? this._$AC(r) : (c.el === void 0 && (c.el = Ve.createElement(Wn(c.h, c.h[0]), this.options)), c);
407
407
  if (((g = this._$AH) == null ? void 0 : g._$AD) === l) this._$AH.p(t);
408
408
  else {
409
409
  const y = new yr(l, this), _ = y.u(this.options);
@@ -412,13 +412,13 @@ class We {
412
412
  }
413
413
  _$AC(r) {
414
414
  let t = Wt.get(r.strings);
415
- return t === void 0 && Wt.set(r.strings, t = new He(r)), t;
415
+ return t === void 0 && Wt.set(r.strings, t = new Ve(r)), t;
416
416
  }
417
417
  k(r) {
418
- Rt(this._$AH) || (this._$AH = [], this._$AR());
418
+ xt(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const t = this._$AH;
420
420
  let c, l = 0;
421
- for (const g of r) l === t.length ? t.push(c = new We(this.O(Be()), this.O(Be()), this, this.options)) : c = t[l], c._$AI(g), l++;
421
+ for (const g of r) l === t.length ? t.push(c = new Ge(this.O(He()), this.O(He()), this, this.options)) : c = t[l], c._$AI(g), l++;
422
422
  l < t.length && (this._$AR(c && c._$AB.nextSibling, l), t.length = l);
423
423
  }
424
424
  _$AR(r = this._$AA.nextSibling, t) {
@@ -433,7 +433,7 @@ class We {
433
433
  this._$AM === void 0 && (this._$Cv = r, (t = this._$AP) == null || t.call(this, r));
434
434
  }
435
435
  }
436
- class st {
436
+ class lt {
437
437
  get tagName() {
438
438
  return this.element.tagName;
439
439
  }
@@ -446,11 +446,11 @@ class st {
446
446
  _$AI(r, t = this, c, l) {
447
447
  const g = this.strings;
448
448
  let y = !1;
449
- if (g === void 0) r = Re(this, r, t, 0), y = !qe(r) || r !== this._$AH && r !== ke, y && (this._$AH = r);
449
+ if (g === void 0) r = Me(this, r, t, 0), y = !We(r) || r !== this._$AH && r !== Oe, y && (this._$AH = r);
450
450
  else {
451
451
  const _ = r;
452
452
  let E, C;
453
- for (r = g[0], E = 0; E < g.length - 1; E++) C = Re(this, _[c + E], t, E), C === ke && (C = this._$AH[E]), y || (y = !qe(C) || C !== this._$AH[E]), C === V ? r = V : r !== V && (r += (C ?? "") + g[E + 1]), this._$AH[E] = C;
453
+ for (r = g[0], E = 0; E < g.length - 1; E++) C = Me(this, _[c + E], t, E), C === Oe && (C = this._$AH[E]), y || (y = !We(C) || C !== this._$AH[E]), C === V ? r = V : r !== V && (r += (C ?? "") + g[E + 1]), this._$AH[E] = C;
454
454
  }
455
455
  y && !l && this.j(r);
456
456
  }
@@ -458,7 +458,7 @@ class st {
458
458
  r === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
459
459
  }
460
460
  }
461
- class br extends st {
461
+ class br extends lt {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ class br extends st {
466
466
  this.element[this.name] = r === V ? void 0 : r;
467
467
  }
468
468
  }
469
- class Sr extends st {
469
+ class Sr extends lt {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,12 +474,12 @@ class Sr extends st {
474
474
  this.element.toggleAttribute(this.name, !!r && r !== V);
475
475
  }
476
476
  }
477
- class wr extends st {
477
+ class wr extends lt {
478
478
  constructor(r, t, c, l, g) {
479
479
  super(r, t, c, l, g), this.type = 5;
480
480
  }
481
481
  _$AI(r, t = this) {
482
- if ((r = Re(this, r, t, 0) ?? V) === ke) return;
482
+ if ((r = Me(this, r, t, 0) ?? V) === Oe) return;
483
483
  const c = this._$AH, l = r === V && c !== V || r.capture !== c.capture || r.once !== c.once || r.passive !== c.passive, g = r !== V && (c === V || l);
484
484
  l && this.element.removeEventListener(this.name, this, c), g && this.element.addEventListener(this.name, this, r), this._$AH = r;
485
485
  }
@@ -496,17 +496,17 @@ class Cr {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(r) {
499
- Re(this, r);
499
+ Me(this, r);
500
500
  }
501
501
  }
502
- const ht = $e.litHtmlPolyfillSupport;
503
- ht == null || ht(He, We), ($e.litHtmlVersions ?? ($e.litHtmlVersions = [])).push("3.2.1");
502
+ const vt = qe.litHtmlPolyfillSupport;
503
+ vt == null || vt(Ve, Ge), (qe.litHtmlVersions ?? (qe.litHtmlVersions = [])).push("3.2.1");
504
504
  const Er = (w, r, t) => {
505
505
  const c = (t == null ? void 0 : t.renderBefore) ?? r;
506
506
  let l = c._$litPart$;
507
507
  if (l === void 0) {
508
508
  const g = (t == null ? void 0 : t.renderBefore) ?? null;
509
- c._$litPart$ = l = new We(r.insertBefore(Be(), g), g, void 0, t ?? {});
509
+ c._$litPart$ = l = new Ge(r.insertBefore(He(), g), g, void 0, t ?? {});
510
510
  }
511
511
  return l._$AI(w), l;
512
512
  };
@@ -515,7 +515,7 @@ const Er = (w, r, t) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let Ae = class extends Pe {
518
+ let De = class extends Re {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -537,13 +537,13 @@ let Ae = class extends Pe {
537
537
  super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1);
538
538
  }
539
539
  render() {
540
- return ke;
540
+ return Oe;
541
541
  }
542
542
  };
543
543
  var Fn;
544
- Ae._$litElement$ = !0, Ae.finalized = !0, (Fn = globalThis.litElementHydrateSupport) == null || Fn.call(globalThis, { LitElement: Ae });
545
- const vt = globalThis.litElementPolyfillSupport;
546
- vt == null || vt({ LitElement: Ae });
544
+ De._$litElement$ = !0, De.finalized = !0, (Fn = globalThis.litElementHydrateSupport) == null || Fn.call(globalThis, { LitElement: De });
545
+ const gt = globalThis.litElementPolyfillSupport;
546
+ gt == null || gt({ LitElement: De });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
548
  /**
549
549
  * @license
@@ -560,7 +560,7 @@ const Vn = (w) => (r, t) => {
560
560
  * Copyright 2017 Google LLC
561
561
  * SPDX-License-Identifier: BSD-3-Clause
562
562
  */
563
- const Tr = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: kt }, Pr = (w = Tr, r, t) => {
563
+ const Tr = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Rt }, Pr = (w = Tr, r, t) => {
564
564
  const { kind: c, metadata: l } = t;
565
565
  let g = globalThis.litPropertyMetadata.get(l);
566
566
  if (g === void 0 && globalThis.litPropertyMetadata.set(l, g = /* @__PURE__ */ new Map()), g.set(t.name, w), c === "accessor") {
@@ -581,7 +581,7 @@ const Tr = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
581
581
  }
582
582
  throw Error("Unsupported decorator location: " + c);
583
583
  };
584
- function xt(w) {
584
+ function Se(w) {
585
585
  return (r, t) => typeof t == "object" ? Pr(w, r, t) : ((c, l, g) => {
586
586
  const y = l.hasOwnProperty(g);
587
587
  return l.constructor.createProperty(g, y ? { ...c, wrapped: !0 } : c), y ? Object.getOwnPropertyDescriptor(l, g) : void 0;
@@ -593,7 +593,7 @@ function xt(w) {
593
593
  * SPDX-License-Identifier: BSD-3-Clause
594
594
  */
595
595
  function Gn(w) {
596
- return xt({ ...w, state: !0, attribute: !1 });
596
+ return Se({ ...w, state: !0, attribute: !1 });
597
597
  }
598
598
  /**
599
599
  * @license
@@ -617,7 +617,7 @@ function zn(w, r) {
617
617
  } });
618
618
  };
619
619
  }
620
- const Ar = At`
620
+ const Ar = kt`
621
621
  .wrapper {
622
622
  position: relative;
623
623
  overflow: hidden;
@@ -652,14 +652,14 @@ const Ar = At`
652
652
  }
653
653
 
654
654
  .filter-gradient {
655
- background: linear-gradient(to right, #63b3ed, #06b6d4, #2563eb);
655
+ background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
656
656
  background-size: 200% 200%;
657
657
  animation: gradientAnimation 8s ease infinite;
658
658
  mix-blend-mode: overlay;
659
659
  }
660
660
 
661
661
  .filter-overlay {
662
- background: linear-gradient(to right, #63b3ed, #06b6d4, #2563eb);
662
+ background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
663
663
  background-size: 200% 200%;
664
664
  animation: gradientAnimation 8s ease infinite;
665
665
  transition: opacity 0.5s;
@@ -709,7 +709,7 @@ const Ar = At`
709
709
  font-size: 1.25rem;
710
710
  border: none;
711
711
  cursor: pointer;
712
- background-color: #dc2626;
712
+ background-color: #d03175;
713
713
  color: white;
714
714
  }
715
715
 
@@ -719,7 +719,7 @@ const Ar = At`
719
719
  }
720
720
 
721
721
  .button[data-calling='false']:hover {
722
- background-color: #b91c1c;
722
+ background-color: #b2236f;
723
723
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
724
724
  }
725
725
 
@@ -759,7 +759,7 @@ const Ar = At`
759
759
  align-items: center;
760
760
  justify-content: center;
761
761
  }
762
- `, Jn = At`
762
+ `, Jn = kt`
763
763
  * {
764
764
  box-sizing: border-box;
765
765
  margin: 0;
@@ -767,9 +767,9 @@ const Ar = At`
767
767
  border: 0;
768
768
  }
769
769
  `;
770
- var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, gt = {}, ce = {}, Ve = { exports: {} }, Vt;
770
+ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, mt = {}, ue = {}, Je = { exports: {} }, Vt;
771
771
  function ee() {
772
- if (Vt) return Ve.exports;
772
+ if (Vt) return Je.exports;
773
773
  Vt = 1;
774
774
  var w = typeof Reflect == "object" ? Reflect : null, r = w && typeof w.apply == "function" ? w.apply : function(s, h, I) {
775
775
  return Function.prototype.apply.call(s, h, I);
@@ -788,7 +788,7 @@ function ee() {
788
788
  function g() {
789
789
  g.init.call(this);
790
790
  }
791
- Ve.exports = g, Ve.exports.once = o, g.EventEmitter = g, g.prototype._events = void 0, g.prototype._eventsCount = 0, g.prototype._maxListeners = void 0;
791
+ Je.exports = g, Je.exports.once = o, g.EventEmitter = g, g.prototype._events = void 0, g.prototype._eventsCount = 0, g.prototype._maxListeners = void 0;
792
792
  var y = 10;
793
793
  function _(d) {
794
794
  if (typeof d != "function")
@@ -977,13 +977,13 @@ function ee() {
977
977
  else
978
978
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof d);
979
979
  }
980
- return Ve.exports;
980
+ return Je.exports;
981
981
  }
982
- var Se = {}, Gt;
982
+ var Te = {}, Gt;
983
983
  function Kn() {
984
- if (Gt) return Se;
984
+ if (Gt) return Te;
985
985
  Gt = 1;
986
- var w = Se && Se.__extends || /* @__PURE__ */ function() {
986
+ var w = Te && Te.__extends || /* @__PURE__ */ function() {
987
987
  var c = function(l, g) {
988
988
  return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, _) {
989
989
  y.__proto__ = _;
@@ -999,7 +999,7 @@ function Kn() {
999
999
  l.prototype = g === null ? Object.create(g) : (y.prototype = g.prototype, new y());
1000
1000
  };
1001
1001
  }();
1002
- Object.defineProperty(Se, "__esModule", { value: !0 });
1002
+ Object.defineProperty(Te, "__esModule", { value: !0 });
1003
1003
  var r = ee(), t = (
1004
1004
  /** @class */
1005
1005
  function(c) {
@@ -1042,9 +1042,9 @@ function Kn() {
1042
1042
  }, l;
1043
1043
  }(r.EventEmitter)
1044
1044
  );
1045
- return Se.default = t, Se;
1045
+ return Te.default = t, Te;
1046
1046
  }
1047
- var Q = {}, it = { exports: {} }, kr = it.exports, zt;
1047
+ var Q = {}, st = { exports: {} }, kr = st.exports, zt;
1048
1048
  function Qn() {
1049
1049
  return zt || (zt = 1, function(w) {
1050
1050
  (function(r, t) {
@@ -1169,13 +1169,13 @@ function Qn() {
1169
1169
  return b;
1170
1170
  }, u;
1171
1171
  });
1172
- }(it)), it.exports;
1172
+ }(st)), st.exports;
1173
1173
  }
1174
- var te = {}, Le = {}, je = {}, we = {}, Jt;
1174
+ var te = {}, Ue = {}, Ne = {}, Pe = {}, Jt;
1175
1175
  function Rr() {
1176
- if (Jt) return we;
1176
+ if (Jt) return Pe;
1177
1177
  Jt = 1;
1178
- var w = we && we.__extends || /* @__PURE__ */ function() {
1178
+ var w = Pe && Pe.__extends || /* @__PURE__ */ function() {
1179
1179
  var t = function(c, l) {
1180
1180
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, y) {
1181
1181
  g.__proto__ = y;
@@ -1191,7 +1191,7 @@ function Rr() {
1191
1191
  c.prototype = l === null ? Object.create(l) : (g.prototype = l.prototype, new g());
1192
1192
  };
1193
1193
  }();
1194
- Object.defineProperty(we, "__esModule", { value: !0 });
1194
+ Object.defineProperty(Pe, "__esModule", { value: !0 });
1195
1195
  var r = (
1196
1196
  /** @class */
1197
1197
  function(t) {
@@ -1205,12 +1205,12 @@ function Rr() {
1205
1205
  return c;
1206
1206
  }(Error)
1207
1207
  );
1208
- return we.default = r, we;
1208
+ return Pe.default = r, Pe;
1209
1209
  }
1210
1210
  var Kt;
1211
1211
  function xr() {
1212
1212
  return Kt || (Kt = 1, function(w) {
1213
- var r = je && je.__extends || /* @__PURE__ */ function() {
1213
+ var r = Ne && Ne.__extends || /* @__PURE__ */ function() {
1214
1214
  var u = function(b, n) {
1215
1215
  return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
1216
1216
  e.__proto__ = i;
@@ -1909,12 +1909,12 @@ function xr() {
1909
1909
  [53402, m.ClientRemoteDescFailed],
1910
1910
  [53405, m.ConnectionError]
1911
1911
  ]), Object.freeze(w.errorsByCode);
1912
- }(je)), je;
1912
+ }(Ne)), Ne;
1913
1913
  }
1914
1914
  var Qt;
1915
1915
  function z() {
1916
1916
  return Qt || (Qt = 1, function(w) {
1917
- var r = Le && Le.__extends || /* @__PURE__ */ function() {
1917
+ var r = Ue && Ue.__extends || /* @__PURE__ */ function() {
1918
1918
  var S = function(m, u) {
1919
1919
  return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, n) {
1920
1920
  b.__proto__ = n;
@@ -2044,10 +2044,10 @@ function z() {
2044
2044
  return t.errorsByCode.has(S);
2045
2045
  }
2046
2046
  w.hasErrorByCode = C;
2047
- }(Le)), Le;
2047
+ }(Ue)), Ue;
2048
2048
  }
2049
- var ue = {}, J = {}, Xt;
2050
- function Oe() {
2049
+ var le = {}, J = {}, Xt;
2050
+ function Le() {
2051
2051
  if (Xt) return J;
2052
2052
  Xt = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.SOUNDS_BASE_URL = J.RELEASE_VERSION = J.PACKAGE_NAME = J.ECHO_TEST_DURATION = J.COWBELL_AUDIO_URL = void 0;
2053
2053
  var w = "@twilio/voice-sdk";
@@ -2063,17 +2063,17 @@ function Oe() {
2063
2063
  }
2064
2064
  var Yt;
2065
2065
  function X() {
2066
- if (Yt) return ue;
2066
+ if (Yt) return le;
2067
2067
  Yt = 1;
2068
- var w = ue && ue.__spreadArrays || function() {
2068
+ var w = le && le.__spreadArrays || function() {
2069
2069
  for (var l = 0, g = 0, y = arguments.length; g < y; g++) l += arguments[g].length;
2070
2070
  for (var _ = Array(l), E = 0, g = 0; g < y; g++)
2071
2071
  for (var C = arguments[g], S = 0, m = C.length; S < m; S++, E++)
2072
2072
  _[E] = C[S];
2073
2073
  return _;
2074
2074
  };
2075
- Object.defineProperty(ue, "__esModule", { value: !0 }), ue.Logger = void 0;
2076
- var r = Qn(), t = Oe(), c = (
2075
+ Object.defineProperty(le, "__esModule", { value: !0 }), le.Logger = void 0;
2076
+ var r = Qn(), t = Le(), c = (
2077
2077
  /** @class */
2078
2078
  function() {
2079
2079
  function l(g, y) {
@@ -2108,13 +2108,13 @@ function X() {
2108
2108
  }, l.levels = r.levels, l;
2109
2109
  }()
2110
2110
  );
2111
- return ue.Logger = c.getLogLevelInstance(), ue.default = c, ue;
2111
+ return le.Logger = c.getLogLevelInstance(), le.default = c, le;
2112
2112
  }
2113
- var Ge = {}, Zt;
2113
+ var Ke = {}, Zt;
2114
2114
  function Dr() {
2115
- if (Zt) return Ge;
2116
- Zt = 1, Object.defineProperty(Ge, "__esModule", { value: !0 });
2117
- var w = Oe(), r = z(), t = X(), c = w.SOUNDS_BASE_URL + "/outgoing.mp3", l = (
2115
+ if (Zt) return Ke;
2116
+ Zt = 1, Object.defineProperty(Ke, "__esModule", { value: !0 });
2117
+ var w = Le(), r = z(), t = X(), c = w.SOUNDS_BASE_URL + "/outgoing.mp3", l = (
2118
2118
  /** @class */
2119
2119
  function() {
2120
2120
  function g(y, _, E, C) {
@@ -2160,12 +2160,12 @@ function Dr() {
2160
2160
  }, g;
2161
2161
  }()
2162
2162
  );
2163
- return Ge.default = l, Ge;
2163
+ return Ke.default = l, Ke;
2164
2164
  }
2165
- var ze = {}, en;
2165
+ var Qe = {}, en;
2166
2166
  function Or() {
2167
- if (en) return ze;
2168
- en = 1, Object.defineProperty(ze, "__esModule", { value: !0 });
2167
+ if (en) return Qe;
2168
+ en = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
2169
2169
  var w = (
2170
2170
  /** @class */
2171
2171
  /* @__PURE__ */ function() {
@@ -2188,10 +2188,10 @@ function Or() {
2188
2188
  return r;
2189
2189
  }()
2190
2190
  );
2191
- return ze.default = w, ze;
2191
+ return Qe.default = w, Qe;
2192
2192
  }
2193
2193
  var H = {}, tn;
2194
- function pe() {
2194
+ function he() {
2195
2195
  if (tn) return H;
2196
2196
  tn = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.promisifyEvents = H.flatMap = H.queryToJson = H.isUnifiedPlanDefault = H.isSafari = H.isLegacyEdge = H.isFirefox = H.isChrome = H.isElectron = H.difference = H.average = H.Exception = void 0;
2197
2197
  function w(b) {
@@ -2228,11 +2228,11 @@ function pe() {
2228
2228
  }
2229
2229
  H.isChrome = l;
2230
2230
  function g(b) {
2231
- return b = b || (typeof window > "u" ? Tt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /firefox|fxios/i.test(b.userAgent);
2231
+ return b = b || (typeof window > "u" ? Pt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /firefox|fxios/i.test(b.userAgent);
2232
2232
  }
2233
2233
  H.isFirefox = g;
2234
2234
  function y(b) {
2235
- return b = b || (typeof window > "u" ? Tt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /edge\/\d+/i.test(b.userAgent);
2235
+ return b = b || (typeof window > "u" ? Pt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /edge\/\d+/i.test(b.userAgent);
2236
2236
  }
2237
2237
  H.isLegacyEdge = y;
2238
2238
  function _(b) {
@@ -2397,7 +2397,7 @@ function Mr() {
2397
2397
  }
2398
2398
  };
2399
2399
  Object.defineProperty(te, "__esModule", { value: !0 });
2400
- var c = ee(), l = ct(), g = z(), y = X(), _ = Dr(), E = Or(), C = pe(), S = {
2400
+ var c = ee(), l = dt(), g = z(), y = X(), _ = Dr(), E = Or(), C = he(), S = {
2401
2401
  audioinput: "Audio Input",
2402
2402
  audiooutput: "Audio Output"
2403
2403
  }, m = (
@@ -2700,11 +2700,11 @@ function Mr() {
2700
2700
  );
2701
2701
  return m || (m = {}), te.default = m, te;
2702
2702
  }
2703
- var ve = {}, rn;
2703
+ var ge = {}, rn;
2704
2704
  function Lr() {
2705
- if (rn) return ve;
2705
+ if (rn) return ge;
2706
2706
  rn = 1;
2707
- var w = ve && ve.__extends || /* @__PURE__ */ function() {
2707
+ var w = ge && ge.__extends || /* @__PURE__ */ function() {
2708
2708
  var l = function(g, y) {
2709
2709
  return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
2710
2710
  _.__proto__ = E;
@@ -2720,7 +2720,7 @@ function Lr() {
2720
2720
  g.prototype = y === null ? Object.create(y) : (_.prototype = y.prototype, new _());
2721
2721
  };
2722
2722
  }();
2723
- Object.defineProperty(ve, "__esModule", { value: !0 }), ve.AudioProcessorEventObserver = void 0;
2723
+ Object.defineProperty(ge, "__esModule", { value: !0 }), ge.AudioProcessorEventObserver = void 0;
2724
2724
  var r = ee(), t = X(), c = (
2725
2725
  /** @class */
2726
2726
  function(l) {
@@ -2746,12 +2746,12 @@ function Lr() {
2746
2746
  }, g;
2747
2747
  }(r.EventEmitter)
2748
2748
  );
2749
- return ve.AudioProcessorEventObserver = c, ve;
2749
+ return ge.AudioProcessorEventObserver = c, ge;
2750
2750
  }
2751
- var Je = {}, on;
2751
+ var Xe = {}, on;
2752
2752
  function jr() {
2753
- if (on) return Je;
2754
- on = 1, Object.defineProperty(Je, "__esModule", { value: !0 });
2753
+ if (on) return Xe;
2754
+ on = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
2755
2755
  var w = z(), r = {
2756
2756
  dtmf0: [1360, 960],
2757
2757
  dtmf1: [1230, 720],
@@ -2797,12 +2797,12 @@ function jr() {
2797
2797
  }, c;
2798
2798
  }()
2799
2799
  );
2800
- return Je.default = t, Je;
2800
+ return Xe.default = t, Xe;
2801
2801
  }
2802
- var Ce = {}, Ke = {}, an;
2802
+ var Ie = {}, Ye = {}, an;
2803
2803
  function Ur() {
2804
- if (an) return Ke;
2805
- an = 1, Object.defineProperty(Ke, "__esModule", { value: !0 });
2804
+ if (an) return Ye;
2805
+ an = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
2806
2806
  function w(t, c, l) {
2807
2807
  var g = JSON.stringify(c.body || {}), y = new Headers();
2808
2808
  c.headers = c.headers || [], Object.entries(c.headers).forEach(function(_) {
@@ -2819,13 +2819,13 @@ function Ur() {
2819
2819
  return new this("GET", c, l);
2820
2820
  }, r.post = function(c, l) {
2821
2821
  return new this("POST", c, l);
2822
- }, Ke.default = r, Ke;
2822
+ }, Ye.default = r, Ye;
2823
2823
  }
2824
2824
  var sn;
2825
2825
  function Nr() {
2826
- if (sn) return Ce;
2826
+ if (sn) return Ie;
2827
2827
  sn = 1;
2828
- var w = Ce && Ce.__extends || /* @__PURE__ */ function() {
2828
+ var w = Ie && Ie.__extends || /* @__PURE__ */ function() {
2829
2829
  var y = function(_, E) {
2830
2830
  return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, S) {
2831
2831
  C.__proto__ = S;
@@ -2841,7 +2841,7 @@ function Nr() {
2841
2841
  _.prototype = E === null ? Object.create(E) : (C.prototype = E.prototype, new C());
2842
2842
  };
2843
2843
  }();
2844
- Object.defineProperty(Ce, "__esModule", { value: !0 });
2844
+ Object.defineProperty(Ie, "__esModule", { value: !0 });
2845
2845
  var r = ee(), t = X(), c = Ur(), l = (
2846
2846
  /** @class */
2847
2847
  function(y) {
@@ -2981,12 +2981,12 @@ function Nr() {
2981
2981
  total_packets_sent: y.totals.packetsSent
2982
2982
  };
2983
2983
  }
2984
- return Ce.default = l, Ce;
2984
+ return Ie.default = l, Ie;
2985
2985
  }
2986
- var Y = {}, oe = {}, Qe = {}, cn;
2986
+ var Y = {}, oe = {}, Ze = {}, cn;
2987
2987
  function Fr() {
2988
- if (cn) return Qe;
2989
- cn = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
2988
+ if (cn) return Ze;
2989
+ cn = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
2990
2990
  var w = 32767, r = typeof window < "u" ? window.RTCStatsReport : void 0;
2991
2991
  function t(f) {
2992
2992
  if (!(this instanceof t))
@@ -3257,7 +3257,7 @@ function Fr() {
3257
3257
  var s = f.stat(d);
3258
3258
  return typeof s < "u" && s !== "";
3259
3259
  }
3260
- return Qe.default = t, Qe;
3260
+ return Ze.default = t, Ze;
3261
3261
  }
3262
3262
  var un;
3263
3263
  function Xn() {
@@ -3489,7 +3489,7 @@ function Yn() {
3489
3489
  }
3490
3490
  };
3491
3491
  Object.defineProperty(w, "__esModule", { value: !0 }), w.PreflightTest = void 0;
3492
- var g = ee(), y = Ot(), _ = ct(), E = z(), C = X(), S = Xn(), m = Oe(), u = (
3492
+ var g = ee(), y = Ot(), _ = dt(), E = z(), C = X(), S = Xn(), m = Le(), u = (
3493
3493
  /** @class */
3494
3494
  function(b) {
3495
3495
  r(n, b);
@@ -3761,10 +3761,10 @@ function Yn() {
3761
3761
  }(u = w.PreflightTest || (w.PreflightTest = {})), w.PreflightTest = u;
3762
3762
  }(Y)), Y;
3763
3763
  }
3764
- var Ee = {}, ge = {}, dn;
3764
+ var Ae = {}, me = {}, dn;
3765
3765
  function $r() {
3766
3766
  return dn || (dn = 1, function(w) {
3767
- var r = ge && ge.__extends || /* @__PURE__ */ function() {
3767
+ var r = me && me.__extends || /* @__PURE__ */ function() {
3768
3768
  var o = function(a, f) {
3769
3769
  return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
3770
3770
  d.__proto__ = s;
@@ -3779,7 +3779,7 @@ function $r() {
3779
3779
  }
3780
3780
  a.prototype = f === null ? Object.create(f) : (d.prototype = f.prototype, new d());
3781
3781
  };
3782
- }(), t = ge && ge.__assign || function() {
3782
+ }(), t = me && me.__assign || function() {
3783
3783
  return t = Object.assign || function(o) {
3784
3784
  for (var a, f = 1, d = arguments.length; f < d; f++) {
3785
3785
  a = arguments[f];
@@ -3986,13 +3986,13 @@ function $r() {
3986
3986
  }(c.EventEmitter)
3987
3987
  );
3988
3988
  w.default = i;
3989
- }(ge)), ge;
3989
+ }(me)), me;
3990
3990
  }
3991
3991
  var fn;
3992
3992
  function Br() {
3993
- if (fn) return Ee;
3993
+ if (fn) return Ae;
3994
3994
  fn = 1;
3995
- var w = Ee && Ee.__extends || /* @__PURE__ */ function() {
3995
+ var w = Ae && Ae.__extends || /* @__PURE__ */ function() {
3996
3996
  var S = function(m, u) {
3997
3997
  return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, n) {
3998
3998
  b.__proto__ = n;
@@ -4008,8 +4008,8 @@ function Br() {
4008
4008
  m.prototype = u === null ? Object.create(u) : (b.prototype = u.prototype, new b());
4009
4009
  };
4010
4010
  }();
4011
- Object.defineProperty(Ee, "__esModule", { value: !0 });
4012
- var r = ee(), t = Oe(), c = z(), l = X(), g = $r(), y = "1.6", _ = 30, E = (
4011
+ Object.defineProperty(Ae, "__esModule", { value: !0 });
4012
+ var r = ee(), t = Le(), c = z(), l = X(), g = $r(), y = "1.6", _ = 30, E = (
4013
4013
  /** @class */
4014
4014
  function(S) {
4015
4015
  w(m, S);
@@ -4159,9 +4159,9 @@ function Br() {
4159
4159
  };
4160
4160
  return m;
4161
4161
  }
4162
- return Ee.default = E, Ee;
4162
+ return Ae.default = E, Ae;
4163
4163
  }
4164
- var mt = {}, pn;
4164
+ var _t = {}, pn;
4165
4165
  function qr() {
4166
4166
  return pn || (pn = 1, function(w) {
4167
4167
  var r;
@@ -4219,13 +4219,13 @@ function qr() {
4219
4219
  return w.regionShortcodes[m] || null;
4220
4220
  }
4221
4221
  w.getRegionShortcode = S;
4222
- }(mt)), mt;
4222
+ }(_t)), _t;
4223
4223
  }
4224
- var ae = {}, Xe = {}, Ye = {}, Z = {}, hn;
4224
+ var ae = {}, et = {}, tt = {}, Z = {}, hn;
4225
4225
  function Dt() {
4226
4226
  if (hn) return Z;
4227
4227
  hn = 1, Object.defineProperty(Z, "__esModule", { value: !0 }), Z.setMaxAverageBitrate = Z.setIceAggressiveNomination = Z.setCodecPreferences = Z.getPreferredCodecInfo = void 0;
4228
- var w = pe(), r = {
4228
+ var w = he(), r = {
4229
4229
  0: "PCMU",
4230
4230
  8: "PCMA"
4231
4231
  }, t = 111, c = 51e4, l = 6e3;
@@ -4313,7 +4313,7 @@ m=`).slice(1).map(function(a) {
4313
4313
  }
4314
4314
  return Z;
4315
4315
  }
4316
- var _t = { exports: {} }, vn;
4316
+ var yt = { exports: {} }, vn;
4317
4317
  function Hr() {
4318
4318
  return vn || (vn = 1, function(w) {
4319
4319
  var r = {};
@@ -4725,11 +4725,11 @@ t=0 0\r
4725
4725
  return !1;
4726
4726
  return !0;
4727
4727
  }, w.exports = r;
4728
- }(_t)), _t.exports;
4728
+ }(yt)), yt.exports;
4729
4729
  }
4730
- var yt, gn;
4730
+ var bt, gn;
4731
4731
  function Wr() {
4732
- if (gn) return yt;
4732
+ if (gn) return bt;
4733
4733
  gn = 1;
4734
4734
  var w = Hr();
4735
4735
  function r(_, E, C, S, m) {
@@ -4839,7 +4839,7 @@ function Wr() {
4839
4839
  var C = new Error(E);
4840
4840
  return C.name = _, C;
4841
4841
  }
4842
- return yt = function(_, E) {
4842
+ return bt = function(_, E) {
4843
4843
  function C(n, e) {
4844
4844
  e.addTrack(n), e.dispatchEvent(new _.MediaStreamTrackEvent(
4845
4845
  "addtrack",
@@ -5216,7 +5216,7 @@ function Wr() {
5216
5216
  I,
5217
5217
  "a=end-of-candidates",
5218
5218
  f
5219
- ).length > 0, ye = w.matchPrefix(I, "a=candidate:").map(function(K) {
5219
+ ).length > 0, Ce = w.matchPrefix(I, "a=candidate:").map(function(K) {
5220
5220
  return w.parseCandidate(K);
5221
5221
  }).filter(function(K) {
5222
5222
  return K.component === 1;
@@ -5229,7 +5229,7 @@ function Wr() {
5229
5229
  A = e.transceivers[v] || e._createTransceiver(T), A.mid = j, A.iceGatherer || (A.iceGatherer = e._createIceGatherer(
5230
5230
  v,
5231
5231
  s
5232
- )), ye.length && A.iceTransport.state === "new" && (ie && (!s || v === 0) ? A.iceTransport.setRemoteCandidates(ye) : ye.forEach(function(K) {
5232
+ )), Ce.length && A.iceTransport.state === "new" && (ie && (!s || v === 0) ? A.iceTransport.setRemoteCandidates(Ce) : Ce.forEach(function(K) {
5233
5233
  g(A.iceTransport, K);
5234
5234
  })), F = _.RTCRtpReceiver.getCapabilities(T), E < 15019 && (F.codecs = F.codecs.filter(
5235
5235
  function(K) {
@@ -5238,10 +5238,10 @@ function Wr() {
5238
5238
  )), M = A.sendEncodingParameters || [{
5239
5239
  ssrc: (2 * v + 2) * 1001
5240
5240
  }];
5241
- var dt = !1;
5241
+ var ft = !1;
5242
5242
  if (R === "sendrecv" || R === "sendonly") {
5243
- if (dt = !A.rtpReceiver, x = A.rtpReceiver || new _.RTCRtpReceiver(A.dtlsTransport, T), dt) {
5244
- var be;
5243
+ if (ft = !A.rtpReceiver, x = A.rtpReceiver || new _.RTCRtpReceiver(A.dtlsTransport, T), ft) {
5244
+ var Ee;
5245
5245
  $ = x.track, p && p.stream === "-" || (p ? (i[p.stream] || (i[p.stream] = new _.MediaStream(), Object.defineProperty(i[p.stream], "id", {
5246
5246
  get: function() {
5247
5247
  return p.stream;
@@ -5250,7 +5250,7 @@ function Wr() {
5250
5250
  get: function() {
5251
5251
  return p.track;
5252
5252
  }
5253
- }), be = i[p.stream]) : (i.default || (i.default = new _.MediaStream()), be = i.default)), be && (C($, be), A.associatedRemoteMediaStreams.push(be)), o.push([$, x, be]);
5253
+ }), Ee = i[p.stream]) : (i.default || (i.default = new _.MediaStream()), Ee = i.default)), Ee && (C($, Ee), A.associatedRemoteMediaStreams.push(Ee)), o.push([$, x, Ee]);
5254
5254
  }
5255
5255
  } else A.rtpReceiver && A.rtpReceiver.track && (A.associatedRemoteMediaStreams.forEach(function(K) {
5256
5256
  var Mt = K.getTracks().find(function(or) {
@@ -5261,9 +5261,9 @@ function Wr() {
5261
5261
  A.localCapabilities = F, A.remoteCapabilities = B, A.rtpReceiver = x, A.rtcpParameters = G, A.sendEncodingParameters = M, A.recvEncodingParameters = L, e._transceive(
5262
5262
  e.transceivers[v],
5263
5263
  !1,
5264
- dt
5264
+ ft
5265
5265
  );
5266
- } else n.type === "answer" && !k && (A = e.transceivers[v], N = A.iceGatherer, D = A.iceTransport, U = A.dtlsTransport, x = A.rtpReceiver, M = A.sendEncodingParameters, F = A.localCapabilities, e.transceivers[v].recvEncodingParameters = L, e.transceivers[v].remoteCapabilities = B, e.transceivers[v].rtcpParameters = G, ye.length && D.state === "new" && ((d || ie) && (!s || v === 0) ? D.setRemoteCandidates(ye) : ye.forEach(function(K) {
5266
+ } else n.type === "answer" && !k && (A = e.transceivers[v], N = A.iceGatherer, D = A.iceTransport, U = A.dtlsTransport, x = A.rtpReceiver, M = A.sendEncodingParameters, F = A.localCapabilities, e.transceivers[v].recvEncodingParameters = L, e.transceivers[v].remoteCapabilities = B, e.transceivers[v].rtcpParameters = G, Ce.length && D.state === "new" && ((d || ie) && (!s || v === 0) ? D.setRemoteCandidates(Ce) : Ce.forEach(function(K) {
5267
5267
  g(A.iceTransport, K);
5268
5268
  })), (!s || v === 0) && (D.state === "new" && D.start(
5269
5269
  N,
@@ -5575,19 +5575,19 @@ a=mid:` + a.mid + `\r
5575
5575
  }) : e.apply(this, arguments);
5576
5576
  };
5577
5577
  }), u;
5578
- }, yt;
5578
+ }, bt;
5579
5579
  }
5580
5580
  var mn;
5581
5581
  function Zn() {
5582
- if (mn) return Ye;
5583
- mn = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
5584
- var w = X(), r = pe(), t = Dt(), c = Wr();
5582
+ if (mn) return tt;
5583
+ mn = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
5584
+ var w = X(), r = he(), t = Dt(), c = Wr();
5585
5585
  function l(E) {
5586
5586
  if (typeof window > "u") {
5587
5587
  this.log.info("No RTCPeerConnection implementation available. The window object was not found.");
5588
5588
  return;
5589
5589
  }
5590
- E && E.RTCPeerConnection ? this.RTCPeerConnection = E.RTCPeerConnection : r.isLegacyEdge() ? this.RTCPeerConnection = new c(typeof window < "u" ? window : Tt) : typeof window.RTCPeerConnection == "function" ? this.RTCPeerConnection = window.RTCPeerConnection : typeof window.webkitRTCPeerConnection == "function" ? this.RTCPeerConnection = webkitRTCPeerConnection : typeof window.mozRTCPeerConnection == "function" ? (this.RTCPeerConnection = mozRTCPeerConnection, window.RTCSessionDescription = mozRTCSessionDescription, window.RTCIceCandidate = mozRTCIceCandidate) : this.log.info("No RTCPeerConnection implementation available");
5590
+ E && E.RTCPeerConnection ? this.RTCPeerConnection = E.RTCPeerConnection : r.isLegacyEdge() ? this.RTCPeerConnection = new c(typeof window < "u" ? window : Pt) : typeof window.RTCPeerConnection == "function" ? this.RTCPeerConnection = window.RTCPeerConnection : typeof window.webkitRTCPeerConnection == "function" ? this.RTCPeerConnection = webkitRTCPeerConnection : typeof window.mozRTCPeerConnection == "function" ? (this.RTCPeerConnection = mozRTCPeerConnection, window.RTCSessionDescription = mozRTCSessionDescription, window.RTCIceCandidate = mozRTCIceCandidate) : this.log.info("No RTCPeerConnection implementation available");
5591
5591
  }
5592
5592
  l.prototype.create = function(E) {
5593
5593
  this.log = new w.default("RTCPC"), this.pc = new this.RTCPeerConnection(E);
@@ -5678,13 +5678,13 @@ function Zn() {
5678
5678
  function _(E, C) {
5679
5679
  return g(E, C, !1, !1);
5680
5680
  }
5681
- return Ye.default = l, Ye;
5681
+ return tt.default = l, tt;
5682
5682
  }
5683
5683
  var _n;
5684
5684
  function Vr() {
5685
- if (_n) return Xe;
5686
- _n = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
5687
- var w = z(), r = X(), t = pe(), c = Zn(), l = Dt(), g = 15e3, y = "none", _ = "timeout", E = "new", C = 50;
5685
+ if (_n) return et;
5686
+ _n = 1, Object.defineProperty(et, "__esModule", { value: !0 });
5687
+ var w = z(), r = X(), t = he(), c = Zn(), l = Dt(), g = 15e3, y = "none", _ = "timeout", E = "new", C = 50;
5688
5688
  function S(e, i, o) {
5689
5689
  if (!e || !i)
5690
5690
  throw new w.InvalidArgumentError("Audiohelper, and pstream are required arguments");
@@ -6103,7 +6103,7 @@ function Vr() {
6103
6103
  return !1;
6104
6104
  return !0;
6105
6105
  }
6106
- return S.enabled = c.default.test(), Xe.default = S, Xe;
6106
+ return S.enabled = c.default.test(), et.default = S, et;
6107
6107
  }
6108
6108
  var yn;
6109
6109
  function er() {
@@ -6121,11 +6121,11 @@ function er() {
6121
6121
  }
6122
6122
  return ae.getMediaEngine = c, ae;
6123
6123
  }
6124
- var Ze = {}, bn;
6124
+ var nt = {}, bn;
6125
6125
  function Gr() {
6126
- if (bn) return Ze;
6127
- bn = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
6128
- var w = z(), r = pe();
6126
+ if (bn) return nt;
6127
+ bn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
6128
+ var w = z(), r = he();
6129
6129
  function t(c, l) {
6130
6130
  return l = l || {}, l.util = l.util || r, l.navigator = l.navigator || (typeof navigator < "u" ? navigator : null), new Promise(function(g, y) {
6131
6131
  if (!l.navigator)
@@ -6147,12 +6147,12 @@ function Gr() {
6147
6147
  Related Bugzilla thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1299324`) : g;
6148
6148
  });
6149
6149
  }
6150
- return Ze.default = t, Ze;
6150
+ return nt.default = t, nt;
6151
6151
  }
6152
- var et = {}, se = {}, tt = {}, Sn;
6152
+ var rt = {}, se = {}, it = {}, Sn;
6153
6153
  function zr() {
6154
- if (Sn) return tt;
6155
- Sn = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
6154
+ if (Sn) return it;
6155
+ Sn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
6156
6156
  var w = (
6157
6157
  /** @class */
6158
6158
  function() {
@@ -6178,7 +6178,7 @@ function zr() {
6178
6178
  }, r;
6179
6179
  }()
6180
6180
  );
6181
- return tt.default = w, tt;
6181
+ return it.default = w, it;
6182
6182
  }
6183
6183
  var wn;
6184
6184
  function Jr() {
@@ -6309,10 +6309,10 @@ function Jr() {
6309
6309
  );
6310
6310
  return se.AsyncQueue = c, se;
6311
6311
  }
6312
- var ne = {}, nt = {}, Cn;
6312
+ var ne = {}, ot = {}, Cn;
6313
6313
  function Kr() {
6314
- if (Cn) return nt;
6315
- Cn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
6314
+ if (Cn) return ot;
6315
+ Cn = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
6316
6316
  var w = (
6317
6317
  /** @class */
6318
6318
  function() {
@@ -6337,20 +6337,20 @@ function Kr() {
6337
6337
  }), r;
6338
6338
  }()
6339
6339
  );
6340
- return nt.default = w, nt;
6340
+ return ot.default = w, ot;
6341
6341
  }
6342
- var Te = {}, En;
6342
+ var ke = {}, En;
6343
6343
  function Qr() {
6344
- if (En) return Te;
6344
+ if (En) return ke;
6345
6345
  En = 1;
6346
- var w = Te && Te.__spreadArrays || function() {
6346
+ var w = ke && ke.__spreadArrays || function() {
6347
6347
  for (var c = 0, l = 0, g = arguments.length; l < g; l++) c += arguments[l].length;
6348
6348
  for (var y = Array(c), _ = 0, l = 0; l < g; l++)
6349
6349
  for (var E = arguments[l], C = 0, S = E.length; C < S; C++, _++)
6350
6350
  y[_] = E[C];
6351
6351
  return y;
6352
6352
  };
6353
- Object.defineProperty(Te, "__esModule", { value: !0 });
6353
+ Object.defineProperty(ke, "__esModule", { value: !0 });
6354
6354
  var r = ee(), t = (
6355
6355
  /** @class */
6356
6356
  function() {
@@ -6368,7 +6368,7 @@ function Qr() {
6368
6368
  }, c;
6369
6369
  }()
6370
6370
  );
6371
- return Te.default = t, Te;
6371
+ return ke.default = t, ke;
6372
6372
  }
6373
6373
  var Tn;
6374
6374
  function Xr() {
@@ -6678,8 +6678,8 @@ function Xr() {
6678
6678
  }
6679
6679
  var Pn;
6680
6680
  function Yr() {
6681
- if (Pn) return et;
6682
- Pn = 1, Object.defineProperty(et, "__esModule", { value: !0 });
6681
+ if (Pn) return rt;
6682
+ Pn = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
6683
6683
  var w = Jr(), r = Xr(), t = z();
6684
6684
  function c(g, y, _) {
6685
6685
  if (!(this instanceof c))
@@ -6768,9 +6768,9 @@ function Yr() {
6768
6768
  return this._operations.enqueue(function() {
6769
6769
  return y._play();
6770
6770
  });
6771
- }, et.default = c, et;
6771
+ }, rt.default = c, rt;
6772
6772
  }
6773
- var Ue = {}, bt = { exports: {} }, St = { exports: {} }, In;
6773
+ var Fe = {}, St = { exports: {} }, wt = { exports: {} }, In;
6774
6774
  function Zr() {
6775
6775
  return In || (In = 1, function() {
6776
6776
  var w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = {
@@ -6835,12 +6835,12 @@ function Zr() {
6835
6835
  return c;
6836
6836
  }
6837
6837
  };
6838
- St.exports = r;
6839
- }()), St.exports;
6838
+ wt.exports = r;
6839
+ }()), wt.exports;
6840
6840
  }
6841
- var wt, An;
6841
+ var Ct, An;
6842
6842
  function kn() {
6843
- if (An) return wt;
6843
+ if (An) return Ct;
6844
6844
  An = 1;
6845
6845
  var w = {
6846
6846
  // UTF-8 encoding
@@ -6870,7 +6870,7 @@ function kn() {
6870
6870
  }
6871
6871
  }
6872
6872
  };
6873
- return wt = w, wt;
6873
+ return Ct = w, Ct;
6874
6874
  }
6875
6875
  /*!
6876
6876
  * Determine if an object is a Buffer
@@ -6878,10 +6878,10 @@ function kn() {
6878
6878
  * @author Feross Aboukhadijeh <https://feross.org>
6879
6879
  * @license MIT
6880
6880
  */
6881
- var Ct, Rn;
6881
+ var Et, Rn;
6882
6882
  function ei() {
6883
- if (Rn) return Ct;
6884
- Rn = 1, Ct = function(t) {
6883
+ if (Rn) return Et;
6884
+ Rn = 1, Et = function(t) {
6885
6885
  return t != null && (w(t) || r(t) || !!t._isBuffer);
6886
6886
  };
6887
6887
  function w(t) {
@@ -6890,7 +6890,7 @@ function ei() {
6890
6890
  function r(t) {
6891
6891
  return typeof t.readFloatLE == "function" && typeof t.slice == "function" && w(t.slice(0, 0));
6892
6892
  }
6893
- return Ct;
6893
+ return Et;
6894
6894
  }
6895
6895
  var xn;
6896
6896
  function ti() {
@@ -6918,18 +6918,18 @@ function ti() {
6918
6918
  }, l._ii = function(g, y, _, E, C, S, m) {
6919
6919
  var u = g + (_ ^ (y | ~E)) + (C >>> 0) + m;
6920
6920
  return (u << S | u >>> 32 - S) + y;
6921
- }, l._blocksize = 16, l._digestsize = 16, bt.exports = function(g, y) {
6921
+ }, l._blocksize = 16, l._digestsize = 16, St.exports = function(g, y) {
6922
6922
  if (g == null)
6923
6923
  throw new Error("Illegal argument " + g);
6924
6924
  var _ = w.wordsToBytes(l(g, y));
6925
6925
  return y && y.asBytes ? _ : y && y.asString ? c.bytesToString(_) : w.bytesToHex(_);
6926
6926
  };
6927
- }()), bt.exports;
6927
+ }()), St.exports;
6928
6928
  }
6929
6929
  var Dn;
6930
6930
  function tr() {
6931
- if (Dn) return Ue;
6932
- Dn = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.generateVoiceEventSid = void 0;
6931
+ if (Dn) return Fe;
6932
+ Dn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.generateVoiceEventSid = void 0;
6933
6933
  var w = ti(), r = z(), t = typeof w == "function" ? w : w.default;
6934
6934
  function c() {
6935
6935
  if (typeof window != "object")
@@ -6952,10 +6952,10 @@ function tr() {
6952
6952
  function l() {
6953
6953
  return "KX" + c();
6954
6954
  }
6955
- return Ue.generateVoiceEventSid = l, Ue;
6955
+ return Fe.generateVoiceEventSid = l, Fe;
6956
6956
  }
6957
6957
  var On;
6958
- function ct() {
6958
+ function dt() {
6959
6959
  if (On) return Q;
6960
6960
  On = 1;
6961
6961
  var w = Q && Q.__extends || /* @__PURE__ */ function() {
@@ -7068,7 +7068,7 @@ function ct() {
7068
7068
  }
7069
7069
  };
7070
7070
  Object.defineProperty(Q, "__esModule", { value: !0 });
7071
- var l = ee(), g = Qn(), y = Mr(), _ = Lr(), E = Ot(), C = Oe(), S = jr(), m = z(), u = Nr(), b = X(), n = Yn(), e = Br(), i = qr(), o = er(), a = Gr(), f = Yr(), d = pe(), s = tr(), h = 3e4, I = 2e3, v = "twilio-js-sdk", O = 'Parameter "token" must be of type "string".', T = (
7071
+ var l = ee(), g = Qn(), y = Mr(), _ = Lr(), E = Ot(), C = Le(), S = jr(), m = z(), u = Nr(), b = X(), n = Yn(), e = Br(), i = qr(), o = er(), a = Gr(), f = Yr(), d = he(), s = tr(), h = 3e4, I = 2e3, v = "twilio-js-sdk", O = 'Parameter "token" must be of type "string".', T = (
7072
7072
  /** @class */
7073
7073
  function(k) {
7074
7074
  w(P, k);
@@ -7770,10 +7770,10 @@ function ct() {
7770
7770
  }(k.SoundName || (k.SoundName = {}));
7771
7771
  }(T || (T = {})), Q.default = T, Q;
7772
7772
  }
7773
- var Ne = {}, Mn;
7773
+ var $e = {}, Mn;
7774
7774
  function ni() {
7775
- if (Mn) return Ne;
7776
- Mn = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.IceCandidate = void 0;
7775
+ if (Mn) return $e;
7776
+ Mn = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.IceCandidate = void 0;
7777
7777
  var w = (
7778
7778
  /** @class */
7779
7779
  function() {
@@ -7800,12 +7800,12 @@ function ni() {
7800
7800
  }, r;
7801
7801
  }()
7802
7802
  );
7803
- return Ne.IceCandidate = w, Ne;
7803
+ return $e.IceCandidate = w, $e;
7804
7804
  }
7805
- var re = {}, le = {}, Ln;
7805
+ var re = {}, de = {}, Ln;
7806
7806
  function ri() {
7807
- if (Ln) return le;
7808
- Ln = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.isNonNegativeNumber = le.calculate = void 0;
7807
+ if (Ln) return de;
7808
+ Ln = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.isNonNegativeNumber = de.calculate = void 0;
7809
7809
  var w = 94.768;
7810
7810
  function r(c, l, g) {
7811
7811
  if (typeof c != "number" || typeof l != "number" || typeof g != "number" || !t(c) || !t(l) || !t(g))
@@ -7830,14 +7830,14 @@ function ri() {
7830
7830
  var E = 1 + 0.035 * _ + 7e-6 * _ * (_ - 60) * (100 - _);
7831
7831
  return E;
7832
7832
  }
7833
- le.calculate = r;
7833
+ de.calculate = r;
7834
7834
  function t(c) {
7835
7835
  return typeof c == "number" && !isNaN(c) && isFinite(c) && c >= 0;
7836
7836
  }
7837
- return le.isNonNegativeNumber = t, le.default = {
7837
+ return de.isNonNegativeNumber = t, de.default = {
7838
7838
  calculate: r,
7839
7839
  isNonNegativeNumber: t
7840
- }, le;
7840
+ }, de;
7841
7841
  }
7842
7842
  var jn;
7843
7843
  function ii() {
@@ -7874,7 +7874,7 @@ function ii() {
7874
7874
  return h;
7875
7875
  };
7876
7876
  Object.defineProperty(re, "__esModule", { value: !0 });
7877
- var c = ee(), l = z(), g = ri(), y = Xn(), _ = pe(), E = 5, C = 0, S = 3, m = 1e3, u = 5 * 1e3, b = {
7877
+ var c = ee(), l = z(), g = ri(), y = Xn(), _ = he(), E = 5, C = 0, S = 3, m = 1e3, u = 5 * 1e3, b = {
7878
7878
  audioInputLevel: { minStandardDeviation: 327.67, sampleCount: 10 },
7879
7879
  audioOutputLevel: { minStandardDeviation: 327.67, sampleCount: 10 },
7880
7880
  bytesReceived: { clearCount: 2, min: 1, raiseCount: 3, sampleCount: 3 },
@@ -8073,9 +8073,9 @@ function ii() {
8073
8073
  }
8074
8074
  var Un;
8075
8075
  function Ot() {
8076
- if (Un) return ce;
8076
+ if (Un) return ue;
8077
8077
  Un = 1;
8078
- var w = ce && ce.__extends || /* @__PURE__ */ function() {
8078
+ var w = ue && ue.__extends || /* @__PURE__ */ function() {
8079
8079
  var T = function(k, P) {
8080
8080
  return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, p) {
8081
8081
  R.__proto__ = p;
@@ -8090,7 +8090,7 @@ function Ot() {
8090
8090
  }
8091
8091
  k.prototype = P === null ? Object.create(P) : (R.prototype = P.prototype, new R());
8092
8092
  };
8093
- }(), r = ce && ce.__assign || function() {
8093
+ }(), r = ue && ue.__assign || function() {
8094
8094
  return r = Object.assign || function(T) {
8095
8095
  for (var k, P = 1, R = arguments.length; P < R; P++) {
8096
8096
  k = arguments[P];
@@ -8099,8 +8099,8 @@ function Ot() {
8099
8099
  return T;
8100
8100
  }, r.apply(this, arguments);
8101
8101
  };
8102
- Object.defineProperty(ce, "__esModule", { value: !0 });
8103
- var t = ee(), c = Kn(), l = ct(), g = z(), y = X(), _ = er(), E = ni(), C = Dt(), S = ii(), m = pe(), u = tr(), b = Oe(), n = {
8102
+ Object.defineProperty(ue, "__esModule", { value: !0 });
8103
+ var t = ee(), c = Kn(), l = dt(), g = z(), y = X(), _ = er(), E = ni(), C = Dt(), S = ii(), m = he(), u = tr(), b = Le(), n = {
8104
8104
  factor: 1.1,
8105
8105
  jitter: 0.5,
8106
8106
  max: 3e4,
@@ -8619,7 +8619,7 @@ function Ot() {
8619
8619
  return P.toString(16);
8620
8620
  });
8621
8621
  }
8622
- return ce.default = v, ce;
8622
+ return ue.default = v, ue;
8623
8623
  }
8624
8624
  var Nn;
8625
8625
  function oi() {
@@ -8627,7 +8627,7 @@ function oi() {
8627
8627
  Object.defineProperty(w, "__esModule", { value: !0 }), w.TwilioError = w.Logger = w.PreflightTest = w.Device = w.Call = void 0;
8628
8628
  var r = Ot();
8629
8629
  w.Call = r.default;
8630
- var t = ct();
8630
+ var t = dt();
8631
8631
  w.Device = t.default;
8632
8632
  var c = z();
8633
8633
  w.TwilioError = c;
@@ -8639,9 +8639,9 @@ function oi() {
8639
8639
  Object.defineProperty(w, "PreflightTest", { enumerable: !0, get: function() {
8640
8640
  return g.PreflightTest;
8641
8641
  } });
8642
- }(gt)), gt;
8642
+ }(mt)), mt;
8643
8643
  }
8644
- var Et = oi();
8644
+ var Tt = oi();
8645
8645
  class nr extends EventTarget {
8646
8646
  constructor() {
8647
8647
  super(...arguments), this.device = null, this.activeCall = null, this.callStatus = "idle", this.isReady = !1, this.error = null;
@@ -8671,9 +8671,9 @@ class nr extends EventTarget {
8671
8671
  "https://voice.dev.hanc.me/token"
8672
8672
  );
8673
8673
  if (!c.ok) throw new Error(await c.text());
8674
- const { token: l } = await c.json(), g = new Et.Device(l, {
8674
+ const { token: l } = await c.json(), g = new Tt.Device(l, {
8675
8675
  logLevel: 1,
8676
- codecPreferences: [Et.Call.Codec.Opus, Et.Call.Codec.PCMU],
8676
+ codecPreferences: [Tt.Call.Codec.Opus, Tt.Call.Codec.PCMU],
8677
8677
  enableImprovedSignalingErrorPrecision: !0,
8678
8678
  edge: "dublin"
8679
8679
  });
@@ -8712,7 +8712,7 @@ class nr extends EventTarget {
8712
8712
  this.activeCall ? (this.updateStatus("disconnecting"), this.activeCall.disconnect(), this.activeCall = null, (r = this.device) == null || r.destroy(), this.device = null) : this.device && (this.device.disconnectAll(), this.updateStatus("disconnecting"), this.device.destroy(), this.device = null);
8713
8713
  }
8714
8714
  }
8715
- const rr = Ie`
8715
+ const rr = xe`
8716
8716
  <svg
8717
8717
  xmlns="http://www.w3.org/2000/svg"
8718
8718
  width="22"
@@ -8733,7 +8733,7 @@ const rr = Ie`
8733
8733
  0 0 2.81.7A2 2 0 0 1 22 16.92z"
8734
8734
  />
8735
8735
  </svg>
8736
- `, ir = Ie`
8736
+ `, ir = xe`
8737
8737
  <svg
8738
8738
  xmlns="http://www.w3.org/2000/svg"
8739
8739
  width="22"
@@ -8757,14 +8757,14 @@ const rr = Ie`
8757
8757
  <line x1="22" x2="2" y1="2" y2="22" />
8758
8758
  </svg>
8759
8759
  `;
8760
- var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ut = (w, r, t, c) => {
8760
+ var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ze = (w, r, t, c) => {
8761
8761
  for (var l = c > 1 ? void 0 : c ? si(r, t) : r, g = w.length - 1, y; g >= 0; g--)
8762
8762
  (y = w[g]) && (l = (c ? y(r, t, l) : y(l)) || l);
8763
8763
  return c && l && ai(r, t, l), l;
8764
8764
  };
8765
- let xe = class extends Ae {
8765
+ let be = class extends De {
8766
8766
  constructor() {
8767
- super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.handleStatusChange = (w) => {
8767
+ super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.buttonStartText = "Start Call with ai", this.handleStatusChange = (w) => {
8768
8768
  const r = w.detail;
8769
8769
  (r === "disconnected" || r === "error") && (this.isCalling = !1);
8770
8770
  }, this.toggleCall = async () => {
@@ -8791,7 +8791,7 @@ let xe = class extends Ae {
8791
8791
  super.updated(w), w.has("agentId") && (this.callManager.hangUp(), this.isCalling = !1);
8792
8792
  }
8793
8793
  render() {
8794
- return Ie`
8794
+ return xe`
8795
8795
  <div class="wrapper" part="wrapper">
8796
8796
  <div class="filter-light" part="filter-light"></div>
8797
8797
  <div class="filter-gradient" part="filter-gradient"></div>
@@ -8815,11 +8815,11 @@ let xe = class extends Ae {
8815
8815
  class="button"
8816
8816
  data-calling=${String(this.isCalling)}
8817
8817
  >
8818
- ${this.isCalling ? Ie`<div part="call-off-icon" class="call-off-icon">
8818
+ ${this.isCalling ? xe`<div part="call-off-icon" class="call-off-icon">
8819
8819
  ${ir}
8820
- </div>` : Ie`
8820
+ </div>` : xe`
8821
8821
  <div part="icon-button" class="icon-button">${rr}</div>
8822
- <span part="button-text">Click to speak to AI</span>
8822
+ <span part="button-text">${this.buttonStartText}</span>
8823
8823
  `}
8824
8824
  </button>
8825
8825
  </div>
@@ -8827,20 +8827,23 @@ let xe = class extends Ae {
8827
8827
  `;
8828
8828
  }
8829
8829
  };
8830
- xe.styles = [Jn, Ar];
8831
- ut([
8832
- xt({ type: String, attribute: "agent-id" })
8833
- ], xe.prototype, "agentId", 2);
8834
- ut([
8830
+ be.styles = [Jn, Ar];
8831
+ ze([
8832
+ Se({ type: String, attribute: "agent-id" })
8833
+ ], be.prototype, "agentId", 2);
8834
+ ze([
8835
8835
  Gn()
8836
- ], xe.prototype, "isCalling", 2);
8837
- ut([
8836
+ ], be.prototype, "isCalling", 2);
8837
+ ze([
8838
8838
  zn("video")
8839
- ], xe.prototype, "videoElement", 2);
8840
- xe = ut([
8841
- Vn("hanc-ai-call-control")
8842
- ], xe);
8843
- const ci = At`
8839
+ ], be.prototype, "videoElement", 2);
8840
+ ze([
8841
+ Se({ type: String, attribute: "button-start-text" })
8842
+ ], be.prototype, "buttonStartText", 2);
8843
+ be = ze([
8844
+ Vn("hanc-ai-inline-call")
8845
+ ], be);
8846
+ const ci = kt`
8844
8847
  .root {
8845
8848
  position: fixed;
8846
8849
  right: 24px;
@@ -8896,19 +8899,17 @@ const ci = At`
8896
8899
  }
8897
8900
 
8898
8901
  .filter-gradient {
8899
- background: linear-gradient(to right, #63b3ed, #06b6d4, #2563eb);
8902
+ background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
8900
8903
  background-size: 200% 200%;
8901
8904
  animation: gradientAnimation 8s ease infinite;
8902
8905
  mix-blend-mode: overlay;
8903
- z-index: 11;
8904
8906
  }
8905
8907
 
8906
8908
  .filter-overlay {
8907
- background: linear-gradient(to right, #63b3ed, #06b6d4, #2563eb);
8909
+ background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
8908
8910
  background-size: 200% 200%;
8909
8911
  animation: gradientAnimation 8s ease infinite;
8910
8912
  transition: opacity 0.5s;
8911
- z-index: 12;
8912
8913
  }
8913
8914
 
8914
8915
  .filter-overlay[data-calling='true'] {
@@ -8945,7 +8946,7 @@ const ci = At`
8945
8946
  }
8946
8947
 
8947
8948
  .button {
8948
- background: #000;
8949
+ background: #5266eb;
8949
8950
  border-radius: 9999px;
8950
8951
  color: #fff;
8951
8952
  display: flex;
@@ -8963,7 +8964,7 @@ const ci = At`
8963
8964
  }
8964
8965
 
8965
8966
  .button:hover {
8966
- background: #6e6e6e;
8967
+ background: #3d55e6;
8967
8968
  }
8968
8969
 
8969
8970
  .icon-button {
@@ -8977,14 +8978,14 @@ const ci = At`
8977
8978
  height: 16px;
8978
8979
  }
8979
8980
  `;
8980
- var ui = Object.defineProperty, li = Object.getOwnPropertyDescriptor, lt = (w, r, t, c) => {
8981
+ var ui = Object.defineProperty, li = Object.getOwnPropertyDescriptor, we = (w, r, t, c) => {
8981
8982
  for (var l = c > 1 ? void 0 : c ? li(r, t) : r, g = w.length - 1, y; g >= 0; g--)
8982
8983
  (y = w[g]) && (l = (c ? y(r, t, l) : y(l)) || l);
8983
8984
  return c && l && ui(r, t, l), l;
8984
8985
  };
8985
- let De = class extends Ae {
8986
+ let ce = class extends De {
8986
8987
  constructor() {
8987
- super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.handleStatusChange = (w) => {
8988
+ super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.labelText = "Need a help?", this.buttonStartText = "Start Call with ai", this.buttonEndText = "End call", this.handleStatusChange = (w) => {
8988
8989
  const r = w.detail;
8989
8990
  (r === "disconnected" || r === "error") && (this.isCalling = !1);
8990
8991
  }, this.toggleCall = async () => {
@@ -9011,7 +9012,7 @@ let De = class extends Ae {
9011
9012
  super.updated(w), w.has("agentId") && (this.callManager.hangUp(), this.isCalling = !1);
9012
9013
  }
9013
9014
  render() {
9014
- return Ie`
9015
+ return xe`
9015
9016
  <div class="root" part="root">
9016
9017
  <div class="avatar-wrapper" part="avatar-wrapper">
9017
9018
  <div class="filter-light" part="filter-light"></div>
@@ -9030,7 +9031,7 @@ let De = class extends Ae {
9030
9031
  ></video>
9031
9032
  </div>
9032
9033
  <div class="content" part="content">
9033
- <div class="title" part="title">Need help?</div>
9034
+ <div class="title" part="title">${this.labelText}</div>
9034
9035
  <button
9035
9036
  part="button"
9036
9037
  @click=${this.toggleCall}
@@ -9041,7 +9042,7 @@ let De = class extends Ae {
9041
9042
  ${this.isCalling ? ir : rr}
9042
9043
  </div>
9043
9044
  <span part="button-text">
9044
- ${this.isCalling ? "End call" : "Start a call"}
9045
+ ${this.isCalling ? this.buttonEndText : this.buttonStartText}
9045
9046
  </span>
9046
9047
  </button>
9047
9048
  </div>
@@ -9049,20 +9050,29 @@ let De = class extends Ae {
9049
9050
  `;
9050
9051
  }
9051
9052
  };
9052
- De.styles = [Jn, ci];
9053
- lt([
9054
- xt({ type: String, attribute: "agent-id" })
9055
- ], De.prototype, "agentId", 2);
9056
- lt([
9053
+ ce.styles = [Jn, ci];
9054
+ we([
9055
+ Se({ type: String, attribute: "agent-id" })
9056
+ ], ce.prototype, "agentId", 2);
9057
+ we([
9057
9058
  Gn()
9058
- ], De.prototype, "isCalling", 2);
9059
- lt([
9059
+ ], ce.prototype, "isCalling", 2);
9060
+ we([
9060
9061
  zn("video")
9061
- ], De.prototype, "videoElement", 2);
9062
- De = lt([
9062
+ ], ce.prototype, "videoElement", 2);
9063
+ we([
9064
+ Se({ type: String, attribute: "label-text" })
9065
+ ], ce.prototype, "labelText", 2);
9066
+ we([
9067
+ Se({ type: String, attribute: "button-start-text" })
9068
+ ], ce.prototype, "buttonStartText", 2);
9069
+ we([
9070
+ Se({ type: String, attribute: "button-end-text" })
9071
+ ], ce.prototype, "buttonEndText", 2);
9072
+ ce = we([
9063
9073
  Vn("hanc-ai-floating-call")
9064
- ], De);
9074
+ ], ce);
9065
9075
  export {
9066
- xe as CallControl,
9067
- De as FloatingCall
9076
+ ce as FloatingCall,
9077
+ be as InlineCall
9068
9078
  };